:root{
  --top:#141414;
  --topStroke:#242424;

  --cardTop:#2e2e2e;
  --cardBot:#292929;
  --cardStroke:#5c5c5c;

  --rowBg:#2b2b2b;
  --rowStroke:#565656;
  --rowHover:#303030;

  --txt:#ffffff;
  --muted:#b9b9b9;

  --green:#8bd44b;
  --shadow: 0 18px 55px rgba(0,0,0,.60);
}
/* LIGHT THEME OVERRIDES */
body[data-theme="light"]{
  --top:#f6f6f6;
  --topStroke:#d9d9d9;

  --cardTop:#ffffff;
  --cardBot:#f5f5f5;
  --cardStroke:#d0d0d0;

  --rowBg:#ffffff;
  --rowStroke:#d0d0d0;
  --rowHover:#ececec;

  --txt:#111111;
  --muted:#555555;

  --shadow: 0 18px 55px rgba(0,0,0,.18);
}
body[data-theme="light"] .page-bg{
  background:
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.88)),
    url("/assets/bg.jpg") center/cover no-repeat;
}
body[data-theme="light"] .page-bg::after{
  background: radial-gradient(900px 700px at 50% 35%, rgba(255,255,255,.20), rgba(255,255,255,.82));
}

body[data-theme="light"] .lang-btn,
body[data-theme="light"] .nav-chip,
body[data-theme="light"] .lessons-back{
  background:#fff;
  border-color:#d0d0d0;
  color:#111;
}

body[data-theme="light"] .input-wrapper{
  background: rgba(255,255,255,0.75);
  border:1px solid rgba(0,0,0,0.12);
}
body[data-theme="light"] .input-wrapper input{
  color:#111;
}
body[data-theme="light"] .form-group label{
  color:#333;
}
body[data-theme="light"] .back-link{
  color:#222;
}

*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family: Arial, Helvetica, sans-serif;
  color:var(--txt);
  background:#000;
  overflow-x:hidden;
}

/* background car */
.page-bg{
  position:fixed;
  inset:0;
  z-index:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.78)),
    url("/assets/bg.jpg") center/cover no-repeat;
}
.page-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 700px at 50% 35%, rgba(0,0,0,.18), rgba(0,0,0,.72));
}

/* topbar */
.navbar{
  position:sticky;
  top:0;
  z-index:5;
  background: var(--top);
  border-bottom:1px solid var(--topStroke);
}
.nav-container{
  max-width: 1200px;
  margin:0 auto;
  padding: 10px 14px;
  display:flex;
  align-items:center;
  gap:12px;
}

/* left */
.nav-left{min-width:80px; display:flex; align-items:center;}


