:root {
  --primary: #4c6ef5;
  --primary-rgb: 76, 110, 245;
  --primary-dark: #3b5bdb;
  --accent: #7c3aed;
  --secondary: #f76707;
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --text-light: #f8f9fa;
  --text-gray: #adb5bd;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --xrp-color: #0a93eb;
  --csc-color: #8e44ad;
  --free-color: #43a047;
  --primary-color: #1a1a2e;
  --xrp-color: #0a93eb;
  --csc-color: #8e44ad;
  --secondary-color: #3498db;
  --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;
  --top-bar-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

/* Token selector styles */
.token-selector {
  display: none !important; /* Hide token selector completely */
}

/* Purchase info banner */
.purchase-info-banner {
  margin-top: 1rem;
  background-color: rgba(0, 149, 218, 0.2);
  border: 1px solid rgba(0, 149, 218, 0.5);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Section tabs */
.card-section-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.section-tab {
  padding: 0.5rem 1.5rem;
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: none; /* Remove bottom border */
}

.section-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.section-tab.active {
  background-color: var(--primary);
  color: white;
}

/* Card types */
.free-card {
  display: block;
}

.premium-card {
  display: block;
}

/* Hide cards based on section */
.hide-card {
  display: none;
}

/* Price tag styles */
.price-tag {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.xrp-price, .csc-price {
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-align: center;
}

.xrp-price {
  color: var(--xrp-color);
}

.csc-price {
  color: var(--csc-color);
}

/* Footer links */
.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Info modal styles */
.info-content {
  text-align: left;
  margin: 1.5rem 0;
}

.hash-explanation {
  margin-top: 1.5rem;
}

.hash-explanation h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.hash-explanation ol {
  padding-left: 1.5rem;
}

.hash-explanation li {
  margin-bottom: 0.5rem;
}

/* Scratch cards grid */
.scratch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  /* Remove any token-specific left borders */
  border-left: none !important;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  background: var(--card-hover);
}

.card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 220px;
  position: relative;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

.card-jackpot {
  text-align: center;
  margin: 0.25rem 0 2rem 0;
  animation: jackpot-pulse 10s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.jackpot-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.65;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.jackpot-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.25),
    0 0 20px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(255, 255, 255, 0.08);
}

@keyframes jackpot-pulse {
  0%, 95%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  97.5% {
    transform: scale(1.015);
    opacity: 0.98;
  }
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  overflow: visible;
  text-align: center;
  display: block;
  max-height: 40px; /* Limit height to maintain consistent spacing */
  overflow: hidden;
}

.card-price {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  text-align: center;
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  padding: 0 1.5rem;
}

.entry-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.entry-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  font-weight: 500;
  display: inline-block;
  margin: 0;
}

.main-page .card-price .entry-row .xrp-price,
.main-page .card-price .entry-row .csc-price,
.main-page .card-price .entry-row [class*="-price"] {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  display: inline !important;
  margin-bottom: 0 !important;
  text-align: left !important;
  color: var(--text-color) !important;
}

/* Default play button styles - can be overridden by token-specific styles */
.play-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.play-btn:hover {
  filter: brightness(1.1);
}

/* Premium dark button style for main page */
.main-page .play-btn {
  height: 46px;
  width: 100%;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: linear-gradient(180deg, #1b2431 0%, #131b26 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.18s ease,
              filter 0.18s ease;
}

.main-page .card:hover .play-btn {
  transform: translateY(-2px);
  border-color: rgba(230, 201, 122, 0.25); /* soft champagne */
  filter: brightness(1.06);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.main-page .card:active .play-btn {
  transform: translateY(0px);
  filter: brightness(0.98);
}

.tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.free-tag:not([class*="fa-"]) {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--success-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-inner {
  position: relative;
}

.card-title {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.nft-badge {
  position: absolute;
  top: -8px;
  right: 0;
  transform: translateX(50%);
  color: #ffd700;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: nftTextGlow 2s ease-in-out infinite;
  white-space: nowrap;
  line-height: 1;
}

@keyframes nftTextGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
  }
}

.premium-tag:not([class*="fa-"]) {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--warning-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: var(--dark-color);
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  color: var(--text-color);
}

.auto-signin-info {
  background-color: rgba(0, 149, 218, 0.1);
  border-left: 3px solid rgba(10, 147, 235, 0.7);
  padding: 10px 15px;
  margin: 15px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--secondary);
}

#result-message {
  margin: 2rem 0;
  font-size: 1.25rem;
}

.result-actions {
  margin-top: 1.5rem;
}

