/* Theme - Dark Modern */
:root{
  --bg:#0a0e1a;
  --panel:#111827;
  --panel-elevated:#1a2332;
  --muted:#8892a8;
  --text:#f3f4f6;
  --brand:#8440d5;
  --brand-2:#a55df0;
  --brand-3:#6b2bb5;
  --accent:#00d4aa;
  --danger:#ef4444;
  --ring: rgba(132,64,213,.4);
  --radius:16px;
  --line: rgba(255,255,255,.08);
  --shadow: 0 8px 32px rgba(0,0,0,.4);
  --shadow-glow: 0 0 40px rgba(132,64,213,.2);
}

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  height:100%;
}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  height:100%;
}

.container{width:100%;max-width:1200px;margin:0 auto;padding:0 16px}
@media (min-width: 640px){
  .container{padding:0 24px}
}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(10,14,26,.85);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:72px;position:relative}
.brand{display:flex;gap:8px;align-items:center;text-decoration:none;flex-shrink:0}
.brand-logo{width:36px;height:36px;border-radius:10px;object-fit:cover;box-shadow:0 4px 12px rgba(0,0,0,.3)}
.brand-mark{
  font-family:"Space Grotesk", Inter, sans-serif;
  font-weight:800;
  letter-spacing:.5px;
  background:linear-gradient(135deg,var(--brand),var(--brand-3));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  background-size:100%;
  background-repeat:no-repeat;
  font-size:20px;
}
.brand-sub{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:1.5px;font-weight:600;display:none}
@media (min-width: 420px){
  .brand-sub{display:inline}
  .brand-logo{width:40px;height:40px}
  .brand-mark{font-size:22px}
}
.nav{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.nav-link{color:var(--muted);text-decoration:none;font-weight:600;transition:color .2s;font-size:14px;white-space:nowrap}
.nav-link:hover{color:var(--text)}
@media (max-width: 768px){
  .nav{display:none}
  .nav.mobile-open{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:rgba(10,14,26,.98);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:16px;gap:12px;align-items:stretch}
  .nav.mobile-open .nav-link{padding:12px 0;border-bottom:1px solid var(--line)}
  .nav.mobile-open .nav-link:last-child{border-bottom:none}
  .nav.mobile-open .btn{margin-top:8px}
}
.mobile-menu-toggle{
  display:none;
  background:transparent;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--text);
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:20px;
  padding:0;
}
@media (max-width: 768px){
  .mobile-menu-toggle{display:flex}
}

