:root {
  --primary-color: #1a1a2e;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-color: #30475e;
  --dark-color: #121212;
  --text-color: #f0f0f0;
  --text-secondary: #b0b0b0;
  --card-bg: #222831;
  --card-hover: #333f50;
  --gray-color: #95a5a6;
  /* Token colors are imported from token-styles.css - no hardcoded values here */
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-color);
  color: var(--text-color);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.back-link {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.back-link i {
  margin-right: 5px;
}

main {
  flex: 1;
  padding: 2rem 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.scratch-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-details {
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-details h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Dynamic token badges */
.token-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 15px;
  background-color: var(--primary);
  color: white;
}

.token-badge.FREE {
  background-color: var(--success-color);
  color: white;
}

/* Token-specific classes for badges are applied from token-styles.css */

.card-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0;
  display: block;
  text-align: center;
  order: -1;
}

.price-amount {
  display: inline-block;
  padding: 5px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-weight: 600;
}

.card-description {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 12px auto 1.5rem;
}

.scratch-container-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  aspect-ratio: 1/1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  /* Remove token-specific left border if any was applied */
  border-left: none !important;
}

.scratch-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.payment-required-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

.payment-required-message {
  background-color: rgba(26, 26, 46, 0.85);
  padding: 1.5rem;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  font-weight: 500;
  text-align: center;
  max-width: 85%;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.payment-required-message:hover {
  background-color: rgba(26, 26, 46, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

/* Dynamic token costs */
.token-cost {
  margin: 0.8rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.02);
    opacity: 0.95;
  }
}

/* Token-specific colors are applied from token-styles.css */



/* Quantity selector styles */
.quantity-selector {
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.quantity-selector label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.2rem;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.quantity-btn:active {
  transform: scale(0.95);
}

#quantity-input {
  width: 50px;
  height: 28px;
  border: none;
  background-color: transparent;
  color: var(--text-color);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
}

#quantity-input::-webkit-outer-spin-button,
#quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#quantity-input[type=number] {
  -moz-appearance: textfield;
}