#play-again-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#play-again-btn:hover {
  background-color: var(--primary-dark);
}

/* Wallet modal styles */
.wallet-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.wallet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
  padding: 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wallet-btn:hover {
  background-color: var(--primary-dark);
}

.wallet-btn.secondary {
  background-color: transparent;
  border: 1px solid var(--text-gray);
  color: var(--text-light);
}

.wallet-btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.wallet-separator {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-gray);
  width: 80%;
  font-size: 0.9rem;
}

.wallet-separator::before,
.wallet-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--text-gray);
  margin: 0 10px;
}

.wallet-icon {
  font-size: 1.25rem;
}

/* User Balance Display */
.user-balance {
  display: none;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.balance-amount {
  font-weight: bold;
  color: var(--primary);
}

/* Animation for win */
@keyframes win-glow {
  0% { box-shadow: 0 0 10px var(--primary); }
  50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--secondary); }
  100% { box-shadow: 0 0 10px var(--primary); }
}

.win-animation {
  animation: win-glow 2s infinite;
}

/* Generic token styling - consistent for all tokens */
.section-tab[data-section]:not([data-section="all"]) {
  background-color: var(--bg-card);
  color: var(--text-light);
}

.section-tab[data-section]:not([data-section="all"]).active {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scratch-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .modal-content {
    margin: 25% auto;
    width: 90%;
  }
  
  .token-options {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Verification link */
.verify-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.verify-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Verification info styles */
.verification-info {
  text-align: left;
}

.verification-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.hash-info {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: var(--border-radius);
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.hash-info p {
  margin-bottom: 0.5rem;
}

.hash-value {
  color: var(--primary);
  font-size: 0.8rem;
  word-break: break-all;
}

/* Symbols grid display */
.symbols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.symbol-cell {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  font-size: 1.5rem;
  text-align: center;
}

.symbol-cell.winning {
  background-color: rgba(var(--primary), 0.3);
  animation: win-pulse 1.5s infinite;
}

@keyframes win-pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Winning pattern visualization */
.winning-pattern {
  margin: 1rem 0;
  text-align: center;
  font-weight: bold;
}

.winning-pattern-name {
  color: var(--secondary);
}

/* XRPL Hash Card Styles */
.xrpl-hash-card {
  background-color: #1a1a2e;
  /* Removed colored border as requested */
  border-left: none;
}

.xrpl-hash-card .scratch-container {
  height: 100px; /* Lower height for 1x5 layout */
  background-color: #111;
}

.xrpl-hash-card .card-description {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text-gray);
  text-align: center;
}

.hash-info {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: var(--border-radius);
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  margin-top: 1rem;
}

.hash-info p {
  margin-bottom: 0.5rem;
}

.hash-value {
  color: #2962ff;
  font-size: 0.8rem;
  word-break: break-all;
}

.play-now-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.75rem;
  background-color: #2962ff;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.play-now-btn:hover {
  background-color: #0039cb;
}

.play-now-btn:disabled {
  background-color: #555;
  cursor: not-allowed;
}

/* Add specific styles for the win highlighting in XRPL Hash Cards */
.win-result .matching-characters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.win-result .match-char {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  background-color: rgba(0, 170, 0, 0.2);
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
}



/* Enhance hash info for real XRPL data */
.hash-info small {
  color: #aaa;
  font-size: 0.7rem;
}

.hash-info small:has(✓) {
  color: #43a047;
}

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

.waiting-content {
  text-align: center;
  padding: 20px;
  max-width: 80%;
}

.waiting-content p {
  margin: 10px 0;
  color: white;
  font-size: 0.9rem;
}

.waiting-content.error {
  background-color: rgba(180, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
}

.waiting-content .loading-indicator {
  margin: 0 auto 15px;
}

.dismiss-error {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Blocking overlay buttons */
.dismiss-error-btn {
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #ffffff;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.dismiss-error-btn:hover {
  background-color: #f0f0f0;
}

/* Card waiting animation */
@keyframes card-waiting-spin {
  from {
    transform: scale(1.2) rotateY(180deg);
  }
  to {
    transform: scale(1.2) rotateY(540deg); /* Full 360 rotation */
  }
}

.card-loading-animation {
  transition: transform 0.3s ease;
  box-shadow: 0 0 20px rgba(41, 98, 255, 0.6);
  will-change: transform;
  perspective: 1000px;
  backface-visibility: visible;
}

/* Enhanced loading indicator for card animation */
.card-loading-animation .loading-indicator {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

/* Win notification overlay */
.win-notification-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 12px;
  pointer-events: none;
}

.win-notification-overlay.visible {
  display: flex;
  opacity: 1;
  animation: pulseBackground 2s infinite;
}

.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);
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.win-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: bounce 1s infinite alternate;
}

.win-title {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  color: var(--success-color);
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.7);
  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;
}