/* center langs */
.lang-center{
  flex:1;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.lang-btn{
  cursor:pointer;
  border:1px solid #2e2e2e;
  background:#191919;
  color:#e8e8e8;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1;
  position:relative;
  white-space:nowrap;
}
.lang-btn.active::before{
  content:"";
  position:absolute;
  left:6px;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:14px;
  background: var(--green);
  border-radius: 2px;
}

/* right */
.nav-right{
  min-width: 220px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.nav-chip{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #2f2f2f;
  background:#191919;
  color:#eaeaea;
  padding: 0px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space:nowrap;
}
.nav-btn{ text-decoration:none; cursor:pointer; }

/* main center */
.main-wrapper{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 38px 14px 40px;
}

.modal-card{
  width: min(760px, 100%);
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  border: 1px solid var(--cardStroke);
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
}

/* title */
.title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size: 24px;
  font-weight: 700;
  text-align:center;
}
.subtitle{
  margin-top: 10px;
  text-align:center;
  color: var(--muted);
  font-size: 13px;
}
.divider{
  margin: 14px 0 16px;
  height:1px;
  background: #5a5a5a;
  opacity:.65;
}

/* rows */
.menu-container{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.menu-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
  border: 1px solid var(--rowStroke);
  background: var(--rowBg);
  cursor:pointer;
}
.menu-row:hover{ background: var(--rowHover); }
.menu-row span{
  font-size: 16px;
  font-weight: 700;
}
.menu-row.locked{
  opacity:.65;
  cursor:not-allowed;
}

/* icons */
.icon-blue{color:#65a8ff}
.icon-white{color:#ffffff}
.icon-red{color:#ff6b6b}
.icon-gold{color:#f7c948}
.icon-gray{color:#cfcfcf}

/* bottom social */
.social-footer{
  margin-top: 26px;
  display:flex;
  justify-content:center;
  gap:16px;
}
.social-footer a{
  width:44px;
  height:44px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid #6a6a6a;
  background: transparent;
  color:var(--txt);
  text-decoration:none;
}
.social-footer a:hover{ background: rgba(255,255,255,0.06); }

/* overlay login */
.login-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:20;
  background: rgba(0,0,0,.65);
  align-items:center;
  justify-content:center;
  padding:18px;
}
.login-card{
  width:min(560px, 100%);
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  border:1px solid var(--cardStroke);
  box-shadow: var(--shadow);
  padding: 18px;
  border-radius: 8px;
}

.login-title{
  font-size:18px;
  font-weight:700;
  margin: 6px 0 12px;
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#ddd;
  text-decoration:none;
  font-size: 13px;
}
.alert{
  background:#3a1c1c;
  border:1px solid #7a2b2b;
  padding:10px 12px;
  border-radius:8px;
  margin-bottom:12px;
  color:#ffdede;
}

/* tg btn */
.tg-login-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #2f6fff;
  background: rgba(47,111,255,0.15);
  color:#e9f2ff;
  cursor:pointer;
}
.or-line{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 12px 0;
  color:#cfcfcf;
  font-size: 12px;
}
.or-line::before,.or-line::after{
  content:"";
  height:1px;
  flex:1;
  background:#4e4e4e;
  opacity:.7;
}

.form{ margin-top: 6px; }
.form-group{ margin-top: 10px; }
.form-group label{ display:block; font-size: 12.5px; color:#d7d7d7; }
.input-wrapper{
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  border:1px solid rgba(255,255,255,0.12);
}
.input-wrapper input{
  width:100%;
  background:transparent;
  border:none;
  outline:none;
  color:var(--txt);
  font-size: 14px;
}
.toggle-pass{ cursor:pointer; opacity:.85; }

.submit-btn{
  width:100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color:#fff;
  cursor:pointer;
  font-weight:700;
}
.submit-btn.ghost{
  background: rgba(255,255,255,0.04);
}

.reg-wrap{ margin-top:14px; }
.reg-title{ color:#dcdcdc; font-size: 12.5px; margin-bottom:6px; }
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.form-wide{ grid-column: 1 / -1; }

/* RESPONSIVE */
@media (max-width: 720px){
  .modal-card{ padding: 20px 16px 16px; }
  .menu-row span{ font-size: 15px; }
  .nav-right{ min-width:auto; }
}
@media (max-width: 520px){
  .title{ font-size: 20px; }
  .menu-container{ gap:12px; }
  .menu-row{ padding: 12px 12px; }
  .form-grid{ grid-template-columns: 1fr; }
}

.text-link-wrap{
  margin-top: 12px;
  text-align:center;
}
.text-link{
  color:#dcdcdc;
  text-decoration: underline;
  font-size: 13px;
  cursor:pointer;
}
.text-link:hover{
  color:var(--txt);
}
/* ===== Lessons page (topics) ===== */
.lessons-page{
  position:relative;
  z-index:1;
  padding: 28px 18px 40px;
}

.page-title{
  text-align:center;
  font-size: 22px;
  font-weight: 800;
  margin: 10px 0 22px;
  color:var(--txt);
}

/* grid */
.topics-grid{
  max-width: 1200px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* card */
.topic-card{
  position: relative;
min-height: 150px;
  border-radius: 6px;
  background: #171717;
  border: 1px solid #4f4f4f;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding: 18px;
  transition: .15s ease;
}

.topic-card:hover{
  transform: translateY(-2px);
  background:#1b1b1b;
  border-color:#6b6b6b;
}

.topic-title{
  color:var(--txt);
  text-align:center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

/* loading */
.loading{
  color:#d0d0d0;
  text-align:center;
  padding: 30px 0;
  grid-column: 1 / -1;
}

/* responsive */
@media (max-width: 1100px){
  .topics-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px){
  .topics-grid{ grid-template-columns: repeat(2, 1fr); }
  .topic-card{ min-height: 130px; }
}
@media (max-width: 520px){
  .topics-grid{ grid-template-columns: 1fr; }
  .topic-card{ min-height: 110px; }
  .topic-title{ font-size: 16px; }
}


/* ===== Lessons page ===== */
.lessons-page{
  position:relative;
  z-index:1;
  padding: 18px 18px 40px;
}

.lessons-head{
  max-width: 1200px;
  margin: 0 auto 16px;
  display:flex;
  align-items:center;
  gap:12px;
}

.lessons-back{
  width:42px;
  height:42px;
  border-radius:6px;
  border:1px solid #2f2f2f;
  background:#191919;
  color:var(--txt);
  cursor:pointer;
}

.lessons-spacer{ width:42px; height:42px; opacity:0; }

.page-title{
  flex:1;
  text-align:center;
  font-size: 22px;
  font-weight: 800;
  color:var(--txt);
  margin:0;
}

/* grid */
.topics-grid{
  max-width: 1200px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* card */
.topic-card{
  min-height: 150px;
  border-radius: 6px;
  background: #171717;
  border: 1px solid #4f4f4f;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding: 18px;
  transition: .15s ease;
}

.topic-card:hover{
  transform: translateY(-2px);
  background:#1b1b1b;
  border-color:#6b6b6b;
}

.topic-title{
  color:var(--txt);
  text-align:center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.loading{
  color:#d0d0d0;
  text-align:center;
  padding: 30px 0;
  grid-column: 1 / -1;
}

/* responsive */
@media (max-width: 1100px){
  .topics-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px){
  .topics-grid{ grid-template-columns: repeat(2, 1fr); }
  .topic-card{ min-height: 130px; }
}
@media (max-width: 520px){
  .topics-grid{ grid-template-columns: 1fr; }
  .topic-card{ min-height: 110px; }
  .topic-title{ font-size: 16px; }
}
/* ===== Topic page ===== */
.topic-page{
  position:relative;
  z-index:1;
  padding: 18px 18px 40px;
}

.topic-card-box{
  max-width: 800px;
  margin: 18px auto 0;
  background: #1b1b1b;
  border: 1px solid #4f4f4f;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  padding: 22px;
}

.topic-big-title{
  text-align:center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.topic-sub{
  text-align:center;
  color:#cfcfcf;
  font-size: 13px;
  margin-bottom: 16px;
}
/* ===== Test page ===== */
.test-page{ padding: 18px; position:relative; z-index:2; }
.test-qtext{
  color:#fff; font-size:20px; font-weight:800;
  background: rgba(0,0,0,.35);
  border:1px solid #2b2b2b;
  padding:12px 14px; margin: 0 auto 14px;
  max-width: 1280px;
}
.test-body{
  max-width:1280px; margin:0 auto;
  display:grid; grid-template-columns: 520px 1fr; gap:16px;
}
.test-answers{ display:flex; flex-direction:column; gap:8px; }
.answer-btn{
  height:44px; display:flex; align-items:center; gap:10px;
  border:1px solid #2e2e2e; background:#1b1b1b; color:#fff;
  cursor:pointer; padding:0 12px;
}
.answer-key{
  width:40px; height:100%; display:flex; align-items:center; justify-content:center;
  background:#0f3f68; border-right:1px solid #2e2e2e; font-weight:800;
}
.answer-text{ flex:1; font-weight:700; }
.answer-btn:hover{ background:#222; }

.answer-btn.selected{ outline:2px solid #2fdc2f; }
.answer-btn.correct{
  background: #19d219;   /* yashil */
  border-color:#19d219;
  color:#111;
}
.answer-btn.wrong{
  background: #ff1f1f;   /* qizil */
  border-color:#ff1f1f;
  color:#111;
}


.test-image{ display:flex; justify-content:center; }
.test-imgbox{
  width:100%; min-height:360px;
  border:1px solid #2e2e2e; background: rgba(0,0,0,.25);
  display:flex; align-items:center; justify-content:center;
}
.test-imgbox img{ max-width:100%; max-height:420px; object-fit:contain; }

.test-footer{
  max-width:1280px; margin:14px auto 0;
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px;
}
.test-nav{
  display:flex; flex-wrap:wrap; gap:6px; max-width: 900px;
}
.nav-cell{
  width:32px; height:28px; display:flex; align-items:center; justify-content:center;
  border:1px solid #2e2e2e; background:#1b1b1b; color:#fff; cursor:pointer;
  font-size:12px; user-select:none;
}
.nav-cell.current{ outline:2px solid #2fdc2f; }
.nav-cell.done{ background:#203b20; border-color:#2fdc2f; }
.nav-cell.wrong{ background:#3b2020; border-color:#ff4d4d; }

.test-finish{
  height:34px; min-width:120px;
  border:1px solid #2e2e2e; background:#2b3b2b; color:#fff; cursor:pointer;
  padding:0 16px;
}

/* ===== Result modal ===== */
.result-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.65);
  display:flex; align-items:center; justify-content:center; z-index:9999;
}
.result-card{
  width:min(820px, 92vw);
  background:#fff; color:#111; border-radius:8px; overflow:hidden;
}
.result-title{
  padding:14px 16px; font-weight:900; font-size:20px;
  border-bottom:1px solid #e5e5e5;
}
.result-row{ display:flex; gap:14px; padding:14px 16px; align-items:center; }
.result-left{ flex:1; font-size:16px; line-height:1.6; }
.result-right{ font-size:60px; font-weight:900; }
.result-review{
  max-height: 320px; overflow:auto;
  border-top:1px solid #eee; border-bottom:1px solid #eee;
  padding: 10px 16px;
}
.review-item{
  padding:10px 0; border-bottom:1px dashed #ddd;
}
.review-q{ font-weight:800; margin-bottom:6px; }
.review-a{ font-size:14px; }
.bad{ color:#b80000; font-weight:800; }
.good{ color:#0b7a0b; font-weight:800; }

.result-actions{
  display:flex; justify-content:flex-end; gap:10px; padding:12px 16px;
}
.btn-gray{
  background:#6c757d; color:#fff; border:0; padding:8px 14px; border-radius:4px; cursor:pointer;
}
.btn-blue{
  background:#1677ff; color:#fff; border:0; padding:8px 14px; border-radius:4px; cursor:pointer;
}

/* responsive */
@media (max-width: 980px){
  .test-body{ grid-template-columns: 1fr; }
  .test-imgbox{ min-height:260px; }
}
.nav-cell.done{ background:#203b20; border-color:#2fdc2f; }
.nav-cell.wrong{ background:#3b2020; border-color:#ff4d4d; }
/* ===== Prices page ===== */
.prices-page{ position:relative; z-index:2; padding: 18px 18px 40px; }
.prices-wrap{
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  border:1px solid var(--cardStroke);
  box-shadow: var(--shadow);
  padding: 18px;
}
.trial-chip{
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  margin-bottom: 14px;
}
.trial-chip.expired{
  border-color: rgba(255,0,0,0.35);
  background: rgba(255,0,0,0.10);
}
.prices-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.price-card{
  background: var(--rowBg);
  border:1px solid var(--rowStroke);
  padding: 16px;
  text-align:center;
}
.p-name{ font-size:18px; font-weight:900; margin-bottom:8px; }
.p-price{ font-size:26px; font-weight:900; margin-bottom:12px; }
.p-btn{
  width:100%;
  padding: 12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(47,111,255,0.18);
  color: var(--txt);
  cursor:pointer;
  font-weight:900;
}
.prices-note{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align:center;
}
@media (max-width: 920px){
  .prices-grid{ grid-template-columns: 1fr; }
}


/* ===== Result overlay should be hidden by default ===== */
.result-overlay{ display:none; }

/* ===== Prices page (screenshot-like) ===== */
.prices-page{ position:relative; z-index:2; padding: 26px 18px 60px; }
#pricesRoot{ max-width: 1180px; margin: 0 auto; }

.prices-hero{
  text-align:center;
  margin: 10px 0 26px;
}
.prices-hero-ico{
  width:54px; height:54px;
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 12px;
  border-radius:50%;
  background: rgba(0, 255, 170, 0.10);
  border: 1px solid rgba(0, 255, 170, 0.22);
  font-size:22px;
}
.prices-hero-title{
  font-size: 36px;
  font-weight: 900;
  letter-spacing: .2px;
}
.prices-hero-sub{
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.prices-h2{
  margin: 28px 0 14px;
  text-align:center;
  font-size: 22px;
  font-weight: 900;
}

.mt16{ margin-top:16px; }
.mt28{ margin-top:28px; }

/* Start big plan */
.plan-big{
  display:grid;
  grid-template-columns: 280px 170px 1fr 170px;
  gap: 16px;
  align-items:center;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.plan-left{ display:flex; gap:14px; align-items:flex-start; }
.plan-badge{
  width:56px; height:56px;
  border-radius: 14px;
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid rgba(0, 255, 170, 0.25);
  display:flex; align-items:center; justify-content:center;
  font-size: 22px;
}
.plan-name{ font-size:22px; font-weight:900; }
.plan-sub{ margin-top: 6px; color: var(--muted); font-size: 13px; }

.plan-mid{ text-align:left; }
.plan-price{ font-size: 44px; font-weight: 900; line-height:1; }
.plan-small{ margin-top:6px; color: var(--muted); font-size: 13px; }

.feat-ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding:0;
  margin:0;
}
.feat-ul li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color: #d6d6d6;
  font-size: 14px;
}
.feat-ul.small li{ font-size: 13px; color:#cfcfcf; }
.feat-ul .check{
  color: var(--green);
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
}

.plan-right{ display:flex; justify-content:flex-end; }
.btn-primary{
  height: 44px;
  min-width: 140px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--txt);
  font-weight: 900;
  cursor:pointer;
}
.btn-primary:hover{ background: rgba(255,255,255,0.10); }

/* Cards grid */
.prices-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.prices-grid.one{ grid-template-columns: 1fr; max-width: 390px; margin: 0 auto; }

.price-card2{
  position:relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
}
.price-card2.popular{
  border-color: rgba(0, 255, 170, 0.55);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
}
.badge-pop{
  position:absolute;
  top: -10px;
  right: 18px;
  background: rgba(0, 255, 170, 0.85);
  color:#0b0b0b;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 10px;
}
.pc-top{ min-height: 70px; }
.pc-name{ font-size: 22px; font-weight: 900; }
.pc-sub{ margin-top: 6px; color: var(--muted); font-size: 13px; }
.pc-price{ margin-top: 14px; display:flex; align-items:baseline; gap:8px; }
.pc-price .big{ font-size: 46px; font-weight: 900; letter-spacing: .3px; }
.pc-price .so{ color: var(--muted); font-size: 14px; }
.pc-days{ margin-top: 10px; color:#d7d7d7; font-size: 13px; }

.pc-btn{
  width:100%;
  height: 48px;
  margin: 14px 0 14px;
  border-radius: 14px;
  border: 0;
  background: rgba(0, 255, 170, 0.75);
  color: #0b0b0b;
  font-weight: 900;
  cursor:pointer;
}
.pc-btn:hover{ filter: brightness(1.03); }

/* Trial chip */
.trial-chip{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  margin: 0 auto 12px;
}
.trial-chip.expired{
  border-color: rgba(255,0,0,0.35);
  background: rgba(255,0,0,0.10);
}

/* Stats */
.stats-box{
  margin-top: 26px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px;
}
.stats-title{
  text-align:center;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 16px;
}
.stats-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items:center;
}
.stat{ text-align:center; padding: 14px 8px; }
.stat-num{ font-size: 44px; font-weight: 900; color: var(--green); }
.stat-txt{ margin-top: 6px; color: var(--muted); font-size: 13px; }

.prices-contact{
  text-align:center;
  margin-top: 18px;
  color: #d0d0d0;
  font-size: 14px;
}
.prices-contact a{ color: var(--green); text-decoration:none; font-weight: 900; }
.prices-contact a:hover{ text-decoration: underline; }

/* Responsive */
@media (max-width: 1100px){
  .plan-big{ grid-template-columns: 1fr; }
  .plan-right{ justify-content:flex-start; }
  .prices-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr; }
  .prices-hero-title{ font-size: 28px; }
}


/* ===== Access locks + counts ===== */
.menu-row.locked{
  opacity: .55;
  cursor: pointer;
  position: relative;
}
.menu-row.locked::after{
  content: "🔒";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: .9;
}
.count-pill{
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.75);
  vertical-align: middle;
}
.topic-count{
  position:absolute;
  top:12px;
  right:12px;
  font-size:12px;
  color: var(--muted);
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  padding:5px 10px;
  border-radius:999px;
  line-height:1;
  backdrop-filter: blur(6px);
}
.topic-meta{
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.btn-primary.disabled,
#topicStartBtn.disabled{
  opacity: .55;
  pointer-events: none;
}
.module-box .submit-btn.secondary{
  margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
}


/* ===== Topics extra meta & locks ===== */
.topics-total{
  font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 500;
}

.topic-meta{
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.topic-hint{
  margin-top: 10px;
  color: #ffcf6d;
  font-size: 13px;
  text-align: center;
  opacity: .95;
}

.topic-card.locked{
  opacity: .85;
}

.topic-lock{
  position:absolute;
  top:12px;
  left:12px;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  color: #ffcf6d;
}

/* === Topic cards: count badge corner + lock icon === */
.topic-card{position:relative;}
.topic-count{position:absolute;top:14px;right:14px;font-size:12px;opacity:.9;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.12);padding:6px 10px;border-radius:12px;}
.topic-lock{position:absolute;bottom:14px;right:14px;opacity:.9;}
.topic-card.locked{opacity:.75;}
.topic-card.locked .topic-title{opacity:.9;}

/* lessons header count */
#topicsTotal{margin-left:10px;font-weight:500;opacity:.75;font-size:14px;}

/* ===== TEST TIMER (EXAM ONLY) ===== */
.test-topbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.test-timer{
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  min-width: 92px;
  text-align:center;
}

/* light theme moslash */
body[data-theme="light"] .test-timer{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.mix-grid .submit-btn{
  width:100%;
}

.mix-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:14px;
  margin-top:12px;
}

@media (max-width:1100px){
  .mix-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width:600px){
  .mix-grid{ grid-template-columns: repeat(2, 1fr); }
}

.mix-card{
  position:relative;
  min-height:76px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  color:#fff;
  font-weight:700;
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.mix-card.locked{
  opacity:.45;
}

.mix-lock{
  position:absolute;
  right:12px;
  bottom:10px;
  font-size:14px;
  opacity:.9;
}
#page-module .topics-grid { margin-top: 16px; }
#page-module .topic-card  { min-height: 90px; }

/* =====================
   ANSWERS MODULE — PRO v2
   - glass UI, sticky toolbar, chips
   - dark/light optimized
   - mobile friendly
===================== */

:root{
  --ans-radius: 16px;
  --ans-radius-sm: 12px;
  --ans-gap: 12px;

  --ans-bg: rgba(0,0,0,.18);
  --ans-bg2: rgba(255,255,255,.05);
  --ans-border: rgba(255,255,255,.12);
  --ans-muted: rgba(255,255,255,.70);
  --ans-soft: rgba(255,255,255,.06);

  --ans-ok: rgba(0, 255, 140, .38);
  --ans-ok-bg: rgba(0, 255, 140, .10);

  --ans-bad: rgba(255, 80, 80, .35);
  --ans-bad-bg: rgba(255, 80, 80, .10);

  --ans-shadow: 0 14px 40px rgba(0,0,0,.30);
}

/* Light theme overrides */
body[data-theme="light"]{
  --ans-bg: rgba(0,0,0,.03);
  --ans-bg2: rgba(0,0,0,.02);
  --ans-border: rgba(0,0,0,.10);
  --ans-muted: rgba(0,0,0,.68);
  --ans-soft: rgba(0,0,0,.03);
  --ans-shadow: 0 12px 34px rgba(0,0,0,.10);
}

/* Wrapper */
.answers-wrap{
  width: 100%;
}

/* Sticky toolbar */
.answers-toolbar{
  position: sticky;
  top: 12px;
  z-index: 5;

  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  justify-content:space-between;

  padding: 10px;
  border-radius: var(--ans-radius);
  border: 1px solid var(--ans-border);
  background: linear-gradient(180deg, var(--ans-bg2), var(--ans-bg));
  backdrop-filter: blur(10px);
  box-shadow: var(--ans-shadow);
  margin-bottom: 12px;
}

/* Search box */
.answers-search{
  flex: 1;
  min-width: 260px;

  display:flex;
  align-items:center;
  gap:10px;

  padding: 10px 12px;
  border: 1px solid var(--ans-border);
  border-radius: var(--ans-radius-sm);
  background: rgba(0,0,0,.14);
}
body[data-theme="light"] .answers-search{
  background: rgba(255,255,255,.55);
}

.answers-search i{
  opacity: .85;
}

.answers-search input{
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
}

/* Inputs focus */
.answers-search:focus-within,
.answers-filter:focus,
.answers-btn:focus,
.answers-chip:focus{
  outline: 2px solid rgba(120, 180, 255, .45);
  outline-offset: 2px;
}

/* Filters row */
.answers-right{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.answers-filter{
  min-width: 170px;
  padding: 10px 12px;
  border-radius: var(--ans-radius-sm);
  border: 1px solid var(--ans-border);
  background: rgba(0,0,0,.14);
  color: inherit;
  outline: none;
}
body[data-theme="light"] .answers-filter{
  background: rgba(255,255,255,.55);
}

/* Chips (optional) */
.answers-chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.answers-chip{
  border: 1px solid var(--ans-border);
  background: rgba(255,255,255,.05);
  color: inherit;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.answers-chip:hover{ transform: translateY(-1px); }
.answers-chip.active{
  border-color: rgba(120, 180, 255, .40);
  background: rgba(120, 180, 255, .12);
}

/* Meta */
.answers-meta{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;

  opacity: .85;
  font-size: 13px;
  margin: 8px 2px 12px;
  color: var(--ans-muted);
}
.answers-meta b{ color: inherit; opacity: .95; }

/* List */
.answers-list{
  display:flex;
  flex-direction:column;
  gap: var(--ans-gap);
}

/* Card */
.ans-card{
  border: 1px solid var(--ans-border);
  border-radius: var(--ans-radius);
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
body[data-theme="light"] .ans-card{
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.55));
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

/* Top row */
.ans-top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:flex-start;
  opacity:.92;
  margin-bottom: 10px;
}

.ans-badge{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}
.ans-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ans-border);
  background: rgba(255,255,255,.05);
  font-size: 12px;
  opacity: .95;
}
.ans-mini{
  font-size:12px;
  opacity:.80;
  color: var(--ans-muted);
}

/* Question */
.ans-q{
  font-weight: 800;
  margin: 10px 0 12px;
  line-height: 1.4;
  letter-spacing: .1px;
}

/* Answers */
.ans-a{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.ans-row{
  display:flex;
  align-items:flex-start;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.14);
}
body[data-theme="light"] .ans-row{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.06);
}

.ans-key{
  min-width: 34px;
  font-weight: 900;
  opacity: .9;
  text-align:center;
  padding-top: 1px;
}

.ans-text{
  flex: 1;
  line-height: 1.35;
  opacity: .95;
}

/* Correct marker */
.ans-mark{
  margin-left: auto;
  font-weight: 900;
  opacity: .85;
}

.ans-good{
  border-color: var(--ans-ok) !important;
  background: var(--ans-ok-bg) !important;
}
.ans-bad{
  border-color: var(--ans-bad) !important;
  background: var(--ans-bad-bg) !important;
}

/* Image */
.ans-img{
  margin-top: 12px;
}
.ans-img img{
  width:100%;
  max-width: 520px;
  border-radius: 14px;
  display:block;
  border: 1px solid var(--ans-border);
}

/* Pagination / actions */
.answers-actions{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin: 14px 0 6px;
}

.answers-btn{
  border: 1px solid var(--ans-border);
  background: rgba(255,255,255,.06);
  color: inherit;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .08s ease, background .12s ease;
}
.answers-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.answers-btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }

/* Mobile */
@media (max-width: 900px){
  .answers-toolbar{ top: 8px; }
  .answers-search{ min-width: 100%; }
  .answers-filter{ min-width: 160px; }
}

@media (max-width: 520px){
  .answers-filter{ min-width: 100%; }
  .answers-right{ width:100%; justify-content:space-between; }
}

/* JS uses .ans-txt, CSS uses .ans-text — make both work */
.ans-txt{ 
  flex: 1;
  line-height: 1.35;
  opacity: .95;
}
body[data-theme="light"] .topic-card{
  background: #ffffff;
  border-color:#d0d0d0;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
body[data-theme="light"] .topic-card:hover{
  background:#f6f6f6;
  border-color:#c2c2c2;
}
body[data-theme="light"] .topic-count{
  background: rgba(255,255,255,.75);
  border-color: rgba(0,0,0,.10);
}

/* ===== NAV responsive fix (logo + lang + login) ===== */

/* container flex: wrap bo'lsin, siqilib qolmasin */
.nav-container{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* chap va o'ng bloklar hech qachon siqilmasin */
.nav-left, .nav-right{
  flex: 0 0 auto;
  min-width: max-content;
}

/* markaz: desktopda markaz, mobilda tartibli */
.lang-center{
  flex: 1 1 260px;          /* kerak bo'lsa keyingi qatorga tushadi */
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

/* til tugmalari: bir xil o'lcham */
.lang-btn{
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1;
  border-radius: 10px;
  white-space: nowrap;
}

/* ===== MOBILE layout ===== */
@media (max-width: 520px){

  /* 1-qator: logo (chap) + kirish (o'ng) */
  .nav-container{
    justify-content: space-between;
  }

  /* 2-qator: lang-center pastga tushsin va 2x2 bo'lsin */
  .lang-center{
    order: 3;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 */
    gap: 8px;
    justify-content: stretch;
    align-items: center;
    margin-top: 6px;
  }

  .lang-btn{
    width: 100%;
    padding: 10px 10px;
    font-size: 13px;
    border-radius: 10px;
  }

  
 
}

/* juda kichik ekran */
@media (max-width: 380px){
  .lang-btn{ font-size: 12px; padding: 9px 8px; }
}
/* DESKTOP: 1 qatorda */
.nav-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:nowrap;         /* <<< MUHIM */
}

/* LANG ichida wrap bo'lsin (tugmalar o'zi o'raladi) */
.lang-center{
  flex:1 1 auto;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

/* LOGO: rasmni balandlik bilan cheklaymiz (eng ishonchli) */
.logo-box{
  width:54px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}


/* MOBILDA: endi wrap va grid ishlaydi */
@media (max-width: 520px){
  .nav-container{ flex-wrap:wrap; }

  
  .lang-center{
    order:3;
    flex:1 1 100%;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:10px;
  }

  .lang-btn{ width:100%; }
}
/* DESKTOP logo kattaroq */
.logo-box{
  width:80px;      /* 54 o‘rniga */
  height:40px;     /* 34 o‘rniga */
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
}

.logo-box .logo-img{
  height:40px;     /* box bilan bir xil */
  width:auto;
  object-fit:contain;
  display:block;
}

/* MOBILDA o‘z holicha kichik qoladi */
@media (max-width: 520px){
  .logo-box .logo-img{
  height:26px;     /* box bilan bir xil */
  width:auto;
  object-fit:contain;
  display:block;
}
}

/* =========================
   MODULE PAGE: Answers controls
   ========================= */

.module-page .module-body{
  padding: 12px;
}

.answers-box{
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.ans-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:stretch;
}

.ans-field{
  flex: 0 0 auto;
  min-width: 180px;
}

.ans-grow{
  flex: 1 1 260px;
  min-width: 220px;
}

.ans-input{
  width:100%;
  height:44px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: #fff;
  outline: none;
}

.ans-input:focus{
  border-color: rgba(255,255,255,.22);
}

.ans-actions{
  display:flex;
  gap:10px;
  align-items:stretch;
  flex: 0 0 auto;
}

.ans-btn{
  height:44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color:#fff;
  cursor:pointer;
  white-space:nowrap;
}

.ans-btn-primary{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

.ans-btn-ghost{
  background: rgba(0,0,0,.18);
}

.ans-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.ans-meta{
  margin-top:10px;
  opacity:.85;
  font-size: 13px;
}

.ans-list{
  margin-top: 12px;
}

.ans-pager{
  margin-top: 14px;
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
}

.ans-page{
  opacity:.9;
  padding: 0 6px;
}

/* Mobile */
@media (max-width: 520px){
  .module-page .module-body{ padding: 10px; }
  .ans-field{ flex:1 1 100%; min-width:0; }
  .ans-actions{ flex:1 1 100%; }
}

.fa-solid, .fas {
    color: aliceblue;
}

/* ===== PROFILE MODAL ===== */
.profile-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:16px;
}

.profile-card{
  width:min(920px, 100%);
  max-height: calc(100vh - 32px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(18,18,18,.92);
  border-radius:16px;
  box-shadow:0 20px 80px rgba(0,0,0,.6);
}

.profile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:sticky;
  top:0;
  background:rgba(18,18,18,.92);
  z-index:2;
}

.profile-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}

.profile-close{
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
}
.profile-close:hover{ background:rgba(255,255,255,.10); }

/* tabs grid ichida tugmalarni chiroyli qilish */
#profileTabs .topic-card{
  cursor:pointer;
  user-select:none;
}
#profileTabs .topic-card.active{
  outline:2px solid rgba(255,255,255,.12);
}

/* contact cards */
.pf-contact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  margin-top:12px;
}
.pf-contact-item{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px;
  background:rgba(255,255,255,.04);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.pf-contact-ico{
  width:40px; height:40px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  flex:0 0 40px;
}
.pf-contact-txt b{ display:block; margin-bottom:4px; }
.pf-contact-txt a{ color:#fff; opacity:.9; text-decoration:underline; }

/* =========================================
   PROFILE (Modal) — ONLY
   Works with your :root variables
   ========================================= */

/* show/hide */
.profile-overlay.show{ display:flex; }
.profile-overlay{ color: var(--txt); }

/* card (modal) */
.profile-card{
  width: min(920px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* head (sticky) */
.profile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  z-index: 2;
}

.profile-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  font-size: 16px;
}

.profile-close{
  width:40px;
  height:40px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--txt);
  cursor:pointer;
}
.profile-close:hover{ background: rgba(255,255,255,.10); }

/* body */
.profile-body{
  padding: 16px;
}

/* top user card */
.pf-user{
  display:flex;
  gap:14px;
  align-items:center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: 14px;
}

.pf-avatar{
  width:54px;
  height:54px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  font-weight: 900;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  flex: 0 0 54px;
}

.pf-user-info{ flex:1; min-width:0; }
.pf-user-name{
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
  word-break: break-word;
}
.pf-user-meta{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.pf-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size: 12.5px;
  color: var(--txt);
  opacity: .92;
}

/* tabs */
.pf-tabs{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:10px;
}

.pf-tab{
  cursor:pointer;
  user-select:none;
  text-align:center;
  padding: 12px 10px;
  border-radius: 12px;
  border:1px solid var(--rowStroke);
  background: var(--rowBg);
  font-weight: 900;
  transition: .12s ease;
}
.pf-tab:hover{ background: var(--rowHover); transform: translateY(-1px); }

.pf-tab.active{
  border-color: rgba(139,212,75,.45);
  box-shadow: 0 0 0 2px rgba(139,212,75,.18) inset;
}

/* sections */
.pf-section{
  margin-top: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 14px;
}
.pf-section-title{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
}
.pf-section-sub{
  color: var(--muted);
  font-size: 13px;
  margin-top: -4px;
  margin-bottom: 10px;
}

/* stats grid */
.pf-stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
.pf-stat{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 12px;
  text-align:center;
}
.pf-stat-num{
  font-weight: 900;
  font-size: 26px;
}
.pf-stat-txt{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

/* progress bar */
.pf-progress{
  margin-top: 10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  overflow:hidden;
  height: 12px;
}
.pf-progress > div{
  height:100%;
  width: 0%;
  background: var(--green);
}

/* contact grid (yours, improved) */
.pf-contact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  margin-top: 10px;
}
.pf-contact-item{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.04);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.pf-contact-ico{
  width:40px; height:40px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  flex:0 0 40px;
}
.pf-contact-txt b{ display:block; margin-bottom:4px; }
.pf-contact-txt a{ color: var(--txt); opacity:.92; text-decoration: underline; }

/* table (history etc.) */
.pf-table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
}
.pf-table th,
.pf-table td{
  padding: 10px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
.pf-table th{
  text-align:left;
  font-weight: 900;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}
.pf-table tr:hover td{ background: rgba(255,255,255,.04); }

/* footer buttons */
.pf-footer{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding: 14px 16px;
  border-top:1px solid rgba(255,255,255,.10);
}
.pf-btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  font-weight: 900;
  cursor:pointer;
}
.pf-btn:hover{ background: rgba(255,255,255,.10); }
.pf-btn.primary{
  background: rgba(139,212,75,.18);
  border-color: rgba(139,212,75,.32);
}
.pf-btn.danger{
  background: rgba(255, 80, 80, .14);
  border-color: rgba(255, 80, 80, .25);
}

/* LIGHT THEME adjustments */
body[data-theme="light"] .profile-overlay{
  background: rgba(255,255,255,.65);
}
body[data-theme="light"] .profile-card{
  border-color: rgba(0,0,0,.10);
}
body[data-theme="light"] .pf-user,
body[data-theme="light"] .pf-section{
  background: rgba(255,255,255,.75);
  border-color: rgba(0,0,0,.10);
}
body[data-theme="light"] .pf-tab{
  border-color: var(--rowStroke);
  background: var(--rowBg);
}
body[data-theme="light"] .pf-table th{
  background: rgba(0,0,0,.03);
}
body[data-theme="light"] .pf-btn{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.12);
  color: var(--txt);
}

/* responsive */
@media (max-width: 720px){
  .pf-tabs{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stats{ grid-template-columns: 1fr; }
  .profile-body{ padding: 12px; }
}
@media (max-width: 420px){
  .pf-user{ gap:10px; padding:12px; }
  .pf-avatar{ width:46px; height:46px; border-radius:14px; flex:0 0 46px; }
  .pf-footer{ flex-direction:column; }
  .pf-btn{ width:100%; }
}
/* =========================
   PROFILE MODAL — FIX (matches your JS)
   uses: #profileOverlay, .profile-card, .profile-head, .profile-tabs, .pf-tab, #profileModalRoot, #profileBody
   ========================= */

/* overlay */
#profileOverlay.profile-overlay{ display:none; }
#profileOverlay.profile-overlay.show{ display:flex; }

.profile-overlay{
  position:fixed; inset:0;
  z-index:9999;
  padding:16px;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}

/* card */
.profile-card{
  width:min(920px, 100%);
  max-height: calc(100vh - 32px);
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  box-shadow: var(--shadow);
}

/* header (sticky) */
.profile-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
}

.profile-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:16px;
}

.profile-close{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--txt);
  cursor:pointer;
}
.profile-close:hover{ background: rgba(255,255,255,.10); }

/* inside root spacing */
#profileModalRoot{
  padding: 14px 16px 16px;
}

/* tabs */
.profile-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pf-tab{
  flex: 1 1 140px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  font-weight:900;
  cursor:pointer;
  transition: .12s ease;
}
.pf-tab:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.pf-tab.active{
  border-color: rgba(139,212,75,.38);
  box-shadow: 0 0 0 2px rgba(139,212,75,.14) inset;
}

/* profile body uses module-box — make it look premium inside modal */
#profileBody .module-box{
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding: 16px;
}

/* make title/subtitle inside modal nicer */
#profileBody .topic-big-title{
  font-size: 20px;
  font-weight: 900;
}
#profileBody .topic-sub{
  color: var(--muted);
}

/* buttons inside modal */
#profileBody .submit-btn{
  border-radius: 14px;
}

/* contact grid already exists, but slightly polish */
.pf-contact-item{
  background: rgba(255,255,255,.05);
}
.pf-contact-ico{
  background: rgba(255,255,255,.08);
}

/* light theme */
body[data-theme="light"] .profile-overlay{
  background: rgba(255,255,255,.65);
}
body[data-theme="light"] .profile-card{
  border-color: rgba(0,0,0,.10);
}
body[data-theme="light"] #profileBody .module-box{
  background: rgba(255,255,255,.72);
  border-color: rgba(0,0,0,.10);
}
body[data-theme="light"] .pf-tab{
  background: rgba(255,255,255,.75);
  border-color: rgba(0,0,0,.10);
}

/* mobile */
@media (max-width:520px){
  #profileModalRoot{ padding: 12px; }
  .pf-tab{ flex: 1 1 100%; }
}
/* =========================
   PROFILE PAGE — profile-menu
   ========================= */

.profile-menu{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 10px;
}

/* profile ichidagi menu-row (linklar) */
.profile-menu .menu-row{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;

  padding:14px 14px;
  border-radius:14px;

  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 28px rgba(0,0,0,.20);

  text-decoration:none;
  color: var(--txt);
  cursor:pointer;

  transition: transform .10s ease, background .12s ease, border-color .12s ease;
}

/* icon container (fa...) */
.profile-menu .menu-row i{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);

  font-size:18px;
  flex:0 0 42px;
}

/* text */
.profile-menu .menu-row span{
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

/* arrow */
.profile-menu .menu-row::after{
  content:"›";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size: 22px;
  opacity:.70;
}

/* hover */
.profile-menu .menu-row:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}
.profile-menu .menu-row:active{
  transform: translateY(0px);
}

/* locked variant (agar ishlatsangiz) */
.profile-menu .menu-row.locked{
  opacity:.55;
  cursor:not-allowed;
}
.profile-menu .menu-row.locked::after{
  content:"🔒";
  font-size:16px;
  opacity:.90;
}

/* Light theme */
body[data-theme="light"] .profile-menu .menu-row{
  background: rgba(255,255,255,.80);
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  color:#111;
}
body[data-theme="light"] .profile-menu .menu-row:hover{
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.14);
}
body[data-theme="light"] .profile-menu .menu-row i{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.10);
}

/* Mobile */
@media (max-width:520px){
  .profile-menu .menu-row{
    padding:12px 12px;
    border-radius:14px;
  }
  .profile-menu .menu-row span{
    font-size:15px;
  }
}
.pay-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center;
  z-index: 9999;
  padding: 18px;
}
.pay-card{
  width: 100%;
  max-width: 420px;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow:hidden;
}
body[data-theme="light"] .pay-card{ background:#fff; }

.pay-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pay-title{ font-weight:800; font-size:16px; }
.pay-x{
  width:36px; height:36px; border-radius:10px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: inherit;
  cursor:pointer;
}
.pay-body{ padding: 14px; }
.pay-row{ display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; }
.pay-label{ opacity:.8; font-size:13px; }
.pay-val{ font-weight:700; font-size:13px; text-align:right; }

.pay-hint{
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  font-size: 13px;
  opacity:.95;
}

.pay-btn{
  width:100%;
  display:flex; gap:10px; align-items:center; justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  cursor:pointer;
  text-decoration:none;
  font-weight: 800;
  background: #1e88ff;
  color:#fff;
}
.pay-btn.ghost{
  margin-top:10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  color: inherit;
}
.pay-small{
  opacity:.8;
  font-size: 12px;
}
/* =========================================================
   MISSING STYLES PATCH (your existing :root vars bilan)
   style.css oxiriga qo‘shing
========================================================= */

/* ---------- Common helpers ---------- */
.hidden{ display:none !important; }
.show{ display:block !important; }
.flex{ display:flex; }
.center{ display:flex; align-items:center; justify-content:center; }

.page{
  position:relative;
  z-index:1;
  width:100%;
}
.page-pad{ padding:18px; }

/* ---------- Logo (img/svg/letters) ---------- */
.logo-link{ display:flex; align-items:center; text-decoration:none; color:inherit; }
.logo-box{ display:flex; align-items:center; justify-content:flex-start; gap:10px; }
.logo-box .logo-img{
  height: 40px; width:auto; object-fit:contain; display:block;
  image-rendering: auto;
}
.logoP{
  width:40px; height:40px;
  border:1px solid var(--topStroke);
  display:flex; align-items:center; justify-content:center;
  border-radius:12px;
  background: rgba(255,255,255,.03);
  font-weight:900;
  color: var(--txt);
}
body[data-theme="light"] .logoP{
  background:#fff;
  border-color: var(--topStroke);
  color: var(--txt);
}

/* Mobile logo sizing */
@media (max-width:520px){
  .logo-box{ width:auto; height:auto; }
  .logo-box .logo-img{ height:26px; }
  .logoP{ width:30px; height:30px; border-radius:10px; }
}

/* ---------- Common Buttons ---------- */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost{
  height:44px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor:pointer;
  user-select:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  transition: .12s ease;
}
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active{ transform: translateY(0); }

.btn-primary{
  background: rgba(47,111,255,.20);
  border-color: rgba(47,111,255,.35);
}
.btn-secondary{
  background: rgba(0,0,0,.18);
}
.btn-ghost{
  background: transparent;
}

.btn.disabled,
.btn:disabled,
.btn-primary.disabled,
.btn-primary:disabled{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:none;
  transform:none;
}

/* Light theme buttons */
body[data-theme="light"] .btn,
body[data-theme="light"] .btn-primary,
body[data-theme="light"] .btn-secondary,
body[data-theme="light"] .btn-ghost{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.12);
  color: var(--txt);
}
body[data-theme="light"] .btn-primary{
  background: rgba(47,111,255,.10);
  border-color: rgba(47,111,255,.20);
}