.total-cost {
  margin: 0.4rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Cards remaining info */
.cards-remaining-info {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
  margin: 0 auto 2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
  pointer-events: none;
  user-select: none;
}

.cards-remaining-info i {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0;
  width: 100%;
  max-width: 600px;
}

.btn {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  flex: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn i {
  margin-right: 0.5rem;
  font-size: 0.9em;
}

/* Base buy button */
.btn-buy {
  background-color: var(--success-color);
  color: white;
  font-weight: 500;
}

.btn-buy:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Token-specific buy buttons are styled by token-styles.css */
/* Default hover behavior for all token buttons */
.btn-buy[class*="-btn"]:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-reset {
  background-color: var(--light-color);
  color: var(--text-color);
}

.btn-reset:hover {
  background-color: #3e5973;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.btn-back {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Disabled button states */
.btn:disabled,
.btn.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.btn:disabled:hover,
.btn.disabled:hover {
  transform: none !important;
  filter: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Result section */
.result-section {
  margin-top: 2rem;
  width: 100%;
  max-width: 600px;
  display: none;
}

.result-section.visible {
  display: block;
  animation: fadeIn 0.5s ease;
}

.result-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--text-color);
}

.result-win {
  background-color: rgba(46, 204, 113, 0.15);
  border: 2px solid var(--success-color);
}

.result-win h3 {
  color: var(--success-color);
}

.result-lose h3 {
  color: var(--text-secondary);
}

.result-card h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.result-prize {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--text-color);
}

.result-message {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 1rem 0;
  margin-top: auto;
}

footer .container {
  text-align: center;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Loading indicator */
/* Enhanced Loading Indicator */
.loading-indicator {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 110;
  background: transparent;
  padding: 2rem;
  text-align: center;
  color: var(--text-color);
  min-width: 400px;
  width: auto;
}

.loading-indicator.visible {
  display: block;
  animation: loadingFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 140px;
  width: 100%;
}

/* Enhanced Spinner with Multiple Rings */
.spinner-enhanced {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-radius: 50%;
  animation: spinRing 2s linear infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: #4c6ef5;
  animation-delay: 0s;
  animation-duration: 1.5s;
}

.spinner-ring:nth-child(2) {
  border-top-color: #7c3aed;
  animation-delay: -0.5s;
  animation-duration: 2s;
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.5%;
}

.spinner-ring:nth-child(3) {
  border-top-color: #06d6a0;
  animation-delay: -1s;
  animation-duration: 2.5s;
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
}

/* Loading Text Container */
.loading-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

#loading-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
  background: linear-gradient(45deg, #4c6ef5, #7c3aed, #06d6a0);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  text-align: center;
  white-space: nowrap;
}

#loading-subtitle {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Animated Dots */
.loading-dots {
  display: flex;
  gap: 4px;
  margin-top: 0.5rem;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Animations */
@keyframes loadingFadeIn {
  0% { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes dotPulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .card-details h2 {
    font-size: 1.5rem;
  }
  
  .token-cost {
    font-size: 1.25rem;
  }
  
  .btn {
    min-width: 130px;
    font-size: 0.9rem;
  }
  
  .scratch-container-wrapper {
    aspect-ratio: 1/1;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.2rem;
  }
  
  .card-details h2 {
    font-size: 1.25rem;
  }
  
  .scratch-container-wrapper {
    aspect-ratio: 1/1;
    max-width: 90vw;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 1rem;
  }
  
  .payment-required-message {
    padding: 1.25rem;
    max-width: 90%;
    border-radius: 12px;
  }
}

/* Symbol Legend Styles */
.symbol-legend {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  /* Remove token-specific left border if any was applied */
  border-left: none !important;
  transition: padding 0.3s ease;
}

/* More compact when collapsed */
.symbol-legend.collapsed {
  padding: 0.75rem 1.5rem;
}

.symbol-legend h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--text-color);
  text-align: center;
}

.symbol-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 20px;
}

.symbol-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.symbol-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.symbol-list .symbol {
  flex: 0 0 40px;
  font-size: 1.5rem;
  margin-right: 1rem;
  text-align: center;
}

.symbol-list .symbol.custom-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 1rem;
  vertical-align: middle;
}

.symbol-list .symbol-image {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 4px;
}

.symbol-list .prize {
  flex: 0 0 auto;
  text-align: right;
}

.prize {
  color: var(--success-color);
  font-weight: bold;
  margin-left: auto;
}

.hash-mapping {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hash-mapping:after {
  content: '';
  clear: both;
  display: table;
}

.hash-mapping h4 {
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.hash-mapping small {
  display: block;
  margin-bottom: 5px;
}

.prize-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  text-align: center;
}

.prize-note p {
  color: var(--success-color);
  margin: 0;
}

/* Win notification overlay */
.win-notification-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.win-notification-overlay.visible {
  display: flex;
  opacity: 1;
}

.win-notification-content {
  background-color: rgba(46, 204, 113, 0.2);
  border: 2px solid var(--success-color);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.5);
  backdrop-filter: blur(5px);
}

/* Win icon and title */
.win-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.win-title {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  color: var(--success-color);
  font-weight: 700;
}

.win-prize {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.win-message {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.win-symbol-display {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  font-size: 1.1rem;
  color: #f8f9fa;
}

.win-symbol-text,
.win-pattern-text {
  color: #e9ecef;
  font-weight: 500;
}

.win-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  font-size: 1.5rem;
  min-width: 32px;
  min-height: 32px;
}

.win-symbol.custom-symbol {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px;
}

.win-symbol .symbol-image {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 4px;
}

/* Lose notification specific styles */
.lose-style {
  background-color: rgba(50, 50, 50, 0.7) !important;
}

.lose-style .win-notification-content {
  background-color: rgba(108, 117, 125, 0.6) !important;
  border: 2px solid rgba(134, 142, 150, 0.6) !important;
  box-shadow: 0 0 20px rgba(108, 117, 125, 0.3) !important;
  backdrop-filter: blur(5px) !important;
  max-width: 320px !important;
  padding: 25px !important;
  transform: scale(0.85) !important;
}

/* Payment redirect overlay */
.payment-redirect-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.redirect-now-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  margin-top: 15px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  min-width: 120px;
}

