@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap");
/* Letter Writing — Product UI v2
   Static, dependency-free design system for the Laravel application. */
:root{
  --ink:#131313;
  --ink-2:#24231f;
  --paper:#f6f4ef;
  --paper-2:#eeece5;
  --surface:#ffffff;
  --surface-soft:#faf9f6;
  --line:#dfddd5;
  --line-strong:#c9c6bd;
  --text:#191918;
  --muted:#706e68;
  --muted-2:#96938b;
  --violet:#6f55f5;
  --violet-strong:#593df0;
  --violet-soft:#efecff;
  --acid:#d9ff62;
  --acid-ink:#1d2a00;
  --green:#17794e;
  --green-soft:#e8f8ef;
  --amber:#9b5d00;
  --amber-soft:#fff3d9;
  --red:#b52d35;
  --red-soft:#ffeaeb;
  --blue:#2563a9;
  --blue-soft:#e9f2ff;
  --shadow-sm:0 1px 1px rgba(17,17,17,.04),0 8px 22px rgba(17,17,17,.05);
  --shadow-lg:0 24px 70px rgba(20,18,12,.12);
  --radius-sm:10px;
  --radius:16px;
  --radius-lg:24px;
  --sidebar:264px;
  --topbar:76px;
  --font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --display:"SF Pro Display",Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
	
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.52}
img,svg{display:block;max-width:100%}
::selection{background:var(--acid);color:#111}
[x-cloak]{display:none!important}

/* utilities */
.muted{color:var(--muted)!important}.subtle{color:var(--muted-2)!important}.small{font-size:12px}.tiny{font-size:11px}.mono{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}.amount{font-variant-numeric:tabular-nums;font-weight:760;letter-spacing:-.015em}.positive{color:var(--green)}.negative{color:var(--red)}.nowrap{white-space:nowrap}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.full{width:100%}.right{text-align:right}.center{text-align:center}.spacer{flex:1}.divider{height:1px;background:var(--line)}

/* icon / brand */
.icon{width:20px;height:20px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.brand{display:inline-flex;align-items:center;gap:11px;font-weight:800;letter-spacing:-.02em}
.brand-symbol{width:34px;height:34px;border-radius:11px;background:var(--acid);color:#121212;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(0,0,0,.09);position:relative;overflow:hidden}
.brand-symbol:before{content:"";width:15px;height:18px;border:2px solid currentColor;border-radius:4px;transform:rotate(-5deg)}
.brand-symbol:after{content:"";position:absolute;width:9px;height:2px;background:currentColor;top:15px;left:13px;box-shadow:0 4px 0 currentColor;transform:rotate(-5deg)}
.brand-copy{display:flex;flex-direction:column;line-height:1.03}.brand-name{font-size:14px}.brand-caption{font-size:9px;text-transform:uppercase;letter-spacing:.17em;color:#8f8d86;font-weight:700;margin-top:4px}

/* app shell */
.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#151513;color:#f7f5ef;padding:22px 18px 18px;display:flex;flex-direction:column;z-index:50;border-right:1px solid #2b2a27}
.sidebar .brand{padding:4px 8px 22px}.sidebar .brand-caption{color:#77756e}.sidebar .brand-symbol{box-shadow:none}
.sidebar-context{margin:0 7px 18px;padding:11px 12px;border:1px solid #302f2b;border-radius:12px;background:#1d1c19;color:#bbb8af;font-size:11px;display:flex;align-items:center;gap:9px}.sidebar-context .context-dot{width:7px;height:7px;border-radius:50%;background:var(--acid);box-shadow:0 0 0 4px rgba(217,255,98,.08)}
.nav{display:flex;flex-direction:column;gap:3px;overflow:auto;padding-right:2px}.nav::-webkit-scrollbar{width:4px}.nav::-webkit-scrollbar-thumb{background:#383733;border-radius:99px}
.nav-section{font-size:9px;text-transform:uppercase;letter-spacing:.17em;color:#696862;font-weight:800;padding:18px 10px 7px}
.nav-link{height:42px;border-radius:11px;padding:0 11px;display:flex;align-items:center;gap:11px;color:#aaa8a0;font-weight:650;transition:.18s ease;position:relative}
.nav-link .icon{width:18px;height:18px}.nav-link:hover{background:#22211e;color:#f8f6f0}.nav-link.active{background:#f1efe8;color:#121211}.nav-link.active:after{content:"";position:absolute;right:7px;width:5px;height:5px;border-radius:50%;background:var(--violet)}
.sidebar-bottom{margin-top:auto;padding-top:16px;border-top:1px solid #2d2c28}.profile-chip{display:flex;align-items:center;gap:10px;padding:8px}.avatar{width:36px;height:36px;border-radius:12px;background:#2c2b27;color:#f5f2e9;display:grid;place-items:center;font-weight:800;font-size:12px;flex:0 0 auto;border:1px solid #373630}.profile-meta{min-width:0;flex:1}.profile-name{font-weight:750;font-size:12px;color:#efede7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-email{font-size:10px;color:#797872;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.sidebar-signout{width:100%;margin-top:6px;border:0;background:transparent;color:#77756f;border-radius:9px;padding:9px 10px;text-align:left;font-weight:650;display:flex;align-items:center;gap:9px}.sidebar-signout:hover{background:#211f1c;color:#ddd9d0}
.app-main{grid-column:2;min-width:0}.topbar{height:var(--topbar);position:sticky;top:0;z-index:35;background:rgba(246,244,239,.88);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(201,198,189,.72);display:flex;align-items:center;justify-content:space-between;padding:0 34px}
.topbar-left{display:flex;align-items:center;gap:14px}.mobile-menu{display:none}.crumb{font-size:12px;color:var(--muted)}.page-title{font-size:14px;font-weight:780;letter-spacing:-.015em}.top-actions{display:flex;align-items:center;gap:8px}.icon-btn{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.7);display:grid;place-items:center;color:var(--ink);transition:.18s}.icon-btn:hover{background:#fff;border-color:var(--line-strong);transform:translateY(-1px)}.icon-btn.has-dot:after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:var(--violet);border:2px solid var(--paper);right:7px;top:7px}
.main-content{width:min(1500px,100%);margin:0 auto;padding:34px 34px 70px}

/* page composition */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.page-head.compact{margin-bottom:18px}.page-head h1{font-family:var(--display);font-size:clamp(29px,3.1vw,46px);line-height:1.01;letter-spacing:-.045em;margin:0;max-width:780px;font-weight:780}.page-head p{color:var(--muted);font-size:14px;max-width:690px;margin:10px 0 0}.page-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.155em;font-weight:820;color:var(--violet);margin-bottom:8px}.section-kicker{font-size:11px;font-weight:760;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}.section-title h2{margin:0;font-size:16px;letter-spacing:-.02em}.section-title p{margin:3px 0 0;color:var(--muted);font-size:12px}.section-title .link{font-size:12px;color:var(--violet-strong);font-weight:760}
.stack{display:flex;flex-direction:column;gap:16px}.stack-lg{display:flex;flex-direction:column;gap:24px}.grid-2{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.two-pane{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.75fr);gap:18px}.deposit-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr);gap:20px}.editor-shell{display:grid;grid-template-columns:300px minmax(0,1fr) 300px;gap:16px;align-items:start}.admin-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.opportunity-grid,.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.metrics.metrics-6{grid-template-columns:repeat(6,minmax(0,1fr))}

/* cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}.card-pad{padding:20px}.card-pad-lg{padding:26px}.soft-card{background:var(--surface-soft);border:1px solid var(--line);border-radius:13px;padding:15px}.ink-card{background:var(--ink);color:#fff;border:1px solid #252421;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}.accent-card{background:linear-gradient(135deg,#6f55f5 0%,#5d40ee 52%,#432ec8 100%);color:#fff;border:0;border-radius:var(--radius-lg);box-shadow:0 20px 55px rgba(89,61,240,.24)}
.metric{padding:18px;min-height:132px;display:flex;flex-direction:column;justify-content:space-between}.metric-label{font-size:9px;letter-spacing:.145em;text-transform:uppercase;color:var(--muted);font-weight:820}.metric-value{font-family:var(--display);font-size:31px;font-weight:790;line-height:1;letter-spacing:-.045em;margin:15px 0 8px;font-variant-numeric:tabular-nums}.metric-foot{font-size:11px;color:var(--muted)}.metric.primary{background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:0 16px 46px rgba(17,17,17,.14)}.metric.primary .metric-label,.metric.primary .metric-foot{color:#8f8c84}.metric.accent{background:var(--acid);border-color:#c6ea55}.metric.accent .metric-label,.metric.accent .metric-foot{color:#596427}.metric.admin-kpi{background:#1b1a18;color:#fff;border-color:#282723}.metric.admin-kpi .metric-label{color:#77756e}

/* buttons */
.btn{min-height:42px;padding:0 15px;border-radius:11px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:780;letter-spacing:-.005em;transition:.18s ease;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn-primary{background:var(--violet);color:#fff;border-color:var(--violet);box-shadow:0 6px 16px rgba(111,85,245,.2)}.btn-primary:hover{background:var(--violet-strong);border-color:var(--violet-strong)}.btn-dark{background:var(--ink);color:#fff;border-color:var(--ink)}.btn-dark:hover{background:#292824}.btn-secondary{background:#fff;color:var(--ink);border-color:var(--line)}.btn-secondary:hover{border-color:var(--line-strong);box-shadow:var(--shadow-sm)}.btn-soft{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}.btn-danger{background:var(--red);color:#fff}.btn-acid{background:var(--acid);color:var(--acid-ink);border-color:#c6ec4f}.btn-sm{min-height:35px;padding:0 11px;border-radius:9px;font-size:11px}.btn-lg{min-height:50px;padding:0 20px;border-radius:13px}.btn-block{width:100%}.btn-icon{padding-left:12px;padding-right:12px}.btn .icon{width:16px;height:16px}

/* forms */
.form-stack{display:flex;flex-direction:column;gap:15px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.label{font-size:11px;font-weight:780;color:#44423d;display:flex;justify-content:space-between;align-items:center;gap:8px}.help{font-size:11px;color:var(--muted);line-height:1.45}.input,.select,.textarea{width:100%;border:1px solid var(--line-strong);background:#fff;color:var(--text);border-radius:11px;outline:none;transition:.18s;border-color:var(--line);box-shadow:0 1px 0 rgba(0,0,0,.02)}.input,.select{height:44px;padding:0 12px}.textarea{min-height:112px;padding:11px 12px;resize:vertical;line-height:1.55}.input::placeholder,.textarea::placeholder{color:#aaa79f}.input:hover,.select:hover,.textarea:hover{border-color:#c6c3bb}.input:focus,.select:focus,.textarea:focus{border-color:var(--violet);box-shadow:0 0 0 3px rgba(111,85,245,.11)}.input[readonly],.input:disabled{background:#f1efe9;color:#85827b}.checkbox-row{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#55534e}.checkbox-row input{margin-top:2px;accent-color:var(--violet);width:15px;height:15px}.searchbar{display:flex;gap:8px;align-items:center}.searchbar .input,.searchbar .select{min-width:180px}.field-inline{display:flex;gap:8px;align-items:center}.field-inline .input{flex:1}.password-wrap{position:relative}.password-wrap .input{padding-right:46px}.password-toggle{position:absolute;right:5px;top:5px;width:34px;height:34px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;border-radius:8px}.password-toggle:hover{background:var(--paper-2);color:var(--ink)}
.dropzone{min-height:126px;border:1px dashed #b9b6ad;background:#faf9f6;border-radius:14px;padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;cursor:pointer;transition:.18s}.dropzone:hover{border-color:var(--violet);background:#f8f6ff}.dropzone .upload-icon{width:38px;height:38px;border-radius:12px;background:var(--violet-soft);color:var(--violet);display:grid;place-items:center;margin-bottom:4px}.dropzone strong{font-size:12px}

/* badges / alerts */
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:840;border:1px solid transparent;white-space:nowrap}.badge .dot{width:5px;height:5px;border-radius:50%;background:currentColor}.badge-success{background:var(--green-soft);color:var(--green);border-color:#c9ecd9}.badge-warning{background:var(--amber-soft);color:var(--amber);border-color:#f0d9aa}.badge-danger{background:var(--red-soft);color:var(--red);border-color:#f2c9cc}.badge-neutral{background:#f0eee8;color:#66635c;border-color:#e1ded5}.badge-violet{background:var(--violet-soft);color:var(--violet-strong);border-color:#dcd5ff}.alert{border-radius:13px;padding:13px 15px;border:1px solid;display:flex;gap:10px;align-items:flex-start;font-size:12px;margin-bottom:16px}.alert strong{font-weight:820}.alert-info{background:var(--blue-soft);border-color:#cddff6;color:#24598f}.alert-success{background:var(--green-soft);border-color:#c7ead6;color:#176e49}.alert-danger{background:var(--red-soft);border-color:#efc6ca;color:#9c2830}.alert-warning{background:var(--amber-soft);border-color:#efd8a8;color:#875209}.alert-close{margin-left:auto;border:0;background:transparent;color:currentColor;opacity:.65;padding:0}.alert-close:hover{opacity:1}

/* lists / tables */
.list{display:flex;flex-direction:column}.list-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.list-row:first-child{padding-top:0}.list-row:last-child{border-bottom:0;padding-bottom:0}.row-main{flex:1;min-width:0}.row-title{font-size:12px;font-weight:780;color:var(--ink)}.row-sub{font-size:10px;color:var(--muted);margin-top:2px;word-break:break-word}.list-icon{width:38px;height:38px;border-radius:12px;background:var(--paper-2);display:grid;place-items:center;color:#5d5b55;flex:0 0 auto}.list-icon.success{background:var(--green-soft);color:var(--green)}.list-icon.violet{background:var(--violet-soft);color:var(--violet)}
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:auto;box-shadow:var(--shadow-sm)}.table{width:100%;border-collapse:collapse;min-width:760px}.table th{text-align:left;font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#89867f;font-weight:820;padding:12px 15px;background:#faf9f6;border-bottom:1px solid var(--line)}.table td{padding:14px 15px;border-bottom:1px solid #ebe9e3;vertical-align:middle;font-size:11px}.table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fbfaf7}.table-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.table-actions .input,.table-actions .select{height:35px;min-height:35px}.table .status-cell{width:1%}
.empty{padding:46px 22px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.empty:before{content:"";width:42px;height:42px;border-radius:14px;background:var(--paper-2);box-shadow:inset 0 0 0 1px var(--line);margin-bottom:4px}.empty strong{color:var(--ink);font-size:13px}.empty.compact{padding:24px 12px}.empty.compact:before{width:32px;height:32px;border-radius:10px}
.pagination{display:flex;align-items:center;justify-content:center;gap:5px;margin:18px 0}.pagination a,.pagination span{min-width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;font-size:11px;color:var(--muted)}.pagination .active{background:var(--ink);color:#fff;border-color:var(--ink)}

/* wallet / finance */
.wallet-card{background:linear-gradient(150deg,#171715 0%,#24221e 100%);color:#fff;border-radius:24px;padding:24px;box-shadow:0 22px 55px rgba(17,17,17,.2);position:sticky;top:96px;overflow:hidden}.wallet-card:before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;background:rgba(111,85,245,.2);filter:blur(4px);right:-90px;top:-90px}.wallet-card:after{content:"";position:absolute;width:110px;height:110px;border:1px solid rgba(217,255,98,.26);border-radius:50%;right:22px;bottom:-60px}.wallet-card>*{position:relative;z-index:1}.crypto-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:30px}.crypto-head .asset{font-family:var(--display);font-size:34px;letter-spacing:-.05em;font-weight:790}.network{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:6px 9px;font-size:9px;letter-spacing:.08em;text-transform:uppercase}.wallet-card .eyebrow{color:#9b978e}.address-box{margin-top:8px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:13px;word-break:break-all;font-size:11px;color:#e6e2d9}.destination-note{display:flex;gap:10px;margin-bottom:22px;color:#b9b5aa;font-size:11px}.destination-note strong{display:block;color:#fff;font-size:12px;margin-bottom:2px}.destination-glyph{width:34px;height:34px;border-radius:11px;background:var(--acid);color:#111;display:grid;place-items:center;font-weight:900}.wallet-warning{margin-top:18px;padding-top:17px;border-top:1px solid rgba(255,255,255,.1);font-size:10px;color:#a8a49a;line-height:1.6}.wallet-warning strong{color:#fff}.mini-stat{background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.mini-stat span{font-size:10px;color:var(--muted)}.mini-stat strong{font-size:11px}.status-step{display:grid;grid-template-columns:18px 1fr;gap:10px;position:relative;padding:0 0 20px}.status-step:not(:last-child):before{content:"";position:absolute;width:1px;background:var(--line);top:14px;bottom:0;left:6px}.step-dot{width:13px;height:13px;border-radius:50%;margin-top:3px;background:#fff;border:2px solid #c9c6bd;position:relative;z-index:1}.step-dot.done{background:var(--green);border-color:var(--green);box-shadow:0 0 0 3px var(--green-soft)}.step-dot.current{border-color:var(--violet);box-shadow:0 0 0 3px var(--violet-soft)}.status-step strong{font-size:12px}.status-step .help{margin-top:2px}

/* courses */
.course-card{overflow:hidden;transition:.2s ease}.course-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(25,24,21,.09);border-color:#d2cfc6}.course-cover{height:138px;position:relative;background:linear-gradient(135deg,#161614,#34312b);overflow:hidden}.course-cover:before{content:"Aa";position:absolute;font-family:Georgia,serif;font-size:86px;line-height:1;font-style:italic;color:rgba(255,255,255,.13);right:18px;bottom:-6px}.course-cover:after{content:"";position:absolute;width:80px;height:80px;border-radius:50%;background:var(--acid);left:-26px;top:-24px}.course-card:nth-child(3n+2) .course-cover{background:linear-gradient(135deg,#6750e7,#3f2bb7)}.course-card:nth-child(3n+2) .course-cover:after{background:#ffb7d5}.course-card:nth-child(3n+3) .course-cover{background:linear-gradient(135deg,#2a563d,#183425)}.course-card:nth-child(3n+3) .course-cover:after{background:#f4d66b}.course-body{padding:18px}.course-title{font-family:var(--display);font-size:18px;line-height:1.16;font-weight:780;letter-spacing:-.025em;margin:6px 0}.course-desc{font-size:11px;color:var(--muted);min-height:49px}.course-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}.price{font-size:17px;font-weight:830;letter-spacing:-.03em}.progress{height:7px;border-radius:99px;background:var(--paper-2);overflow:hidden}.progress span{display:block;height:100%;background:var(--violet);border-radius:inherit}
.lesson-row{border:1px solid var(--line);background:#fff;border-radius:13px;padding:14px;display:flex;align-items:flex-start;gap:12px}.lesson-num{width:32px;height:32px;border-radius:10px;background:var(--paper-2);display:grid;place-items:center;font-size:10px;font-weight:820;color:var(--muted);flex:0 0 auto}.lesson-copy{flex:1}.lesson-copy h3{font-size:12px;margin:0 0 3px}.lesson-content{font-size:11px;color:var(--muted);margin-top:10px;white-space:pre-line}

/* opportunities / editor */
.opportunity-card{padding:20px;display:flex;flex-direction:column;min-height:260px;transition:.2s}.opportunity-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(25,24,21,.08)}.opportunity-card h3{font-family:var(--display);font-size:19px;letter-spacing:-.03em;margin:4px 0 8px}.opportunity-card p{flex:1}.opportunity-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.editor-panel{position:sticky;top:96px}.textarea.editor{min-height:590px;border:0;background:#fff;box-shadow:none;padding:10px 12px;font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.8;resize:vertical}.editor-canvas{padding:10px;background:#fff}.editor-toolbar{padding:12px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.word-count{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.save-state{font-size:10px;color:var(--muted)}

/* public */
.public-body{background:#11110f;color:#f5f2ea}.public-shell{min-height:100vh;overflow:hidden}.public-nav{height:82px;display:flex;align-items:center;justify-content:space-between;width:min(1220px,calc(100% - 44px));margin:0 auto;position:relative;z-index:10}.public-nav .brand-caption{color:#77746d}.public-links{display:flex;align-items:center;gap:23px;font-size:11px;color:#a9a69e}.public-links>a:not(.btn):hover{color:#fff}.public-hero{width:min(1220px,calc(100% - 44px));min-height:720px;margin:0 auto;padding:76px 0 92px;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(400px,.92fr);gap:60px;align-items:center;position:relative}.public-hero:before{content:"";position:absolute;width:500px;height:500px;border-radius:50%;background:rgba(111,85,245,.23);filter:blur(90px);right:-120px;top:70px;pointer-events:none}.hero-copy{position:relative;z-index:2}.hero-kicker{display:inline-flex;align-items:center;gap:8px;color:#aaa69c;font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:800;margin-bottom:20px}.hero-kicker:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--acid);box-shadow:0 0 0 4px rgba(217,255,98,.08)}.public-hero h1{font-family:var(--display);font-size:clamp(54px,6.1vw,92px);line-height:.89;letter-spacing:-.068em;margin:0;font-weight:760;max-width:820px}.public-hero h1 em{font-family:Georgia,serif;font-weight:400;color:var(--acid)}.public-hero p{font-size:16px;line-height:1.65;color:#a8a49a;max-width:620px;margin:26px 0 0}.hero-actions{display:flex;gap:10px;align-items:center;margin-top:30px}.public-hero .btn-secondary{background:transparent;color:#e8e4da;border-color:#3b3934}.public-hero .btn-secondary:hover{background:#1b1a17}.hero-visual{position:relative;z-index:2;min-height:540px}.paper-stack{position:absolute;inset:20px 0 0 30px}.paper-sheet{position:absolute;background:#f9f7f1;color:#171715;border-radius:18px;box-shadow:0 35px 80px rgba(0,0,0,.34);border:1px solid rgba(255,255,255,.17);padding:34px;width:360px;height:460px;right:40px;top:22px;transform:rotate(4deg)}.paper-sheet.back{background:#6f55f5;right:118px;top:55px;transform:rotate(-8deg);width:330px;height:430px}.paper-sheet.mid{background:#d9ff62;right:70px;top:52px;transform:rotate(-1deg);width:345px;height:440px}.paper-lines{display:grid;gap:12px;margin-top:34px}.paper-lines span{height:7px;border-radius:99px;background:#dedbd2}.paper-lines span:nth-child(2){width:83%}.paper-lines span:nth-child(3){width:91%}.paper-lines span:nth-child(4){width:68%}.paper-lines span:nth-child(5){width:88%}.paper-lines span:nth-child(6){width:55%}.paper-sign{font-family:Georgia,serif;font-style:italic;font-size:24px;margin-top:42px}.paper-meta{display:flex;justify-content:space-between;font-size:9px;color:#88847c;text-transform:uppercase;letter-spacing:.12em}.floating-chip{position:absolute;background:#201f1c;border:1px solid #393732;color:#f4f1e8;border-radius:14px;padding:12px 14px;box-shadow:0 18px 40px rgba(0,0,0,.25);font-size:10px;z-index:5}.floating-chip strong{display:block;font-size:18px;letter-spacing:-.04em;margin-top:2px}.floating-chip.one{left:0;top:120px}.floating-chip.two{right:0;bottom:70px}.public-band{background:var(--acid);color:#151811}.public-band-inner{width:min(1220px,calc(100% - 44px));margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:0}.public-stat{padding:25px 30px;border-right:1px solid rgba(24,30,7,.18)}.public-stat:first-child{padding-left:0}.public-stat:last-child{border-right:0}.public-stat strong{font-size:20px;letter-spacing:-.04em;display:block}.public-stat span{font-size:10px;color:#58631f}.public-section{width:min(1220px,calc(100% - 44px));margin:0 auto;padding:118px 0}.public-section-head{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:end;margin-bottom:48px}.public-section h2{font-family:var(--display);font-size:clamp(36px,4.5vw,62px);line-height:.96;letter-spacing:-.055em;margin:0;max-width:680px}.public-section-head p{color:#9c998f;font-size:14px;max-width:530px;margin:0}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.feature-card{border:1px solid #2e2d29;background:#191816;border-radius:18px;padding:24px;min-height:240px;display:flex;flex-direction:column}.feature-card .num{font-size:10px;color:#6d6b65;margin-bottom:auto}.feature-card .feature-icon{width:44px;height:44px;border-radius:14px;background:#24231f;display:grid;place-items:center;color:var(--acid);margin-bottom:18px}.feature-card h3{font-size:16px;margin:0 0 8px}.feature-card p{font-size:11px;color:#8f8c84;margin:0}.public-quote{border-top:1px solid #2a2925;border-bottom:1px solid #2a2925;padding:70px 0;display:grid;grid-template-columns:.5fr 1.5fr;gap:40px}.public-quote .quote-mark{font-family:Georgia,serif;font-size:90px;color:var(--acid);line-height:.7}.public-quote blockquote{font-family:Georgia,serif;font-size:clamp(28px,3.8vw,48px);line-height:1.1;margin:0;color:#efebe2}.cta-panel{background:#f3f0e8;color:#151513;border-radius:26px;padding:56px;display:flex;align-items:center;justify-content:space-between;gap:40px}.cta-panel h2{font-size:44px;max-width:660px}.cta-panel p{color:#716e66;margin:10px 0 0}.footer{width:min(1220px,calc(100% - 44px));margin:0 auto;padding:30px 0 38px;border-top:1px solid #2b2a26;display:flex;justify-content:space-between;gap:20px;color:#77746c;font-size:10px}

/* auth */
.auth-body{background:#f2f0ea;min-height:100vh}.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(440px,.95fr) minmax(500px,1.05fr)}.auth-art{background:#151513;color:#fff;padding:34px 46px;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-art:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:rgba(111,85,245,.35);filter:blur(100px);right:-120px;top:160px}.auth-art:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;border:1px solid rgba(217,255,98,.18);right:30px;bottom:50px}.auth-art .brand{position:relative;z-index:2}.auth-art .brand-caption{color:#77756e}.auth-message{margin:auto 0;position:relative;z-index:2;max-width:560px}.auth-message h1{font-family:var(--display);font-size:clamp(48px,5vw,74px);line-height:.92;letter-spacing:-.06em;margin:0}.auth-message h1 em{font-family:Georgia,serif;color:var(--acid);font-weight:400}.auth-message p{max-width:470px;color:#97948b;font-size:13px;line-height:1.7;margin-top:20px}.auth-proof{display:flex;align-items:center;gap:12px;margin-top:28px;color:#77746d;font-size:10px}.auth-proof span{display:inline-flex;align-items:center;gap:6px}.auth-proof i{width:5px;height:5px;border-radius:50%;background:var(--acid)}.auth-footer{position:relative;z-index:2;font-size:10px;color:#65635e}.auth-panel{display:grid;place-items:center;padding:50px;background:radial-gradient(circle at 70% 20%,rgba(111,85,245,.08),transparent 35%),#f3f1eb}.auth-box{width:min(470px,100%)}.auth-box-head{margin-bottom:26px}.auth-box h2{font-family:var(--display);font-size:34px;line-height:1.06;letter-spacing:-.045em;margin:0}.auth-box-head p{color:var(--muted);font-size:12px;margin:8px 0 0}.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:0 20px 60px rgba(24,22,16,.07)}.auth-links{text-align:center;font-size:11px;color:var(--muted);margin-top:17px}.auth-links a{color:var(--violet-strong);font-weight:760}.admin-auth-tag{display:inline-flex;align-items:center;gap:6px;background:#292824;color:#c6c2b9;border-radius:999px;padding:6px 9px;font-size:9px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:14px}

/* admin chrome */
.admin-shell .sidebar{background:#10100f}.admin-shell .brand-symbol{background:#ffb65c}.admin-shell .nav-link.active:after{background:#ffb65c}.admin-shell .topbar{background:rgba(241,239,233,.9)}.admin-shell .main-content{background:#f1efe9;min-height:calc(100vh - var(--topbar))}.admin-shell .eyebrow{color:#ae6511}.danger-zone{border-color:#e8c7c9;background:#fffafa}
.admin-note{background:#1b1a18;color:#d8d5cd;border-radius:14px;padding:13px 14px;font-size:10px;display:flex;align-items:flex-start;gap:9px}.admin-note .icon{color:#ffb65c}

/* details */
details.soft-card{padding:0;overflow:hidden}details.soft-card>summary{list-style:none;padding:14px 15px;cursor:pointer;font-weight:760;font-size:12px;display:flex;align-items:center;justify-content:space-between}details.soft-card>summary::-webkit-details-marker{display:none}details.soft-card>summary:after{content:"+";width:23px;height:23px;border-radius:8px;background:#eeece6;display:grid;place-items:center;color:var(--muted)}details.soft-card[open]>summary:after{content:"−"}details.soft-card>form,details.soft-card>.details-content{padding:0 15px 15px;border-top:1px solid var(--line);padding-top:15px}

/* responsive */
.mobile-overlay{display:none}.mobile-nav{display:none}
@media(max-width:1250px){.metrics.metrics-6{grid-template-columns:repeat(3,1fr)}.metrics{grid-template-columns:repeat(2,1fr)}.editor-shell{grid-template-columns:240px minmax(0,1fr)}.editor-shell>aside:last-child{grid-column:2}.opportunity-grid,.course-grid{grid-template-columns:repeat(2,1fr)}.public-hero{grid-template-columns:1fr .8fr}.paper-sheet{right:0}.paper-sheet.back{right:65px}}
@media(max-width:980px){:root{--sidebar:244px}.sidebar{transform:translateX(-100%);transition:.24s ease;box-shadow:20px 0 50px rgba(0,0,0,.18)}body.nav-open .sidebar{transform:translateX(0)}.app-shell{display:block}.app-main{grid-column:auto}.topbar{padding:0 22px}.mobile-menu{display:grid}.main-content{padding:26px 22px 82px}.mobile-overlay{display:block;position:fixed;inset:0;background:rgba(15,15,14,.43);z-index:45;opacity:0;visibility:hidden;transition:.2s}body.nav-open .mobile-overlay{opacity:1;visibility:visible}.grid-2,.two-pane,.deposit-grid,.admin-grid{grid-template-columns:1fr}.wallet-card,.editor-panel{position:relative;top:auto}.editor-shell{grid-template-columns:1fr}.editor-shell>aside:last-child{grid-column:auto}.public-hero{grid-template-columns:1fr;padding-top:50px}.hero-visual{min-height:500px}.public-section-head{grid-template-columns:1fr;gap:18px}.auth-page{grid-template-columns:1fr}.auth-art{display:none}.auth-panel{min-height:100vh}.feature-grid{grid-template-columns:1fr 1fr}.cta-panel{padding:38px}.mobile-nav{display:flex;position:fixed;z-index:34;left:14px;right:14px;bottom:12px;height:62px;background:rgba(22,22,20,.94);backdrop-filter:blur(18px);border:1px solid #34332f;border-radius:18px;padding:7px;box-shadow:0 16px 40px rgba(0,0,0,.2);justify-content:space-around}.mobile-nav a{color:#87847d;font-size:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:52px;border-radius:11px}.mobile-nav a .icon{width:17px;height:17px}.mobile-nav a.active{background:#f0eee7;color:#151513;font-weight:750}}
@media(max-width:720px){.topbar{height:66px;padding:0 15px}.topbar .crumb{display:none}.main-content{padding:22px 15px 90px}.page-head{align-items:flex-start;flex-direction:column;margin-bottom:22px}.page-head h1{font-size:34px}.page-actions{width:100%;justify-content:flex-start}.page-actions .btn{flex:1}.metrics,.metrics.metrics-6{grid-template-columns:1fr 1fr;gap:10px}.metric{min-height:118px;padding:15px}.metric-value{font-size:26px}.card-pad{padding:16px}.card-pad-lg{padding:19px}.grid-3,.opportunity-grid,.course-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.searchbar{width:100%;align-items:stretch}.searchbar .input,.searchbar .select{min-width:0;flex:1}.public-nav{width:calc(100% - 28px);height:70px}.public-links>a:not(.btn){display:none}.public-hero{width:calc(100% - 28px);min-height:auto;padding:60px 0 76px}.public-hero h1{font-size:57px}.public-hero p{font-size:14px}.hero-visual{min-height:410px}.paper-stack{inset:0}.paper-sheet{width:280px;height:370px;padding:25px;right:12px}.paper-sheet.mid{width:270px;height:360px;right:36px}.paper-sheet.back{width:255px;height:340px;right:78px}.floating-chip.one{top:80px}.floating-chip.two{bottom:24px}.public-band-inner{width:100%;grid-template-columns:1fr}.public-stat{padding:17px 22px!important;border-right:0;border-bottom:1px solid rgba(24,30,7,.18)}.public-stat:last-child{border-bottom:0}.public-section{width:calc(100% - 28px);padding:76px 0}.feature-grid{grid-template-columns:1fr}.public-quote{grid-template-columns:1fr;gap:14px;padding:50px 0}.cta-panel{padding:28px;display:block}.cta-panel h2{font-size:34px}.cta-panel .btn{margin-top:20px;width:100%}.footer{width:calc(100% - 28px);display:block}.footer>div+div{margin-top:8px}.auth-panel{padding:28px 16px}.auth-card{padding:20px}.table-wrap{border:0;background:transparent;box-shadow:none;overflow:visible}.responsive-table{min-width:0}.responsive-table thead{display:none}.responsive-table,.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block;width:100%}.responsive-table tbody{display:grid;gap:10px}.responsive-table tr{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px;box-shadow:var(--shadow-sm)}.responsive-table td{border:0!important;padding:7px 0;display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;align-items:start;font-size:11px}.responsive-table td:before{content:attr(data-label);font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:820}.responsive-table td[colspan]{display:block}.responsive-table td[colspan]:before{display:none}.table-actions{align-items:stretch}.table-actions form{width:100%}.table-actions .input,.table-actions .select{width:100%!important}.editor-toolbar{align-items:flex-start;flex-direction:column}.textarea.editor{min-height:480px;font-size:16px}}
@media(max-width:480px){.metrics,.metrics.metrics-6{grid-template-columns:1fr}.hero-actions{flex-direction:column;align-items:stretch}.public-hero h1{font-size:48px}.hero-visual{min-height:360px}.paper-sheet{width:245px;height:325px}.paper-sheet.mid{width:235px;height:315px}.paper-sheet.back{width:225px;height:300px}.floating-chip{padding:9px 11px}.floating-chip strong{font-size:15px}.page-actions{display:grid;grid-template-columns:1fr}.btn{min-height:41px}}








/* PUBLIC NAV CLEAN STICKY START */

/*
 * Keep the original Letter Writing header dimensions/design.
 * The wrapper is sticky, so nothing is removed from document flow.
 */

.public-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(17,17,15,.92);

    border-bottom: 1px solid rgba(255,255,255,.055);

    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);

    transition:
        background .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.public-nav-sticky.is-scrolled {
    background: rgba(17,17,15,.97);
    border-bottom-color: rgba(255,255,255,.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.16);
}

/* restore the original header itself */
.public-nav {
    height: 82px !important;
    min-height: 82px !important;

    width: min(1220px, calc(100% - 44px)) !important;

    margin: 0 auto !important;
    padding: 0 !important;

    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    background: transparent !important;
}

/* simple logo — no weird subtitle */
.public-nav .brand-copy {
    display: block !important;
}

.public-nav .brand-caption,
.public-nav .brand-subtitle,
.public-nav .brand-tagline {
    display: none !important;
}

/* restore original desktop navigation */
.public-links {
    display: flex !important;
    align-items: center !important;
    gap: 23px !important;

    margin-left: auto;

    color: #a9a69e;

    font-size: 11px;
}

.public-links > a:not(.btn) {
    display: inline-flex !important;
    color: #a9a69e;
}

.public-links > a:not(.btn):hover {
    color: #fff;
}

/* no arrow decorations in desktop CTA */
.public-links .icon,
.public-links svg {
    display: none !important;
}


/* MOBILE MENU */

.public-mobile-menu {
    display: none;

    width: 44px;
    height: 44px;

    margin-left: auto;

    padding: 0;

    border: 1px solid #35342f;
    border-radius: 13px;

    background: #1b1a17;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 6px;

    cursor: pointer;
}

.public-mobile-menu span {
    display: block;

    height: 2px;

    border-radius: 999px;

    background: #f5f2ea;
}

.public-mobile-menu span:first-child {
    width: 19px;
}

.public-mobile-menu span:last-child {
    width: 13px;
    margin-left: 6px;

    background: var(--acid);
}

.public-mobile-overlay {
    position: fixed;
    inset: 0;

    z-index: 1090;

    background: rgba(0,0,0,.64);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.public-mobile-drawer {
    position: fixed;

    top: 10px;
    right: 10px;
    bottom: 10px;

    z-index: 1100;

    width: min(380px, calc(100vw - 20px));

    padding: 18px;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(217,255,98,.08),
            transparent 33%
        ),
        #151513;

    border: 1px solid #34332f;
    border-radius: 22px;

    box-shadow: -30px 20px 80px rgba(0,0,0,.5);

    transform: translateX(calc(100% + 30px));

    visibility: hidden;

    transition:
        transform .3s cubic-bezier(.22,1,.36,1),
        visibility .3s;
}

body.public-nav-open {
    overflow: hidden;
}

body.public-nav-open .public-mobile-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.public-nav-open .public-mobile-drawer {
    transform: translateX(0);
    visibility: visible;
}

.public-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;

    border-bottom: 1px solid #2d2c28;
}

.public-mobile-close {
    position: relative;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid #36352f;
    border-radius: 12px;

    background: #211f1c;

    cursor: pointer;
}

.public-mobile-close span {
    position: absolute;

    top: 19px;
    left: 12px;

    width: 17px;
    height: 2px;

    background: #f3f0e8;

    border-radius: 99px;
}

.public-mobile-close span:first-child {
    transform: rotate(45deg);
}

.public-mobile-close span:last-child {
    transform: rotate(-45deg);
}

.public-mobile-links {
    display: grid;

    margin-top: 30px;
}

.public-mobile-links a {
    min-height: 68px;

    display: flex;
    align-items: center;

    color: #eeeae2;

    border-bottom: 1px solid #2b2a26;

    font-family: var(--display);
    font-size: 22px;
    letter-spacing: -.035em;
}

.public-mobile-links a:hover {
    color: var(--acid);
}

.public-mobile-actions {
    display: grid;
    gap: 9px;

    margin-top: auto;
}


/* BACK TO TOP */

.back-to-top {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 850;

    width: 46px;
    height: 46px;

    padding: 0;

    display: grid;
    place-items: center;

    border: 1px solid #3a3934;
    border-radius: 14px;

    background: rgba(25,24,22,.94);
    color: var(--acid);

    box-shadow: 0 14px 34px rgba(0,0,0,.24);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    font-size: 18px;
    font-weight: 800;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease,
        background .2s ease;
}

.back-to-top:hover {
    background: #24231f;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


@media (max-width: 720px) {

    .public-nav {
        width: calc(100% - 28px) !important;

        height: 70px !important;
        min-height: 70px !important;
    }

    .public-links {
        display: none !important;
    }

    .public-mobile-menu {
        display: flex;
    }

    .back-to-top {
        right: 15px;
        bottom: 18px;

        width: 43px;
        height: 43px;
    }
}


@media (min-width: 721px) {

    .public-mobile-drawer,
    .public-mobile-overlay {
        display: none !important;
    }
}

/* PUBLIC NAV CLEAN STICKY END */


/* STICKY HEADER ALL SCREENS START */

/* Sticky must not live inside an overflow:hidden ancestor */
.public-shell {
    overflow: visible !important;
}

/* Sticky on DESKTOP, TABLET AND MOBILE */
.public-nav-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;

    width: 100% !important;

    background: rgba(17,17,15,.92) !important;
    border-bottom: 1px solid rgba(255,255,255,.055);

    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

/* stronger surface only once page has moved */
.public-nav-sticky.is-scrolled {
    background: rgba(17,17,15,.97) !important;
    border-bottom-color: rgba(255,255,255,.09) !important;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18) !important;
}

/* explicitly preserve sticky behavior at EVERY breakpoint */
@media (min-width: 1px) {
    .public-nav-sticky {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
    }
}

/* STICKY HEADER ALL SCREENS END */


/* GLOBAL MOBILE OVERFLOW FIX START */

/* Modern clipping: prevents accidental page-level horizontal scroll
   WITHOUT creating an overflow scroll-container that breaks sticky headers. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
}

/* Consistent sizing everywhere */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Flex/grid children are a very common source of horizontal overflow */
body,
main,
section,
article,
aside,
header,
footer,
nav,
div,
form,
.public-shell,
.public-hero,
.public-section,
.public-section-head,
.app-shell,
.app-main,
.main-content,
.grid,
.grid-2,
.grid-3,
.metrics,
.card,
.soft-card,
.auth-page,
.auth-panel,
.editor-shell,
.deposit-grid,
.admin-grid,
.two-pane {
    min-width: 0;
}

/* Media must never exceed its containing block */
img,
picture,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

svg {
    max-width: 100%;
}

/* Inputs/selects can overflow flex/grid containers otherwise */
input,
select,
textarea,
button {
    max-width: 100%;
}

/* Preserve deliberate table scrolling INSIDE the table container */
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Public homepage */
.public-nav,
.public-hero,
.public-section,
.footer,
.public-band-inner {
    max-width: calc(100vw - 28px);
}

.public-hero > *,
.public-section > *,
.public-section-head > * {
    min-width: 0;
}

.hero-copy {
    max-width: 100%;
}

/* Decorative hero art must not enlarge the viewport */
.hero-visual {
    width: 100%;
    max-width: 100%;
    overflow: clip;
}

.paper-stack {
    max-width: 100%;
}

.paper-sheet,
.paper-sheet.mid,
.paper-sheet.back,
.floating-chip {
    max-width: calc(100vw - 28px);
}

/* App/dashboard */
.sidebar,
.topbar,
.main-content,
.mobile-nav {
    max-width: 100vw;
}

.page-head,
.page-actions,
.searchbar,
.editor-toolbar,
.table-actions,
.profile-chip {
    min-width: 0;
}

.card,
.metric,
.wallet-card,
.opportunity-card,
.course-card {
    max-width: 100%;
}

/* Long user/database content should wrap instead of stretching pages */
td,
th,
.alert,
.card,
.soft-card,
.profile-email,
.meta,
.small,
.muted,
p,
a {
    overflow-wrap: anywhere;
}


/* MOBILE-SPECIFIC HARDENING */
@media (max-width: 720px) {

    .public-nav,
    .public-hero,
    .public-section,
    .footer {
        width: calc(100% - 28px) !important;
        max-width: calc(100% - 28px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .public-band-inner {
        width: 100% !important;
        max-width: 100% !important;
    }

    /*
     * The layered letter artwork is decorative.
     * Keep the composition but force it inside the screen.
     */
    .hero-visual {
        width: 100% !important;
        max-width: 100% !important;
        overflow: clip !important;
    }

    .paper-stack {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .paper-sheet {
        width: min(280px, calc(100vw - 56px)) !important;
        right: 10px !important;
    }

    .paper-sheet.mid {
        width: min(270px, calc(100vw - 66px)) !important;
        right: 30px !important;
    }

    .paper-sheet.back {
        width: min(255px, calc(100vw - 82px)) !important;
        right: 54px !important;
    }

    .floating-chip {
        max-width: min(170px, calc(100vw - 40px)) !important;
    }

    .floating-chip.one {
        left: 0 !important;
    }

    .floating-chip.two {
        right: 0 !important;
    }

    /* No 100vw + margins/padding combinations */
    .main-content,
    .topbar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mobile-nav {
        width: auto !important;
        max-width: none !important;
    }

    .page-head,
    .page-actions,
    .searchbar,
    .form-grid,
    .metrics,
    .grid-2,
    .grid-3,
    .two-pane,
    .deposit-grid,
    .admin-grid,
    .editor-shell,
    .opportunity-grid,
    .course-grid {
        width: 100%;
        max-width: 100%;
    }

    .input,
    .select,
    .textarea {
        width: 100%;
        min-width: 0 !important;
    }
}

/* GLOBAL MOBILE OVERFLOW FIX END */




/* MEMBER VIDEO UI V1 START */
:root{
  --member-red:#c91535;
  --member-red-dark:#a90e2a;
  --member-red-soft:#fae8ec;
  --member-page:#fffafa;
  --member-surface:#ffffff;
  --member-card:#fbfbfc;
  --member-line:#e6e6e8;
  --member-text:#171719;
  --member-muted:#747780;
  --member-shadow:0 10px 28px rgba(28,24,25,.045);
}
html{scroll-behavior:smooth}
body.member-body{
  margin:0!important;
  width:100%;
  max-width:100%;
  min-height:100vh;
  overflow-x:clip!important;
  background:linear-gradient(180deg,#fff 0,#fffafa 45%,#fff 100%);
  color:var(--member-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.member-body *,.member-body *::before,.member-body *::after{box-sizing:border-box}
.member-body a{text-decoration:none;color:inherit}
.member-header{
  position:sticky;
  top:0;
  z-index:800;
  height:76px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #ececee;
  backdrop-filter:blur(18px) saturate(130%);
  -webkit-backdrop-filter:blur(18px) saturate(130%);
}
.member-header-inner{
  width:min(1440px,calc(100% - 64px));
  height:100%;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-width:0;
}
.member-brand{display:inline-flex;align-items:center;gap:12px;min-width:0}
.member-logo{
  width:38px;height:38px;border-radius:12px;background:#111113;color:#fff;
  display:grid;place-items:center;font-size:12px;font-weight:900;letter-spacing:-.04em;flex:0 0 auto;
}
.member-brand strong{font-size:18px;letter-spacing:-.035em;white-space:nowrap}
.member-account{display:flex;align-items:center;gap:12px;min-width:0}
.member-avatar-link{display:flex}
.member-avatar{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:#1a1a1d;color:#fff;font-size:12px;font-weight:850;flex:0 0 auto;
}
.member-identity{min-width:0;max-width:330px}
.member-identity-line{display:flex;align-items:center;gap:8px;min-width:0}
.member-identity-line strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-identity>span{display:block;color:#858790;font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-verify-chip{
  display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:5px 8px;
  text-transform:uppercase;font-size:8px;font-weight:850;letter-spacing:.03em;white-space:nowrap;
}
.member-verify-chip.unverified{background:#fff0f1;color:#c22a3f}
.member-verify-chip.verified{background:#eaf8ee;color:#17723c}
.member-icon-action,.member-signout{
  height:40px;border:1px solid #e1e2e4;border-radius:12px;background:#f7f7f8;color:#50535b;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;
  font:inherit;font-size:11px;cursor:pointer;position:relative;
}
.member-icon-action{width:40px;padding:0}
.member-icon-action.has-dot::after{
  content:"";position:absolute;right:6px;top:6px;width:6px;height:6px;border-radius:50%;
  background:var(--member-red);box-shadow:0 0 0 2px #fff;
}
.member-signout:hover,.member-icon-action:hover{background:#f0f0f1}
.member-main{
  width:min(1240px,calc(100% - 48px));
  margin:0 auto;
  padding:32px 0 72px;
  min-width:0;
}
.member-tabs{
  width:100%;
  max-width:100%;
  margin:0 0 28px;
  overflow:hidden;
}
.member-tabs-track{
  display:flex;
  align-items:center;
  gap:4px;
  width:max-content;
  min-width:min(100%,max-content);
  max-width:none;
  padding:5px;
  border:1px solid #e1e2e4;
  border-radius:18px;
  background:#fafafb;
  overflow:visible;
}
.member-tab{
  min-height:42px;
  padding:0 16px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#565a63;
  font-size:11px;
  font-weight:650;
  white-space:nowrap;
  position:relative;
}
.member-tab:hover{background:#f0f0f2}
.member-tab.active{background:var(--member-red);color:#fff;box-shadow:0 7px 16px rgba(201,21,53,.19)}
.member-tab-dot{position:absolute;right:8px;top:7px;width:6px;height:6px;border-radius:50%;background:#f13857;box-shadow:0 0 0 2px #fafafb}
.member-tab.active .member-tab-dot{background:#fff;box-shadow:0 0 0 2px var(--member-red)}
.member-page-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  margin:0 0 22px;min-width:0;
}
.member-page-head h1{margin:0;font-size:28px;line-height:1.1;letter-spacing:-.045em}
.member-page-head p{margin:7px 0 0;color:var(--member-muted);font-size:12px;line-height:1.55;max-width:650px}
.member-page-head-split{align-items:center}
.member-eyebrow{display:block;margin-bottom:7px;color:#8b8e95;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.member-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.member-metric-card{
  min-height:132px;padding:22px;border:1px solid var(--member-line);border-radius:16px;
  background:rgba(250,250,252,.78);box-shadow:var(--member-shadow);
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0;
}
.member-metric-copy{min-width:0}
.member-metric-copy>span{display:block;color:#727680;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.055em}
.member-metric-copy>strong{display:block;margin-top:6px;font-size:27px;line-height:1.05;letter-spacing:-.045em}
.member-metric-copy>strong.member-metric-word{font-size:24px}
.member-metric-copy>small{display:block;margin-top:7px;color:#858891;font-size:10px}
.member-metric-icon{
  width:44px;height:44px;border-radius:14px;background:#f5f5f6;color:#646870;
  display:grid;place-items:center;flex:0 0 auto;
}
.member-dashboard-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:38px 0 0}
.member-btn{
  min-height:44px;border-radius:11px;padding:0 18px;border:1px solid transparent;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font:inherit;font-size:11px;font-weight:760;cursor:pointer;white-space:nowrap;transition:.18s;
}
.member-btn.primary{background:var(--member-red);color:#fff;border-color:var(--member-red)}
.member-btn.primary:hover{background:var(--member-red-dark);border-color:var(--member-red-dark)}
.member-btn.neutral{background:#f7f7f8;border-color:#dcdde0;color:#25262a}
.member-btn.neutral:hover{background:#ededee}
.member-btn.soft{background:#fff0f2;border-color:#f0c8cf;color:#b4213b}
.member-btn.small{min-height:38px;padding:0 14px;font-size:10px}
.member-btn-block{width:100%}
.member-wide-action{margin-top:22px;width:100%}
.member-btn:disabled{opacity:.55;cursor:not-allowed}
.member-dashboard-lower{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:34px}
.member-panel{
  border:1px solid var(--member-line);border-radius:16px;background:var(--member-surface);
  box-shadow:var(--member-shadow);padding:24px;min-width:0;
}
.member-form-panel{max-width:760px;margin:0 auto}
.member-panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;min-width:0}
.member-panel-head-stacked{align-items:flex-start}
.member-panel-head h2{margin:0;font-size:16px;letter-spacing:-.025em}
.member-panel-head p{margin:4px 0 0;color:var(--member-muted);font-size:10px}
.member-panel-head>a{color:var(--member-red);font-size:10px;font-weight:750}
.member-activity-list{display:grid}
.member-activity-row{
  min-height:62px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;
  border-top:1px solid #eeeeef;padding:11px 0;min-width:0;
}
.member-activity-row:first-child{border-top:0}
.member-activity-row>div{min-width:0}
.member-activity-row strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-activity-row small{display:block;margin-top:3px;color:#898c94;font-size:9px}
.member-activity-row>b{font-size:11px}
.member-positive,.member-activity-row>b.positive{color:#138245}
.member-activity-icon{
  width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#f5f5f6;color:#6a6d75
}
.member-activity-icon.incoming{background:#eaf8ee;color:#138245}
.member-empty{padding:28px 8px;text-align:center;color:#8a8d95;font-size:11px}
.member-status{
  display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;
  font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap
}
.member-status.pending{background:#fff2dc;color:#a35d00}
.member-status.success{background:#eaf8ee;color:#17723c}
.member-status.danger{background:#fff0f1;color:#bd2840}
.member-alert{
  margin:0 0 18px;padding:13px 15px;border:1px solid #dfe1e4;border-radius:12px;
  display:flex;align-items:flex-start;gap:10px;font-size:10px;background:#f8f8f9
}
.member-alert.success{background:#edf9f0;border-color:#cdebd4;color:#1d6b38}
.member-alert.danger{background:#fff0f1;border-color:#efcbd1;color:#9f2036}
.member-alert.warning{background:#fff7e8;border-color:#f1dfb8;color:#8b5b00}
.member-alert ul{margin:5px 0 0;padding-left:16px}
.member-alert button{margin-left:auto;border:0;background:none;font-size:18px;cursor:pointer;color:inherit}
.member-section-space{margin-top:34px}
.member-table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--member-line);border-radius:14px;background:#fff}
.member-table{width:100%;border-collapse:collapse;min-width:650px}
.member-table th{padding:12px 14px;border-bottom:1px solid #e9eaec;color:#777a82;font-size:9px;text-align:left;text-transform:uppercase;letter-spacing:.06em;background:#fafafb}
.member-table td{padding:14px;border-bottom:1px solid #f0f0f1;font-size:10px;vertical-align:middle}
.member-table tr:last-child td{border-bottom:0}
.member-table td small{display:block;margin-top:3px;color:#8a8d95}
.member-payment-options{display:grid;gap:12px}
.member-payment-card{
  border:1px solid #dedfe2;border-radius:14px;background:#f8f8f9;overflow:hidden;cursor:pointer;transition:.18s
}
.member-payment-card.selected{border-color:#e5a7b3;box-shadow:0 0 0 2px rgba(201,21,53,.05)}
.member-payment-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid #e2e3e5}
.member-payment-head>div{display:flex;align-items:center;gap:8px;min-width:0}
.member-payment-head strong{font-size:10px;letter-spacing:.04em}
.member-payment-head span{font-size:9px;color:#777b84}
.member-copy-btn{
  min-height:30px;border:1px solid #e0aeb8;border-radius:9px;background:#fff1f3;color:#aa243c;
  padding:0 10px;font:inherit;font-size:8px;font-weight:800;cursor:pointer
}
.member-payment-address{padding:14px 15px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.member-payment-card>small{display:block;padding:0 15px 14px;color:#848790;font-size:9px}
.member-modal{position:fixed;inset:0;z-index:1500;display:none;align-items:center;justify-content:center;padding:16px}
.member-modal.is-open{display:flex}
.member-modal-backdrop{position:absolute;inset:0;background:rgba(16,16,18,.68);backdrop-filter:blur(5px)}
.member-modal-card{
  position:relative;z-index:1;width:min(520px,100%);max-height:min(720px,calc(100vh - 32px));overflow:auto;
  border-radius:18px;background:#fff;padding:28px;box-shadow:0 28px 80px rgba(0,0,0,.28)
}
.member-modal-close{
  position:absolute;right:18px;top:18px;width:34px;height:34px;border:0;border-radius:10px;background:#f6f6f7;
  color:#656871;font-size:19px;cursor:pointer
}
.member-modal-title{padding-right:42px;margin-bottom:20px}
.member-modal-title h2{margin:0;font-size:19px;letter-spacing:-.035em}
.member-modal-title p{margin:5px 0 0;color:#777a83;font-size:10px}
.member-form{display:grid;gap:16px}
.member-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.member-field{display:grid;gap:7px;min-width:0}
.member-field>span{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;color:#6e727b}
.member-field>span i{font-style:normal;color:#d17b00}
.member-field input,.member-field select,.member-field textarea{
  width:100%;min-width:0;min-height:48px;border:1px solid #dedfe2;border-radius:12px;background:#fafafb;
  padding:0 14px;color:#1f2024;font:inherit;font-size:11px;outline:0
}
.member-field textarea{min-height:110px;padding-top:13px;resize:vertical}
.member-field input:focus,.member-field select:focus,.member-field textarea:focus{border-color:#c9cacf;box-shadow:0 0 0 3px rgba(20,20,22,.03)}
.member-field input[readonly]{color:#787b83;background:#f4f4f5}
.member-field>small{color:#858891;font-size:9px;line-height:1.4}
.member-upload-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.member-upload-zone{
  min-height:150px;border:1.5px dashed #cfd1d5;border-radius:14px;background:#fafafb;
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;
  padding:18px;cursor:pointer;position:relative;overflow:hidden
}
.member-upload-zone.compact{min-height:135px}
.member-upload-zone:hover{border-color:#d28d9a;background:#fff8f9}
.member-upload-icon{
  width:42px;height:42px;border-radius:13px;background:#fff0f2;color:var(--member-red);display:grid;place-items:center
}
.member-upload-zone strong{font-size:11px}
.member-upload-zone small{font-size:9px;color:#8b8e96}
.member-upload-preview{width:100%;font-size:10px;color:#267747;font-weight:700;overflow-wrap:anywhere}
.member-selected-rail,.member-balance-strip{
  display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;
  border:1px solid #e0e1e3;border-radius:12px;background:#f8f8f9
}
.member-selected-rail span,.member-balance-strip span{font-size:10px;color:#757880}
.member-selected-rail strong,.member-balance-strip strong{font-size:14px}
.member-kyc-status{
  display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;margin-bottom:20px;
  border:1px solid #ecc3ca;border-radius:12px;background:#fff0f1;color:#ba2840;font-size:10px
}
.member-kyc-status>span{display:inline-flex;gap:8px;align-items:center;font-weight:700}
.member-kyc-status.verified{background:#edf9f0;border-color:#cbe9d2;color:#1e7440}
.member-kyc-status.danger{background:#fff0f1;color:#a11f36}
.member-review-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
.member-review-card>div{border:1px solid #e4e5e7;border-radius:11px;padding:12px;background:#fafafb;min-width:0}
.member-review-card span{display:block;color:#888b93;font-size:8px;text-transform:uppercase;letter-spacing:.05em}
.member-review-card strong{display:block;margin-top:5px;font-size:10px;overflow-wrap:anywhere}
.member-inline-note{padding:13px 14px;border-radius:11px;background:#f5f5f6;color:#666a72;font-size:10px;margin-bottom:17px}
.member-inline-note.danger{background:#fff0f1;color:#a42037}
.member-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.member-course-card{
  border:1px solid var(--member-line);border-radius:16px;background:#fff;padding:22px;box-shadow:var(--member-shadow);
  display:flex;flex-direction:column;min-height:275px;min-width:0
}
.member-course-tags{display:flex;align-items:center;justify-content:space-between;gap:12px}
.member-course-tags span,.member-course-tags i{font-size:8px;font-weight:850;letter-spacing:.05em;text-transform:uppercase;font-style:normal}
.member-course-tags span{color:#777b83}
.member-course-tags i{color:#26945b}
.member-course-tags i.intermediate{color:#d89c00}
.member-course-tags i.advanced{color:#c91535}
.member-course-card h2{margin:20px 0 8px;font-size:17px;letter-spacing:-.03em}
.member-course-card p{margin:0;color:#6f737b;font-size:10px;line-height:1.6;flex:1}
.member-course-meta{display:flex;align-items:center;gap:18px;margin:20px 0 15px;padding-top:14px;border-top:1px solid #eeeeef;color:#747780;font-size:9px}
.member-course-meta span{display:inline-flex;align-items:center;gap:6px}
.member-course-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.member-course-footer small{display:block;color:#8b8e95;font-size:8px}
.member-course-footer strong{display:block;margin-top:2px;font-size:16px}
.member-course-modal{text-align:left}
.member-purchase-illustration{
  width:56px;height:56px;border-radius:50%;background:#fff4df;color:#e2a019;display:grid;place-items:center;margin:8px auto 16px
}
.member-purchase-state{text-align:center;font-size:11px;line-height:1.55}
.member-purchase-state strong{display:block;font-size:17px;margin-bottom:5px}
.member-purchase-state .price{color:var(--member-red);font-weight:800}
.member-modal-actions{display:flex;justify-content:center;gap:10px;margin-top:20px}
.member-purchase-strip,.member-progress-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.member-purchase-strip span,.member-progress-panel span{display:block;color:#858891;font-size:9px}
.member-purchase-strip strong,.member-progress-panel strong{font-size:18px}
.member-progress-panel{display:block}
.member-progress{height:8px;border-radius:99px;background:#ededee;overflow:hidden;margin-top:10px}
.member-progress i{height:100%;display:block;background:var(--member-red);border-radius:99px}
.member-module-list{display:grid;gap:14px}
.member-module{padding:22px}
.member-lesson{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:start;border-top:1px solid #eeeeef;padding:15px 0}
.member-lesson-number{width:30px;height:30px;border-radius:9px;background:#f4f4f5;display:grid;place-items:center;font-size:8px;color:#777b82}
.member-lesson-copy{min-width:0}
.member-lesson-copy h3{margin:0;font-size:11px}
.member-lesson-copy small{display:block;margin-top:3px;color:#888b93;font-size:8px}
.member-lesson-content{margin-top:9px;color:#686b73;font-size:10px;line-height:1.65;white-space:pre-line}
.member-letter-grid .member-course-card{min-height:250px}
.member-editor-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;align-items:start}
.member-editor-brief{position:sticky;top:96px}
.member-editor-brief h2{font-size:17px;margin:7px 0 10px}
.member-editor-brief>p{font-size:10px;color:#6f727a;line-height:1.65;white-space:pre-line}
.member-divider{height:1px;background:#ececed;margin:18px 0}
.member-editor-canvas{padding:0;overflow:hidden}
.member-editor-toolbar{padding:15px 18px;border-bottom:1px solid #ececed;display:flex;align-items:center;justify-content:space-between;gap:16px}
.member-editor-toolbar strong{display:block;font-size:11px}
.member-editor-toolbar small{display:block;margin-top:2px;color:#888b93;font-size:8px}
.member-editor-toolbar>span{font-size:9px;color:#777a82}
.member-editor-textarea{
  width:100%;min-height:500px;border:0;outline:0;resize:vertical;padding:22px;
  font:16px/1.75 Georgia,"Times New Roman",serif;color:#222;background:#fff
}
.member-editor-actions{display:flex;justify-content:flex-end;padding:12px 18px;border-top:1px solid #ececed}
.member-editor-submit{padding:0 18px 18px}
.member-settings-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}
.member-notification-list{display:grid}
.member-notification{
  min-height:70px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;
  border-top:1px solid #eeeeef;padding:13px 0;min-width:0
}
.member-notification:first-child{border-top:0}
.member-notification.read{opacity:.6}
.member-notification>div{min-width:0}
.member-notification strong{font-size:11px}
.member-notification p{margin:3px 0 0;color:#7f828a;font-size:9px;line-height:1.45}
.member-notification>small{font-size:8px;color:#8e9198;white-space:nowrap}

@media(max-width:900px){
  .member-header-inner{width:calc(100% - 30px)}
  .member-main{width:calc(100% - 30px);padding-top:22px}
  .member-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .member-dashboard-lower,.member-settings-grid{grid-template-columns:1fr}
  .member-editor-grid{grid-template-columns:1fr}
  .member-editor-brief{position:relative;top:auto}
  .member-course-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .member-header{height:66px}
  .member-header-inner{width:calc(100% - 28px)}
  .member-brand strong,.member-identity,.member-icon-action{display:none}
  .member-logo{width:34px;height:34px;border-radius:10px;font-size:10px}
  .member-avatar{width:36px;height:36px;font-size:10px}
  .member-account{gap:8px}
  .member-signout{width:38px;height:38px;padding:0}
  .member-signout span{display:none}
  .member-main{width:calc(100% - 30px);padding:18px 0 54px}
  .member-tabs{margin-bottom:28px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-inline:contain}
  .member-tabs::-webkit-scrollbar{display:none}
  .member-tabs-track{min-width:max-content;border-radius:17px}
  .member-tab{min-height:38px;padding:0 13px;font-size:10px}
  .member-page-head{align-items:flex-start;flex-direction:column;margin-bottom:18px}
  .member-page-head h1{font-size:22px}
  .member-page-head p{font-size:10px}
  .member-metrics{grid-template-columns:1fr;gap:12px}
  .member-metric-card{min-height:112px;padding:19px}
  .member-metric-copy>strong{font-size:25px}
  .member-metric-copy>strong.member-metric-word{font-size:21px}
  .member-dashboard-actions{margin-top:28px;display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .member-dashboard-actions .member-btn:first-child{grid-column:1/-1}
  .member-dashboard-actions .member-btn{width:100%}
  .member-dashboard-lower{grid-template-columns:1fr;margin-top:26px}
  .member-panel{padding:18px;border-radius:15px}
  .member-form-panel{max-width:none}
  .member-form-grid,.member-upload-grid,.member-review-card{grid-template-columns:1fr}
  .member-course-grid{grid-template-columns:1fr}
  .member-course-card{min-height:0;padding:19px}
  .member-modal{padding:14px}
  .member-modal-card{padding:25px 20px;border-radius:17px}
  .member-modal-actions{display:grid;grid-template-columns:1fr 1fr}
  .member-modal-actions>*{width:100%}
  .member-payment-address{font-size:10px}
  .member-payment-head{align-items:flex-start}
  .member-table-wrap{border:0;overflow:visible;background:transparent}
  .member-table{min-width:0;display:block}
  .member-table thead{display:none}
  .member-table tbody{display:grid;gap:10px}
  .member-table tr{display:block;border:1px solid var(--member-line);border-radius:14px;background:#fff;padding:12px}
  .member-table td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;border:0;padding:7px 0;font-size:10px;overflow-wrap:anywhere}
  .member-table td::before{content:attr(data-label);color:#868991;font-size:8px;text-transform:uppercase;letter-spacing:.05em;font-weight:800}
  .member-table td[colspan]{display:block}
  .member-table td[colspan]::before{display:none}
  .member-notification{grid-template-columns:36px minmax(0,1fr);align-items:start}
  .member-notification>small{grid-column:2}
  .member-editor-textarea{min-height:420px;font-size:15px;padding:17px}
  .member-purchase-strip{align-items:flex-start;flex-direction:column}
  .member-module{padding:18px}
  .member-lesson{grid-template-columns:32px minmax(0,1fr)}
  .member-lesson>form,.member-lesson>.member-status{grid-column:2}
}
@media(max-width:420px){
  .member-dashboard-actions{grid-template-columns:1fr}
  .member-dashboard-actions .member-btn:first-child{grid-column:auto}
  .member-course-footer{align-items:flex-start;flex-direction:column}
  .member-course-footer .member-btn{width:100%}
  .member-modal-actions{grid-template-columns:1fr}
}
/* MEMBER VIDEO UI V1 END */

/* MEMBER NAV SWIPE FIX */
.member-tabs{
    width:100%;
    max-width:100%;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
}

.member-tabs::-webkit-scrollbar{
    display:none;
}

.member-tabs-track{
    display:flex;
    flex-wrap:nowrap !important;
    width:max-content !important;
    min-width:max-content !important;
}

.member-tab{
    flex:0 0 auto !important;
    white-space:nowrap;
    scroll-snap-align:start;
}

@media (max-width: 720px){
    .member-tabs{
        margin-left:0;
        margin-right:0;
        padding:0 2px 4px;
        cursor:grab;
    }

    .member-tabs:active{
        cursor:grabbing;
    }
}

/* MEMBER NAV SWIPE FIX END */

/* =========================================================
   MEMBER AREA — HOMEPAGE DESIGN SYSTEM ALIGNMENT
   ========================================================= */

.member-body{
    /* Same foundation as the public homepage */
    --member-red:#6f55f5;
    --member-red-dark:#593df0;
    --member-red-soft:#efecff;

    --member-page:#f6f4ef;
    --member-surface:#ffffff;
    --member-card:#faf9f6;
    --member-line:#dfddd5;
    --member-text:#191918;
    --member-muted:#706e68;

    background:
        radial-gradient(
            circle at 88% 4%,
            rgba(111,85,245,.055),
            transparent 28%
        ),
        #f6f4ef !important;

    color:#191918;

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-weight:400;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}


/* ---------- THINNER TYPOGRAPHY ---------- */

.member-body,
.member-body p,
.member-body span,
.member-body a,
.member-body label,
.member-body input,
.member-body select,
.member-body textarea,
.member-body button,
.member-body td,
.member-body th{
    /* font-weight:500 !important; */
}

.member-brand,
.member-account strong,
.member-page-head h1,
.member-panel-head h2,
.member-metric-value,
.member-course-title,
.member-letter-title{
    font-weight:600 !important;
}

.member-tab{
    font-weight:520 !important;
    letter-spacing:-.01em;
}

.member-btn{
    font-weight:580 !important;
}

.member-metric-label,
.member-table th,
.member-label,
.member-field label,
.member-eyebrow{
    font-weight:560 !important;
}

.member-page-head h1{
    letter-spacing:-.04em;
}

.member-panel-head h2{
    letter-spacing:-.025em;
}


/* ---------- THINNER ICONOGRAPHY ---------- */

.member-body .icon,
.member-body svg.icon,
.member-tab .icon,
.member-btn .icon,
.member-icon-action .icon{
    stroke-width:1.45 !important;
}

.member-tab svg,
.member-btn svg,
.member-icon-action svg,
.member-metric-card svg{
    stroke-width:1.45 !important;
}


/* ---------- HEADER ---------- */

.member-header{
    background:rgba(246,244,239,.90) !important;
    border-bottom:1px solid rgba(201,198,189,.72) !important;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

.member-avatar{
    background:#24231f !important;
    color:#f6f4ef !important;
    border:1px solid #34332f !important;
    font-weight:560 !important;
}

.member-account strong{
    color:#191918;
}

.member-account small{
    color:#77746d !important;
}


/* ---------- SWIPE NAV ---------- */

.member-tabs-track{
    background:rgba(255,255,255,.58) !important;
    border:1px solid #dfddd5 !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.75) inset,
        0 8px 24px rgba(24,22,16,.035);
}

.member-tab{
    color:#55534e !important;
    background:transparent;
}

.member-tab:hover{
    background:#eeece5 !important;
    color:#131313 !important;
}

.member-tab.active{
    background:#131313 !important;
    color:#f8f6f0 !important;
    box-shadow:
        0 8px 20px rgba(17,17,15,.14) !important;
}

/* Homepage acid as the tiny status/accent signal */
.member-tab-dot{
    background:#d9ff62 !important;
    box-shadow:0 0 0 2px #131313 !important;
}

.member-tab.active .member-tab-dot{
    background:#d9ff62 !important;
    box-shadow:0 0 0 2px #131313 !important;
}


/* ---------- CARDS ---------- */

.member-metric-card,
.member-panel,
.member-card,
.member-course-card,
.member-letter-card,
.member-payment-card{
    background:#ffffff !important;
    border-color:#dfddd5 !important;
    box-shadow:
        0 1px 2px rgba(24,22,16,.025),
        0 10px 30px rgba(24,22,16,.025) !important;
}

.member-metric-card{
    color:#191918;
}

.member-metric-label{
    color:#77746d !important;
}

.member-metric-foot,
.member-muted{
    color:#706e68 !important;
}


/* ---------- PRIMARY ACTIONS ---------- */

.member-btn.primary{
    background:#6f55f5 !important;
    border-color:#6f55f5 !important;
    color:#fff !important;
    box-shadow:0 6px 16px rgba(111,85,245,.16) !important;
}

.member-btn.primary:hover{
    background:#593df0 !important;
    border-color:#593df0 !important;
}

.member-btn.neutral{
    background:#ffffff !important;
    border-color:#dfddd5 !important;
    color:#191918 !important;
}

.member-btn.neutral:hover{
    background:#f6f4ef !important;
    border-color:#c9c6bd !important;
}

/* Replace the old pink/red soft action */
.member-btn.soft{
    background:#efecff !important;
    border-color:#ddd6ff !important;
    color:#593df0 !important;
}


/* ---------- LINKS / ACCENTS ---------- */

.member-body a.member-link,
.member-panel-head > a,
.member-body .member-accent-text{
    color:#593df0 !important;
}


/* ---------- NOTIFICATION / STATUS DOTS ---------- */

.member-icon-action.has-dot::after{
    background:#d9ff62 !important;
    border:1px solid #b9dd48;
    box-shadow:0 0 0 2px #f6f4ef !important;
}


/* ---------- INPUTS ---------- */

.member-body input,
.member-body select,
.member-body textarea{
    background:#fff;
    color:#191918;
    border-color:#dfddd5;
    font-weight:400 !important;
}

.member-body input:focus,
.member-body select:focus,
.member-body textarea:focus{
    border-color:#6f55f5 !important;
    box-shadow:0 0 0 3px rgba(111,85,245,.10) !important;
    outline:none;
}


/* ---------- UPLOAD / DROP AREAS ---------- */

.member-upload-zone{
    background:#faf9f6 !important;
    border-color:#c9c6bd !important;
}

.member-upload-zone:hover{
    background:#f8f6ff !important;
    border-color:#6f55f5 !important;
}

.member-upload-icon{
    background:#efecff !important;
    color:#6f55f5 !important;
}


/* ---------- PROGRESS ---------- */

.member-progress{
    background:#eeece5 !important;
}

.member-progress i{
    background:#6f55f5 !important;
}


/* ---------- PURCHASE / EMPHASIS ---------- */

.member-purchase-illustration{
    background:#eef8c8 !important;
    color:#536514 !important;
}

.member-purchase-state .price{
    color:#593df0 !important;
}


/* ---------- TABLES ---------- */

.member-table-wrap{
    border-color:#dfddd5 !important;
    background:#fff !important;
}

.member-table th{
    background:#faf9f6 !important;
    color:#77746d !important;
    border-color:#e7e4dc !important;
}

.member-table td{
    border-color:#eeece5 !important;
}


/* ---------- ALERTS ---------- */

/* informational/success states use homepage palette;
   actual destructive/error states may remain red for semantics */
.member-alert.success{
    background:#f0f8d5 !important;
    border-color:#d5e9a0 !important;
    color:#42520c !important;
}

.member-alert.warning{
    background:#f4f0ff !important;
    border-color:#ddd6ff !important;
    color:#513cc0 !important;
}


/* ---------- MOBILE ---------- */

@media (max-width:720px){

    .member-body{
        background:#f6f4ef !important;
    }

    .member-tab{
        font-weight:500 !important;
    }

    .member-page-head h1{
        font-weight:600 !important;
    }

    .member-metric-value{
        font-weight:590 !important;
    }

    .member-btn{
        font-weight:560 !important;
    }
}

/* MEMBER HOMEPAGE SYSTEM ALIGNMENT END */


/* ==========================================================
   LETTER WRITING — UNIFIED RED DESIGN SYSTEM
   Final override
   ========================================================== */

:root{
    --ink:#151416;
    --ink-2:#252326;

    --paper:#fffafa;
    --paper-2:#f8f3f4;

    --surface:#ffffff;
    --surface-soft:#fcf8f9;

    --line:#e6dddf;
    --line-strong:#d7c9cc;

    --text:#191719;
    --muted:#777074;
    --muted-2:#989095;

    --violet:#c91535;
    --violet-strong:#a90e2a;
    --violet-soft:#fae8ec;

    --acid:#c91535;
    --acid-ink:#ffffff;

    --red:#c91535;
    --red-dark:#a90e2a;
    --red-soft:#fae8ec;

    --member-red:#c91535;
    --member-red-dark:#a90e2a;
    --member-red-soft:#fae8ec;

    --member-page:#fffafa;
    --member-surface:#ffffff;
    --member-card:#fbf8f9;
    --member-line:#e6dddf;
    --member-text:#191719;
    --member-muted:#777074;
}


/* ---------- GLOBAL TYPOGRAPHY ---------- */

body{
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

body,
button,
input,
select,
textarea{
    font-weight:400;
}

.icon,
svg.icon{
    stroke-width:1.45 !important;
}

.btn,
.member-btn,
.nav-link,
.member-tab{
    font-weight:560 !important;
}

.label,
.member-field label,
.member-label{
    font-weight:560 !important;
}


/* ==========================================================
   MEMBER AREA
   ========================================================== */

.member-body{
    background:
        radial-gradient(circle at 86% 2%,rgba(201,21,53,.045),transparent 30%),
        #fffafa !important;

    color:#191719 !important;
}

.member-header{
    background:rgba(255,255,255,.92) !important;
    border-bottom:1px solid #eee5e7 !important;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

.member-main{
    color:#191719;
}


/* Exact swipe rail */
.member-tabs{
    width:100%;
    max-width:100%;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
}

.member-tabs::-webkit-scrollbar{
    display:none;
}

.member-tabs-track{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center;
    gap:4px;

    width:max-content !important;
    min-width:max-content !important;

    padding:5px;

    border:1px solid #e3dcde !important;
    border-radius:19px !important;

    background:#fafafa !important;

    box-shadow:none !important;
}

.member-tab{
    flex:0 0 auto !important;

    min-height:40px !important;

    padding:0 16px !important;

    gap:9px;

    border-radius:15px !important;

    color:#444044 !important;

    background:transparent !important;

    white-space:nowrap;

    scroll-snap-align:start;

    font-size:11px !important;
    font-weight:540 !important;

    transition:
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.member-tab:hover{
    background:#f3edef !important;
    color:#191719 !important;
}

.member-tab.active{
    background:#c91535 !important;
    color:#fff !important;

    box-shadow:
        0 8px 18px rgba(201,21,53,.18) !important;
}

.member-tab svg{
    stroke-width:1.45 !important;
}


/* Four-square Overview icon to match the reference */
.member-overview-icon{
    width:16px;
    height:16px;

    display:grid;

    grid-template-columns:repeat(2,5px);
    grid-template-rows:repeat(2,5px);

    gap:2px;

    flex:0 0 auto;
}

.member-overview-icon i{
    display:block;
    width:5px;
    height:5px;

    border:1.2px solid currentColor;
    border-radius:1px;
}


/* KYC dot */
.member-tab-dot{
    width:6px !important;
    height:6px !important;

    right:8px !important;
    top:6px !important;

    background:#ef314f !important;

    box-shadow:
        0 0 0 2px #fafafa !important;
}

.member-tab.active .member-tab-dot{
    background:#fff !important;

    box-shadow:
        0 0 0 2px #c91535 !important;
}


/* Cards */
.member-metric-card,
.member-panel,
.member-card,
.member-course-card,
.member-letter-card,
.member-payment-card,
.member-module{
    background:#fff !important;

    border-color:#e6dddf !important;

    box-shadow:
        0 1px 2px rgba(30,18,21,.025),
        0 9px 30px rgba(30,18,21,.025) !important;
}


/* Buttons */
.member-btn.primary{
    background:#c91535 !important;
    border-color:#c91535 !important;
    color:#fff !important;

    box-shadow:
        0 6px 16px rgba(201,21,53,.15) !important;
}

.member-btn.primary:hover{
    background:#a90e2a !important;
    border-color:#a90e2a !important;
}

.member-btn.soft{
    background:#fae8ec !important;
    border-color:#ecc9d1 !important;
    color:#a90e2a !important;
}

.member-btn.neutral{
    background:#fff !important;
    border-color:#ded5d7 !important;
    color:#252125 !important;
}


/* Forms */
.member-body input:focus,
.member-body select:focus,
.member-body textarea:focus{
    border-color:#c91535 !important;

    box-shadow:
        0 0 0 3px rgba(201,21,53,.09) !important;
}

.member-upload-icon{
    background:#fae8ec !important;
    color:#c91535 !important;
}

.member-upload-zone:hover{
    border-color:#c91535 !important;
    background:#fff7f8 !important;
}

.member-progress i{
    background:#c91535 !important;
}

.member-purchase-state .price,
.member-panel-head > a{
    color:#c91535 !important;
}


/* ==========================================================
   PUBLIC HOMEPAGE
   ========================================================== */

.public-body{
    background:#fffafa !important;
    color:#191719 !important;
}

.public-shell{
    background:
        radial-gradient(circle at 86% 9%,rgba(201,21,53,.075),transparent 27%),
        #fffafa !important;
}

.public-nav{
    color:#191719 !important;
}

.public-nav .brand-caption{
    color:#837b7f !important;
}

.public-links{
    color:#70696d !important;
}

.public-links > a:not(.btn):hover{
    color:#c91535 !important;
}


/* Hero */
.public-hero::before{
    background:rgba(201,21,53,.13) !important;
}

.hero-kicker{
    color:#8b8085 !important;
}

.hero-kicker::before{
    background:#c91535 !important;

    box-shadow:
        0 0 0 4px rgba(201,21,53,.08) !important;
}

.public-hero h1{
    color:#191719 !important;
}

.public-hero h1 em{
    color:#c91535 !important;
}

.public-hero p{
    color:#777074 !important;
}


/* Paper art */
.paper-sheet{
    background:#fff !important;
    color:#191719 !important;

    border-color:#eadfe2 !important;

    box-shadow:
        0 32px 70px rgba(73,28,39,.15) !important;
}

.paper-sheet.back{
    background:#b41230 !important;
}

.paper-sheet.mid{
    background:#f5cdd6 !important;
}

.paper-lines span{
    background:#eadfe2 !important;
}

.floating-chip{
    background:#211d1f !important;
    border-color:#393034 !important;
    color:#fff !important;
}


/* Red statistics band */
.public-band{
    background:#c91535 !important;
    color:#fff !important;
}

.public-stat{
    border-color:rgba(255,255,255,.19) !important;
}

.public-stat span{
    color:#f4c9d2 !important;
}


/* Public content */
.public-section{
    color:#191719 !important;
}

.public-section-head p{
    color:#777074 !important;
}

.feature-card{
    background:#fff !important;

    border-color:#e5dade !important;

    color:#191719 !important;

    box-shadow:
        0 10px 34px rgba(45,19,26,.035);
}

.feature-card .num{
    color:#9a8f93 !important;
}

.feature-card .feature-icon{
    background:#fae8ec !important;
    color:#c91535 !important;
}

.feature-card p{
    color:#777074 !important;
}

.public-quote{
    border-color:#e3dadd !important;
}

.public-quote .quote-mark{
    color:#c91535 !important;
}

.public-quote blockquote{
    color:#292427 !important;
}

.cta-panel{
    background:#c91535 !important;
    color:#fff !important;
}

.cta-panel p{
    color:#f3cbd3 !important;
}

.footer{
    border-color:#e5dadd !important;
    color:#8b8286 !important;
}


/* ==========================================================
   AUTH / LOGIN / REGISTER
   ========================================================== */

.auth-body{
    background:#fffafa !important;
}

.auth-art{
    background:
        radial-gradient(circle at 78% 38%,rgba(255,255,255,.09),transparent 35%),
        #b41230 !important;

    color:#fff !important;
}

.auth-art::before{
    background:rgba(97,0,20,.28) !important;
}

.auth-art::after{
    border-color:rgba(255,255,255,.16) !important;
}

.auth-art .brand-caption,
.auth-message p,
.auth-proof,
.auth-footer{
    color:#f0c2cb !important;
}

.auth-message h1 em{
    color:#fff !important;
}

.auth-proof i{
    background:#fff !important;
}

.auth-panel{
    background:
        radial-gradient(circle at 70% 20%,rgba(201,21,53,.055),transparent 35%),
        #fffafa !important;
}

.auth-card{
    border-color:#e6dddf !important;

    box-shadow:
        0 20px 60px rgba(80,28,41,.07) !important;
}

.auth-links a{
    color:#c91535 !important;
}

.admin-auth-tag{
    background:#fae8ec !important;
    color:#a90e2a !important;
}


/* ==========================================================
   LEGACY / COMMON APP COMPONENTS
   ========================================================== */

.btn-primary{
    background:#c91535 !important;
    border-color:#c91535 !important;
    color:#fff !important;

    box-shadow:
        0 6px 16px rgba(201,21,53,.16) !important;
}

.btn-primary:hover{
    background:#a90e2a !important;
    border-color:#a90e2a !important;
}

.btn-acid{
    background:#c91535 !important;
    border-color:#c91535 !important;
    color:#fff !important;
}

.eyebrow{
    color:#c91535 !important;
}

.input:focus,
.select:focus,
.textarea:focus{
    border-color:#c91535 !important;

    box-shadow:
        0 0 0 3px rgba(201,21,53,.09) !important;
}


/* ==========================================================
   ADMIN — SAME BRAND, DISTINCT OPERATIONS CHROME
   ========================================================== */

.admin-shell .sidebar{
    background:#191416 !important;
    border-color:#30272a !important;
}

.admin-shell .sidebar-context{
    background:#251d20 !important;
    border-color:#3b2b30 !important;
}

.admin-shell .context-dot{
    background:#c91535 !important;
}

.admin-shell .nav-link.active{
    background:#c91535 !important;
    color:#fff !important;
}

.admin-shell .nav-link.active::after{
    background:#fff !important;
}

.admin-shell .nav-link:hover{
    background:#291f22 !important;
}

.admin-shell .brand-symbol{
    background:#c91535 !important;
    color:#fff !important;
}


/* ==========================================================
   ERROR PAGES
   ========================================================== */

.error-theme-body{
    margin:0;

    min-height:100vh;

    display:grid;
    place-items:center;

    padding:24px;

    background:
        radial-gradient(circle at 80% 15%,rgba(201,21,53,.08),transparent 28%),
        #fffafa;

    color:#191719;

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing:antialiased;
}

.error-theme-card{
    width:min(560px,100%);

    background:#fff;

    border:1px solid #e6dddf;

    border-radius:22px;

    padding:38px;

    box-shadow:
        0 22px 70px rgba(70,28,38,.07);
}

.error-theme-brand{
    display:flex;
    align-items:center;

    gap:10px;

    margin-bottom:42px;

    font-size:13px;
    font-weight:600;
}

.error-theme-mark{
    width:34px;
    height:34px;

    display:grid;
    place-items:center;

    border-radius:11px;

    background:#c91535;
    color:#fff;

    font-size:10px;
    font-weight:700;
}

.error-theme-code{
    margin-bottom:11px;

    color:#c91535;

    font-size:11px;
    font-weight:600;

    letter-spacing:.12em;

    text-transform:uppercase;
}

.error-theme-card h1{
    margin:0;

    font-size:clamp(34px,7vw,52px);

    line-height:1;

    letter-spacing:-.05em;

    font-weight:620;
}

.error-theme-card p{
    margin:17px 0 28px;

    color:#777074;

    font-size:13px;
    line-height:1.65;
}

.error-theme-actions{
    display:flex;
    gap:9px;

    flex-wrap:wrap;
}

.error-theme-actions a{
    min-height:42px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:0 16px;

    border-radius:11px;

    text-decoration:none;

    font-size:11px;
    font-weight:570;
}

.error-theme-primary{
    background:#c91535;
    color:#fff;
}

.error-theme-secondary{
    border:1px solid #ded5d7;
    background:#fff;
    color:#262225;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:720px){

    .member-main{
        width:calc(100% - 30px) !important;
    }

    .member-tabs{
        margin-bottom:22px !important;
    }

    .member-tabs-track{
        border-radius:17px !important;
    }

    .member-tab{
        min-height:40px !important;
        padding:0 13px !important;
        font-size:10px !important;
    }

    .public-body,
    .member-body,
    .auth-body{
        background:#fffafa !important;
    }

    .error-theme-card{
        padding:27px 22px;
        border-radius:18px;
    }

}


/* UNIFIED RED DESIGN SYSTEM END */

/* BLADE RED BLACK CONTRAST PATCH START
   Letter Writing:
   black primary / white surfaces / restrained red undertone.
   This block intentionally sits LAST so old red-theme overrides
   cannot reintroduce low-contrast combinations.
------------------------------------------------------------ */

:root{
    --ink:#121012 !important;
    --ink-2:#211e20 !important;

    --paper:#fcf9f9 !important;
    --paper-2:#f6f1f2 !important;

    --surface:#ffffff !important;
    --surface-soft:#fbf8f8 !important;

    --text:#171517 !important;
    --muted:#696267 !important;
    --muted-2:#8b8488 !important;

    --line:#e2dcde !important;
    --line-strong:#cbc2c5 !important;

    --red:#c91535 !important;
    --red-dark:#a90e2a !important;
    --red-soft:#fae9ed !important;

    /* Legacy accent names deliberately map to restrained red. */
    --violet:#c91535 !important;
    --violet-strong:#a90e2a !important;
    --violet-soft:#fae9ed !important;

    --acid:#c91535 !important;
    --acid-ink:#ffffff !important;

    --member-red:#c91535 !important;
    --member-red-dark:#a90e2a !important;
    --member-red-soft:#fae9ed !important;

    --member-page:#fcf9f9 !important;
    --member-surface:#ffffff !important;
    --member-card:#ffffff !important;
    --member-line:#e3dddf !important;
    --member-text:#171517 !important;
    --member-muted:#6f686d !important;
}


/* =========================================================
   GLOBAL CONTRAST
   ========================================================= */

html,
body{
    background:#fcf9f9 !important;
    color:#171517 !important;
}

body{
    color-scheme:light;
}

::selection{
    background:#c91535 !important;
    color:#fff !important;
}

a{
    text-underline-offset:3px;
}

.icon,
svg.icon{
    stroke-width:1.45 !important;
}

.card,
.soft-card,
.member-panel,
.member-card,
.member-metric-card,
.member-course-card,
.member-payment-card,
.member-letter-card,
.auth-card{
    background:#fff !important;
    color:#171517 !important;
    border-color:#e3dddf !important;
}


/* =========================================================
   BUTTONS — BLACK PRIMARY, RED ONLY WHEN IT MEANS SOMETHING
   ========================================================= */

.btn-primary,
.btn-acid,
.member-btn.primary{
    background:#151315 !important;
    border-color:#151315 !important;
    color:#fff !important;

    box-shadow:
        0 7px 18px rgba(18,16,18,.13) !important;
}

.btn-primary:hover,
.btn-acid:hover,
.member-btn.primary:hover{
    background:#2a2528 !important;
    border-color:#2a2528 !important;
    color:#fff !important;
}

.btn-dark{
    background:#151315 !important;
    border-color:#151315 !important;
    color:#fff !important;
}

.btn-dark:hover{
    background:#2a2528 !important;
    border-color:#2a2528 !important;
    color:#fff !important;
}

.btn-secondary,
.member-btn.neutral{
    background:#fff !important;
    border-color:#cfc7ca !important;
    color:#171517 !important;
}

.btn-secondary:hover,
.member-btn.neutral:hover{
    background:#f5f1f2 !important;
    border-color:#aaa1a5 !important;
    color:#111 !important;
}

.btn-danger{
    background:#c91535 !important;
    border-color:#c91535 !important;
    color:#fff !important;
}

.btn-danger:hover{
    background:#a90e2a !important;
    border-color:#a90e2a !important;
    color:#fff !important;
}

.member-btn.soft{
    background:#fae9ed !important;
    border-color:#eccbd2 !important;
    color:#9f1630 !important;
}


/* =========================================================
   PUBLIC HEADER — FIXES THE BLACK-ON-BLACK BUG
   ========================================================= */

.public-nav-sticky,
.public-nav-sticky.is-scrolled{
    background:rgba(18,16,18,.97) !important;
    border-bottom:1px solid rgba(255,255,255,.08) !important;

    box-shadow:
        0 8px 30px rgba(0,0,0,.13) !important;
}

.public-nav{
    background:transparent !important;
    color:#f8f4f5 !important;
}

.public-nav .brand,
.public-nav .brand-name,
.public-nav .brand-copy{
    color:#fff !important;
}

.public-nav .brand-symbol{
    background:#c91535 !important;
    color:#fff !important;
    box-shadow:none !important;
}

.public-links{
    color:#c9c2c5 !important;
}

.public-links > a:not(.btn){
    color:#c9c2c5 !important;
}

.public-links > a:not(.btn):hover{
    color:#fff !important;
}

.public-links .btn-secondary{
    background:#fff !important;
    border-color:#fff !important;
    color:#171517 !important;
}

.public-links .btn-secondary:hover{
    background:#f0ebed !important;
    border-color:#f0ebed !important;
    color:#111 !important;
}

/* One deliberate red CTA in the header */
.public-links .btn-acid{
    background:#c91535 !important;
    border-color:#c91535 !important;
    color:#fff !important;
}

.public-links .btn-acid:hover{
    background:#a90e2a !important;
    border-color:#a90e2a !important;
}


/* =========================================================
   PUBLIC MOBILE NAV
   ========================================================= */

.public-mobile-menu{
    color:#fff !important;
}

.public-mobile-menu span,
.public-mobile-close span{
    background:currentColor !important;
}

.public-mobile-drawer{
    background:#151315 !important;
    color:#fff !important;
    border-color:#302a2d !important;
}

.public-mobile-drawer .brand,
.public-mobile-drawer .brand-name{
    color:#fff !important;
}

.public-mobile-drawer .brand-symbol{
    background:#c91535 !important;
    color:#fff !important;
}

.public-mobile-links a{
    color:#ddd6d9 !important;
}

.public-mobile-links a:hover{
    color:#fff !important;
    background:#242023 !important;
}


/* =========================================================
   HOMEPAGE — WHITE/BLACK BLADE, RED UNDERTONE
   ========================================================= */

.public-body{
    background:#fcf9f9 !important;
    color:#171517 !important;
}

.public-shell{
    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(201,21,53,.075),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #fff 0%,
            #fcf9f9 55%,
            #fff 100%
        ) !important;

    color:#171517 !important;
}

.public-hero{
    color:#171517 !important;
}

.public-hero::before{
    background:rgba(201,21,53,.09) !important;
}

.hero-kicker{
    color:#756e72 !important;
}

.hero-kicker::before{
    background:#c91535 !important;

    box-shadow:
        0 0 0 4px rgba(201,21,53,.08) !important;
}

.public-hero h1{
    color:#141214 !important;
}

.public-hero h1 em{
    color:#c91535 !important;
}

.public-hero p{
    color:#6e676b !important;
}


/* This was the light-text-on-light-background button bug */
.public-hero .btn-secondary{
    background:#fff !important;
    color:#171517 !important;
    border-color:#777074 !important;
}

.public-hero .btn-secondary:hover{
    background:#f2edef !important;
    color:#111 !important;
    border-color:#171517 !important;
}

.public-hero .btn-acid{
    background:#151315 !important;
    border-color:#151315 !important;
    color:#fff !important;
}

.public-hero .btn-acid:hover{
    background:#2a2528 !important;
    border-color:#2a2528 !important;
}


/* Letter illustration */
.paper-sheet{
    background:#fff !important;
    color:#171517 !important;
    border-color:#e3dadd !important;

    box-shadow:
        0 30px 70px rgba(42,25,31,.14) !important;
}

.paper-sheet.back{
    background:#b91534 !important;
}

.paper-sheet.mid{
    background:#e9c1cb !important;
}

.paper-lines span{
    background:#e5dddf !important;
}

.paper-meta{
    color:#81797d !important;
}

.floating-chip{
    background:#1c191b !important;
    border-color:#363034 !important;
    color:#fff !important;
}

.floating-chip .muted{
    color:#ada5a9 !important;
}

.floating-chip strong{
    color:#fff !important;
}

.floating-chip.two strong{
    color:#ef3657 !important;
}


/* Replace the giant red band with black + red undertone */
.public-band{
    background:
        linear-gradient(
            105deg,
            #151315 0%,
            #1d171a 62%,
            #26161b 100%
        ) !important;

    color:#fff !important;

    border-top:1px solid rgba(201,21,53,.7) !important;
    border-bottom:1px solid rgba(201,21,53,.35) !important;
}

.public-stat{
    border-color:rgba(255,255,255,.11) !important;
}

.public-stat strong{
    color:#fff !important;
}

.public-stat span{
    color:#bbb3b7 !important;
}


/* Content */
.public-section{
    color:#171517 !important;
}

.public-section h2,
.feature-card h3{
    color:#171517 !important;
}

.public-section-head p,
.feature-card p{
    color:#6e676b !important;
}

.feature-card{
    background:#fff !important;
    color:#171517 !important;
    border-color:#e2dadd !important;

    box-shadow:
        0 10px 32px rgba(29,17,21,.035) !important;
}

.feature-card .feature-icon{
    background:#f8eaed !important;
    color:#b91534 !important;
}

.feature-card .num{
    color:#817a7e !important;
}

.public-quote{
    border-color:#ddd5d8 !important;
}

.public-quote .quote-mark{
    color:#c91535 !important;
}

.public-quote blockquote{
    color:#211e20 !important;
}


/* CTA: black slab, small red edge */
.cta-panel{
    position:relative;

    background:
        linear-gradient(
            120deg,
            #151315,
            #21191d
        ) !important;

    color:#fff !important;

    border:1px solid #292326 !important;

    box-shadow:
        0 22px 60px rgba(20,14,16,.12) !important;
}

.cta-panel::before{
    content:"";

    position:absolute;
    left:0;
    top:28px;
    bottom:28px;

    width:3px;

    border-radius:99px;

    background:#c91535;
}

.cta-panel h2{
    color:#fff !important;
}

.cta-panel p{
    color:#bbb3b7 !important;
}

.cta-panel .eyebrow{
    color:#ef516c !important;
}

.cta-panel .btn-dark{
    background:#c91535 !important;
    border-color:#c91535 !important;
    color:#fff !important;
}

.cta-panel .btn-dark:hover{
    background:#a90e2a !important;
    border-color:#a90e2a !important;
}

.footer{
    color:#766f73 !important;
    border-color:#ddd6d8 !important;
}


/* =========================================================
   MEMBER AREA
   ========================================================= */

.member-body{
    background:
        radial-gradient(
            circle at 90% 0,
            rgba(201,21,53,.04),
            transparent 26%
        ),
        #fcf9f9 !important;

    color:#171517 !important;
}

.member-header{
    background:rgba(255,255,255,.96) !important;
    border-bottom-color:#e7e1e3 !important;
}

.member-logo,
.member-avatar{
    background:#151315 !important;
    color:#fff !important;
}

.member-brand,
.member-brand strong,
.member-identity-line strong{
    color:#171517 !important;
}

.member-identity > span{
    color:#736c70 !important;
}

.member-icon-action,
.member-signout{
    background:#fff !important;
    color:#302c2f !important;
    border-color:#dcd5d8 !important;
}

.member-icon-action:hover,
.member-signout:hover{
    background:#f4eff1 !important;
    color:#111 !important;
}


/* Tabs: black active surface with red status/accent */
.member-tabs-track{
    background:#f7f4f5 !important;
    border-color:#ddd6d8 !important;
}

.member-tab{
    color:#4e494c !important;
}

.member-tab:hover{
    background:#ebe6e8 !important;
    color:#151315 !important;
}

.member-tab.active{
    background:#151315 !important;
    color:#fff !important;

    box-shadow:
        inset 0 -2px 0 #c91535,
        0 7px 17px rgba(20,15,17,.12) !important;
}

.member-tab-dot{
    background:#c91535 !important;
}

.member-tab.active .member-tab-dot{
    background:#ef4965 !important;
    box-shadow:0 0 0 2px #151315 !important;
}


/* Member cards */
.member-metric-card,
.member-panel,
.member-card,
.member-course-card,
.member-letter-card,
.member-payment-card,
.member-module{
    background:#fff !important;
    color:#171517 !important;
    border-color:#e3dddf !important;

    box-shadow:
        0 1px 2px rgba(20,14,16,.02),
        0 9px 28px rgba(20,14,16,.025) !important;
}

.member-metric-copy > span,
.member-panel-head p,
.member-course-card p{
    color:#6f686c !important;
}


/* Main member actions become black */
.member-btn.primary{
    background:#151315 !important;
    border-color:#151315 !important;
    color:#fff !important;
}

.member-btn.primary:hover{
    background:#292427 !important;
    border-color:#292427 !important;
}


/* Red remains for focus/status, not whole surfaces */
.member-body input:focus,
.member-body select:focus,
.member-body textarea:focus{
    border-color:#b91a37 !important;

    box-shadow:
        0 0 0 3px rgba(201,21,53,.08) !important;
}

.member-progress i{
    background:#c91535 !important;
}

.member-upload-icon{
    background:#f8e9ed !important;
    color:#b91534 !important;
}


/* =========================================================
   COMMON APP / DASHBOARD COMPONENTS
   ========================================================= */

.accent-card{
    background:
        linear-gradient(
            135deg,
            #151315 0%,
            #211b1e 75%,
            #32151d 100%
        ) !important;

    color:#fff !important;

    border:1px solid #292326 !important;

    box-shadow:
        0 18px 48px rgba(18,13,15,.15) !important;
}

.metric.accent{
    background:#fff !important;
    color:#171517 !important;
    border-color:#ddcdd1 !important;

    box-shadow:
        inset 3px 0 0 #c91535 !important;
}

.metric.accent .metric-label,
.metric.accent .metric-foot{
    color:#6e666a !important;
}

.metric.primary,
.ink-card{
    background:#151315 !important;
    color:#fff !important;
    border-color:#292427 !important;
}

.metric.primary .metric-label,
.metric.primary .metric-foot,
.ink-card .muted{
    color:#b6aeb2 !important;
}

.badge-violet{
    background:#f8e9ed !important;
    color:#a81731 !important;
    border-color:#edcbd2 !important;
}

.list-icon.violet{
    background:#f8e9ed !important;
    color:#b91534 !important;
}

.eyebrow,
.section-title .link{
    color:#b91534 !important;
}


/* =========================================================
   SIDEBAR / ADMIN
   ========================================================= */

.sidebar,
.admin-shell .sidebar{
    background:#121012 !important;
    color:#f8f5f6 !important;
    border-color:#292427 !important;
}

.sidebar .brand,
.sidebar .brand-name,
.admin-shell .brand,
.admin-shell .brand-name{
    color:#fff !important;
}

.sidebar .brand-symbol,
.admin-shell .brand-symbol{
    background:#c91535 !important;
    color:#fff !important;
}

.nav-link{
    color:#aaa3a7 !important;
}

.nav-link:hover{
    background:#211d1f !important;
    color:#fff !important;
}

.nav-link.active,
.admin-shell .nav-link.active{
    background:#f5f2f3 !important;
    color:#171517 !important;

    box-shadow:
        inset 3px 0 0 #c91535 !important;
}

.nav-link.active::after,
.admin-shell .nav-link.active::after{
    background:#c91535 !important;
}

.sidebar-context,
.admin-shell .sidebar-context{
    background:#1b181a !important;
    border-color:#302a2d !important;
    color:#beb7bb !important;
}

.sidebar-context .context-dot,
.admin-shell .context-dot{
    background:#c91535 !important;
}

.admin-shell .main-content{
    background:#f8f5f6 !important;
}

.admin-shell .topbar{
    background:rgba(255,255,255,.94) !important;
    color:#171517 !important;
}

.admin-note{
    background:#181517 !important;
    color:#ddd6d9 !important;
}

.admin-note .icon{
    color:#e63b58 !important;
}


/* =========================================================
   AUTH
   ========================================================= */

.auth-body,
.auth-panel{
    background:#f9f6f7 !important;
}

.auth-art{
    background:
        radial-gradient(
            circle at 78% 38%,
            rgba(201,21,53,.20),
            transparent 34%
        ),
        #151315 !important;

    color:#fff !important;
}

.auth-art::before{
    background:rgba(201,21,53,.16) !important;
}

.auth-art::after{
    border-color:rgba(201,21,53,.28) !important;
}

.auth-art .brand,
.auth-art .brand-name,
.auth-message h1{
    color:#fff !important;
}

.auth-message h1 em{
    color:#ee4763 !important;
}

.auth-message p,
.auth-proof,
.auth-footer{
    color:#aaa2a6 !important;
}

.auth-proof i{
    background:#c91535 !important;
}

.auth-links a{
    color:#a81731 !important;
}


/* =========================================================
   FORM CONTRAST
   ========================================================= */

.input,
.select,
.textarea,
.member-field input,
.member-field select,
.member-field textarea{
    background:#fff !important;
    color:#171517 !important;
    border-color:#d8d1d4 !important;
}

.input::placeholder,
.textarea::placeholder,
.member-field input::placeholder,
.member-field textarea::placeholder{
    color:#91898d !important;
}

.input[readonly],
.input:disabled,
.member-field input[readonly]{
    background:#f2eeef !important;
    color:#625c60 !important;
}

.input:focus,
.select:focus,
.textarea:focus{
    border-color:#b91a37 !important;

    box-shadow:
        0 0 0 3px rgba(201,21,53,.08) !important;
}

.label,
.member-field > span{
    color:#403b3e !important;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-wrap,
.member-table-wrap{
    background:#fff !important;
    border-color:#ded7da !important;
}

th,
.member-table th{
    background:#f7f4f5 !important;
    color:#635d61 !important;
}

td,
.member-table td{
    color:#211e20 !important;
    border-color:#eee9eb !important;
}


/* =========================================================
   ERROR PAGES
   ========================================================= */

.error-theme-body{
    background:
        radial-gradient(
            circle at 82% 14%,
            rgba(201,21,53,.06),
            transparent 30%
        ),
        #f9f6f7 !important;

    color:#171517 !important;
}

.error-theme-card{
    background:#fff !important;
    color:#171517 !important;
    border-color:#ded7da !important;
}

.error-theme-mark{
    background:#151315 !important;
    color:#fff !important;
}

.error-theme-code{
    color:#c91535 !important;
}

.error-theme-primary{
    background:#151315 !important;
    color:#fff !important;
}

.error-theme-secondary{
    background:#fff !important;
    color:#171517 !important;
    border-color:#cbc3c6 !important;
}


/* =========================================================
   DARK SURFACE CONTRAST SAFETY NET
   ========================================================= */

.public-nav-sticky .muted,
.sidebar .muted,
.auth-art .muted,
.ink-card .muted,
.metric.primary .muted,
.floating-chip .muted,
.admin-note .muted{
    color:#b4adb0 !important;
}

.public-nav-sticky strong,
.sidebar strong,
.auth-art strong,
.ink-card strong,
.metric.primary strong,
.floating-chip strong,
.admin-note strong{
    color:#fff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:720px){

    .public-body,
    .member-body,
    .auth-body{
        background:#fcf9f9 !important;
    }

    .hero-actions{
        align-items:stretch !important;
    }

    .hero-actions .btn{
        color:#171517;
    }

    .hero-actions .btn-acid{
        color:#fff !important;
    }

    .public-stat{
        border-color:rgba(255,255,255,.10) !important;
    }

    .member-main{
        width:calc(100% - 30px) !important;
    }
}

/* BLADE RED BLACK CONTRAST PATCH END */

/* Back to top arrow -> white */
.back-to-top,
.back-to-top svg,
.back-to-top i,
.scroll-top,
.scroll-top svg,
.scroll-top i{
    color:#ffffff !important;
    fill:#ffffff !important;
    stroke:#ffffff !important;
}

/* Global typography — DM Sans */
html,
body,
button,
input,
select,
textarea,
optgroup,
table,
nav,
header,
footer,
main,
section,
article,
aside,
a,
span,
div,
p,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif !important;
}
