/* =============================================================================
   LEILÃOCARROS — Design System v4 — Clean Modern Automotive
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Cores principais */
  --brand:      #FF4713;
  --brand-dark: #E63A0A;
  --brand-bg:   #FFF2EF;

  --ink:   #1A1A18;
  --ink-2: #3D3D39;
  --ink-3: #6B6B65;
  --ink-4: #9A9A93;

  --bg:      #F5F5F0;
  --bg-2:    #EEEDE8;
  --surface: #FFFFFF;
  --border:  #E2E1DC;
  --border-dark: #D0CFC9;

  --green:  #059669; --green-bg:  #ECFDF5;
  --red:    #DC2626; --red-bg:    #FEF2F2;
  --blue:   #2563EB; --blue-bg:   #EFF6FF;
  --amber:  #D97706; --amber-bg:  #FFFBEB;

  /* Tipografia */
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-display: 'Outfit', sans-serif;

  /* Radii */
  --r-xs: 4px; --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 24px;
  --radius: 12px; --radius-sm: 8px; --radius-lg: 16px;

  /* Sombras */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow:    0 4px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.14);
  --shadow-brand: 0 8px 28px rgba(255,71,19,.35);

  --transition: .18s ease;
  --transition-slow: .32s cubic-bezier(.4,0,.2,1);

  /* Compat com variáveis antigas */
  --navy:    #1A1A18;
  --navy-2:  #2A2A27;
  --navy-3:  #F5F5F0;
  --gold:    #FF4713;
  --gold-dark: #E63A0A;
  --text-1:  #1A1A18;
  --text-2:  #3D3D39;
  --text-3:  #9A9A93;
  --text-primary:   #1A1A18;
  --text-secondary: #3D3D39;
  --text-muted:     #6B6B65;
  --text-faint:     #9A9A93;
  --surface-2: #F9F9F7;
  --surface-3: #F5F5F0;
  --off-white: #F5F5F0;
  --gray-300: #D0CFC9;
  --gray-600: #3D3D39;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 64px; /* altura do navbar fixo */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--text-primary); }

/* Layout */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.hidden  { display: none !important; }
.w-full  { width: 100%; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.required { color: var(--red); }

/* Grid */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media(max-width:1024px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}.container{padding:0 16px}.section{padding:48px 0}}

