/* ============================================================
   Watch & Earn — Premium Design System v2
   Dark Gold-Green Theme + Glassmorphism + Smooth Animations
   ============================================================ */

:root {
  --bg-deep: #07100D;
  --bg-panel: rgba(19, 29, 25, 0.85);
  --bg-panel-solid: #131D19;
  --bg-panel-2: rgba(20, 35, 28, 0.9);
  --bg-panel-2-solid: #14231C;
  --line: rgba(255, 255, 255, 0.07);
  --line-gold: rgba(232, 184, 75, 0.25);

  --gold-1: #E8B84B;
  --gold-2: #F4D06F;
  --gold-3: #FBE9A8;
  --emerald-1: #1FAF7C;
  --emerald-2: #27C98F;
  --emerald-deep: #0D2B22;

  --text-hi: #F0F5F2;
  --text-mid: #8FA89F;
  --text-low: #526058;

  --red: #EF4444;
  --green: #22C55E;

  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shadow-gold: 0 8px 32px rgba(232, 184, 75, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.7);
  --glow-gold: 0 0 30px rgba(232, 184, 75, 0.35);
  --glow-emerald: 0 0 30px rgba(31, 175, 124, 0.3);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; }

/* ===== Keyframes ===== */
@keyframes fadeIn       { from { opacity: 0 }                        to { opacity: 1 } }
@keyframes fadeUp       { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: translateY(0) } }
@keyframes fadeDown     { from { opacity: 0; transform: translateY(-12px) } to { opacity: 1; transform: translateY(0) } }
@keyframes slideUp      { from { opacity: 0; transform: translateY(40px) } to { opacity: 1; transform: translateY(0) } }
@keyframes popScale     { from { opacity: 0; transform: scale(.85) }  to { opacity: 1; transform: scale(1) } }
@keyframes bounceIn     { 0% { opacity: 0; transform: scale(.65) } 65% { opacity: 1; transform: scale(1.04) } 100% { transform: scale(1) } }
@keyframes shimmer      { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }
@keyframes pulseGlow    { 0%,100% { box-shadow: var(--glow-gold) } 50% { box-shadow: 0 0 50px rgba(232,184,75,0.65) } }
@keyframes pulseGlowSm  { 0%,100% { box-shadow: 0 0 12px rgba(232,184,75,0.3) } 50% { box-shadow: 0 0 24px rgba(232,184,75,0.55) } }
@keyframes floatBob     { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes rotateSlow   { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes spinRing     { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes counterUp    { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }
@keyframes glowPulse    { 0%,100% { opacity: .45 } 50% { opacity: .8 } }
@keyframes marqueeTick  { 0% { transform: translateX(100%) } 100% { transform: translateX(-100%) } }
@keyframes particleFly  { 0%   { opacity: 1; transform: translate(0,0) scale(1) }
                          100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0) } }
@keyframes navSlideIn   { from { transform: translateY(80px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes tabSlide     { from { opacity: 0; transform: translateX(14px) } to { opacity: 1; transform: translateX(0) } }
@keyframes ripple       { 0%   { transform: scale(0); opacity: .35 } 100% { transform: scale(2.5); opacity: 0 } }
@keyframes skeletonPulse { 0%,100% { opacity: .45 } 50% { opacity: .8 } }

/* ===== Body & Device Shell ===== */
body {
  background: var(--bg-deep);
  font-family: 'Hind Siliguri', 'Poppins', system-ui, sans-serif;
  color: var(--text-hi);
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Subtle animated mesh bg */
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(31,175,124,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 90%, rgba(232,184,75,0.06) 0%, transparent 55%);
}

.device {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 90px;
  animation: fadeIn .35s ease;
}

/* ===== Topbar ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(7,16,13,0.98) 0%, rgba(7,16,13,0.88) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  animation: fadeDown .4s ease;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: conic-gradient(from 200deg, var(--gold-1), var(--gold-2), var(--emerald-1), var(--gold-1));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 14px;
  animation: pulseGlowSm 3s ease-in-out infinite;
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 15px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wallet-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-gold);
  padding: 8px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 2px 12px rgba(232,184,75,0.12);
}
.wallet-chip:active { transform: scale(.93); }
.wallet-chip .amt {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Poppins', sans-serif; font-weight: 700;
}

/* ===== Promo Banner ===== */
.promo {
  margin: 12px 16px 14px;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(232,184,75,0.28) 0%, transparent 55%),
    radial-gradient(80% 90% at 0% 100%, rgba(31,175,124,0.18) 0%, transparent 55%),
    linear-gradient(140deg, #0F2219 0%, #0C1820 60%, #12100A 100%);
  border: 1px solid rgba(232,184,75,0.18);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fadeUp .5s ease .05s backwards;
}
.promo::before {
  content: '';
  position: absolute; top: -40px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(232,184,75,0.2) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
.promo h1 { font-size: 22px; font-weight: 700; line-height: 1.35; position: relative; z-index: 1; }
.promo p  { margin-top: 6px; font-size: 13px; color: var(--text-mid); position: relative; z-index: 1; }
.dots { display: flex; gap: 5px; margin-top: 18px; position: relative; z-index: 1; }
.dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all .35s ease;
}
.dots span.on { width: 18px; background: var(--gold-2); border-radius: 99px; }

/* ===== Notice Marquee ===== */
.notice {
  margin: 0 16px 16px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  overflow: hidden;
  animation: fadeUp .45s ease .1s backwards;
}
.notice-tag {
  display: flex; align-items: center; gap: 4px;
  background: linear-gradient(90deg, var(--red), #FF6B6B);
  color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 5px 9px; border-radius: 7px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239,68,68,0.35);
}
.notice-track { overflow: hidden; white-space: nowrap; flex: 1; }
.notice-track span {
  display: inline-block;
  font-size: 12px; color: var(--text-mid);
  animation: marqueeTick 18s linear infinite;
}

/* ===== Balance Card ===== */
.balance-card {
  margin: 0 16px 20px;
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  background: linear-gradient(135deg, #C9921A 0%, #E8B84B 40%, #F4D06F 70%, #E8B84B 100%);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-gold), 0 12px 40px rgba(232,184,75,0.25);
  animation: fadeUp .55s ease .14s backwards;
}
.balance-card::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.balance-card::after {
  content: '';
  position: absolute; bottom: -30px; left: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.balance-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.balance-label { font-size: 12.5px; font-weight: 600; color: rgba(18,36,29,0.75); }
.balance-bdt {
  font-family: 'Poppins', sans-serif;
  font-size: 36px; font-weight: 800;
  color: #12241D; line-height: 1.1;
  margin-top: 4px;
  animation: counterUp .6s cubic-bezier(.2,.9,.3,1.2) .25s backwards;
}
.balance-usd { margin-top: 3px; font-size: 13px; font-weight: 600; color: rgba(18,36,29,0.7); }
.add-fund-btn {
  background: rgba(12,20,16,0.85);
  backdrop-filter: blur(10px);
  color: var(--gold-2);
  font-weight: 700; font-size: 12.5px;
  padding: 10px 16px; border-radius: 999px;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.add-fund-btn:active { transform: scale(.92); }
.balance-stats {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; position: relative; z-index: 1;
}
.balance-stats .stat {
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 10px 6px; text-align: center;
  transition: transform .15s ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.balance-stats .stat:active { transform: scale(.94); }
.balance-stats .stat b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 16px; font-weight: 800;
  color: #12241D;
}
.balance-stats .stat span { display: block; font-size: 10.5px; font-weight: 600; color: rgba(18,36,29,0.7); margin-top: 2px; }
.vip-upsell-btn {
  display: block; margin-top: 14px; text-align: center;
  background: rgba(10,16,13,0.82);
  backdrop-filter: blur(10px);
  color: var(--gold-2); font-weight: 700; font-size: 12.5px;
  padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid rgba(232,184,75,0.25);
  transition: transform .15s ease;
  position: relative; z-index: 1;
  animation: pulseGlowSm 3.2s ease-in-out infinite;
}
.vip-upsell-btn:active { transform: scale(.96); }

/* ===== Section ===== */
.section { margin: 0 16px 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 16px; font-weight: 700; }
.vip-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(90deg, rgba(232,184,75,0.14), rgba(31,175,124,0.14));
  border: 1px solid var(--line-gold);
  padding: 5px 12px 5px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--gold-2);
  backdrop-filter: blur(8px);
  transition: transform .15s ease;
}
.vip-pill:active { transform: scale(.93); }

/* ===== Video Grid ===== */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.video-card {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-card);
  animation: fadeUp .4s ease backwards;
  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
}
.video-card:nth-child(1) { animation-delay: .18s; }
.video-card:nth-child(2) { animation-delay: .24s; }
.video-card:nth-child(3) { animation-delay: .3s;  }
.video-card:nth-child(4) { animation-delay: .36s; }
.video-card:nth-child(n+5) { animation-delay: .4s; }
.video-card:hover  { transform: translateY(-2px); border-color: var(--line-gold); box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 16px rgba(232,184,75,0.12); }
.video-card:active { transform: scale(.95); }

.video-thumb {
  position: relative; aspect-ratio: 9/13;
  background: linear-gradient(160deg, #0F2019, #0A1410);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.video-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(31,175,124,0.08) 0%, transparent 70%);
}
.video-thumb .play {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform .2s ease, background .2s ease;
  z-index: 1;
}
.video-card:hover .play { transform: scale(1.1); background: rgba(232,184,75,0.2); }
.video-thumb .play::after {
  content: '';
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid rgba(255,255,255,0.9);
  margin-left: 3px;
}
.badge {
  position: absolute; font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
}
.badge.dur {
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.badge.reward {
  top: 8px; right: 8px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: #12241D;
  box-shadow: 0 2px 8px rgba(232,184,75,0.4);
  animation: pulseGlowSm 2.4s ease-in-out infinite;
}
.video-info { padding: 10px 10px 12px; }
.video-info .title { font-size: 12px; font-weight: 600; color: var(--text-hi); line-height: 1.4; }
.video-info .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.video-info .views { font-size: 10.5px; color: var(--text-low); }
.watch-btn {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: #12241D; border: none;
  font-weight: 700; font-size: 10.5px;
  padding: 6px 11px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(232,184,75,0.3);
}
.watch-btn:active { transform: scale(.88); }

/* ===== Skeleton Loader ===== */
.skeleton-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skeleton-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.skeleton-thumb {
  aspect-ratio: 9/13;
  background: linear-gradient(90deg, var(--bg-panel-solid) 25%, var(--bg-panel-2-solid) 50%, var(--bg-panel-solid) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-info { padding: 10px; }
.skeleton-line {
  height: 10px; border-radius: 6px; margin-bottom: 7px;
  background: linear-gradient(90deg, var(--bg-panel-solid) 25%, var(--bg-panel-2-solid) 50%, var(--bg-panel-solid) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.tiny  { width: 40%; height: 8px; }

/* ===== Bottom Navigation ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(9, 16, 13, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(232,184,75,0.12);
  display: grid; grid-template-columns: repeat(5,1fr);
  padding: 10px 4px 18px;
  animation: navSlideIn .5s cubic-bezier(.2,.9,.3,1.1) backwards;
  z-index: 50;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; color: var(--text-low); font-weight: 600;
  transition: color .2s ease, transform .15s ease;
  padding: 2px 0;
  position: relative;
}
.nav-item:active { transform: scale(.88); }
.nav-item .ic {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.nav-item.active { color: var(--gold-2); }
.nav-item.active .ic { transform: translateY(-2px); }
.nav-item.active::after {
  content: '';
  position: absolute; bottom: -10px;
  width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  border-radius: 99px;
  animation: fadeIn .3s ease;
}
.nav-item svg { width: 21px; height: 21px; }
.nav-item.center .ic {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  margin-top: -24px;
  box-shadow: var(--shadow-gold), 0 0 0 4px rgba(7,16,13,0.9);
  color: #12241D;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  animation: pulseGlowSm 2.4s ease-in-out infinite;
  transition: transform .2s ease;
}
.nav-item.center:active .ic { transform: scale(.85); }

/* ===== Overlay ===== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(4, 8, 6, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 60;
  animation: fadeIn .25s ease;
}
.welcome-card {
  width: 100%; max-width: 370px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(232,184,75,0.12) 0%, transparent 55%),
    linear-gradient(160deg, #0F2219, #0A1610);
  border: 1px solid rgba(232,184,75,0.22);
  padding: 28px 24px 24px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-deep), 0 0 60px rgba(232,184,75,0.12);
  animation: bounceIn .45s cubic-bezier(.2,.9,.3,1.1);
}
.welcome-card::before {
  content: ''; position: absolute;
  top: -60px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(232,184,75,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 20px;
  background: conic-gradient(from 200deg, var(--gold-1), var(--gold-2), var(--emerald-1), var(--gold-1));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: var(--glow-gold);
  animation: pulseGlow 2.6s ease-in-out infinite, floatBob 4s ease-in-out infinite;
  position: relative; z-index: 1;
}
.welcome-card h2 {
  text-align: center; font-size: 20px; font-weight: 700;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px; position: relative; z-index: 1;
}
.welcome-card p {
  text-align: center; font-size: 13px; line-height: 1.75;
  color: var(--text-mid); margin-bottom: 20px;
  position: relative; z-index: 1;
}
.channel-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.channel-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-panel-2);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 10px 12px;
  animation: fadeUp .35s ease backwards;
  transition: border-color .2s ease;
}
.channel-item:hover { border-color: var(--line-gold); }
.channel-item:nth-child(1) { animation-delay: .1s; }
.channel-item:nth-child(2) { animation-delay: .17s; }
.channel-item:nth-child(3) { animation-delay: .24s; }
.channel-item .ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(42,171,238,0.3);
}
.channel-item .label { flex: 1; font-size: 13px; font-weight: 600; }
.join-btn {
  border: 1px solid var(--line-gold);
  background: rgba(232,184,75,0.08);
  color: var(--gold-2);
  font-weight: 700; font-size: 11.5px;
  padding: 7px 14px; border-radius: 999px;
  transition: transform .15s ease, background .2s ease;
  backdrop-filter: blur(8px);
}
.join-btn:active { transform: scale(.92); }
.join-btn.joined { color: var(--green); border-color: rgba(34,197,94,0.35); }
.start-btn {
  width: 100%; padding: 14px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 15px; color: #12241D;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  box-shadow: var(--shadow-gold);
  transition: transform .15s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.start-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.start-btn:active { transform: scale(.96); box-shadow: none; }

/* ===== Page title & Generic Card ===== */
.page-title {
  padding: 20px 18px 6px;
  font-size: 19px; font-weight: 700;
  animation: fadeUp .4s ease backwards;
}

.card {
  margin: 0 16px 16px;
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  animation: fadeUp .4s ease backwards;
  transition: border-color .2s ease;
}
.card:hover { border-color: rgba(232,184,75,0.12); }

/* ===== Form Fields ===== */
.field { margin-bottom: 16px; animation: fadeUp .35s ease backwards; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-mid); margin-bottom: 7px; letter-spacing: .3px;
}
.field input, .field select {
  width: 100%;
  background: rgba(9, 16, 13, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--text-hi);
  font-size: 13.5px; padding: 13px 15px;
  border-radius: var(--radius-sm); outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .2s ease;
}
.field input:focus, .field select:focus {
  border-color: var(--gold-1);
  box-shadow: 0 0 0 3px rgba(232,184,75,0.12), 0 2px 12px rgba(232,184,75,0.08);
  background: rgba(12, 22, 18, 0.9);
}
.field select option { background: #131D19; }

.primary-btn {
  width: 100%; padding: 14px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 14.5px; color: #12241D;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  box-shadow: var(--shadow-gold);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  position: relative; overflow: hidden;
}
.primary-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 55%);
}
.primary-btn:active { transform: scale(.96); box-shadow: none; }
.primary-btn:disabled { opacity: .5; transform: none; cursor: not-allowed; }

/* ===== Method Tabs (deposit/withdraw) ===== */
.method-tabs {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; margin-bottom: 18px;
}
.method-tab {
  text-align: center; padding: 11px 6px;
  border-radius: var(--radius-sm);
  background: rgba(9,16,13,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--text-mid);
  transition: all .25s ease; cursor: pointer;
}
.method-tab:active { transform: scale(.93); }
.method-tab.active {
  background: linear-gradient(90deg, rgba(232,184,75,0.15), rgba(31,175,124,0.12));
  border-color: var(--line-gold);
  color: var(--gold-2);
  box-shadow: 0 0 14px rgba(232,184,75,0.12);
}

/* ===== Item cards (packages) ===== */
.item-card {
  transition: transform .15s ease, border-color .2s ease;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 10px;
  background: rgba(12,22,18,0.7);
  backdrop-filter: blur(12px);
  display: flex; justify-content: space-between; align-items: center;
}
.item-card:hover  { border-color: var(--line-gold); }
.item-card:active { transform: scale(.97); }
.item-card .name  { font-weight: 700; font-size: 13.5px; }
.item-card .desc  { font-size: 11.5px; color: var(--text-mid); margin-top: 3px; }
.buy-btn {
  border: none;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: #2B1400; font-weight: 700; font-size: 12px;
  padding: 9px 16px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 2px 10px rgba(232,184,75,0.3);
}
.buy-btn:active { transform: scale(.9); box-shadow: none; }

/* ===== Ripple effect utility ===== */
.ripple-btn {
  position: relative; overflow: hidden;
}
.ripple-btn .ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  pointer-events: none;
  transform: scale(0);
  animation: ripple .55s linear;
}

/* ===== Status messages ===== */
.msg-ok  { font-size: 12.5px; color: var(--green); text-align: center; padding: 10px 0; }
.msg-err { font-size: 12.5px; color: var(--red);   text-align: center; padding: 10px 0; }

/* ===== Scroll-to-top smooth ===== */
html { scroll-behavior: smooth; }