/* ---------- Topic Start Button (agar #topicStartBtn ishlatilsa) ---------- */
#topicStartBtn,
.topic-start-btn{
  width:100%;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(139,212,75,.16);
  color: var(--txt);
  font-weight: 900;
  cursor:pointer;
}
#topicStartBtn:hover,
.topic-start-btn:hover{ background: rgba(139,212,75,.22); }
#topicStartBtn.disabled,
.topic-start-btn.disabled{
  opacity:.55;
  pointer-events:none;
}

/* ---------- Module box (module page ichidagi bloklar) ---------- */
.module-box{
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  border:1px solid var(--cardStroke);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 16px;
}
.module-box + .module-box{ margin-top: 12px; }

body[data-theme="light"] .module-box{
  border-color: rgba(0,0,0,.10);
}

/* ---------- Chips / pills (status / counters) ---------- */
.pill,
.chip,
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  font-size: 12.5px;
  opacity:.92;
}
body[data-theme="light"] .pill,
body[data-theme="light"] .chip,
body[data-theme="light"] .badge{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.12);
}

/* ---------- Empty / loading / note ---------- */
.empty,
.note{
  padding: 12px 14px;
  border-radius: 14px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  text-align:center;
}
body[data-theme="light"] .empty,
body[data-theme="light"] .note{
  background: rgba(255,255,255,.70);
  border-color: rgba(0,0,0,.12);
  color: var(--muted);
}

