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

  /* Override Telegram theme variables to always stay dark */
  :root {
    --tg-theme-bg-color: #1a0a0f !important;
    --tg-theme-secondary-bg-color: #2d1b3d !important;
    --tg-theme-text-color: #ffffff !important;
    --tg-theme-hint-color: rgba(255, 255, 255, 0.5) !important;
    --tg-theme-link-color: #ff84b7 !important;
    --tg-theme-button-color: #fd0877 !important;
    --tg-theme-button-text-color: #ffffff !important;
    color-scheme: dark !important;
  }

  /* ========================================
     CSS VARIABLES FOR THEMING
     ======================================== */
  :root, body.theme-dark {
    /* Dark theme colors */
    --bg-gradient-start: #1a0a0f;
    --bg-gradient-mid: #2d1b3d;
    --bg-gradient-end: #1f0d1a;
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.5);

    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 132, 183, 0.2);
    --card-hover-shadow: rgba(253, 8, 119, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --nav-bg: rgba(20, 10, 20, 0.8);
    --nav-border: rgba(255, 132, 183, 0.3);

    --gradient-overlay-1: rgba(253, 8, 119, 0.15);
    --gradient-overlay-2: rgba(138, 43, 226, 0.15);
  }


  .paywall-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 24px;
    width: 100%;
    border: 1px solid var(--card-border);
  }

  body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%) !important;
    font-family: 'Play', sans-serif;
    color: var(--text-primary) !important;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    display: block;
    position: relative;
    overflow-x: hidden;
  }

  @media (max-width: 480px) {
    body,
    .paywall-container {
      max-width: 100%;
      width: 100%;
      margin: 0;
      padding: 1rem;
      border-radius: 0;
      min-height: 100vh;
    }
    
    body {
      display: block;
    }
  }

  /* HEADLINE */
  .headline {
    text-align: center;
    font-size: 24px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 132, 183, 0.99) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(253, 8, 119, 0.5);
  }

  /* FEATURES / CHECKLIST */
  .features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 132, 183, 0.1);
  }

  .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  .feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
  }

  /* Emoji icon instead of checkmark */
  .feature-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    filter: drop-shadow(0 2px 8px rgba(253, 8, 119, 0.5));
  }

  /****************************************************************
   * PRICING SECTION: We'll create "cards" for each plan
   ****************************************************************/
  .pricing-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: slideInUp 0.5s ease;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .plan-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  .plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253, 8, 119, 0.3);
  }

  /* For the pink background on the "Yearly" card */
  .plan-card.active {
    background: linear-gradient(135deg, rgba(253, 8, 119, 0.3) 0%, rgba(138, 43, 226, 0.3) 100%);
    box-shadow: 0 8px 32px rgba(253, 8, 119, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 132, 183, 0.5);
  }

  /* Card Title (Yearly, Three months, Monthly) */
  .plan-title {
    font-family: 'Mplus 1p', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: rgba(255, 132, 183, 0.99); /* pinkish text */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* The old price (strikethrough) */
  .old-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Port Lligat Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    /* text-decoration: line-through; */
  }

  /* Price row: star, discount badge, final price, etc. */
  .price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
  }

  .star {
    font-size: 20px;
    font-family: 'Playfair Display SC', serif;
    color: #ffc107; /* or black if you prefer, but gold star looks nice */
    margin-left: auto;
    margin-right: 0.25rem;
  }

  .price-big {
    font-family: 'Alfa Slab One', cursive;
    font-size: 32px;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-left: 0;
  }
  .price-big span {
    font-family: 'Podkova', serif;
    font-size: 14px;
    color: #BDBDBD;
  }

  .discount-badge {
    background: linear-gradient(135deg, rgba(253, 8, 119, 0.9) 0%, rgba(138, 43, 226, 0.9) 100%);
    border-radius: 50px;
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: white;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(253, 8, 119, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .crystal-bonus {
    font-family: 'Play', sans-serif;
    font-size: 13px;
    color: #c44dff;
    margin-top: 0.5rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(196, 77, 255, 0.4);
  }

  /* ========================================
     PAYMENT METHOD SELECTOR
     ======================================== */
  .payment-methods {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 1rem;
  }

  .payment-method {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.75rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
      font-size: 14px;
  }

  .payment-method.active {
      border-color: rgba(255, 132, 183, 0.99);
      background: rgba(255, 132, 183, 0.15);
  }

  .payment-method:not(.active):hover {
      border-color: rgba(255, 255, 255, 0.4);
  }

  .payment-icon {
      font-size: 20px;
  }

  .payment-label {
      font-family: 'Play', sans-serif;
      color: #fff;
  }

  /* ========================================
     PAYPAL CARD FIELDS
     ======================================== */
  .card-form {
      margin-bottom: 1rem;
  }

  .card-field-container {
      margin-bottom: 0.75rem;
  }

  .card-field-label {
      display: block;
      font-family: 'Play', sans-serif;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.6);
      margin-bottom: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }

  .card-field {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 10px;
      padding: 2px;
      min-height: 44px;
      transition: border-color 0.2s;
  }

  .card-field:hover {
      border-color: rgba(255, 132, 183, 0.5);
  }

  .card-field.focused {
      border-color: rgba(255, 132, 183, 0.99);
      box-shadow: 0 0 0 2px rgba(255, 132, 183, 0.15);
  }

  .card-field.invalid {
      border-color: #ff6b6b;
  }

  .card-field-row {
      display: flex;
      gap: 0.75rem;
  }

  .card-field-half {
      flex: 1;
  }

  .card-pay-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
  }

  .card-pay-btn.processing {
      opacity: 0.7;
      pointer-events: none;
  }

  .card-error {
      color: #ff6b6b;
      font-size: 14px;
      margin-top: 0.75rem;
      text-align: center;
      font-family: 'Play', sans-serif;
  }

  .card-success {
      color: #4caf50;
      font-size: 16px;
      font-weight: 700;
      margin-top: 1rem;
      text-align: center;
      font-family: 'Play', sans-serif;
      padding: 1rem;
      background: rgba(76, 175, 80, 0.1);
      border: 1px solid rgba(76, 175, 80, 0.3);
      border-radius: 12px;
  }

  .payment-divider {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin: 1rem 0;
      color: rgba(255, 255, 255, 0.4);
      font-size: 13px;
      font-family: 'Play', sans-serif;
  }

  .payment-divider::before,
  .payment-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, 0.15);
  }

  #paypal-button-container {
      margin-bottom: 0.5rem;
  }

  #google-pay-container {
      margin-bottom: 0.25rem;
  }

  .paypal-badge {
      text-align: center;
      margin-top: 0.75rem;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.4);
      font-family: 'Play', sans-serif;
  }

  /****************************************************************
   * CONTINUE BUTTON
   ****************************************************************/
  .continue-btn, .spin-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, rgba(253, 8, 119, 0.8) 0%, rgba(138, 43, 226, 0.8) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(253, 8, 119, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 132, 183, 0.5);
    border-radius: 20px;
    padding: 1rem;
    font-family: 'Songti TC', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .continue-btn::before, .spin-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .continue-btn:hover::before, .spin-button:hover::before {
    width: 300px;
    height: 300px;
  }

  .continue-btn{
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    padding: 0.875rem;
    font-size: 24px;
  }
  .continue-btn:hover, .spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(253, 8, 119, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  /****************************************************************
   * RESPONSIVE ADJUSTMENTS
   ****************************************************************/
  @media (max-width: 480px) {
    .headline {
      font-size: 20px;
    }
    .plan-title {
      font-size: 16px;
    }
    .price-big {
      font-size: 28px;
    }
    .feature-item {
      font-size: 14px;
      padding: 8px 10px;
    }
    .feature-icon {
      width: 28px;
      height: 28px;
      font-size: 18px;
    }
    .paywall-container {
      padding: 1rem;
    }
  }

  .strike-price {
    text-decoration: line-through;
  }

  /* Updated countdown styles */
  .countdown-section {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-family: 'Play', sans-serif;
    padding: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 132, 183, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .countdown-text {
    font-size: 18px;
    color: rgba(255, 132, 183, 0.99);
    margin-bottom: 0.25rem;
    width: 100%;
    text-shadow: 0 2px 10px rgba(253, 8, 119, 0.5);
  }

  .countdown-timer {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 132, 183, 0.99) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(253, 8, 119, 0.5));
  }

  /* Updated responsive adjustments */
  @media (max-width: 480px) {
    .countdown-text {
      font-size: 16px;
    }
    .countdown-timer {
      font-size: 32px;
    }
    .countdown-section {
      padding: 10px;
      margin-bottom: 0.5rem;
    }
  }
  .plan-card.pressed {
    transform: scale(0.97);
    transition: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;           
  }

  .continue-btn.pressed {
    transform: scale(0.97);
    transition: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;           
  }

  .plan-card:active {
    transform: scale(0.94);
    transition: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;           
  }

  .continue-btn:active {
    transform: scale(0.94);
    transition: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;           
  }
  .wheel-container {
    margin: 20px auto;
    position: relative;
    z-index: 1;
}

