/* ============================================================
   ACHE UM STORYMAKER — Design System
   Dark theme · Glassmorphism · Violet primary
   ============================================================ */

/* ── FONTES AUTO-HOSPEDADAS ──────────────────────────────── */
/* Inter — subsets latin + latin-ext (cobre português completo) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Plus Jakarta Sans — subsets latin + latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #09090B;
  --bg-2:        #111113;
  --bg-3:        #18181B;
  --bg-4:        #1C1C1F;

  --glass:             rgba(255,255,255,0.04);
  --glass-hover:       rgba(255,255,255,0.07);
  --glass-border:      rgba(255,255,255,0.08);
  --glass-border-hover:rgba(255,255,255,0.15);

  --primary:        #7C3AED;
  --primary-hover:  #6D28D9;
  --primary-active: #5B21B6;
  --primary-light:  #A78BFA;
  --primary-subtle: rgba(124,58,237,0.12);
  --primary-glow:   0 0 40px rgba(124,58,237,0.35);

  --accent:        #F59E0B;
  --accent-hover:  #D97706;
  --accent-subtle: rgba(245,158,11,0.12);

  --success:        #10B981;
  --success-subtle: rgba(16,185,129,0.12);
  --danger:         #EF4444;
  --danger-subtle:  rgba(239,68,68,0.12);

  --text-1: #FAFAFA;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --text-4: #52525B;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl:32px;
  --radius-full:9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow:    0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.55);
  --shadow-xl: 0 20px 70px rgba(0,0,0,0.65);

  --nav-h: 64px;
  --tr: 0.2s ease;
  --tr-slow: 0.35s ease;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
.text-gradient {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-xs  { font-size: 0.75rem; }
.text-sm  { font-size: 0.875rem; }
.text-base{ font-size: 1rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-2); }
.text-subtle { color: var(--text-3); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; }
.section { padding: 48px 0; }
.section-lg { padding: 80px 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1  { gap: 4px; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.wrap   { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.w-full { width: 100%; }
.relative { position: relative; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-1);
  transition: opacity var(--tr);
}
.navbar-logo:hover { opacity: 0.8; }
.navbar-logo img { height: 32px; width: auto; border-radius: 8px; }
.navbar-logo .logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), #C084FC);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 800; color: white;
}
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.navbar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: pointer;
  transition: var(--tr);
}
.navbar-user:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}
.navbar-user .user-name { font-size: 0.875rem; font-weight: 500; }

/* ── AVATAR ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: white;
  user-select: none;
}
.avatar-xs  { width: 28px; height: 28px; font-size: 0.6875rem; }
.avatar-sm  { width: 36px; height: 36px; font-size: 0.8125rem; }
.avatar-md  { width: 48px; height: 48px; font-size: 1rem; }
.avatar-lg  { width: 72px; height: 72px; font-size: 1.375rem; }
.avatar-xl  { width: 96px; height: 96px; font-size: 1.75rem; }
.avatar-2xl { width: 128px; height: 128px; font-size: 2.25rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Gradient classes for avatars */
.grad-1 { background: linear-gradient(135deg, #7C3AED, #C084FC); }
.grad-2 { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.grad-3 { background: linear-gradient(135deg, #10B981, #34D399); }
.grad-4 { background: linear-gradient(135deg, #F59E0B, #FCD34D); }
.grad-5 { background: linear-gradient(135deg, #0891B2, #22D3EE); }
.grad-6 { background: linear-gradient(135deg, #EC4899, #F472B6); }
.grad-7 { background: linear-gradient(135deg, #6366F1, #818CF8); }
.grad-8 { background: linear-gradient(135deg, #14B8A6, #2DD4BF); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: var(--tr);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-sm { padding: 7px 14px; font-size: 0.8125rem; border-radius: 7px; }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; border-radius: 10px; }
.btn-xl { padding: 16px 36px; font-size: 1.125rem; border-radius: 12px; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(124,58,237,0.45);
  transform: translateY(-1px);
}
.btn-primary:active { background: var(--primary-active); transform: translateY(0); }

.btn-secondary {
  background: var(--glass);
  color: var(--text-1);
  border-color: var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-light);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--primary-subtle);
  color: var(--primary-light);
}

.btn-danger {
  background: var(--danger-subtle);
  color: #FCA5A5;
  border-color: rgba(239,68,68,0.2);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-success {
  background: var(--success-subtle);
  color: #6EE7B7;
  border-color: rgba(16,185,129,0.2);
}
.btn-success:hover { background: rgba(16,185,129,0.2); }

.btn-icon {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
}
.btn-icon-sm {
  width: 30px; height: 30px;
  padding: 0;
  border-radius: 6px;
  font-size: 0.75rem;
}
.btn-icon-lg {
  width: 46px; height: 46px;
  padding: 0;
  border-radius: 10px;
}

/* ── INPUTS ─────────────────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
}
.input-label.required::after { content: ' *'; color: var(--danger); }
.input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-1);
  font-size: 0.9375rem;
  transition: var(--tr);
  outline: none;
}
.input::placeholder { color: var(--text-4); }
.input:hover { border-color: rgba(255,255,255,0.14); }
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
  background: rgba(124,58,237,0.04);
}
.input:read-only { opacity: 0.6; cursor: not-allowed; }
textarea.input { resize: vertical; min-height: 100px; }
select.input { cursor: pointer; }
.input-hint { font-size: 0.8125rem; color: var(--text-3); }
.input-error-msg { font-size: 0.8125rem; color: #FCA5A5; }
.input.is-error { border-color: var(--danger); }
.input-with-icon { position: relative; }
.input-with-icon .input { padding-left: 42px; }
.input-with-icon .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
.input-with-icon .input-icon-right {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); cursor: pointer;
  transition: color var(--tr);
}
.input-with-icon .input-icon-right:hover { color: var(--text-1); }

/* ── CARD ────────────────────────────────────────────────── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-sm .card-body { padding: 16px; }
.card-lg .card-body { padding: 32px; }
.card-hover {
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lg);
}

/* ── BADGES & TAGS ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}
.badge-primary { background: var(--primary-subtle); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.25); }
.badge-success { background: var(--success-subtle); color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.badge-danger  { background: var(--danger-subtle);  color: #FCA5A5; border: 1px solid rgba(239,68,68,0.25); }
.badge-warning { background: var(--accent-subtle);  color: #FCD34D; border: 1px solid rgba(245,158,11,0.25); }
.badge-neutral { background: rgba(113,113,122,0.15); color: var(--text-2); border: 1px solid rgba(113,113,122,0.25); }
.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-2);
  transition: var(--tr);
}
.tag:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: var(--primary-subtle);
}
.tag.active {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--primary-subtle);
}
.tag-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 0.625rem;
  transition: var(--tr);
}
.tag-remove:hover { background: var(--danger-subtle); color: #FCA5A5; }

/* ── STAR RATING ─────────────────────────────────────────── */
.star-rating { display: flex; align-items: center; gap: 3px; }
.star { color: var(--text-4); font-size: 1rem; transition: color var(--tr); }
.star.filled { color: var(--accent); }
.star.half { color: var(--accent); }
.star-rating.interactive .star { cursor: pointer; }
.star-rating.interactive .star:hover,
.star-rating.interactive .star.hover { color: var(--accent); }
.rating-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 4px;
}
.rating-count { font-size: 0.8125rem; color: var(--text-3); }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 24px 0;
}

/* ── HERO / COVER ────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0D0115 0%, #120820 30%, #09090B 100%);
  padding: 80px 0 64px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-stats {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.hero-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-1);
}
.hero-stat-label { font-size: 0.875rem; color: var(--text-3); }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  margin: -32px 0 40px;
  position: relative; z-index: 10;
  box-shadow: var(--shadow-lg);
}
.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-group { flex: 1; min-width: 160px; }
.filter-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ── STORYMAKER CARD ─────────────────────────────────────── */
.sm-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  will-change: transform;
  contain: layout style;
  position: relative;
}
.sm-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.1);
}
.sm-card-cover {
  height: 100px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.sm-card-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.sm-card-cover-gradient {
  width: 100%; height: 100%;
}
.sm-card-avatar-wrap {
  position: absolute;
  top: 72px; left: 20px;
  z-index: 1;
}
.sm-card-body {
  padding: 56px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sm-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.sm-card-location {
  font-size: 0.8125rem;
  color: var(--text-3);
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 12px;
}
.sm-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.sm-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  color: var(--text-3);
  background: var(--glass);
}
.sm-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}
.sm-card-rating {
  display: flex; align-items: center; gap: 6px;
}

/* ── MARKETPLACE GRID ────────────────────────────────────── */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── PROFILE COVER ───────────────────────────────────────── */
.profile-cover {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.profile-cover-img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover-gradient { width: 100%; height: 100%; }
.profile-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.6) 0%, transparent 60%);
}
.profile-cover-edit {
  position: absolute; top: 12px; right: 12px;
}
.profile-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -56px;
  margin-bottom: 24px;
  padding: 0 4px;
  position: relative; z-index: 1;
}
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}
.profile-avatar-edit {
  position: absolute; bottom: 2px; right: 2px;
  width: 28px; height: 28px;
  background: var(--bg-3);
  border: 2px solid var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--tr);
  font-size: 0.7rem;
}
.profile-avatar-edit:hover { background: var(--primary); }
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

/* ── REVIEW CARD ─────────────────────────────────────────── */
.review-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: var(--tr);
}
.review-card:hover { border-color: var(--glass-border-hover); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-meta { flex: 1; }
.review-author { font-size: 0.9375rem; font-weight: 600; }
.review-date { font-size: 0.75rem; color: var(--text-3); }
.review-text { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.25rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--tr);
  color: var(--text-2);
  font-size: 1rem;
}
.modal-close:hover { background: var(--glass-hover); color: var(--text-1); }

/* ── TOAST / NOTIFICATION ────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 380px;
  animation: toastIn 0.3s ease forwards;
  backdrop-filter: blur(16px);
}
.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.error   { border-color: rgba(239,68,68,0.3); }
.toast.warning { border-color: rgba(245,158,11,0.3); }
.toast-icon { font-size: 1.125rem; flex-shrink: 0; }
.toast-text { font-size: 0.9375rem; font-weight: 500; flex: 1; }
.toast-close {
  color: var(--text-3); cursor: pointer; font-size: 1rem;
  padding: 2px 4px; border-radius: 4px; transition: color var(--tr);
}
.toast-close:hover { color: var(--text-1); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.out { animation: toastOut 0.25s ease forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}

/* ── NOTIFICATION BELL ───────────────────────────────────── */
.notif-bell {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-2);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--tr);
  text-decoration: none;
  flex-shrink: 0;
}
.notif-bell:hover { border-color: var(--glass-border-hover); color: var(--text-1); background: var(--glass-hover); }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: #EF4444;
  color: #fff;
  font-size: 0.6875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-1);
}

