:root{
  --black:#0B0B0B; --black-2:#141312; --gold:#C9A24A; --gold-2:#DBBE73;
  --cream:#ECE4D4; --cream-dim:#A89F8E; --teal:#2C7873; --teal-2:#359089;
  --paper:#F3EEE2; --paper-card:#FBF8F0; --ink:#1A1813; --ink-soft:#6B6356;
  --line-d:#2A2823; --line-l:#E2DBCA;
  --serif:'Playfair Display',Georgia,serif; --sans:'Inter',system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);background:var(--black);color:var(--cream);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
main{min-height:60vh;background:var(--black)}
.container{max-width:1240px;margin:0 auto;padding:0 32px}
.container.narrow{max-width:820px}
@media(max-width:560px){.container{padding:0 18px}.hero-in{padding:40px 20px}.section-cream{padding:52px 0}.section-cream.tight{padding:20px 0 52px}}
.muted{color:var(--cream-dim)}
.small{font-size:.85rem}
.label{font-size:.72rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;font-size:.82rem;
  letter-spacing:.06em;text-transform:uppercase;padding:13px 24px;border-radius:3px;cursor:pointer;
  border:1px solid transparent;transition:all .2s;white-space:nowrap;font-family:var(--sans)}
.btn-gold{background:var(--gold);color:#1c1407}.btn-gold:hover{background:var(--gold-2)}
.btn-teal{background:var(--teal);color:#fff}.btn-teal:hover{background:var(--teal-2)}
.btn-out{background:transparent;color:var(--cream);border-color:rgba(236,228,212,.4)}
.btn-out:hover{border-color:var(--gold);color:var(--gold)}
.btn:disabled{opacity:.5;cursor:default}
.btn.tiny{padding:8px 14px;font-size:.72rem}

/* nav */
.nav{position:sticky;top:0;z-index:40;background:var(--black);border-bottom:1px solid var(--line-d)}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:80px;gap:18px}
.logo{display:flex;flex-direction:column;line-height:1}
.logo .win{font-family:var(--serif);font-weight:700;font-size:1.5rem;color:var(--gold);letter-spacing:.04em}
.logo .sub{font-size:.54rem;font-weight:600;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);margin-top:4px}
.nav-links{display:flex;align-items:center;gap:20px;flex:1;justify-content:center;flex-wrap:wrap}
.nav-links a{font-size:.85rem;font-weight:500;color:rgba(236,228,212,.8);transition:color .2s}
.nav-links a:hover,.nav-links a.active{color:var(--gold)}
.nav-right{display:flex;align-items:center;gap:12px}
/* Nav dropdown (Stories). Pure CSS — hover + focus-within (touch/keyboard), no JS, no backdrop-filter. */
.nav-drop{position:relative;display:flex;align-items:center}
.nav-drop-btn{background:none;border:none;cursor:pointer;font-family:inherit;font-size:.85rem;font-weight:500;
  color:rgba(236,228,212,.8);display:flex;align-items:center;gap:6px;padding:0;transition:color .2s}
.nav-drop-btn:hover{color:var(--gold)}
.nav-caret{font-size:.62rem;transition:transform .2s}
.nav-drop:hover .nav-caret,.nav-drop:focus-within .nav-caret{transform:rotate(180deg);color:var(--gold)}
.nav-drop-menu{position:absolute;top:100%;left:50%;min-width:186px;margin-top:22px;padding:8px;
  background:#0c0b0a;border:1px solid var(--line-d);border-radius:10px;box-shadow:0 18px 44px rgba(0,0,0,.5);
  display:flex;flex-direction:column;gap:2px;z-index:50;
  opacity:0;visibility:hidden;transform:translateX(-50%) translateY(-6px);transition:opacity .16s,transform .16s,visibility .16s}
