﻿/* =============================================
   VOZ A BORDO — Folha de Estilos Principal
   ============================================= */

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

:root {
    --primary:          #1D4ED8;
    --primary-light:    #3B82F6;
    --primary-dark:     #1E3A8A;
    --primary-50:       #EFF6FF;
    --primary-100:      #DBEAFE;

    --secondary:        #EA580C;
    --secondary-light:  #F97316;
    --secondary-dark:   #C2410C;

    --accent:           #7C3AED;
    --success:          #059669;
    --success-bg:       #D1FAE5;
    --warning:          #D97706;
    --warning-bg:       #FEF3C7;
    --danger:           #DC2626;
    --danger-bg:        #FEE2E2;
    --info:             #0891B2;
    --info-bg:          #CFFAFE;

    --dark:             #0F172A;
    --gray-900:         #111827;
    --gray-800:         #1F2937;
    --gray-700:         #374151;
    --gray-600:         #4B5563;
    --gray-500:         #6B7280;
    --gray-400:         #9CA3AF;
    --gray-300:         #D1D5DB;
    --gray-200:         #E5E7EB;
    --gray-100:         #F3F4F6;
    --gray-50:          #F9FAFB;
    --white:            #FFFFFF;

    --shadow-sm:  0 1px 2px rgba(0,0,0,.06);
    --shadow:     0 2px 8px rgba(0,0,0,.10);
    --shadow-md:  0 4px 16px rgba(0,0,0,.12);
    --shadow-lg:  0 8px 30px rgba(0,0,0,.14);
    --shadow-xl:  0 20px 60px rgba(0,0,0,.18);

    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-2xl: 32px;
    --radius-full:9999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Syne', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(.4,0,.2,1);
    --t:    .2s;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ── Container ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.main-header {
    background: linear-gradient(135deg, #0F2580 0%, #1A3DBF 40%, var(--primary) 75%, #4F8EF7 100%);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 4px 28px rgba(10,50,180,.45);
    overflow: visible;
}
.main-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 680px;
    background: linear-gradient(to right, #fff 0%, #fff 65%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Logo */
.logo {
    display: flex; align-items: center;
    text-decoration: none; flex-shrink: 0;
}
.logo img { height: 56px; width: auto; display: block; }

/* Nome do usuário logado no header */
.nav-user-name {
    color: rgba(255,255,255,.9);
    font-size: .82rem;
    font-weight: 600;
    padding: 5px 10px;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fallback texto (caso sem imagem) */
.logo-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
}
.logo-text {
    font-size: 1.3rem; font-weight: 800;
    color: var(--white); letter-spacing: -.5px;
}
.logo-text span { color: var(--secondary-light); }

/* ── Sub-nav abaixo do header ── */
.page-subnav {
    background: #1A3DBF;
    position: sticky;
    top: 68px;
    z-index: 99;
}
.subnav-inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-btn {
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: .82rem;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.72);
    background: transparent;
    cursor: pointer;
    transition: .18s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.subnav-btn:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.subnav-btn.on {
    background: rgba(255,255,255,.2);
    color: #fff;
    border-color: rgba(255,255,255,.45);
}

/* Nav */
.main-nav {
    display: flex; align-items: center; gap: 8px;
    margin-left: auto;
}
.main-nav a {
    color: rgba(255,255,255,.85);
    font-weight: 500; font-size: .9rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all var(--t);
    white-space: nowrap;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.12); }

.btn-nav-primary {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light)) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 4px 14px rgba(234,88,12,.4) !important;
    transition: all var(--t) !important;
}
.btn-nav-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234,88,12,.5) !important;
    background: rgba(0,0,0,0) !important;
    background: linear-gradient(135deg,#b83b08,var(--secondary)) !important;
}

.btn-nav-outline {
    border: 1.5px solid rgba(255,255,255,.5) !important;
    color: var(--white) !important;
    padding: 7px 18px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    transition: all var(--t) !important;
}
.btn-nav-outline:hover {
    background: rgba(255,255,255,.15) !important;
    border-color: var(--white) !important;
}
.btn-nav-intranet {
    border: 1.5px solid rgba(167,139,250,.6) !important;
    color: #c4b5fd !important;
    padding: 7px 18px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    font-size: .875rem !important;
    transition: all var(--t) !important;
    letter-spacing: .2px;
}
.btn-nav-intranet:hover {
    background: rgba(124,58,237,.25) !important;
    border-color: #a78bfa !important;
    color: #ede9fe !important;
}