/* Hero */
.hero{
  padding:60px 0 40px;
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
@media (min-width: 768px){
  .hero{padding:80px 0 50px}
}
@media (min-width: 1024px){
  .hero{padding:100px 0 60px}
}
.hero-inner{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  align-items:center;
  position:relative;
  z-index:1;
}
@media (min-width: 1024px){
  .hero-inner{grid-template-columns:1.1fr .9fr;gap:48px}
}
.hero-left{
  text-align:center;
}
@media (min-width: 1024px){
  .hero-left{text-align:left}
}
.hero-right{
  display:flex;
  justify-content:center;
  position:relative;
}
@media (min-width: 1024px){
  .hero-right{justify-content:flex-end}
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border:none;
  border-radius:999px;
  color:#fff;
  font-size:12px;
  font-weight:600;
  background:var(--brand);
  margin-bottom:16px;
  box-shadow:0 4px 16px rgba(132,64,213,.3);
}
@media (min-width: 640px){
  .badge{padding:10px 16px;font-size:13px;margin-bottom:20px}
}
.hero h1{
  font-family:"Space Grotesk", Inter, sans-serif;
  font-size:32px;
  line-height:1.2;
  margin:0 0 12px;
  color:#fff;
  font-weight:800;
  display:block;
}
@media (min-width: 640px){
  .hero h1{font-size:42px;line-height:1.15;margin:0 0 16px}
}
@media (min-width: 1024px){
  .hero h1{font-size:52px}
}
.hero h1 span#heroTitleSpan,
.hero h1 span{
  display:inline-block;
  background:linear-gradient(135deg,var(--brand),var(--brand-3));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  background-size:100%;
  background-repeat:no-repeat;
  text-shadow:none;
}
.hero p{
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
  margin:0 0 20px;
  max-width:540px;
}
@media (min-width: 1024px){
  .hero p{font-size:16px;line-height:1.7;margin:0 0 24px}
}
.hero-left p{
  margin-left:auto;
  margin-right:auto;
}
@media (min-width: 1024px){
  .hero-left p{
    margin-left:0;
    margin-right:0;
    max-width:540px;
  }
}
.hero-cta{
  display:flex;
  gap:10px;
  margin:0 0 10px;
  flex-wrap:wrap;
  justify-content:center;
}
@media (min-width: 1024px){
  .hero-cta{gap:12px;margin:0 0 12px;justify-content:flex-start}
}
.btn-refcode{
  width:100%;
  max-width:100%;
}
@media (min-width: 420px){
  .btn-refcode{max-width:calc((100% - 12px) / 2)}
}
.feature-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:20px;
}
@media (min-width: 640px){
  .feature-list{gap:10px;margin-top:24px}
}
.feature-item{
  color:var(--text);
  font-size:13px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
}
@media (min-width: 1024px){
  .feature-item{font-size:14px;justify-content:flex-start}
}
/* Stats Card */
.stats-card{
  background:var(--panel-elevated);
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  width:100%;
  max-width:380px;
  box-shadow:0 12px 40px rgba(0,0,0,.4);
  position:relative;
}
.stats-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.stats-icon{
  font-size:24px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  background:rgba(132,64,213,.15);
  border-radius:10px;
}
.stats-title{
  flex:1;
  color:var(--text);
  font-size:18px;
  font-weight:700;
}
.stats-badge{
  background:var(--brand);
  color:#fff;
  padding:6px 12px;
  border-radius:8px;
  font-size:12px;
  font-weight:700;
}
.stats-content{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-bottom:20px;
}
.stat-item{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.stat-item-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:4px;
}
.stat-label{
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}
.stat-value{
  font-size:18px;
  font-weight:800;
  background:linear-gradient(135deg,var(--brand),var(--brand-3));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  background-size:100%;
  background-repeat:no-repeat;
  display:inline-block;
}
.stat-bar{
  height:6px;
  background:rgba(255,255,255,.08);
  border-radius:999px;
  overflow:hidden;
}
.stat-bar-fill{
  height:100%;
  background:var(--brand);
  border-radius:999px;
  transition:width .3s;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:48px;
  padding:0 20px;
  border-radius:12px;
  border:1px solid var(--line);
  color:var(--text);
  text-decoration:none;
  background:var(--panel);
  cursor:pointer;
  font-weight:600;
  font-size:15px;
  transition:all .2s;
}
.btn:hover{background:var(--panel-elevated);transform:translateY(-2px);box-shadow:var(--shadow)}
.btn:focus{outline:2px solid var(--ring);outline-offset:2px}
.btn-primary{
  background:var(--brand);
  border:none;
  color:#fff;
  box-shadow:0 10px 30px rgba(132,64,213,.3);
}
.btn-primary:hover:not(:disabled){box-shadow:0 12px 40px rgba(132,64,213,.4);transform:translateY(-3px)}
.btn-primary:disabled{
  opacity:.5;
  cursor:not-allowed;
  box-shadow:none;
}
.btn-primary:disabled:hover{transform:none;box-shadow:0 10px 30px rgba(132,64,213,.3)}
.btn-ghost{background:transparent;border-color:rgba(255,255,255,.2)}
.btn-ghost:hover{background:rgba(255,255,255,.05)}
.btn-block{width:100%}
.small{height:40px;padding:0 16px;font-size:14px}

/* Sections */
.section{padding:48px 0}
@media (min-width: 768px){
  .section{padding:60px 0}
}
@media (min-width: 1024px){
  .section{padding:72px 0}
}
.section-head{text-align:center;margin-bottom:24px}
@media (min-width: 768px){
  .section-head{margin-bottom:32px}
}
.section-head h2{
  margin:0 0 8px;
  font-size:24px;
  font-weight:800;
  background:linear-gradient(135deg,var(--text),var(--muted));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  background-size:100%;
  background-repeat:no-repeat;
  display:inline-block;
}
@media (min-width: 640px){
  .section-head h2{font-size:28px;margin:0 0 10px}
}
@media (min-width: 1024px){
  .section-head h2{font-size:32px}
}
.section-head p{margin:0;color:var(--muted);font-size:14px;max-width:600px;margin-left:auto;margin-right:auto;padding:0 16px}
@media (min-width: 640px){
  .section-head p{font-size:15px;padding:0}
}
@media (min-width: 1024px){
  .section-head p{font-size:16px}
}

