/* Tô no Jogo — estilos base. Mobile first, sem frameworks.
   Identidade: azul-marinho (noite de jogo), azul principal, amarelo de destaque (bola/cartão).
   O topo lembra um campo visto de cima: faixas de corte da grama e linhas do meio-campo, em tons de azul. */

:root {
    --navy-950: #071a33;
    --navy-900: #0b2545;
    --navy-800: #12345f;
    --blue-700: #1351a8;
    --blue-800: #0e3f86;
    --blue-600: #1d64c8;
    --blue-100: #dde8f8;
    --blue-50: #eef4fc;
    --bg: #f2f5f9;
    --ink: #13233a;
    --muted: #4f5f76;
    --line: #d5deea;
    --white: #ffffff;
    --amber: #f5b301;
    --amber-100: #fdf1cf;
    --amber-800: #6e5000;
    --red-700: #b42328;
    --red-100: #fbe3e4;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 4px 16px rgba(11, 37, 69, .06);
    --focus: 0 0 0 2px #ffffff, 0 0 0 5px #1d64c8;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.card-title { margin-top: 0; }

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--amber); color: var(--ink); padding: 8px 12px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Topo: campo visto de cima, em azul */
.topbar {
    color: var(--white);
    background-color: var(--navy-900);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='2'%3E%3Ccircle cx='120' cy='60' r='38'/%3E%3Cline x1='120' y1='-10' x2='120' y2='130'/%3E%3C/g%3E%3Ccircle cx='120' cy='60' r='3' fill='%23ffffff' fill-opacity='.14'/%3E%3C/svg%3E"),
        repeating-linear-gradient(90deg, var(--navy-900) 0 48px, #0d2a4f 48px 96px);
    background-repeat: no-repeat, repeat;
    background-position: right -40px center, 0 0;
    border-bottom: 3px solid var(--amber);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { color: var(--white); font-weight: 800; font-size: 1.2rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.brand:hover { color: var(--white); }
.brand-logo { width: 30px; height: 30px; flex-shrink: 0; }
.topnav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.topnav a, .link-button {
    color: var(--white); text-decoration: none; padding: 10px 12px; border-radius: 8px;
    font: inherit; font-size: 1rem; background: none; border: 0; cursor: pointer; min-height: 44px;
    display: inline-flex; align-items: center;
}
.topnav a.active { background: rgba(255,255,255,.16); box-shadow: inset 0 -3px 0 var(--amber); }
.topnav a:hover, .link-button:hover { background: rgba(255,255,255,.12); color: var(--white); }
.inline { display: inline; margin: 0; }

.main { flex: 1; padding-top: 24px; padding-bottom: 32px; }

.footer { padding: 16px 0 24px; font-size: .95rem; color: var(--muted); text-align: center; }

/* Cartões */
.card {
    background: var(--white); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); margin-bottom: 16px; border: 1px solid var(--line);
}
.card.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.card-accent { border-top: 4px solid var(--blue-700); }
.muted-card { background: var(--blue-50); border-style: dashed; box-shadow: none; color: var(--muted); }
.lead { color: var(--muted); margin-top: 0; }
.note { color: var(--muted); font-size: .95rem; }
.muted { color: var(--muted); font-size: .95rem; }
.empty { color: var(--muted); padding: 16px 0; }

.card-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.card-links a { padding: 8px 0; font-weight: 600; }

/* Boas-vindas */
.welcome { display: flex; align-items: center; gap: 14px; }
.avatar {
    width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy-900); color: var(--white); font-weight: 800; font-size: 1.4rem;
    border: 3px solid var(--amber);
}
.welcome h1 { margin: 0; }
.welcome p { margin: 0; color: var(--muted); }

.actions { display: grid; gap: 12px; margin-top: 16px; }

/* Formulários */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.req { color: var(--red-700); }
.help { margin: 0 0 6px; font-size: .92rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="search"] {
    width: 100%; min-height: 48px; padding: 10px 12px; font: inherit;
    border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
input:focus { border-color: var(--blue-600); }
.has-error input { border-color: var(--red-700); }
.field-error { color: var(--red-700); font-size: .95rem; margin: 6px 0 0; font-weight: 600; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 96px; }
.toggle-password {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: var(--blue-50); color: var(--blue-800); border: 0; border-radius: 6px;
    padding: 8px 10px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; min-height: 36px;
}

.checkbox-field { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-field input { width: 24px; height: 24px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--blue-700); }
.checkbox-field label { font-weight: 400; margin: 0; }
.checkbox-field.has-error label { color: var(--red-700); }

.guardian-box { border: 2px dashed var(--line); border-radius: var(--radius); padding: 12px 14px 4px; margin: 0 0 16px; background: var(--blue-50); }
.guardian-box legend { font-weight: 700; padding: 0 6px; }
.guardian-box[hidden] { display: none; }

/* Botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 12px 20px; border-radius: 12px; border: 2px solid transparent;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-block { width: 100%; }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
.btn-primary { background: var(--amber); color: var(--navy-900); }
.btn-primary:hover { background: #e0a400; color: var(--navy-900); }
.btn-secondary { background: var(--white); color: var(--blue-800); border-color: var(--blue-700); }
.btn-secondary:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-danger { background: var(--red-700); color: var(--white); }
.btn-danger:hover { background: #8f1b1f; color: var(--white); }
.btn-google { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-google:hover { border-color: var(--blue-600); color: var(--ink); }
.google-g { font-weight: 800; color: #4285f4; font-size: 1.2rem; }
.btn[aria-disabled="true"] { opacity: .45; cursor: default; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Alertas: ícone + texto, nunca só cor */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-icon { font-weight: 800; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--white); }
.alert-success { background: var(--blue-100); color: var(--navy-900); }
.alert-success .alert-icon { background: var(--blue-700); }
.alert-error { background: var(--red-100); color: var(--red-700); }
.alert-error .alert-icon { background: var(--red-700); }
.alert-warning { background: var(--amber-100); color: var(--amber-800); }
.alert-warning .alert-icon { background: var(--amber-800); }

/* Listas e etiquetas */
.info-list { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 16px 0; }
.info-list dt { font-weight: 700; font-size: .92rem; color: var(--muted); margin-top: 8px; }
.info-list dd { margin: 0; word-break: break-word; }

.steps { padding-left: 20px; }
.steps li { margin-bottom: 6px; }

.badge { display: inline-block; font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--ink); }
.badge-ok { background: var(--blue-100); color: var(--navy-900); }
.badge-wait { background: var(--amber-100); color: var(--amber-800); }
.badge-off { background: var(--red-100); color: var(--red-700); }