/* ═══ NAVBAR ═══ */
.nav {
  position: fixed; top:0; left:0; right:0; z-index: 1000; height: 64px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #E2E1DC;
  display: flex; align-items: center;
}
.navbar { /* compat alias */
  position: fixed; top:0; left:0; right:0; z-index: 1000; height: 64px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #E2E1DC;
  display: flex; align-items: center;
}
.nav-inner, .navbar-inner { width:100%; max-width:1320px; margin:0 auto; padding:0 28px; display:flex; align-items:center; gap:8px; }
.nav-logo { font-family:'Outfit',sans-serif; font-size:1.5rem; font-weight:900; letter-spacing:-.03em; color:#1A1A18; line-height:1; margin-right:16px; }
.nav-logo em { color:#FF4713; font-style:normal; }
/* compat: old .logo-text */
.logo-text { font-family:'Outfit',sans-serif; font-size:1.5rem; font-weight:900; letter-spacing:-.03em; color:#1A1A18; line-height:1; }
.logo-text span, .logo-text em { color:#FF4713; font-style:normal; }
.nav-pill { padding:7px 14px; border-radius:100px; font-size:.84rem; font-weight:600; color:#6B6B65; transition:.18s; white-space:nowrap; }
.nav-pill:hover { background:#F5F5F0; color:#1A1A18; }
.nav-pill.active { background:#1A1A18; color:#fff; }
/* compat aliases */
.nav-links { display:flex; align-items:center; gap:2px; margin-left:auto; }
.nav-link { padding:7px 14px; border-radius:100px; font-size:.84rem; font-weight:600; color:#6B6B65; transition:.18s; }
.nav-link:hover, .nav-link.active { background:#F5F5F0; color:#1A1A18; }
.nav-actions, .nav-end { display:flex; align-items:center; gap:8px; margin-left:auto; }
.user-menu { position:relative; }
.user-menu { position:relative; }
.user-btn { display:flex; align-items:center; gap:8px; padding:6px 12px; border:1.5px solid #E2E1DC; border-radius:8px; background:#fff; font-size:.84rem; font-weight:600; color:#3D3D39; transition:.18s; cursor:pointer; font-family:'Outfit',sans-serif; }
.user-btn:hover { border-color:#D0CFC9; background:#F9F9F7; }
.user-avatar { width:28px; height:28px; background:#FF4713; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:800; color:#fff; flex-shrink:0; }
.user-dropdown { position:absolute; top:calc(100% + 8px); right:0; background:#fff; border:1px solid #E2E1DC; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.12); min-width:210px; padding:6px; z-index:200; display:none; }
.user-dropdown.open { display:block; animation:menuIn .15s ease; }
@keyframes menuIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:none} }
.dropdown-item { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:8px; font-size:.84rem; font-weight:500; color:#3D3D39; transition:.18s; text-decoration:none; }
.dropdown-item:hover { background:#F5F5F0; color:#1A1A18; }
.dropdown-item.danger { color:#DC2626; }
.dropdown-item.danger:hover { background:#FEF2F2; }
.dropdown-divider { height:1px; background:#E2E1DC; margin:6px 0; }
.mobile-toggle { display:none; flex-direction:column; gap:5px; padding:8px; margin-left:4px; background:none; border:none; cursor:pointer; }
.mobile-toggle span { width:22px; height:2px; background:#1A1A18; border-radius:2px; transition:.18s; }
@media(max-width:900px){
  .nav-pill { display:none !important; }
  .nav-end .btn { display:none; }
  .nav-end .user-menu { display:block; }
  .mobile-toggle { display:flex; }
  .nav-links, .nav-actions { display:none; }
}

/* ═══ HERO ═══ */
.hero { background:var(--surface); overflow:hidden; position:relative; }
.hero::before {
  content:''; position:absolute; top:0; right:0; width:48%; height:100%;
  background: linear-gradient(135deg, #FEF3E6 0%, #FDDCBA 100%);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  z-index:0;
}
.hero-content { position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; align-items:center; min-height:560px; max-width:1280px; margin:0 auto; padding:0 24px; gap:48px; }
.hero-text { padding:80px 0; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:8px; background:var(--brand-light); border:1px solid rgba(232,93,4,.2); color:var(--brand); font-size:.76rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; padding:5px 14px; border-radius:100px; margin-bottom:22px; }
.hero-eyebrow .dot { width:6px; height:6px; background:var(--brand); border-radius:50%; animation:pulse 2s ease-in-out infinite; }
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.75)}}
.hero-title { font-family:var(--font-display); font-size:clamp(3rem,6.5vw,5.5rem); font-weight:400; letter-spacing:.03em; line-height:1; color:var(--text-primary); margin-bottom:18px; }
.hero-title span { color:var(--brand); }
.hero-subtitle { font-size:.98rem; color:var(--text-muted); max-width:440px; margin-bottom:32px; line-height:1.7; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:44px; }
.hero-stats { display:flex; gap:32px; flex-wrap:wrap; }
.hero-stat { display:flex; flex-direction:column; gap:2px; }
.hero-stat-value { font-family:var(--font-display); font-size:2.2rem; letter-spacing:.02em; color:var(--text-primary); }
.hero-stat-label { font-size:.74rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.hero-image-wrap { display:flex; justify-content:center; align-items:center; padding:48px 0; }
.hero-car-img { max-width:520px; width:100%; filter:drop-shadow(0 20px 48px rgba(0,0,0,.15)); animation:heroFloat 4s ease-in-out infinite; }
@keyframes heroFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.hero-search { background:var(--surface); border-radius:var(--r); padding:6px; display:flex; gap:6px; box-shadow:var(--shadow-lg); max-width:500px; border:1.5px solid var(--border); }
.hero-search input { flex:1; border:none; outline:none; font-size:.9rem; font-family:var(--font-body); color:var(--text-primary); padding:8px 12px; background:transparent; }
.hero-search input::placeholder { color:var(--text-faint); }
@media(max-width:900px){.hero::before{display:none}.hero-content{grid-template-columns:1fr;min-height:auto;padding:48px 24px}.hero-image-wrap{display:none}.hero-text{padding:0}}

/* ═══ BUTTONS ═══ */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 20px; border-radius:var(--r-sm); font-size:.88rem; font-weight:600; transition:var(--transition); cursor:pointer; border:none; white-space:nowrap; font-family:var(--font-body); }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-gold, .btn-brand { background:var(--brand); color:white; box-shadow:0 2px 12px rgba(232,93,4,.25); }
.btn-gold:hover, .btn-brand:hover { background:var(--brand-dark); box-shadow:var(--shadow-brand); transform:translateY(-1px); }
.btn-dark { background:var(--text-primary); color:white; }
.btn-dark:hover { background:var(--gray-600); transform:translateY(-1px); }
.btn-outline { background:transparent; border:1.5px solid var(--border-dark); color:var(--text-secondary); }
.btn-outline:hover { border-color:var(--text-primary); background:var(--surface-3); color:var(--text-primary); }
.btn-ghost { background:transparent; color:var(--text-muted); }
.btn-ghost:hover { background:var(--surface-3); color:var(--text-primary); }
.btn-green { background:var(--green); color:white; }
.btn-green:hover { background:#047857; transform:translateY(-1px); }
.btn-red { background:var(--red); color:white; }
.btn-red:hover { background:#B91C1C; transform:translateY(-1px); }
.btn-xs  { padding:4px 10px; font-size:.75rem; border-radius:var(--r-xs); }
.btn-sm  { padding:7px 14px; font-size:.82rem; }
.btn-lg  { padding:13px 28px; font-size:.95rem; }
.btn-xl  { padding:16px 36px; font-size:1rem; border-radius:var(--r); }

/* ═══ BADGES ═══ */
.badge { display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:100px; font-size:.7rem; font-weight:700; letter-spacing:.03em; white-space:nowrap; }
.badge-green  { background:var(--green-bg);  color:#065F46; }
.badge-red    { background:var(--red-bg);    color:#991B1B; }
.badge-blue   { background:var(--blue-bg);   color:#1E40AF; }
.badge-amber, .badge-gold, .badge-orange { background:var(--amber-bg); color:#92400E; }
.badge-navy, .badge-gray { background:var(--surface-3); color:var(--text-secondary); }

/* ═══ CARDS ═══ */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); overflow:hidden; transition:var(--transition-slow); }
.card:hover { box-shadow:var(--shadow-lg); transform:translateY(-3px); border-color:transparent; }

/* Vehicle Card */
.vehicle-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); overflow:hidden; transition:var(--transition-slow); position:relative; }
.vehicle-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-4px); border-color:transparent; }
.vehicle-card:hover .vehicle-card-img img { transform:scale(1.05); }
.vehicle-card-img { position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--surface-3); }
.vehicle-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.4,0,.2,1); }
.vehicle-card-img-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:3.5rem; color:var(--gray-200); }
.vehicle-card-badges { position:absolute; top:10px; left:10px; display:flex; gap:5px; flex-wrap:wrap; }
.vehicle-card-fav { position:absolute; top:10px; right:10px; width:32px; height:32px; background:rgba(255,255,255,.92); border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; border:none; font-size:.85rem; transition:var(--transition); box-shadow:var(--shadow-xs); }
.vehicle-card-fav:hover { background:white; transform:scale(1.12); }
.vehicle-card-body { padding:15px; }
.vehicle-card-title { font-size:.93rem; font-weight:700; color:var(--text-primary); margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vehicle-card-meta { font-size:.76rem; color:var(--text-muted); display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.vehicle-card-price-row { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:10px; padding-top:10px; border-top:1px solid var(--border); }
.vehicle-card-price { font-family:var(--font-display); font-size:1.45rem; letter-spacing:.02em; color:var(--brand); }
.vehicle-card-fipe { font-size:.72rem; color:var(--text-muted); text-align:right; }
.vehicle-card-timer { background:var(--surface-3); border-radius:var(--r-xs); padding:5px 10px; font-size:.73rem; font-weight:600; color:var(--text-muted); text-align:center; }

/* Event Card */
.event-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); overflow:hidden; transition:var(--transition-slow); }
.event-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-4px); }
.event-card-top { background:linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%); padding:20px 20px 14px; position:relative; overflow:hidden; }
.event-card-top::before { content:''; position:absolute; right:-20px; top:-20px; width:100px; height:100px; background:rgba(255,255,255,.04); border-radius:50%; }
.event-card-date { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.event-date-block { background:var(--brand); border-radius:var(--r-sm); padding:8px 12px; text-align:center; min-width:50px; }
.event-date-day   { display:block; font-family:var(--font-display); font-size:1.6rem; color:white; line-height:1; letter-spacing:.02em; }
.event-date-month { display:block; font-size:.62rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.75); }
.event-card-title { font-size:.95rem; font-weight:700; color:white; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.event-card-body { padding:14px; }
.event-card-meta { display:flex; justify-content:space-between; font-size:.78rem; color:var(--text-muted); margin-bottom:12px; }

/* Stat Card */
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:18px 20px; display:flex; align-items:center; gap:14px; transition:var(--transition); }
.stat-card:hover { box-shadow:var(--shadow-sm); }
.stat-card-icon { width:46px; height:46px; border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center; font-size:1.25rem; flex-shrink:0; }
.stat-card-icon.brand,.stat-card-icon.gold { background:var(--brand-light); }
.stat-card-icon.green { background:var(--green-bg); }
.stat-card-icon.blue  { background:var(--blue-bg); }
.stat-card-icon.red   { background:var(--red-bg); }
.stat-card-icon.gray  { background:var(--surface-3); }
.stat-card-value  { font-family:var(--font-display); font-size:1.7rem; letter-spacing:.02em; color:var(--text-primary); line-height:1; }
.stat-card-label  { font-size:.76rem; font-weight:600; color:var(--text-muted); margin-top:3px; }
.stat-card-change { font-size:.72rem; margin-top:3px; color:var(--text-faint); }
.change-up   { color:var(--green)!important; }
.change-down { color:var(--red)!important; }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 16px; }
.form-label { display:block; font-size:.82rem; font-weight:600; color:var(--text-secondary); margin-bottom:6px; }
.form-control { width:100%; padding:10px 14px; background:var(--surface); border:1.5px solid var(--border); border-radius:var(--r-sm); font-size:.88rem; font-family:var(--font-body); color:var(--text-primary); transition:var(--transition); outline:none; appearance:none; }
.form-control:hover { border-color:var(--gray-300); }
.form-control:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(232,93,4,.1); }
.form-control:disabled { background:var(--surface-3); color:var(--text-muted); cursor:not-allowed; }
.form-control::placeholder { color:var(--text-faint); }
textarea.form-control { resize:vertical; min-height:100px; }
select.form-control { cursor:pointer; }
.form-hint { font-size:.75rem; color:var(--text-faint); margin-top:4px; }

/* ═══ ALERTS ═══ */
.alert { padding:13px 16px; border-radius:var(--r-sm); font-size:.87rem; font-weight:500; display:flex; align-items:flex-start; gap:10px; line-height:1.5; }
.alert-success { background:var(--green-bg); border:1px solid #A7F3D0; color:#065F46; }
.alert-error   { background:var(--red-bg);   border:1px solid #FECACA; color:#991B1B; }
.alert-warning { background:var(--amber-bg); border:1px solid #FDE68A; color:#92400E; }
.alert-info    { background:var(--blue-bg);  border:1px solid #BFDBFE; color:#1E40AF; }

/* ═══ TABLES ═══ */
.table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:var(--r); }
.table { width:100%; border-collapse:collapse; font-size:.84rem; }
.table th { padding:11px 16px; text-align:left; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); background:var(--surface-2); border-bottom:1px solid var(--border); white-space:nowrap; }
.table td { padding:13px 16px; border-bottom:1px solid var(--border); color:var(--text-secondary); vertical-align:middle; }
.table tbody tr:last-child td { border-bottom:none; }
.table tbody tr:hover { background:var(--off-white); }

/* ═══ PAGINATION ═══ */
.pagination { display:flex; gap:6px; justify-content:center; padding:24px 0; }
.page-btn { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:1.5px solid var(--border); border-radius:var(--r-sm); font-size:.84rem; font-weight:600; color:var(--text-secondary); background:var(--surface); transition:var(--transition); }
.page-btn:hover { border-color:var(--brand); color:var(--brand); }
.page-btn.active { background:var(--brand); border-color:var(--brand); color:white; }

/* ═══ PAGE HEADER ═══ */
.page-header { background:var(--surface); border-bottom:1px solid var(--border); padding:28px 0; }
.page-header-title { font-size:clamp(1.5rem,4vw,2.2rem); font-weight:800; color:var(--text-primary); }
.breadcrumb { display:flex; align-items:center; gap:6px; font-size:.8rem; color:var(--text-muted); flex-wrap:wrap; margin-bottom:8px; }
.breadcrumb a { color:var(--text-muted); }
.breadcrumb a:hover { color:var(--brand); }
.breadcrumb .sep { color:var(--text-faint); }
.breadcrumb .current { color:var(--text-primary); font-weight:500; }

/* ═══ SECTION HEADERS ═══ */
.section-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:.73rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--brand); margin-bottom:10px; }
.section-eyebrow::before { content:''; width:16px; height:2px; background:var(--brand); border-radius:2px; }
.section-title { font-size:clamp(1.6rem,4vw,2.4rem); font-weight:800; color:var(--text-primary); line-height:1.2; }
.section-subtitle { font-size:1rem; color:var(--text-muted); margin-top:8px; }

/* ═══ HOMEPAGE SPECIFICS ═══ */
.category-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.category-card { background:var(--surface); border:1.5px solid var(--border); border-radius:var(--r); padding:20px 10px; text-align:center; transition:var(--transition-slow); cursor:pointer; }
.category-card:hover { border-color:var(--brand); background:var(--brand-light); transform:translateY(-3px); box-shadow:var(--shadow); }
.category-icon { font-size:2rem; margin-bottom:8px; }
.category-name { font-size:.78rem; font-weight:600; color:var(--text-secondary); }
@media(max-width:900px){.category-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:500px){.category-grid{grid-template-columns:repeat(2,1fr)}}

.trust-bar { background:var(--text-primary); padding:20px 0; }
.trust-items { display:flex; align-items:center; justify-content:center; gap:48px; flex-wrap:wrap; }
.trust-item { display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.65); font-size:.82rem; font-weight:500; }
.trust-item-icon { font-size:1.3rem; }

.cta-section { background:var(--text-primary); padding:80px 0; position:relative; overflow:hidden; }
.cta-section::before { content:''; position:absolute; top:-60px; right:-60px; width:300px; height:300px; background:rgba(232,93,4,.08); border-radius:50%; }

/* ═══ FILTERS ═══ */
.filters-bar { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:16px 20px; display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; box-shadow:var(--shadow-xs); }

/* Timer */
.timer { font-family:var(--font-display); font-size:1rem; letter-spacing:.04em; color:var(--brand); }

/* ═══ FOOTER ═══ */
.footer { background:var(--gray-700); color:rgba(255,255,255,.6); padding:60px 0 0; margin-top:80px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-logo { font-family:var(--font-display); font-size:2rem; letter-spacing:.03em; color:white; margin-bottom:12px; }
.footer-logo span { color:var(--brand); }
.footer-desc { font-size:.84rem; line-height:1.7; color:rgba(255,255,255,.45); max-width:280px; }
.footer-col-title { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:white; margin-bottom:14px; }
.footer-link { display:block; font-size:.83rem; color:rgba(255,255,255,.45); padding:4px 0; transition:var(--transition); }
.footer-link:hover { color:white; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding:20px 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:.77rem; color:rgba(255,255,255,.3); }
.footer-social { display:flex; gap:8px; margin-top:18px; }
.social-btn { width:34px; height:34px; background:rgba(255,255,255,.07); border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center; font-size:.9rem; color:rgba(255,255,255,.5); transition:var(--transition); }
.social-btn:hover { background:var(--brand); color:white; }
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;gap:32px}.footer-brand{grid-column:span 2}}
@media(max-width:500px){.footer-grid{grid-template-columns:1fr}.footer-brand{grid-column:span 1}}

/* Cookie */
.cookie-banner { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); background:var(--text-primary); color:rgba(255,255,255,.8); padding:14px 18px; border-radius:var(--r); box-shadow:var(--shadow-xl); max-width:540px; width:calc(100% - 32px); display:none; align-items:center; gap:14px; z-index:9999; font-size:.82rem; }

/* ═══ AUTH ═══ */
.auth-page { min-height:100vh; background:var(--surface-2); display:flex; align-items:center; justify-content:center; padding:32px 16px; }
.auth-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:40px; width:100%; max-width:440px; box-shadow:var(--shadow-lg); }
.auth-logo { text-align:center; margin-bottom:28px; }
.auth-title { font-size:1.5rem; font-weight:800; text-align:center; margin-bottom:6px; }
.auth-subtitle { font-size:.87rem; color:var(--text-muted); text-align:center; margin-bottom:28px; }
.auth-footer { text-align:center; margin-top:24px; font-size:.84rem; color:var(--text-muted); }
.auth-footer a { color:var(--brand); font-weight:600; }
.pf-pj-toggle { display:flex; background:var(--surface-3); border-radius:var(--r-sm); padding:4px; margin-bottom:20px; }
.pf-pj-toggle button { flex:1; padding:8px; border-radius:6px; font-size:.84rem; font-weight:600; background:none; border:none; color:var(--text-muted); cursor:pointer; transition:var(--transition); }
.pf-pj-toggle button.active { background:white; color:var(--text-primary); box-shadow:var(--shadow-xs); }

/* ═══ ADMIN LAYOUT ═══ */
body.admin-body { background:var(--surface-2); }
.admin-layout { display:flex; min-height:100vh; }

.admin-sidebar { width:248px; background:var(--gray-700); position:fixed; top:0; left:0; bottom:0; overflow-y:auto; z-index:200; display:flex; flex-direction:column; transition:transform .28s cubic-bezier(.4,0,.2,1); scrollbar-width:none; }
.admin-sidebar::-webkit-scrollbar { display:none; }
.sidebar-header { padding:18px 18px 14px; border-bottom:1px solid rgba(255,255,255,.06); display:flex; align-items:center; justify-content:space-between; }
.sidebar-logo { font-family:var(--font-display); font-size:1.6rem; letter-spacing:.03em; color:white; line-height:1; }
.sidebar-logo span { color:var(--brand); }
.sidebar-badge-admin { font-size:.6rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; background:var(--brand); color:white; padding:2px 7px; border-radius:100px; }
.sidebar-nav { flex:1; padding:10px 10px 0; }
.sidebar-section { font-size:.62rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.22); padding:16px 10px 7px; }
.sidebar-link { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:var(--r-sm); font-size:.83rem; font-weight:500; color:rgba(255,255,255,.5); transition:var(--transition); margin-bottom:1px; position:relative; }
.sidebar-link:hover { background:rgba(255,255,255,.06); color:rgba(255,255,255,.9); }
.sidebar-link.active { background:rgba(232,93,4,.18); color:white; }
.sidebar-link.active::before { content:''; position:absolute; left:0; top:6px; bottom:6px; width:3px; background:var(--brand); border-radius:0 3px 3px 0; }
.sidebar-link-icon { font-size:.95rem; flex-shrink:0; width:18px; text-align:center; }
.sidebar-link-badge { margin-left:auto; background:var(--red); color:white; border-radius:100px; padding:1px 7px; font-size:.63rem; font-weight:700; }
.sidebar-footer { padding:10px; border-top:1px solid rgba(255,255,255,.07); margin-top:8px; }
.sidebar-user { display:flex; align-items:center; gap:10px; padding:10px; border-radius:var(--r-sm); transition:var(--transition); }
.sidebar-user:hover { background:rgba(255,255,255,.05); }
.sidebar-user-avatar { width:32px; height:32px; border-radius:50%; background:var(--brand); display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:800; color:white; flex-shrink:0; }
.sidebar-user-name { font-size:.82rem; font-weight:600; color:rgba(255,255,255,.8); }
.sidebar-user-role { font-size:.7rem; color:rgba(255,255,255,.32); }

.admin-topbar { height:58px; background:var(--surface); border-bottom:1px solid var(--border); display:flex; align-items:center; padding:0 24px; gap:12px; position:sticky; top:0; z-index:100; }
.topbar-icon-btn { width:36px; height:36px; border-radius:var(--r-sm); background:none; border:none; color:var(--text-muted); font-size:1.1rem; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:var(--transition); }
.topbar-icon-btn:hover { background:var(--surface-3); color:var(--text-primary); }
.topbar-title { font-size:.92rem; font-weight:700; color:var(--text-primary); }
.topbar-actions { margin-left:auto; display:flex; gap:8px; align-items:center; }

.admin-main { flex:1; margin-left:248px; display:flex; flex-direction:column; min-height:100vh; }
.admin-content { flex:1; padding:26px 28px; }
.admin-page-header { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.admin-page-title { font-size:1.2rem; font-weight:800; color:var(--text-primary); }
.admin-page-subtitle { font-size:.83rem; color:var(--text-muted); margin-top:3px; }

.admin-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); overflow:hidden; }
.admin-card-header { display:flex; align-items:center; justify-content:space-between; padding:13px 18px; border-bottom:1px solid var(--border); background:var(--surface-2); }
.admin-card-title { font-size:.87rem; font-weight:700; color:var(--text-primary); }
.admin-card-body { padding:18px; }

