@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-bright: #E8C871;
  --gold-dim: #8a6e2f;
  --black: #080808;
  --black-soft: #0f0f0f;
  --black-card: #141414;
  --black-elevated: #1a1a1a;
  --black-hover: #202020;
  --line: #242424;
  --line-soft: #1c1c1c;
  --text: #F0EDE6;
  --text-dim: #8a8478;
  --text-faint: #4a4740;
  --danger: #c0392b;
  --danger-soft: rgba(192,57,43,0.12);
  --success: #27ae60;
  --success-soft: rgba(39,174,96,0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 0 1px var(--gold);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

.bf { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer;
  font-weight: 600; font-size: 13px; letter-spacing: 0.05em;
  border-radius: var(--radius); transition: all .18s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-gold {
  background: var(--gold-bright); color: #080808;
  border-color: var(--gold-bright); font-weight: 700;
}
.btn-gold:hover { background: #f5d880; border-color: #f5d880; color: #080808; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--line); color: var(--text); }

/* ── FORMS ── */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 11px; color: var(--text-dim);
  margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--black-card);
  border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius);
  transition: border-color .15s;
}
.field input[type="file"] { padding: 10px 14px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 90px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.field-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* ── ALERTS ── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; margin-bottom: 20px;
}
.alert-error { background: var(--danger-soft); border: 1px solid var(--danger); color: #e57368; }
.alert-success { background: var(--success-soft); border: 1px solid var(--success); color: #52d68a; }

/* ══════════════════════════════════
   PUBLIC / LANDING
══════════════════════════════════ */
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 5%; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s;
}
.landing-nav.scrolled {
  background: rgba(8,8,8,0.95); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--gold-bright); letter-spacing: 0.1em; }
.nav-actions { display: flex; gap: 12px; }

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 5% 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,168,76,0.1) 0%, transparent 70%),
    var(--black);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 80px,
    rgba(201,168,76,0.015) 80px, rgba(201,168,76,0.015) 81px
  );
  pointer-events: none;
}
.hero-eyebrow {
  color: var(--gold); font-size: 11px; letter-spacing: 0.35em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 32px; height: 1px; background: var(--gold-dim);
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 9vw, 110px);
  line-height: 0.95; letter-spacing: 0.01em; max-width: 900px;
}
.hero h1 .dim { color: #2e2b22; }
.hero h1 .gold { color: var(--gold-bright); }
.hero-sub {
  color: var(--text-dim); max-width: 500px; margin: 28px auto 48px;
  font-size: 15px; line-height: 1.75; font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.manifesto-strip {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 56px 5%; text-align: center;
  background: var(--black-soft);
}
.manifesto-strip p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text-dim); letter-spacing: 0.04em; max-width: 860px; margin: 0 auto; line-height: 1.4;
}
.manifesto-strip p span { color: var(--gold-bright); }

/* ── PLANS SECTION ── */
.plans-section { padding: 100px 5%; }
.section-label {
  color: var(--gold); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 54px); margin-bottom: 56px;
}
.plans-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; max-width: 760px; margin: 0 auto;
}
.plan-card {
  background: var(--black-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px 28px; position: relative;
  transition: border-color .2s, transform .2s;
}
.plan-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.plan-card.featured { border-color: var(--gold); }
.plan-card.featured::before {
  content: 'MELHOR CUSTO';
  position: absolute; top: -11px; left: 24px;
  background: var(--gold-bright); color: #080808;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  padding: 3px 12px; border-radius: 20px;
}
.plan-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; margin-bottom: 10px; }
.plan-price {
  font-family: 'Bebas Neue', sans-serif; font-size: 44px;
  color: var(--gold-bright); line-height: 1; margin-bottom: 6px;
}
.plan-price span { font-size: 14px; color: var(--text-dim); font-family: 'Inter', sans-serif; font-weight: 400; }
.plan-note { font-size: 12px; color: var(--text-faint); margin-bottom: 28px; }