.redirect-now-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Payment processing overlay */
.payment-processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.processing-container {
  background-color: var(--primary-color);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  color: var(--text-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.small-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* QR Code Modal */
#qr-code-modal.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-code-modal .modal-content {
  background-color: var(--primary-color);
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  text-align: center;
  color: var(--text-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#qr-code-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}

#qr-code-modal .close-modal:hover {
  color: var(--text-color);
}

.qr-container {
  margin: 20px 0;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  display: inline-block;
}

#qr-code-image {
  max-width: 100%;
  display: block;
}

.modal-instructions {
  margin-bottom: 10px;
  color: var(--text-color);
}

.qr-notes {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 15px;
  color: var(--text-secondary);
}

.qr-notes strong {
  color: var(--warning-color);
}

/* Toast notification */
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10000;
  transition: opacity 0.3s;
}

/* Waiting for ledger overlay */
.ledger-waiting-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ledger-waiting-container {
  background-color: var(--primary-color);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  color: var(--text-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.ledger-waiting-container h3 {
  color: var(--primary);
  margin-top: 15px;
}

.ledger-waiting-container .small-text {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Collapsible Legend Styles */
.legend-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
  user-select: none;
  min-height: 2rem;
  transition: all 0.3s ease;
}

/* Remove bottom spacing when collapsed */
.symbol-legend.collapsed .legend-header {
  margin-bottom: 0;
  border-bottom: none;
  padding: 0.75rem 0;
}

.legend-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.5rem;
  margin: 0 -0.5rem 0.75rem -0.5rem;
}

/* Adjust hover state for collapsed */
.symbol-legend.collapsed .legend-header:hover {
  margin: 0 -0.5rem;
  padding: 0.75rem 0.5rem;
}

.legend-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.legend-toggle-icon {
  transition: transform 0.3s ease;
  font-size: 1rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.legend-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Related Cards Section */
.related-cards-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: none;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.related-cards-section h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--text-color);
  text-align: center;
}

.related-cards-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0 50px; /* Add padding by default to ensure arrows have space */
}

.related-cards-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.related-cards-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Navigation arrows for desktop */
.cards-nav-arrow {
  display: none; /* Hidden by default, shown on desktop */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(34, 40, 49, 0.9); /* Dark background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-color); /* Light text on dark background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.cards-nav-arrow:hover {
  background-color: rgba(34, 40, 49, 1);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.cards-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.cards-nav-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.cards-nav-arrow-left {
  left: 5px; /* Inside the padding area for full visibility */
}

.cards-nav-arrow-right {
  right: 5px; /* Inside the padding area for full visibility */
}

.related-card {
  flex: 0 0 200px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.related-card-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.05);
}

.related-card-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-card-info h4 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.related-card-price {
  display: flex !important; /* Force display */
  align-items: center;
  justify-content: center;
  margin: 0.25rem 0;
  opacity: 1 !important; /* Force full opacity */
  visibility: visible !important; /* Force visibility */
  transition: none; /* Prevent price from changing on hover */
}

.free-badge {
  background-color: var(--success-color);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 1 !important; /* Always visible */
  visibility: visible !important; /* Always visible */
  display: inline-block !important; /* Force display */
  transition: none; /* Keep badge stable */
}

.price-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  /* Remove default white color to let token colors work */
  opacity: 1 !important; /* Always visible */
  visibility: visible !important; /* Always visible */
  display: inline-block !important; /* Force display */
  transition: none; /* Keep badge stable */
}

/* Token-specific price badge colors for related cards - remove background */
.related-cards-section .price-badge[class*="-price-badge"],
.related-cards-section .price-badge {
  background-color: transparent !important;
  border: none !important;
  padding: 0.2rem 0.4rem !important;
  /* Remove the generic color override to let token-specific colors work */
}

/* Override token-specific background colors in related cards */
.related-cards-section .xrp-price-badge {
  background-color: transparent !important;
  color: var(--xrp-color) !important;
}

.related-cards-section .csc-price-badge {
  background-color: transparent !important;
  color: var(--csc-color) !important;
}