button {
    background: #c41e3a;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
}

button:hover {
    background: #a01830;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

h1 {
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 5px 0;
    position: relative;
    z-index: 1;
}

/* Page Management */
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: 100px;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* When elements should become visible, we'll remove this class */
.visible {
  display: block !important;
} 
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, var(--gradient-overlay-1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, var(--gradient-overlay-2) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
h1 {
  font-size: 24px;
  text-align: center;
  margin: 20px 0;
  padding: 0 16px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 132, 183, 0.99) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(253, 8, 119, 0.5));
}
.wheel-container {
  position: relative;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: linear-gradient(135deg, rgba(253, 8, 119, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
  backdrop-filter: blur(30px) saturate(150%);
  border-radius: 50%;
  border: 2px solid;
  border-color: rgba(253, 8, 119, 0.4);
  box-shadow:
    0 0 40px rgba(253, 8, 119, 0.3),
    0 0 80px rgba(138, 43, 226, 0.2),
    inset 0 0 60px rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.3);
}
.pointer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 70px;
  background: linear-gradient(135deg, #fd0877 0%, #8a2be2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 0 20px rgba(253, 8, 119, 1))
    drop-shadow(0 0 40px rgba(138, 43, 226, 0.8));
  opacity: 1.0;
  z-index: 1;
  animation: pointerPulse 2s ease-in-out infinite;
}
.pointer::after {
  content: "▲";
  display: block;
  transform: rotate(0deg) translateY(-10px);
}

@keyframes pointerPulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(253, 8, 119, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(253, 8, 119, 1));
  }
}
/* #spin-button {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: var(--tg-theme-button-color, #2481cc);
  color: var(--tg-theme-button-text-color, #ffffff);
  cursor: pointer;
} */
#spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
canvas {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(253, 8, 119, 0.4));
}
.product-info {
  text-align: center;
  margin: 8px auto;
  max-width: 400px;
  padding: 8px;
  display: none; /* Hide subscription options initially */
}
.product-info h2 {
  font-size: 16px;
  margin: 0 0 4px 0;
}
.subscription-option {
  background: rgba(40, 10, 20, 0.8);
  border-radius: 12px;
  padding: 15px;
  margin: 8px 0;
  color: white;
  cursor: pointer;
  border: 2px solid rgba(255, 192, 203, 0.3);
  transition: transform 0.2s;
}
.subscription-option:hover {
  transform: scale(1.02);
}
.subscription-option h3 {
  font-size: 20px;
  margin: 0;
  color: var(--text-primary);
}
.price-display {
  font-size: 28px;
  font-weight: bold;
  margin: 8px 0;
  color: white;
}
.price-display .currency {
  font-size: 20px;
  color: #FFD700;
}
.price-display .period {
  font-size: 14px;
  opacity: 0.8;
}
.original-price {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 12px;
  margin-bottom: 4px;
}
.initial-price {
  text-align: center;
  margin: 8px auto;
  max-width: 400px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 132, 183, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: white;
}
.initial-price h2 {
  font-size: 20px;
  margin: 0 0 12px 0;
}
.initial-price .price-display {
  font-size: 40px;
  font-weight: bold;
  margin: 8px 0;
  color: white;
}
.initial-price .currency {
  font-size: 30px;
  color: #FFD700;
}
.initial-price .period {
  font-size: 18px;
  opacity: 0.8;
}
.countdown-container {
  background: rgba(40, 10, 20, 0.8);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  border: 2px solid rgba(255, 192, 203, 0.3);
  display: none;
}

