/* ==========================================================================
   CLUBE SUTIL — tema visual
   Cores da marca: azul #0643A9 e preto #000000
   ========================================================================== */

:root {
    --blue: #0643A9;
    --blue-700: #04317d;
    --blue-500: #1a5bd1;
    --blue-100: #dbe7fb;
    --blue-50: #eef4fe;
    --black: #000000;
    --ink: #0a0d14;
    --muted: #5a6477;
    --line: #e2e8f2;
    --bg: #f3f6fc;
    --white: #ffffff;

    --ok-bg: #dcf5e6;   --ok: #12683a;
    --warn-bg: #fff2cc; --warn: #8a5a00;
    --err-bg: #fde3e3;  --err: #a11d1d;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(6, 25, 66, .06), 0 8px 24px rgba(6, 25, 66, .07);
    --shadow-lg: 0 18px 50px rgba(6, 25, 66, .18);
    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

:focus-visible { outline: 3px solid rgba(6, 67, 169, .45); outline-offset: 2px; }

/* ---------- Cabeçalho ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 3px solid var(--blue);
    box-shadow: 0 4px 18px rgba(6, 25, 66, .08);
}

.topbar-inner {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--black);
    flex-shrink: 0;
}

.brand img { height: 52px; width: auto; display: block; }

.brand-text {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -.01em;
    padding-left: 12px;
    border-left: 2px solid var(--line);
    line-height: 1.1;
}
.brand-text b { color: var(--blue); font-weight: 800; }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    padding: 9px 13px;
    border-radius: 999px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav a:hover { background: var(--blue-50); color: var(--blue); }
.nav a.active { background: var(--blue); color: var(--white); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    padding-left: 14px;
    border-left: 2px solid var(--line);
}
.nav-user span {
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user a.nome {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--white); border: 2px solid var(--line);
    font-size: .85rem; font-weight: 700; color: var(--black);
    max-width: 190px;
}
.nav-user a.nome span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user a.nome svg { flex-shrink: 0; color: var(--blue); }
.nav-user a.nome:hover { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.nav-user a.exit {
    background: var(--black);
    color: var(--white);
    padding: 8px 16px;
}
.nav-user a.exit:hover { background: var(--blue); color: var(--white); }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    cursor: pointer;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 13px;
    width: 20px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--white);
    transition: transform .2s, opacity .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after  { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */

.container {
    width: min(100% - 32px, 1180px);
    margin: 36px auto 56px;
    flex: 1;
}

/* Páginas antigas abrem <div class="container"> dentro do <main class="container"> */
.container .container { width: 100%; margin: 0; flex: none; }

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.page-head h1 { position: relative; margin-bottom: 6px; padding-left: 16px; }
.page-head h1::before {
    content: "";
    position: absolute;
    left: 0; top: .12em; bottom: .12em;
    width: 6px;
    border-radius: 6px;
    background: var(--blue);
}
.page-head p { margin: 0; color: var(--muted); padding-left: 16px; }

/* ---------- Cards ---------- */

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.card > :last-child { margin-bottom: 0; }
.card h2 { color: var(--black); }

.auth-card {
    width: min(100%, 460px);
    margin: 28px auto;
    padding: 34px 30px;
    border-top: 5px solid var(--blue);
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 0 24px;
}

.stat {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    box-shadow: var(--shadow);
}
.stat::after {
    content: "";
    position: absolute;
    right: -26px; top: -26px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--blue-50);
}
.stat strong {
    position: relative; z-index: 1;
    display: block;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 8px;
}
.stat span { position: relative; z-index: 1; color: var(--muted); font-weight: 600; font-size: .9rem; }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.action-card {
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    border-left: 5px solid var(--blue);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    background: var(--blue-50);
}
.action-card strong { font-size: 1.05rem; color: var(--black); }
.action-card span { color: var(--muted); font-size: .92rem; }

/* ---------- Benefícios e parceiros (passageiro) ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.benefit-card > small:first-child {
    align-self: flex-start;
    background: var(--blue-50);
    color: var(--blue);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.benefit-card h2 { margin: 0; font-size: 1.15rem; }
.benefit-card > strong { color: var(--blue); }
.benefit-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.benefit-card small { color: var(--muted); }

/* Cartão Sutil */
.card-sutil {
    position: relative;
    overflow: hidden;
    width: min(100%, 430px);
    aspect-ratio: 1.586;
    margin: 0 0 24px;
    padding: 26px 28px;
    border-radius: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 55%, var(--black) 100%);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-sutil::before,