/* NFT notification specific styles - Gold theme */
.nft-notification-content {
  background-color: rgba(255, 215, 0, 0.15);
  border: 2px solid #ffd700;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  backdrop-filter: blur(5px);
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nft-title {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  font-weight: 700;
}

.nft-details {
  margin-top: 1rem;
  text-align: center;
}

.nft-link-container {
  margin-bottom: 1rem;
}

.nft-link {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: rgba(255, 215, 0, 0.1);
}

.nft-link:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-1px);
}

.nft-link i {
  font-size: 0.8em;
  margin-left: 5px;
  opacity: 0.7;
}

.nft-ok-button {
  background: #ffd700;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  position: relative;
  pointer-events: auto;
}

.nft-ok-button:hover {
  background: #ffed4e;
  transform: translateY(-2px);
}

@keyframes pulseBackground {
  0% { background-color: rgba(0, 0, 0, 0.8); }
  50% { background-color: rgba(0, 0, 0, 0.6); }
  100% { background-color: rgba(0, 0, 0, 0.8); }
}

@keyframes scaleIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Media queries for win notification */
@media (max-width: 768px) {
  .win-notification-content {
    padding: 1.2rem;
  }
  
  .win-icon {
    font-size: 2.5rem;
  }
  
  .win-title {
    font-size: 2rem;
  }
  
  .win-prize {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .win-notification-content {
    padding: 1rem;
    max-width: 90%;
  }
  
  .win-icon {
    font-size: 2rem;
  }
  
  .win-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .win-prize {
    font-size: 1.2rem;
  }
  
  .win-message {
    font-size: 0.9rem;
  }
}

/* ========== Top Bar (Desktop: logo + notifications + account) ========== */
header.top-bar {
  background-color: var(--dark-color);
  color: var(--text-color);
  padding: 0.75rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--top-bar-height);
  box-sizing: border-box;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  z-index: 1001;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-actions .notification-bell-item,
.top-bar-actions .user-account-item {
  margin-left: 0 !important;
  border-left: none;
  padding-left: 0;
}

.connected-wallet {
  display: none;
}

/* ========== Left Sidebar (Desktop: collapsible) ========== */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 256px;
  height: 100vh;
  background: var(--dark-color);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
  z-index: 200;
  transition: width 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-nav.collapsed {
  width: 64px;
}

.sidebar-nav .nav-label {
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav.collapsed .nav-label {
  display: none;
}

.sidebar-collapse-btn {
  flex-shrink: 0;
  background: var(--dark-color) !important;
  background-color: var(--dark-color) !important;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-color);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--top-bar-height);
  min-height: var(--top-bar-height);
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  filter: none;
}

.sidebar-nav.collapsed .sidebar-collapse-btn i {
  transform: rotate(180deg);
}

.sidebar-nav .main-nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav .main-nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.sidebar-nav .main-nav ul li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav .main-nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.sidebar-nav .main-nav ul li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--secondary-color);
}

.sidebar-nav .main-nav ul li a i {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.sidebar-nav.collapsed .main-nav ul li a {
  justify-content: center;
  padding: 1rem;
}

/* Body margin for sidebar (desktop only) */
@media (min-width: 769px) {
  body {
    margin-left: 256px;
  }
  body.sidebar-collapsed {
    margin-left: 64px;
  }
}

@media (max-width: 768px) {
  body {
    margin-left: 0;
    padding-bottom: 80px; /* Space for fixed bottom nav */
  }
}

/* ========== Bottom Nav (Mobile only) ========== */
.bottom-nav {
  display: none;
}

/* ========== Shared notification dropdown (standalone) ========== */
#notification-dropdown {
  position: fixed;
  width: 320px;
  max-width: calc(100vw - 2rem);
  /* top/left/right set by JS to align with bell button */
}

/* ========== Desktop: hide mobile elements ========== */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: flex !important;
}

/* ========== Navigation (legacy - sidebar overrides) ========== */
.main-nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

/* User Account in Navigation - Desktop: bell + account as one block */
.notification-bell-item {
  margin-left: 30px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 20px;
}

.user-account-item {
  margin-left: 12px !important;
  border-left: none;
  padding-left: 0;
}