/* Hamburger */
.menu-toggle {
    display: none; background: none; border: none;
    flex-direction: column; gap: 5px; padding: 4px;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--white); border-radius: 2px;
    transition: var(--t);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
    background: linear-gradient(145deg, #0B1E6B 0%, #1740C8 38%, #2563EB 65%, #3B7CF7 100%);
    padding: 76px 0 96px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 80% 50%, rgba(99,168,255,.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 10% 80%, rgba(249,115,22,.12) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23fff' fill-opacity='.06'/%3E%3C/svg%3E");
}
.hero::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 72px;
    background: var(--gray-50);
    clip-path: ellipse(56% 100% at 50% 100%);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 52px;
    align-items: center;
}

/* Floating hero card */
.hero-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.1);
    padding: 20px 22px;
    width: 296px;
    flex-shrink: 0;
    border-top: 3px solid var(--secondary);
    position: relative;
}
.hero-card-new {
    position: absolute; top: 14px; right: 14px;
    font-size: .6rem; font-weight: 700; letter-spacing: .6px;
    color: var(--success); display: flex; align-items: center; gap: 3px;
}
.hero-card-label {
    font-size: .68rem; font-weight: 700; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px;
}
.hero-card-company {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.hero-card-avatar {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, #1A3DBF, #2563EB);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: .82rem; flex-shrink: 0;
}
.hero-card-company-name { font-weight: 700; font-size: .88rem; color: #0D1526; }
.hero-card-company-cat { font-size: .74rem; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.hero-card-title {
    font-weight: 700; font-size: .84rem; color: #0D1526;
    margin-bottom: 8px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card-route {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
    color: var(--primary); margin-bottom: 10px;
    background: #EEF4FF; padding: 7px 10px; border-radius: var(--radius);
}
.hero-card-status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: var(--radius-full);
    font-size: .71rem; font-weight: 700;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    font-weight: 800; color: var(--white);
    letter-spacing: -.7px; line-height: 1.08;
    margin-bottom: 16px;
    text-wrap: balance;
}
.hero h1 span {
    background: linear-gradient(90deg, #FDBA74, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.05rem; color: rgba(255,255,255,.68);
    max-width: 480px; margin: 0 0 34px;
    line-height: 1.7;
}

/* Hero search */
.hero-search {
    max-width: 520px;
    display: flex; background: rgba(255,255,255,.97);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.1);
}
.hero-search input {
    flex: 1; border: none; outline: none;
    padding: 15px 22px; font-size: .95rem; color: var(--gray-800);
    background: transparent;
}
.hero-search button {
    background: linear-gradient(135deg, #B83A08, #F07030);
    color: var(--white); border: none;
    padding: 15px 26px; font-weight: 700; font-size: .9rem;
    transition: all var(--t); white-space: nowrap;
}
.hero-search button:hover { filter: brightness(1.08); }

/* Hero stats */
.hero-stats {
    display: flex; gap: 0;
    margin-top: 44px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 520px;
}
.hero-stat {
    flex: 1; padding: 14px 18px; color: var(--white);
    border-right: 1px solid rgba(255,255,255,.14);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem; line-height: 1; margin-bottom: 2px;
}
.hero-stat span {
    font-size: .72rem; color: rgba(255,255,255,.58);
    font-weight: 500; text-transform: uppercase; letter-spacing: .4px;
}

/* ─────────────────────────────────────────
   BADGES & STATUS
───────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: .75rem; font-weight: 600;
}
.status-pending,  .s-pend { background: #FEF3C7; color: #9A5200; border: 1px solid rgba(217,119,6,.18); }
.status-progress, .s-prog { background: #E0F2FE; color: #0369A1; border: 1px solid rgba(2,132,199,.18); }
.status-replied,  .s-repl { background: #EEF2FF; color: #3730A3; border: 1px solid rgba(99,102,241,.18); }
.status-resolved, .s-res  { background: #D1FAE5; color: #065F46; border: 1px solid rgba(5,150,105,.2); }
.s-bad { background: #FEE2E2; color: #991B1B; border: 1px solid rgba(220,38,38,.18); }
.status-unresolved { background: var(--danger-bg);   color: var(--danger);   }

/* ─────────────────────────────────────────
   CARDS
───────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--t), transform var(--t);
    border: 1px solid var(--gray-100);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 1rem; font-weight: 700; color: var(--gray-800); }

/* Complaint card */
.complaint-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 22px 24px;
    transition: all var(--t);
    cursor: pointer;
    display: block;
}
.complaint-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-50), var(--shadow-md);
    transform: translateY(-2px);
}
.complaint-card-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 16px;
    margin-bottom: 12px;
}
.complaint-company {
    display: flex; align-items: center; gap: 10px;
}
.company-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-weight: 800; font-size: 1rem;
    flex-shrink: 0;
}
.complaint-meta { font-size: .8rem; color: var(--gray-500); margin-top: 2px; }
.complaint-title {
    font-weight: 700; font-size: 1rem; color: var(--gray-900);
    margin-bottom: 8px; line-height: 1.4;
}
.complaint-desc {
    font-size: .88rem; color: var(--gray-600);
    line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.complaint-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap; gap: 8px;
}
.flight-tag {
    display: flex; align-items: center; gap: 6px;
    font-size: .8rem; color: var(--gray-500); font-weight: 500;
}
.flight-tag strong { color: var(--gray-700); }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 22px;
    border-radius: var(--radius-full); font-weight: 600;
    font-size: .9rem; border: none; cursor: pointer;
    transition: all var(--t); white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(29,78,216,.35);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29,78,216,.45);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(234,88,12,.35);
}
.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234,88,12,.45);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary-50); }
.btn-success {
    background: linear-gradient(135deg, #047857, var(--success));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(5,150,105,.35);
}
.btn-danger {
    background: linear-gradient(135deg, #b91c1c, var(--danger));
    color: var(--white);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-block { width: 100%; }

/* ─────────────────────────────────────────
   FORMS
───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-label {
    display: block; font-size: .78rem; font-weight: 700;
    color: var(--gray-500); margin-bottom: 7px;
    text-transform: uppercase; letter-spacing: .5px;
}
.form-label span { color: var(--danger); margin-left: 2px; }
.form-field {
    position: relative;
}
.form-field .field-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--gray-400); pointer-events: none; font-size: 1rem; line-height: 1;
}
.form-field .form-control { padding-left: 40px; }
.form-control {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: .925rem; color: var(--gray-900);
    background: #F8FAFF;
    transition: border-color .18s, box-shadow .18s, background .18s;
    outline: none; font-family: var(--font-sans);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:hover:not(:focus) { border-color: var(--gray-300); background: #F3F6FF; }
.form-control:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.form-control:invalid:not(:placeholder-shown) { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.6; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 42px;
    cursor: pointer;
}
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 4px; font-weight: 500; }

/* ─────────────────────────────────────────
   ALERTS / FLASH MESSAGES
───────────────────────────────────────── */
.alert {
    padding: 14px 18px; border-radius: var(--radius);
    font-size: .9rem; font-weight: 500; margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger   { background: var(--danger-bg);  color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning  { background: var(--warning-bg); color: #92400e; border: 1px solid #fcd34d; }
.alert-info     { background: var(--info-bg);    color: #164e63; border: 1px solid #67e8f9; }

/* ─────────────────────────────────────────
   AUTH PAGES
───────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 68px);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%; max-width: 480px;
    overflow: hidden;
}
.auth-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 36px 40px 30px;
    text-align: center;
}
.auth-logo {
    font-size: 2rem; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
}
.auth-card-header h2 { color: var(--white); font-size: 1.4rem; font-weight: 800; }
.auth-card-header p  { color: rgba(255,255,255,.7); font-size: .88rem; margin-top: 4px; }

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
}
.auth-tab {
    flex: 1; padding: 14px;
    text-align: center; font-weight: 600; font-size: .9rem;
    color: var(--gray-500); cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--t);
    background: none; border-left: none; border-right: none; border-top: none;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.auth-body { padding: 32px 40px; }
.auth-footer {
    text-align: center; padding: 20px 40px;
    border-top: 1px solid var(--gray-100);
    font-size: .88rem; color: var(--gray-500);
}
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Register page */
.register-page {
    min-height: calc(100vh - 68px);
    background: var(--gray-50);
    padding: 48px 20px;
}
.register-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    max-width: 680px; margin: 0 auto;
    overflow: hidden;
}
.register-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px; text-align: center;
}
.register-header h2 { color: var(--white); font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.register-header p  { color: rgba(255,255,255,.7); font-size: .9rem; }
.register-body { padding: 40px; }

/* ─────────────────────────────────────────
   SECTION TITLES
───────────────────────────────────────── */
.section { padding: 56px 0; }
.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 800;
    color: var(--gray-900); margin-bottom: 4px;
    letter-spacing: -.4px;
    position: relative; display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 28px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}
.section-subtitle { color: var(--gray-500); font-size: .95rem; margin-bottom: 32px; }
.section-header {
    display: flex; align-items: flex-end;
    justify-content: space-between; margin-bottom: 28px;
    flex-wrap: wrap; gap: 12px;
}

/* ─────────────────────────────────────────
   COMPLAINT LIST
───────────────────────────────────────── */
.complaint-list { display: flex; flex-direction: column; gap: 12px; }

.filters-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}
.filter-btn {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: .82rem; font-weight: 600;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-600); background: none;
    cursor: pointer; transition: all var(--t);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary); color: var(--white);
    border-color: var(--primary);
}

/* ─────────────────────────────────────────
   COMPLAINT DETAIL PAGE
───────────────────────────────────────── */
.complaint-page { padding: 40px 0 60px; }
.complaint-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 24px;
    align-items: flex-start;
}
.complaint-main-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.complaint-main-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 28px 32px;
    color: var(--white);
}
.complaint-main-card-header h1 { font-size: 1.3rem; font-weight: 800; line-height: 1.35; margin-bottom: 12px; }
.complaint-main-card-body { padding: 32px; }
.complaint-label {
    font-size: .78rem; font-weight: 700; color: var(--gray-400);
    text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px;
}
.complaint-text { font-size: .95rem; color: var(--gray-700); line-height: 1.7; }