.card-sutil::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 38px solid rgba(255, 255, 255, .07);
}
.card-sutil::before { width: 260px; height: 260px; right: -90px; top: -110px; }
.card-sutil::after  { width: 220px; height: 220px; right: -30px; bottom: -140px; }
.card-sutil small  { font-weight: 700; letter-spacing: .24em; font-size: .78rem; opacity: .85; position: relative; z-index: 1; }
.card-sutil strong { font-size: clamp(1.5rem, 5vw, 2rem); letter-spacing: .12em; position: relative; z-index: 1; }
.card-sutil span   { font-weight: 600; font-size: .85rem; letter-spacing: .08em; position: relative; z-index: 1; }

/* ---------- Formulários ---------- */

form { display: grid; gap: 8px; }

label { font-weight: 600; font-size: .9rem; margin-top: 8px; color: var(--black); }

input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #cfd8e8;
    border-radius: var(--radius-sm);
    background: var(--white);
    font: inherit;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #9fb3d6; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(6, 67, 169, .15);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--blue); }
textarea { min-height: 110px; resize: vertical; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 18px;
}
.form-small { max-width: 420px; }

/* ---------- Botões ---------- */

.button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin-top: 10px;
    padding: 12px 22px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.button:hover, .btn:hover {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(6, 67, 169, .28);
}
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.button.secondary {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}
.button.secondary:hover { background: var(--black); color: var(--white); border-color: var(--black); box-shadow: none; }

.auth-card .button[type="submit"] { width: 100%; padding: 14px; margin-top: 14px; }

.actions, .inline-form, .search-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions .button { margin-top: 0; }
.inline-form { display: flex; }
.inline-form select { width: auto; padding: 8px 12px; }
.inline-form .button { margin-top: 0; padding: 8px 16px; font-size: .85rem; }
.search-form { margin-bottom: 20px; }
.search-form label { margin: 0; display: flex; gap: 8px; align-items: center; }
.search-form input, .search-form select { width: auto; }
.search-form input[type="text"], .search-form input[type="search"], .search-form input:not([type]) { min-width: min(100%, 300px); }
.summary-line { margin: 16px 0; color: var(--muted); }

.hint { color: var(--muted); font-size: .84rem; line-height: 1.45; margin: 4px 0 6px; }
.alert a { color: inherit; font-weight: 700; }

/* ---------- Avisos e selos ---------- */

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-weight: 500;
    border-left: 5px solid;
}
.alert.error   { background: var(--err-bg);  color: var(--err);  border-color: var(--err); }
.alert.success { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok); }
.alert.warning { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }

.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.badge.success { background: var(--ok-bg);   color: var(--ok); }
.badge.warning { background: var(--warn-bg); color: var(--warn); }
.badge.danger  { background: var(--err-bg);  color: var(--err); }

/* ---------- Tabelas ---------- */

.table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th {
    background: var(--black);
    color: var(--white);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}