/* ---------- Navbar MOBILE: logo + login 1-qatorda, lang pastda ---------- */
@media (max-width:520px){
  .navbar{ position:sticky; top:0; }
  .nav-container{
    padding:10px 12px;
    gap:10px;
  }
  .nav-left{ order:1; }
  .nav-right{ order:2; min-width:auto; }
  .lang-center{ order:3; }
  .nav-chip{ width:auto; }
}

/* ---------- Minor polish: menu-row radius ---------- */
.menu-row{
  border-radius: 14px;
}
/* =========================
   PAY OVERLAY (AvtoSavol-like)
   ========================= */
.pay-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:flex;                 /* JS display:none qilib turadi */
  align-items:center;
  justify-content:center;
  padding: 18px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* modal card */
.pay-card{
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow:hidden;
  color: var(--txt);
}

/* header */
.pay-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
}
body[data-theme="light"] .pay-head{
  background: rgba(255,255,255,.55);
  border-bottom-color: rgba(0,0,0,.10);
}

.pay-title{
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .2px;
}

/* close btn */
.pay-x{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  cursor:pointer;
}
.pay-x:hover{ background: rgba(255,255,255,.10); }

/* body */
.pay-body{
  padding: 14px;
}

.pay-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  margin-bottom: 10px;
}
body[data-theme="light"] .pay-row{
  background: rgba(255,255,255,.75);
  border-color: rgba(0,0,0,.10);
}

