/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.logo svg { flex: none; }
.logo-text { white-space: nowrap; }
.logo-text span { color: var(--brand-text); }

/* ---------- Public header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); display: flex; align-items: center; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header-row { display: flex; align-items: center; gap: 1rem; }
.main-nav { display: flex; gap: 0; margin-left: .5rem; flex: 1; min-width: 0; }
.main-nav a { white-space: nowrap; padding: .5rem .7rem; border-radius: var(--r-pill); font-weight: 550; font-size: .93rem; color: var(--ink-2); transition: background-color var(--t-fast), color var(--t-fast); }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a[aria-current] { color: var(--brand-text); background: var(--brand-50); }
.header-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
@media (min-width: 901px) { .icon-btn.show-m { display: none; } }
@media (max-width: 1100px) { .main-nav { display: none; } .header-actions [data-nav-open] { display: inline-flex; } }

.mobile-nav { position: fixed; inset: 0; z-index: 120; background: var(--overlay); backdrop-filter: blur(3px); }
.mobile-nav[hidden] { display: none; }
.mobile-nav-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface); padding: 1rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 1rem; animation: slide-in .3s var(--ease); overflow-y: auto; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav nav { display: grid; }
.mobile-nav nav a { padding: .95rem .2rem; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 1.05rem; }
.mobile-nav-cta { display: grid; gap: .6rem; margin-top: auto; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 2rem; background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 1rem; font-size: .95rem; }
.footer-grid h4 { margin-bottom: .8rem; }
.footer-grid a { display: block; padding: .25rem 0; color: var(--ink-2); font-size: .94rem; }
.footer-grid a:hover { color: var(--brand-text); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding: 1.6rem 0 2rem; margin-top: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-preview a { margin-left: .8rem; color: var(--brand-text); font-weight: 600; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.section-tint { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: clamp(2.2rem, 5vw, 4rem) 0 1.5rem; }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); max-width: 22ch; }
.page-head .lead { margin: 0; }
.hero-cta { margin-top: 1.5rem; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 1.1rem; }
.grid-cards-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ---------- Auth ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-main { display: flex; flex-direction: column; padding: 1.2rem clamp(1.2rem, 5vw, 4rem); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-card { width: min(440px, 100%); margin: auto; padding: 2rem 0; }
.auth-card h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: .4rem; }
.auth-card > p.muted { margin-bottom: 1.6rem; }
.auth-alt { text-align: center; margin: 1.4rem 0 0; color: var(--muted); }
.auth-foot { font-size: .85rem; text-align: center; margin: 0; }
.preview-box { margin-top: 1.8rem; padding: 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r-m); }
.preview-box p { margin: 0 0 .6rem; }
.auth-art { position: relative; background: var(--grad-soft); color: var(--ink); display: grid; place-items: center; padding: 3rem; overflow: hidden; }
.auth-art::before, .auth-art::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(var(--brand-rgb), .12); }
.auth-art::before { width: 520px; height: 520px; right: -180px; top: -160px; }
.auth-art::after { width: 340px; height: 340px; left: -120px; bottom: -110px; }
.auth-art-inner { position: relative; max-width: 440px; display: grid; gap: 1.6rem; }
.auth-art h2 { color: var(--ink); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); }
.auth-points { display: grid; gap: .9rem; }
.auth-points li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); }
.auth-points .i { margin-top: .25rem; color: var(--brand-text); }
.auth-chip { display: inline-grid; gap: .1rem; width: fit-content; padding: .9rem 1.2rem; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--pink-200); box-shadow: var(--shadow-1); }
.auth-chip strong { font-family: var(--font-display); font-size: 1.7rem; }
.auth-chip span { font-size: .9rem; opacity: .9; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Dashboard shell ---------- */
.dash { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 1rem; padding: 1.1rem .9rem; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.sidebar-top { display: flex; justify-content: space-between; align-items: center; padding: 0 .4rem; }
.role-pill { margin: 0 .4rem; padding: .45rem .9rem; border-radius: var(--r-pill); font-size: .82rem; font-weight: 700; background: var(--brand-50); color: var(--brand-text); }
.role-pill.role-influencer { background: var(--coral-50); color: var(--coral); }
.role-pill.role-admin { background: var(--surface-2); color: var(--ink-2); }
.side-nav, .side-foot { display: grid; gap: 2px; }
.side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.side-nav a, .side-foot a { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: var(--r-m); font-weight: 550; font-size: .94rem; color: var(--ink-2); transition: background-color var(--t-fast), color var(--t-fast); }
.side-nav a:hover, .side-foot a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a[aria-current] { background: var(--brand-50); color: var(--brand-text); }
.side-nav a[aria-current] .i { color: var(--brand); }
.dash-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .8rem; padding: .7rem clamp(1rem, 3vw, 2rem); padding-top: calc(.7rem + env(safe-area-inset-top, 0px)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-search { flex: 1; max-width: 460px; position: relative; }
.topbar-search .i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topbar-search input { width: 100%; padding: .6rem .9rem .6rem 2.5rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); }
.topbar-search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.topbar-actions { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding-left: .6rem; }
.user-chip-text { display: grid; line-height: 1.2; font-size: .9rem; }
.user-chip-text small { color: var(--muted); }
.dash-content { padding: clamp(1.1rem, 3vw, 2rem); display: grid; gap: 1.4rem; align-content: start; max-width: 1280px; width: 100%; }
.scrim { position: fixed; inset: 0; z-index: 70; background: var(--overlay); backdrop-filter: blur(3px); }
.scrim[hidden] { display: none; }

.bottom-nav { display: none; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; left: 0; top: 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow-2); }
  .sidebar.open { transform: none; }
  .topbar-search { display: none; }
  .dash-content { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: .4rem 0; font-size: .68rem; font-weight: 650; color: var(--muted); border-radius: 12px; }
  .bottom-nav a .i { width: 1.35rem; height: 1.35rem; }
  .bottom-nav a[aria-current] { color: var(--brand-text); }
  .toasts { bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Grouped admin menu and waiting badges ---------- */
.side-group { margin: .9rem .8rem .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-group:first-child { margin-top: .2rem; }
.side-nav a { position: relative; }
.nav-badge { margin-left: auto; min-width: 1.35rem; padding: 0 .4rem; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.35rem; text-align: center; }
.side-nav a[aria-current] .nav-badge { background: var(--brand-text); }