/* Hide account/notification when user not logged in (overrides mobile-only !important) */
.user-account-item.user-account-hidden,
.notification-bell-item.user-account-hidden {
  display: none !important;
}

.user-account-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-address {
  color: var(--text-color);
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn {
  background: rgba(231, 76, 60, 0.8);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(231, 76, 60, 1);
  transform: translateY(-1px);
}

/* Notification Bell */
.notification-bell-wrapper {
  position: relative;
}

/* Override generic [class*="-btn"] - bell must stay transparent with border only */
.user-account-info .notification-bell-btn,
.notification-bell-item .notification-bell-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--text-color);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  text-align: center;
}

.user-account-info .notification-bell-btn:hover,
.notification-bell-item .notification-bell-btn:hover {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: var(--text-color);
  filter: none;
}

.notification-badge {
  display: none;
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.notification-bell-btn.has-unread .notification-badge {
  display: block;
}

/* Pulsating border and bell when unread */
.user-account-info .notification-bell-btn.has-unread,
.notification-bell-item .notification-bell-btn.has-unread {
  animation: notification-border-pulse 1.5s ease-in-out infinite;
}

.user-account-info .notification-bell-btn.has-unread,
.notification-bell-item .notification-bell-btn.has-unread {
  color: #e74c3c !important;
}

.user-account-info .notification-bell-btn.has-unread i,
.notification-bell-item .notification-bell-btn.has-unread i {
  animation: notification-bell-color 2s ease-in-out infinite;
}

@keyframes notification-border-pulse {
  0%, 100% {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
  }
  50% {
    border-color: rgba(231, 76, 60, 0.6) !important;
    box-shadow: 0 0 8px 2px rgba(231, 76, 60, 0.3);
  }
}

@keyframes notification-bell-color {
  0%, 100% { color: #ffffff !important; }
  50% { color: #e74c3c !important; }
}


.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  width: 320px;
  max-height: 400px;
  background: var(--card-bg, #222831);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1100;
  display: none;
  overflow: hidden;
  flex-direction: column;
}

.notification-dropdown.is-open {
  display: flex;
}

.notification-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 0.95rem;
}

.notification-dropdown-header.no-notifications {
  border-bottom: none;
}

.notification-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px 0;
}

.notification-loading,
.notification-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.notification-dropdown-header.no-notifications + .notification-list .notification-empty {
  padding: 20px 16px;
}

/* Load more - mobile-friendly tap target (min 44px) */
.notification-load-more-wrap {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.notification-load-more-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.notification-load-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-color);
}

.notification-load-more-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.notification-load-more-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.notification-load-more-btn.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: notification-load-spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes notification-load-spin {
  to { transform: rotate(360deg); }
}

.notification-dropdown-footer {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.notification-mark-all-btn {
  background: none;
  border: none;
  color: var(--primary, #4c6ef5);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 0;
  border-radius: 4px;
  width: 100%;
  text-align: center;
}

.notification-mark-all-btn:hover {
  background: rgba(76, 110, 245, 0.1);
}

.notification-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
  background: rgba(76, 110, 245, 0.08);
}

.notification-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.notification-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}

.notification-item-new-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.notification-item-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.notification-item-link {
  font-size: 0.8rem;
  color: var(--primary, #4c6ef5);
  text-decoration: none;
  font-weight: 500;
}

.notification-item-link:hover {
  text-decoration: underline;
}

.notification-item-time {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 4px;
}

/* Notification detail popup */
.notification-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 20px;
}

.notification-popup-overlay.is-open {
  display: flex;
}

.notification-popup {
  background: var(--card-bg, #222831);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.notification-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-popup-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  padding-right: 30px;
}

.notification-popup-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin: -4px -4px 0 0;
}

.notification-popup-close:hover {
  color: var(--text-color);
}

.notification-popup-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 50vh;
}

.notification-popup-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.notification-popup-details {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

.notification-popup-details p {
  margin: 0 0 8px 0;
}

.notification-popup-gift-message {
  font-weight: 500;
  color: var(--text-color);
}

.notification-popup-link {
  display: inline-block;
  color: var(--primary, #4c6ef5);
  font-weight: 500;
  text-decoration: none;
}

.notification-popup-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  background-size: cover;
  background-position: center;
  color: var(--text-color);
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #2980b9;
}

/* Giftcard link - hidden by default, shown only on mobile */
.giftcard-link-mobile {
  display: none;
  margin-top: 1.5rem;
  margin-bottom: -1rem;
  color: #4ecdc4;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0.9;
  width: 100%;
  text-align: center;
}

.giftcard-link-mobile:hover {
  opacity: 1;
  text-decoration: underline;
  color: var(--primary);
}

.giftcard-link-mobile i {
  margin-right: 0.35rem;
  font-size: 0.9rem;
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Section Tabs - Merge with existing but keep new styles */
.section-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #444; /* Keep container border */
}

.section-tab {
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  border-bottom: none; /* Remove bottom border from buttons */
  transition: all 0.3s;
  font-weight: 500;
  color: var(--text-secondary);
}

.section-tab:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Consistent hover state */
  color: var(--text-color);
}