/* Toolbar */
.toolbar{display:flex;gap:12px;align-items:stretch;justify-content:space-between;margin:20px 0 16px;flex-wrap:wrap}
.search{flex:1;min-width:0}
.search input{
  height:44px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--text);
  padding:0 16px;
  width:100%;
  font-size:14px;
  transition:all .2s;
}
@media (min-width: 640px){
  .search input{min-width:200px}
}
.search input:focus{outline:none;border-color:var(--brand);background:var(--panel-elevated)}
.sort{display:flex;align-items:center;gap:8px;color:var(--muted);flex-shrink:0}
.sort label{font-size:13px;white-space:nowrap}
.sort select{
  height:44px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--text);
  padding:0 12px;
  font-size:13px;
  cursor:pointer;
  transition:all .2s;
  min-width:120px;
}
@media (min-width: 640px){
  .sort{gap:10px}
  .sort label{font-size:14px}
  .sort select{padding:0 14px;font-size:14px;min-width:140px}
}
.sort select:focus{outline:none;border-color:var(--brand);background:var(--panel-elevated)}

/* Grid */
.games-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}
.game-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:all .3s;
  cursor:pointer;
}
.game-card{
  cursor:pointer;
}
.game-card:hover{
  transform:translateY(-4px);
  border-color:rgba(132,64,213,.4);
  box-shadow:var(--shadow-glow);
  background:var(--panel-elevated);
}
.game-media{position:relative;aspect-ratio:16/9;background:#0d1220;overflow:hidden}
.game-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.game-card:hover .game-media img{transform:scale(1.05)}
.game-body{padding:16px;display:flex;flex-direction:column;gap:12px}
.game-title{font-weight:700;margin:0;font-size:15px;line-height:1.4;color:var(--text)}
.game-meta{display:flex;align-items:center;justify-content:space-between}
.price{
  font-weight:800;
  background:linear-gradient(135deg,var(--brand),var(--brand-3));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  background-size:100%;
  background-repeat:no-repeat;
  font-size:18px;
  display:inline-block;
}
.old-price{color:var(--muted);text-decoration:line-through;margin-left:8px;font-size:14px}
.tag{
  font-size:11px;
  color:var(--accent);
  border:1px solid rgba(0,212,170,.3);
  padding:4px 10px;
  border-radius:999px;
  background:rgba(0,212,170,.1);
  font-weight:600;
}
.grid-status{margin:24px 0;color:var(--muted);text-align:center;font-size:15px}

/* Why us */
.section-why{padding-top:12px}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:24px}
.why-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  transition:all .3s;
}
.why-card:hover{
  background:var(--panel-elevated);
  border-color:rgba(132,64,213,.3);
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}
.why-card h3{
  margin:0 0 8px;
  color:var(--text);
  font-size:18px;
  font-weight:700;
}
.why-card p{color:var(--muted);font-size:14px;line-height:1.6;margin:0}

