/* RAIMBALT Learn 2.0.25 — Product & UI Continuation
   A focused visual layer for the public shell, auth flow and learning dashboard.
   Existing app.css remains the compatibility foundation. */

:root{
    --rb-bg:#070a11;
    --rb-bg-soft:#0b101a;
    --rb-surface:#101722;
    --rb-surface-2:#141e2c;
    --rb-surface-3:#182436;
    --rb-border:#26364b;
    --rb-border-soft:#1c293a;
    --rb-text:#f7f9fc;
    --rb-muted:#93a4ba;
    --rb-purple:#8b5cf6;
    --rb-purple-2:#a78bfa;
    --rb-cyan:#22d3ee;
    --rb-green:#34d399;
    --rb-red:#fb7185;
    --rb-shadow:0 28px 90px rgba(0,0,0,.34);
    --rb-radius:22px;
}

html{scroll-behavior:smooth}
body{
    background:
        radial-gradient(circle at 18% -10%,rgba(139,92,246,.16),transparent 34rem),
        radial-gradient(circle at 92% 8%,rgba(34,211,238,.08),transparent 28rem),
        var(--rb-bg);
}

/* ---------- Site shell ---------- */
.rb-topbar{
    min-height:76px;
    height:auto;
    padding:12px max(26px,calc((100vw - 1380px)/2));
    display:flex;
    align-items:center;
    gap:24px;
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(7,10,17,.86);
    border-bottom:1px solid rgba(255,255,255,.07);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}