.section-tab.active {
  color: var(--text-color);
  background-color: var(--primary);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card styles - merging but keeping new elements */
.card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

/* REMOVED: Hardcoded token tags */
/*
.xrp-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--xrp-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.csc-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--csc-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
*/

.card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 220px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px; /* Increased height to prevent letter cutoff */
  line-height: 1.4; /* Better line spacing for readability */
  margin-bottom: 15px;
}

.card-price {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

/* Footer - updated styles for simplified footer */
.site-footer {
  background-color: var(--dark-color);
  color: var(--text-color);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.footer-links a:hover {
  color: var(--text-color);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.twitter-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
  .site-footer .footer-content {
    gap: 1rem;
  }
  
  .footer-links {
    gap: 1.5rem;
    flex-direction: column;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
}

/* Wallet modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: var(--dark-color);
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  color: var(--text-color);
}

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

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

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.wallet-button {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #2a2a3a;
  border: 1px solid #444;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-color);
}

.wallet-button:hover {
  background-color: #333344;
  border-color: #555;
}

.wallet-button img {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}

.wallet-button.xaman {
  background-color: #162531;
  border-color: #1f364a;
}

.wallet-button.xaman:hover {
  background-color: #203547;
}

/* Responsive design */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-modern {
    padding: 2rem 0;
  }
  
  .hero-title-gradient {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  /* Show giftcard link on mobile/tablet when hamburger menu is active */
  .giftcard-link-mobile {
    display: block;
  }
  
  .hero-title-gradient i {
    font-size: 1.5rem;
  }
  
  .hero-description-modern {
    font-size: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }

  /* Mobile: Hide desktop elements, show mobile elements */
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: flex !important;
  }
  
  .sidebar-nav .main-nav ul li.mobile-only {
    display: flex !important;
  }
  
  /* Must come after mobile-only: hide account/notification when user not logged in */
  .sidebar-nav .main-nav ul li.user-account-item.user-account-hidden,
  .sidebar-nav .main-nav ul li.notification-bell-item.user-account-hidden {
    display: none !important;
  }
  
  /* Mobile: Sidebar slides in from left, below the header - height stops above bottom nav */
  .sidebar-nav {
    width: 280px;
    top: 64px; /* Start below header so logo stays visible */
    height: calc(100vh - 64px - 80px - env(safe-area-inset-bottom, 0px));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar-nav.active {
    transform: translateX(0);
  }
  
  .sidebar-nav .sidebar-collapse-btn {
    display: none; /* Hide collapse on mobile - use Menu button */
  }
  
  /* Mobile: Remove weird line (border-left) from notification bell */
  .sidebar-nav .main-nav ul li.notification-bell-item.mobile-only {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  
  .sidebar-nav .main-nav ul li.mobile-only .notification-bell-wrapper {
    padding: 1rem 1.5rem;
  }
  
  .sidebar-nav .main-nav ul li.mobile-only .notification-bell-btn {
    padding: 12px 18px !important;
    font-size: 1.25rem !important;
  }
  
  /* Mobile: Account at bottom of sidebar - padding ensures it stays above bottom nav + browser chrome */
  .sidebar-nav .main-nav ul {
    min-height: 100%;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  
  .sidebar-nav .main-nav ul li.user-account-item.mobile-only {
    margin-top: auto !important;
    border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
  }
  
  .sidebar-nav .user-account-info {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 1rem 1.5rem;
  }
  
  .sidebar-nav .account-address {
    font-size: 0.85rem;
    padding: 6px 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    word-break: break-all;
    border-radius: 4px;
  }
  
  .sidebar-nav .logout-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 5px;
    font-weight: 600;
  }
  
  /* Mobile: Bottom navigation bar */
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--dark-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 48px;
    min-height: 48px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .bottom-nav-item i {
    font-size: 1.25rem;
  }
  
  .bottom-nav-item:hover,
  .bottom-nav-item:focus,
  .bottom-nav-item.active {
    color: var(--secondary-color);
  }
  
  .bottom-nav-item--center {
    /* Optional: center item emphasis */
  }
  
  .bottom-nav-item--menu {
    position: relative;
  }
  
  .bottom-nav-notification-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translate(50%, -50%);
    margin-right: -12px;
    width: 14px;
    height: 14px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid var(--dark-color);
    display: none;
  }
  
  .bottom-nav-notification-badge.has-unread {
    display: block;
  }
  
  /* Mobile: Notification dropdown centered */
  #notification-dropdown {
    width: calc(100vw - 32px) !important;
    max-width: 320px !important;
    /* Position set by JS to align with bell button */
  }
  
  /* Mobile overlay - starts below header so logo stays visible */
  .mobile-nav-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Smaller iPhone screens (iPhone SE, iPhone mini, etc.) */
@media (max-width: 480px) {
  .main-nav ul {
    padding: 60px 0 0 0; /* Reduced top padding for smaller screens */
    min-height: 100vh;
    height: auto; /* Allow natural height instead of forcing 100% */
  }
  
  .user-account-item {
    margin-top: 0 !important; /* Remove auto margin that pushes it down */
    margin-bottom: 0 !important;
  }
  
  .user-account-info {
    padding: 0.75rem 1rem;
    gap: 4px;
  }
  
  .account-address {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
  
  .logout-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  /* Ensure mobile-tabs stay compact on smallest screens */
  .mobile-tabs {
    gap: 0.15rem !important;
    padding: 0 0.15rem 1rem 0.15rem !important;
  }
  
  .mobile-tabs .section-tab {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.85rem !important;
  }
  
  .mobile-tabs .clear-filter-btn {
    width: 1.75rem !important;
    height: 1.75rem !important;
    font-size: 0.7rem !important;
    margin-right: 0.2rem !important;
  }
}

/* Desktop/Mobile tab visibility */
.mobile-tabs {
  display: none;
}

.desktop-tabs {
  display: flex;
}

/* Section tabs mobile improvements - tablets and below */
@media (max-width: 768px) {
  .desktop-tabs {
    display: none;
  }
  
  .mobile-tabs {
    display: flex;
    padding: 0 0.15rem 1rem 0.15rem;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 2rem;
    border-bottom: 1px solid #444;
    justify-content: flex-start;
    align-items: center;
    gap: 0.15rem;
  }
  
  .mobile-tabs .section-tab {
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    white-space: nowrap;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .mobile-tabs .section-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .mobile-tabs .section-tab.active {
    background-color: var(--primary);
    color: white;
  }
  
  /* Clear filter button - smaller and more compact like Netflix */
  .mobile-tabs .clear-filter-btn {
    padding: 0 !important;
    font-size: 0.7rem;
    min-width: auto;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(128, 128, 128, 0.3) !important;
    margin-right: 0.2rem;
  }
  
  .mobile-tabs .clear-filter-btn:hover {
    background-color: rgba(128, 128, 128, 0.5) !important;
  }
  
  /* Dropdown styles */
  .section-tab-dropdown {
    position: relative;
  }
  
  .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
  }
  
  .dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s;
  }
  
  .dropdown-toggle.active i {
    transform: rotate(180deg);
  }
  
  /* Style dropdown toggle when active (selected token) - multiple selectors for maximum coverage */
  .mobile-tabs .section-tab.dropdown-toggle.active,
  .mobile-tabs .dropdown-toggle.active,
  .section-tab.dropdown-toggle.active,
  .dropdown-toggle.active {
    background-color: #4c6ef5 !important;
    color: white !important;
  }
  
  /* Additional backup rule with hard-coded color */
  [class*="dropdown-toggle"][class*="active"] {
    background-color: #4c6ef5 !important;
    color: white !important;
  }
  
  .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 120px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .dropdown-item:last-child {
    border-bottom: none;
  }
  
  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 576px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-modern {
    padding: 2rem 0;
  }
  
  .hero-title-gradient {
    font-size: 1.75rem;
  }
  
  .section-tabs {
    flex-wrap: wrap;
    gap: 0.15rem;
    justify-content: center;
    padding: 0 0.15rem 1rem 0.15rem;
  }
  
  .section-tab {
    flex: 0 1 auto;
    min-width: auto;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem 0.65rem;
  }
  
  /* Mobile optimizations for card content */
  .card-inner {
    height: 230px;
    padding: 1.25rem;
  }
  
  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
  
  .jackpot-label {
    font-size: 0.65rem;
  }
  
  .jackpot-value {
    font-size: 1.2rem;
  }
  
  .card-jackpot {
    margin: 0.2rem 0 1.5rem 0;
  }
  
  .entry-row {
    gap: 0.3rem;
  }
  
  .entry-label {
    font-size: 0.8rem;
  }
  
  .entry-row [class*="-price"] {
    font-size: 0.9rem !important;
  }
  
  .main-page .play-btn,
  .main-page .cards-grid .play-btn {
    height: 44px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  
  /* Ensure mobile-tabs stay compact on smaller screens too */
  .mobile-tabs {
    gap: 0.15rem !important;
    padding: 0 0.15rem 1rem 0.15rem !important;
  }
  
  .mobile-tabs .section-tab {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.85rem !important;
  }
  
  .mobile-tabs .clear-filter-btn {
    width: 1.75rem !important;
    height: 1.75rem !important;
    font-size: 0.7rem !important;
    margin-right: 0.2rem !important;
  }
  
  header .container {
    flex-wrap: nowrap;
  }
  
  .logo {
    margin-bottom: 0;
  }
  
  .main-nav {
    width: 100%;
  }
}

/* Win animation */
@keyframes winPulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Token-specific buttons */
/* 
.xrp-btn {
  background-color: var(--xrp-color);
}

.xrp-btn:hover {
  background-color: #0077aa;
}

.csc-btn {
  background-color: var(--csc-color);
}

.csc-btn:hover {
  background-color: #7b2cbf;
}
*/

.free {
  font-weight: 600;
  color: var(--success-color);
  margin-bottom: 0.8rem;
  text-align: center;
}

/* Index page specific card styles */
.cards-grid .card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  /* Override any token-specific left borders */
  border-left: none !important;
}

.cards-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  background: var(--card-hover);
}

.cards-grid .card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 220px;
  position: relative;
}

.cards-grid .card-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

.cards-grid .card-jackpot {
  text-align: center;
  margin: 0.25rem 0 2rem 0;
  animation: jackpot-pulse 10s ease-in-out infinite;
  animation-delay: calc(var(--card-index, 0) * 0.5s);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.cards-grid .jackpot-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.65;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.cards-grid .jackpot-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.25),
    0 0 20px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(255, 255, 255, 0.08);
}