/* ══════════════════════════════════
   AUTH PAGES
══════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 6vh 5%;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 60%),
    var(--black);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--gold-bright);
  letter-spacing: 0.1em; margin-bottom: 40px; display: block; text-align: center;
}
.auth-card h1 {
  font-family: 'Bebas Neue', sans-serif; font-size: 34px; text-align: center; margin-bottom: 8px;
}
.auth-card .sub { color: var(--text-dim); font-size: 14px; text-align: center; margin-bottom: 36px; }
.auth-divider {
  text-align: center; color: var(--text-faint); font-size: 12px; margin: 20px 0;
}
.auth-foot { text-align: center; margin-top: 28px; font-size: 13px; color: var(--text-dim); }
.auth-foot a { color: var(--gold-bright); }

/* ══════════════════════════════════
   MEMBER NAV
══════════════════════════════════ */
.member-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 64px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,8,0.97); backdrop-filter: blur(12px);
}
.mnav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--gold-bright); letter-spacing: 0.1em; }
.mnav-links { display: flex; align-items: center; gap: 4px; }
.mnav-links a {
  padding: 7px 14px; font-size: 13px; color: var(--text-dim); font-weight: 500;
  border-radius: var(--radius); transition: all .15s;
}
.mnav-links a:hover, .mnav-links a.active { color: var(--text); background: var(--black-elevated); }
.mnav-right { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold-bright));
  color: #080808; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.plan-badge-nav {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); padding: 3px 10px; border-radius: 20px;
}

/* ══════════════════════════════════
   MEMBER DASHBOARD — NETFLIX STYLE
══════════════════════════════════ */
.dash-hero {
  padding: 64px 5% 48px;
  background: linear-gradient(180deg, rgba(201,168,76,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--line-soft);
}
.dash-hero .eyebrow { color: var(--gold); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.dash-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(30px, 4vw, 48px); margin-bottom: 6px; }
.dash-hero p { color: var(--text-dim); font-size: 14px; }

.modules-section { padding: 48px 5% 80px; }
.modules-section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.modules-section-title::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

/* Netflix-style grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.module-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--black-card); border: 1px solid var(--line);
  display: block; transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative; cursor: pointer;
}
.module-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold-dim);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.module-card-thumb {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
  background: var(--black-elevated);
}
.module-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.module-card:hover .module-card-thumb img { transform: scale(1.05); }
.module-card-thumb .no-thumb {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--text-faint);
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--black-elevated), var(--black-card));
}
.module-card-thumb .thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.8) 0%, transparent 60%);
}
.module-card-body { padding: 16px; }
.module-card-body h3 { font-family: 'Bebas Neue', sans-serif; font-size: 17px; margin-bottom: 4px; }
.module-card-body p { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.module-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 14px; font-size: 11px; color: var(--text-faint);
}
.module-card-footer .count { font-weight: 600; color: var(--text-dim); }

/* ── MODULE PAGE ── */
.mod-header {
  padding: 0 5% 48px; border-bottom: 1px solid var(--line-soft);
}
.mod-header-inner {
  display: flex; gap: 36px; align-items: flex-start;
  padding-top: 40px; max-width: 900px;
}
.mod-thumb {
  width: 200px; flex-shrink: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16/9;
  background: var(--black-elevated); display: flex; align-items: center; justify-content: center;
}
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mod-thumb-placeholder { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--text-faint); }
.mod-header-info .eyebrow { color: var(--gold); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.mod-header-info h1 { font-family: 'Bebas Neue', sans-serif; font-size: 38px; margin-bottom: 10px; }
.mod-header-info p { color: var(--text-dim); font-size: 14px; max-width: 480px; }

.products-list { padding: 40px 5% 80px; }
.products-list-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; margin-bottom: 20px; color: var(--text-dim); }
.product-row {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--black-card);
  margin-bottom: 10px; transition: border-color .15s, background .15s;
}
.product-row:hover { border-color: var(--gold-dim); background: var(--black-elevated); }
.product-row-num { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--text-faint); width: 28px; flex-shrink: 0; }
.product-row-info { flex: 1; }
.product-row-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.product-row-info p { font-size: 13px; color: var(--text-dim); }
.product-type-pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); padding: 4px 12px; border-radius: 20px; flex-shrink: 0;
}
.empty-state { padding: 64px 20px; text-align: center; color: var(--text-faint); font-size: 14px; }

/* ══════════════════════════════════
   CHAT
══════════════════════════════════ */
.chat-layout { display: flex; height: calc(100vh - 64px); }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-header {
  padding: 18px 5%; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.chat-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 20px; }