/* Response box */
.response-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #6ee7b7;
    border-radius: var(--radius-lg);
    padding: 24px; margin-top: 24px;
}
.response-box-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.response-box-header h4 { font-size: 1rem; font-weight: 700; color: #065f46; }
.response-badge {
    background: var(--success); color: var(--white);
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: .72rem; font-weight: 700;
}

/* Sidebar info card */
.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden; margin-bottom: 16px;
}
.info-card-title {
    padding: 14px 20px;
    background: var(--gray-50);
    font-size: .82rem; font-weight: 700;
    color: var(--gray-500); text-transform: uppercase; letter-spacing: .8px;
    border-bottom: 1px solid var(--gray-200);
}
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; font-size: .875rem;
    border-bottom: 1px solid var(--gray-100);
}
.info-row:last-child { border-bottom: none; }
.info-row label { color: var(--gray-500); font-weight: 500; }
.info-row span  { font-weight: 700; color: var(--gray-800); }

/* Company card in sidebar */
.company-sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding: 20px; text-align: center;
}
.company-sidebar-avatar {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--white); font-weight: 900;
}
.company-sidebar-name { font-weight: 800; font-size: 1.05rem; color: var(--gray-900); }
.verified-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--primary-50); color: var(--primary);
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: .72rem; font-weight: 700; margin-top: 6px;
}