.cards-grid .card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px; /* Increased height to prevent letter cutoff */
  line-height: 1.4; /* Better line spacing for readability */
  margin-bottom: 15px; /* Keep original spacing */
}

.cards-grid .card-price {
  display: flex;
  flex-direction: column;
  margin-top: 15px; /* Fixed spacing from description */
  margin-bottom: 0px; /* Equal spacing before button */
}

.cards-grid .entry-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.cards-grid .entry-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  font-weight: 500;
  display: inline-block;
  margin: 0;
}

.main-page .cards-grid .card-price .entry-row .xrp-price,
.main-page .cards-grid .card-price .entry-row .csc-price,
.main-page .cards-grid .card-price .entry-row [class*="-price"] {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  display: inline !important;
  margin-bottom: 0 !important;
  text-align: left !important;
  color: var(--text-color) !important;
}

.cards-grid .xrp-price,
.cards-grid .csc-price,
.cards-grid .free {
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-align: center;
}

/* REMOVED: Hardcoded token price colors */
/*
.cards-grid .xrp-price {
  color: var(--xrp-color);
}

.cards-grid .csc-price {
  color: var(--csc-color);
}
*/

/* Default grid button styles - token-specific styles should override these */
.cards-grid .play-btn {
  /* Same as .play-btn but scoped to grid */
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

/* Premium dark button style for main page cards grid */
.main-page .cards-grid .play-btn {
  height: 46px;
  width: 100%;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: linear-gradient(180deg, #1b2431 0%, #131b26 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.18s ease,
              filter 0.18s ease;
}

.main-page .cards-grid .card:hover .play-btn {
  transform: translateY(-2px);
  border-color: rgba(230, 201, 122, 0.25); /* soft champagne */
  filter: brightness(1.06);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.main-page .cards-grid .card:active .play-btn {
  transform: translateY(0px);
  filter: brightness(0.98);
}

/* REMOVED: Hardcoded hover styles */
/*
.cards-grid .play-btn:hover {
  background-color: #2980b9;
}

.cards-grid .csc-btn:hover {
  background-color: #7b2cbf;
}

.cards-grid .xrp-btn:hover {
  background-color: #0077aa;
}
*/

/* Dynamic token colors override */
.cards-grid .play-btn:hover {
  filter: brightness(1.1);
}

/* Dynamic token colors - These get populated by the server dynamically */
:root {
  /* Default gray fallback colors - backend colors will override these */
  --token-default: #6c757d;  /* Gray default for all tokens */
  --xrp-color: #6c757d; 
  --csc-color: #6c757d;
  /* Other tokens will be added here dynamically */
}

/* Token styling system - applied to all tokens dynamically */

/* Token-colored tags/badges (exclude grid-type-tag) */
[class*="-tag"]:not(.grid-type-tag) {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--token-default);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Token-colored prices */
[class*="-price"] {
  font-weight: 600;
  color: var(--token-default);
  margin-bottom: 0.8rem;
  text-align: center;
}

/* Token-colored buttons */
[class*="-btn"] {
  background-color: var(--token-default);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

/* Universal hover for all token buttons */
[class*="-btn"]:hover {
  filter: brightness(1.1);
}

/* Token-colored card accents - REMOVED */
/* [data-token] {
  border-left: 3px solid var(--primary);
} */

/* Blockchain-specific tag styles - must override generic tag styling */
.xrpl-tag { background-color: #4c6ef5 !important; }
.solana-tag { background-color: #9945FF !important; }

/* Grid type tag - small tag at bottom-left of card image */
.grid-type-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grid type colors matching blockchain */
.grid-type-tag.grid-type-xrpl {
  background-color: rgba(76, 110, 245, 0.85);
}

.grid-type-tag.grid-type-solana {
  background-color: rgba(153, 69, 255, 0.85);
}


.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 120px;
}

.grid-3x3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 180px;
}

.grid-4x4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 240px;
}

.grid-5x5 {
  grid-template-columns: repeat(5, 1fr);
  max-width: 300px;
}

.grid-cell {
  width: 50px;
  height: 50px;
  background-color: var(--dark-color);
  border: 1px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 4px;
}

.grid-cell.winning {
  background-color: var(--success-color);
  color: white;
  animation: pulse 1.5s infinite;
}

.grid-cell.power-tile {
  background-color: var(--warning-color);
  color: white;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.fairness-box {
  background-color: rgba(58, 123, 213, 0.1);
  border: 1px solid rgba(58, 123, 213, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.important-note {
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-color);
}

.verification-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.verification-card {
  background-color: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.verification-icon {
  color: var(--success-color);
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.verification-card h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.verification-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Odds information styling */
.odds-info {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: normal;
  opacity: 0.8;
}

.fairness-icon {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.token-example {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0 4px;
}

.xrp-example { background-color: var(--xrp-color); }
.csc-example { background-color: var(--csc-color); }
.free-example { background-color: var(--success-color); }

.winning-patterns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.pattern-card {
  background-color: var(--dark-color);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.pattern-title {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

.hash-demo {
  background-color: var(--dark-color);
  padding: 1rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9rem;
  margin: 1rem 0;
  overflow-wrap: break-word;
}

.hash-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
  justify-content: center;
}

.hash-pair {
  background-color: var(--card-bg);
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  min-width: 60px;
}

.hash-hex {
  font-family: monospace;
  color: var(--secondary-color);
  font-size: 0.8rem;
}

.hash-symbol {
  font-size: 1.2rem;
  margin-top: 4px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.cta-section {
  text-align: center;
  margin: 4rem 0;
  padding: 3rem 2rem;
  background-color: var(--card-bg);
  border-radius: 12px;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* How It Works Page - Base Styles */
.how-it-works-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.step-section {
  background-color: var(--card-bg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.step-title {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.grid-demo {
  display: grid;
  gap: 8px;
  margin: 1.5rem auto;
  justify-content: center;
}

/* How It Works Responsive Design */
@media (max-width: 768px) {
  .how-it-works-content {
    padding: 1rem;
  }
  
  .step-section {
    padding: 1.5rem;
  }
  
  .step-title {
    font-size: 1.3rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step-number {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
  
  .winning-patterns {
    grid-template-columns: 1fr;
  }
  
  .grid-cell {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .grid-2x2 {
    max-width: 100px;
  }
  
  .grid-3x3 {
    max-width: 150px;
  }
  
  .grid-4x4 {
    max-width: 200px;
  }
  
  .grid-5x5 {
    max-width: 250px;
  }
}

/* ===================================
   MODERN HERO SECTION (SHARED)
   =================================== */

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

.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;
}

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

.hero-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;
}

.hero-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;
}

.hero-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;
}

@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;
  }
}

/* How It Works Page Styles */