/* User app (PWA) */
body.app { background: var(--panel); min-height: 100vh; min-height: 100dvh; }
.app-shell { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--panel); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--forest); color: var(--white); display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; }
.topbar h1 { font-family: var(--display); font-size: 21px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .icon-btn { color: var(--white); border-color: rgba(255,255,255,.25); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.lang-btn { min-width: 44px; height: 36px; padding: 0 10px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: var(--white); font-weight: 700; cursor: pointer; }
.screen { flex: 1; padding: 16px 16px 104px; display: flex; flex-direction: column; gap: 16px; }
.screen.no-nav { padding-bottom: 32px; }

.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; background: var(--white); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.bottom-nav a[aria-current="page"] { color: var(--green); }
.bottom-nav a[aria-current="page"] svg { stroke: var(--green); }

/* Auth */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--forest); color: var(--white); }
.auth-top { padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.auth-top .logo { color: var(--white); }
.auth-top h2 { font-family: var(--display); font-size: 34px; line-height: 1.15; }
.auth-top p { color: #D3E4DA; font-size: 17px; }
.auth-card { flex: 1; background: var(--white); color: var(--ink); border-radius: 28px 28px 0 0; padding: 28px 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.otp-input { letter-spacing: 12px; font-size: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.dev-code { background: var(--gold-soft); border: 1px dashed var(--gold); padding: 10px 14px; border-radius: 12px; font-size: 15px; }

/* Home */
.hello { display: flex; flex-direction: column; gap: 2px; }
.hello h2 { font-family: var(--display); font-size: 26px; color: var(--forest); line-height: 1.2; }
.wallet { background: var(--forest); color: var(--white); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.wallet .amt { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1; }
.wallet .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #D3E4DA; flex-wrap: wrap; }
.wallet .row b { color: var(--white); }
.wallet .btn { align-self: flex-start; }
.notice { background: var(--gold-soft); border: 1px solid #F4D79A; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.notice b { color: var(--forest); }
.section-title { font-family: var(--display); font-size: 21px; color: var(--forest); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.section-title a { font-family: var(--font); font-size: 15px; font-weight: 600; }

.project { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.project:hover { border-color: var(--green-line); color: inherit; }
.project .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.project h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.project .rate { font-family: var(--display); font-weight: 800; color: var(--green); font-size: 20px; white-space: nowrap; }
.project .rate small { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--muted); }
.project .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.project p { color: var(--body); font-size: 15px; }
.mini-bar { height: 6px; border-radius: 999px; background: #E6EEE9; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--green); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick a { background: var(--white); border: 1px solid var(--line); border-radius: 16px; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--body); font-weight: 600; font-size: 14px; text-align: center; padding: 8px; }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty b { color: var(--ink); font-size: 18px; }

/* Record */
.task-card { background: var(--white); border-radius: 24px; padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.task-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); gap: 8px; }
.task-head b { color: var(--green); }
.prompt-text { font-size: 26px; line-height: 1.5; font-weight: 600; color: var(--ink); word-break: break-word; }
.prompt-text.topic { font-size: 22px; }
.prompt-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 16px; background: var(--panel); }
.instr { font-size: 15px; color: var(--muted); }
.meter { height: 64px; width: 100%; display: block; background: var(--green-soft); border-radius: 14px; }
.timer { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--muted); display: flex; justify-content: space-between; }
.rec-controls { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 4px 0; }
.round-btn { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn[disabled] { opacity: .4; cursor: not-allowed; }
.rec-btn { width: 84px; height: 84px; border-radius: 50%; border: none; background: var(--green); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 0 8px var(--green-soft); }
.rec-btn.recording { background: var(--rec); box-shadow: 0 0 0 8px var(--rec-soft); animation: pulse 1.4s ease-in-out infinite; }
.rec-btn .stop { width: 26px; height: 26px; background: var(--white); border-radius: 7px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px var(--rec-soft); } }
.rec-hint { text-align: center; font-size: 15px; color: var(--body); min-height: 24px; }
.submit-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.tips { font-size: 15px; color: var(--body); }
.tips summary { cursor: pointer; font-weight: 700; color: var(--green); min-height: 44px; display: flex; align-items: center; }
.tips ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.session-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 15px; }
.session-bar b { color: var(--green); }
.transcribe-box { min-height: 140px; font-size: 20px; line-height: 1.5; }

/* Lists */
.list { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .grow span { font-size: 14px; color: var(--muted); }
.list-item .amt { font-weight: 700; white-space: nowrap; }
.amt.plus { color: var(--ok); }
.amt.minus { color: var(--bad); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-box { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat-box b { display: block; font-family: var(--display); font-size: 26px; color: var(--forest); line-height: 1.1; }
.stat-box span { font-size: 14px; color: var(--muted); }
.rank { width: 36px; height: 36px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.rank.r1 { background: var(--gold); color: var(--forest); }
.rank.r2 { background: #D9DEE2; }
.rank.r3 { background: #EBC9A8; }
.list-item.me { background: var(--green-soft); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.tabs button { flex: none; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--white); cursor: pointer; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--forest); color: var(--white); border-color: var(--forest); }

.ref-card { background: var(--forest); color: var(--white); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ref-code { font-family: var(--display); font-size: 34px; letter-spacing: 4px; color: var(--gold); }
.ref-card p { color: #D3E4DA; }
.consent-text { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; max-height: 50vh; overflow-y: auto; font-size: 16px; line-height: 1.7; color: var(--body); }
.consent-text h3 { font-size: 18px; color: var(--forest); margin: 12px 0 6px; }
.consent-text ul { padding-left: 20px; margin: 0; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check-row input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--green); }
.install-bar { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--green-line); border-radius: 16px; padding: 12px 14px; }
.install-bar .grow { flex: 1; }
.offline-bar { background: var(--warn-soft); color: var(--warn); padding: 10px 16px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.loading { display: flex; justify-content: center; padding: 48px; color: var(--green); }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; min-height: 52px; }
.link-list a:last-child { border-bottom: none; }
.ticket { border-top: 1px solid var(--line); padding-top: 12px; }
.ticket .reply { background: var(--green-soft); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }

/* LootBeez.online additions */
.logo b span { color: var(--green); }
.auth-top .logo b span, .side .logo b span { color: var(--gold); }
.topbar .bell { position: relative; color: var(--white); border-color: rgba(255,255,255,.25); text-decoration: none; }
.topbar .bell .dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--forest); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.level-card { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.level-card .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.level-card b { font-size: 18px; }
.level-badge { width: 48px; height: 48px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 22px; background: var(--panel); color: var(--muted); }
.tier-bronze .level-badge { background: #F3E3D3; color: #8A4B14; }
.tier-silver .level-badge { background: #E5EAEE; color: #4B5963; }
.tier-gold { border-color: var(--gold); background: var(--gold-soft); }
.tier-gold .level-badge { background: var(--gold); color: var(--forest); }
.quiz { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.quiz-q { font-size: 17px; font-weight: 700; color: var(--ink); }
.quiz .check-row input { margin-top: 3px; }
.list-item.notif.unread { background: var(--green-soft); }

/* Dost ke saath baatcheet ka bonus card */
.promo { background: radial-gradient(120% 90% at 100% 0%, #1F6B4F 0%, var(--forest) 60%); color: var(--white); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(15, 61, 46, .25); }
.promo h3 { margin: 0; font-size: 22px; line-height: 1.25; color: var(--white); }
.promo p { margin: 0; color: #D3E4DA; font-size: 15px; line-height: 1.5; }
.promo .promo-kicker { align-self: flex-start; background: rgba(244, 185, 66, .18); color: #F4B942; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.promo-track { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin-top: 6px; }
.promo-track i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #F4B942, #FFD978); animation: promo-fill 2.4s ease-out both; }
.promo-track b { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); background: #F4B942; color: var(--forest); font-size: 13px; padding: 4px 9px; border-radius: 999px; box-shadow: 0 0 0 3px var(--forest); }
.promo-times { display: flex; justify-content: space-between; font: 600 12px/1 ui-monospace, Consolas, monospace; color: #A9C4B6; }
.promo .promo-you { color: var(--white); font-weight: 600; }
@keyframes promo-fill { from { right: 100%; } to { right: 0; } }
@media (prefers-reduced-motion: reduce) { .promo-track i { animation: none; } }

/* Login: premium (desktop par do hisse) */
.auth { position: relative; overflow: hidden; background: radial-gradient(700px 400px at 0% 0%, rgba(244, 185, 66, .18), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(127, 196, 164, .18), transparent 60%), var(--forest); }
.auth-perks { list-style: none; margin: 4px 0 0; padding: 0; display: none; flex-direction: column; gap: 10px; }
.auth-perks li { display: flex; align-items: center; gap: 10px; font-size: 17px; color: #E6F0EA; }
.auth-perks li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--forest); font-weight: 800; font-size: 14px; flex: none; }
.auth-art { display: none; position: relative; height: 180px; margin-top: 10px; }
.aa-coin { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 800 26px var(--display); color: #7A4F00; background: radial-gradient(circle at 35% 30%, #FFE6A3, #F4B942 55%, #C98A1C); box-shadow: inset 0 0 0 4px #E3A733, 0 14px 24px -10px rgba(0, 0, 0, .5); animation: aa-float 5s ease-in-out infinite, aa-spin 6s linear infinite; }
.aa-coin.c1 { left: 6%; top: 30%; } .aa-coin.c2 { left: 40%; top: 58%; width: 42px; height: 42px; font-size: 20px; animation-delay: -2s, -1s; } .aa-coin.c3 { left: 72%; top: 18%; animation-delay: -3.5s, -3s; }
.aa-bubble { position: absolute; background: var(--white); color: var(--forest); font: 800 20px var(--display); padding: 8px 16px; border-radius: 18px 18px 18px 4px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); animation: aa-float 6s ease-in-out infinite; }
.aa-bubble.b1 { left: 18%; top: 0; } .aa-bubble.b2 { left: 56%; top: 46%; animation-delay: -2s; } .aa-bubble.b3 { left: 8%; top: 70%; animation-delay: -4s; }
@keyframes aa-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes aa-spin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.ts-box { min-height: 0; }
.ts-box:not(:empty) { min-height: 66px; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .auth { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 40px 6vw; }
  .auth-top { padding: 0; max-width: 560px; }
  .auth-top h2 { font-size: 48px; }
  .auth-perks, .auth-art { display: flex; }
  .auth-art { display: block; }
  .auth-card { flex: none; width: 100%; max-width: 460px; justify-self: center; border-radius: 28px; padding: 32px 30px 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); animation: auth-in .6s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes auth-in { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aa-coin, .aa-bubble, .auth-card { animation: none; } }

/* Login screen se website par wapas */
.auth-back { align-self: flex-start; color: #CFE3D8; font-size: 15px; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 5px 12px; }
.auth-back:hover { color: var(--white); background: rgba(255, 255, 255, .08); }


/* Login / New account: premium */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: linear-gradient(145deg, #1F6B4F, var(--forest)); box-shadow: 0 8px 18px -8px rgba(15, 61, 46, .6); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.seg[data-mode="signup"] .seg-pill { transform: translateX(100%); }
.seg-btn { position: relative; z-index: 1; background: none; border: 0; min-height: 44px; font: 700 16px var(--font); color: var(--body); cursor: pointer; border-radius: 12px; transition: color .25s ease; }
.seg-btn.is-on { color: var(--white); }
.af-head { display: flex; flex-direction: column; gap: 2px; }
.af-head h3 { margin: 0; font-family: var(--display); font-size: 24px; color: var(--forest); }
.af-head p { margin: 0; color: var(--muted); font-size: 15px; }
.auth-card .form-grid:not(.hidden) { animation: af-in .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes af-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pw-wrap { position: relative; }
.pw-wrap .input { width: 100%; padding-right: 52px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover { background: var(--panel); color: var(--forest); }
.pw-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter i { height: 5px; border-radius: 999px; background: var(--line); transition: background .25s ease; }
.field[data-pw="1"] .pw-meter i:nth-child(1) { background: var(--bad); }
.field[data-pw="2"] .pw-meter i:nth-child(-n+2) { background: #E9AC2F; }
.field[data-pw="3"] .pw-meter i { background: var(--ok); }
.pw-label { font-size: 13px; color: var(--muted); min-height: 0; }
.field[data-pw="1"] .pw-label { color: var(--bad); } .field[data-pw="3"] .pw-label { color: var(--ok); }
.su-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.su-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.su-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1.5px solid var(--line-strong); color: var(--muted); font-size: 13px; }
.su-steps li.on { color: var(--forest); font-weight: 700; }
.su-steps li.on b { background: var(--gold); border-color: var(--gold); color: var(--forest); box-shadow: 0 0 0 5px var(--gold-soft); }
.su-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.su-perks span { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .seg-pill, .auth-card .form-grid:not(.hidden) { transition: none; animation: none; } }