/* ── CONTATO CARD ────────────────────────────────────────── */
.contato-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--tr);
  display: flex; align-items: flex-start; gap: 16px;
}
.contato-card:hover { border-color: var(--glass-border-hover); background: var(--glass-hover); }
.contato-card.nao-lido { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.04); }
.contato-card.nao-lido:hover { border-color: var(--primary); }
.contato-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 6px;
}
.contato-dot.lido { background: transparent; border: 1px solid var(--glass-border); }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: var(--text-3);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 1.125rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.empty-state-text { font-size: 0.9375rem; max-width: 360px; line-height: 1.6; }

/* ── LOADING ─────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── TOGGLE SWITCH ───────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; gap: 12px; }
.toggle-label { font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--bg-4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  transition: var(--tr);
}
.toggle input:checked + .toggle-track { background: var(--primary); border-color: var(--primary); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(20px); }

/* ── TABS ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-3); border-radius: var(--radius-sm); }
.tab-btn {
  flex: 1; padding: 8px 16px;
  border-radius: 7px;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--text-3);
  transition: var(--tr);
}
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active {
  background: var(--glass);
  color: var(--text-1);
  box-shadow: var(--shadow-sm);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}
table { width: 100%; border-collapse: collapse; }
thead {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--glass-border);
}
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--glass-border);
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--tr); }
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── AUTH PAGE ───────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: -300px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 40px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-xl);
}
.auth-logo {
  display: flex; justify-content: center; margin-bottom: 32px;
}
.auth-title {
  font-size: 1.625rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 0.9375rem;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 32px;
}
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--glass-border);
}
.auth-divider span { font-size: 0.8125rem; color: var(--text-4); }

/* ── COVER GRADIENT PRESETS ──────────────────────────────── */
.cover-grad-1 { background: linear-gradient(135deg, #1a0533 0%, #3b0764 50%, #1e0648 100%); }
.cover-grad-2 { background: linear-gradient(135deg, #0c1a2e 0%, #1e3a5f 50%, #0d2137 100%); }
.cover-grad-3 { background: linear-gradient(135deg, #0f2018 0%, #1a4a2e 50%, #0d2118 100%); }
.cover-grad-4 { background: linear-gradient(135deg, #2d1a00 0%, #5c3500 50%, #2d1900 100%); }
.cover-grad-5 { background: linear-gradient(135deg, #051a2e 0%, #0c3555 50%, #051a2e 100%); }
.cover-grad-6 { background: linear-gradient(135deg, #1a0525 0%, #3d0b5c 50%, #200838 100%); }

/* ── NIVEL BADGES ────────────────────────────────────────── */
.nivel-STARTER    { background: rgba(113,113,122,0.15); color: #A1A1AA; border: 1px solid rgba(113,113,122,0.25); }
.nivel-ESTRATEGICO { background: rgba(16,185,129,0.12); color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.nivel-EXPERT     { background: rgba(245,158,11,0.12); color: #FCD34D; border: 1px solid rgba(245,158,11,0.25); }
.nivel-MASTER_ADM { background: rgba(124,58,237,0.12); color: #A78BFA; border: 1px solid rgba(124,58,237,0.25); }

/* ── AVAILABILITY ────────────────────────────────────────── */
.avail-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.avail-yes { background: var(--success-subtle); color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.avail-no  { background: var(--danger-subtle);  color: #FCA5A5; border: 1px solid rgba(239,68,68,0.25); }
.avail-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.avail-yes .avail-dot {
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── UTILITY ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4  { padding: 16px; }
.p-6  { padding: 24px; }
.pb-6 { padding-bottom: 24px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.opacity-50 { opacity: 0.5; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.cursor-pointer { cursor: pointer; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 40px;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  cursor: pointer; transition: var(--tr);
}
.page-btn:hover { border-color: var(--glass-border-hover); color: var(--text-1); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ── PROGRESS BAR ────────────────────────────────────────── */
.progress { height: 6px; background: var(--bg-4); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .profile-info-grid { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .hero { padding: 60px 0 100px; }
  .hero-stats { gap: 20px; }
  .marketplace-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .auth-card { padding: 28px 24px; }
  .modal { padding: 24px; }
  .navbar-logo span { display: none; }
}
@media (max-width: 480px) {
  .marketplace-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.75rem; }
}

/* ── PAGE TRANSITIONS ────────────────────────────────────── */
.page-fade {
  animation: pageFade 0.3s ease forwards;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── DROPDOWN ────────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 180px;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.18s ease;
  z-index: 100;
}
.dropdown.open .dropdown-menu {
  opacity: 1; pointer-events: all;
  transform: translateY(0) scale(1);
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text-2);
  cursor: pointer; transition: var(--tr);
}
.dropdown-item:hover { background: var(--glass); color: var(--text-1); }
.dropdown-item.danger:hover { background: var(--danger-subtle); color: #FCA5A5; }
.dropdown-divider { height: 1px; background: var(--glass-border); margin: 4px 0; }
