/* ============================================================
   SABORSOCIAL — SHARED TOKENS + COMPONENTS
   ============================================================ */
:root,
[data-theme="dark"]{
  --bg:        #0e0d0b;
  --surface:   #1a1815;
  --surface-2: #211f1c;
  --card:      #211f1c;
  --border:    #2e2b27;
  --border-2:  #3a352e;
  --text:      #f3ece0;
  --text-soft: #c8bfae;
  --text-mute: #877e6f;
  --gold:      #c9a84c;
  --gold-2:    #e8c97b;
  --gold-soft: rgba(201,168,76,.14);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.55), 0 10px 20px -10px rgba(0,0,0,.4);
  --shadow-card: 0 10px 30px -16px rgba(0,0,0,.6);
  --nav-bg:    rgba(14,13,11,.92);
  --chip-bg:   rgba(255,255,255,.04);
  --tile-tint: rgba(201,168,76,.05);
  --grid-line: rgba(255,255,255,.03);
  --danger:    #e25555;
  --success:   #5cb85c;
}
[data-theme="light"]{
  --bg:        #F7F4EF;
  --surface:   #FFFFFF;
  --surface-2: #FFFFFF;
  --card:      #FFFFFF;
  --border:    #E8E2D8;
  --border-2:  #d6cdbe;
  --text:      #1A1206;
  --text-soft: #4a3f2c;
  --text-mute: #8a7f6c;
  --gold:      #b8932f;
  --gold-2:    #c9a84c;
  --gold-soft: rgba(184,147,47,.10);
  --shadow-lg: 0 30px 60px -28px rgba(60,40,10,.18), 0 10px 20px -12px rgba(60,40,10,.10);
  --shadow-card: 0 10px 30px -18px rgba(60,40,10,.18);
  --nav-bg:    rgba(247,244,239,.96);
  --chip-bg:   rgba(26,18,6,.04);
  --tile-tint: rgba(201,168,76,.06);
  --grid-line: rgba(26,18,6,.04);
  --danger:    #c0392b;
  --success:   #27a35a;
}
:root{
  --brand-grad: linear-gradient(135deg,#ff8a3d 0%,#ff4d8d 45%,#7a3bd1 100%);
}

*,*::before,*::after{ box-sizing:border-box }
html,body{ margin:0; padding:0; overflow-x:hidden }
html{ scroll-behavior:smooth }
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Lato',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
img{ max-width:100%; display:block }
a{ color:inherit; text-decoration:none }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer }
input,select,textarea{ font:inherit; color:inherit }
h1,h2,h3,h4,h5{
  font-family:'Playfair Display',Georgia,serif;
  font-weight:600; letter-spacing:-0.01em; margin:0; color:var(--text);
}
::selection{ background:var(--gold); color:#1a1206 }

::-webkit-scrollbar{ width:10px; height:10px }
::-webkit-scrollbar-track{ background:transparent }
::-webkit-scrollbar-thumb{ background:var(--border-2); border-radius:10px }
::-webkit-scrollbar-thumb:hover{ background:var(--gold) }

.container{ width:100%; max-width:1280px; margin:0 auto; padding:0 24px }
.container-sm{ width:100%; max-width:560px; margin:0 auto; padding:0 24px }
.container-md{ width:100%; max-width:880px; margin:0 auto; padding:0 24px }
@media (max-width:767px){ .container,.container-sm,.container-md{ padding:0 18px } }

section{ padding:88px 0 }
@media (max-width:1023px){ section{ padding:64px 0 } }
@media (max-width:767px){ section{ padding:48px 0 } }

.eyebrow{
  font-family:'Lato',sans-serif;
  font-weight:700; font-size:12px; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold);
  display:inline-flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:""; width:24px; height:1px; background:var(--gold) }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:32px; margin-bottom:40px; flex-wrap:wrap;
}
.section-title{ font-size:clamp(28px,3.6vw,44px); line-height:1.1; max-width:720px }
.section-title em{ font-style:italic; color:var(--gold-2) }
.section-sub{ color:var(--text-soft); max-width:520px; font-size:15px }