.table-wrap td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: .94rem;
}
.table-wrap tbody tr:nth-child(even) { background: #f8faff; }
.table-wrap tbody tr:hover { background: var(--blue-50); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* ---------- Rodapé ---------- */

.footer {
    background: var(--black);
    color: #b9c2d3;
    border-top: 4px solid var(--blue);
}
.footer-inner {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .88rem;
}
.footer strong { color: var(--white); }
.footer em { font-style: normal; letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; color: #8fb0ee; }

/* ---------- Telas de acesso (login, cadastro, senha) ---------- */

body:has(.auth-card) { background: linear-gradient(160deg, var(--black) 0%, #031a45 55%, var(--blue) 100%) fixed; }
body:has(.auth-card) .container { display: flex; align-items: center; justify-content: center; }
body:has(.auth-card) .container > .auth-card { flex: 0 1 460px; margin: 0; }
.auth-card form + p, .auth-card p + p { margin-top: 14px; margin-bottom: 0; font-size: .92rem; }
body:has(.auth-card) .auth-card h1 { color: var(--black); margin-bottom: 18px; }

/* ---------- Página inicial ---------- */

.landing { background: var(--white); }

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(26, 91, 209, .55), transparent 60%),
        linear-gradient(150deg, var(--black) 0%, #03153a 55%, var(--blue) 130%);
}
.hero::after {
    content: "";
    position: absolute;
    left: -10%; right: -10%; bottom: -1px;
    height: 80px;
    background: var(--white);
    clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-nav {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.hero-nav .nav-links { display: flex; gap: 10px; align-items: center; }
.hero-nav .button { margin: 0; padding: 10px 20px; }
.hero-nav .button.secondary { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.hero-nav .button.secondary:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.hero-nav .logo-chip {
    background: var(--white);
    border-radius: 14px;
    padding: 6px 12px;
    display: flex; align-items: center; gap: 10px;
    color: var(--black); text-decoration: none; font-weight: 500;
}
.hero-nav .logo-chip img { height: 42px; width: auto; }
.hero-nav .logo-chip b { color: var(--blue); font-weight: 800; }

.hero-grid {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 56px 0 130px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #7fa9f5; }
.hero p.lead { font-size: 1.12rem; color: #d3ddf1; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .cta .button { margin: 0; padding: 15px 28px; font-size: 1rem; background: var(--white); border-color: var(--white); color: var(--black); }
.hero .cta .button:hover { background: var(--blue-100); border-color: var(--blue-100); box-shadow: none; color: var(--black); }
.hero .cta .button.secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.hero .cta .button.secondary:hover { background: var(--white); color: var(--black); }

.hero-visual { display: flex; justify-content: center; }
.hero-visual .card-sutil { width: min(100%, 400px); margin: 0; transform: rotate(-5deg); border: 1px solid rgba(255, 255, 255, .18); }

.section { width: min(100% - 32px, 1180px); margin: 0 auto; padding: 56px 0 24px; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; text-align: center; margin-bottom: 8px; }
.section .sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 36px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
    position: relative;
}
.step .num {
    display: inline-grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--blue); color: var(--white);
    font-weight: 800; font-size: 1.2rem;
    margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

.rule-banner {
    margin: 40px auto 0;
    width: min(100% - 32px, 1180px);
    border-radius: 22px;
    padding: 36px 40px;
    color: var(--white);
    background: linear-gradient(120deg, var(--black), var(--blue-700) 70%, var(--blue));
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.rule-banner h2 { color: var(--white); text-align: left; margin: 0 0 6px; }
.rule-banner p { margin: 0; color: #d3ddf1; max-width: 640px; }
.rule-banner .button { background: var(--white); border-color: var(--white); color: var(--black); margin: 0; }
.rule-banner .button:hover { background: var(--blue-100); border-color: var(--blue-100); box-shadow: none; color: var(--black); }

.landing .footer { margin-top: 56px; }

/* ---------- Painel do passageiro ---------- */

.status-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    color: var(--white);
    background: linear-gradient(120deg, var(--black), var(--blue-700) 65%, var(--blue));
    box-shadow: var(--shadow-lg);
}
.status-hero h2 { color: var(--white); margin: 0 0 4px; font-size: 1.5rem; }
.status-hero p { margin: 0; color: #d3ddf1; }
.status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .06em;
    background: var(--white);
    color: var(--black);
}
.status-pill::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #9aa5b8; }
.status-pill.ativo::before { background: #1fbf68; box-shadow: 0 0 0 5px rgba(31, 191, 104, .25); }
.status-pill.aguardando::before { background: #f2b01e; box-shadow: 0 0 0 5px rgba(242, 176, 30, .25); }

/* Painel do passageiro em duas colunas */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.dash-grid > .card, .dash-col > .card { margin-bottom: 20px; }
.dash-col { display: flex; flex-direction: column; }
.dash-grid .card-sutil { width: 100%; }

/* ---------- Parceiros ---------- */

.parceiros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.parceiro-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.parceiro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.parceiro-thumb {
    height: 170px;
    display: flex; align-items: center; justify-content: center;
    background: var(--blue-50);
    border-bottom: 1px solid var(--line);
    padding: 14px;
}
.parceiro-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.parceiro-inicial {
    width: 84px; height: 84px; border-radius: 24px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--black));
    color: var(--white); font-size: 2.2rem; font-weight: 800;
}

.parceiro-corpo { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; align-items: flex-start; }
.parceiro-corpo h3 { margin: 4px 0 0; font-size: 1.15rem; color: var(--black); }
.parceiro-desc { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

.parceiro-linha {
    display: flex; align-items: flex-start; gap: 8px;
    color: var(--ink); font-size: .9rem; line-height: 1.35;
    text-decoration: none; word-break: break-word;
}
.parceiro-linha svg { flex-shrink: 0; margin-top: 1px; color: var(--blue); }
a.parceiro-linha:hover { color: var(--blue); text-decoration: underline; }
.parceiro-beneficios { margin-top: auto; }

/* ---------- Instalação do app (PWA) ---------- */

.pwa-banner {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: pwa-up .35s ease-out;
}
.pwa-banner[hidden] { display: none; }
.pwa-banner img { border-radius: 12px; flex-shrink: 0; }
.pwa-text { flex: 1; min-width: 0; }
.pwa-text strong { display: block; color: var(--black); font-size: .98rem; }
.pwa-text span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 2px; }
.pwa-share { display: inline-block; color: var(--blue); font-weight: 800; }
.pwa-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.pwa-actions button {
    font: inherit; font-weight: 700; font-size: .85rem;
    padding: 9px 16px; border-radius: 999px; cursor: pointer;
    border: 2px solid var(--blue); background: var(--blue); color: var(--white);
}
.pwa-actions .pwa-no { background: transparent; color: var(--muted); border-color: transparent; padding: 6px 12px; }
.pwa-actions .pwa-yes:hover { background: var(--blue-700); border-color: var(--blue-700); }
.pwa-link {
    font: inherit; font-size: .85rem; font-weight: 600;
    background: none; border: 0; padding: 0; cursor: pointer;
    color: #8fb0ee; text-decoration: underline; text-underline-offset: 3px;
}
.pwa-link[hidden] { display: none; }
@keyframes pwa-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 420px) {
    .pwa-banner { flex-wrap: wrap; }
    .pwa-actions { flex-direction: row; width: 100%; justify-content: flex-end; }
}

/* App instalado: sem barra do navegador, então reforça áreas de toque */
@media (display-mode: standalone) {
    body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 1020px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 18px;
        background: var(--white);
        border-bottom: 3px solid var(--blue);
        box-shadow: 0 18px 30px rgba(6, 25, 66, .15);
        display: none;
    }
    .nav.open { display: flex; }
    .nav a { padding: 13px 16px; border-radius: 12px; }
    .nav-user { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 2px solid var(--line); justify-content: space-between; }
    .nav-user span, .nav-user a.nome { max-width: none; }
}

@media (max-width: 900px) {
    .dash-grid { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; padding: 28px 0 110px; gap: 36px; }
    .hero-visual { order: -1; }
    .hero-visual .card-sutil { width: min(86%, 340px); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .stats-grid, .admin-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .page-head { align-items: flex-start; flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .search-form label, .search-form input, .search-form select { width: 100%; display: block; }
    .container { margin-top: 24px; }
    .card { padding: 20px; }
    .brand-text { display: none; }
    .rule-banner { padding: 28px 24px; }
    .hero-nav .nav-links .button.secondary { display: none; }
}

@media (max-width: 520px) {
    .stats-grid, .admin-grid, .steps { grid-template-columns: 1fr; }
    .stat strong { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ---------- Rodapé: links ---------- */

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #c9d6f0; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Páginas de texto (privacidade, como funciona) ---------- */

.doc { max-width: 860px; margin: 0 auto; }
.doc h2 { margin-top: 2em; font-size: 1.25rem; color: var(--black); padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.doc h3 { margin-top: 1.4em; font-size: 1.05rem; }
.doc p, .doc li { line-height: 1.7; color: #2a3347; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc a { font-weight: 600; }
.doc code { background: var(--blue-50); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.doc-meta { color: var(--muted); font-size: .9rem; }
.doc .destaque { background: var(--blue-50); border-left: 5px solid var(--blue); padding: 14px 18px; border-radius: 10px; margin: 1.2em 0; line-height: 1.6; }
.doc .tabela-scroll { overflow-x: auto; margin: 1em 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--blue-50); color: var(--black); }
.doc details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 10px 0; }
.doc summary { cursor: pointer; font-weight: 700; color: var(--black); }
.doc details[open] summary { margin-bottom: .6em; }
.doc details p { margin: 0; }