/* Channels */
.section-channels{
  padding:32px 0;
  background:var(--panel);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.channels-inner{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:20px}
@media (min-width: 768px){
  .channels-inner{flex-direction:row;align-items:center}
}
.channels-copy{flex:1;min-width:0;width:100%}
@media (min-width: 768px){
  .channels-copy{min-width:300px;width:auto}
}
.channels-copy h3{
  margin:0 0 8px;
  color:var(--text);
  font-size:18px;
  font-weight:700;
}
@media (min-width: 640px){
  .channels-copy h3{font-size:20px}
}
.channels-copy p{color:var(--muted);font-size:13px;line-height:1.6;margin:0}
@media (min-width: 640px){
  .channels-copy p{font-size:14px}
}
.channels-logos{display:flex;gap:12px;flex-wrap:wrap;width:100%}
@media (min-width: 768px){
  .channels-logos{width:auto;gap:14px}
}
.channel-badge{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 14px;
  background:var(--panel-elevated);
  transition:all .2s;
}
@media (min-width: 640px){
  .channel-badge{gap:10px;border-radius:12px;padding:12px 18px}
}
.channel-badge:hover{border-color:rgba(255,107,53,.4);transform:translateY(-2px)}

/* Steps */
.steps{display:grid;grid-template-columns:1fr;gap:16px;margin-top:20px}
@media (min-width: 640px){
  .steps{grid-template-columns:repeat(2,1fr);gap:20px;margin-top:24px}
}
@media (min-width: 1024px){
  .steps{grid-template-columns:repeat(4,1fr)}
}
.step{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  text-align:center;
  transition:all .3s;
}
@media (min-width: 640px){
  .step{border-radius:18px;padding:20px}
}
.step:hover{
  background:var(--panel-elevated);
  border-color:rgba(132,64,213,.3);
  transform:translateY(-3px);
}
.step-num{
  width:40px;
  height:40px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--brand);
  font-weight:800;
  color:#fff;
  font-size:18px;
  margin:0 auto 12px;
  box-shadow:0 4px 16px rgba(132,64,213,.3);
}
@media (min-width: 640px){
  .step-num{width:48px;height:48px;font-size:20px;margin:0 auto 14px}
}
.step h3{margin:0 0 6px;color:var(--text);font-size:15px;font-weight:700}
@media (min-width: 640px){
  .step h3{font-size:17px;margin:0 0 8px}
}
.step p{color:var(--muted);font-size:13px;line-height:1.5;margin:0}
@media (min-width: 640px){
  .step p{font-size:14px}
}
.muted{color:var(--muted)}
.tiny{font-size:12px}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:32px 0;
  background:var(--panel);
  margin-top:32px;
}
@media (min-width: 768px){
  .site-footer{padding:40px 0;margin-top:40px}
}
.footer-inner{display:flex;flex-direction:column;gap:24px}
@media (min-width: 768px){
  .footer-inner{flex-direction:row;justify-content:space-between;gap:32px}
}
.footer-brand{flex:1}
.footer-brand p{color:var(--muted);font-size:13px;line-height:1.6;margin-top:12px}
@media (min-width: 640px){
  .footer-brand p{font-size:14px}
}
.footer-links{display:flex;flex-direction:column;gap:24px}
@media (min-width: 640px){
  .footer-links{flex-direction:row;gap:32px}
}
@media (min-width: 1024px){
  .footer-links{gap:40px}
}
.footer-links h4{margin:0 0 10px;color:var(--text);font-size:15px;font-weight:700}
@media (min-width: 640px){
  .footer-links h4{font-size:16px;margin:0 0 12px}
}
.footer-links a{display:block;color:var(--muted);text-decoration:none;margin:6px 0;font-size:13px;transition:color .2s}
@media (min-width: 640px){
  .footer-links a{margin:8px 0;font-size:14px}
}
.footer-links a:hover{color:var(--text)}
.footer-meta{border-top:1px solid var(--line);margin-top:20px;padding-top:16px;color:var(--muted);font-size:12px;text-align:center}
@media (min-width: 640px){
  .footer-meta{font-size:13px;margin-top:24px}
}