.admin-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media(max-width:1100px){.admin-stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.admin-stats-grid{grid-template-columns:1fr}}

.quick-actions { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:24px; }
.quick-action { background:var(--surface); border:1.5px solid var(--border); border-radius:var(--r); padding:16px; display:flex; flex-direction:column; align-items:center; gap:8px; cursor:pointer; transition:var(--transition-slow); text-decoration:none; }
.quick-action:hover { border-color:var(--brand); background:var(--brand-light); transform:translateY(-2px); }
.quick-action-icon { font-size:1.6rem; }
.quick-action-label { font-size:.76rem; font-weight:600; color:var(--text-secondary); text-align:center; }

.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:199; }
@media(max-width:900px){.admin-sidebar{transform:translateX(-100%)}.admin-sidebar.open{transform:none}.admin-main{margin-left:0}.sidebar-overlay.open{display:block}.admin-content{padding:18px 16px}}

/* ═══ ANIMATIONS ═══ */
.reveal { opacity:0; transform:translateY(18px); transition:opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity:1; transform:none; }
.delay-1{transition-delay:.1s}.delay-2{transition-delay:.2s}.delay-3{transition-delay:.3s}.delay-4{transition-delay:.4s}

/* ═══ TOASTS ═══ */
.toast-container { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.toast { background:var(--text-primary); color:white; padding:12px 18px; border-radius:var(--r-sm); font-size:.84rem; font-weight:500; box-shadow:var(--shadow-xl); display:flex; align-items:center; gap:10px; min-width:260px; max-width:340px; animation:toastIn .22s ease; pointer-events:all; }
.toast.success { border-left:3px solid var(--green); }
.toast.error   { border-left:3px solid var(--red); }
.toast.info    { border-left:3px solid var(--blue); }
@keyframes toastIn{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:none}}