.chat-online { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 6px; }
.chat-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 24px 5%;
  display: flex; flex-direction: column; gap: 16px;
}
.chat-msg { display: flex; gap: 12px; max-width: 680px; }
.chat-msg.own { flex-direction: row-reverse; align-self: flex-end; }
.chat-msg .av { flex-shrink: 0; width: 32px; height: 32px; }
.chat-bubble {
  background: var(--black-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 12px 16px; max-width: 520px;
}
.chat-msg.own .chat-bubble { background: var(--black-card); border-color: var(--gold-dim); }
.chat-author { font-size: 12px; color: var(--gold-bright); font-weight: 600; margin-bottom: 4px; }
.chat-msg.own .chat-author { text-align: right; }
.chat-text { font-size: 14px; line-height: 1.6; word-break: break-word; }
.chat-img { max-width: 280px; border-radius: var(--radius); cursor: pointer; margin-top: 6px; }
.chat-time { font-size: 10px; color: var(--text-faint); margin-top: 6px; }
.chat-input-area {
  padding: 16px 5%; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  background: var(--black-soft);
}
.chat-input-wrap { flex: 1; position: relative; }
.chat-input-wrap input {
  width: 100%; background: var(--black-elevated); border: 1px solid var(--line);
  color: var(--text); padding: 12px 50px 12px 16px; border-radius: 24px;
  transition: border-color .15s;
}
.chat-input-wrap input:focus { outline: none; border-color: var(--gold); }
.chat-img-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 18px; padding: 4px; transition: color .15s;
}
.chat-img-btn:hover { color: var(--gold-bright); }
.chat-send-btn {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-bright); border: none; color: #080808;
  cursor: pointer; font-size: 16px; transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.chat-send-btn:hover { background: #f5d880; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center; cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-lg); }

/* ══════════════════════════════════
   ACCOUNT
══════════════════════════════════ */
.account-page { padding: 48px 5% 80px; max-width: 560px; }
.account-card {
  background: var(--black-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
}
.account-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; margin-bottom: 20px; color: var(--text-dim); }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.info-row:last-child { border-bottom: none; }
.info-row .label { font-size: 12px; color: var(--text-dim); }
.info-row .val { font-size: 14px; font-weight: 500; }

/* ══════════════════════════════════
   ADMIN
══════════════════════════════════ */
.admin-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 60px; border-bottom: 1px solid var(--line);
  background: var(--black-soft); position: sticky; top: 0; z-index: 50;
}
.admin-logo { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--gold-bright); }
.admin-logo span { color: var(--text-faint); font-size: 12px; font-family: 'Inter', sans-serif; font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.admin-links { display: flex; gap: 4px; }
.admin-links a {
  padding: 6px 14px; font-size: 13px; color: var(--text-dim);
  border-radius: var(--radius); font-weight: 500; transition: all .15s;
}
.admin-links a:hover, .admin-links a.active { color: var(--text); background: var(--black-elevated); }

.page-head { padding: 40px 5% 32px; }
.page-head .eyebrow { color: var(--gold); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.page-head h1 { font-family: 'Bebas Neue', sans-serif; font-size: 36px; }
.page-head p { color: var(--text-dim); font-size: 14px; margin-top: 8px; max-width: 480px; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 0 5% 48px; }
.stat-card {
  background: var(--black-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
}
.stat-label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--gold-bright); }

.admin-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5% 24px; gap: 12px; flex-wrap: wrap;
}
.admin-table-wrap { padding: 0 5% 64px; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; color: var(--text-dim); font-weight: 600; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tr:hover td { background: var(--black-soft); }
.tag-pill { font-size: 10px; border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px; color: var(--text-faint); white-space: nowrap; }
.tag-pill.on { color: var(--success); border-color: var(--success); }
.tag-pill.warn { color: var(--gold); border-color: var(--gold-dim); }
.tag-pill.off { color: var(--danger); border-color: var(--danger); }

.admin-form-wrap { padding: 0 5% 80px; max-width: 580px; }

.mod-thumb-preview {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: var(--black-elevated); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.mod-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.mod-thumb-preview span { font-family: 'Bebas Neue', sans-serif; color: var(--text-faint); font-size: 16px; letter-spacing: 0.1em; }

@media (max-width: 860px) {
  .mnav-links { display: none; }
  .plans-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .mod-header-inner { flex-direction: column; }
  .mod-thumb { width: 100%; }
  .admin-links { display: none; }
}