/* NAV */
.nav{
  position:sticky; top:0; left:0; right:0; width:100%; z-index:80;
  background:var(--nav-bg);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--border);
  transition: background-color .35s ease, border-color .35s ease;
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height:72px; padding:14px 0; gap:16px; min-width:0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:'Playfair Display',serif; font-weight:700; font-size:22px; letter-spacing:-.01em;
  color:var(--text); flex:0 0 auto; min-width:0;
}
.brand > span:last-child{ white-space:nowrap }
.brand-mark{
  width:34px; height:34px; border-radius:9px;
  display:block; object-fit:cover; flex:none;
  box-shadow:0 6px 20px -8px rgba(255,77,141,.55);
}
.brand .ital{ font-style:italic; font-weight:600; color:var(--gold) }
.nav-links{
  display:flex; align-items:center; gap:28px;
  flex:1 1 auto; justify-content:center; min-width:0;
}
.nav-links a{
  font-size:14px; color:var(--text-soft); font-weight:500;
  position:relative; padding:6px 0; transition:color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color:var(--text) }
.nav-links a.active::after,
.nav-links a:hover::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:1px; background:var(--gold);
}
.nav-actions{ display:flex; align-items:center; gap:10px; flex:0 0 auto }
.nav-actions .btn{ flex:none }

.theme-toggle{
  width:42px; height:42px; border-radius:50%;
  border:1px solid var(--border); background:var(--surface);
  display:grid; place-items:center; position:relative; overflow:hidden;
  transition: border-color .2s ease, background-color .35s ease, transform .2s ease;
}
.theme-toggle:hover{ border-color:var(--gold); transform:translateY(-1px) }
.theme-toggle .icon{
  position:absolute; inset:0; display:grid; place-items:center;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s;
}
.theme-toggle .icon svg{ width:18px; height:18px; color:var(--gold) }
[data-theme="dark"] .icon-sun{ transform:translateY(-120%) rotate(-40deg); opacity:0 }
[data-theme="dark"] .icon-moon{ transform:translateY(0); opacity:1 }
[data-theme="light"] .icon-sun{ transform:translateY(0); opacity:1 }
[data-theme="light"] .icon-moon{ transform:translateY(120%) rotate(40deg); opacity:0 }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 20px; border-radius:999px; font-weight:700; font-size:14px;
  border:1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space:nowrap;
}
.btn-gold{
  background:linear-gradient(180deg,var(--gold-2),var(--gold));
  color:#1a1206;
  box-shadow:0 8px 22px -10px rgba(201,168,76,.6), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-gold:hover{ transform:translateY(-1px); box-shadow:0 14px 30px -12px rgba(201,168,76,.7), inset 0 1px 0 rgba(255,255,255,.35) }
.btn-ghost{ background:transparent; color:var(--text); border:1px solid var(--border-2) }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold) }
.btn-dark{ background:var(--text); color:var(--bg) }
.btn-dark:hover{ transform:translateY(-1px) }
.btn-sm{ padding:8px 14px; font-size:13px }
.btn-lg{ padding:14px 26px; font-size:15px }
.btn-block{ width:100% }

.hamburger{
  display:none; width:42px; height:42px; border-radius:10px;
  border:1px solid var(--border); background:var(--surface);
  align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.hamburger span{ display:block; width:18px; height:1.5px; background:var(--text); transition: transform .3s ease, opacity .2s ease }
.hamburger.open span:nth-child(1){ transform:translateY(6.5px) rotate(45deg) }
.hamburger.open span:nth-child(2){ opacity:0 }
.hamburger.open span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg) }