/* ─────────────────────────────────────────
   DASHBOARD
───────────────────────────────────────── */
.dashboard-page { padding: 40px 0 60px; }
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px 0 48px;
    margin-bottom: -28px;
}
.dashboard-header h1 { color: var(--white); font-size: 1.6rem; font-weight: 800; }
.dashboard-header p  { color: rgba(255,255,255,.7); margin-top: 4px; font-size: .9rem; }

.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.stat-card.orange { border-left-color: var(--secondary); }
.stat-card.green  { border-left-color: var(--success); }
.stat-card.red    { border-left-color: var(--danger); }
.stat-card-num {
    font-size: 2rem; font-weight: 900;
    color: var(--gray-900); line-height: 1;
    margin-bottom: 4px;
}
.stat-card-label { font-size: .8rem; color: var(--gray-500); font-weight: 600; }

/* ─────────────────────────────────────────
   COMPANIES PAGE
───────────────────────────────────────── */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.company-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
    cursor: pointer;
}
.company-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.company-card-avatar {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--white); font-weight: 900;
}
.company-card-name { font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.company-card-stats { font-size: .8rem; color: var(--gray-500); }

/* ─────────────────────────────────────────
   NOVA RECLAMAÇÃO
───────────────────────────────────────── */
.new-complaint-page { padding: 48px 0 64px; }
.new-complaint-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden; max-width: 760px; margin: 0 auto;
}
.new-complaint-header {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
    padding: 36px 48px; color: var(--white);
}
.new-complaint-header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.new-complaint-header p  { color: rgba(255,255,255,.75); font-size: .9rem; }
.new-complaint-body { padding: 40px 48px; }