.pay-label{
  opacity: .82;
  font-size: 13px;
  color: var(--muted);
}

.pay-val{
  font-weight: 800;
  font-size: 13px;
  text-align:right;
  color: var(--txt);
  max-width: 60%;
  word-break: break-word;
}

/* hint */
.pay-hint{
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,.90);
}
body[data-theme="light"] .pay-hint{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.10);
  color: rgba(0,0,0,.75);
}

/* main action link button */
.pay-btn{
  width: 100%;
  height: 48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  border-radius: 14px;
  border: 0;
  cursor:pointer;
  text-decoration:none;

  font-weight: 900;
  background: rgba(47,111,255,.92);
  color:#fff;

  transition: transform .08s ease, filter .12s ease;
}
.pay-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.pay-btn:active{ transform: translateY(0); }

.pay-btn i{ font-size: 18px; }

/* ghost variant */
.pay-btn.ghost{
  margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  color: var(--txt);
}
.pay-btn.ghost:hover{ background: rgba(255,255,255,.06); }

/* small link text */
.pay-small{
  opacity: .85;
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}

/* light theme pay */
body[data-theme="light"] .pay-overlay{
  background: rgba(255,255,255,.65);
}
body[data-theme="light"] .pay-card{
  border-color: rgba(0,0,0,.10);
}
body[data-theme="light"] .pay-x{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.10);
}
body[data-theme="light"] .pay-btn.ghost{
  border-color: rgba(0,0,0,.12);
  color: var(--txt);
}