.mobile-menu{
  position:fixed; left:0; right:0; top:72px;
  background:var(--surface); border-bottom:1px solid var(--border);
  padding:16px 24px 24px;
  transform:translateY(-110%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s;
  z-index:70; display:flex; flex-direction:column; gap:6px;
  visibility:hidden; pointer-events:none;
  max-height:calc(100vh - 72px); overflow:hidden;
  clip-path: inset(0 0 100% 0);
}
.mobile-menu.open{
  transform:translateY(0); visibility:visible; pointer-events:auto;
  clip-path: inset(0 0 0 0); overflow-y:auto;
}
.mobile-menu a{
  padding:14px 6px; border-bottom:1px solid var(--border);
  font-size:16px; color:var(--text);
  display:flex; align-items:center; justify-content:space-between;
}
.mobile-menu a:last-of-type{ border-bottom:0 }
.mobile-menu .btn{ margin-top:14px; width:100% }

@media (max-width:1023px){
  .nav-links{ display:none }
  .hamburger{ display:flex }
}
@media (max-width:767px){
  .nav-actions .btn-gold{ display:none }
  .nav-actions .btn-ghost{ display:none }
  .brand > span:last-child{ display:none }
  .brand-mark{ width:36px; height:36px; border-radius:10px }
  .nav-inner{ min-height:60px; padding:10px 0; gap:10px }
  .mobile-menu{ top:60px }
}

/* FOOTER */
footer{ border-top:1px solid var(--border); padding:48px 0 32px; margin-top:32px }
.foot-grid{ display:flex; align-items:flex-start; justify-content:space-between; gap:32px; flex-wrap:wrap }
.foot-brand{ max-width:340px }
.foot-brand p{ color:var(--text-mute); font-size:13px; margin:14px 0 0 }
.foot-cols{ display:flex; gap:48px; flex-wrap:wrap }
.foot-col h5{
  font-family:'Lato',sans-serif; font-size:11px; text-transform:uppercase;
  letter-spacing:.16em; color:var(--gold); margin:0 0 14px; font-weight:700;
}
.foot-col a{ display:block; font-size:13px; color:var(--text-soft); padding:5px 0; transition: color .15s }
.foot-col a:hover{ color:var(--gold) }
.foot-bar{
  margin-top:36px; padding-top:20px; border-top:1px solid var(--border);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px;
  font-size:12px; color:var(--text-mute);
}

/* FORMS */
.form-row{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px }
.form-row label{
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-mute); font-weight:700;
}
.form-row .help{ font-size:12px; color:var(--text-mute) }
.input, .select, .textarea{
  width:100%;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:13px 16px;
  color:var(--text); font-size:15px;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 3px var(--gold-soft);
}
.textarea{ min-height:120px; resize:vertical; line-height:1.5; font-family:inherit }
.input-icon{ position:relative }
.input-icon .input{ padding-left:44px }
.input-icon svg{
  position:absolute; left:16px; top:50%; transform:translateY(-50%);
  width:16px; height:16px; color:var(--text-mute);
}
.input-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px }
@media (max-width:520px){ .input-row{ grid-template-columns:1fr } }

.checkbox{
  display:flex; align-items:flex-start; gap:10px; cursor:pointer;
  font-size:14px; color:var(--text-soft); line-height:1.5;
}
.checkbox input{
  appearance:none; -webkit-appearance:none;
  width:18px; height:18px; flex:none; border-radius:5px;
  border:1px solid var(--border-2); background:var(--surface);
  cursor:pointer; margin-top:2px; position:relative;
  transition: all .15s ease;
}
.checkbox input:checked{
  background:linear-gradient(180deg,var(--gold-2),var(--gold));
  border-color:transparent;
}
.checkbox input:checked::after{
  content:""; position:absolute; left:5px; top:1px;
  width:5px; height:10px; border:solid #1a1206;
  border-width: 0 2px 2px 0; transform:rotate(45deg);
}
.checkbox a{ color:var(--gold); font-weight:600 }