/* Step indicator */
.steps {
    display: flex; align-items: center;
    margin-bottom: 36px; gap: 0;
}
.step {
    display: flex; align-items: center; gap: 8px;
    flex: 1;
}
.step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem;
    background: var(--gray-200); color: var(--gray-500);
    flex-shrink: 0; transition: all var(--t);
}
.step.active .step-num { background: var(--secondary); color: var(--white); }
.step.done .step-num   { background: var(--success);   color: var(--white); }
.step-label { font-size: .8rem; font-weight: 600; color: var(--gray-500); }
.step.active .step-label { color: var(--secondary); }
.step-line {
    flex: 1; height: 2px;
    background: var(--gray-200); margin: 0 8px;
}

/* Section divider */
.form-section-title {
    font-size: .78rem; font-weight: 700;
    color: var(--gray-400); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 18px;
    padding-bottom: 8px; border-bottom: 1px solid var(--gray-200);
}

/* Flight route display */
.route-display {
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex; align-items: center;
    gap: 12px; margin-bottom: 20px;
    border: 1px solid var(--primary-100);
}
.route-airport {
    text-align: center; flex: 1;
    font-size: 1.4rem; font-weight: 900; color: var(--primary-dark);
}
.route-airport small { display: block; font-size: .7rem; font-weight: 500; color: var(--gray-500); }
.route-arrow { font-size: 1.2rem; color: var(--primary-light); }

/* ─────────────────────────────────────────
   RATING STARS
───────────────────────────────────────── */
.rating { display: flex; gap: 4px; }
.star {
    font-size: 1.4rem; cursor: pointer;
    transition: transform var(--t);
    filter: grayscale(1) opacity(.4);
}
.star.active, .star:hover { filter: none; transform: scale(1.15); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.main-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 48px 0 28px;
    margin-top: 60px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
    margin-bottom: 40px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: .875rem; margin-top: 12px; max-width: 300px; line-height: 1.65; }
.footer-title {
    font-size: .8rem; font-weight: 700;
    color: var(--white); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    font-size: .88rem; color: var(--gray-500);
    transition: color var(--t);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: .8rem; flex-wrap: wrap; gap: 8px;
}

/* ─────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 64px 24px;
    color: var(--gray-400);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; color: var(--gray-600); font-weight: 700; margin-bottom: 8px; }
.empty-state p  { font-size: .88rem; }

/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; color: var(--gray-500);
    margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-300); }

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.pagination {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 32px; flex-wrap: wrap;
}
.page-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-weight: 600; font-size: .88rem;
    border: 1.5px solid var(--gray-300); background: var(--white);
    color: var(--gray-700); cursor: pointer; transition: all var(--t);
}
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.page-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ─────────────────────────────────────────
   MISC UTILITIES
───────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted   { color: var(--gray-500); }
.text-small   { font-size: .82rem; }
.fw-700       { font-weight: 700; }
.mt-8   { margin-top: 8px;  }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-0   { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }

/* ─────────────────────────────────────────
   ADMIN AREA
───────────────────────────────────────── */

/* Admin header bar */
.admin-header {
    background: linear-gradient(135deg, #3730A3, #7C3AED, #6D28D9);
    padding: 36px 0 44px;
    margin-bottom: -24px;
    box-shadow: 0 4px 24px rgba(109,40,217,.3);
}
.admin-header-inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.admin-eyebrow {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,.6); margin-bottom: 6px;
}
.admin-eyebrow a { color: rgba(255,255,255,.6); }
.admin-eyebrow a:hover { color: rgba(255,255,255,.9); }
.admin-title {
    font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.4px;
}