.nav-drop:hover .nav-drop-menu,.nav-drop:focus-within .nav-drop-menu{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
/* Transparent bridge so moving the cursor from button to menu keeps :hover alive. */
.nav-drop-menu::before{content:"";position:absolute;left:0;right:0;top:-22px;height:22px}
.nav-drop-menu a{padding:9px 14px;border-radius:7px;font-size:.86rem;color:var(--cream-dim);white-space:nowrap;text-align:left}
.nav-drop-menu a:hover,.nav-drop-menu a.active{background:rgba(201,162,74,.12);color:var(--gold)}
.nav-account{font-size:.82rem;color:var(--gold-2)}
.logout-form{margin:0}

/* Mobile navigation — burger + dropdown. Desktop keeps the row via display:contents. */
.nav-toggle{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.nav-menu{display:contents}
.nav-burger{display:none;align-items:center;gap:8px;height:40px;padding:0 15px;margin-left:auto;flex:none;
  border:1px solid var(--gold);border-radius:22px;cursor:pointer;background:rgba(201,162,74,.1);
  color:var(--gold);font-family:var(--sans);font-size:.82rem;font-weight:700;letter-spacing:.02em}
.nav-burger .burger-lines{display:flex;flex-direction:column;gap:4px;width:18px}
.nav-burger .burger-lines span{display:block;width:100%;height:2px;background:var(--gold);border-radius:2px;
  transition:transform .25s,opacity .2s}
@media(max-width:900px){
  .nav-in{height:64px;gap:12px}
  .logo .win{font-size:1.3rem}
  .nav-burger{display:flex}
  .nav-menu{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;
    background:#0b0a09;border-top:1px solid var(--line-d);border-bottom:1px solid var(--line-d);
    box-shadow:0 24px 44px rgba(0,0,0,.55);max-height:calc(100dvh - 64px);overflow-y:auto}
  .nav-toggle:checked ~ .nav-menu{display:flex}
  .nav-toggle:checked ~ .nav-burger .burger-lines span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .nav-toggle:checked ~ .nav-burger .burger-lines span:nth-child(2){opacity:0}
  .nav-toggle:checked ~ .nav-burger .burger-lines span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .nav-links{flex:none;flex-direction:column;align-items:stretch;gap:0;padding:6px 0;justify-content:flex-start;flex-wrap:nowrap}
  .nav-links a{padding:14px 22px;font-size:1rem;color:var(--cream);border-bottom:1px solid rgba(236,228,212,.06)}
  .nav-links a.active{color:var(--gold);box-shadow:inset 3px 0 0 var(--gold)}
  .nav-right{flex-direction:column;align-items:stretch;gap:10px;padding:16px 22px 20px;border-top:1px solid var(--line-d)}
  .nav-right .btn{width:100%}
  .nav-right .nav-icon{display:none}
  .nav-cart,.nav-account,.nav-backoffice{padding:12px 2px;font-size:1rem}
  .nav-cart{display:flex;align-items:center;gap:8px}
  .nav-cart-label{display:inline}                          /* mobile: show the "Basket" label */
  .nav-cart .cart-badge{position:static;margin-left:auto}  /* count sits inline at the row's end */
  .logout-form .nav-signout{width:100%;text-align:left;padding:12px 2px;font-size:1rem}
}

/* hero */
.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line-d)}
.hero-bg{position:absolute;inset:0;z-index:0;background:
  radial-gradient(circle at 56% 48%, rgba(255,222,150,.9), rgba(255,176,86,.5) 9%, rgba(214,120,52,.22) 26%, transparent 46%),
  linear-gradient(180deg,#15243a 0%,#324658 20%,#9a5f33 48%,#cf853c 60%,#5a3a20 78%,#160f09 100%)}
.hero-video{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;pointer-events:none;
  /* Feather every edge so the footage dissolves into the page's black instead of a hard box.
     Weighted to the right (62%) so it sits away from the headline on the left. */
  -webkit-mask-image:radial-gradient(155% 135% at 60% 45%,#000 60%,transparent 93%);
  mask-image:radial-gradient(155% 135% at 60% 45%,#000 60%,transparent 93%)}
@media(prefers-reduced-motion:reduce){.hero-video{display:none}}
.hero-scrim{position:absolute;inset:0;z-index:1;background:
  linear-gradient(90deg,rgba(9,9,9,.92) 0%,rgba(9,9,9,.64) 26%,rgba(9,9,9,.08) 52%,rgba(9,9,9,.12) 100%)}
.hero-in{position:relative;z-index:2;display:flex;align-items:center;gap:clamp(40px,4vw,80px);min-height:640px;padding:60px 28px}
.hero-copy{flex:1 1 auto;min-width:0}
.hero-copy h1{font-family:var(--serif);font-weight:800;font-size:clamp(3rem,7vw,5.2rem);line-height:.92;letter-spacing:.02em}
.hero-copy h2{font-family:var(--serif);font-weight:500;font-size:clamp(1.6rem,3.4vw,2.6rem);margin-top:6px}
.hero-tag{font-family:var(--serif);font-size:1rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin:22px 0 0;max-width:430px;line-height:1.5}
.hero-rule{width:120px;height:1px;background:rgba(201,162,74,.6);margin:18px 0}
.hero-lines{font-family:var(--serif);font-size:1.3rem;line-height:1.55;margin-bottom:30px}
.hero-cta{display:flex;flex-wrap:wrap;gap:14px}

/* subscription card */
.sub-card{position:relative;width:330px;flex-shrink:0;background:rgba(10,10,10,.82);
  border:1px solid rgba(201,162,74,.5);border-radius:6px;padding:46px 32px 30px;text-align:center;
  box-shadow:0 30px 60px rgba(0,0,0,.5)}
.sub-badge{position:absolute;top:-24px;left:50%;transform:translateX(-50%);width:48px;height:48px;border-radius:50%;
  background:var(--black);border:1px solid rgba(201,162,74,.6);display:flex;align-items:center;justify-content:center;font-size:1.1rem}
.sub-card h3{font-size:.84rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:14px}
.sub-card p{font-size:.9rem;color:rgba(236,228,212,.78);margin-bottom:20px}
.sub-price{font-family:var(--serif);font-weight:700;font-size:3rem;color:var(--gold);line-height:1}
.sub-per{font-size:.72rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin:6px 0 22px}
.sub-card .btn{width:100%}
.sub-cancel{font-size:.82rem;color:var(--cream-dim);margin-top:14px}

/* featured / lists */
.featured{background:var(--paper);color:var(--ink);padding:64px 0}
.feat-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}
.feat-head .label{border-left:3px solid var(--gold);padding-left:12px}
.viewall{font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.viewall:hover{color:var(--gold)}
.story-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.story{background:var(--paper-card);border:1px solid var(--line-l);border-radius:5px;overflow:hidden;display:flex;flex-direction:column;transition:transform .25s,box-shadow .3s}
.story:hover{transform:translateY(-5px);box-shadow:0 16px 32px rgba(26,24,19,.14)}
.story-img{height:170px;position:relative}
.story-img .cat{position:absolute;left:14px;bottom:14px;background:var(--gold);color:#1c1407;font-size:.64rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:5px 11px;border-radius:2px}
.story-img .prem{position:absolute;right:12px;top:12px;background:rgba(11,11,11,.78);color:var(--gold-2);font-size:.6rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:5px 9px;border-radius:2px}
.story-body{padding:20px 20px 24px;display:flex;flex-direction:column;flex:1}
.story-body h3{font-family:var(--serif);font-weight:600;font-size:1.3rem;line-height:1.18;margin-bottom:10px;color:var(--ink)}
.story-body p{font-size:.88rem;color:var(--ink-soft)}
.category-page,.featured.section-dark{background:var(--black)}

/* CategoryView reuses .container directly on dark bg */
main > .container > .feat-head .label{color:var(--gold)}
main > .container{padding-top:54px;padding-bottom:54px}

/* members band */
.members{background:var(--black);padding:60px 0}
.mem-card{position:relative;background:var(--teal);border-radius:6px;padding:48px 36px;text-align:center;max-width:640px;margin:0 auto}
.mem-card .lockbadge{font-size:1.4rem;margin-bottom:12px}
.mem-card h3{font-family:var(--serif);font-weight:600;font-size:1.5rem;color:#fff;letter-spacing:.04em;margin-bottom:24px}
.mem-card .per{font-size:.72rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.85);margin-top:14px}

/* reader */
.reader{padding-top:54px;padding-bottom:70px}
.reader .kicker{font-size:.74rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.reader h1{font-family:var(--serif);font-weight:700;font-size:clamp(2rem,4.5vw,3.2rem);line-height:1.1;margin:12px 0}
.reader .byline{color:var(--cream-dim);font-size:.9rem;margin-bottom:26px}
.reader-cover{width:100%;border-radius:6px;margin-bottom:30px;border:1px solid var(--line-d)}
.reader-body{font-size:1.08rem;line-height:1.8;color:rgba(236,228,212,.92)}
.reader-body h2,.reader-body h3{font-family:var(--serif);margin:26px 0 10px}
.reader-body p{margin:0 0 18px}
.reader-body a{color:var(--gold-2);text-decoration:underline}
.reader-body blockquote{border-left:3px solid var(--gold);padding-left:18px;margin:22px 0;font-family:var(--serif);font-style:italic;color:var(--cream)}
.reader-body.preview{position:relative;max-height:240px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 55%,transparent)}
.reader-actions{margin-top:34px}
.paywall{margin-top:26px;text-align:center;border:1px solid var(--line-d);border-radius:8px;padding:40px 28px;background:var(--black-2)}
.paywall .lockbadge{font-size:1.6rem}
.paywall h3{font-family:var(--serif);font-size:1.5rem;margin:10px 0}
.paywall p{color:var(--cream-dim);margin-bottom:20px}

/* forms / editor */
.editor h1,.container.narrow h1{font-family:var(--serif);font-size:2.2rem;margin:6px 0 22px}
label{display:block;font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin:18px 0 8px}
.field{width:100%;background:var(--black-2);border:1px solid var(--line-d);color:var(--cream);
  padding:12px 14px;border-radius:4px;font-size:.95rem;font-family:var(--sans)}
.field:focus{outline:none;border-color:var(--gold)}
textarea.field{resize:vertical}
textarea.body{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9rem;line-height:1.6}
.row{display:flex;gap:24px;flex-wrap:wrap}
.row > div{flex:1;min-width:200px}
.premium-toggle{display:flex;flex-direction:column;justify-content:flex-end}
.premium-toggle input{width:20px;height:20px;margin-top:8px}
.cover-preview{max-width:280px;border-radius:5px;margin-top:12px;border:1px solid var(--line-d)}
.preview-pane{margin-top:24px;border:1px solid var(--line-d);border-radius:6px;padding:20px;background:var(--black-2)}
.preview-label{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:12px}
.editor-actions{display:flex;gap:14px;margin-top:26px;flex-wrap:wrap}

/* alerts */
.alert{background:rgba(201,162,74,.1);border:1px solid rgba(201,162,74,.4);color:var(--cream);padding:14px 16px;border-radius:5px;margin:14px 0;font-size:.92rem}
.alert.good{background:rgba(44,120,115,.16);border-color:rgba(53,144,137,.5)}
.alert a{color:var(--gold-2);text-decoration:underline}
.alert-ok{background:rgba(127,209,160,.1);border-color:rgba(127,209,160,.45);color:var(--cream)}

/* plan card */
.plan-card{background:var(--black-2);border:1px solid rgba(201,162,74,.4);border-radius:8px;padding:40px;text-align:center;margin-top:20px;max-width:480px}
.plan-list{list-style:none;text-align:left;max-width:320px;margin:22px auto 26px}
.plan-list li{padding:8px 0 8px 26px;position:relative;color:rgba(236,228,212,.9)}
.plan-list li::before{content:"✦";position:absolute;left:0;color:var(--gold)}

/* admin tables */
.sub-h{font-family:var(--serif);font-weight:600;font-size:1.4rem;margin:34px 0 14px;color:var(--cream)}
.admin-table{width:100%;border-collapse:collapse;font-size:.9rem;background:var(--black-2);border:1px solid var(--line-d);border-radius:6px;overflow:hidden}
.admin-table th{text-align:left;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);padding:12px 14px;border-bottom:1px solid var(--line-d)}
.admin-table td{padding:12px 14px;border-bottom:1px solid var(--line-d);vertical-align:top;color:rgba(236,228,212,.9)}
.admin-table td a{color:var(--gold-2)}
.admin-table .pitch{max-width:340px;color:var(--cream-dim)}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tiny-input{width:90px;padding:8px 10px;font-size:.8rem;margin:0}
.tiny-input.wide{width:150px}
.gallery-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.gallery-thumb{position:relative;width:80px}
.gallery-thumb img{width:80px;height:80px;object-fit:cover;border-radius:5px;border:1px solid var(--line-d)}
.gallery-thumb .linkbtn{position:absolute;top:2px;right:2px;background:rgba(0,0,0,.65);border-radius:3px;padding:1px 5px;text-decoration:none}
.status{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 9px;border-radius:3px;border:1px solid var(--line-d)}
.status.s-Published{color:#7fd1a0;border-color:#2f6f4f}
.status.s-Submitted,.status.s-InReview{color:var(--gold-2);border-color:rgba(201,162,74,.5)}
.status.s-Draft{color:var(--cream-dim)}
.status.s-Rejected{color:#e08a7a;border-color:#7a3a30}

/* footer */
.site-footer{background:var(--black);border-top:1px solid var(--line-d);padding:54px 0 32px}
.foot-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr 1fr 1.5fr;gap:36px}
.foot-links{list-style:none;padding:0;margin-top:12px;display:flex;flex-direction:column;gap:9px}
.foot-links a{font-size:.88rem}
.foot-social{display:flex;gap:12px;margin-top:18px}
.foot-social a{width:34px;height:34px;border-radius:50%;border:1px solid var(--line-d);color:var(--cream-dim);
  display:flex;align-items:center;justify-content:center;font-size:.9rem;text-decoration:none}
.foot-social a:hover{border-color:var(--gold);color:var(--gold)}
.foot-news .email-signup{margin-top:12px}
/* Footer column is narrow — stack the field full-width above the button so the email isn't truncated. */
.foot-news .email-row{flex-direction:column;gap:8px}
.foot-news .email-row .btn{width:100%}
@media(max-width:900px){.foot-grid{grid-template-columns:1fr 1fr}}
.foot-grid h4{font-size:.74rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:14px}
.foot-grid p{margin-top:14px;font-size:.88rem}
.foot-grid a:not(.btn){color:var(--cream-dim)}.foot-grid a:not(.btn):hover{color:var(--gold)}
.foot-base{border-top:1px solid var(--line-d);margin-top:40px;padding-top:22px;text-align:center;font-size:.78rem;color:var(--cream-dim)}

/* blazor error */
#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;right:0;background:#3a1212;color:#fff;padding:12px 20px;z-index:1000}
#blazor-error-ui .reload,#blazor-error-ui .dismiss{color:var(--gold-2);margin-left:14px;cursor:pointer}

@media(max-width:1040px){
  .story-grid{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr;gap:30px}
}
@media(max-width:680px){
  .hero-in{flex-direction:column;align-items:flex-start}
  .sub-card{width:100%}
  .story-grid{grid-template-columns:1fr}
}
/* --- Store hero --- */
.store-hero{position:relative;background:radial-gradient(120% 140% at 82% 20%,rgba(201,162,74,.10),transparent 55%),var(--black);
  border-bottom:1px solid var(--line-d);padding:56px 0 40px;overflow:hidden}
.store-hero-title{font-family:var(--serif);font-weight:800;font-size:clamp(2.4rem,5vw,3.6rem);line-height:1.02;margin:10px 0 14px}
.store-hero-sub{color:var(--cream-dim);max-width:520px;font-size:1.02rem;line-height:1.6}

/* --- Search field + toggle switch --- */
.search-field{position:relative;display:flex;align-items:center}
.search-field .search-ico{position:absolute;left:12px;color:var(--cream-dim);font-size:1.1rem;pointer-events:none}
.search-field .field{margin:0;width:240px;padding-left:34px}
.toggle{display:inline-flex;align-items:center;gap:10px;cursor:pointer;margin:0;text-transform:none;letter-spacing:normal;font-weight:400;color:var(--cream-dim);font-size:.85rem}
.toggle input{position:absolute;opacity:0;width:0;height:0}
.toggle-track{width:42px;height:23px;border-radius:20px;background:var(--black-2);border:1px solid var(--line-d);position:relative;transition:all .2s}
.toggle-track::after{content:"";position:absolute;left:2px;top:1px;width:18px;height:18px;border-radius:50%;background:var(--cream-dim);transition:all .2s}
.toggle input:checked + .toggle-track{background:var(--gold);border-color:var(--gold)}
.toggle input:checked + .toggle-track::after{left:21px;background:#1c1407}

/* --- Product cards: quick-add --- */
.product{position:relative}
.product-link{display:flex;flex-direction:column;color:inherit;text-decoration:none;height:100%}
.cat-kicker{font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:6px}
.add-icon{position:absolute;right:14px;bottom:16px;width:40px;height:40px;border-radius:50%;background:var(--black);
  border:1px solid rgba(201,162,74,.5);color:var(--gold);font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;z-index:2}
.add-icon:hover:not(:disabled){background:var(--gold);color:#1c1407}
.add-icon:disabled{opacity:.35;cursor:not-allowed}

/* --- Trust bar --- */
.trust-bar{border-top:1px solid var(--line-d);border-bottom:1px solid var(--line-d);background:var(--black-2);margin-top:40px;padding:26px 0}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.trust-item{display:flex;align-items:center;gap:14px}
.trust-ico{font-size:1.4rem;color:var(--gold);flex:none}
.trust-item h4{font-size:.82rem;font-weight:700;letter-spacing:.04em;color:var(--cream);margin-bottom:3px}
.trust-item p{font-size:.8rem;color:var(--cream-dim);line-height:1.4}
@media(max-width:900px){.trust-grid{grid-template-columns:1fr 1fr}}

/* --- Nav icons + cart badge --- */
.nav-icon{font-size:1.15rem;color:var(--cream);text-decoration:none}
.nav-icon:hover{color:var(--gold)}
.nav-cart{position:relative}
.nav-cart-label{display:none}   /* desktop: cart is icon-only with a floating badge */
.cart-badge{position:absolute;top:-8px;right:-10px;min-width:18px;height:18px;padding:0 5px;border-radius:10px;
  background:var(--gold);color:#1c1407;font-size:.66rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center}

/* --- Info / legal pages --- */
.info-page{padding:44px 28px 80px}
.info-page h3{font-family:var(--serif);font-size:1.2rem;margin:24px 0 8px;color:var(--cream)}
.info-page p,.info-page li{color:var(--cream-dim);line-height:1.7}
.info-page ul{padding-left:20px;margin:10px 0}

/* --- Product detail v2 --- */
.pdp2{padding-top:24px;padding-bottom:70px}
.breadcrumbs{font-size:.8rem;color:var(--cream-dim);margin-bottom:22px}
.breadcrumbs a{color:var(--cream-dim)}.breadcrumbs a:hover{color:var(--gold)}
.breadcrumbs span{color:var(--gold-2)}
.pdp2-top{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:start}
.pdp2-gallery{display:flex;gap:14px}
.pdp2-thumbs{display:flex;flex-direction:column;gap:10px;width:74px;flex:none}
.pdp2-thumb{width:74px;height:88px;border-radius:6px;border:1px solid var(--line-d);cursor:pointer;padding:0}
.pdp2-thumb.on{border-color:var(--gold)}
.pdp2-main{position:relative;flex:1;aspect-ratio:1/1;border-radius:10px;border:1px solid var(--line-d);
  display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 40%,#201d19,#0d0c0b 72%)}
.pdp2-zoom{position:absolute;right:14px;bottom:14px;width:38px;height:38px;border-radius:50%;background:rgba(11,11,11,.7);
  border:1px solid var(--line-d);color:var(--gold);display:flex;align-items:center;justify-content:center;text-decoration:none}
.pdp-option.inline{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.pdp-option.inline .pdp-option-label{margin:0;min-width:64px}
.qty-stepper{display:inline-flex;align-items:center;border:1px solid var(--line-d);border-radius:6px;overflow:hidden}
.qty-stepper button{width:38px;height:38px;background:var(--black-2);border:none;color:var(--cream);font-size:1.1rem;cursor:pointer}
.qty-stepper button:disabled{opacity:.35;cursor:not-allowed}
.qty-stepper span{min-width:40px;text-align:center}
.size-guide{margin-left:auto}
.size-guide summary{cursor:pointer;color:var(--gold-2);font-size:.82rem;list-style:none}
.size-guide table{margin-top:10px;border-collapse:collapse;font-size:.82rem}
.size-guide th,.size-guide td{border:1px solid var(--line-d);padding:5px 12px;color:var(--cream-dim)}
.pdp-member-line{margin-top:16px;font-size:.86rem;color:var(--cream-dim)}
.pdp-preorder-line{margin-top:14px;padding:10px 14px;border:1px solid rgba(201,162,74,.4);border-radius:10px;background:rgba(201,162,74,.08);font-size:.86rem;color:var(--cream)}
.pdp2-features{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;border-top:1px solid var(--line-d);border-bottom:1px solid var(--line-d);padding:28px 0;margin:40px 0}
.pdp2-tabs{margin:36px 0}
.tab-heads{display:flex;gap:26px;border-bottom:1px solid var(--line-d);margin-bottom:18px}
.tab-head{background:none;border:none;color:var(--cream-dim);font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:0 0 12px;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.tab-head.on{color:var(--gold);border-bottom-color:var(--gold)}
.tab-body{color:var(--cream-dim);line-height:1.7;max-width:720px}
.tab-body p{margin-bottom:10px}
.pdp2-related{margin-top:44px}
@media(max-width:900px){.pdp2-top{grid-template-columns:1fr}.pdp2-features{grid-template-columns:1fr}}

/* ===== Compact sticky header ===== */
.nav{transition:background .25s,box-shadow .25s}
.nav .nav-in{transition:height .25s}
.nav .logo .win{transition:font-size .25s}
.nav.scrolled{background:rgba(11,11,11,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom-color:rgba(201,162,74,.4)}
.nav.scrolled .nav-in{height:56px}
.nav.scrolled .logo .win{font-size:1.2rem}
.nav.scrolled .logo .sub{display:none}

/* ===== Hero membership card ===== */
.mem-card{position:relative;width:312px;flex-shrink:0;
  /* Translucent panel — the hero video shows through via plain alpha compositing. We deliberately
     do NOT use backdrop-filter: it renders inconsistently across Edge/Chrome/Firefox/Safari.
     This looks identical in every browser. Slightly darker toward the base for text legibility. */
  background:linear-gradient(180deg,rgba(9,11,15,.40),rgba(9,11,15,.70));
  border:1px solid rgba(201,162,74,.6);border-radius:14px;padding:40px 30px 28px;text-align:center;
  box-shadow:0 24px 60px rgba(0,0,0,.45);text-shadow:0 1px 4px rgba(0,0,0,.6)}
.mem-seal{position:absolute;top:-26px;left:50%;transform:translateX(-50%);width:52px;height:52px;border-radius:50%;
  background:var(--black);border:1px solid var(--gold);color:var(--gold);display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-weight:700;font-size:1.4rem}
.mem-label{font-size:.74rem;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);margin:8px 0 14px}
.mem-card p{font-size:.92rem;color:var(--cream-dim);line-height:1.55;margin-bottom:18px}
.mem-price{font-family:var(--serif);font-weight:700;font-size:2.6rem;color:var(--gold);line-height:1}
.mem-per{font-size:.68rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin:4px 0 20px}
.mem-card .btn-teal{width:100%}
.mem-cancel{font-size:.78rem;color:var(--cream-dim);margin-top:14px}
.mem-tiers{display:flex;flex-direction:column;gap:10px;margin:4px 0 18px}
.mem-tier{display:flex;justify-content:space-between;align-items:baseline;padding:10px 12px;border:1px solid rgba(201,162,74,.28);border-radius:8px;background:rgba(0,0,0,.28)}
.mem-tier-name{font-size:.88rem;font-weight:700;color:var(--cream)}
.mem-tier-price{font-family:var(--serif);font-weight:700;font-size:1.3rem;color:var(--gold)}
.mem-tier-price span{font-size:.68rem;font-weight:600;color:var(--cream-dim)}
.mem-actions{display:flex;flex-direction:column;gap:10px;margin:6px 0 12px}
.mem-actions .btn{width:100%}

/* ===== Cream content sections ===== */
.section-cream{background:var(--paper);color:var(--ink);padding:80px 0}
.section-cream.tight{padding:24px 0 80px}
/* Adjacent cream sections read as one continuous band — collapse the doubled gap between them. */
.section-cream + .section-cream{padding-top:0}
.section-cream:has(+ .section-cream){padding-bottom:34px}
.section-cream .label{color:#8a6d2f;border-left:3px solid var(--gold);padding-left:12px}
.section-cream .viewall{color:var(--ink)}
.section-cream .viewall:hover{color:#8a6d2f}
.section-cream .feat-head{margin-bottom:26px}

/* ----- Editorial featured grid ----- */
.ed-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:22px}
.ed-card{display:flex;flex-direction:column;background:#191712;border:1px solid #262019;border-radius:8px;overflow:hidden;
  color:var(--cream);text-decoration:none;transition:transform .2s,box-shadow .3s}
.ed-card:hover{transform:translateY(-4px);box-shadow:0 18px 34px rgba(26,24,19,.28)}
.ed-img{height:190px;position:relative}
.ed-card.lead .ed-img{height:250px}
.ed-img .cat{position:absolute;left:14px;bottom:14px;background:var(--gold);color:#1c1407;font-size:.62rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;padding:5px 11px;border-radius:2px}
.ed-body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.ed-body h3{font-family:var(--serif);font-weight:600;font-size:1.22rem;line-height:1.2;margin-bottom:10px;color:var(--cream)}
.ed-card.lead .ed-body h3{font-size:1.8rem}
.ed-body p{font-size:.86rem;color:var(--cream-dim);line-height:1.5;flex:1}
/* Story-card teaser: clamp to a tidy 3 lines so cards line up regardless of length. */
.ed-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.ed-meta{font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-2);margin-top:14px}

/* ----- Featured business profile ----- */
.biz-profile{display:grid;grid-template-columns:340px 1fr 220px;gap:0;background:#ECE4D2;border:1px solid var(--line-l);border-radius:10px;overflow:hidden}
.biz-profile-img{position:relative;min-height:220px;display:flex;align-items:center;justify-content:center}
.biz-feature-initials{font-family:var(--serif);font-weight:700;font-size:2.4rem;color:#fff}
.biz-profile-main{padding:30px 32px;display:flex;flex-direction:column;align-items:flex-start}
.biz-featured-tag{font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8a6d2f;margin-bottom:10px}
.biz-profile-main h3{font-family:var(--serif);font-weight:700;font-size:1.9rem;color:var(--ink);margin-bottom:6px}
.biz-loc{font-size:.88rem;color:var(--ink-soft);margin-bottom:12px}
.biz-profile-main p{color:var(--ink-soft);line-height:1.6;margin-bottom:18px;max-width:420px}
.btn-dark{background:var(--black);color:var(--cream);border:1px solid var(--black)}
.btn-dark:hover{background:#241f18}
.biz-profile-stats{padding:30px 28px;border-left:1px solid var(--line-l);display:flex;flex-direction:column;gap:22px;justify-content:center}
.biz-stat{display:flex;gap:12px;align-items:center}
.biz-stat-ico{width:34px;height:34px;border-radius:50%;background:var(--paper);border:1px solid var(--line-l);display:flex;
  align-items:center;justify-content:center;color:#8a6d2f;flex:none}
.biz-stat .k{font-size:.64rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft)}
.biz-stat .v{font-size:.95rem;color:var(--ink);font-weight:600}

/* ----- Shop preview ----- */
.shop-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.preview-card{text-decoration:none;color:inherit}
.preview-img{aspect-ratio:1/1;border-radius:8px;border:1px solid var(--line-l);background:#EDE6D6;transition:transform .2s}
.preview-card:hover .preview-img{transform:translateY(-4px)}
.preview-body{padding:14px 2px}
.preview-body h4{font-family:var(--serif);font-size:1.05rem;color:var(--ink);margin-bottom:4px}
.preview-body .price{color:#8a6d2f;font-weight:700}

/* ===== Culture spotlight ===== */
.culture-spotlight{position:relative;background:var(--black);overflow:hidden}
.culture-spotlight-in{display:grid;grid-template-columns:1fr 1.5fr 1fr;grid-template-areas:"photoL text photoR";
  align-items:stretch;min-height:500px}
.cs-photo{background-size:cover;background-position:center;position:relative;
  background-color:#241d12;background-image:linear-gradient(135deg,#2c2415,#161207)}
.cs-photo-l{grid-area:photoL;background-position:center top}
.cs-photo-r{grid-area:photoR;background-position:center top}
/* Fade each photo's inner edge into the dark centre so the text panel blends cleanly. */
.cs-photo-l::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 68%,rgba(11,11,11,.55))}
.cs-photo-r::after{content:"";position:absolute;inset:0;background:linear-gradient(270deg,transparent 68%,rgba(11,11,11,.55))}
.cs-text{grid-area:text;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:64px 40px}
.culture-spotlight h2{font-family:var(--serif);font-weight:700;font-size:clamp(2rem,4vw,3rem);line-height:1.05;margin:12px 0 16px;color:var(--cream)}
.culture-spotlight p{color:var(--cream-dim);max-width:420px;margin-bottom:24px;line-height:1.6}
@media(max-width:820px){
  .culture-spotlight-in{grid-template-columns:1fr 1fr;grid-template-areas:"text text" "photoL photoR";min-height:0}
  .cs-text{padding:48px 24px 26px}
  .cs-photo{min-height:320px}
  .cs-photo-l::after,.cs-photo-r::after{display:none}
}
/* Scroll-reveal: hidden only once JS adds .reveal (so no-JS stays visible); .in plays it. */
.culture-spotlight.reveal .cs-text{opacity:0;transform:translateY(22px)}
.culture-spotlight.reveal .cs-photo-l{opacity:0;transform:translateX(-36px)}
.culture-spotlight.reveal .cs-photo-r{opacity:0;transform:translateX(36px)}
.culture-spotlight.reveal.in .cs-text,
.culture-spotlight.reveal.in .cs-photo-l,
.culture-spotlight.reveal.in .cs-photo-r{opacity:1;transform:none;
  transition:opacity .8s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
@media(prefers-reduced-motion:reduce){
  .cs-photo-l,.cs-photo-r{animation:none}
  .culture-spotlight.reveal .cs-text,.culture-spotlight.reveal .cs-photo-l,.culture-spotlight.reveal .cs-photo-r{opacity:1;transform:none}
}

/* ===== Join band ===== */
.join-band{background:linear-gradient(120deg,#0e2320,#14332e 55%,#0d1c1a);border-top:1px solid rgba(201,162,74,.35);border-bottom:1px solid rgba(201,162,74,.35)}
.join-band-in{display:flex;align-items:center;gap:30px;padding:44px 32px}
.join-seal{width:78px;height:78px;border-radius:50%;border:1px solid var(--gold);color:var(--gold);flex:none;
  display:flex;align-items:center;justify-content:center;font-size:1.8rem}
.join-copy{flex:1}
.join-copy h2{font-family:var(--serif);font-weight:700;font-size:1.9rem;color:var(--cream);margin-bottom:8px}
.join-copy p{color:rgba(236,228,212,.8);max-width:460px;line-height:1.55}
.join-action{display:flex;flex-direction:column;gap:10px;text-align:center}
.join-price{font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-2);margin-top:12px}
@media(max-width:900px){
  .ed-grid{grid-template-columns:1fr 1fr}
  .biz-profile{grid-template-columns:1fr}
  .biz-profile-stats{border-left:none;border-top:1px solid var(--line-l);flex-direction:row;flex-wrap:wrap}
  .shop-preview{grid-template-columns:1fr 1fr}
  .join-band-in{flex-direction:column;text-align:center}
}
@media(max-width:680px){.ed-grid{grid-template-columns:1fr}.shop-preview{grid-template-columns:1fr 1fr}.mem-card{width:100%}}

/* ===== Admin edit (product) ===== */
.admin-edit{padding-top:24px;padding-bottom:72px}
.admin-h1{font-family:var(--serif);font-weight:700;font-size:2.2rem;margin:6px 0 22px}
.admin-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:26px;align-items:start}
.admin-col{display:flex;flex-direction:column;gap:24px}
.admin-card{background:linear-gradient(180deg,#161310,#100f0d);border:1px solid var(--line-d);border-radius:12px;padding:24px 26px}
.admin-card-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.admin-card-head h2{font-family:var(--serif);font-weight:600;font-size:1.3rem;color:var(--cream);flex:1;margin:0}
.admin-card-ico{width:36px;height:36px;border-radius:9px;background:rgba(201,162,74,.12);border:1px solid rgba(201,162,74,.35);
  display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:1rem;flex:none}
.admin-card .row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.btn-sm{padding:7px 14px;font-size:.76rem}
.admin-actions{display:flex;gap:12px;margin-top:22px;border-top:1px solid var(--line-d);padding-top:20px}

/* Media dropzone */
.file-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;opacity:0}
.dropzone{position:relative;display:block;border:1.5px dashed rgba(201,162,74,.4);border-radius:10px;min-height:280px;background:#0d0c0b;cursor:pointer;overflow:hidden}
.dropzone:hover{border-color:var(--gold)}
.dropzone img{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);object-fit:contain}
.dropzone-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--cream-dim);text-align:center;font-size:.9rem}
.dropzone-empty span{font-size:.8rem}
.dz-ico{font-size:1.9rem;color:var(--gold);margin-bottom:4px}
.gallery-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.gallery-cell{width:84px}
.gallery-img{position:relative;width:84px;height:84px;border-radius:8px;border:1px solid var(--line-d);background-size:cover;background-position:center}
.gallery-x{position:absolute;top:3px;right:3px;background:rgba(0,0,0,.6);border:none;color:#fff;border-radius:3px;cursor:pointer;font-size:.7rem;width:18px;height:18px;line-height:1}
.gallery-label{display:block;text-align:center;font-size:.7rem;color:var(--cream-dim);margin-top:5px}
.gallery-add{position:relative;width:84px;height:84px;border:1.5px dashed rgba(201,162,74,.4);border-radius:8px;display:flex;
  align-items:center;justify-content:center;text-align:center;color:var(--cream-dim);font-size:.72rem;cursor:pointer;line-height:1.3}
.gallery-add:hover{border-color:var(--gold)}
.gallery-add input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}

/* Variant table */
.variant-table{width:100%;border-collapse:collapse}
.variant-table th{text-align:left;font-size:.66rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);padding:9px 10px;border-bottom:1px solid var(--line-d)}
.variant-table td{padding:8px 10px;border-bottom:1px solid var(--line-d);color:var(--cream);font-size:.9rem;vertical-align:middle}
.variant-table .add-row td{background:rgba(201,162,74,.05)}
.iconbtn{background:none;border:none;cursor:pointer;font-size:.95rem;padding:2px 5px;opacity:.85}
.iconbtn:hover{opacity:1}

/* Info card */
.admin-info{padding:6px 26px}
.admin-info .info-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line-d)}
.admin-info .info-row:last-child{border-bottom:none}
.admin-info .k{color:var(--cream-dim);font-size:.85rem}
.admin-info .v{color:var(--cream);font-weight:600;font-size:.88rem}
.admin-info .v.good{color:#7fd1a0}
.admin-info .v.bad{color:#e08a7a}
@media(max-width:900px){.admin-grid{grid-template-columns:1fr}}

/* ===== Admin edit v2 (preview + form) ===== */
.admin-edit2{padding-top:24px;padding-bottom:72px}
.admin2-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}
.admin2-head .admin-h1{margin:6px 0 4px}
.admin2-head .muted{margin:0;font-size:.92rem}
.admin2-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:26px;align-items:start;margin-bottom:26px}
.preview-card .label{color:var(--gold);margin-bottom:14px}
.preview-stage{position:relative;border-radius:10px;min-height:360px;display:flex;align-items:center;justify-content:center;padding:22px;
  background-color:#e9e6df;
  background-image:linear-gradient(45deg,#d3cec3 25%,transparent 25%),linear-gradient(-45deg,#d3cec3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d3cec3 75%),linear-gradient(-45deg,transparent 75%,#d3cec3 75%);
  background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0}
.preview-stage img{max-width:100%;max-height:330px;object-fit:contain}
.preview-badge{position:absolute;top:14px;left:14px;background:var(--gold);color:#1c1407;font-size:.68rem;font-weight:700;letter-spacing:.06em;padding:5px 11px;border-radius:20px}
.preview-empty{color:#6b6356;font-size:.9rem}
.preview-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.pthumb{width:74px;height:74px;border-radius:8px;border:1px solid var(--line-d);background-size:cover;background-position:center;background-color:#0d0c0b}
.pthumb.on{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.pthumb.add{display:flex;align-items:center;justify-content:center;border-style:dashed;color:var(--cream-dim);font-size:.66rem;text-align:center;cursor:pointer;line-height:1.3}
.req-box{display:flex;gap:12px;align-items:flex-start;margin-top:16px;padding:14px 16px;background:var(--black-2);border:1px solid var(--line-d);border-radius:8px;font-size:.82rem;color:var(--cream-dim);line-height:1.5}
.req-box strong{color:var(--cream)}
.req-ico{color:var(--gold)}
.file-status{margin-top:8px;font-size:.82rem;color:var(--cream-dim)}
.file-status .ok{color:#7fd1a0;font-weight:600;margin-left:6px}
.field-file{display:block;color:var(--cream-dim);font-size:.85rem;margin-top:2px}
.field-file::file-selector-button{background:var(--black-2);border:1px solid var(--line-d);color:var(--cream);padding:8px 14px;border-radius:6px;margin-right:12px;cursor:pointer;font-size:.82rem}
.field-file::file-selector-button:hover{border-color:var(--gold)}
@media(max-width:900px){.admin2-head{flex-direction:column}.admin2-grid{grid-template-columns:1fr}}

/* ===== Write a story ===== */
.write-page{padding-top:24px;padding-bottom:72px}
.write-sub{max-width:560px;margin:6px 0 26px;font-size:.95rem}
.write-grid{display:grid;grid-template-columns:1fr 320px;gap:34px;align-items:start}
.write-main .row{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.check-inline{display:flex;gap:10px;align-items:flex-start;text-transform:none;letter-spacing:normal;font-weight:400;color:var(--cream-dim);font-size:.85rem;line-height:1.5;margin:0}
.check-inline input{margin-top:3px;flex:none}
.md-toolbar{display:flex;gap:6px;margin:0 0 8px;flex-wrap:wrap}
.md-btn{background:var(--black-2);border:1px solid var(--line-d);color:var(--cream-dim);
  min-width:34px;height:34px;padding:0 9px;border-radius:7px;cursor:pointer;font-family:var(--sans);font-size:.9rem;
  display:inline-flex;align-items:center;justify-content:center;transition:border-color .15s,color .15s}
.md-btn:hover{border-color:var(--gold);color:var(--gold)}
.md-btn em{font-family:Georgia,serif}
.dropzone.sm{min-height:120px}
.dropzone.sm .dropzone-empty{font-size:.85rem}
.dropzone-empty strong{color:var(--cream);text-decoration:underline}
.preview-bar{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding:12px 16px;
  background:var(--black-2);border:1px solid var(--line-d);border-radius:8px;cursor:pointer}
.preview-bar .preview-label{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin:0}
.preview-btn{font-size:.78rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--cream-dim);display:flex;gap:8px;align-items:center}
.preview-bar:hover .preview-btn{color:var(--gold)}
.submit-note{margin-top:16px}
.submit-note a{color:var(--gold-2);text-decoration:underline}

/* Writing tips sidebar */
.write-tips{background:linear-gradient(180deg,#161310,#100f0d);border:1px solid var(--line-d);border-radius:12px;padding:24px 22px;position:sticky;top:90px}
.tips-head{display:flex;align-items:center;gap:10px;font-size:.74rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:20px}
.tips-ico{font-size:1.1rem}
.tip{display:flex;gap:12px;margin-bottom:20px}
.tip-ico{width:34px;height:34px;border-radius:50%;background:rgba(201,162,74,.1);border:1px solid rgba(201,162,74,.35);
  display:flex;align-items:center;justify-content:center;color:var(--gold);flex:none;font-size:.85rem}
.tip h4{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cream);margin-bottom:5px}
.tip p{font-size:.83rem;color:var(--cream-dim);line-height:1.5}
.tips-more{color:var(--gold-2);font-size:.85rem;font-weight:600}
@media(max-width:900px){.write-grid{grid-template-columns:1fr}.write-main .row{grid-template-columns:1fr}.write-tips{position:static}}

/* ===== Admin list (products) ===== */
.admin-list{padding-top:24px;padding-bottom:72px}
.admin-list-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}
.admin-list-head .label{border-left:3px solid var(--gold);padding-left:12px;color:var(--gold);margin-bottom:10px}
.admin-list-head .admin-h1{margin:4px 0 4px}
.admin-list-head .muted{margin:0;font-size:.92rem}
.list-card{padding:0;overflow:hidden}
.list-table{width:100%;border-collapse:collapse}
.list-table th{text-align:left;font-size:.66rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);
  padding:18px 20px;border-bottom:1px solid var(--line-d)}
.list-table td{padding:16px 20px;border-bottom:1px solid var(--line-d);color:var(--cream);font-size:.92rem;vertical-align:middle}
.list-table tr:last-child td{border-bottom:none}
.list-table .ta-r{text-align:right}
.pcell{display:flex;align-items:center;gap:14px}
.pthumb-sm{width:56px;height:56px;border-radius:8px;border:1px solid var(--line-d);background-size:cover;background-position:center;flex:none}
.ptitle{font-family:var(--serif);font-size:1.1rem;color:var(--cream)}
.psku{font-size:.72rem;color:var(--cream-dim);letter-spacing:.04em;margin-top:2px}
.cat-cell{color:var(--cream-dim)}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:5px 12px;border-radius:20px;border:1px solid}
.pill.live{color:#7fd1a0;border-color:#2f6f4f;background:rgba(47,111,79,.12)}
.pill.off{color:var(--cream-dim);border-color:var(--line-d)}
.actions-cell{display:flex;gap:10px;align-items:center;justify-content:flex-end}
.list-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;flex-wrap:wrap}
/* Keep wide admin tables reachable inside the (sidebar-narrowed) content area: scroll instead of
   clipping, and drop the two lowest-value columns before the action buttons would get cut off. */
.list-scroll{overflow-x:auto}
@media(max-width:1280px){.courses-table th:nth-child(4),.courses-table td:nth-child(4),.courses-table th:nth-child(5),.courses-table td:nth-child(5){display:none}}
.pager{display:flex;gap:6px}
.pgbtn{width:34px;height:34px;border-radius:7px;background:var(--black-2);border:1px solid var(--line-d);color:var(--cream);cursor:pointer;font-size:.9rem}
.pgbtn:hover:not(:disabled){border-color:var(--gold)}
.pgbtn.on{border-color:var(--gold);color:var(--gold);font-weight:700}
.pgbtn:disabled{opacity:.35;cursor:not-allowed}
.perpage{width:auto;margin:0;padding:8px 12px;font-size:.82rem}
/* Orders: status label + filter bar + two-up customer/shipping cards */
.ostat{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.list-filter{display:flex;align-items:center;gap:10px;padding:14px 20px;border-bottom:1px solid var(--line-d)}
.list-filter .field{width:auto;margin:0;padding:8px 12px;font-size:.85rem}
.admin-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
@media(max-width:760px){.admin-list-head{flex-direction:column}.list-table{display:block;overflow-x:auto;white-space:nowrap}.admin-two-col{grid-template-columns:1fr}}

/* Member portal (/account) */
.portal{display:grid;grid-template-columns:240px 1fr;gap:22px;align-items:start;max-width:1360px}
.portal svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-side{background:#111;border:1px solid #232323;border-radius:16px;padding:18px 14px;position:sticky;top:88px}
.portal-side-label{font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:#7d766a;font-weight:700;padding:4px 10px 12px}
.portal-nav{display:flex;flex-direction:column;gap:2px}
.pnav{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:#c9c4bb;text-decoration:none;font-size:.92rem;font-weight:500;border-left:3px solid transparent;background:transparent;width:100%;cursor:pointer;font-family:inherit;text-align:left}
.pnav svg{color:#8a857a}
.pnav:hover{background:rgba(255,255,255,.03);color:var(--cream,#ece6da)}
.pnav.active{background:rgba(201,162,74,.10);border-left-color:var(--gold,#c9a24a);color:var(--gold,#d8b45c)}
.pnav.active svg{color:var(--gold,#c9a24a)}
.pnav.danger,.pnav.danger svg{color:#d98b7e}
.pnav.danger:hover{background:rgba(192,85,74,.10)}
.pnav-form{margin-top:6px;padding-top:6px;border-top:1px solid #232323}
.portal-main{min-width:0;display:flex;flex-direction:column;gap:18px}
.portal-welcome h1{font-family:var(--serif);font-size:2.1rem;margin:2px 0 4px}
.portal-welcome .muted{margin:0}
.pcard{background:#141414;border:1px solid #242424;border-radius:16px;padding:24px}
.pcard-h{margin:0 0 16px;font-size:1.2rem}
.pcard-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:6px}
.pcard-title{font-size:1.2rem;font-weight:700;display:flex;align-items:center;gap:12px}
.ppill{font-size:.64rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:20px;border:1px solid}
.ppill.active{color:var(--gold,#d8b45c);background:rgba(201,162,74,.14);border-color:rgba(201,162,74,.4)}
.ppill.warn{color:#e0ad48;background:rgba(224,173,72,.12);border-color:rgba(224,173,72,.34)}
.ppill.muted{color:#9a9a9a;background:rgba(255,255,255,.05);border-color:#333}
.pcard-dot{width:9px;height:9px;border-radius:50%;flex:none;margin-top:6px}
.pcard-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:16px}
.ptiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.ptile{display:flex;align-items:center;gap:14px;background:#141414;border:1px solid #242424;border-radius:14px;padding:18px 20px;color:var(--cream,#ece6da);text-decoration:none;transition:border-color .15s}
.ptile:hover{border-color:#3a3a3a}
.ptile-ico{width:44px;height:44px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex:none;background:rgba(201,162,74,.14);color:var(--gold,#c9a24a)}
.ptile:nth-child(2) .ptile-ico{background:rgba(150,120,220,.14);color:#a98fe0}
.ptile:nth-child(3) .ptile-ico{background:rgba(200,90,80,.14);color:#e08a7e}
.ptile-txt{flex:1;display:flex;flex-direction:column;gap:2px}
.ptile-txt strong{font-size:.98rem}
.ptile-txt span{color:#9a9a9a;font-size:.84rem}
.ptile-chev{color:#6b6b6b;font-size:1.4rem;line-height:1}
.profile-grid{display:grid;grid-template-columns:1fr 260px;gap:30px;align-items:start}
.profile-fields{min-width:0}
.portal .field-label{display:block;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#8a857a;margin:16px 0 7px}
.profile-fields .field-label:first-child{margin-top:0}
.profile-photo{display:flex;flex-direction:column;align-items:center;text-align:center}
.pp-label{align-self:flex-start;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#8a857a;margin-bottom:12px}
.pp-avatar{width:120px;height:120px;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 50% 35%,#2a2620,#0d0c0b);border:1px solid #333;display:flex;align-items:center;justify-content:center}
.pp-avatar img{width:100%;height:100%;object-fit:cover}
.pp-initial{font-family:var(--serif);font-size:2.6rem;color:var(--gold,#c9a24a)}
.pp-upload{display:flex;align-items:center;gap:10px;justify-content:center;margin-top:16px;padding:12px 14px;border:1px dashed #3a3630;border-radius:11px;cursor:pointer;color:#9a958b;font-size:.78rem;line-height:1.35;width:100%}
.pp-upload:hover{border-color:var(--gold,#c9a24a)}
.pp-upload svg{width:22px;height:22px;color:#8a857a;flex:none}
.pp-upload strong{color:var(--cream,#ece6da);font-weight:600}
.pp-remove{background:none;border:none;color:#d98b7e;font-size:.82rem;cursor:pointer;margin-top:12px;font-weight:600}
.pp-remove:hover{color:#f0a99e}
.pcheck{display:flex;gap:10px;align-items:flex-start;color:#c9c4bb;font-size:.92rem;cursor:pointer}
.pcheck input{margin-top:3px}
.research-list{list-style:none;padding:0;margin:0}
.research-list li{padding:14px 0;border-top:1px solid #222}
.research-list li:first-child{border-top:none;padding-top:2px}
.btn.danger{border-color:#5c2b26;color:#e08a7e;background:transparent}
.btn.danger:hover{border-color:#c0554a;color:#f0a99e}
@media(max-width:900px){
  .portal{grid-template-columns:1fr}
  .portal-side{position:static}
  .portal-nav{flex-direction:row;flex-wrap:wrap}
  .pnav{width:auto}
  .pnav-form{border-top:none;margin:0;padding:0}
  .profile-grid{grid-template-columns:1fr}
  .profile-photo{align-items:flex-start}
}

/* ===== Category / listing page ===== */
.cat-hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line-d);padding:44px 0 30px;
  background:radial-gradient(120% 130% at 88% 8%,rgba(201,162,74,.10),transparent 55%),var(--black)}
.cat-hero .label{border-left:3px solid var(--gold);padding-left:12px;color:var(--gold)}
.cat-headline{font-family:var(--serif);font-weight:700;font-size:clamp(2.2rem,4.6vw,3.2rem);line-height:1.05;margin:12px 0 12px}
.cat-sub{color:var(--cream-dim);max-width:520px;line-height:1.6}
.cat-rule{width:70px;height:2px;background:var(--gold);margin:20px 0 26px;opacity:.8}
.cat-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.cat-controls-right{display:flex;align-items:center;gap:12px}
.cat-controls-right .field{margin:0;width:auto;padding:9px 14px;font-size:.85rem}
.view-toggle{display:flex;gap:4px;border:1px solid var(--line-d);border-radius:8px;padding:3px;background:var(--black-2)}
.vt{width:34px;height:32px;border:none;background:none;color:var(--cream-dim);cursor:pointer;border-radius:6px;font-size:1rem}
.vt.on{background:rgba(201,162,74,.15);color:var(--gold)}
.cat-body{padding-top:34px;padding-bottom:64px}
.hgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.hcard{display:flex;flex-direction:column;background:#141210;border:1px solid var(--line-d);border-radius:10px;overflow:hidden;color:var(--cream);text-decoration:none;transition:transform .2s,border-color .2s,box-shadow .3s}
.hcard:hover{transform:translateY(-4px);border-color:rgba(201,162,74,.4);box-shadow:0 18px 34px rgba(0,0,0,.45)}
.hcard-img{position:relative;height:180px;background-size:cover;background-position:center}
.hcard-tag{position:absolute;left:14px;bottom:14px;background:var(--gold);color:#1c1407;font-size:.6rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:5px 10px;border-radius:3px}
.hcard-body{padding:18px 20px;display:flex;flex-direction:column;flex:1}
.hcard-body h3{font-family:var(--serif);font-weight:600;font-size:1.3rem;line-height:1.18;margin-bottom:10px;color:var(--cream)}
.hcard-body p{font-size:.86rem;color:var(--cream-dim);line-height:1.5;flex:1}
.hcard-foot{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid var(--line-d)}
.hcard-meta{font-size:.72rem;color:var(--cream-dim)}
.hcard-meta .dot{margin:0 5px}
.hcard-arrow{color:var(--gold);font-size:1.1rem}
.hgrid.list{grid-template-columns:1fr;gap:16px}
.hgrid.list .hcard{flex-direction:row}
.hgrid.list .hcard-img{width:280px;height:auto;min-height:150px;flex:none}
.hgrid.list .hcard-body{flex:1}
.pager.center{display:flex;justify-content:center;gap:6px;margin-top:36px}
@media(max-width:1040px){.hgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.hgrid{grid-template-columns:1fr}.hgrid.list .hcard{flex-direction:column}.hgrid.list .hcard-img{width:auto;height:180px}}

/* ===== Editorial desk (review) ===== */
.review-desk{padding-top:26px;padding-bottom:70px}
.review-desk .label{border-left:3px solid var(--gold);padding-left:12px;color:var(--gold)}
.review-desk .admin-h1{margin:12px 0 6px}
.review-sub{color:var(--cream-dim);line-height:1.6;margin-bottom:28px}
.desk-card{display:grid;grid-template-columns:430px 1fr 240px;gap:0;background:linear-gradient(180deg,#161310,#100f0d);
  border:1px solid var(--line-d);border-radius:12px;overflow:hidden;margin-bottom:24px;color:var(--cream);text-decoration:none;transition:border-color .2s,box-shadow .3s}
.desk-card:hover{border-color:rgba(201,162,74,.4);box-shadow:0 18px 34px rgba(0,0,0,.4)}
.desk-img{position:relative;min-height:210px;background-size:cover;background-position:center}
.desk-img.stories{background:radial-gradient(120% 120% at 30% 25%,#3a2c18,#0d0b08 75%)}
.desk-img.apps{background:radial-gradient(120% 120% at 35% 30%,#33251a,#0d0b08 75%)}
.desk-badge{position:absolute;top:16px;left:16px;background:rgba(11,11,11,.72);border:1px solid rgba(201,162,74,.5);color:var(--gold);
  font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:6px 12px;border-radius:5px}
.desk-badge.teal{border-color:rgba(53,144,137,.6);color:var(--teal-2)}
.desk-mid{padding:32px 34px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.desk-mid .label{color:var(--gold);margin-bottom:8px}
.desk-mid h2{font-family:var(--serif);font-weight:700;font-size:1.9rem;color:var(--cream);margin-bottom:12px}
.desk-mid p{color:var(--cream-dim);line-height:1.6;margin-bottom:20px;max-width:380px}
.desk-btn{color:var(--gold);border-color:rgba(201,162,74,.5)}
.desk-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:28px;border-left:1px solid var(--line-d);text-align:center}
.desk-stat-ico{width:52px;height:52px;border-radius:50%;background:var(--black-2);border:1px solid var(--line-d);display:flex;align-items:center;justify-content:center;font-size:1.3rem;margin-bottom:6px}
.desk-num{font-family:var(--serif);font-weight:700;font-size:2.6rem;color:var(--gold);line-height:1}
.desk-stat-label{font-size:.78rem;color:var(--cream-dim)}
@media(max-width:900px){.desk-card{grid-template-columns:1fr}.desk-stat{border-left:none;border-top:1px solid var(--line-d);flex-direction:row;gap:14px}}

/* ===== Course editor ===== */
.course-edit{padding-top:24px;padding-bottom:72px}
.ce-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px;flex-wrap:wrap}
.ce-head .admin-h1{margin:8px 0 4px}
.ce-head .muted{margin:0;font-size:.9rem}
.ce-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ce-grid{display:grid;grid-template-columns:200px minmax(0,1fr) 248px;gap:20px;align-items:start}
.ce-nav{display:flex;flex-direction:column;gap:2px;background:linear-gradient(180deg,#161310,#100f0d);border:1px solid var(--line-d);border-radius:12px;padding:10px}
.ce-nav-item{display:flex;align-items:center;gap:10px;padding:11px 14px;background:none;border:none;color:var(--cream-dim);cursor:pointer;border-radius:8px;font-size:.88rem;text-align:left;width:100%}
.ce-nav-item:hover{color:var(--cream);background:rgba(255,255,255,.03)}
.ce-nav-item.on{background:rgba(201,162,74,.12);color:var(--gold);font-weight:600}
.ce-nav-ico{width:20px;text-align:center;opacity:.9}
.ce-main{display:flex;flex-direction:column;gap:22px}
.ce-details-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px}
.ce-cover .label{color:var(--gold);margin-bottom:10px}
.ce-cover-img{aspect-ratio:1/1;border-radius:10px;border:1px solid var(--line-d);display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.ce-change{width:100%;display:flex;justify-content:center}
.ce-fields .ce-row3{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.ce-cur-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;flex-wrap:wrap;gap:10px}
.ce-cur-title{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-size:1.2rem;color:var(--cream)}
.cur-count{font-family:var(--sans);font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);background:rgba(201,162,74,.12);padding:4px 10px;border-radius:20px}
.cur-table .drag{color:var(--cream-dim)}
.ptitle.sm{font-size:.98rem}
.vid{font-size:.8rem;color:var(--cream-dim)}
.vid.ok{color:#7fd1a0}
.ce-soon{text-align:center;padding:60px 30px}
.ce-soon h2{font-family:var(--serif);font-size:1.5rem;margin-bottom:10px}
.ce-side{display:flex;flex-direction:column;gap:22px}
.ce-side-head{font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line-d)}
.ov-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0}
.ov-row span:first-child{color:var(--cream-dim);text-transform:uppercase;letter-spacing:.06em;font-size:.66rem;font-weight:600}
.ov-row span:last-child{color:var(--cream);font-weight:600;font-size:.86rem}
.ov-row.soon span:last-child{color:var(--cream-dim)}
.ce-quick .qa{display:flex;align-items:center;gap:10px;width:100%;background:none;border:none;color:var(--cream);padding:10px 4px;cursor:pointer;font-size:.85rem;text-align:left;border-radius:6px}
.ce-quick .qa:hover:not(:disabled){color:var(--gold)}
.ce-quick .qa:disabled{opacity:.4;cursor:not-allowed}
.ce-quick .qa.danger{color:#e08a7a}
/* Collapse sooner than the raw viewport width: the admin back-office sidebar consumes ~240px, so
   the course editor's own 3-column shell runs out of room well before 1100px of viewport. */
@media(max-width:1280px){.ce-grid{grid-template-columns:1fr}.ce-nav{flex-direction:row;flex-wrap:wrap}.ce-details-grid{grid-template-columns:1fr}}

/* ===== Courses listing ===== */
.courses-hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line-d);padding:48px 0 40px;
  background:radial-gradient(120% 150% at 12% 20%,rgba(201,162,74,.08),transparent 55%),var(--black)}
.courses-hero-in{display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap}
.courses-hero .label{border-left:3px solid var(--gold);padding-left:12px;color:var(--gold)}
.courses-title{font-family:var(--serif);font-weight:800;font-size:clamp(2.4rem,5vw,3.6rem);line-height:1.02;margin:12px 0 14px}
.courses-sub{color:var(--cream-dim);max-width:520px;line-height:1.6}
.courses-member-badge{display:flex;align-items:center;gap:14px;flex:none}
.courses-member-badge .label{border:none;padding:0;margin:0;color:var(--gold)}
.courses-member-badge p{font-size:.82rem;color:var(--cream-dim);margin-top:3px}
.cmb-seal{width:56px;height:56px;border-radius:50%;border:1px solid var(--gold);color:var(--gold);display:flex;align-items:center;justify-content:center;font-size:1.4rem;flex:none}
.courses-body{padding-top:30px;padding-bottom:64px}
.courses-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:28px}
.search-field.wide .field{width:300px}
.courses-controls .filter-chips{flex:1}
.courses-controls .chip.on{background:var(--teal-2);border-color:var(--teal-2);color:#fff}
.sort-sel{margin:0;width:auto;padding:10px 14px;font-size:.85rem}
.cc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.cc-card{display:flex;flex-direction:column;background:#141210;border:1px solid var(--line-d);border-radius:10px;overflow:hidden;color:var(--cream);text-decoration:none;transition:transform .2s,border-color .2s,box-shadow .3s}
.cc-card:hover{transform:translateY(-4px);border-color:rgba(53,144,137,.5);box-shadow:0 18px 34px rgba(0,0,0,.45)}
.cc-img{position:relative;height:190px;background-size:cover;background-position:center}
.cc-cat{position:absolute;top:14px;left:14px;background:var(--teal);color:#fff;font-size:.62rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:5px 11px;border-radius:4px}
.cc-mem{position:absolute;top:14px;right:14px;background:rgba(11,11,11,.78);color:var(--teal-2);font-size:.6rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:5px 10px;border-radius:4px}
.cc-body{padding:20px 22px;display:flex;flex-direction:column;flex:1}
.cc-body h3{font-family:var(--serif);font-weight:600;font-size:1.35rem;color:var(--cream);margin-bottom:10px}
.cc-body p{font-size:.86rem;color:var(--cream-dim);line-height:1.55;flex:1}
.cc-meta{font-size:.76rem;color:var(--cream-dim);margin-top:14px}
.cc-meta .dot{margin:0 6px}
.cc-foot{margin-top:16px;padding-top:14px;border-top:1px solid var(--line-d);color:var(--teal-2);font-size:.74rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;text-align:center}
@media(max-width:1040px){.cc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.cc-grid{grid-template-columns:1fr}.search-field.wide .field{width:100%}}

/* ===== Manage courses (stat cards + table) ===== */
.stat-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:26px}
.stat-card{display:flex;gap:16px;align-items:center;background:linear-gradient(180deg,#161310,#100f0d);border:1px solid var(--line-d);border-radius:12px;padding:22px 24px}
.stat-ico{width:52px;height:52px;border-radius:50%;border:1px solid rgba(201,162,74,.45);color:var(--gold);display:flex;align-items:center;justify-content:center;font-size:1.3rem;flex:none}
.stat-label{font-size:.66rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:4px}
.stat-num{font-family:var(--serif);font-weight:700;font-size:2.2rem;color:var(--cream);line-height:1}
.stat-sub{font-size:.76rem;color:var(--cream-dim);margin-top:4px}
.course-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:22px}
.course-filters .search-field{flex:1;min-width:220px}
.course-filters .field{margin:0;width:auto;padding:10px 14px;font-size:.85rem}
.course-filters .search-field .field{width:100%}
.courses-table td{vertical-align:middle}
.psku.desc{white-space:normal;max-width:280px;line-height:1.4;text-transform:none;letter-spacing:normal}
.instructor-cell{display:flex;align-items:center;gap:9px;color:var(--cream);font-size:.85rem}
.avatar{width:30px;height:30px;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;flex:none}
.pill.pub{color:var(--teal-2);border-color:rgba(53,144,137,.55);background:rgba(44,120,115,.14)}
.pill.draft{color:var(--gold-2);border-color:rgba(201,162,74,.5);background:rgba(201,162,74,.1)}
.updated-cell{font-size:.82rem;color:var(--cream);line-height:1.4}
.btn-teal.tiny,.btn.tiny{padding:6px 12px;font-size:.74rem}
@media(max-width:1100px){.stat-cards{grid-template-columns:1fr 1fr}}

/* --- Admin traffic dashboard --- */
.traffic-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:26px}
.traffic-card{background:linear-gradient(180deg,#161310,#100f0d);border:1px solid var(--line-d);border-radius:12px;padding:18px}
.traffic-card .stat-k{font-size:.62rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin-bottom:8px}
.traffic-card .stat-v{font-family:var(--serif);font-weight:700;font-size:1.9rem;color:var(--cream);line-height:1}
@media(max-width:1100px){.traffic-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.traffic-cards{grid-template-columns:1fr 1fr}}
.admin-panel{background:linear-gradient(180deg,#141210,#100f0d);border:1px solid var(--line-d);border-radius:12px;padding:22px 24px;margin-bottom:24px}
.admin-sub{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:16px}
.traffic-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:900px){.traffic-grid{grid-template-columns:1fr}}
.mini-chart{display:flex;align-items:flex-end;gap:6px;height:150px}
.mini-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}
.mini-bar-fill{width:100%;min-height:2px;background:linear-gradient(180deg,var(--gold),var(--gold-2));border-radius:3px 3px 0 0;transition:height .3s}
.mini-bar-x{font-size:.62rem;color:var(--cream-dim);margin-top:6px}
.data-table{width:100%;border-collapse:collapse;font-size:.85rem}
.data-table th{text-align:left;font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cream-dim);padding:6px 8px;border-bottom:1px solid var(--line-d)}
.data-table td{padding:8px;border-bottom:1px solid rgba(255,255,255,.05);vertical-align:top}
.data-table td a{color:var(--cream)}.data-table td a:hover{color:var(--gold)}
.data-table .num{text-align:right;font-variant-numeric:tabular-nums}
.data-table .nowrap{white-space:nowrap}
.data-table .trunc{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.data-table .ref{font-size:.78rem}
/* Scrollable table container with a sticky header — used for long lists (Recent visitors). */
.table-scroll{max-height:420px;overflow:auto;border:1px solid var(--line-d);border-radius:8px}
.table-scroll .data-table th{position:sticky;top:0;background:#141210;z-index:1}
.pill-member{color:var(--teal-2);border-color:rgba(53,144,137,.55);background:rgba(44,120,115,.14)}

/* ===================== BACK OFFICE (AdminLayout) ===================== */
/* Public-nav additions for staff */
.nav-backoffice{font-size:.82rem;color:var(--gold-2);border:1px solid rgba(201,162,74,.5);border-radius:20px;padding:6px 14px}
.nav-backoffice:hover{background:rgba(201,162,74,.12);color:var(--gold)}
.nav-signout{background:none;border:none;color:var(--cream-dim);font-size:.82rem;cursor:pointer;padding:6px 4px}
.nav-signout:hover{color:var(--gold)}

.ab{display:grid;grid-template-columns:250px 1fr;min-height:100vh;background:#100f0d;color:var(--cream)}
.ab-side{background:#0b0a09;border-right:1px solid var(--line-d);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto}
.ab-brand{display:flex;align-items:center;gap:12px;padding:20px 20px 16px;border-bottom:1px solid var(--line-d)}
.ab-brand-mark{width:38px;height:38px;flex:none;border-radius:8px;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#1a1508;display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-weight:800;font-size:1.2rem}
.ab-brand-name{display:flex;flex-direction:column;font-family:var(--serif);font-weight:700;letter-spacing:.08em;line-height:1.1}
.ab-brand-name small{font-family:var(--sans,inherit);font-size:.6rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--cream-dim)}
.ab-nav{padding:10px 10px 30px;display:flex;flex-direction:column;gap:1px}
.ab-group{font-size:.6rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-2);opacity:.75;padding:16px 12px 6px}
.ab-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:7px;font-size:.87rem;color:var(--cream-dim);border-left:2px solid transparent}
.ab-item:hover{background:rgba(255,255,255,.04);color:var(--cream)}
.ab-item.active{background:rgba(201,162,74,.12);color:var(--gold);border-left-color:var(--gold)}
.ab-ico{width:18px;text-align:center;opacity:.85;font-size:.9rem}
.ab-soon{color:var(--cream-dim);opacity:.45;cursor:default;justify-content:space-between}
.ab-soon:hover{background:none;color:var(--cream-dim)}
.ab-soon em{font-style:normal;font-size:.56rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;border:1px solid var(--line-d);border-radius:4px;padding:1px 5px;opacity:.7}

.ab-main{display:flex;flex-direction:column;min-width:0}
.ab-top{display:flex;align-items:center;gap:20px;padding:12px 26px;border-bottom:1px solid var(--line-d);background:#0d0c0b;position:sticky;top:0;z-index:10}
.ab-search{display:flex;align-items:center;gap:8px;flex:1;max-width:420px;background:#151310;border:1px solid var(--line-d);border-radius:8px;padding:8px 12px;color:var(--cream-dim)}
.ab-search input{background:none;border:none;outline:none;color:var(--cream);width:100%;font-size:.86rem}
.ab-top-right{display:flex;align-items:center;gap:18px;margin-left:auto}
.ab-viewsite{font-size:.82rem;color:var(--cream-dim)}.ab-viewsite:hover{color:var(--gold)}
.ab-user{font-size:.85rem;color:var(--cream)}
.ab-logout button{background:none;border:1px solid var(--line-d);color:var(--cream-dim);border-radius:7px;padding:6px 12px;font-size:.8rem;cursor:pointer}
.ab-logout button:hover{border-color:var(--gold);color:var(--gold)}
.ab-body{padding:28px 32px;max-width:1180px;width:100%}

/* Dashboard */
.ab-head h1{font-family:var(--serif);font-weight:700;font-size:1.9rem;margin:0}
.ab-sub{color:var(--cream-dim);font-size:.9rem;margin-top:4px}
.ab-muted{color:var(--cream-dim)}
.ab-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:24px 0}
.ab-kpi{background:#161310;border:1px solid var(--line-d);border-radius:12px;padding:18px}
.ab-kpi.warn{border-color:rgba(201,162,74,.5);background:rgba(201,162,74,.07)}
.ab-kpi-v{font-family:var(--serif);font-weight:700;font-size:1.7rem;line-height:1;color:var(--cream)}
.ab-kpi-k{font-size:.68rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--cream-dim);margin-top:8px}
@media(max-width:1100px){.ab-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.ab-kpis{grid-template-columns:1fr 1fr}}
.ab-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media(max-width:900px){.ab-cols{grid-template-columns:1fr}}
.ab-panel{background:#141210;border:1px solid var(--line-d);border-radius:12px;padding:20px 22px;margin-bottom:20px}
.ab-panel h3{font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin:0 0 14px}
.ab-clear{color:var(--teal-2);font-size:.9rem}
.ab-attention{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.ab-attention a{display:flex;align-items:center;gap:10px;color:var(--cream);font-size:.9rem}
.ab-attention a:hover{color:var(--gold)}
.ab-badge{min-width:24px;height:24px;padding:0 7px;border-radius:12px;background:rgba(201,162,74,.16);border:1px solid rgba(201,162,74,.5);color:var(--gold);font-size:.78rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.ab-pipe{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}
.ab-pipe li{display:grid;grid-template-columns:80px 1fr 40px;align-items:center;gap:12px}
.ab-pipe-l{font-size:.82rem;color:var(--cream-dim)}
.ab-pipe-bar{height:8px;background:rgba(255,255,255,.05);border-radius:4px;overflow:hidden}
.ab-pipe-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--gold-2));border-radius:4px}
.ab-pipe-n{text-align:right;font-variant-numeric:tabular-nums;font-weight:700;color:var(--cream)}
.ab-activity{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}
.ab-activity li{display:grid;grid-template-columns:120px 24px 1fr;align-items:baseline;gap:10px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:.88rem}
.ab-act-t{color:var(--cream-dim);font-size:.78rem;white-space:nowrap}
.ab-act-x{color:var(--cream)}
@media(max-width:760px){.ab{grid-template-columns:1fr}.ab-side{position:static;height:auto}.ab-body{padding:20px}}

/* ===== Business editor + directory list ===== */
.biz-edit{padding-top:24px;padding-bottom:72px}
.biz-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;align-items:start}
.biz-col{display:flex;flex-direction:column;gap:22px}
.char-count{text-align:right;font-size:.72rem;color:var(--cream-dim);margin-top:4px}
.hours-social{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.hours-grid{display:flex;flex-direction:column;gap:7px}
.hours-row{display:flex;align-items:center;gap:7px}
.hours-day{width:34px;color:var(--cream-dim);text-transform:uppercase;font-size:.68rem;font-weight:700}
.hours-row .tiny-input{width:62px;margin:0}
.hours-dash{color:var(--cream-dim)}
.hours-closed{display:flex;align-items:center;gap:5px;font-size:.7rem;color:var(--cream-dim);text-transform:none;letter-spacing:normal;font-weight:400;margin:0;white-space:nowrap}
.social-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.social-ico{width:30px;height:30px;border-radius:6px;background:var(--black-2);border:1px solid var(--line-d);display:flex;align-items:center;justify-content:center;color:var(--gold);flex:none;font-size:.85rem}
.social-row .field{margin:0}
.logo-row{display:flex;gap:14px;align-items:stretch}
.logo-drop{flex:1;position:relative;border:1.5px dashed rgba(201,162,74,.4);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px;color:var(--cream-dim);font-size:.82rem;cursor:pointer;line-height:1.5}
.logo-drop:hover{border-color:var(--gold)}
.logo-preview{width:150px;border-radius:10px;border:1px solid var(--line-d);position:relative;min-height:120px;overflow:hidden;background:var(--black-2)}
.logo-preview img{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);object-fit:contain}
.logo-remove{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);z-index:2;background:rgba(0,0,0,.6);padding:2px 9px;border-radius:4px}
.pub-row{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid var(--line-d)}
.pub-row:last-child{border-bottom:none}
.pub-row>span:first-child{font-size:.72rem;color:var(--cream-dim);text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.star-btn{background:none;border:none;color:var(--gold);font-size:1.1rem;cursor:pointer}
.star-btn:not(.on){color:var(--cream-dim)}
.danger-out{color:#e08a7a;border-color:rgba(224,138,122,.4)}
.actions-cell .tiny{padding:6px 11px}
@media(max-width:1000px){.biz-grid{grid-template-columns:1fr}.hours-social{grid-template-columns:1fr}}

/* ===== Article reader (entitlement) ===== */
.standfirst{font-family:var(--serif);font-size:1.34rem;line-height:1.55;color:var(--cream-dim);margin:2px 0 20px;max-width:60ch}
.reader-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.reader-tools.end{justify-content:flex-end}
.reading-toggle{background:rgba(236,228,212,.06);border:1px solid var(--line-d);color:var(--cream-dim);
  font-family:var(--sans);font-size:.8rem;font-weight:600;padding:7px 14px;border-radius:20px;cursor:pointer;
  display:inline-flex;align-items:center;gap:7px;transition:border-color .2s,color .2s}
.reading-toggle:hover{border-color:var(--gold);color:var(--gold)}
/* Long-form reading: a warm, high-legibility serif measure for the article body. */
.article-content{max-width:68ch;margin-inline:auto;
  font-family:'Source Serif 4',Georgia,'Times New Roman',serif;
  font-size:1.2rem;line-height:1.78;color:rgba(236,228,212,.9);letter-spacing:.003em}
.article-content > p:first-of-type{margin-top:2px}
.article-content p{margin:0 0 1.35em}
.article-content h2{font-family:var(--serif);font-weight:700;font-size:1.72rem;line-height:1.2;margin:1.9em 0 .5em;color:var(--cream);text-wrap:balance}
.article-content h3{font-family:var(--serif);font-weight:600;font-size:1.36rem;line-height:1.25;margin:1.6em 0 .4em;color:var(--cream);text-wrap:balance}
.article-content strong{color:var(--cream);font-weight:700}
.article-content em{font-style:italic}
.article-content ul,.article-content ol{margin:0 0 1.35em;padding-left:1.5em}
.article-content li{margin-bottom:.55em}
.article-content a{color:var(--gold-2);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.article-content blockquote{border-left:3px solid var(--gold);padding:4px 0 4px 22px;margin:1.7em 0;
  font-family:var(--serif);font-style:italic;font-size:1.24rem;line-height:1.5;color:var(--cream)}
.article-content img{max-width:100%;border-radius:8px;margin:1.3em 0}
.article-content hr{border:none;border-top:1px solid var(--line-d);margin:2.2em 0}
.membership-paywall{max-width:760px;margin:30px auto 0;text-align:center;border:1px solid rgba(201,162,74,.35);border-radius:10px;padding:40px 30px;background:linear-gradient(180deg,var(--black-2),#0d0c0b)}
.membership-paywall__label{font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.membership-paywall h3{font-family:var(--serif);font-size:1.7rem;margin:12px 0}
.membership-paywall p{color:var(--cream-dim);margin-bottom:14px;max-width:460px;margin-inline:auto}
.membership-paywall strong{display:block;color:var(--cream);margin-bottom:22px}
.membership-paywall__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn-ghost{background:transparent;border-color:transparent;color:var(--cream-dim)}
.btn-ghost:hover{color:var(--gold)}
/* Entitled member's entry point to the full research paper (abstract page). */
.research-access{max-width:760px;margin:30px auto 0;text-align:center;border-radius:10px;padding:34px 30px}
.research-access--open{border:1px solid rgba(44,120,115,.5);background:linear-gradient(180deg,rgba(44,120,115,.14),#0d0c0b)}
.research-access__label{font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.research-access--open h3{font-family:var(--serif);font-size:1.6rem;margin:12px 0}
.research-access--open p{color:var(--cream-dim);margin-bottom:20px;max-width:460px;margin-inline:auto}
.research-access__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.reader-back{display:inline-block;font-size:.85rem;color:var(--cream-dim)}
.reader-back:hover{color:var(--gold)}

/* ---- Light reading mode (article pages only; toggled via data-reading on <html>). ----
   Scoped under .reader, which exists only on the article pages, so the persisted attribute
   is inert everywhere else. The dark nav/footer stay; the reading area turns to paper. */
[data-reading="light"] main:has(.reader){background:#F3EEE2}
[data-reading="light"] .reader .kicker{color:#8a6d2f}
[data-reading="light"] .reader h1{color:#1A1813}
[data-reading="light"] .reader .byline{color:#6B6356}
[data-reading="light"] .reader .standfirst{color:#514a3c}
[data-reading="light"] .reader-back{color:#6B6356}
[data-reading="light"] .reader-back:hover{color:#8a6d2f}
[data-reading="light"] .reader-cover{border-color:var(--line-l)}
[data-reading="light"] .reading-toggle{background:rgba(26,24,19,.05);border-color:var(--line-l);color:#6B6356}
[data-reading="light"] .reading-toggle:hover{border-color:#8a6d2f;color:#8a6d2f}
[data-reading="light"] .article-content{color:#2a251d}
[data-reading="light"] .article-content h2,
[data-reading="light"] .article-content h3,
[data-reading="light"] .article-content strong{color:#1A1813}
[data-reading="light"] .article-content a{color:#8a6d2f}
[data-reading="light"] .article-content blockquote{color:#33302a}
[data-reading="light"] .article-content hr{border-top-color:var(--line-l)}

/* ---- Reader highlights ---- */
.article-content mark.hl{background:rgba(201,162,74,.34);color:inherit;border-radius:2px;padding:.04em 0;box-decoration-break:clone;-webkit-box-decoration-break:clone}
[data-reading="light"] .article-content mark.hl{background:rgba(201,162,74,.5)}
.hl-add{position:absolute;z-index:60;display:none;background:var(--gold);color:#1c1407;border:none;border-radius:9px;
  font-family:var(--sans);font-size:.78rem;font-weight:700;padding:8px 14px;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.55)}
.hl-add:hover{background:var(--gold-2)}
.hl-hint{max-width:68ch;margin:22px auto 0}
.hl-panel{max-width:68ch;margin:26px auto 0;border:1px solid var(--line-d);border-radius:12px;padding:18px 20px;background:var(--black-2)}
.hl-panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.hl-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.hl-list li{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;border-left:3px solid var(--gold);padding:5px 0 5px 12px}
.hl-quote{font-family:'Source Serif 4',Georgia,serif;font-size:.96rem;line-height:1.5;color:var(--cream)}
.hl-del{background:none;border:none;color:var(--cream-dim);cursor:pointer;font-size:.85rem;flex:none;padding:2px 4px;line-height:1}
.hl-del:hover{color:#e08a7a}
[data-reading="light"] .hl-panel{background:#efe9dc;border-color:var(--line-l)}
[data-reading="light"] .hl-quote{color:#2a251d}
[data-reading="light"] .hl-del{color:#6b6356}
/* Advert placement (non-members, free content only). */
.ad-slot{max-width:760px;margin:34px auto;text-align:center}
.ad-slot__label{display:block;font-size:.6rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--cream-dim);opacity:.6;margin-bottom:6px}
.ad-slot--placeholder .ad-placeholder{border:1px dashed var(--line-d);border-radius:8px;padding:26px 16px;color:var(--cream-dim);background:rgba(255,255,255,.02);font-size:.85rem}
.ad-placeholder small{opacity:.6}
/* Cookie-consent banner. */
.consent-banner{position:fixed;left:0;right:0;bottom:0;z-index:200;background:rgba(12,11,10,.97);border-top:1px solid rgba(201,162,74,.4);backdrop-filter:blur(10px);box-shadow:0 -8px 30px rgba(0,0,0,.5)}
.consent-inner{max-width:1200px;margin:0 auto;padding:16px 24px;display:flex;align-items:center;gap:26px}
.consent-copy strong{color:var(--cream);font-size:.95rem}
.consent-copy p{margin:4px 0 0;color:var(--cream-dim);font-size:.82rem;max-width:720px;line-height:1.5}
.consent-copy a{color:var(--gold)}
.consent-actions{display:flex;gap:10px;flex:none;margin-left:auto}
.consent-actions .btn{white-space:nowrap}
@media(max-width:720px){.consent-inner{flex-direction:column;align-items:stretch;gap:14px}.consent-actions{margin-left:0}.consent-actions .btn{flex:1}}

/* ===== About page — essay + slideshow ===== */
.about-page{max-width:1120px;padding-top:44px;padding-bottom:80px}
.about-page h1{font-family:var(--serif);font-size:clamp(2.1rem,4vw,2.9rem);margin:6px 0 4px;color:var(--cream);text-wrap:balance}
.about-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:48px;align-items:start;margin-top:22px}
.about-aside{position:sticky;top:100px}
.about-aside .slideshow{margin-top:0}
@media(max-width:860px){
  .about-layout{grid-template-columns:1fr;gap:0;margin-top:14px}
  .about-aside{position:static;order:-1;margin-bottom:22px}
}
.about-essay .standfirst{font-family:var(--serif);font-size:1.34rem;line-height:1.5;color:var(--cream);margin:6px 0 22px}
.about-body p{line-height:1.78;margin-bottom:16px;color:var(--cream-dim);font-size:1.02rem}
.about-essay h2{font-family:var(--serif);font-weight:600;font-size:1.55rem;color:var(--cream);margin:42px 0 14px;padding-top:24px;border-top:1px solid var(--line-d);text-wrap:balance}
.about-essay strong{color:var(--cream)}
.about-cta{margin-top:46px;padding:30px;border:1px solid rgba(201,162,74,.4);border-radius:12px;background:linear-gradient(180deg,var(--black-2),#0d0c0b);text-align:center}
.about-cta h3{font-family:var(--serif);font-weight:600;font-size:1.4rem;color:var(--cream);margin-bottom:8px}
.about-cta p{color:var(--cream-dim);margin-bottom:18px}
/* Slideshow */
.slideshow{margin:22px 0 10px;border:1px solid var(--line-d);border-radius:12px;overflow:hidden;background:#0c0b0a}
.slideshow .slides{position:relative;width:100%;aspect-ratio:4/3;background:radial-gradient(circle at 50% 38%,#151210,#0a0908)}
.slideshow .slide{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .8s ease}
.slideshow .slide.on{opacity:1}
.slideshow figcaption{padding:12px 18px;font-size:.84rem;line-height:1.45;color:var(--cream-dim);text-align:center;border-top:1px solid var(--line-d)}
.slide-dots{display:flex;justify-content:center;gap:9px;padding:0 0 15px}
.slide-dot{width:9px;height:9px;border-radius:50%;border:1px solid var(--gold);background:transparent;cursor:pointer;padding:0;transition:background .2s}
.slide-dot.on,.slide-dot:hover{background:var(--gold)}
@media(prefers-reduced-motion:reduce){.slideshow .slide{transition:none}}

/* ===================== Home page (mockup look) ===================== */
/* Warm golden overlay over the hero video. */
.hero-warm{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(120% 95% at 76% 32%,rgba(224,168,74,.30),transparent 56%),
             linear-gradient(180deg,rgba(24,14,4,.18),rgba(9,7,4,.42))}

/* Dark "Subscription only" hero card. */
.sub-card{position:relative;width:344px;flex-shrink:0;text-align:center;
  /* Translucent — the hero video shows through (plain alpha compositing, no backdrop-filter so it renders identically across browsers). */
  background:linear-gradient(180deg,rgba(9,11,15,.38),rgba(9,11,15,.66));border:1px solid rgba(201,162,74,.6);
  border-radius:16px;padding:42px 34px 30px;box-shadow:0 30px 70px rgba(0,0,0,.5);text-shadow:0 1px 4px rgba(0,0,0,.6)}
.sub-lock{display:block;width:32px;height:32px;margin:0 auto 16px;color:var(--gold)}
.sub-lock svg{width:100%;height:100%}
.sub-eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin-bottom:14px}
.sub-card p{font-size:.96rem;line-height:1.6;color:var(--cream-dim);margin:0 auto 18px;max-width:26ch}
.sub-price{font-family:var(--serif);font-weight:700;font-size:3rem;line-height:1;color:var(--gold)}
.sub-per{font-size:.66rem;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:var(--gold-2);margin:6px 0 20px}
.sub-join{width:100%}
.sub-actions{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.sub-actions .btn{width:100%}
.sub-fine{font-size:.8rem;color:var(--cream-dim);margin-top:14px}
/* Hero stacks (card below copy) below ~980px so mid-size screens aren't cramped. */
@media(max-width:980px){.hero-in{flex-direction:column;align-items:flex-start;min-height:auto;gap:34px}.hero-copy{flex:0 0 auto}.sub-card{width:100%;max-width:420px}}

/* Feature-highlight row. */
.feature-row-wrap{background:var(--black);border-top:1px solid var(--line-d);border-bottom:1px solid var(--line-d)}
.feature-row{display:grid;grid-template-columns:repeat(5,1fr)}
.feature{padding:34px 22px;text-align:center;border-left:1px solid var(--line-d)}
.feature:first-child{border-left:0}
.feature-ico{display:block;width:34px;height:34px;margin:0 auto 14px;color:var(--gold)}
.feature-ico svg{width:100%;height:100%}
.feature h4{font-size:.76rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:8px}
.feature p{font-size:.85rem;line-height:1.5;color:var(--cream-dim);max-width:24ch;margin:0 auto}
@media(max-width:900px){.feature-row{grid-template-columns:1fr 1fr 1fr}.feature{border-top:1px solid var(--line-d)}.feature:nth-child(-n+3){border-top:0}.feature:nth-child(3n+1){border-left:0}}
@media(max-width:560px){.feature-row{grid-template-columns:1fr 1fr}.feature:nth-child(odd){border-left:0}}

/* 4-up Featured grid. */
.ed-grid.four{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.ed-grid.four{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.ed-grid.four{grid-template-columns:1fr}}

/* Members Get More band. */
.members-more{background:linear-gradient(180deg,#0c0b0a,#100e0b);border-top:1px solid var(--line-d);padding:60px 0}
.members-more-in{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:44px;align-items:center}
.members-more .label{color:var(--gold)}
.mm-list{list-style:none;padding:0;margin:16px 0 0;display:flex;flex-direction:column;gap:12px}
.mm-list li{position:relative;padding-left:30px;color:var(--cream);font-size:.94rem}
.mm-list li::before{content:"";position:absolute;left:0;top:1px;width:19px;height:19px;border:1px solid var(--gold);border-radius:4px}
.mm-list li::after{content:"";position:absolute;left:7px;top:4px;width:4px;height:9px;border:solid var(--gold);border-width:0 2px 2px 0;transform:rotate(45deg)}
.mm-cta{background:linear-gradient(180deg,#16544d,#0e332f);border:1px solid rgba(201,162,74,.4);border-radius:14px;padding:36px 30px;text-align:center}
.mm-lock{display:block;width:28px;height:28px;margin:0 auto 14px;color:var(--gold)}
.mm-lock svg{width:100%;height:100%}
.mm-cta h3{font-family:var(--serif);font-weight:600;font-size:1.5rem;line-height:1.25;color:#fff;margin-bottom:20px}
.mm-price{font-size:.7rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-top:14px}
.mm-love blockquote{font-family:var(--serif);font-style:italic;font-size:1.05rem;line-height:1.55;color:var(--cream);margin:16px 0 18px}
.mm-author{display:flex;align-items:center;gap:10px;font-size:.86rem;color:var(--cream-dim)}
.mm-avatar{width:36px;height:36px;flex:none;border-radius:50%;background:linear-gradient(135deg,#2C7873,#1c2a2a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:700}
.mm-dots{display:flex;gap:7px;margin-top:16px}
.mm-dots span{width:8px;height:8px;border-radius:50%;background:rgba(236,228,212,.25)}
.mm-dots span.on{background:var(--gold)}
@media(max-width:900px){.members-more-in{grid-template-columns:1fr;gap:32px}}

/* Explore Our Categories tiles. */
.cat-tiles{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.cat-tile{position:relative;aspect-ratio:3/4;border-radius:12px;overflow:hidden;border:1px solid var(--line-d);
  display:flex;align-items:flex-end;justify-content:center;padding:16px;box-shadow:0 6px 18px rgba(26,24,19,.16);
  transition:transform .25s,box-shadow .25s,border-color .25s}
.cat-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 34%,rgba(0,0,0,.62))}
.cat-tile:hover{transform:translateY(-6px);box-shadow:0 18px 36px rgba(26,24,19,.32);border-color:rgba(201,162,74,.6)}
.cat-tile-label{position:relative;z-index:1;font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.8)}
@media(max-width:900px){.cat-tiles{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.cat-tiles{grid-template-columns:1fr 1fr}}
/* Free vs members-only badge on story cards. */
.ed-img .access-tag{position:absolute;top:12px;right:12px;z-index:1;font-size:.6rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;padding:4px 9px;border-radius:100px;line-height:1}
.access-tag.members{background:rgba(201,162,74,.94);color:#181206}
.access-tag.free{background:rgba(44,120,115,.92);color:#fff}
.article-actions{max-width:760px;margin:36px auto 0;display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line-d);padding-top:24px}
.related-stories{max-width:760px;margin:44px auto 0}
.related-stories .label{color:var(--gold);margin-bottom:16px}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.related-card{display:block;background:var(--black-2);border:1px solid var(--line-d);border-radius:8px;padding:16px;color:var(--cream);text-decoration:none;transition:border-color .2s}
.related-card:hover{border-color:var(--gold)}
.related-cat{font-size:.64rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:6px}
.related-card h4{font-family:var(--serif);font-size:1.05rem;margin-bottom:6px}
.related-card p{font-size:.82rem;color:var(--cream-dim);line-height:1.4}
@media(max-width:680px){.related-grid{grid-template-columns:1fr}}
@media print{
  .nav,.site-footer,.article-actions,.related-stories,.membership-paywall,#blazor-error-ui{display:none!important}
  body,main{background:#fff;color:#000}
  .article-content,.standfirst,.reader h1,.reader .byline,.reader .kicker{color:#000}
  .article-content{max-width:100%}
}

@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto}}

/* ===================== SHOP & COURSES ===================== */
.shop, .course, .cart, .checkout, .lesson{padding-top:54px;padding-bottom:60px}
.member-flag{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
.nav-cart{font-size:1.15rem;text-decoration:none}

.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.product{background:var(--black-2);border:1px solid var(--line-d);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;transition:transform .25s,box-shadow .3s}
.product:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(0,0,0,.4)}
.product-img{height:190px;position:relative}
.product-img .prem{position:absolute;top:12px;left:12px;z-index:1;background:rgba(11,11,11,.82);color:var(--cream);
  font-size:.6rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:5px 9px;border-radius:3px}
.product-img .prem.preorder{background:var(--gold);color:#1c1407}
.product-body{padding:16px 18px 20px}
.product-body h3{font-family:var(--serif);font-size:1.2rem;color:var(--cream);margin-bottom:8px}
.lockpill{position:absolute;top:12px;right:12px;background:rgba(11,11,11,.8);color:var(--gold-2);font-size:.62rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:5px 9px;border-radius:2px}
.lessons-count{font-size:.75rem;color:var(--cream-dim)}
.course-card .product-body p{font-size:.85rem;margin-bottom:10px}

.price-row{display:flex;align-items:baseline;gap:10px}
.price-row.big{margin:10px 0 18px;font-size:1.1rem}
.price{font-weight:700;color:var(--gold-2);font-size:1.05rem}
.price-row.big .price{font-size:1.7rem}
.price-was{color:var(--cream-dim);text-decoration:line-through;font-size:.9rem}
.hint a{color:var(--gold-2);text-decoration:underline;font-size:.85rem}

.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:start}
.pd-img{height:420px;border-radius:8px;border:1px solid var(--line-d)}
.pd-info h1{font-family:var(--serif);font-size:2.2rem;margin-bottom:8px}
.pd-desc{color:rgba(236,228,212,.85);margin:12px 0 8px;line-height:1.7}
.field.qty{width:100px}

/* cart / checkout */
.cart-table td{vertical-align:middle}
.linkbtn{background:none;border:none;color:var(--gold-2);cursor:pointer;text-decoration:underline;font-size:.85rem}
.linkbtn:disabled{opacity:.35;cursor:default;text-decoration:none}
.linkbtn.danger{color:#e08a7a}
.row-actions{display:flex;gap:14px;align-items:center}
.cart-summary{margin-top:24px;max-width:360px;margin-left:auto;background:var(--black-2);border:1px solid var(--line-d);border-radius:8px;padding:22px}
.cart-summary > div{display:flex;justify-content:space-between;padding:6px 0;color:rgba(236,228,212,.9);font-size:.95rem}
.cart-summary .disc{color:#7fd1a0}
.cart-summary .total{border-top:1px solid var(--line-d);margin-top:8px;padding-top:12px;font-weight:700;font-size:1.15rem;color:var(--cream)}
.cart-summary .btn{width:100%;margin-top:16px}
.checkout .cart-summary{margin-left:0}

/* Basket (redesigned) */
.cart2{padding-top:40px;padding-bottom:70px}
.cart2-h1{font-family:var(--serif);font-weight:800;font-size:clamp(1.7rem,3vw,2.1rem);margin:8px 0 26px;color:var(--gold)}
.cart2-grid{display:grid;grid-template-columns:1fr 348px;gap:32px;align-items:start}
.cart2-items{display:flex;flex-direction:column;gap:14px}
.cart2-item{display:grid;grid-template-columns:88px 1fr auto;gap:16px;align-items:center;
  background:#1b1811;border:1px solid rgba(201,162,74,.32);border-radius:14px;padding:14px;box-shadow:0 6px 20px rgba(0,0,0,.35);transition:border-color .2s}
.cart2-item:hover{border-color:rgba(201,162,74,.65)}
.cart2-thumb{width:88px;height:88px;border-radius:10px;background-size:cover;background-position:center;display:block;flex:none;
  border:1px solid rgba(201,162,74,.42);background-color:#2a2519}
.cart2-info{min-width:0}
.cart2-title{font-family:var(--serif);font-weight:600;font-size:1.14rem;color:var(--cream);display:block;line-height:1.25}
.cart2-title:hover{color:var(--gold)}
.cart2-variant{display:inline-block;margin-top:6px;font-size:.74rem;letter-spacing:.04em;text-transform:uppercase;
  color:var(--gold-2);border:1px solid rgba(201,162,74,.38);border-radius:20px;padding:2px 10px}
.cart2-unit{font-size:.85rem;color:var(--cream-dim);margin-top:8px}
.cart2-remove{background:none;border:none;color:#e08a7a;font-size:.8rem;cursor:pointer;padding:8px 0 0}
.cart2-remove:hover{text-decoration:underline}
.cart2-controls{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.cart2-line{font-family:var(--serif);font-weight:700;font-size:1.18rem;color:var(--gold)}
.cart2 .qty-stepper{border-color:rgba(201,162,74,.4)}
.cart2 .qty-stepper button:hover:not(:disabled){color:var(--gold)}

.cart2-summary{position:sticky;top:96px;background:linear-gradient(180deg,#241d10,#181510);
  border:1px solid var(--gold);border-radius:16px;padding:24px;box-shadow:0 16px 44px rgba(0,0,0,.5)}
.cart2-summary h3{font-family:var(--serif);font-weight:700;font-size:1.3rem;margin:0 0 14px;padding-bottom:12px;
  border-bottom:1px solid rgba(201,162,74,.3);color:var(--gold)}
.cart2-summary .row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:.95rem;color:rgba(236,228,212,.9)}
.cart2-summary .disc{color:#7fd1a0}
.cart2-summary .total{border-top:1px solid rgba(201,162,74,.3);margin-top:8px;padding-top:14px;font-weight:700;font-size:1.3rem;color:var(--gold)}
.cart2-upsell{margin-top:14px;padding:12px 14px;border:1px solid rgba(201,162,74,.4);background:rgba(201,162,74,.08);
  border-radius:10px;font-size:.84rem;color:var(--cream);line-height:1.5}
.cart2-upsell a{color:var(--gold-2);font-weight:600}
.cart2-checkout{width:100%;margin-top:18px}
.cart2-continue{display:block;text-align:center;margin-top:14px;font-size:.86rem;color:var(--cream-dim)}
.cart2-continue:hover{color:var(--gold)}
.cart2-trust{text-align:center;margin-top:16px;font-size:.76rem;color:var(--cream-dim)}

.cart2-empty{text-align:center;padding:64px 20px;background:#1b1811;border:1px solid rgba(201,162,74,.32);border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.cart2-empty-ico{font-size:3rem;opacity:.6}
.cart2-empty h2{font-family:var(--serif);font-weight:700;margin:14px 0 6px;color:var(--gold)}
.cart2-empty .btn{margin-top:20px}

@media(max-width:860px){.cart2-grid{grid-template-columns:1fr}.cart2-summary{position:static}}
@media(max-width:520px){
  .cart2-item{grid-template-columns:72px 1fr;grid-template-areas:"thumb info" "controls controls";gap:12px 14px}
  .cart2-thumb{grid-area:thumb;width:72px;height:72px}
  .cart2-info{grid-area:info}
  .cart2-controls{grid-area:controls;flex-direction:row;justify-content:space-between;align-items:center;
    border-top:1px solid var(--line-d);padding-top:12px}
}

/* courses */
.course .lead,.intro{color:rgba(236,228,212,.85);font-size:1.05rem;margin:8px 0 22px;max-width:640px}
.progress-wrap{height:8px;background:var(--black-2);border:1px solid var(--line-d);border-radius:20px;overflow:hidden;margin:10px 0 6px;max-width:420px}
.progress-bar{height:100%;background:var(--teal-2);transition:width .3s}
.lesson-list{list-style:none;margin-top:24px;border-top:1px solid var(--line-d)}
.lesson-list li{border-bottom:1px solid var(--line-d)}
.lesson-list li a,.lesson-list li .locked-lesson{display:flex;align-items:center;gap:12px;padding:15px 4px;color:var(--cream);font-size:1.02rem}
.lesson-list li a:hover{color:var(--gold)}
.lesson-list .tick{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border:1px solid var(--line-d);border-radius:50%;font-size:.8rem;color:var(--gold-2)}
.locked-lesson{color:var(--cream-dim)!important;cursor:default}

/* lesson / video */
.lesson h1{font-family:var(--serif);font-size:2rem;margin:8px 0 18px}
.video-embed{position:relative;padding-top:56.25%;border-radius:8px;overflow:hidden;border:1px solid var(--line-d);margin-bottom:24px}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%}
.video-placeholder{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;background:var(--black-2);border:1px dashed var(--line-d);border-radius:8px;color:var(--cream-dim);margin-bottom:24px}
/* In-admin Cloudflare Stream upload (lesson editor). */
.vid-upload{display:flex;flex-direction:column;gap:10px;margin-bottom:6px}
.vid-current{color:#7fd1a0;font-size:.9rem}
.vid-upload-row{display:flex;align-items:center;gap:12px}
.vid-progress{flex:1;height:22px;border-radius:6px;background:var(--black-2);border:1px solid var(--line-d);overflow:hidden;display:none}
.vid-progress.on{display:block}
.vid-bar{display:flex;align-items:center;justify-content:center;height:100%;width:0;min-width:34px;background:linear-gradient(90deg,var(--gold),var(--gold-2));color:#1c1407;font-size:.72rem;font-weight:700;transition:width .2s ease}
.vid-manual{margin-top:8px}
.vid-manual summary{cursor:pointer}
.vid-manual .field{margin-top:8px}

/* ---- Lesson editor (redesigned, two-column) ---- */
.lesson-editor{max-width:1180px;margin:0 auto;padding:26px 20px 40px}
.le-top{display:flex;flex-direction:column;gap:6px;margin-bottom:18px}
.le-back{color:var(--gold-2);font-size:.9rem;text-decoration:none}
.le-back:hover{text-decoration:underline}
.le-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.le-title-row h1{font-family:var(--serif);font-size:2rem;margin:0;color:var(--cream)}
.le-pill{display:inline-flex;align-items:center;gap:7px;font-size:.78rem;padding:4px 12px;border-radius:999px;border:1px solid var(--line-d);color:var(--cream-dim);background:var(--black-2)}
.le-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--gold)}
.le-sub{color:var(--cream-dim);font-size:.92rem}
.le-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.le-main{min-width:0}
.le-card{background:var(--black-2);border:1px solid var(--line-d);border-radius:14px;padding:20px;margin-bottom:18px}
.le-label{font-weight:600;color:var(--cream);display:block;margin-bottom:3px}
.le-hint{color:var(--cream-dim);font-size:.86rem;margin:0 0 12px}
.le-card .field{margin:0}
/* segmented toggle */
.seg{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.seg-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:10px;border:1px solid var(--line-d);background:transparent;color:var(--cream-dim);cursor:pointer;font-size:.92rem}
.seg-btn:hover{color:var(--cream)}
.seg-btn.on{border-color:var(--gold);color:var(--cream);background:rgba(201,162,74,.08)}
/* dropzone */
.lz-drop{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:34px 22px;border:1.5px dashed var(--line-d);border-radius:12px;cursor:pointer;transition:border-color .15s,background .15s}
.lz-drop:hover,.lz-drop.drag{border-color:var(--gold);background:rgba(201,162,74,.05)}
.lz-ico{font-size:1.7rem;color:var(--gold-2)}
.lz-title{font-weight:600;color:var(--cream)}
.lz-sub{color:var(--cream-dim);font-size:.9rem}
.lz-note{color:var(--cream-dim);font-size:.82rem;max-width:460px;line-height:1.5}
.lz-choose{margin-top:8px;pointer-events:none}
.lz-info{margin-top:12px;padding:10px 14px;border-radius:8px;background:rgba(255,255,255,.03);border:1px solid var(--line-d);color:var(--cream-dim);font-size:.82rem}
.lz-progress{margin-top:12px;height:22px;border-radius:6px;background:#000;border:1px solid var(--line-d);overflow:hidden;display:none}
.lz-progress.on{display:block}
.lz-bar{display:flex;align-items:center;justify-content:center;height:100%;width:0;min-width:34px;background:linear-gradient(90deg,var(--gold),var(--gold-2));color:#1c1407;font-weight:700;font-size:.72rem;transition:width .2s}
/* markdown editor extras */
.md-select{background:var(--black-2);border:1px solid var(--line-d);color:var(--cream-dim);border-radius:6px;padding:5px 8px;font-size:.85rem}
.md-tb-spacer{flex:1}
.le-body-foot{display:flex;justify-content:space-between;align-items:center;color:var(--cream-dim);font-size:.8rem;margin-top:8px}
/* sidebar */
.le-side{min-width:0}
.le-side-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:var(--cream);font-weight:600}
.le-side-head a{text-decoration:none}
.le-preview-video{aspect-ratio:16/9;border-radius:8px;overflow:hidden;border:1px solid var(--line-d);margin-bottom:14px;background:#000;display:flex;align-items:center;justify-content:center}
.le-preview-video iframe{width:100%;height:100%;border:0}
.le-preview-play{width:56px;height:56px;border-radius:50%;border:2px solid rgba(255,255,255,.5);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.1rem}
.le-preview h3{font-family:var(--serif);margin:0 0 10px;color:var(--cream)}
.le-help-item{display:flex;gap:10px;margin-bottom:14px}
.le-help-item:last-child{margin-bottom:0}
.le-help-item .ico{flex:0 0 auto}
.le-help-item h4{margin:0 0 2px;font-size:.9rem;color:var(--cream)}
.le-help-item p{margin:0;color:var(--cream-dim);font-size:.83rem;line-height:1.5}
/* sticky save bar */
.le-foot{position:sticky;bottom:0;display:flex;align-items:center;gap:12px;padding:14px 0;margin-top:6px;background:linear-gradient(to top,var(--black-1,#0d0c0b) 70%,transparent);border-top:1px solid var(--line-d)}
.le-foot .spacer{flex:1}
.le-foot .note{color:var(--cream-dim);font-size:.82rem}
@media (max-width:900px){.le-grid{grid-template-columns:1fr}.lesson-editor{padding:20px 14px 40px}}

/* ===== Membership / Join page ===== */
.join{position:relative;max-width:1120px;margin:0 auto;padding:40px 20px 60px;overflow:hidden}
.join-head{text-align:center;max-width:720px;margin:0 auto}
.join-kicker{color:var(--gold);text-transform:uppercase;letter-spacing:.28em;font-size:.78rem;font-weight:700;margin-bottom:12px}
.join-head h1{font-family:var(--serif);font-size:clamp(2.1rem,4.4vw,3.1rem);line-height:1.08;margin:0 0 14px;color:var(--cream)}
.join-head h1 .g{color:var(--gold)}
.join-sub{color:var(--cream-dim);font-size:1.02rem;line-height:1.6;margin:0 auto;max-width:620px}
.join-status{max-width:600px;margin:16px auto 0;padding:12px 16px;border-radius:8px;background:var(--black-2);border:1px solid var(--line-d);color:var(--cream);font-size:.92rem;text-align:center}
.join-status.good{border-color:rgba(127,209,160,.4);background:rgba(127,209,160,.08)}
/* billing toggle */
.join-toggle{display:flex;align-items:center;gap:4px;width:max-content;margin:26px auto 30px;padding:5px;border:1px solid var(--line-d);border-radius:999px;background:var(--black-2)}
.jt-btn{border:none;background:none;color:var(--cream-dim);padding:9px 22px;border-radius:999px;cursor:pointer;font-weight:600;font-size:.92rem}
.jt-btn.on{background:var(--gold);color:#1c1407}
.jt-save{color:#7fd1a0;font-weight:600;font-size:.84rem;padding:0 14px 0 6px;white-space:nowrap}
/* cards */
.join-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px;max-width:900px;margin:0 auto}
.join-card{position:relative;background:linear-gradient(180deg,rgba(22,28,26,.55),rgba(13,12,11,.55));border:1px solid var(--line-d);border-radius:18px;padding:30px 28px;display:flex;flex-direction:column}
.join-card.partner{border-color:rgba(201,162,74,.55);box-shadow:0 0 0 1px rgba(201,162,74,.12),0 24px 60px -34px rgba(201,162,74,.4)}
.join-badge{position:absolute;top:-13px;right:22px;background:var(--gold);color:#1c1407;font-size:.74rem;font-weight:700;padding:5px 14px;border-radius:999px}
.join-card-icon{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;margin-bottom:16px;border:1px solid}
.join-card-icon.member{background:rgba(58,157,140,.12);border-color:rgba(58,157,140,.5)}
.join-card-icon.partner{background:rgba(201,162,74,.12);border-color:rgba(201,162,74,.5)}
.join-card h2{font-family:var(--serif);font-size:1.7rem;margin:0 0 5px;color:var(--cream)}
.join-tagline{text-transform:uppercase;letter-spacing:.15em;font-size:.72rem;color:var(--cream-dim);margin-bottom:18px}
.join-price{font-family:var(--serif);font-size:3rem;font-weight:700;color:var(--gold);line-height:1}
.join-price .per{font-family:var(--sans);font-size:1rem;font-weight:500;color:var(--cream-dim);margin-left:4px}
.join-annual{font-size:.9rem;color:var(--cream-dim);margin-top:8px}
.join-annual .save{color:#7fd1a0;font-weight:600}
.join-desc{color:var(--cream-dim);font-size:.92rem;line-height:1.6;margin:18px 0;padding-top:18px;border-top:1px solid var(--line-d)}
.join-incl{color:var(--gold);font-weight:600;font-size:.92rem;margin:0 0 8px;padding-top:14px;border-top:1px solid var(--line-d)}
.join-list{list-style:none;padding:0;margin:0 0 22px}
.join-list li{position:relative;padding:7px 0 7px 30px;font-size:.92rem;color:var(--cream);line-height:1.4}
.join-list li::before{content:"✓";position:absolute;left:0;top:6px;width:19px;height:19px;border-radius:50%;background:rgba(201,162,74,.15);color:var(--gold);font-size:.66rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.join-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:auto;background:linear-gradient(90deg,var(--gold),var(--gold-2));color:#1c1407;border:none;border-radius:10px;padding:15px;font-weight:700;font-size:.98rem;cursor:pointer;text-decoration:none}
.join-cta:hover{filter:brightness(1.06)}
.join-cta:disabled{opacity:.6;cursor:not-allowed}
.join-current{margin-top:auto;text-align:center;padding:14px;border-radius:10px;background:rgba(127,209,160,.1);border:1px solid rgba(127,209,160,.4);color:var(--cream);font-weight:600}
.join-foot{text-align:center;color:var(--cream-dim);font-size:.82rem;margin:12px 0 0}
.join-foot a{color:var(--gold-2)}
/* trust row */
.join-trust{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:24px;max-width:1000px;margin:46px auto 0;padding-top:34px;border-top:1px solid var(--line-d)}
.jt-item{display:flex;gap:12px;align-items:flex-start}
.jt-ico{font-size:1.3rem;flex:0 0 auto;line-height:1.2}
.jt-item h4{margin:0 0 3px;font-size:.95rem;color:var(--cream)}
.jt-item p{margin:0;color:var(--cream-dim);font-size:.85rem;line-height:1.5}
.join-secure{text-align:center;color:var(--cream-dim);font-size:.84rem;margin:34px auto 0}
/* decorative side labels */
.join-flourish{position:absolute;top:170px;display:flex;flex-direction:column;gap:3px;text-transform:uppercase;letter-spacing:.24em;font-size:.6rem;line-height:1.5;color:var(--cream-dim);opacity:.45}
.join-flourish.left{left:16px;text-align:left}
.join-flourish.right{right:16px;text-align:right}
@media (max-width:1200px){.join-flourish{display:none}}
.lesson-actions{margin-top:28px}
.draft-banner{background:rgba(201,162,74,.12);border:1px solid rgba(201,162,74,.4);color:var(--cream);padding:12px 16px;border-radius:8px;margin:0 0 18px;font-size:.9rem}
.course-cover{width:100%;aspect-ratio:16/9;max-height:320px;border-radius:14px;background-size:cover;background-position:center;border:1px solid var(--line-d);margin-bottom:20px}
.course-meta{display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;color:var(--cream-dim);font-size:.9rem}
.course-meta span{display:inline-flex;align-items:center;gap:6px}
.status.s-Paid{color:#7fd1a0;border-color:#2f6f4f}
.status.s-Pending{color:var(--gold-2);border-color:rgba(201,162,74,.5)}
.status.s-Shipped{color:#8fb8e0;border-color:#345a7a}
.status.s-Cancelled,.status.s-Refunded{color:#e08a7a;border-color:#7a3a30}

@media(max-width:1040px){.product-grid{grid-template-columns:repeat(2,1fr)}.product-detail{grid-template-columns:1fr}.pd-img{height:300px}}
@media(max-width:680px){.product-grid{grid-template-columns:1fr}}

/* --- Identity pages (login / register / manage) themed to the site --- */
.auth-page{padding:48px 28px 80px}
.auth-page h1{font-family:var(--serif);font-weight:700;font-size:2.1rem;margin:6px 0 4px}
.auth-page h2,.auth-page h3{font-family:var(--serif);font-weight:500;font-size:1.15rem;color:var(--cream-dim);margin:8px 0 16px}
.auth-page hr{border:none;border-top:1px solid var(--line-d);margin:18px 0}
.auth-page a{color:var(--gold-2);text-decoration:underline}
.auth-page .row{display:block}
.auth-page .form-control{width:100%;background:var(--black-2);border:1px solid var(--line-d);color:var(--cream);
  padding:12px 14px;border-radius:5px;font-size:.95rem}
.auth-page .form-control:focus{outline:none;border-color:var(--gold);box-shadow:none}
/* Default Identity markup is <input> then <label> (floating). Stack label above the input. */
.auth-page .form-floating{display:flex;flex-direction:column-reverse;margin-bottom:16px}
.auth-page .form-floating > label{position:static;padding:0;height:auto;font-size:.78rem;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin:0 0 8px;pointer-events:auto}
.auth-page label{color:var(--gold);font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.auth-page .checkbox label,.auth-page .form-check-label{display:inline-flex;align-items:center;gap:8px;
  color:var(--cream-dim);text-transform:none;letter-spacing:normal;font-weight:400}
.auth-page .form-check{margin:10px 0}
.auth-page .btn-primary,.auth-page button[type=submit]{background:var(--gold);color:#1c1407;border:none;
  font-weight:600;padding:12px 22px;border-radius:4px;cursor:pointer}
.auth-page .btn-primary:hover,.auth-page button[type=submit]:hover{background:var(--gold-2)}
.auth-page .w-100{width:100%}
.auth-page .text-danger,.auth-page .validation-summary-errors{color:#e08a7a;font-size:.85rem}
.auth-page ul{list-style:none;padding:0}

/* --- Course free-preview snippet --- */
.course-snippet{background:var(--black-2);border:1px solid var(--line-d);border-left:3px solid var(--gold);
  border-radius:6px;padding:16px 20px;margin:18px 0}
.snippet-label{font-size:.68rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:8px}
.course-snippet p{color:var(--cream);margin:0;line-height:1.7}

/* --- Business directory --- */
.intro{margin:6px 0 20px;max-width:640px}
.biz-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.biz-card{position:relative;display:flex;flex-direction:column;background:var(--black-2);border:1px solid var(--line-d);
  border-radius:8px;overflow:hidden;transition:border-color .15s,transform .15s}
.biz-card:hover{border-color:var(--gold);transform:translateY(-2px)}
.biz-card.featured{border-color:rgba(201,162,74,.6);box-shadow:0 0 0 1px rgba(201,162,74,.25)}
.biz-featured{position:absolute;right:12px;top:12px;background:var(--gold);color:#1c1407;font-size:.62rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;padding:4px 9px;border-radius:3px;z-index:2}
.biz-logo{height:120px;display:flex;align-items:center;justify-content:center;font-family:var(--serif);
  font-weight:700;font-size:2.2rem;color:var(--cream)}
.biz-logo.lg{width:96px;height:96px;border-radius:10px;flex:none;font-size:1.8rem}
.biz-body{padding:16px 18px 20px}
.biz-cat{font-size:.7rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:6px}
.biz-body h3{font-family:var(--serif);font-size:1.2rem;margin-bottom:6px}
.biz-detail-head{display:flex;gap:22px;align-items:center;margin:18px 0}
.biz-desc{font-size:1.05rem;line-height:1.7;margin:18px 0}
.biz-contact{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
@media(max-width:1040px){.biz-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.biz-grid{grid-template-columns:1fr}.biz-detail-head{flex-direction:column;align-items:flex-start}}

/* --- Product detail page --- */
.pdp-hero{position:relative;background:radial-gradient(circle at 50% 28%,#1b1815,#0b0b0b 72%);
  border-bottom:1px solid var(--line-d);min-height:440px;display:flex;align-items:center;justify-content:center;padding:48px 24px}
.pdp-hero-mark{position:absolute;left:32px;top:24px;font-family:var(--serif);font-weight:700;color:var(--gold);letter-spacing:.04em;font-size:1.25rem}
.pdp-img{width:min(500px,82%);aspect-ratio:1/1;border-radius:10px;display:flex;align-items:center;justify-content:center}
.pdp-img-placeholder{font-family:var(--serif);color:var(--gold-2);opacity:.45;font-size:1.4rem;letter-spacing:.08em;text-align:center;padding:20px}
.pdp-body{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;padding-top:48px;padding-bottom:84px}
.pdp-title{font-family:var(--serif);font-weight:700;font-size:clamp(2rem,4vw,3rem);line-height:1.05}
.pdp-kicker{color:var(--gold);font-size:.95rem;letter-spacing:.04em;margin-top:6px}
.pdp-rule{width:120px;height:1px;background:rgba(201,162,74,.6);margin:20px 0}
.pdp-price-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.pdp-price{font-family:var(--serif);font-weight:700;font-size:2rem;color:var(--gold)}
.pdp-member-badge{border:1px solid rgba(201,162,74,.5);color:var(--gold-2);font-size:.72rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;padding:6px 12px;border-radius:4px;text-decoration:none}
a.pdp-member-badge:hover{background:rgba(201,162,74,.12)}
.pdp-desc{color:var(--cream-dim);line-height:1.7;max-width:460px;margin-bottom:26px}
.pdp-option{margin-bottom:20px}
.pdp-option-label{display:block;font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:10px}
.pdp-swatches{display:flex;gap:10px}
.swatch{width:30px;height:30px;border-radius:50%;border:2px solid var(--line-d);cursor:pointer;padding:0;box-shadow:inset 0 0 0 2px var(--black)}
.swatch.on{border-color:var(--gold)}
.pdp-sizes{display:flex;flex-wrap:wrap;gap:8px}
.size-pill{min-width:44px;padding:9px 12px;background:var(--black-2);border:1px solid var(--line-d);color:var(--cream);border-radius:5px;cursor:pointer;font-size:.9rem}
.size-pill:hover:not(:disabled){border-color:var(--gold)}
.size-pill.on{background:var(--gold);border-color:var(--gold);color:#1c1407;font-weight:600}
.size-pill:disabled{opacity:.3;cursor:not-allowed;text-decoration:line-through}
.pdp-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.pdp-add{min-width:180px}
.pdp-features{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:8px}
.pdp-feature-ico{font-size:1.5rem;color:var(--gold);margin-bottom:8px}
.pdp-feature h4{font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--cream);margin-bottom:6px}
.pdp-feature p{color:var(--cream-dim);font-size:.85rem;line-height:1.5}
.pdp-quote{position:relative;border:1px solid var(--line-d);border-radius:8px;background:var(--black-2);
  padding:24px 26px 24px 52px;margin-top:34px;font-family:var(--serif);font-style:italic;color:var(--cream);line-height:1.6}
.pdp-quote-mark{position:absolute;left:20px;top:14px;font-family:var(--serif);font-size:2.4rem;color:var(--gold);line-height:1}
@media(max-width:900px){.pdp-body{grid-template-columns:1fr;gap:40px}.pdp-features{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.pdp-features{grid-template-columns:1fr}}

/* --- Shop filters --- */
.shop-filters{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin:22px 0 26px}
.filter-chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{background:var(--black-2);border:1px solid var(--line-d);color:var(--cream-dim);font-size:.82rem;
  padding:7px 15px;border-radius:20px;cursor:pointer;transition:all .15s}
.chip:hover{border-color:var(--gold);color:var(--cream)}
.chip.on{background:var(--gold);border-color:var(--gold);color:#1c1407;font-weight:600}
.filter-right{display:flex;align-items:center;gap:14px}
.filter-right .field{margin:0;width:220px}
.instock{display:flex;align-items:center;gap:7px;font-size:.85rem;color:var(--cream-dim);white-space:nowrap;
  text-transform:none;letter-spacing:normal;font-weight:400;margin:0}
@media(max-width:680px){.filter-right{width:100%}.filter-right .field{flex:1;width:auto}}

/* --- Email list capture --- */
.email-signup{margin-top:8px}
.email-row{display:flex;gap:10px;align-items:stretch}
.email-row .field{margin:0;flex:1}
.email-row .btn{white-space:nowrap}
.paywall-list{margin-top:26px;padding-top:22px;border-top:1px solid var(--line-d);text-align:left}
@media(max-width:680px){.email-row{flex-direction:column}}

/* --- Sign-in / auth page (Areas/Identity/Pages/Account/Login) --- */
.auth-body{min-height:100vh;display:flex;flex-direction:column;
  background:
    radial-gradient(1100px 620px at 14% 62%, rgba(44,120,115,.14), transparent 60%),
    linear-gradient(180deg,#0b0c0e 0%,#0d0f12 100%);
  color:var(--cream)}
.auth-top{display:flex;align-items:center;justify-content:space-between;padding:24px clamp(20px,5vw,64px)}
.auth-logo{display:flex;flex-direction:column;line-height:1;text-decoration:none}
.auth-logo .win{font-family:var(--serif);font-weight:700;font-size:1.5rem;color:var(--gold);letter-spacing:.04em}
.auth-logo .sub{font-size:.54rem;font-weight:600;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);margin-top:5px}
.auth-back{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1px solid rgba(236,228,212,.28);
  border-radius:9px;color:var(--cream);text-decoration:none;font-size:.72rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;transition:border-color .2s,color .2s}
.auth-back:hover{border-color:var(--gold);color:var(--gold)}

.auth-main{flex:1;width:100%;max-width:1240px;margin:0 auto;padding:12px clamp(20px,5vw,64px) 40px;
  display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,6vw,110px);align-items:center}

.auth-left{max-width:520px}
.auth-welcome{font-family:var(--serif);font-weight:800;font-size:clamp(2.6rem,4.6vw,3.8rem);line-height:1;margin:0}
.auth-welcome span{color:var(--gold)}
.auth-rule{width:66px;height:3px;background:var(--gold);border-radius:2px;margin:22px 0}
.auth-lede{color:var(--cream-dim);font-size:1.05rem;max-width:400px;margin:0 0 34px}
.auth-features{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:24px}
.auth-features li{display:flex;gap:16px;align-items:flex-start}
.auth-fico{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  border:1px solid rgba(201,162,74,.4);background:rgba(201,162,74,.08);color:var(--gold)}
.auth-fico svg{width:22px;height:22px}
.auth-features strong{display:block;font-family:var(--serif);font-size:1.12rem;font-weight:700;color:var(--cream);margin-bottom:3px}
.auth-features span{display:block;color:var(--cream-dim);font-size:.92rem;line-height:1.5}
.auth-privacy{display:flex;gap:14px;align-items:flex-start;margin-top:34px;padding:18px 20px;
  border:1px solid rgba(201,162,74,.32);border-radius:12px;background:rgba(201,162,74,.05)}
.auth-shield{flex:none;color:var(--gold)}.auth-shield svg{width:26px;height:26px}
.auth-privacy strong{display:block;color:var(--gold-2);font-size:.98rem;margin-bottom:2px}
.auth-privacy span{display:block;color:var(--cream-dim);font-size:.86rem;line-height:1.5}

.auth-right{display:flex;flex-direction:column;align-items:center;gap:18px}
.auth-card{width:100%;max-width:480px;background:rgba(18,20,24,.72);border:1px solid var(--line-d);
  border-radius:18px;padding:clamp(26px,3vw,40px);box-shadow:0 30px 70px rgba(0,0,0,.45)}
.auth-card-title{font-family:var(--serif);font-weight:700;font-size:1.5rem;text-align:center;margin:0 0 26px;color:var(--cream)}

.auth-social{display:flex;flex-direction:column;gap:12px}
.auth-oauth{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;padding:13px 16px;
  border-radius:11px;border:1px solid rgba(236,228,212,.18);background:#f7f7f5;color:#1a1813;
  font-family:var(--sans);font-size:.95rem;font-weight:600;cursor:pointer;transition:filter .2s}
.auth-oauth:hover{filter:brightness(.96)}
.auth-oauth.apple{background:#0a0a0a;color:#fff;border-color:#0a0a0a}
.auth-oauth-logo{display:grid;place-items:center;line-height:0}
.auth-oauth-ico{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-weight:800;
  background:rgba(0,0,0,.08)}
.auth-oauth.apple .auth-oauth-ico{background:rgba(255,255,255,.14)}
.auth-social form{margin:0}
.auth-soon{margin:12px 0 0;font-size:.82rem;color:var(--cream-dim);text-align:center}
.auth-soon[hidden]{display:none}

/* Manage stories — status filter row */
.story-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.story-filters .fcount{opacity:.7;font-weight:700;margin-left:5px}

/* Manage categories — picture cards */
.cat-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}
.cat-admin-card{background:var(--black-2);border:1px solid var(--line-d);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.cat-admin-img{height:128px;display:grid;place-items:center}
.cat-admin-empty{font-size:.8rem;color:var(--cream-dim);letter-spacing:.02em}
.cat-admin-body{padding:14px 16px 16px}
.cat-admin-body h3{font-family:var(--serif);font-size:1.15rem;color:var(--cream);margin:0 0 12px}
.cat-admin-actions{display:flex;gap:8px;flex-wrap:wrap}
.filelabel{position:relative;overflow:hidden;cursor:pointer}
.filelabel input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;font-size:0}
.auth-or{display:flex;align-items:center;gap:14px;color:var(--cream-dim);font-size:.72rem;
  letter-spacing:.2em;margin:20px 0}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--line-d)}

.auth-errors{color:#ff9d9d;font-size:.86rem;margin-bottom:14px}
.auth-errors:empty{display:none}
.auth-errors ul{margin:0;padding-left:18px}
.auth-label{display:block;font-size:.82rem;font-weight:600;color:var(--cream);margin:16px 0 8px}
.auth-hint{margin:8px 2px 0;font-size:.76rem;color:var(--cream-dim);line-height:1.45}
.auth-step{margin:-6px 0 4px;font-size:.78rem;font-weight:600;color:var(--gold);letter-spacing:.01em}
.auth-field{position:relative;display:flex;align-items:center}
.auth-ico{position:absolute;left:14px;display:grid;place-items:center;color:var(--cream-dim);pointer-events:none}
.auth-ico svg{width:19px;height:19px}
.auth-input{width:100%;padding:14px 16px 14px 44px;border-radius:11px;border:1px solid var(--line-d);
  background:rgba(9,11,14,.6);color:var(--cream);font-size:.95rem;font-family:var(--sans);transition:border-color .2s,box-shadow .2s}
.auth-input::placeholder{color:#6a6558}
.auth-input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,74,.16)}
.auth-eye{position:absolute;right:8px;background:none;border:none;cursor:pointer;color:var(--cream-dim);
  padding:8px;display:grid;place-items:center;border-radius:8px}
.auth-eye:hover{color:var(--cream)}.auth-eye.on{color:var(--gold)}.auth-eye svg{width:20px;height:20px}
.auth-row{display:flex;align-items:center;justify-content:space-between;margin:16px 0 22px;gap:12px;flex-wrap:wrap}
.auth-check{display:inline-flex;align-items:center;gap:9px;color:var(--cream-dim);font-size:.88rem;cursor:pointer}
.auth-check input{width:17px;height:17px;accent-color:var(--gold);cursor:pointer}
.auth-link{color:var(--gold-2);text-decoration:none;font-size:.88rem;font-weight:600}
.auth-link:hover{text-decoration:underline}.auth-link.strong{font-weight:700}
.auth-submit{width:100%;padding:15px;border:none;border-radius:11px;background:var(--gold);color:#1c1407;
  font-family:var(--sans);font-size:.82rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  cursor:pointer;transition:background .2s}
.auth-submit:hover{background:var(--gold-2)}
.auth-alt{text-align:center;color:var(--cream-dim);font-size:.9rem;margin:20px 0 0}
.auth-support{display:inline-flex;align-items:center;gap:9px;color:var(--cream-dim);font-size:.88rem}
.auth-support svg{width:18px;height:18px;color:var(--gold)}

.auth-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:20px clamp(20px,5vw,64px);border-top:1px solid var(--line-d);color:var(--cream-dim);font-size:.82rem}
.auth-foot a{color:var(--cream-dim);text-decoration:none}.auth-foot a:hover{color:var(--gold)}
.auth-foot-left{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap}
.auth-secure{display:inline-flex;align-items:center;gap:7px}.auth-secure svg{width:15px;height:15px}
.auth-sep{opacity:.4}

@media(max-width:900px){
  .auth-main{grid-template-columns:1fr;gap:40px;justify-items:center;text-align:center}
  .auth-left{max-width:480px;order:2}
  .auth-right{order:1;width:100%}
  .auth-rule{margin-left:auto;margin-right:auto}
  .auth-lede{margin-left:auto;margin-right:auto}
  .auth-features li{text-align:left}
  .auth-privacy{text-align:left}
}
@media(max-width:560px){
  .auth-top{padding:18px 20px}
  .auth-back{padding:9px 13px}
  .auth-foot{flex-direction:column;text-align:center;gap:8px}
}

/* ---- Branded loading spinner (Shared/Spinner.razor) ---- */
.win-spin{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:52px 0;color:#8a857a}
.win-spin-ring{width:46px;height:46px;border-radius:50%;
  background:conic-gradient(from 90deg,rgba(201,162,74,0) 0%,rgba(201,162,74,.12) 45%,#c9a24a 92%,#d8b45c 100%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 4px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 4px));
  animation:win-spin-rot .85s linear infinite}
.win-spin-lbl{font-size:.85rem;letter-spacing:.02em;color:#8a857a}
.win-spin-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Inline / compact variant — sits on one line, smaller, no big padding */
.win-spin.inline{flex-direction:row;gap:10px;padding:0}
.win-spin.inline .win-spin-ring{width:20px;height:20px;
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 3px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 3px))}
.win-spin.inline .win-spin-lbl{font-size:.82rem}
@keyframes win-spin-rot{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.win-spin-ring{animation-duration:2.4s}}

/* ---- Member administration + audit trail (back office) ---- */
.member-filter{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.mf-search{position:relative;flex:1;min-width:220px}
.mf-search .field{width:100%;padding-left:34px}
.mf-ico{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#8a8578}
.member-filter select.field{max-width:200px}

.admin-detail .detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:16px}
.admin-detail .dl{margin:0;display:flex;flex-direction:column;gap:0}
.admin-detail .dl>div{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid #202020}
.admin-detail .dl>div:last-child{border-bottom:none}
.admin-detail .dl dt{color:#8a8578;font-size:.82rem;margin:0}
.admin-detail .dl dd{margin:0;color:#e6ddcc;font-size:.9rem;word-break:break-word}
.admin-detail .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem}

.diag{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-radius:11px;margin-top:16px;border:1px solid}
.diag strong{font-size:.95rem}
.diag span{font-size:.85rem;color:#b3ab9c}
.diag.warn{background:rgba(201,162,74,.07);border-color:rgba(201,162,74,.4)}
.diag.warn strong{color:#d8b45c}
.diag.info{background:rgba(90,140,200,.06);border-color:rgba(90,140,200,.3)}
.diag.info strong{color:#8fb2e0}

.confirm-row{display:flex;flex-direction:column;gap:10px}

.timeline{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
.timeline li{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid #1e1e1e}
.timeline li:last-child{border-bottom:none}
.tl-dot{width:9px;height:9px;border-radius:50%;background:#c9a24a;margin-top:6px;flex:none}
.tl-body{flex:1;min-width:0}
.tl-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tl-top strong{color:#e6ddcc;font-size:.92rem}
.tl-time{color:#8a8578;font-size:.78rem;white-space:nowrap}
.tl-meta{color:#8a8578;font-size:.8rem;margin-top:3px;word-break:break-word}

.tag-chip{display:inline-block;background:#1b1b1b;border:1px solid #2c2c2c;border-radius:20px;padding:3px 10px;font-size:.74rem;color:#c9c4bb;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;margin:2px}
.risk-pill{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:3px 9px;border-radius:20px;font-weight:700;font-size:.8rem;border:1px solid}
.risk-pill.high{color:#e08a7e;border-color:#5c2b26;background:rgba(192,85,74,.14)}
.risk-pill.med{color:#e0ad48;border-color:rgba(201,162,74,.45);background:rgba(201,162,74,.12)}
.risk-pill.low{color:#7fd1a0;border-color:rgba(53,144,137,.5);background:rgba(44,120,115,.14)}

@media(max-width:820px){.admin-detail .detail-grid{grid-template-columns:1fr}}

/* ---- Refer & earn (member portal) ---- */
.refer-hero{display:flex;gap:18px;align-items:center;background:linear-gradient(120deg,rgba(201,162,74,.10),rgba(201,162,74,.02));border-color:rgba(201,162,74,.35)}
.refer-hero-ico{width:56px;height:56px;flex:none;border-radius:14px;display:flex;align-items:center;justify-content:center;background:rgba(201,162,74,.16);color:#c9a24a}
.refer-hero-ico svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.refer-hero h2{font-family:var(--serif);margin:0 0 4px;font-size:1.35rem;color:#f0e9da}
.refer-hero p{margin:0}
.refer-link{display:flex;gap:10px;align-items:center;margin-top:8px}
.refer-link .field{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem}
.refer-link .btn{white-space:nowrap;width:auto}
.refer-share{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px}
.refer-share-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:8px;font-size:.8rem;font-weight:600;text-decoration:none;color:#fff;border:1px solid transparent}
.refer-share-btn.wa{background:#1faa54}
.refer-share-btn.em{background:#2b2b2b;border-color:#3a3a3a;color:#e6ddcc}
.refer-share-btn.tw{background:#111;border:1px solid #3a3a3a}
.refer-share-btn.fb{background:#1877f2}
.refer-share-btn:hover{filter:brightness(1.08)}
.refer-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.refer-stat{background:#141414;border:1px solid #242424;border-radius:14px;padding:20px;text-align:center}
.rs-num{display:block;font-family:var(--serif);font-size:1.9rem;color:#c9a24a;line-height:1}
.rs-lbl{display:block;color:#8f8a80;font-size:.82rem;margin-top:6px}
.refer-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column}
.refer-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #1e1e1e}
.refer-list li:last-child{border-bottom:none}
.refer-badge{font-size:.74rem;font-weight:700;letter-spacing:.03em;padding:4px 10px;border-radius:20px;background:#1b1b1b;border:1px solid #2c2c2c;color:#c9c4bb;white-space:nowrap}
.refer-badge.good{color:#7fd1a0;border-color:rgba(53,144,137,.5);background:rgba(44,120,115,.16)}
.refer-badge.warn{color:#d8b45c;border-color:rgba(201,162,74,.4);background:rgba(201,162,74,.10)}
.refer-badge.muted{color:#8a8578}
.refer-stats.four{grid-template-columns:repeat(4,1fr)}
.refer-share-btn.native{background:var(--gold);color:#1c1407;border-color:var(--gold)}
.refer-share-btn.qr{background:#1b1b1b;border:1px solid #3a3a3a;color:#e6ddcc}
.refer-qr{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:16px;padding:16px;background:#0e0e0e;border:1px solid #242424;border-radius:12px}
.refer-qr svg{width:180px;height:180px;border-radius:6px}
.pcard code{background:#0e0e0e;border:1px solid #2a2a2a;border-radius:5px;padding:1px 5px;font-size:.82em;color:#d8b45c;font-family:ui-monospace,Menlo,Consolas,monospace}
@media(max-width:640px){.refer-stats,.refer-stats.four{grid-template-columns:repeat(2,1fr)}.refer-link{flex-direction:column;align-items:stretch}.refer-link .btn{width:100%}}

/* ---- Refer & Earn — mockup dashboard ---- */
/* Portal shell polish */
.portal-logo{display:flex;flex-direction:column;text-decoration:none;padding:6px 10px 16px;margin-bottom:6px;border-bottom:1px solid #232323}
.portal-logo .win{font-family:var(--serif,'Playfair Display',serif);font-weight:800;font-size:1.6rem;color:var(--gold);letter-spacing:.04em;line-height:1}
.portal-logo .sub{font-size:.56rem;letter-spacing:.2em;text-transform:uppercase;color:#8a857a;margin-top:3px}
.portal-promo{display:block;margin-top:16px;padding:16px;border:1px solid rgba(201,162,74,.35);border-radius:14px;background:linear-gradient(160deg,rgba(201,162,74,.10),rgba(201,162,74,.02));text-decoration:none}
.portal-promo-ico{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:9px;background:rgba(201,162,74,.16);color:var(--gold);margin-bottom:10px}
.portal-promo-ico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-promo strong{display:block;color:#f0e9da;font-family:var(--serif,serif);font-size:1.02rem;line-height:1.25}
.portal-promo span{display:block;color:#9a958b;font-size:.8rem;margin-top:6px}
.portal-topbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-bottom:4px}
.portal-hello{color:#9a958b;font-size:.9rem}.portal-hello strong{color:#e6ddcc}
.portal-avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 35%,#2a2620,#0d0c0b);border:1px solid #333;color:var(--gold);font-weight:700;font-size:.85rem}

/* Referral link card */
.rlink-card{border-color:rgba(201,162,74,.30)}
.rlink-row{display:flex;gap:16px;align-items:flex-start}
.rlink-ico{width:52px;height:52px;flex:none;border-radius:50%;border:1px solid rgba(201,162,74,.5);display:flex;align-items:center;justify-content:center;color:var(--gold)}
.rlink-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rlink-main{flex:1;min-width:0}
.rlink-card .refer-link{margin-top:6px}
.btn-ico{width:16px;height:16px;margin-right:7px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}
.refer-share .rs-label{margin-right:4px}
.refer-share-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.refer-share-btn.fb svg,.refer-share-btn.wa svg{stroke:#fff}
.rlink-tip{display:flex;gap:8px;align-items:flex-start;margin-top:16px;padding-top:14px;border-top:1px solid #222;color:#9a958b;font-size:.84rem;line-height:1.5}
.tip-star{color:var(--gold);flex:none}

/* Funnel stat cards */
.rstat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.rstat{display:flex;gap:15px;align-items:center;background:#141414;border:1px solid #242424;border-radius:16px;padding:20px 22px}
.rstat-ico{width:52px;height:52px;flex:none;border-radius:50%;border:1px solid rgba(201,162,74,.45);display:flex;align-items:center;justify-content:center;color:var(--gold)}
.rstat-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rstat-body{display:flex;flex-direction:column;min-width:0}
.rstat-num{font-family:var(--serif,serif);font-size:2rem;color:#f0e9da;line-height:1}
.rstat-lbl{color:#c9c4bb;font-size:.9rem;font-weight:600;margin-top:3px}
.rstat-sub{color:#7d766a;font-size:.74rem;margin-top:1px}

/* Bottom 3-column grid */
.refer-grid{display:grid;grid-template-columns:1.5fr 1.05fr 1.05fr;gap:16px;align-items:start}
.refer-col{display:flex;flex-direction:column;gap:16px}

/* Recent referrals table */
.rr-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.rr-head .pcard-h{margin:0}
.rr-viewall{background:none;border:none;color:var(--gold-2,#d8b45c);font-size:.82rem;font-weight:600;cursor:pointer}
.rr-table{width:100%;border-collapse:collapse}
.rr-table th{text-align:left;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#7d766a;font-weight:600;padding:8px 6px;border-bottom:1px solid #242424}
.rr-table td{padding:11px 6px;border-bottom:1px solid #1c1c1c;font-size:.9rem;color:#d8d2c6}
.rr-table tr:last-child td{border-bottom:none}
.rr-table .ta-r{text-align:right}
.rr-cell{display:flex;align-items:center;gap:10px}
.rr-avatar{width:30px;height:30px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(201,162,74,.14);color:var(--gold);font-size:.72rem;font-weight:700}
.rr-name{color:#eee7d8;font-weight:600}
.rr-badge{font-size:.72rem;font-weight:700;padding:4px 10px;border-radius:20px;border:1px solid;white-space:nowrap}
.rr-badge.green{color:#7fd1a0;border-color:rgba(53,144,137,.5);background:rgba(44,120,115,.16)}
.rr-badge.amber{color:#e0ad48;border-color:rgba(201,162,74,.45);background:rgba(201,162,74,.12)}
.rr-badge.blue{color:#8fb2e0;border-color:rgba(90,140,200,.4);background:rgba(90,140,200,.12)}
.rr-badge.grey{color:#9a958b;border-color:#2c2c2c;background:#1b1b1b}
.rr-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid #222}

/* Rewards & Progress */
.rp-head{display:flex;justify-content:space-between;align-items:flex-start}
.rp-head .pcard-h{margin:0}
.rp-gift{width:40px;height:40px;border-radius:11px;background:rgba(201,162,74,.16);color:var(--gold);display:flex;align-items:center;justify-content:center;flex:none}
.rp-gift svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rp-next{margin-top:16px;padding-top:14px;border-top:1px solid #222}
.rp-next-top{display:flex;justify-content:space-between;align-items:baseline}
.rp-next-top strong{color:var(--gold-2,#d8b45c);font-size:1.15rem}
.rp-bar{height:8px;border-radius:6px;background:#242424;overflow:hidden;margin:10px 0 6px}
.rp-fill{height:100%;background:linear-gradient(90deg,#c9a24a,#d8b45c);border-radius:6px}
.rp-bar-lbl{text-align:right}
.rp-ms-title{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#7d766a;font-weight:700;margin:18px 0 8px}
.rp-milestones{display:flex;flex-direction:column}
.rp-ms{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #1c1c1c;color:#9a958b}
.rp-ms:last-child{border-bottom:none}
.rp-ms-ck{width:22px;height:22px;flex:none;border-radius:50%;border:1px solid #3a3a3a;display:flex;align-items:center;justify-content:center;font-size:.72rem;color:transparent}
.rp-ms.done{color:#e6ddcc}
.rp-ms.done .rp-ms-ck{background:var(--gold);border-color:var(--gold);color:#1c1407;font-weight:700}
.rp-ms-lbl{flex:1;font-size:.9rem}
.rp-ms-val{font-size:.82rem;color:#8a857a}
.rp-ms.done .rp-ms-val{color:var(--gold-2,#d8b45c)}

/* How it works */
.howto{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #1c1c1c}
.howto:last-child{border-bottom:none}
.howto-ico{width:38px;height:38px;flex:none;border-radius:10px;background:rgba(201,162,74,.12);color:var(--gold);display:flex;align-items:center;justify-content:center}
.howto-ico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.howto strong{color:#eee7d8;font-size:.92rem}
.howto p{color:#8f8a80;font-size:.82rem;line-height:1.45;margin:3px 0 0}

/* QR card */
.qr-card{border-color:rgba(201,162,74,.30)}
.qr-card-head{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.qr-card-ico{width:40px;height:40px;flex:none;border-radius:10px;border:1px solid rgba(201,162,74,.4);color:var(--gold);display:flex;align-items:center;justify-content:center}
.qr-card-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.qr-card-head strong{display:block;color:#eee7d8}
.qr-card-img{display:flex;justify-content:center}
.qr-card-img svg{width:150px;height:150px;border-radius:8px;border:6px solid #fff;background:#fff}

@media(max-width:1080px){.refer-grid{grid-template-columns:1fr}.rstat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.rstat-grid{grid-template-columns:1fr}.rlink-row{flex-direction:column}.portal-hello{display:none}}