.radio-card{
  display:flex; align-items:flex-start; gap:12px;
  padding:16px;
  border:1px solid var(--border); border-radius:14px;
  background:var(--surface); cursor:pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.radio-card:hover{ border-color:var(--border-2) }
.radio-card input{ appearance:none; -webkit-appearance:none; margin:0;
  width:18px; height:18px; flex:none; border-radius:50%;
  border:1.5px solid var(--border-2); background:transparent;
  margin-top:2px; cursor:pointer; position:relative;
  transition: all .15s;
}
.radio-card input:checked{ border-color:var(--gold) }
.radio-card input:checked::after{
  content:""; position:absolute; inset:3px; border-radius:50%;
  background:linear-gradient(180deg,var(--gold-2),var(--gold));
}
.radio-card:has(input:checked){
  border-color:var(--gold);
  background:var(--gold-soft);
}
.radio-card .rc-title{ font-weight:700; color:var(--text); font-size:15px; margin-bottom:2px; display:block }
.radio-card .rc-desc{ font-size:13px; color:var(--text-mute) }

/* CARD */
.card{
  background:var(--card); border:1px solid var(--border);
  border-radius:20px; padding:32px;
  box-shadow:var(--shadow-card);
}
@media (max-width:520px){ .card{ padding:22px } }

/* BREADCRUMB */
.bc{
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--text-mute);
  margin-bottom:18px;
}
.bc a{ color:var(--text-soft); transition:color .15s }
.bc a:hover{ color:var(--gold) }
.bc svg{ width:12px; height:12px; opacity:.5 }

/* PAGE HERO */
.page-hero{ padding:88px 0 56px; position:relative; overflow:hidden }
.page-hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(201,168,76,.10), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgba(255,77,141,.06), transparent 60%);
  pointer-events:none;
}
.page-hero h1{
  font-size:clamp(36px,5vw,58px); line-height:1.05; letter-spacing:-.02em;
  margin-bottom:18px; position:relative;
}
.page-hero h1 em{
  font-style:italic;
  background:linear-gradient(180deg,var(--gold-2),var(--gold));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-hero p.lead{
  font-size:18px; color:var(--text-soft); max-width:620px; position:relative;
}

/* BADGE */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:999px;
  font-size:12px; font-weight:700; letter-spacing:.04em;
}
.badge-gold{ background:var(--gold-soft); color:var(--gold) }
.badge-dark{ background:var(--text); color:var(--bg) }

.fade-in{ opacity:0; transform:translateY(14px); transition: opacity .6s ease, transform .6s ease }
.fade-in.in{ opacity:1; transform:none }

/* TOAST */
.toast-container{ position:fixed; bottom:24px; right:24px; z-index:999; display:flex; flex-direction:column; gap:8px }
.toast{
  padding:14px 20px; border-radius:12px; background:var(--card); border:1px solid var(--border);
  font-size:14px; color:var(--text); box-shadow:var(--shadow-lg);
  animation: toastIn .35s ease; max-width:360px;
  display:flex; align-items:center; gap:10px;
}
.toast-success{ border-color:var(--success) }
.toast-error{ border-color:var(--danger) }
.toast-info{ border-color:var(--gold) }
@keyframes toastIn{ from{ opacity:0; transform:translateY(20px) } to{ opacity:1; transform:none } }

/* MOBILE MENU SECTION SEPARATOR */
.mmenu-sep{
  font-size:10px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold); font-weight:700;
  padding:18px 6px 8px; border-bottom:1px solid var(--border);
  pointer-events:none;
}

/* FOOTER MOBILE */
@media (max-width:767px){
  footer{ padding:20px 0 14px; margin-top:0 }
  .foot-cols{ display:none }
  .foot-brand p{ font-size:12px; margin:8px 0 0 }
  .foot-bar{
    margin-top:14px; padding-top:12px;
    flex-direction:column; align-items:center;
    text-align:center; gap:4px; font-size:11px;
  }
}

/* POSTER EXTERNAL LINK */
.poster-ext{
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
  padding:7px 16px; border-radius:999px;
  background:rgba(0,0,0,.62); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.22);
  color:#fff; font-size:12px; font-weight:700; letter-spacing:.04em;
  text-decoration:none; transition: background .2s ease, transform .2s ease;
  z-index:3;
}
.poster-ext:hover{ background:rgba(0,0,0,.82); transform:translateX(-50%) translateY(-2px) }
