:root{--black:#101010;--ink:#171717;--yellow:#ffd31a;--paper:#f6f5f1;--white:#fff;--muted:#666;--line:#deded9;--danger:#af2626}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;background:var(--paper);color:var(--ink);font-family:"Noto Sans Georgian",system-ui,sans-serif;line-height:1.5}
button,input{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
a{color:inherit}
.site-header{height:72px;padding:0 max(1.25rem,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--black);color:var(--white)}
.brand{display:inline-flex;align-items:center;gap:.7rem;text-decoration:none;font-weight:900;font-size:clamp(.92rem,2.5vw,1.1rem);white-space:nowrap}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--yellow);color:var(--black);font-size:.85rem;line-height:1}
.header-actions{display:flex;align-items:center;gap:1rem;min-width:0}
.member-name{font-size:.8rem;color:#d5d5d5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
.text-button{border:1px solid #555;border-radius:9px;padding:.47rem .7rem;background:transparent;color:#fff;font-size:.8rem;font-weight:700}
.text-button:hover,.text-button:focus-visible{border-color:var(--yellow);color:var(--yellow)}
.shell{min-height:calc(100vh - 132px);max-width:1180px;margin:0 auto;padding:clamp(1.3rem,4vw,3.5rem) 1.25rem 4rem}
.loading-card,.state-card{max-width:560px;margin:clamp(1rem,7vh,5rem) auto;padding:2rem;border:1px solid var(--line);border-radius:24px;background:#fff;text-align:center;box-shadow:0 16px 45px #0000000a}
.state-card h1{font-size:clamp(1.5rem,4vw,2.2rem);line-height:1.25}
.state-card p{color:var(--muted)}
.state-icon{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#fff7c8;font-size:2rem}
.support-link{display:inline-block;margin-top:1.5rem;font-weight:700;text-decoration-color:var(--yellow);text-underline-offset:4px}
.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:590px;overflow:hidden;background:var(--white);border:1px solid var(--line);border-radius:28px;box-shadow:0 28px 80px #00000010}
.auth-intro{position:relative;overflow:hidden;padding:clamp(2rem,5vw,4.7rem);background:var(--black);color:#fff;display:flex;flex-direction:column;justify-content:center}
.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:900;color:#b99b00;margin:0 0 .9rem}
.auth-intro .eyebrow{color:var(--yellow)}
.auth-intro h1{font-size:clamp(2.2rem,5vw,4.6rem);line-height:1.1;letter-spacing:-.045em;margin:0 0 1.2rem;max-width:12ch}
.auth-intro p:not(.eyebrow){color:#d6d6d6;max-width:27rem;font-size:1.05rem}
.intro-decoration{display:flex;gap:1rem;margin-top:3.5rem;align-items:center}
.intro-decoration span{display:grid;place-items:center;width:86px;height:86px;border:1px solid #76705a;border-radius:20px;color:var(--yellow);font-size:1.6rem;font-weight:900;transform:rotate(-8deg)}
.intro-decoration span+span{width:58px;height:58px;border-color:var(--yellow);background:var(--yellow);color:#101010;transform:rotate(12deg)}
.auth-card{padding:clamp(1.5rem,5vw,4.5rem);display:flex;flex-direction:column;justify-content:center}
.auth-card h2{margin:0 0 1.5rem;font-size:clamp(1.7rem,4vw,2.3rem);line-height:1.2}
form{display:grid;gap:1rem;text-align:left}
label{display:grid;gap:.45rem;font-size:.84rem;font-weight:800}
input{width:100%;min-height:50px;border:1.5px solid #cfcfca;border-radius:11px;padding:.7rem .9rem;background:#fff;color:var(--ink);outline:none}
input:focus{border-color:#ab8e00;box-shadow:0 0 0 4px #ffd31a33}
.name-fields{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.primary-button{border:0;border-radius:11px;min-height:52px;padding:.8rem 1.1rem;background:var(--yellow);color:var(--black);font-weight:900;display:flex;align-items:center;justify-content:space-between;gap:1rem;box-shadow:0 8px 0 #d7ad00}
.primary-button:hover{background:#ffe04f;transform:translateY(-1px)}
.primary-button:disabled{opacity:.6;cursor:wait;transform:none}
.auth-note,.field-hint{font-size:.8rem;line-height:1.6;color:var(--muted)}
.auth-note{margin:1.5rem 0 0}
.field-hint{margin:-.65rem 0 0}
.link-button{border:0;padding:0;margin-top:1.4rem;background:none;font-size:.8rem;font-weight:800;text-decoration:underline;text-decoration-color:var(--yellow);text-underline-offset:4px}
.message{margin:1.2rem 0 0;border-radius:10px;padding:.9rem 1rem;background:#fff0f0;color:var(--danger);font-size:.85rem}
.dashboard-hero{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin:0 0 3rem;padding:clamp(1.5rem,4vw,3.3rem);border-radius:26px;background:var(--black);color:#fff;min-height:270px}
.dashboard-hero .eyebrow{color:var(--yellow)}
.dashboard-hero h1{max-width:17ch;margin:0 0 .7rem;font-size:clamp(2rem,5vw,3.8rem);line-height:1.15;letter-spacing:-.04em}
.dashboard-hero p:not(.eyebrow){margin:0;color:#ccc}
.access-pill{flex:none;border:1px solid #555;border-radius:13px;padding:.8rem 1rem;font-size:.75rem;color:#dadada}
.access-pill span{color:#61d08a}
.access-pill strong{display:block;font-size:.75rem;color:#fff}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}
.section-heading h2{font-size:clamp(1.3rem,3vw,1.8rem);margin:0}
.section-heading span{font-size:.8rem;color:var(--muted)}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.module-card{min-width:0;border:1px solid var(--line);border-radius:17px;padding:0;background:#fff;text-align:left;overflow:hidden;box-shadow:0 8px 22px #00000009;transition:transform .18s,box-shadow .18s}
.module-card:hover,.module-card:focus-visible{transform:translateY(-3px);box-shadow:0 18px 38px #00000015;outline-color:#c2a100}
.module-art{display:flex;align-items:end;justify-content:space-between;gap:1rem;min-height:165px;padding:1.2rem;background:#071914;color:#87ffbf;position:relative;overflow:hidden}
.module-art:after{content:"";width:130px;height:130px;position:absolute;right:-12px;top:5px;border:2px solid currentColor;border-radius:30% 70% 50% 50%;filter:drop-shadow(0 0 18px currentColor);transform:rotate(25deg);opacity:.8}
.module-card[data-tone="blue"] .module-art{background:#08172e;color:#4fa1ff}
.module-card[data-tone="orange"] .module-art{background:#241307;color:#ffb62f}
.module-card[data-tone="pink"] .module-art{background:#230a1b;color:#fc6ec4}
.module-card[data-tone="cyan"] .module-art{background:#061d20;color:#6ef3f8}
.module-card[data-tone="purple"] .module-art{background:#170b27;color:#b983ff}
.module-card[data-tone="yellow"] .module-art{background:#1d1b07;color:#ffe055}
.module-number{font-size:2.1rem;font-weight:900;letter-spacing:-.06em;line-height:1;position:relative;z-index:1}
.module-art-label{font-size:.7rem;font-weight:800;position:relative;z-index:1}
.module-details{padding:1.15rem}
.module-details h3{margin:0 0 .45rem;font-size:1.06rem}
.module-details p{margin:0;color:var(--muted);font-size:.77rem}
.progress-track{height:7px;overflow:hidden;border-radius:20px;background:#e8e8e6;margin-top:1.1rem}
.progress-fill{height:100%;background:#00a46b;transition:width .3s}
.lesson-panel{margin-top:2rem;padding:clamp(1.2rem,3vw,2rem);border:1px solid var(--line);border-radius:20px;background:#fff}
.lesson-panel h2{margin:.2rem 0 1rem}
.lesson-list{display:grid;gap:.7rem}
.lesson-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;border:1px solid var(--line);border-radius:12px}
.lesson-row strong{display:block;font-size:.88rem}
.lesson-row small{color:var(--muted)}
.lesson-badge{border-radius:99px;padding:.35rem .7rem;background:#fff4c5;color:#493b00;font-size:.7rem;font-weight:900;white-space:nowrap}
.footer{padding:1.7rem 1.25rem;text-align:center;color:var(--muted);font-size:.72rem}
.footer a{text-decoration-color:#b5a56f;text-underline-offset:3px}
@media(max-width:800px){.auth-layout{grid-template-columns:1fr}.auth-intro{min-height:235px;padding:2rem}.auth-intro h1{font-size:2.5rem;max-width:20ch}.intro-decoration{display:none}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero{align-items:start;flex-direction:column;gap:1.6rem}}
@media(max-width:520px){.site-header{height:62px;padding:0 1rem}.brand-mark{width:31px;height:31px}.brand{font-size:.88rem}.member-name{display:none}.shell{padding:1rem 1rem 3rem}.auth-layout{border-radius:18px}.auth-intro{min-height:205px;padding:1.6rem}.auth-intro h1{font-size:2rem}.auth-intro p:not(.eyebrow){font-size:.85rem}.auth-card{padding:1.4rem}.name-fields{grid-template-columns:1fr}.module-grid{grid-template-columns:1fr;gap:.85rem}.module-art{min-height:130px}.dashboard-hero{border-radius:18px;min-height:0;padding:1.5rem;margin-bottom:2rem}.dashboard-hero h1{font-size:2rem}.access-pill{width:100%}.lesson-row{align-items:start;flex-direction:column}.loading-card,.state-card{padding:1.5rem}}
@media(max-width:520px){.register-mode .auth-intro{min-height:0;padding:1.1rem 1.4rem}.register-mode .auth-intro .eyebrow{margin-bottom:.25rem}.register-mode .auth-intro h1{font-size:1.3rem;max-width:none;margin:0}.register-mode .auth-intro p:not(.eyebrow){display:none}}