/* Admin page body */
.admin-page { padding: 40px 0 64px; }

/* Admin stats grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    margin-top: 32px;
}
.admin-stat {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
    border-left: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    text-align: center;
}
.admin-stat.violet { border-top-color: #7C3AED; }
.admin-stat.blue   { border-top-color: var(--primary); }
.admin-stat.orange { border-top-color: var(--secondary); }
.admin-stat.green  { border-top-color: var(--success); }
.admin-stat-icon  { font-size: 1.5rem; margin-bottom: 6px; }
.admin-stat-num   { font-size: 1.8rem; font-weight: 900; color: var(--gray-900); line-height: 1; }
.admin-stat-label { font-size: .72rem; color: var(--gray-500); font-weight: 600; margin-top: 4px; }

/* Admin table */
.admin-table {
    width: 100%; border-collapse: collapse; font-size: .875rem;
}
.admin-table th {
    padding: 11px 16px; text-align: left;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
    color: var(--gray-500); border-bottom: 1.5px solid var(--gray-200);
    white-space: nowrap; background: var(--gray-50);
}

/* ── Upload de Documentos ── */
.doc-slot { margin-bottom: 10px; }
.doc-slot-inner {
    display: grid;
    grid-template-columns: 220px 1fr 36px;
    gap: 10px;
    align-items: center;
}
.doc-drop {
    display: flex; align-items: center; gap: 12px;
    border: 2px dashed var(--gray-300); border-radius: var(--radius);
    padding: 12px 16px; cursor: pointer; transition: .2s;
    background: var(--gray-50);
    user-select: none;
}
.doc-drop:hover, .doc-drop.dragover {
    border-color: var(--primary); background: var(--primary-50);
}
.doc-drop.has-file {
    border-style: solid; border-color: var(--success);
    background: #f0fdf4;
}
.doc-drop input[type=file] { display: none; }
.doc-drop-ico { font-size: 1.4rem; flex-shrink: 0; }
.doc-drop-text {
    display: flex; flex-direction: column; gap: 2px;
    font-size: .85rem; color: var(--gray-600);
}
.doc-drop-text strong { color: var(--gray-800); font-weight: 600; }
.doc-drop-text small  { font-size: .75rem; color: var(--gray-400); }
.doc-remove-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid var(--gray-300); background: #fff;
    color: var(--gray-500); font-size: .8rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: .15s; flex-shrink: 0;
}
.doc-remove-btn:hover { border-color: var(--danger); color: var(--danger); background: #fff5f5; }
.doc-error { font-size: .78rem; color: var(--danger); margin-top: 4px; font-weight: 500; }

/* Lista de documentos no detalhe da reclamação */
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border: 1px solid var(--gray-200);
    border-radius: var(--radius); background: var(--gray-50);
    font-size: .84rem;
}
.doc-item-ico  { font-size: 1.2rem; flex-shrink: 0; }
.doc-item-info { flex: 1; min-width: 0; }
.doc-item-name { font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item-meta { font-size: .74rem; color: var(--gray-400); margin-top: 1px; }
.doc-item-dl   { font-size: .78rem; font-weight: 600; color: var(--primary); white-space: nowrap; }

@media (max-width: 640px) {
    .doc-slot-inner { grid-template-columns: 1fr 36px; }
    .doc-slot-inner .form-control:first-child { grid-column: 1 / -1; }
}
.admin-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

@media (max-width: 900px) {
    .admin-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Spinner */
.spinner {
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .complaint-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .main-header::before { display: none; }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex; flex-direction: column; position: fixed;
        top: 68px; left: 0; right: 0; bottom: 0;
        background: var(--primary-dark);
        padding: 24px 20px; z-index: 99; overflow-y: auto;
        gap: 6px;
    }
    .main-nav.open a { width: 100%; text-align: center; padding: 14px; font-size: 1rem; }
    .menu-toggle { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { flex-wrap: wrap; max-width: 100%; }
    .hero-stat { flex: 1; min-width: 100px; }
    .new-complaint-body { padding: 28px 24px; }
    .register-body { padding: 28px 24px; }
    .auth-body { padding: 24px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero { padding: 56px 0 80px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-search { flex-direction: column; border-radius: var(--radius-lg); }
    .hero-search button { border-radius: 0; width: 100%; }
}