.countdown-container h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 30px;
  margin-top: 0;
}

/* Custom styles for flipdown */
.flipdown {
  margin: 0 auto;
}

.flipdown .rotor {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.flipdown .rotor,
.flipdown .rotor-leaf,
.flipdown .rotor-leaf-front,
.flipdown .rotor-leaf-rear,
.flipdown .rotor-top,
.flipdown .rotor-bottom,
.flipdown .rotor:after {
  color: #FFD700 !important;
}

/* Update this selector to target the ::before pseudo-element */
#flipdown.flipdown .rotor-group:nth-child(n) .rotor-group-heading::before,
.flipdown.flipdown__theme-dark .rotor-group-heading::before {
  color: #FFFFFF !important;
}

/* .flipdown .rotor-group-label {
  color: rgba(255, 255, 255, 0.8) !important;
} */

/* Make flipdown responsive */
@media (max-width: 550px) {
  .flipdown {
      transform: scale(0.8);
      margin: -20px auto;
  }
}

@media (max-width: 400px) {
  .flipdown {
      transform: scale(0.6);
      margin: -40px auto;
  }
}

/* ========================================
   CHARACTER GRID STYLES
   ======================================== */
.character-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px;
  padding-bottom: 100px;
}

.character-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px var(--card-hover-shadow);
  border-color: rgba(255, 132, 183, 0.5);
}