/* Modal */
.modal{position:fixed;inset:0;display:none;z-index:1000}
.modal.show{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.75);backdrop-filter:blur(4px)}
.modal-dialog{
  position:absolute;
  inset:0;
  max-width:980px;
  width:100%;
  height:100%;
  max-height:100vh;
  background:var(--panel);
  border:none;
  border-radius:0;
  overflow-y:auto;
  box-shadow:none;
  display:flex;
  flex-direction:column;
}
@media (min-width: 768px){
  .modal-dialog{
    inset:20px 50%;
    transform:translateX(-50%);
    width:calc(100% - 40px);
    max-height:calc(100vh - 40px);
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:0 24px 80px rgba(0,0,0,.6);
  }
}
.modal-close{
  position:absolute;
  top:12px;
  right:12px;
  height:40px;
  width:40px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--panel-elevated);
  color:var(--text);
  cursor:pointer;
  font-size:24px;
  display:grid;
  place-items:center;
  transition:all .2s;
  z-index:10;
}
.modal-close:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.modal-body{display:flex;flex-direction:column;gap:0;overflow-y:auto}
@media (min-width: 768px){
  .modal-body{display:grid;grid-template-columns:1.1fr .9fr}
}
.modal-media{background:#0d1220;min-height:250px;flex-shrink:0}
@media (min-width: 768px){
  .modal-media{min-height:400px}
}
.modal-media img{width:100%;height:100%;object-fit:cover;display:block}
.modal-content{padding:20px;display:flex;flex-direction:column;gap:14px}
@media (min-width: 768px){
  .modal-content{padding:24px;gap:16px}
}
.modal-content h3{color:var(--text);font-size:20px;font-weight:800;margin:0}
@media (min-width: 768px){
  .modal-content h3{font-size:24px}
}
.modal-content p{color:var(--muted);line-height:1.6;margin:0;font-size:14px}
@media (min-width: 768px){
  .modal-content p{font-size:15px}
}
.price-row{display:flex;align-items:center;justify-content:space-between;margin:8px 0 12px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.purchase-form{display:flex;flex-direction:column;gap:14px;margin-top:8px}
.purchase-form label{display:flex;flex-direction:column;gap:6px;color:var(--text);font-weight:600;font-size:14px}
.purchase-form input{
  height:48px;
  background:var(--panel-elevated);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--text);
  padding:0 16px;
  font-size:15px;
  transition:all .2s;
}
.game-info-box{
  margin-top:16px;
  padding:20px;
  background:var(--panel-elevated);
  border:1px solid var(--line);
  border-radius:12px;
}
.game-info-box p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.6;
}

/* Responsive */
@media (max-width: 1024px){
  .games-grid{grid-template-columns:repeat(3,1fr)}
  .why-grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 680px){
  .games-grid{grid-template-columns:repeat(2,1fr)}
  .why-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .section{padding:40px 0}
}
@media (max-width: 420px){
  .games-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
}