.rb-brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:max-content;
    font-weight:900;
    letter-spacing:-.02em;
}
.rb-brand-mark{
    width:38px;height:38px;display:grid;place-items:center;border-radius:12px;
    background:linear-gradient(135deg,var(--rb-purple),#5b21b6 55%,#312e81);
    box-shadow:0 10px 30px rgba(139,92,246,.28);
    color:#fff;font-size:19px;
}
.rb-brand-copy{display:flex;flex-direction:column;line-height:1.02}
.rb-brand-copy strong{font-size:16px;letter-spacing:.01em}
.rb-brand-copy small{font-size:9px;color:var(--rb-muted);letter-spacing:.18em;margin-top:5px;font-weight:800}
.rb-main-nav{display:flex;align-items:center;gap:3px;margin-left:auto}
.rb-main-nav a{
    padding:10px 11px;border-radius:10px;color:#aab7c9;font-size:13px;font-weight:700;
    transition:.18s ease;
}
.rb-main-nav a:hover,.rb-main-nav a.active{color:#fff;background:rgba(255,255,255,.055)}
.rb-account-nav{display:flex;align-items:center;gap:8px;margin-left:10px}
.rb-nav-subtle,.rb-nav-primary{
    display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;
    border-radius:11px;font-size:13px;font-weight:800;white-space:nowrap;
}
.rb-nav-subtle{border:1px solid var(--rb-border);color:#d8e0eb;background:rgba(255,255,255,.015)}
.rb-nav-primary{background:linear-gradient(135deg,var(--rb-purple),#6d28d9);color:#fff;box-shadow:0 10px 24px rgba(109,40,217,.18)}
.rb-mobile-nav{display:none;margin-left:auto;position:relative}
.rb-mobile-nav summary{
    list-style:none;width:42px;height:42px;border:1px solid var(--rb-border);border-radius:12px;
    display:grid;place-items:center;cursor:pointer;background:var(--rb-surface);font-size:20px;
}
.rb-mobile-nav summary::-webkit-details-marker{display:none}
.rb-mobile-panel{
    position:absolute;right:0;top:50px;width:min(330px,calc(100vw - 28px));padding:12px;
    border:1px solid var(--rb-border);border-radius:18px;background:#0c121d;box-shadow:var(--rb-shadow);
}
.rb-mobile-panel a{display:block;padding:12px 13px;border-radius:10px;color:#c7d2df;font-weight:700;font-size:14px}
.rb-mobile-panel a:hover,.rb-mobile-panel a.active{background:rgba(255,255,255,.06);color:#fff}
.rb-mobile-divider{height:1px;background:var(--rb-border-soft);margin:8px 2px}

/* ---------- Home ---------- */
.rb-home{max-width:1380px;margin:0 auto;padding:0 28px 100px}
.rb-hero{
    min-height:660px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
    gap:64px;align-items:center;padding:72px 0 58px;
}
.rb-eyebrow{
    display:inline-flex;align-items:center;gap:9px;padding:8px 11px;border:1px solid rgba(167,139,250,.26);
    border-radius:999px;background:rgba(139,92,246,.08);color:#c4b5fd;font-size:10px;font-weight:900;letter-spacing:.13em;
}
.rb-eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--rb-green);box-shadow:0 0 18px rgba(52,211,153,.8)}
.rb-hero h1{font-size:clamp(48px,5.4vw,78px);line-height:.98;letter-spacing:-.052em;margin:24px 0 24px;max-width:820px}
.rb-hero h1 span{display:block;background:linear-gradient(90deg,#c4b5fd 0%,#8b5cf6 38%,#67e8f9 90%);background-clip:text;-webkit-background-clip:text;color:transparent}
.rb-hero-lead{max-width:730px;color:#a6b4c5;font-size:19px;line-height:1.72;margin:0}
.rb-hero-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:30px}
.rb-btn-primary,.rb-btn-secondary{
    min-height:48px;padding:0 19px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;
    font-size:14px;font-weight:850;transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.rb-btn-primary{background:linear-gradient(135deg,var(--rb-purple),#6d28d9);color:#fff;box-shadow:0 15px 34px rgba(109,40,217,.22)}
.rb-btn-secondary{border:1px solid var(--rb-border);background:rgba(255,255,255,.018);color:#e4e9f1}
.rb-btn-primary:hover,.rb-btn-secondary:hover{transform:translateY(-2px)}
.rb-btn-secondary:hover{border-color:#50647e;background:rgba(255,255,255,.04)}
.rb-hero-proof{display:flex;gap:10px;flex-wrap:wrap;margin-top:32px}
.rb-hero-proof span{padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.025);border:1px solid var(--rb-border-soft);font-size:11px;color:#a8b6c8;font-weight:700}

.rb-product-window{
    position:relative;border:1px solid #2b3b52;border-radius:26px;overflow:hidden;
    background:linear-gradient(155deg,#121b29 0%,#0a0f18 62%);box-shadow:0 45px 120px rgba(0,0,0,.48);
}
.rb-product-window::before{content:"";position:absolute;inset:-120px -100px auto auto;width:300px;height:300px;border-radius:50%;background:rgba(139,92,246,.16);filter:blur(30px);pointer-events:none}
.rb-window-head{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--rb-border-soft);color:var(--rb-muted);font-size:11px;font-weight:800}
.rb-window-dots{display:flex;gap:6px}.rb-window-dots i{display:block;width:7px;height:7px;border-radius:50%;background:#334155}.rb-window-dots i:first-child{background:#8b5cf6}.rb-window-status{color:#6ee7b7}
.rb-product-body{padding:26px}
.rb-product-title{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.rb-product-title small{color:#9aa9bc;font-size:10px;font-weight:800;letter-spacing:.12em}.rb-product-title h2{font-size:24px;margin:7px 0 0}.rb-product-score{text-align:right}.rb-product-score strong{display:block;font-size:26px;color:#c4b5fd}.rb-product-score span{font-size:10px;color:var(--rb-muted)}
.rb-metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0}.rb-metric-grid article{padding:16px 13px;border:1px solid var(--rb-border-soft);border-radius:15px;background:rgba(255,255,255,.025)}.rb-metric-grid strong{display:block;font-size:23px}.rb-metric-grid span{display:block;margin-top:4px;font-size:10px;line-height:1.25;color:var(--rb-muted)}
.rb-path-preview{padding:17px;border:1px solid var(--rb-border-soft);border-radius:17px;background:#0a1019}.rb-path-preview>small{display:block;margin-bottom:12px;color:#a78bfa;font-size:9px;font-weight:900;letter-spacing:.14em}.rb-path-step{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #1a2636}.rb-path-step:first-of-type{border-top:0}.rb-path-step b{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#8b5cf619;color:#c4b5fd;font-size:10px}.rb-path-step strong{font-size:12px}.rb-path-step span{font-size:9px;color:var(--rb-muted)}

.rb-home-section{padding:72px 0}.rb-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.rb-section-head>div{max-width:760px}.rb-section-head h2{font-size:clamp(31px,3.4vw,46px);letter-spacing:-.035em;margin:10px 0 0}.rb-section-head p{color:var(--rb-muted);line-height:1.65;margin:12px 0 0}.rb-section-link{color:#c4b5fd;font-size:13px;font-weight:800}
.rb-start-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}.rb-start-main,.rb-start-side{border:1px solid var(--rb-border);border-radius:var(--rb-radius);background:linear-gradient(145deg,#111a28,#0c121c);padding:30px}.rb-start-main{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}.rb-start-main h3{font-size:27px;margin:8px 0}.rb-start-main p,.rb-start-side p{color:var(--rb-muted);line-height:1.62}.rb-start-side{display:flex;flex-direction:column;justify-content:space-between}.rb-start-side strong{font-size:18px}.rb-start-side a{margin-top:16px;color:#c4b5fd;font-weight:800}

.rb-course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.rb-course-card{position:relative;min-height:290px;padding:24px;border:1px solid var(--rb-border);border-radius:20px;background:linear-gradient(150deg,#121b29,#0c121c);display:flex;flex-direction:column;transition:.2s ease}.rb-course-card:hover{transform:translateY(-4px);border-color:#425777;box-shadow:0 24px 60px rgba(0,0,0,.22)}.rb-course-top{display:flex;align-items:center;justify-content:space-between}.rb-course-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#8b5cf617;border:1px solid #8b5cf63b;font-size:19px}.rb-course-level{font-size:9px;color:var(--rb-muted);font-weight:900;letter-spacing:.12em}.rb-course-card h3{font-size:22px;margin:22px 0 10px}.rb-course-card p{color:var(--rb-muted);font-size:13px;line-height:1.62;margin:0 0 20px}.rb-course-meta{display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid var(--rb-border-soft);font-size:10px;color:var(--rb-muted)}.rb-course-card>a{margin-top:15px;color:#c4b5fd;font-weight:850;font-size:12px}
.rb-empty{padding:32px;border:1px dashed var(--rb-border);border-radius:18px;color:var(--rb-muted);text-align:center}

.rb-learning-loop{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:stretch}.rb-loop-copy,.rb-loop-steps{border:1px solid var(--rb-border);border-radius:24px;background:#0d141f;padding:32px}.rb-loop-copy h2{font-size:37px;margin:12px 0 15px;letter-spacing:-.03em}.rb-loop-copy p{color:var(--rb-muted);line-height:1.68}.rb-loop-steps{display:grid;gap:8px}.rb-loop-step{display:grid;grid-template-columns:42px 1fr auto;gap:14px;align-items:center;padding:15px 14px;border-radius:14px;background:rgba(255,255,255,.025);border:1px solid transparent}.rb-loop-step:hover{border-color:#33465f}.rb-loop-step b{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#8b5cf61a;color:#c4b5fd}.rb-loop-step strong{font-size:13px}.rb-loop-step span{font-size:10px;color:var(--rb-muted)}
.rb-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.rb-feature-card{padding:23px;border:1px solid var(--rb-border);border-radius:19px;background:#0e1622;min-height:180px;transition:.18s ease}.rb-feature-card:hover{border-color:#40546f;background:#111b2a}.rb-feature-card>span{color:#a78bfa;font-size:9px;font-weight:900;letter-spacing:.13em}.rb-feature-card h3{font-size:19px;margin:13px 0 7px}.rb-feature-card strong{font-size:12px;color:#67e8f9}.rb-feature-card p{color:var(--rb-muted);font-size:12px;line-height:1.6}
.rb-final-cta{margin-top:60px;padding:40px;border:1px solid #3b3260;border-radius:26px;background:radial-gradient(circle at 95% 0,rgba(139,92,246,.2),transparent 35%),linear-gradient(145deg,#15172a,#0c111b);display:flex;align-items:center;justify-content:space-between;gap:30px}.rb-final-cta h2{font-size:34px;margin:8px 0}.rb-final-cta p{color:var(--rb-muted);margin:0}.rb-final-actions{display:flex;gap:10px;flex-wrap:wrap}

/* ---------- Authentication ---------- */
.rb-auth-shell{min-height:calc(100vh - 150px);max-width:1180px;margin:0 auto;padding:64px 28px 90px;display:grid;grid-template-columns:minmax(0,.95fr) minmax(360px,.75fr);gap:20px;align-items:stretch}.rb-auth-card,.rb-auth-aside{border:1px solid var(--rb-border);border-radius:25px;background:linear-gradient(150deg,#111a28,#0b111a);padding:36px}.rb-auth-card h1{font-size:38px;letter-spacing:-.035em;margin:12px 0}.rb-auth-card>p{color:var(--rb-muted);line-height:1.6;margin:0 0 27px}.rb-auth-form{display:grid;gap:9px}.rb-auth-form label{font-size:11px;color:#b8c4d4;font-weight:800;margin-top:8px}.rb-auth-form input{width:100%;min-height:50px;padding:0 15px;border:1px solid var(--rb-border);border-radius:12px;background:#090f18;color:#fff;outline:none}.rb-auth-form input:focus{border-color:#7655c9;box-shadow:0 0 0 3px rgba(139,92,246,.1)}.rb-auth-form button{margin-top:12px;border:0;cursor:pointer;width:100%}.rb-auth-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px}.rb-auth-links a{font-size:12px;color:#b8c4d4;font-weight:750}.rb-auth-links a:hover{color:#c4b5fd}.rb-auth-message,.rb-auth-error{padding:13px 14px;border-radius:12px;margin-bottom:16px;font-size:12px;font-weight:750}.rb-auth-error{border:1px solid rgba(251,113,133,.35);background:rgba(127,29,29,.2);color:#fecdd3}.rb-auth-message{border:1px solid rgba(52,211,153,.3);background:rgba(6,78,59,.22);color:#a7f3d0}.rb-auth-aside{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.rb-auth-aside::after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-90px;bottom:-90px;background:rgba(139,92,246,.14);filter:blur(18px)}.rb-auth-aside h2{font-size:30px;margin:12px 0}.rb-auth-aside>div>p{color:var(--rb-muted);line-height:1.65}.rb-auth-points{display:grid;gap:9px;margin-top:28px}.rb-auth-point{padding:13px 14px;border:1px solid var(--rb-border-soft);border-radius:13px;background:rgba(255,255,255,.02);font-size:12px;color:#c8d2df}.rb-auth-point b{color:#c4b5fd;margin-right:8px}.rb-auth-note{position:relative;z-index:1;margin-top:30px;padding-top:18px;border-top:1px solid var(--rb-border-soft);font-size:10px;color:var(--rb-muted);line-height:1.5}.rb-consent{display:grid;grid-template-columns:18px 1fr;gap:9px;align-items:start;margin-top:10px;color:var(--rb-muted);font-size:11px;line-height:1.5}.rb-consent input{width:16px;height:16px;min-height:0;margin-top:1px;accent-color:var(--rb-purple)}.rb-consent a{color:#c4b5fd}

/* ---------- Dashboard refinements ---------- */
.student-dashboard-v44{max-width:1280px}
.student-hero-v44{border-radius:25px!important;background:radial-gradient(circle at 85% 15%,rgba(139,92,246,.16),transparent 30%),linear-gradient(145deg,#111b29,#0b111a)!important;border-color:#2a3a50!important;box-shadow:0 28px 80px rgba(0,0,0,.2)}
.student-stat-grid-v44 article,.learning-flow-card-v60,.continue-card-v44,.momentum-section-v45,.student-course-card-v44,.student-action-grid-v44>a{border-color:#26374d!important;background:linear-gradient(145deg,#101823,#0b111a)!important}
.student-stat-grid-v44 article:hover,.student-course-card-v44:hover,.student-action-grid-v44>a:hover{border-color:#405673!important}
.rb-focus-panel{margin:34px 0;padding:26px;border:1px solid #3a315d;border-radius:21px;background:linear-gradient(145deg,rgba(139,92,246,.09),rgba(12,18,28,.96));display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}.rb-focus-copy{display:flex;gap:17px;align-items:flex-start}.rb-focus-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;background:#8b5cf61b;border:1px solid #8b5cf64d;color:#c4b5fd;font-weight:900}.rb-focus-copy small{display:block;font-size:9px;letter-spacing:.13em;color:#a78bfa;font-weight:900}.rb-focus-copy h3{margin:6px 0;font-size:21px}.rb-focus-copy p{margin:0;color:var(--rb-muted);line-height:1.58;font-size:12px}.rb-focus-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.rb-focus-meta span{padding:6px 9px;border-radius:999px;border:1px solid var(--rb-border-soft);font-size:9px;color:#a9b6c6;background:rgba(255,255,255,.02)}

/* ---------- Footer ---------- */
.site-footer-v45{max-width:1380px!important;margin:0 auto!important;padding:42px 28px!important;border-top:1px solid var(--rb-border-soft)!important;display:grid!important;grid-template-columns:1.1fr 1fr!important;gap:28px!important;background:transparent!important}.site-footer-v45>div p{max-width:520px;color:var(--rb-muted)!important;line-height:1.6!important}.site-footer-v45 nav{display:flex!important;justify-content:flex-end!important;align-items:flex-start!important;flex-wrap:wrap!important;gap:8px 18px!important}.site-footer-v45 nav a{color:#a7b5c7!important;font-size:12px!important}.site-footer-v45 small{grid-column:1/-1;color:#65758a!important}

/* ---------- Responsiveness ---------- */
@media(max-width:1120px){
    .rb-main-nav{display:none}.rb-account-nav{margin-left:auto}.rb-mobile-nav{display:block;margin-left:0}
    .rb-hero{grid-template-columns:1fr;min-height:auto;gap:34px;padding-top:62px}.rb-product-window{max-width:760px}
    .rb-course-grid{grid-template-columns:repeat(2,1fr)}
    .rb-learning-loop{grid-template-columns:1fr}.rb-feature-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:860px){
    .rb-auth-shell{grid-template-columns:1fr;max-width:700px}.rb-auth-aside{min-height:300px}
    .rb-start-grid{grid-template-columns:1fr}.rb-final-cta{align-items:flex-start;flex-direction:column}
    .rb-metric-grid{grid-template-columns:repeat(2,1fr)}
    .site-footer-v45{grid-template-columns:1fr!important}.site-footer-v45 nav{justify-content:flex-start!important}.site-footer-v45 small{grid-column:auto}
}
@media(max-width:640px){
    .rb-topbar{padding:10px 16px;gap:10px}.rb-brand-copy small{display:none}.rb-account-nav{display:none}.rb-mobile-nav{margin-left:auto}
    .rb-home{padding:0 17px 70px}.rb-hero{padding-top:45px}.rb-hero h1{font-size:44px}.rb-hero-lead{font-size:16px}.rb-hero-actions>a{width:100%}.rb-hero-proof{gap:6px}.rb-hero-proof span{font-size:9px}
    .rb-product-body{padding:17px}.rb-product-title{display:block}.rb-product-score{text-align:left;margin-top:14px}.rb-metric-grid{grid-template-columns:repeat(2,1fr)}
    .rb-home-section{padding:52px 0}.rb-section-head{display:block}.rb-section-link{display:inline-block;margin-top:15px}.rb-start-main{grid-template-columns:1fr}.rb-course-grid,.rb-feature-grid{grid-template-columns:1fr}.rb-loop-copy,.rb-loop-steps{padding:22px}.rb-loop-step{grid-template-columns:38px 1fr}.rb-loop-step>span{display:none}.rb-final-cta{padding:26px}.rb-final-actions{width:100%}.rb-final-actions>a{width:100%}
    .rb-auth-shell{padding:38px 16px 70px}.rb-auth-card,.rb-auth-aside{padding:25px}.rb-auth-card h1{font-size:31px}.rb-auth-links{display:grid}
    .rb-focus-panel{grid-template-columns:1fr}.rb-focus-panel>a{width:100%}
    .site-footer-v45{padding:32px 18px!important}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.rb-btn-primary,.rb-btn-secondary,.rb-course-card,.rb-feature-card{transition:none}}