.character-card:active {
  transform: translateY(-2px) scale(0.98);
}

.card-image-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(40, 20, 30, 0.8) 0%, rgba(60, 30, 50, 0.8) 100%);
  position: relative;
}

.card-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

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

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

.card-name {
  padding: 12px 16px;
  font-family: 'Play', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
  text-align: center;
  background: linear-gradient(to right, rgba(253, 8, 119, 0.2), rgba(138, 43, 226, 0.2));
  position: relative;
  z-index: 2;
}

/* ========================================
   SETTINGS STYLES
   ======================================== */
.settings-container {
  padding: 24px 20px;
  padding-bottom: 100px;
}

.settings-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
  text-shadow: 0 2px 20px rgba(253, 8, 119, 0.5);
}

.settings-section {
  margin-bottom: 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.section-label {
  font-family: 'Play', sans-serif;
  font-size: 20px;
  color: rgba(255, 132, 183, 0.99);
  margin-bottom: 16px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(253, 8, 119, 0.3);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-primary);
  font-family: 'Play', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 8, 119, 0.2);
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(253, 8, 119, 0.3) 0%, rgba(138, 43, 226, 0.3) 100%);
  border-color: rgba(255, 132, 183, 0.6);
  box-shadow: 0 6px 24px rgba(253, 8, 119, 0.4);
}

.lang-btn:active {
  transform: translateY(0) scale(0.96);
}

.lang-flag {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.style-toggle {
  display: flex;
  gap: 12px;
}

.style-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: 'Play', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.style-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 8, 119, 0.2);
}

.style-btn.active {
  background: linear-gradient(135deg, rgba(253, 8, 119, 0.3) 0%, rgba(138, 43, 226, 0.3) 100%);
  border-color: rgba(255, 132, 183, 0.6);
  box-shadow: 0 6px 24px rgba(253, 8, 119, 0.4);
}

.style-btn:active {
  transform: translateY(0) scale(0.96);
}

.style-icon {
  font-size: 36px;
  filter: drop-shadow(0 2px 8px rgba(255, 132, 183, 0.3));
}

/* ========================================
   BOTTOM NAVIGATION
   ======================================== */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  width: calc(100% - 32px);
  height: 70px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--nav-border);
  padding: 8px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 24px;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 16px;
  color: var(--text-tertiary);
  font-family: 'Play', sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(253, 8, 119, 0.8), rgba(138, 43, 226, 0.8));
  border-radius: 0 0 3px 3px;
  transition: width 0.3s ease;
}

.nav-tab.active::before {
  width: 60%;
}

.nav-tab.active {
  color: rgba(255, 132, 183, 0.99);
  background: rgba(253, 8, 119, 0.1);
}

.nav-tab:active {
  transform: scale(0.94);
}

.nav-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.5;
}

.nav-tab.active .nav-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(253, 8, 119, 0.8));
}

.nav-tab.active .nav-icon svg {
  stroke-width: 2.8;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.nav-label {
  font-weight: 500;
  letter-spacing: 0.5px;
}


/* ==================== SUB-TABS ==================== */

.sub-tabs {
  display: flex;
  gap: 0;
  margin: 0 16px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
}

.sub-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.sub-tab.active {
  background: linear-gradient(135deg, #ff6b9d, #c44dff);
  color: #fff;
}

/* ==================== CRYSTAL BALANCE CARD ==================== */

.crystal-balance-card {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(253, 8, 119, 0.2));
  border: 1px solid rgba(138, 43, 226, 0.4);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin: 0 16px 20px;
}

.crystal-balance-header {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.crystal-balance-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.crystal-icon-big {
  font-size: 36px;
}

#crystal-balance-value {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #c44dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== CRYSTAL FEATURES ==================== */

.crystal-features {
  margin: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crystal-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.crystal-feature-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  flex-shrink: 0;
}

.crystal-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crystal-feature-text strong {
  color: #fff;
  font-size: 15px;
}

.crystal-feature-text span {
  color: #888;
  font-size: 13px;
}

/* ==================== CRYSTAL PACKS ==================== */

.crystal-packs {
  margin: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crystal-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.crystal-pack:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
}

.crystal-pack.popular {
  background: linear-gradient(135deg, rgba(253, 8, 119, 0.15), rgba(138, 43, 226, 0.15));
  border: 1px solid rgba(253, 8, 119, 0.4);
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #ff6b9d, #c44dff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crystal-pack-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.crystal-pack-amount {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.crystal-pack-desc {
  color: #888;
  font-size: 12px;
}

.crystal-pack-price {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 10px;
}