/* More specific selectors for all token price badges in related cards */
.related-cards-section .related-card .price-badge[class*="-price-badge"],
.related-cards-section .related-card-info .price-badge[class*="-price-badge"],
.related-cards-section .related-card-price .price-badge[class*="-price-badge"] {
  background-color: transparent !important;
  border: none !important;
}

/* Specific token overrides with highest specificity */
.related-cards-section .related-card .xrp-price-badge,
.related-cards-section .related-card-info .xrp-price-badge,
.related-cards-section .related-card-price .xrp-price-badge {
  color: var(--xrp-color) !important;
}

.related-cards-section .related-card .csc-price-badge,
.related-cards-section .related-card-info .csc-price-badge,
.related-cards-section .related-card-price .csc-price-badge {
  color: var(--csc-color) !important;
}

/* Keep FREE badges with their green background */
.related-cards-section .free-badge,
.related-card .free-badge,
.related-card-price .free-badge,
.related-card-info .free-badge {
  background-color: var(--success-color) !important;
  color: white !important;
  border: none !important;
}

/* Ensure token-specific price badge colors work in related cards */
.related-cards-section .price-badge[class*="-price-badge"] {
  background-color: transparent !important;
  border: none !important;
  /* Color will be set by the token-specific classes from app.js */
}

/* Base price badge in related cards - remove any default styling */
.related-cards-section .price-badge:not(.free-badge) {
  background-color: transparent !important;
  color: inherit !important;
  border: none !important;
}

/* Force removal of any default colors for all price badges in related cards */
.related-cards-section .price-badge,
.related-cards-section .related-card .price-badge,
.related-cards-section .related-card-info .price-badge,
.related-cards-section .related-card-price .price-badge {
  background-color: transparent !important;
  border: none !important;
  /* Don't set any default color - let token-specific classes handle it */
}

/* Ultra-specific selectors for token-specific price badges with maximum specificity */
.related-cards-section .related-card-info .related-card-price span.price-badge[class*="-price-badge"] {
  background-color: transparent !important;
  border: none !important;
  font-weight: 600 !important;
}

/* Force token colors with maximum specificity - these should override everything */
.related-cards-section span.price-badge.csc-price-badge,
.related-cards-section .related-card span.price-badge.csc-price-badge,
.related-cards-section .related-card-info span.price-badge.csc-price-badge,
.related-cards-section .related-card-price span.price-badge.csc-price-badge {
  color: var(--csc-color) !important;
  background-color: transparent !important;
  border: none !important;
}

.related-cards-section span.price-badge.xrp-price-badge,
.related-cards-section .related-card span.price-badge.xrp-price-badge,
.related-cards-section .related-card-info span.price-badge.xrp-price-badge,
.related-cards-section .related-card-price span.price-badge.xrp-price-badge {
  color: var(--xrp-color) !important;
  background-color: transparent !important;
  border: none !important;
}

/* Override any token-specific hiding rules for related cards */
.related-card .price-badge,
.related-card .free-badge,
.related-card .price-badge[class*="-tag"],
.related-card-price .price-badge,
.related-card-price .free-badge,
.related-card-info .price-badge,
.related-card-info .free-badge {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  transform: none !important;
  /* Fix for token-tag positioning override */
  position: static !important;
  top: auto !important;
  left: auto !important;
  /* Remove background for clean appearance */
  background-color: transparent !important;
  border: none !important;
  padding: 0.2rem 0.4rem !important;
  /* Let token-specific colors work - don't override color here */
}

/* Comprehensive override for ALL token-tag classes within related cards */
.related-cards-section [class*="-tag"],
.related-cards-section [class*="-price-badge"] {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Force visibility on hover states too */
.related-card:hover .price-badge,
.related-card:hover .free-badge,
.related-card:hover .related-card-price {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  transform: none !important;
  /* Fix for token-tag positioning override */
  position: static !important;
  top: auto !important;
  left: auto !important;
}

.related-card:hover .price-badge,
.related-card:hover .free-badge {
  display: inline-block !important;
  /* Fix for token-tag positioning override */
  position: static !important;
  top: auto !important;
  left: auto !important;
}

.related-card-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: white;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.related-card-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.related-card-btn i {
  font-size: 0.7rem;
}

/* Placeholder and error states */
.related-card-placeholder,
.no-related-cards,
.related-cards-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  min-height: 120px;
}