/* mobile */
@media (max-width: 420px){
  .pay-body{ padding: 12px; }
  .pay-row{ padding: 10px; }
}

/* =========================
   TOPUP OVERLAY (generic)
   ========================= */

/* sizda #topupOverlay class="overlay" berilgan, shuni universal qilamiz */
.overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:flex;                 /* JS display:none qilib turadi */
  align-items:center;
  justify-content:center;
  padding: 18px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* topup card */
.overlay-card{
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow:hidden;
  color: var(--txt);
  padding: 14px;
}

/* overlay close button uses .btn-ghost – sizda yo‘q bo‘lishi mumkin, shuni qo‘shamiz */
.btn-ghost{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  cursor:pointer;
}
.btn-ghost:hover{ background: rgba(255,255,255,.10); }

/* light theme overlay */
body[data-theme="light"] .overlay{
  background: rgba(255,255,255,.65);
}
body[data-theme="light"] .overlay-card{
  border-color: rgba(0,0,0,.10);
}
body[data-theme="light"] .btn-ghost{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.10);
  color: var(--txt);
}
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 16px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  color: #2e2e2e;

  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;

  transition: 
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

/* Hover */
.btn-soft:hover {
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Active */
.btn-soft:active {
  transform: scale(0.97);
}

/* Disabled */
.btn-soft:disabled,
.btn-soft.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* 🌙 Dark theme */
body.dark .btn-soft {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f1f1;
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark .btn-soft:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-danger-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 16px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  background: #e53935;
  color: #ffffff;

  border: none;
  cursor: pointer;

  box-shadow: 0 6px 14px rgba(229, 57, 53, 0.35);

  transition: 
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

/* Hover */
.btn-danger-solid:hover {
  background: #d32f2f;
  box-shadow: 0 8px 18px rgba(211, 47, 47, 0.45);
}

/* Active */
.btn-danger-solid:active {
  transform: scale(0.96);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.35);
}

/* Disabled */
.btn-danger-solid:disabled,
.btn-danger-solid.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