/* ═══ MISC ═══ */
::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--gray-200);border-radius:100px}::-webkit-scrollbar-thumb:hover{background:var(--gray-300)}
input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}
input[type=number]{-moz-appearance:textfield}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.divider{height:1px;background:var(--border);margin:20px 0}

/* ── Completions adicionadas ─────────────────────────────── */
:root {
  --brand-light: #FFF2EF;
  --gray-700: #1A1A18;
}

/* Sidebar badges (admin) */
.sidebar-badge { margin-left:auto; border-radius:100px; padding:1px 7px; font-size:.63rem; font-weight:700; }
.sidebar-badge:not([class*="-"]) { background:var(--red); color:#fff; }
.sidebar-badge.amber { background:var(--amber); color:#fff; }
.sidebar-badge.green { background:var(--green); color:#fff; }

/* stat-card-icon amber / gold extras */
.stat-card-icon.amber { background:var(--amber-bg); }
.stat-card-icon.gold  { background:#FFFBEB; }

/* Breadcrumb (usado nas páginas public) */
.breadcrumb { display:flex; align-items:center; gap:6px; font-size:.82rem; color:var(--ink-4); flex-wrap:wrap; }
.breadcrumb a { color:var(--ink-3); } .breadcrumb a:hover { color:var(--brand); }
.breadcrumb .sep { color:var(--ink-4); }

/* Admin topbar sub */
.topbar-subtitle { font-size:.76rem; color:var(--ink-4); margin-top:1px; }
.topbar-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.topbar-icon-btn { background:none; border:none; cursor:pointer; font-size:1.15rem; padding:6px; color:var(--ink-3); border-radius:6px; }
.topbar-icon-btn:hover { background:var(--surface-3); }

/* Sidebar extras */
.sidebar-header { padding:18px 16px 14px; border-bottom:1px solid rgba(255,255,255,.07); flex-shrink:0; display:flex; align-items:center; justify-content:space-between; }
.sidebar-logo { font-family:'Outfit',sans-serif; font-size:1.2rem; font-weight:900; color:#fff; letter-spacing:-.03em; }
.sidebar-logo em { color:var(--brand); font-style:normal; }
.sidebar-admin-badge { font-size:.58rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; background:rgba(255,71,19,.2); color:var(--brand); padding:2px 8px; border-radius:100px; }
.sidebar-nav { padding:10px 10px; flex:1; overflow-y:auto; }
.sidebar-section-title { font-size:.62rem; font-weight:700; text-transform:uppercase; letter-spacing:.12em; color:rgba(255,255,255,.25); padding:12px 10px 5px; }
.sidebar-footer { padding:12px 10px 14px; border-top:1px solid rgba(255,255,255,.07); flex-shrink:0; }
.sidebar-user { display:flex; align-items:center; gap:10px; }
.sidebar-user-av { width:32px; height:32px; background:var(--brand); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:800; color:#fff; flex-shrink:0; }
.sidebar-user-name { font-size:.82rem; font-weight:700; color:rgba(255,255,255,.8); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-user-role { font-size:.68rem; color:rgba(255,255,255,.35); }
.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:199; }