.no-related-cards p,
.related-cards-error p {
  margin-bottom: 1rem;
}

/* Desktop optimizations for related cards */
@media (min-width: 769px) {
  .related-cards-section {
    max-width: 900px; /* Even wider on larger screens */
  }
  
  .related-cards-container {
    padding: 0 60px; /* Even more space for arrows on desktop */
  }
  
  .cards-nav-arrow {
    display: flex; /* Show arrows on desktop */
    align-items: center;
    justify-content: center;
  }
  
  .cards-nav-arrow-left {
    left: 8px; /* Well inside the padding area */
  }
  
  .cards-nav-arrow-right {
    right: 8px; /* Well inside the padding area */
  }
  
  .related-card {
    flex: 0 0 220px; /* Slightly larger cards on desktop */
  }
  
  .related-card-image {
    height: 130px;
  }
}

/* Mobile optimizations for related cards */
@media (max-width: 768px) {
  .related-cards-container {
    padding: 0 10px; /* Minimal padding on mobile since no arrows */
  }
  
  .related-card {
    flex: 0 0 170px;
  }
  
  .related-card-image {
    height: 100px;
  }
  
  .related-card-info {
    padding: 0.75rem;
  }
  
  .related-card-info h4 {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .related-cards-section {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }
  
  .related-cards-container {
    padding: 0 5px; /* Very minimal padding on small screens */
  }
  
  .related-card {
    flex: 0 0 150px;
  }
  
  .related-card-image {
    height: 90px;
  }
  
  .related-card-info {
    padding: 0.6rem;
  }
  
  .related-card-info h4 {
    font-size: 0.8rem;
  }
  
  .related-card-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
  
  /* Enhanced Loading Indicator Mobile Styles */
  .loading-indicator {
    padding: 1.5rem;
    min-width: 280px;
  }
  
  .spinner-enhanced {
    width: 70px;
    height: 70px;
  }
  
  #loading-title {
    font-size: 1.4rem;
  }
  
  #loading-subtitle {
    font-size: 0.8rem;
  }
  
  .loading-dots span {
    width: 5px;
    height: 5px;
  }
}

/* Add styles for the winnings table */
.winnings-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.winnings-table th, 
.winnings-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.winnings-table th {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.2);
}

.winnings-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.winnings-table tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Custom symbol styling in winnings table */
.winnings-table .symbol.custom-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 2px;
}

.winnings-table .symbol-image {
  width: 12px;
  height: 12px;
  object-fit: contain;
  border-radius: 3px;
}

/* Power tile bonus info styling */
.power-tile-info {
  margin-top: 15px;
  padding: 12px 15px;
  background: linear-gradient(45deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1));
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  text-align: center;
}

.power-tile-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #81c784;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.power-tile-info strong {
  color: #66bb6a;
  font-weight: 600;
}