.list { list-style: none; padding: 0; margin: 16px 0; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-item-stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.list-actions { display: flex; gap: 8px; }

.subnav { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.subnav a { padding: 10px 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.subnav a.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }

.details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.details summary { cursor: pointer; font-weight: 700; color: var(--blue-700); padding: 8px 0; min-height: 44px; }

.prose h2 { margin-top: 1.75rem; }
.prose p, .prose li { max-width: 70ch; }

@media (min-width: 640px) {
    h1 { font-size: 1.9rem; }
    .card { padding: 28px; }
    .info-list { grid-template-columns: max-content 1fr; }
    .info-list dt { margin-top: 0; }
    .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card.narrow { border-top: 4px solid var(--blue-700); }

/* ===== Etapa 3: perfil, estrelas, locais ===== */

select {
    width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
    border: 2px solid var(--line); border-radius: 10px; background: var(--white);
}
select:focus { border-color: var(--blue-600); }
.has-error select { border-color: var(--red-700); }
input[type="url"] { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; border: 2px solid var(--line); border-radius: 10px; }

fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.field > legend { font-weight: 600; margin-bottom: 4px; padding: 0; }

.field-row { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 2fr; } }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h1 { margin: 0; }

/* Fotos */
.avatar { object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; font-size: 1rem; border-width: 2px; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 88px; height: 88px; font-size: 2rem; }
.avatar-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar-edit-actions { display: grid; gap: 6px; }
.avatar-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-input:focus-visible + .btn, .avatar-form label.btn:focus-within { box-shadow: var(--focus); }
.avatar-form label.btn { cursor: pointer; }
.link-danger { background: none; border: 0; color: var(--red-700); font: inherit; text-decoration: underline; cursor: pointer; padding: 6px 0; min-height: 36px; }

/* Opções em "fichas" (posições, modalidades, sexo) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
    border: 2px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 600;
}
.chip input:checked + label { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.chip input:checked + label::before { content: "✓"; }
.chip input:focus-visible + label { box-shadow: var(--focus); }

.positions-group { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin-bottom: 8px; background: var(--white); }
.positions-group summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
.positions-group[open] { padding-bottom: 12px; }

/* Estrelas — seleção (meia estrela por toque) */
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; margin: 4px 0; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-half {
    width: 22px; height: 44px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l5.2 10.6 11.7 1.7-8.5 8.2 2 11.6L20 29.6 9.6 35.1l2-11.6L3.1 15.3l11.7-1.7z' fill='%23c8d2df'/%3E%3C/svg%3E"); background-size: 44px 44px; background-repeat: no-repeat;
}
.star-half.left { background-position: 0 0; }
.star-half.right { background-position: -22px 0; margin-right: 6px; }
.stars-input input:checked ~ label,
.stars-input label:hover, .stars-input label:hover ~ label { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l5.2 10.6 11.7 1.7-8.5 8.2 2 11.6L20 29.6 9.6 35.1l2-11.6L3.1 15.3l11.7-1.7z' fill='%23f5b301'/%3E%3C/svg%3E"); }
.stars-input:hover input:checked ~ label:not(:hover):not(:hover ~ label) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l5.2 10.6 11.7 1.7-8.5 8.2 2 11.6L20 29.6 9.6 35.1l2-11.6L3.1 15.3l11.7-1.7z' fill='%23c8d2df'/%3E%3C/svg%3E"); }
.stars-input input:focus-visible + label { box-shadow: var(--focus); border-radius: 4px; }
.stars-extra { margin: 4px 0; }
.stars-extra input { width: 22px; height: 22px; accent-color: var(--blue-700); vertical-align: middle; }
.stars-extra label { font-weight: 400; margin-left: 4px; }
.stars-value { margin: 4px 0 0; color: var(--muted); }

/* Estrelas — exibição */
.stars-display {
    display: inline-block; position: relative; width: 100px; height: 20px; vertical-align: -3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l5.2 10.6 11.7 1.7-8.5 8.2 2 11.6L20 29.6 9.6 35.1l2-11.6L3.1 15.3l11.7-1.7z' fill='%23c8d2df'/%3E%3C/svg%3E"); background-size: 20px 20px; background-repeat: repeat-x;
}
.stars-display-fill {
    position: absolute; inset: 0 auto 0 0; width: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l5.2 10.6 11.7 1.7-8.5 8.2 2 11.6L20 29.6 9.6 35.1l2-11.6L3.1 15.3l11.7-1.7z' fill='%23f5b301'/%3E%3C/svg%3E"); background-size: 20px 20px; background-repeat: repeat-x;
}
.stars-display-fill[data-pct="0"] { width: 0%; }
.stars-display-fill[data-pct="5"] { width: 5%; }
.stars-display-fill[data-pct="10"] { width: 10%; }
.stars-display-fill[data-pct="15"] { width: 15%; }
.stars-display-fill[data-pct="20"] { width: 20%; }
.stars-display-fill[data-pct="25"] { width: 25%; }
.stars-display-fill[data-pct="30"] { width: 30%; }
.stars-display-fill[data-pct="35"] { width: 35%; }
.stars-display-fill[data-pct="40"] { width: 40%; }
.stars-display-fill[data-pct="45"] { width: 45%; }
.stars-display-fill[data-pct="50"] { width: 50%; }
.stars-display-fill[data-pct="55"] { width: 55%; }
.stars-display-fill[data-pct="60"] { width: 60%; }
.stars-display-fill[data-pct="65"] { width: 65%; }
.stars-display-fill[data-pct="70"] { width: 70%; }
.stars-display-fill[data-pct="75"] { width: 75%; }
.stars-display-fill[data-pct="80"] { width: 80%; }
.stars-display-fill[data-pct="85"] { width: 85%; }
.stars-display-fill[data-pct="90"] { width: 90%; }
.stars-display-fill[data-pct="95"] { width: 95%; }
.stars-display-fill[data-pct="100"] { width: 100%; }

/* Locais */
.filters { display: grid; gap: 0; }
.venue-list { list-style: none; padding: 0; margin: 0; }
.venue-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.venue-link { display: grid; gap: 2px; text-decoration: none; color: var(--ink); flex: 1; min-width: 200px; }
.venue-link strong { color: var(--blue-700); font-size: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.empty-state { text-align: center; }
.warning-card { border: 2px solid var(--amber); background: var(--amber-100); }
.danger-card { border-top-color: var(--red-700) !important; }
.maps-box { background: var(--blue-50); border: 1px solid var(--line) !important; border-radius: 12px; padding: 12px 14px !important; }
.maps-box > legend { padding: 0 6px !important; }
.or { text-align: center; font-weight: 700; color: var(--muted); margin: 8px 0; }
.geo-status { font-weight: 600; color: var(--navy-900); margin: 8px 0 0; }
.details-inline summary { cursor: pointer; color: var(--blue-700); font-weight: 600; padding: 6px 0; }

.sticky-actions { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* Menu de ações do admin */
.menu-details { position: relative; }
.menu-details summary { list-style: none; }
.menu-details summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; z-index: 5; display: grid; gap: 6px; padding: 8px; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }

[hidden] { display: none !important; }

.subnav .count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: .85rem; text-align: center; }

/* Autocompletar */
.combo-wrap { position: relative; }
.combo-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 6px; list-style: none;
    max-height: 300px; overflow-y: auto; background: var(--white); border: 2px solid var(--blue-600); border-radius: 12px; box-shadow: var(--shadow);
}
.combo-list li { padding: 12px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--blue-50); color: var(--blue-800); font-weight: 600; }
.combo-list .combo-empty, .combo-list .combo-empty:hover { color: var(--muted); cursor: default; background: none; font-weight: 400; }
.combo-list .combo-footer { font-size: .8rem; color: var(--muted); text-align: right; cursor: default; min-height: 0; padding: 6px 12px 2px; }
.combo-list .combo-footer:hover { background: none; font-weight: 400; color: var(--muted); }

/* ===== Etapa 4: partidas ===== */
input[type="number"], input[type="time"], textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); border: 2px solid var(--line); border-radius: 10px; background: var(--white); }
textarea { min-height: 96px; resize: vertical; }
input[type="number"]:focus, input[type="time"]:focus, textarea:focus { border-color: var(--blue-600); }
.match-list { list-style: none; padding: 0; margin: 0; }
.match-card { padding: 0; }
.match-link { display: flex; gap: 14px; padding: 16px; text-decoration: none; color: var(--ink); align-items: flex-start; }
.match-date { flex-shrink: 0; width: 56px; text-align: center; border-radius: 12px; background: var(--navy-900); color: var(--white); padding: 6px 0; border-bottom: 3px solid var(--amber); }
.match-day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.match-month { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; }
.match-info { display: grid; gap: 2px; min-width: 0; }
.match-info strong { color: var(--blue-700); font-size: 1.1rem; }
.match-list.compact .match-card { box-shadow: none; border: 1px solid var(--line); margin-bottom: 8px; }
.match-when { font-size: 1.1rem; margin: 0 0 4px; }
.my-status { border: 2px solid var(--blue-600); }
.status-line { margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.my-status form + form { margin-top: 10px; }
.btn-big { min-height: 60px; font-size: 1.2rem; }
.count-pill { font-size: .9rem; background: var(--blue-100); color: var(--navy-900); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.people { list-style: none; padding: 0; margin: 8px 0 16px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.person-num { width: 28px; color: var(--muted); font-weight: 700; }
.avatar-guest { background: var(--blue-100); color: var(--navy-900); border-color: var(--line); }
.pre-line { white-space: pre-line; }
.copy-box { display: flex; gap: 8px; margin-bottom: 8px; }
.copy-box input { flex: 1; min-width: 0; }
h3 { font-size: 1.05rem; margin: 1rem 0 .25rem; }
input[type="tel"] { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); border: 2px solid var(--line); border-radius: 10px; background: var(--white); }
input[type="tel"]:focus { border-color: var(--blue-600); }

/* WhatsApp */
.btn-whatsapp { background: #128c4a; color: #fff; }
.btn-whatsapp:hover { background: #0d6e3a; color: #fff; }
.wa-link { margin-left: auto; text-decoration: none; font-size: 1.3rem; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.wa-link:hover { background: var(--blue-50); }
.whatsapp-prompt { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #e7f6ee; color: #0b4d2b; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.wa-link-inline { text-decoration: none; margin-left: 6px; font-size: 1.15rem; }
.link-button-inline { background: none; border: 0; color: var(--blue-700); font: inherit; font-size: .95rem; text-decoration: underline; cursor: pointer; padding: 8px 0; min-height: 40px; }
.private-card { border: 2px dashed var(--line); background: var(--blue-50); box-shadow: none; }
.icon-wa { flex-shrink: 0; vertical-align: -4px; }
.wa-link, .wa-link-inline { color: #128c4a; }
.wa-link .icon-wa { width: 24px; height: 24px; }
.wa-link-inline { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; vertical-align: middle; }
.btn-secondary .icon-wa { color: #128c4a; }
.chip input:checked + label .icon-wa { color: #fff; }
.chip label .icon-wa { color: #128c4a; }
.combo-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; border-radius: 8px; }
.combo-toggle:hover { background: var(--blue-50); }
.combo-wrap input:has(+ .combo-toggle), .combo-wrap input[placeholder^="Toque"] { padding-right: 48px; }
.answer-title { font-weight: 800; font-size: 1.15rem; margin: 0 0 8px; }
.answer-buttons { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
.answer-buttons .btn-big { font-size: 1.1rem; padding: 12px 8px; white-space: nowrap; }
.declined-names { color: var(--muted); margin: 4px 0 0; }
.badge-admin { background: var(--navy-900); color: var(--white); }
.badge-pro { background: var(--amber); color: var(--navy-900); letter-spacing: .05em; }
.payment-line { margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pix-line { color: var(--muted); }
.pay-form { display: flex; gap: 6px; align-items: center; }
.pay-form select { min-height: 44px; width: auto; padding: 6px 8px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; }
.schedule-summary { background: var(--blue-50); border-left: 4px solid var(--blue-700); padding: 10px 12px; border-radius: 8px; font-weight: 600; margin: 8px 0 0; }
.badge-count { background: var(--blue-100); color: var(--navy-900); }
.calendar-menu { margin: 10px 0; }
.calendar-menu summary { list-style: none; }
.calendar-menu summary::-webkit-details-marker { display: none; }
.calendar-options { display: grid; gap: 8px; margin-top: 8px; padding: 10px; background: var(--blue-50); border-radius: 12px; }

/* Sininho de avisos */
.bell { position: relative; color: var(--white); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; margin-left: auto; }
.bell:hover, .bell.active { background: rgba(255,255,255,.14); color: var(--white); }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: var(--navy-900); font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--navy-900); }
.notice-list { list-style: none; margin: 12px 0 0; padding: 0; }
.notice { border-bottom: 1px solid var(--line); }
.notice-new { background: var(--blue-50); }
.notice-link { display: grid; gap: 2px; padding: 12px 8px; text-decoration: none; color: var(--ink); }
.notice-title { font-weight: 700; }
.notice-time { font-size: .85rem; }
.badge-monthly { background: var(--navy-900); color: var(--white); }
.ranking { list-style: none; padding: 0; margin: 8px 0; }
.ranking li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rank-pos { width: 32px; text-align: center; font-weight: 800; }
.rank-name { flex: 1; font-weight: 600; }

/* Sorteio dos times */
.teams-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0; }
@media (min-width: 560px) { .teams-grid { grid-template-columns: 1fr 1fr; } }
.team-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--blue-50); }
.team-box h3 { margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--navy-900); }
.team-total { font-size: .95rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.team-list { margin: 0; padding-left: 22px; }
.team-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.team-list li:last-child { border-bottom: 0; }
.team-list li { display: list-item; }
.team-name { font-weight: 600; }
.team-meta { float: right; display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .95rem; }
.team-list li::after { content: ""; display: block; clear: both; }
.team-me { background: var(--amber-100); border-radius: 6px; }
.field-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-inline input { width: 90px; }

/* Avaliação 1–5 estrelas (ordem invertida no HTML para colorir as anteriores só com CSS) */
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars label { font-size: 2.6rem; line-height: 1; color: var(--line); cursor: pointer; padding: 4px; min-width: 48px; min-height: 48px; text-align: center; }
.rate-stars input:checked ~ label,
.rate-stars label:hover, .rate-stars label:hover ~ label { color: var(--amber); }
.rate-stars input:focus-visible + label { box-shadow: var(--focus); border-radius: 8px; }
.rate-scale { display: flex; justify-content: space-between; max-width: 300px; color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.rate-person { display: flex; align-items: center; gap: 14px; margin: 8px 0 16px; }
.rate-person h2 { margin: 0; }
.progress { height: 10px; background: var(--blue-100); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.progress-bar { height: 100%; background: var(--blue-700); width: 0; }
.rate-list { list-style: none; padding: 0; margin: 8px 0; }
.rate-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rating-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rate-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 12px; }
/* Barra de progresso sem estilo inline: largura pelo atributo data-pct (passos de 5%). */
.progress-bar[data-pct="0"] { width: 0%; }
.progress-bar[data-pct="5"] { width: 5%; }
.progress-bar[data-pct="10"] { width: 10%; }
.progress-bar[data-pct="15"] { width: 15%; }
.progress-bar[data-pct="20"] { width: 20%; }
.progress-bar[data-pct="25"] { width: 25%; }
.progress-bar[data-pct="30"] { width: 30%; }
.progress-bar[data-pct="35"] { width: 35%; }
.progress-bar[data-pct="40"] { width: 40%; }
.progress-bar[data-pct="45"] { width: 45%; }
.progress-bar[data-pct="50"] { width: 50%; }
.progress-bar[data-pct="55"] { width: 55%; }
.progress-bar[data-pct="60"] { width: 60%; }
.progress-bar[data-pct="65"] { width: 65%; }
.progress-bar[data-pct="70"] { width: 70%; }
.progress-bar[data-pct="75"] { width: 75%; }
.progress-bar[data-pct="80"] { width: 80%; }
.progress-bar[data-pct="85"] { width: 85%; }
.progress-bar[data-pct="90"] { width: 90%; }
.progress-bar[data-pct="95"] { width: 95%; }
.progress-bar[data-pct="100"] { width: 100%; }

/* Sugestões tocáveis (ex.: nome de usuário do avulso) */
.chip-button { display: inline-block; margin: 4px 6px 0 0; padding: 8px 12px; min-height: 40px; border: 1px solid var(--blue-700); border-radius: 999px; background: var(--white); color: var(--blue-700); font: inherit; font-weight: 600; cursor: pointer; }
.chip-button:focus-visible { box-shadow: var(--focus); outline: none; }
.guest-again { margin-bottom: 8px; }
.guest-handle { color: var(--muted); font-size: .9rem; }
.guest-phone-form { margin-top: 8px; }
.guest-phone-form label { font-size: .9rem; font-weight: 600; }
.inline-input { display: flex; gap: 8px; align-items: center; }
.inline-input input { flex: 1; min-width: 0; }

/* Amigos */
.tabs { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; }
.tab { flex: 1; text-align: center; padding: 10px 8px; min-height: 44px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.tab.active { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.people-list { list-style: none; padding: 0; margin: 0; }
.people-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.people-list .person { border-bottom: 0; padding: 0; color: var(--ink); text-decoration: none; }
.person-actions { display: inline-flex; gap: 8px; align-items: center; }
.friends-going { margin: 8px 0 0; }
.friend-pick { list-style: none; padding: 0; margin: 8px 0; }
.friend-pick li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.friend-pick label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; flex: 1; }
.friend-pick input[type="checkbox"] { width: 22px; height: 22px; }

/* ===== Navegação estilo app (barra embaixo no celular, menu lateral no computador) ===== */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 24px; height: 24px; flex: none; }
.topbar-icon { color: var(--white); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; margin-left: auto; }
.topbar-icon:hover { background: rgba(255,255,255,.14); color: var(--white); }

.appnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.appnav-brand, .appnav-extra { display: none; }
.appnav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; border-radius: 12px; color: var(--muted); text-decoration: none;
    font-size: .74rem; font-weight: 600;
}
.appnav-item:hover { color: var(--navy-900); background: var(--blue-50); }
.appnav-item.active { color: var(--navy-900); font-weight: 800; }
.appnav-item.active .ic { stroke-width: 2.6; }
.appnav-plus { width: 40px; height: 34px; border-radius: 12px; background: var(--amber); color: var(--navy-900); display: grid; place-items: center; }
.appnav-icon { position: relative; display: inline-flex; }
.appnav .bell-count { top: -7px; right: -11px; border-color: var(--white); }
.appnav-button { background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
body.has-appnav { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

@media (min-width: 900px) {
    .appnav {
        top: 0; right: auto; width: 236px; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 20px 12px; border-top: 0; border-right: 1px solid var(--line); overflow-y: auto;
    }
    .appnav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--navy-900); text-decoration: none; padding: 6px 12px 22px; }
    .appnav-item { flex-direction: row; justify-content: flex-start; gap: 14px; font-size: 1rem; padding: 10px 14px; min-height: 50px; }
    .appnav-item.active { background: var(--blue-50); }
    .appnav-plus { width: 30px; height: 30px; border-radius: 9px; }
    .appnav-plus .ic { width: 20px; height: 20px; }
    .appnav-extra { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
    body.has-appnav { padding-left: 236px; padding-bottom: 0; }
    body.has-appnav .topbar { display: none; }
    body.has-appnav .main { max-width: 760px; }
}

/* ===== Início: "bolinhas" (próximos jogos) ===== */
.stories { margin: -8px -16px 14px; }
.stories-list { list-style: none; margin: 0; padding: 6px 16px 10px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.stories-list::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; text-decoration: none; color: var(--ink); }
.story-ring {
    width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--amber); background: var(--white);
    box-shadow: inset 0 0 0 3px var(--white), 0 2px 8px rgba(11,37,69,.10);
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.story-wait { border-style: dashed; border-color: #a7b3c4; }
.story-admin { border-color: var(--blue-700); }
.story-add { border-color: var(--line); color: var(--blue-700); font-size: 2rem; font-weight: 300; }
.story-day { font-size: .8rem; font-weight: 800; color: var(--navy-900); }
.story-time { font-size: .78rem; color: var(--muted); }
.story-label { font-size: .78rem; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stories-empty { margin: 0 16px; }

/* ===== Início: feed ===== */
.feed-card {
    display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.feed-action { border-color: #f1d77d; background: #fffdf5; }
.feed-body { flex: 1; min-width: 0; }
.feed-title { margin: 0; font-size: .98rem; }
.feed-title a { color: inherit; text-decoration: none; }
.feed-meta { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.feed-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.feed-icon-star { background: var(--amber-100); color: #7a5600; }
.feed-faces { display: flex; flex: none; padding-left: 10px; }
.feed-faces .avatar { margin-left: -10px; border: 2px solid var(--white); }
.feed-heading { font-size: 1.05rem; margin: 20px 2px 8px; color: var(--navy-900); }
.feed-end { text-align: center; margin: 18px 0 4px; }

/* Menu de atalhos no próprio perfil */
.menu-card { padding: 6px 8px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li + li { border-top: 1px solid var(--line); }
.menu-list a, .menu-logout { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 12px; color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; width: 100%; cursor: pointer; }
.menu-list a:hover, .menu-logout:hover { background: var(--blue-50); border-radius: 10px; }
.menu-logout { color: var(--red-700); }

/* ===== Perfil estilo Instagram ===== */
.profile-head { padding: 4px 2px 8px; }
.profile-top { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.profile-top .avatar { width: 88px; height: 88px; font-size: 2rem; flex: none; }
.profile-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; text-align: center; }
.profile-stats > div { display: flex; flex-direction: column-reverse; }
.profile-stats a { display: flex; flex-direction: column-reverse; color: inherit; text-decoration: none; border-radius: 10px; padding: 4px 0; }
.profile-stats a:hover { background: var(--blue-50); }
.profile-stats dd { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--navy-900); }
.profile-stats dt { font-size: .85rem; color: var(--muted); }
.profile-name { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profile-handle { margin: 0; color: var(--muted); font-size: .95rem; }
.profile-bio { margin: 6px 0 0; font-size: .95rem; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.profile-actions form, .profile-actions .btn { width: 100%; }
.profile-actions form .btn { width: 100%; }
.profile-pro { margin: 10px 0 0; font-size: .95rem; }
.profile-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin: 14px 0 14px; }
.profile-tabs a { text-align: center; padding: 12px 0; color: var(--muted); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.profile-tabs a.active { color: var(--navy-900); border-bottom-color: var(--navy-900); }
.played-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.played-tile { aspect-ratio: 1; border-radius: 12px; background: var(--navy-900); color: var(--white); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; overflow: hidden; }
.played-tile:hover { background: var(--navy-800); color: var(--white); }
.played-date { font-weight: 800; font-size: 1.15rem; color: var(--amber); }
.played-mod { font-size: .78rem; color: #c4d4ec; }
.played-title { font-size: .82rem; font-weight: 600; line-height: 1.2; }
@media (min-width: 900px) {
    .profile-menu { display: none; }
    .played-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Página da partida (capa, rostinhos, abas) ===== */
.match-cover { display: flex; gap: 14px; align-items: flex-start; background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 12px; border-bottom: 4px solid var(--amber); }
.match-cover h1 { color: var(--white); font-size: 1.4rem; margin: 0 0 4px; }
.match-cover .match-when { margin: 0; color: #dbe6f7; }
.match-cover .match-place { margin: 2px 0 10px; color: #b9c9e2; font-size: .95rem; }
.match-cover .badge { background: rgba(255,255,255,.12); color: var(--white); }
.match-cover-date { flex: none; width: 58px; text-align: center; background: var(--white); border-radius: 12px; padding: 6px 0; color: var(--navy-900); }
.mcd-day { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.mcd-month { display: block; font-size: .75rem; font-weight: 800; color: var(--blue-700); }
.match-cover-body { flex: 1; min-width: 0; }
.match-cover-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.match-cover-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.match-cover-actions .ic { width: 18px; height: 18px; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.5); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.match-faces { display: flex; align-items: center; gap: 12px; margin: 4px 2px 12px; }
.match-faces-text { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .95rem; }
.match-tabs { margin-top: 4px; }
.tab-count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: .8rem; margin-left: 4px; }

/* ===== Avisos estilo notificações ===== */
.page-title { font-size: 1.5rem; margin: 0 2px 10px; }
.notice-group { font-size: 1rem; margin: 18px 2px 6px; color: var(--navy-900); }
.notice-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.notice:last-child { border-bottom: 0; }
.notice-new { background: #fffbea; }
.notice-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.notice-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; flex: none; font-size: 1.15rem; color: var(--navy-900); }
.notice-icon-star { background: var(--amber-100); color: #7a5600; }
.notice-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.notice-body { color: var(--muted); font-size: .92rem; }
.notice-time { color: var(--muted); font-size: .8rem; }
.notice-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-700); flex: none; }

/* ===== Buscar ===== */
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-link { font-weight: 600; font-size: .95rem; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-link { flex: none; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.chip-link.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.filters-box > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-900); min-height: 44px; }
.filters-box > summary::-webkit-details-marker { display: none; }
.filters-box[open] > summary { margin-bottom: 12px; }
@media (min-width: 900px) { .chips-row { margin: 0 0 4px; padding-left: 2px; padding-right: 2px; flex-wrap: wrap; } }

/* Menu lateral (computador) escuro, no azul-noite da marca */
@media (min-width: 900px) {
    .appnav { background: var(--navy-900); border-right: 0; box-shadow: 2px 0 12px rgba(11,37,69,.18); }
    .appnav-brand { color: var(--white); }
    .appnav-item { color: #c9d7ec; }
    .appnav-item:hover { color: var(--white); background: rgba(255,255,255,.08); }
    .appnav-item.active { color: var(--white); background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--amber); }
    .appnav-extra { border-top-color: rgba(255,255,255,.15); }
    .appnav .bell-count { border-color: var(--navy-900); }
}
.shirt-number { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px 8px 12px 12px; background: var(--navy-900); color: var(--amber); font-weight: 800; font-size: .95rem; }
.search-form { display: flex; gap: 8px; align-items: center; }
.search-input { flex: 1; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--white); min-height: 48px; }
.search-input:focus-within { border-color: var(--blue-700); box-shadow: var(--focus); }
.search-input .ic { color: var(--muted); width: 20px; height: 20px; }
.search-input input { border: 0; outline: none; flex: 1; min-width: 0; font: inherit; background: transparent; min-height: 44px; padding: 0; box-shadow: none; }

/* ===== Pagamentos do Pro ===== */
.pay-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.pay-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.pay-stat span { font-size: .82rem; color: var(--muted); }
.pay-stat strong { font-size: 1.2rem; color: var(--navy-900); }
.pay-stat small { font-size: .8rem; color: var(--muted); }
.pay-stat-main { background: var(--navy-900); border-color: var(--navy-900); }
.pay-stat-main span { color: #c9d7ec; }
.pay-stat-main strong { color: var(--amber); }
@media (max-width: 560px) { .pay-summary { grid-template-columns: 1fr 1fr; } .pay-stat-main { grid-column: 1 / -1; } }
.title-with-tag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pro-tag { font-size: .75rem; padding: 3px 10px; vertical-align: middle; }
.match-card-mine { border: 2px solid var(--amber); background: #fffdf5; }
.setup-hint { margin: 8px 0; } .setup-hint .btn { margin-top: 6px; }

/* "Minha área": atalhos no topo do próprio perfil (celular) */
.appnav-label { white-space: nowrap; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; }
.area-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 78px; padding: 10px 6px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; color: var(--navy-900); text-decoration: none; font-weight: 700; font-size: .85rem; line-height: 1.2; box-shadow: var(--shadow); }
.area-grid a:hover { background: var(--blue-50); }
.area-grid .ic { color: var(--blue-700); }
.area-grid .pro-tag { font-size: .6rem; padding: 1px 6px; }
.logout-row { margin: 18px 0 4px; }
.logout-row .menu-logout { justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }

/* Menu lateral com o mesmo "gramado" listrado do topo (faixas na horizontal, círculo central) */
@media (min-width: 900px) {
    .appnav {
        background-color: var(--navy-900);
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='236' height='240' viewBox='0 0 236 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='2'%3E%3Ccircle cx='118' cy='120' r='46'/%3E%3Cline x1='-10' y1='120' x2='246' y2='120'/%3E%3C/g%3E%3Ccircle cx='118' cy='120' r='3' fill='%23ffffff' fill-opacity='.12'/%3E%3C/svg%3E"),
            repeating-linear-gradient(180deg, var(--navy-900) 0 56px, #0d2a4f 56px 112px);
        background-repeat: no-repeat, repeat;
        background-position: center 55%, 0 0;
        border-right: 3px solid var(--amber);
    }
    .appnav-brand { border-radius: 12px; margin-bottom: 16px; padding: 8px 12px; }
    .appnav-brand:hover, .appnav-brand:focus-visible { color: var(--white); background: rgba(255,255,255,.08); }
}

/* ===== Planos (Meu plano) ===== */
.plan-status p { margin: 6px 0; }
.plan-usage { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 2px; }
.plan-usage strong { font-size: 1.6rem; color: var(--navy-900); }
.plan-usage span { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.plan-card { margin: 0; display: grid; gap: 4px; align-content: start; }
.plan-card p { margin: 0; }
.plan-current { border: 2px solid var(--amber); }
.plan-limit { font-weight: 600; color: var(--blue-700); }
.plan-price { margin-top: 6px !important; }
.plan-price strong { font-size: 1.5rem; color: var(--navy-900); }
.plan-price span { color: var(--muted); }
.plan-launch { background: var(--amber-100); color: var(--amber-800); border-radius: 10px; padding: 6px 10px; font-size: .9rem; margin-top: 6px !important; }
.hibernated-banner { margin-bottom: 12px; }