/* Reference Code Section */
.section-refcode{
  padding:48px 0;
  background:var(--panel);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.refcode-box{
  max-width:600px;
  margin:0 auto;
  background:var(--panel-elevated);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:var(--shadow);
}
@media (min-width: 640px){
  .refcode-box{border-radius:20px;padding:32px}
}
.refcode-header{
  text-align:center;
  margin-bottom:24px;
}
.refcode-header h3{
  margin:0 0 8px;
  color:var(--text);
  font-size:24px;
  font-weight:800;
}
.refcode-header p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.refcode-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.refcode-input-group{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.refcode-input-group input{
  flex:1;
  min-width:200px;
  height:48px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--text);
  padding:0 16px;
  font-size:15px;
  transition:all .2s;
}
.refcode-input-group input:focus{
  outline:none;
  border-color:var(--brand);
  background:var(--panel-elevated);
}
.refcode-input-group .btn{
  min-width:180px;
}
.refcode-error{
  padding:12px;
  background:rgba(239,68,68,.1);
  border:1px solid rgba(239,68,68,.3);
  border-radius:10px;
  color:#ef4444;
  font-size:14px;
  text-align:center;
}

/* Account Details Page */
.account-loading,
.account-error{
  text-align:center;
  padding:48px 20px;
}
.account-error h2{
  color:var(--text);
  margin:0 0 12px;
}
.account-error p{
  color:var(--muted);
  margin:0 0 24px;
}
.account-content{
  max-width:700px;
  margin:0 auto;
}
.account-card{
  background:var(--panel-elevated);
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.account-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg, rgba(132,64,213,.05), transparent);
  flex-wrap:wrap;
}
@media (min-width: 640px){
  .account-card-header{gap:20px;padding:28px}
}
.account-header-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex:1;
  min-width:0;
}
@media (min-width: 640px){
  .account-header-left{gap:16px;min-width:200px}
}
.account-logo{
  width:48px;
  height:48px;
  border-radius:12px;
  object-fit:cover;
  box-shadow:0 4px 16px rgba(0,0,0,.3);
  flex-shrink:0;
}
@media (min-width: 640px){
  .account-logo{width:64px;height:64px;border-radius:14px}
}
.account-header-left h1{
  margin:0 0 4px;
  color:var(--text);
  font-size:20px;
  font-weight:800;
  line-height:1.2;
  word-break:break-word;
}
@media (min-width: 640px){
  .account-header-left h1{font-size:26px;margin:0 0 6px}
}
.account-header-left .muted{
  color:var(--muted);
  font-size:12px;
}
@media (min-width: 640px){
  .account-header-left .muted{font-size:14px}
}
.account-header-right{
  display:flex;
  align-items:center;
}
.account-platform{
  background:var(--brand);
  color:#fff;
  padding:10px 18px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.account-card-body{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
@media (min-width: 640px){
  .account-card-body{padding:28px;gap:20px}
}
.detail-item{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
.account-card-body > .detail-item:last-child{
  border-bottom:none;
  padding-bottom:0;
}
.detail-label{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
}
.detail-value-group{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.detail-value{
  color:var(--text);
  font-size:17px;
  font-weight:600;
  font-family:'Courier New', monospace;
  flex:1;
  min-width:200px;
  word-break:break-all;
  padding:12px 16px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px;
}
.account-notes{
  display:flex;
  gap:16px;
  padding:20px;
  background:rgba(132,64,213,.08);
  border:1px solid rgba(132,64,213,.2);
  border-radius:14px;
  margin-top:8px;
}
.account-notes[hidden]{
  display:none !important;
}
.notes-icon{
  font-size:24px;
  flex-shrink:0;
}
.account-notes h3{
  margin:0 0 8px;
  color:var(--text);
  font-size:16px;
  font-weight:700;
}
.account-notes p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}
.account-info-box{
  display:flex;
  gap:16px;
  padding:20px;
  border-radius:14px;
  margin-top:8px;
}
.account-2fa{
  background:rgba(239,68,68,.1);
  border:1px solid rgba(239,68,68,.3);
}
.account-code-needed{
  background:rgba(132,64,213,.08);
  border:1px solid rgba(132,64,213,.2);
}
.info-icon{
  font-size:24px;
  flex-shrink:0;
}
.account-info-box strong{
  display:block;
  margin:0 0 6px;
  font-size:15px;
  font-weight:700;
}
.account-2fa strong{
  color:#ef4444;
}
.account-code-needed strong{
  color:var(--brand);
}
.account-info-box p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.account-get-code{
  margin-top:12px;
  height:52px;
  font-size:16px;
  font-weight:700;
}
.account-get-code:disabled{
  opacity:0.6;
  cursor:not-allowed;
}
.account-get-2fa-code{
  margin-top:12px;
  height:52px;
  font-size:16px;
  font-weight:700;
  background:var(--brand-3);
  border-color:var(--brand-3);
}
.account-get-2fa-code:disabled{
  opacity:0.6;
  cursor:not-allowed;
}
.account-code-result{
  margin-bottom:24px;
  animation:fadeInSlideDown 0.5s ease-out;
}
.account-2fa-result .auth-code-display{
  background:linear-gradient(135deg, var(--brand-3), var(--brand));
}
.auth-code-display{
  background:linear-gradient(135deg, var(--brand), var(--brand-3));
  border-radius:16px;
  padding:32px;
  text-align:center;
  box-shadow:0 10px 40px rgba(132,64,213,.2);
  position:relative;
  overflow:hidden;
}
.auth-code-display::before{
  content:'';
  position:absolute;
  top:-50%;
  left:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  animation:pulse 3s ease-in-out infinite;
}
.auth-code-label{
  display:block;
  font-size:14px;
  font-weight:700;
  color:rgba(255,255,255,.9);
  margin-bottom:12px;
  text-transform:uppercase;
  letter-spacing:1px;
}
.auth-code-value{
  display:block;
  font-size:48px;
  font-weight:900;
  color:#fff;
  letter-spacing:8px;
  font-family:'Space Grotesk', monospace;
  text-shadow:0 4px 12px rgba(0,0,0,.3);
  animation:bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin:16px 0;
  position:relative;
  z-index:1;
}
.auth-code-copy{
  display:block;
  margin:0 auto;
  background:rgba(255,255,255,.15) !important;
  border:1px solid rgba(255,255,255,.3) !important;
  color:#fff !important;
  backdrop-filter:blur(10px);
  transition:all .3s;
  position:relative;
  z-index:1;
}
.auth-code-copy:hover{
  background:rgba(255,255,255,.25) !important;
  transform:scale(1.05);
}

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

@keyframes bounceIn{
  0%{
    opacity:0;
    transform:scale(0.3) translateY(-50px);
  }
  50%{
    opacity:1;
    transform:scale(1.05);
  }
  70%{
    transform:scale(0.95);
  }
  100%{
    transform:scale(1);
  }
}

@keyframes pulse{
  0%, 100%{
    opacity:0;
  }
  50%{
    opacity:1;
  }
}
.account-code-error{
  display:flex;
  gap:16px;
  padding:20px;
  background:rgba(239,68,68,.1);
  border:1px solid rgba(239,68,68,.3);
  border-radius:14px;
  margin-top:12px;
}
.account-code-error[hidden]{
  display:none !important;
}
#accountTimeRemaining{
  background:rgba(255,193,7,.1) !important;
  border:1px solid rgba(255,193,7,.3) !important;
}
#accountTimeRemaining strong{
  color:#f59e0b !important;
}
.error-icon{
  font-size:24px;
  flex-shrink:0;
}
.account-code-error strong{
  display:block;
  margin:0 0 6px;
  font-size:15px;
  font-weight:700;
  color:#ef4444;
}
.account-code-error p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.account-get-code,
.account-get-2fa-code{
  width:100%;
  margin-top:12px;
  padding:12px 18px;
  font-size:14px;
  font-weight:700;
}
@media (min-width: 640px){
  .account-get-code,
  .account-get-2fa-code{
    padding:14px 20px;
    font-size:15px;
  }
}
.account-get-2fa-code{
  background:linear-gradient(135deg, #9b59b6, #8e44ad);
  border:none;
  color:#fff;
  box-shadow:0 10px 30px rgba(155,89,182,.3);
}
.account-get-2fa-code:hover:not(:disabled){
  box-shadow:0 12px 40px rgba(155,89,182,.4);
  transform:translateY(-3px);
}
.account-get-code:disabled,
.account-get-2fa-code:disabled{
  opacity:.5;
  cursor:not-allowed;
  box-shadow:none !important;
  transform:none !important;
}
.account-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:24px;
}
@media (max-width: 680px){
  .refcode-input-group{
    flex-direction:column;
  }
  .refcode-input-group input,
  .refcode-input-group .btn{
    width:100%;
    min-width:auto;
  }
  .detail-value-group{
    flex-direction:column;
    align-items:stretch;
  }
  .detail-value{
    min-width:auto;
    width:100%;
    font-size:15px;
    padding:10px 14px;
  }
  .account-actions{
    flex-direction:column;
  }
  .account-actions .btn{
    width:100%;
  }
}
@media (max-width: 680px){
  .refcode-input-group{
    flex-direction:column;
  }
  .refcode-input-group input,
  .refcode-input-group .btn{
    width:100%;
    min-width:auto;
  }
  .account-card-header{
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
  }
  .account-card-body{
    padding:20px;
  }
  .detail-value-group{
    flex-direction:column;
    align-items:stretch;
  }
  .detail-value{
    min-width:auto;
    width:100%;
  }
  .detail-item{
    padding:16px 0;
  }
  .auth-code-display{
    padding:24px;
  }
  .auth-code-value{
    font-size:36px;
    letter-spacing:4px;
  }
}

/* Select Game Page Styles */
.select-game-content{
  max-width:1200px;
  margin:0 auto;
}
.select-game-grid{
  margin-top:24px;
}
.select-game-card .game-body{
  gap:16px;
}
.select-game-btn{
  margin-top:8px;
  height:48px;
  font-size:15px;
  font-weight:700;
}
.select-game-card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 48px rgba(132,64,213,.3);
}
@media (max-width: 680px){
  .select-game-btn{
    font-size:14px;
    height:44px;
  }
}