/* Find the Symbol info styling */
.find-symbol-info {
  margin-top: 15px;
  padding: 12px 15px;
  background: linear-gradient(45deg, rgba(33, 150, 243, 0.1), rgba(63, 81, 181, 0.1));
  border: 1px solid rgba(33, 150, 243, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.find-symbol-info p {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: #64b5f6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.find-symbol-info p:last-child {
  margin-bottom: 0;
}

.find-symbol-info strong {
  color: #42a5f5;
  font-weight: 600;
}

/* Find Symbol Win Notification Display */
.find-symbol-display {
  text-align: center;
  margin: 15px 0;
  padding: 15px;
  background: linear-gradient(45deg, rgba(33, 150, 243, 0.1), rgba(63, 81, 181, 0.1));
  border: 1px solid rgba(33, 150, 243, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.find-symbol-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  min-height: 40px;
  align-items: center;
}

.target-symbol {
  font-size: 1.8rem;
  display: inline-block;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(33, 150, 243, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: symbolGlow 1.5s ease-in-out infinite alternate;
}

.symbol-more {
  font-size: 1.5rem;
  color: #64b5f6;
  font-weight: bold;
  margin: 0 5px;
}

@keyframes symbolGlow {
  from {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 8px rgba(33, 150, 243, 0.3);
  }
  to {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 16px rgba(33, 150, 243, 0.6);
  }
}

/* Hash mapping table */
.hash-mapping-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.hash-mapping-table th, 
.hash-mapping-table td {
  padding: 4px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hash-mapping-table th {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.2);
}

.hash-mapping-table tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.symbol-mapping {
  margin-bottom: 10px;
}

/* Hash mapping inline style */
.hash-mapping-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
}

.mapping-item {
  font-size: 0.9rem;
  color: var(--text-color);
  white-space: nowrap;
}

.mapping-item:not(:last-child)::after {
  content: '•';
  margin-left: 10px;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Verification Mapping Styles */
.verify-mapping-section {
  margin-top: 15px;
  text-align: center;
}

.verify-mapping-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: none;
}

.verify-mapping-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.3);
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.verify-mapping-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.verify-mapping-btn:disabled i {
  color: rgba(255, 255, 255, 0.4);
}

/* Verification Modal Styles */
.verification-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.verification-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  margin: 2% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid #334155;
  color: #f1f5f9;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.verification-modal-header {
  background: var(--card-bg);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verification-modal-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 20px;
  font-weight: 600;
}

.verification-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.verification-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.3);
  transform: none;
}

.verification-modal-body {
  padding: 25px;
}

.verification-step {
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-step:last-child {
  margin-bottom: 0;
}

.verification-step h4 {
  margin: 0 0 15px 0;
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.verification-step h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-right: 10px;
  border-radius: 2px;
}

/* Hash Display */
.hash-display {
  background-color: #0f172a;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #334155;
  overflow: hidden;
}

.hash-display a {
  background: rgba(15, 23, 42, 0.8);
  color: #67d6ed;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #475569 transparent;
  min-height: 24px;
  line-height: 1.4;
  display: block;
  word-spacing: 2px;
  letter-spacing: 0.5px;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hash-display a:hover {
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  transform: none;
}

.hash-display a::-webkit-scrollbar {
  height: 6px;
}

.hash-display a::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.hash-display a::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 3px;
}

.hash-display a::-webkit-scrollbar-thumb:hover {
  background: #667eea;
}

/* Mapping Explanation */
.mapping-explanation {
  margin-bottom: 15px;
}

.mapping-explanation p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
}

/* Hash Breakdown */
.hash-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.hash-pair {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.hash-pair:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.hash-pair-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 5px;
  font-weight: 500;
}

.hash-pair-value {
  font-size: 16px;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 5px;
}

