/* ─── Design System – b0ss.online ────────────────────────────── */
:root {
  --bg:           #f7f8fb;
  --surface:      #ffffff;
  --surface-soft: #f1f3f7;
  --border:       rgba(17,24,39,.09);
  --text:         #111827;
  --text-muted:   #6b7280;
  --primary:      #111827;
  --primary-hover:#000000;
  --accent:       #111827;
  --danger:       #dc2626;
  --success:      #16a34a;
  --warning:      #d97706;
  --shadow-sm:    0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:       0 4px 24px rgba(15,23,42,.07);
  --shadow-lg:    0 24px 80px rgba(15,23,42,.10);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --transition:   .18s ease;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }

/* ─── Brand ─────────────────────────────────────────────────── */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  line-height: 1;
}
.brand-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  background: #000;
  overflow: hidden;
  clip-path: inset(0 round 11px);
  box-shadow: 0 6px 18px rgba(15,23,42,.12), 0 0 0 1px rgba(17,24,39,.06);
  flex-shrink: 0;
}
.brand-logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  background: #000;
  overflow: hidden;
  clip-path: inset(0 round 22px);
  margin: 0 auto 1.1rem;
  box-shadow: 0 18px 46px rgba(15,23,42,.12), 0 0 0 1px rgba(17,24,39,.06);
}

/* ─── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 520px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: rgba(17,24,39,.2); background: var(--surface-soft); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-soft); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: .35rem .85rem; font-size: .82rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card-sm { padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); }
.card-hover { transition: box-shadow var(--transition), border-color var(--transition); }
.card-hover:hover { box-shadow: var(--shadow); border-color: rgba(17,24,39,.14); }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
input[type=text],input[type=email],input[type=password],
input[type=tel],input[type=url],input[type=number],
input[type=date],input[type=time],input[type=datetime-local],
input[type=search],
select, textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  color-scheme: light;
}
input:focus,select:focus,textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17,24,39,.08);
}
input::placeholder { color: var(--text-muted); font-weight: 400; }
input[type=date]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator {
  opacity: .72;
  cursor: pointer;
}
textarea { resize: vertical; }

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  border: 1.5px solid transparent;
}
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-muted   { background: var(--surface-soft); color: var(--text-muted); }
.badge-primary { background: var(--primary); color: #fff; }

/* ─── Utilities ──────────────────────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .75rem; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }

/* ─── Divider ────────────────────────────────────────────────── */
.divider { border: none; border-top: 1.5px solid var(--border); margin: 1.5rem 0; }

/* ─── Public Topbar ──────────────────────────────────────────── */
.topbar-public {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: .9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-public .logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.03em;
  color: var(--text);
}

/* ─── Auth Pages (login / set-password) ──────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.auth-logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; color: var(--text); }
.auth-logo.brand-logo {
  justify-content: center;
  width: fit-content;
}
.auth-title { font-size: 1.4rem; font-weight: 700; margin: 1.25rem 0 .25rem; }
.auth-sub   { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.75rem; }

/* ─── Member Topbar ──────────────────────────────────────────── */
.member-topbar {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: .8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.member-topbar .logo { font-weight: 800; font-size: 1rem; letter-spacing: -.03em; color: var(--text); }

/* ─── Product Cards ──────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); border-color: rgba(17,24,39,.14); transform: translateY(-2px); }
.product-card.locked { opacity: 1; cursor: default; }
.product-card.locked:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }
.product-type-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.product-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.lock-overlay {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1.5px solid var(--border);
}
.product-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  display: block;
}
.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1.5px solid var(--border);
}
.product-card-actions .btn { flex: 1; min-width: 100px; font-size: .78rem; padding: .4rem .7rem; text-align: center; justify-content: center; }

/* ─── Section title ──────────────────────────────────────────── */
.section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin: 2.5rem 0 1rem;
}

/* ─── Public Footer ──────────────────────────────────────────── */
.footer-public {
  border-top: 1.5px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: auto;
}
.footer-public a { color: var(--text-muted); }
.footer-public a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .card { padding: 1.25rem; }
  .btn-lg { padding: .75rem 1.5rem; }
  .footer-public { flex-direction: column; text-align: center; }
  .brand-logo { gap: .55rem; }
  .brand-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    clip-path: circle(50%);
    box-shadow: 0 8px 22px rgba(15,23,42,.16), 0 0 0 1px rgba(17,24,39,.08);
  }
  .hero-brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    clip-path: circle(50%);
    box-shadow: 0 18px 44px rgba(15,23,42,.16), 0 0 0 1px rgba(17,24,39,.08);
  }
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Cookie-Banner */
#cookie-banner{position:fixed;bottom:0;left:0;right:0;background:#1a1a1a;color:#d1d5db;font-size:.82rem;padding:.75rem 1.25rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap;z-index:9999;line-height:1.5}
#cookie-banner a{color:#818cf8;text-decoration:underline}
#cookie-banner button{background:#4f46e5;color:#fff;border:none;border-radius:6px;padding:.35rem .9rem;font-size:.82rem;cursor:pointer;white-space:nowrap}
#cookie-banner button:hover{background:#4338ca}
