:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --success: #34a853;
    --warning: #fbbc04;
    --danger: #ea4335;
    --bg: #f0f2f5;
    --sidebar: #1e293b;
    --text: #202124;
    --muted: #5f6368;
    --sidebar-w: 250px;
}

/* ===== Admin shell (grafite + dourado — identidade ArenaManager) ===== */
:root {
    --admin-gold: #d4a017;
    --admin-gold-2: #f0c14b;
    --admin-dark: #0b1220;
    --admin-sidebar: #0f172a;
    --admin-sidebar-2: #111827;
    --admin-bg: #eef1f6;
    --admin-card: #ffffff;
    --admin-ink: #0f172a;
    --admin-muted: #64748b;
    --admin-line: #e2e8f0;
}

.admin-shell .sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--admin-sidebar) 0%, #0a0f1a 100%);
    color: #e2e8f0;
    border-right: 1px solid rgba(212,160,23,.15);
}
.admin-shell .nav-brand {
    display: flex; align-items: center; gap: .65rem;
    padding: 1.1rem 1.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: .35rem;
}
.admin-shell .brand-logo-word {
    height: 48px;
    width: auto;
    max-width: 190px;
    display: block;
    object-fit: contain;
}
.admin-shell .brand-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--admin-gold), #b8860b);
    color: #0b1220; font-weight: 900; display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(212,160,23,.35);
}
.admin-shell .brand-text { font-size: 1.15rem; font-weight: 800; color: #f8fafc; letter-spacing: -.02em; }
.admin-shell .brand-text span { color: var(--admin-gold); }
.admin-shell .nav-section-label {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
    color: #64748b; padding: .85rem 1.2rem .35rem; font-weight: 700;
}
.admin-shell .nav-link {
    display: flex; align-items: center; gap: .65rem;
    margin: 0 .65rem; padding: .65rem .85rem;
    border-radius: 10px; color: #94a3b8; font-weight: 500;
    border-left: none;
}
.admin-shell .nav-link:hover {
    background: rgba(255,255,255,.05); color: #f1f5f9;
}
.admin-shell .nav-link.active {
    background: rgba(212,160,23,.12);
    color: var(--admin-gold-2);
    box-shadow: inset 3px 0 0 var(--admin-gold);
}
.admin-shell .nav-ico { width: 1.25rem; text-align: center; opacity: .9; }
.admin-shell .nav-footer {
    margin-top: auto; padding: 1rem 1.1rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.admin-shell .user-chip { display: flex; gap: .65rem; align-items: center; margin-bottom: .75rem; }
.admin-shell .user-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(212,160,23,.2); color: var(--admin-gold);
    display: grid; place-items: center; font-weight: 800;
}
.admin-shell .user-name { font-size: .9rem; color: #f8fafc; font-weight: 600; }
.admin-shell .user-email { font-size: .72rem; color: #64748b; }
.admin-shell .btn-sair {
    width: 100%; border: none; border-radius: 10px;
    padding: .65rem; font-weight: 700; cursor: pointer;
    background: linear-gradient(135deg, #b91c1c, #dc2626); color: #fff;
}
.admin-shell .top-bar {
    background: #fff; border-bottom: 1px solid var(--admin-line);
    padding: .75rem 1.25rem; display: flex; align-items: center; gap: .75rem;
}
.admin-shell .top-bar .title { font-weight: 600; color: #334155; font-size: .95rem; }
.admin-shell .content {
    background: var(--admin-bg);
    padding: 1.25rem 1.35rem 2rem;
    min-height: calc(100vh - 52px);
}
.admin-shell .btn-menu {
    border: 1px solid var(--admin-line); background: #fff;
    border-radius: 8px; padding: .35rem .55rem; cursor: pointer;
}

/* Painel do Dia */
.pd { max-width: 1200px; margin: 0 auto; }
.pd-hero {
    border-radius: 20px; padding: 1.6rem 1.6rem 1.4rem;
    background:
      linear-gradient(105deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.7) 55%, rgba(11,18,32,.35) 100%),
      url('https://images.unsplash.com/photo-1574629810360-7efbbe195eb5?auto=format&fit=crop&w=1400&q=60') center/cover;
    color: #f8fafc; margin-bottom: 1.15rem;
    box-shadow: 0 16px 40px rgba(15,23,42,.18);
}
.pd-kicker {
    color: var(--admin-gold); font-size: .72rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35rem;
}
.pd-hero h1 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; }
.pd-hero p { margin: 0 0 1rem; color: #cbd5e1; max-width: 36rem; font-size: .95rem; }
.pd-controls { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.pd-date {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #fff; border-radius: 10px; padding: .55rem .75rem;
}
.pd-btn-gold {
    background: linear-gradient(135deg, var(--admin-gold), #b8860b);
    color: #0b1220; border: none; border-radius: 999px;
    padding: .55rem 1.2rem; font-weight: 800; cursor: pointer;
}
.pd-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .75rem; margin-bottom: 1.15rem;
}
.pd-stat {
    background: #fff; border-radius: 16px; padding: .95rem 1.05rem;
    border: 1px solid var(--admin-line);
    box-shadow: 0 6px 20px rgba(15,23,42,.04);
}
.pd-stat-label { display:block; font-size:.75rem; color:var(--admin-muted); font-weight:600; margin-bottom:.25rem; }
.pd-stat-value { font-size:1.45rem; font-weight:800; color:var(--admin-ink); }
.pd-stat-value.ok { color: #159947; }
.pd-stat-value.warn { color: #d97706; }
.pd-section-head {
    display:flex; justify-content:space-between; align-items:center;
    margin: 1.25rem 0 .85rem; gap:.5rem; flex-wrap:wrap;
}
.pd-section-head h2 { margin:0; font-size:1.15rem; font-weight:800; }
.pd-section-head h2 span { color:var(--admin-muted); font-weight:600; font-size:.95rem; }
.pd-link { color: var(--admin-gold); font-weight:700; text-decoration:none; font-size:.9rem; }
.pd-turma-grid {
    display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap: .9rem;
}
.pd-turma {
    background:#fff; border-radius:18px; padding:1.1rem 1.15rem;
    border: 1px solid var(--admin-line);
    border-top: 3px solid #94a3b8;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
    cursor: pointer; transition: .15s ease;
}
.pd-turma:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.pd-turma.c-green { border-top-color: #22c55e; }
.pd-turma.c-orange { border-top-color: #f59e0b; }
.pd-turma.c-purple { border-top-color: #a855f7; }
.pd-turma.c-blue { border-top-color: #3b82f6; }
.pd-turma-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:.35rem; }
.pd-turma-ico {
    width:34px; height:34px; border-radius:10px; background:#f1f5f9;
    display:grid; place-items:center;
}
.pd-turma-cap {
    font-size:.78rem; font-weight:700; color:var(--admin-muted);
    background:#f8fafc; border-radius:999px; padding:.2rem .55rem;
}
.pd-turma h3 { margin:0 0 .2rem; font-size:1.05rem; font-weight:800; }
.pd-turma-meta { font-size:.82rem; color:var(--admin-muted); }
.pd-turma-hora { font-size:.88rem; font-weight:600; margin:.45rem 0 .35rem; color:#334155; }
.pd-prof { font-weight:500; color:var(--admin-muted); }
.pd-turma-empty, .pd-turma-hint { font-size:.82rem; color:#94a3b8; margin-top:.35rem; }
.pd-alunos { margin-top:.65rem; border-top:1px solid var(--admin-line); padding-top:.55rem; }
.pd-aluno {
    display:flex; justify-content:space-between; align-items:center; gap:.5rem;
    padding:.45rem 0; border-bottom:1px solid #f1f5f9; flex-wrap:wrap;
}
.pd-aluno:last-child { border-bottom:none; }
.pd-aluno-actions { display:flex; gap:.35rem; align-items:center; flex-wrap:wrap; }
.pd-pill {
    font-size:.72rem; font-weight:700; border-radius:999px;
    padding:.2rem .55rem; background:#f1f5f9; color:#64748b;
}
.pd-pill.ok { background:#dcfce7; color:#15803d; }
.pd-pill.warn { background:#fef3c7; color:#b45309; }
.pd-pill.danger { background:#fee2e2; color:#b91c1c; }
.pd-pill.mute { background:#f1f5f9; color:#94a3b8; }
.pd-btn-sm {
    border:1px solid var(--admin-line); background:#fff; border-radius:8px;
    padding:.28rem .55rem; font-size:.75rem; font-weight:700; cursor:pointer;
}
.pd-btn-sm.gold { background:var(--admin-gold); border-color:var(--admin-gold); color:#0b1220; }
.pd-reservas {
    margin-top: 1.5rem; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    box-shadow: 0 16px 40px rgba(15,23,42,.2);
}
.pd-reservas-head { padding: 1.1rem 1.25rem .35rem; }
.pd-reservas-head h2 { margin:0; font-size:1.1rem; }
.pd-reservas-head span { color:#94a3b8; font-weight:600; font-size:.95rem; }
.pd-reservas-empty { padding: 0 1.25rem 1.25rem; color:#94a3b8; font-size:.9rem; }
.pd-reservas-list { padding: .25rem 1.25rem 1.15rem; }
.pd-reserva-row {
    display:flex; justify-content:space-between; align-items:center; gap:.75rem;
    padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.06); flex-wrap:wrap;
}
.pd-reserva-row:last-child { border-bottom:none; }
.pd-reserva-row strong { display:block; }
.pd-reserva-row span { color:#94a3b8; font-size:.85rem; }
.pd-alert {
    background:#fff7ed; border:1px solid #fed7aa; color:#9a3412;
    border-radius:12px; padding:.75rem 1rem; margin-bottom:.65rem; font-size:.9rem;
}
.pd-alert.danger { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.pd-alert.warn { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.pd-empty {
    background:#fff; border:1px dashed #cbd5e1; border-radius:16px;
    padding:1.25rem; color:#64748b; text-align:center;
}
.pd-muted { color: var(--admin-muted); }



* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
}

/* ===== Shell ===== */
.page {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 40;
    transition: transform 0.2s ease;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 0 0;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.7rem 1.25rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }

.nav-footer {
    margin-top: auto;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.nav-footer .user-name { font-size: 0.9rem; margin-bottom: 0.15rem; }
.nav-footer .user-email { font-size: 0.75rem; opacity: 0.65; margin-bottom: 0.75rem; word-break: break-all; }

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* evita overflow em flex */
}

.top-bar {
    background: #fff;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.top-bar .title { flex: 1; font-size: 0.95rem; color: var(--muted); }

.btn-menu {
    display: none;
    border: none;
    background: #e8eaed;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 35;
}

.content {
    padding: 1.25rem;
    flex: 1;
    width: 100%;
    max-width: 1400px;
}

/* ===== Tipografia / cards ===== */
h1 { font-size: 1.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.1rem; margin: 1.25rem 0 0.75rem; }

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1rem 1.15rem;
    margin-bottom: 0.85rem;
}

.card-title { font-weight: 600; margin-bottom: 0.6rem; font-size: 1rem; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-green { background: #e6f4ea; color: var(--success); }
.badge-yellow { background: #fef7e0; color: #b06000; }
.badge-red { background: #fce8e6; color: var(--danger); }
.badge-blue { background: #e8f0fe; color: var(--primary); }

/* ===== Grid turmas ===== */
.turma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

.aluno-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.alerta {
    border-left: 4px solid var(--warning);
    background: #fef7e0;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 1.5rem 1rem;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 0.85rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--muted);
}
.form-control {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    background: #e8eaed;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

/* ===== Tabelas ===== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    font-size: 0.9rem;
}
table.data th {
    background: #f8f9fa;
    text-align: left;
    padding: 0.7rem 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
table.data td {
    padding: 0.7rem 0.85rem;
    border-top: 1px solid #eee;
    vertical-align: top;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.stat-card .label { font-size: 0.78rem; color: var(--muted); }
.stat-card .value { font-size: 1.25rem; font-weight: 700; margin-top: 0.2rem; }
.stat-card .hint { font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; }

/* ===== Login ===== */
.login-box h1 { text-align: center; margin-bottom: 0.25rem; }
.login-box .subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
    .btn-menu { display: inline-flex; align-items: center; justify-content: center; }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 85vw);
        transform: translateX(-105%);
        box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    }

    .sidebar.open { transform: translateX(0); }

    .sidebar-backdrop.open { display: block; }

    .content { padding: 1rem; }

    .turma-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.25rem; }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .content { padding: 0.75rem; }
    .top-bar { padding: 0.6rem 0.75rem; }
}

/* ===== Site público da arena ===== */
.public-site { min-height: 100vh; background: #fafafa; color: #0f172a; }
.ps-loading { padding: 4rem 1rem; text-align: center; color: #64748b; }
.ps-nav { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 30; }
.ps-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0.85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ps-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; }
.ps-logo { height: 36px; width: auto; border-radius: 6px; }
.ps-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.ps-links a { color: #334155; text-decoration: none; }
.ps-links a:hover { color: var(--ps-primary, #0f766e); }
.ps-hero {
    background: linear-gradient(135deg, var(--ps-secondary, #134e4a), var(--ps-primary, #0f766e));
    background-size: cover; background-position: center;
    color: #fff; padding: 4rem 1.25rem;
}
.ps-hero-inner { max-width: 1100px; margin: 0 auto; }
.ps-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.75rem; line-height: 1.15; }
.ps-hero p { max-width: 36rem; opacity: 0.95; font-size: 1.05rem; margin-bottom: 1.5rem; }
.ps-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ps-btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--ps-secondary, #134e4a); font-weight: 600;
    padding: 0.7rem 1.25rem; border-radius: 999px; text-decoration: none; border: none; cursor: pointer;
}
.ps-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5);
    padding: 0.7rem 1.25rem; border-radius: 999px; text-decoration: none; cursor: pointer;
}
.ps-btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--ps-primary, #0f766e); border: 1px solid var(--ps-primary, #0f766e);
    padding: 0.45rem 0.9rem; border-radius: 999px; text-decoration: none; font-size: 0.9rem; cursor: pointer;
}
.ps-section { padding: 3rem 1.25rem; }
.ps-section.ps-muted { background: #f1f5f9; }
.ps-container { max-width: 1100px; margin: 0 auto; }
.ps-narrow { max-width: 520px; }
.ps-section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.ps-lead { color: #475569; max-width: 40rem; line-height: 1.6; }
.ps-meta { margin-top: 1rem; display: flex; gap: 1.25rem; flex-wrap: wrap; color: #64748b; font-size: 0.9rem; }
.ps-meta a { color: var(--ps-primary, #0f766e); }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; margin-top: 1.25rem; }
.ps-card { background: #fff; border-radius: 12px; padding: 1rem 1.1rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.ps-vagas { font-size: 0.85rem; color: #64748b; margin-top: 0.35rem; }
.ps-form label { display: block; font-size: 0.85rem; font-weight: 500; margin: 0.75rem 0 0.3rem; color: #64748b; }
.ps-input { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 0.95rem; }
.ps-alert { padding: 0.75rem 1rem; border-radius: 10px; background: #fef3c7; margin-bottom: 1rem; font-size: 0.9rem; }
.ps-alert.ok { background: #d1fae5; }
.ps-footer { text-align: center; padding: 2rem 1rem; color: #94a3b8; font-size: 0.85rem; border-top: 1px solid #e2e8f0; }
@media (max-width: 640px) {
    .ps-hero { padding: 2.5rem 1rem; }
    .ps-links { width: 100%; }
}

/* Portal do aluno */
.aluno-shell { min-height: 100vh; background: #f8fafc; }
.aluno-top { background: #0f172a; color: #fff; }
.aluno-top-inner {
    max-width: 960px; margin: 0 auto; padding: 0.85rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.aluno-main { max-width: 960px; margin: 0 auto; padding: 1.25rem; }

/* ===== Portal do aluno (visual) ===== */
.ap-shell { min-height: 100vh; background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 28%, #f8fafc 100%); color: #0f172a; }
.ap-topbar { background: rgba(15, 23, 42, 0.96); color: #fff; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.ap-topbar-inner { max-width: 920px; margin: 0 auto; padding: 0.85rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ap-brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.ap-brand-mark {
    width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, #14b8a6, #0f766e); font-size: 0.9rem;
}
.ap-topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.ap-user { font-size: 0.9rem; opacity: 0.9; }
.ap-main { max-width: 920px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.ap-hero { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; flex-wrap: wrap; }
.ap-kicker { color: #0f766e; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.25rem; }
.ap-hero h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 0.35rem; }
.ap-sub { color: #64748b; margin: 0; }
.ap-link-muted { color: #0f766e; font-size: 0.9rem; text-decoration: none; font-weight: 500; }
.ap-section { margin-bottom: 1.75rem; }
.ap-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; }
.ap-section-head h2 { font-size: 1.15rem; margin: 0; }
.ap-turma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
.ap-turma-card {
    background: #fff; border-radius: 16px; padding: 1.1rem 1.15rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); border: 1px solid #e2e8f0;
}
.ap-turma-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: #0f766e; background: #ccfbf1; padding: 0.2rem 0.5rem; border-radius: 999px; margin-bottom: 0.55rem;
}
.ap-turma-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.ap-turma-meta { display: flex; gap: 0.75rem; color: #475569; font-size: 0.9rem; margin: 0; }
.ap-turma-prof { margin: 0.45rem 0 0; font-size: 0.85rem; color: #64748b; }
.ap-empty-card, .ap-empty {
    background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 1.25rem; color: #64748b; text-align: center;
}
.ap-table-wrap {
    background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.ap-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ap-table th { text-align: left; padding: 0.85rem 1rem; background: #f8fafc; color: #64748b; font-weight: 600; font-size: 0.8rem; }
.ap-table td { padding: 0.9rem 1rem; border-top: 1px solid #f1f5f9; vertical-align: middle; }
.ap-status {
    display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
}
.ap-status.open { background: #fef3c7; color: #b45309; }
.ap-status.paid { background: #d1fae5; color: #047857; }
.ap-ok-text { color: #64748b; font-size: 0.85rem; }
.ap-btn-primary, .ap-btn-secondary, .ap-btn-ghost {
    border: none; cursor: pointer; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
    padding: 0.55rem 1rem; display: inline-flex; align-items: center; justify-content: center;
}
.ap-btn-primary { background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; }
.ap-btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
.ap-btn-primary.sm, .ap-btn-secondary.sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.ap-btn-secondary { background: #e2e8f0; color: #0f172a; }
.ap-btn-ghost { background: transparent; color: #64748b; }
.ap-pix-card {
    background: #fff; border: 1px solid #99f6e4; border-radius: 16px; padding: 1.15rem;
    margin-bottom: 1rem; box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
}
.ap-pix-top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.ap-pix-valor { font-size: 1.35rem; font-weight: 800; color: #0f766e; }
.ap-qr { max-width: 180px; display: block; margin: 0.5rem 0; }
.ap-label { display: block; font-size: 0.8rem; color: #64748b; margin: 0.5rem 0 0.25rem; }
.ap-textarea {
    width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 0.65rem 0.75rem;
    font-size: 0.8rem; resize: vertical; background: #f8fafc;
}
.ap-pix-actions { margin-top: 0.85rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ap-msg { margin: 0.75rem 0 0; font-size: 0.9rem; color: #0f766e; }
.ap-presenca-list { display: flex; flex-direction: column; gap: 0.55rem; }
.ap-presenca-item {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 0.85rem 1rem;
    display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
}
.ap-muted { color: #64748b; font-size: 0.85rem; }
.ap-alert.err { background: #fef2f2; color: #b91c1c; border-radius: 12px; padding: 0.85rem 1rem; }
@media (max-width: 640px) {
    .ap-table thead { display: none; }
    .ap-table tr { display: block; padding: 0.85rem 1rem; border-top: 1px solid #f1f5f9; }
    .ap-table td { display: flex; justify-content: space-between; gap: 1rem; border: none; padding: 0.25rem 0; }
    .ap-table td::before { content: attr(data-label); color: #64748b; font-weight: 600; }
}



/* ===== Landing site (tema confortável, cores via --ls-primary / --ls-secondary) ===== */
html { scroll-behavior: smooth; }
.ls-section, .ls-hero { scroll-margin-top: 88px; }

.ls-loading {
  min-height: 50vh; display: grid; place-items: center;
  color: #94a3b8; background: #0b1220; font-family: system-ui, sans-serif;
}

.ls-root {
  --ls-primary: #eab308;
  --ls-secondary: #0f172a;
  --ls-bg: #f1f5f9;
  --ls-bg-card: #ffffff;
  --ls-ink: #0f172a;
  --ls-muted: #64748b;
  --ls-line: #e2e8f0;
  --ls-dark: #0b1220;
  --ls-dark-2: #111827;
  min-height: 100vh;
  background: var(--ls-bg);
  color: var(--ls-ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.5;
}

/* Nav escura, menos brilho */
.ls-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ls-nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.ls-brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 800; font-size: 1.05rem; color: #f8fafc;
}
.ls-logo { height: 40px; width: auto; border-radius: 10px; object-fit: cover; }
.ls-logo-fallback {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: #0b1220; font-weight: 800;
  background: var(--ls-primary);
}
.ls-links {
  display: flex; gap: 0.35rem 1rem; align-items: center;
  flex-wrap: wrap; font-size: 0.9rem;
}
.ls-links a {
  color: #cbd5e1; text-decoration: none; font-weight: 500;
  padding: 0.35rem 0.2rem; cursor: pointer;
}
.ls-links a:hover { color: var(--ls-primary); }
.ls-btn-nav {
  background: var(--ls-primary) !important;
  color: #0b1220 !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  margin-left: 0.35rem;
}

/* Hero: imagem mais nítida, overlay controlado */
.ls-hero {
  position: relative;
  color: #f8fafc;
  padding: 4.5rem 1.25rem 5.5rem;
  background-color: var(--ls-dark);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.ls-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(105deg, rgba(11,18,32,0.92) 0%, rgba(11,18,32,0.72) 42%, rgba(11,18,32,0.35) 100%);
}
.ls-hero-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto;
}
.ls-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; font-weight: 700;
  color: var(--ls-primary); margin-bottom: 0.65rem;
}
.ls-eyebrow.dark { color: var(--ls-primary); opacity: 1; }
.ls-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08; margin: 0 0 0.85rem;
  max-width: 14ch; font-weight: 800; letter-spacing: -0.02em;
}
.ls-hero-sub {
  max-width: 34rem; font-size: 1.05rem;
  color: #cbd5e1; margin-bottom: 1.6rem; line-height: 1.6;
}
.ls-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.ls-btn-primary, .ls-btn-ghost, .ls-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.8rem 1.4rem;
  font-weight: 700; text-decoration: none; border: none;
  cursor: pointer; font-size: 0.95rem; transition: 0.15s ease;
}
.ls-btn-primary {
  background: var(--ls-primary); color: #0b1220;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ls-primary) 35%, transparent);
}
.ls-btn-primary:hover { filter: brightness(1.05); }
.ls-btn-primary.full {
  width: 100%; margin-top: 1rem;
  background: var(--ls-primary); color: #0b1220;
}
.ls-btn-ghost {
  background: transparent; color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.35);
}
.ls-btn-ghost:hover { border-color: #fff; }
.ls-btn-ghost.dark {
  color: var(--ls-ink); border-color: var(--ls-line); background: #fff;
}
.ls-btn-outline {
  background: transparent; color: var(--ls-ink);
  border: 1.5px solid var(--ls-line); margin-top: 0.75rem;
}
.ls-btn-outline:hover {
  border-color: var(--ls-primary); color: var(--ls-secondary);
}

/* Seções */
.ls-section { padding: 3.25rem 1.25rem; }
.ls-section.ls-muted { background: #e8eef5; }
.ls-section.ls-contato {
  background: var(--ls-dark-2);
  color: #f8fafc;
  background-size: cover; background-position: center;
}
.ls-container { max-width: 1120px; margin: 0 auto; }
.ls-narrow { max-width: 520px; }
.ls-center { text-align: center; }
.ls-section h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0.25rem 0 1rem; font-weight: 800; letter-spacing: -0.02em;
}
.ls-lead { color: var(--ls-muted); line-height: 1.65; max-width: 40rem; }
.ls-muted-text { color: var(--ls-muted); font-size: 0.9rem; }

/* Features sobrepostas no hero (efeito “flutuante”) */
.ls-features {
  margin-top: -2.75rem; padding-top: 0; padding-bottom: 2rem;
  background: transparent !important;
  position: relative; z-index: 2;
}
.ls-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}
.ls-feature {
  background: var(--ls-bg-card);
  border: 1px solid var(--ls-line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.ls-feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ls-primary) 22%, white);
  color: var(--ls-secondary); margin-bottom: 0.65rem; font-size: 1rem;
}
.ls-feature h3 { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 750; }
.ls-feature p { margin: 0; color: var(--ls-muted); font-size: 0.88rem; line-height: 1.45; }

.ls-two {
  display: grid; grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem; align-items: start;
}
.ls-missao {
  margin-top: 1.25rem; padding: 1rem 1.15rem;
  border-left: 4px solid var(--ls-primary);
  background: color-mix(in srgb, var(--ls-primary) 10%, white);
  border-radius: 0 14px 14px 0;
}
.ls-missao p { margin: 0.35rem 0 0; color: #475569; }
.ls-info-card {
  background: var(--ls-dark);
  color: #e2e8f0; border-radius: 20px; padding: 1.4rem 1.45rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.ls-info-card h3 { margin: 0 0 0.85rem; color: #fff; }
.ls-info-card p { margin: 0.45rem 0; font-size: 0.95rem; }
.ls-info-card a { color: var(--ls-primary); }

/* Planos */
.ls-planos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.ls-plano {
  background: var(--ls-bg-card);
  border-radius: 20px; padding: 1.35rem 1.25rem;
  border: 1px solid var(--ls-line);
  text-align: center;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  transition: 0.15s ease;
}
.ls-plano:hover {
  border-color: color-mix(in srgb, var(--ls-primary) 55%, var(--ls-line));
  transform: translateY(-2px);
}
.ls-plano h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.ls-plano-desc { color: var(--ls-muted); font-size: 0.86rem; min-height: 2.2em; }
.ls-plano-aulas {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ls-primary); margin: 0.5rem 0;
}
.ls-plano-preco { margin: 0.75rem 0 0.5rem; }
.ls-currency { font-size: 0.9rem; color: var(--ls-muted); vertical-align: super; }
.ls-valor { font-size: 2.15rem; font-weight: 800; line-height: 1; }
.ls-mes { color: var(--ls-muted); font-size: 0.9rem; }

.ls-horarios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem; margin-top: 1.25rem;
}
.ls-horario {
  background: var(--ls-bg-card);
  border: 1px solid var(--ls-line);
  border-radius: 14px; padding: 0.9rem 1rem;
}
.ls-horario strong { display: block; text-transform: capitalize; }

/* Form experimental */
.ls-form label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--ls-muted); margin: 0.75rem 0 0.3rem;
}
.ls-input {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1; border-radius: 12px;
  font-size: 0.95rem; background: #fff; color: var(--ls-ink);
}
.ls-alert {
  padding: 0.8rem 1rem; border-radius: 12px;
  background: #fef3c7; color: #78350f; margin-bottom: 1rem;
}
.ls-alert.ok { background: #d1fae5; color: #065f46; }
.ls-pix {
  background: #fff; border: 1px solid color-mix(in srgb, var(--ls-primary) 40%, #e2e8f0);
  border-radius: 16px; padding: 1.15rem;
}
.ls-qr { max-width: 200px; margin: 0.5rem 0; border-radius: 8px; }
.ls-row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.85rem; }
.ls-msg { margin-top: 0.75rem; color: var(--ls-secondary); font-weight: 600; }

/* CTA barra experimental estilo mockup */
.ls-cta-bar {
  max-width: 1120px; margin: 0 auto 2rem;
  background: var(--ls-dark);
  color: #f8fafc;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.ls-cta-bar h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.ls-cta-bar p { margin: 0; color: #94a3b8; font-size: 0.9rem; }

.ls-footer {
  text-align: center; padding: 2rem 1rem;
  background: var(--ls-dark); color: #f8fafc; font-weight: 600;
  border-top: none;
}
.ls-footer .ls-muted-text { font-weight: 400; margin-top: 0.25rem; color: #64748b; }

.ls-section.ls-has-bg { background-repeat: no-repeat; background-size: cover; }
.ls-section.ls-has-bg .ls-feature,
.ls-section.ls-has-bg .ls-plano,
.ls-section.ls-has-bg .ls-info-card,
.ls-section.ls-has-bg .ls-missao { backdrop-filter: blur(2px); }

@media (max-width: 800px) {
  .ls-two { grid-template-columns: 1fr; }
  .ls-hero { padding: 3rem 1rem 4rem; }
  .ls-features { margin-top: -1.5rem; }
  .ls-links { width: 100%; }
}

/* Upload marca (admin) */
.upload-hint {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.85rem 1rem;
}
.form-label-strong { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.img-preview-box {
  background: #f1f5f9; border-radius: 12px; padding: 0.75rem; margin-bottom: 0.5rem;
  display: flex; align-items: center; justify-content: center; min-height: 100px;
}
.img-preview-box.wide { min-height: 120px; }
.img-preview.logo { max-height: 80px; max-width: 160px; object-fit: contain; }
.img-preview.hero { max-height: 120px; width: 100%; object-fit: cover; border-radius: 8px; }