.hash-pair-symbol {
  font-size: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.hash-pair-symbol.custom-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hash-pair-symbol .symbol-image {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

/* Symbol Ranges */
.symbol-ranges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.symbol-range {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.2s ease;
}

.symbol-range:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.symbol-range-symbol {
  font-size: 24px;
  margin-bottom: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  color: #f1f5f9;
}

.symbol-range-symbol.custom-symbol .symbol-image {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.symbol-range-description {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 5px;
  font-weight: 500;
}

.symbol-range-hex {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #667eea;
}

.symbol-range-probability {
  color: #34d399;
  font-weight: 600;
  margin-top: 8px;
}

/* Grid Result */
.grid-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  color: #f1f5f9;
}

.grid-cell:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #667eea;
  transform: scale(1.05);
}

.grid-result .grid-cell.custom-symbol .symbol-image,
.grid-cell.custom-symbol .symbol-image {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  object-fit: contain;
}

/* Remove default background for 5x5_find_symbol grid cells */
.grid-result[data-grid-type="5x5_find_symbol"] .grid-cell {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.grid-result[data-grid-type="5x5_find_symbol"] .grid-cell:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #667eea !important;
  box-shadow: none !important;
}

/* Specifically override center cell for 5x5_find_symbol */
.grid-result[data-grid-type="5x5_find_symbol"].grid-5x5 .grid-cell:nth-child(13) {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.grid-result[data-grid-type="5x5_find_symbol"].grid-5x5 .grid-cell:nth-child(13):hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #667eea !important;
  box-shadow: none !important;
}

/* Special styling for center position in 5x5 grid (power tile position) - only for power tile grids */
.grid-result.grid-5x5[data-grid-type="5x5"] .grid-cell:nth-child(13) {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.grid-result.grid-5x5[data-grid-type="5x5"] .grid-cell:nth-child(13):hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 193, 7, 0.15));
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.verification-modal-footer {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 25px;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-note {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.verification-note i {
  color: #667eea;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .verification-modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 85vh;
  }
  
  .verification-modal-header,
  .verification-modal-body,
  .verification-modal-footer {
    padding: 15px 20px;
  }
  
  .verification-modal-header h3 {
    font-size: 18px;
  }
  
  .verification-step {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .verification-step h4 {
    font-size: 15px;
  }
  
  .hash-display {
    padding: 12px;
    gap: 8px;
    flex-direction: column;
  }
  
  .hash-display code {
    font-size: 13px;
    padding: 12px;
  }
  
  .copy-btn {
    align-self: center;
    min-width: 80px;
  }
  
  .hash-breakdown {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
  }
  
  .hash-pair {
    padding: 8px;
  }
  
  .hash-pair-value {
    font-size: 14px;
  }
  
  .hash-pair-symbol {
    font-size: 16px;
    padding: 6px;
  }
  
  .symbol-ranges {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .symbol-range {
    padding: 12px;
  }
  
  .symbol-range-symbol {
    font-size: 20px;
    min-height: 40px;
    padding: 8px;
  }
  
  .grid-result {
    max-width: 250px;
    padding: 15px;
    gap: 8px;
  }
  
  .grid-cell {
    font-size: 16px;
  }
  
  .verification-note {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .verification-modal-content {
    width: 98%;
    margin: 2% auto;
    border-radius: 8px;
  }
  
  .verification-modal-header {
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
  }
  
  .verification-modal-header h3 {
    font-size: 16px;
  }
  
  .verification-modal-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  
  .verification-modal-body {
    padding: 15px;
  }
  
  .verification-step {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .verification-step h4 {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .hash-display {
    padding: 10px;
  }
  
  .hash-display code {
    font-size: 11px;
    padding: 6px;
  }
  
  .hash-breakdown {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .hash-pair {
    padding: 6px;
  }
  
  .hash-pair-label {
    font-size: 10px;
  }
  
  .hash-pair-value {
    font-size: 12px;
  }
  
  .hash-pair-symbol {
    font-size: 14px;
    padding: 4px;
  }
  
  .grid-result {
    max-width: 200px;
    padding: 12px;
    gap: 6px;
  }
  
  .grid-cell {
    font-size: 14px;
  }
  
  .verification-modal-footer {
    padding: 12px 15px;
  }
}

/* ===================================
   MODERN CARD HERO SECTION
   =================================== */

.card-hero-modern {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 3rem 0 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card-hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.card-details-modern {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.card-title-gradient {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45aaf2);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFloat 6s ease-in-out infinite;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.card-title-gradient i {
  font-size: 2rem;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sparkle 2s ease-in-out infinite alternate;
}

.card-description-modern {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
  opacity: 0.9;
}

.card-price-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.price-value {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.price-value:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.free-badge-modern {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.free-badge-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

@keyframes gradientFloat {
  0%, 100% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
}

@keyframes sparkle {
  0% { 
    transform: rotate(0deg) scale(1);
    opacity: 0.8;
  }
  100% { 
    transform: rotate(10deg) scale(1.1);
    opacity: 1;
  }
}

/* Responsive Design for Modern Hero */
@media (max-width: 768px) {
  .card-hero-modern {
    padding: 2rem 0;
  }

  .card-title-gradient {
    font-size: 2rem;
  }

  .card-title-gradient i {
    font-size: 1.8rem;
  }

  .card-description-modern {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .card-title-gradient {
    font-size: 1.8rem;
  }

  .price-value,
  .free-badge-modern {
    font-size: 1.2rem;
  }
}

/* Legacy card-hero cleanup - ensure no conflicts */
.card-hero {
  display: none;
} 