:root {
    --bg: #eef3f6;
    --surface: #ffffff;
    --text: #18202f;
    --muted: #697386;
    --line: #dde3ee;
    --accent: #176b5d;
    --accent-2: #f4b942;
    --danger: #b42318;
    --info: #2563eb;
    --success: #14966f;
    --warning: #d98218;
    --radius: 8px;
    font-family: Inter, Segoe UI, Arial, sans-serif;
}

/* Reforco do topo do aluno: fica fora dos media queries para vencer estilos antigos/cacheados. */
body .student-hero {
    border: 1px solid rgba(255,255,255,.18) !important;
    background:
        radial-gradient(circle at 94% 0%, rgba(244,185,66,.28), transparent 32%),
        linear-gradient(145deg, #0d463c, #167260 58%, #0f5148) !important;
    color: #fff !important;
    box-shadow: 0 16px 38px rgba(13, 70, 60, .26) !important;
}
body .student-hero h1 {
    color: #fff !important;
}
body .student-hero p {
    color: rgba(255,255,255,.9) !important;
}
body .student-hero-stats {
    display: grid !important;
}
body .student-hero-stats span {
    border: 1px solid rgba(255,255,255,.2) !important;
    background: rgba(236, 253, 245, .18) !important;
    color: rgba(255,255,255,.9) !important;
}
body .student-hero-stats strong {
    color: #fff !important;
}
body .student-hero .points-card {
    background: rgba(255,255,255,.97) !important;
    border: 1px solid rgba(255,255,255,.76) !important;
    color: #14231f !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.14) !important;
}
body .student-hero .points-card span {
    color: #53615d !important;
}
body .student-hero .points-card small {
    color: #60706b !important;
}
body .student-hero .points-card strong {
    color: #8a4700 !important;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 8% -10%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 28%),
        radial-gradient(circle at 94% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 24%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, white), var(--bg));
    color: var(--text);
    overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button, .primary, .ghost {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
button:disabled { opacity: .45; cursor: not-allowed; }
.primary {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #10242b));
    color: white;
    border-color: color-mix(in srgb, var(--accent) 82%, #10242b);
    font-weight: 800;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 20%, transparent);
}
.ghost { margin-top: 10px; color: var(--accent); }
.button-link, .report-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--surface);
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
}
.login-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent-2) 42%, transparent), transparent 26%),
        radial-gradient(circle at 84% 12%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 30%),
        linear-gradient(145deg, color-mix(in srgb, var(--accent) 40%, #10242b), #0f1f25 58%, color-mix(in srgb, var(--accent-2) 18%, #10242b));
}
.login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 82%);
    pointer-events: none;
}
.login-shell::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -120px;
    bottom: -120px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
}
.login-panel {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.62);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px);
}
.login-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--info));
}
.login-panel h1 {
    margin: 16px 0 8px;
    font-size: 40px;
    line-height: 1.03;
    letter-spacing: 0;
}
.login-panel > p {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.45;
}
.setup-panel { width: min(620px, 100%); }
.setup-panel h2 { margin: 12px 0 0; font-size: 20px; }
.setup-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.setup-colors input[type="color"] { height: 46px; padding: 5px; }
.first-access-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
    border-radius: 8px;
    display: grid;
    gap: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, white), #fff);
}
.first-access-box strong { color: var(--text); font-size: 18px; }
.first-access-box p { margin-bottom: 0; }
.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-radius: 8px;
    font-weight: 900;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 24%, transparent);
}
.brand-mark img, .mini-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
h1, h2, h3, p { margin-top: 0; }
p, small, span { color: var(--muted); }
.form-stack { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.form-grid.compact-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wide-field { grid-column: span 2; }
.check-label { display: flex; align-items: center; gap: 10px; align-self: center; }
.check-label input { width: auto; }
label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff; }
textarea { resize: vertical; min-height: 140px; }
select[multiple] { min-height: 94px; }
.search-input { margin: 6px 0 14px; max-width: 520px; }
.field-title { display: block; margin-bottom: 6px; color: var(--text); font-weight: 800; }
.search-picker { display: grid; gap: 8px; }
.picker-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.picker-results { display: grid; gap: 6px; }
.picker-results:empty { display: none; }
.picker-results button { width: 100%; text-align: left; background: #f6faf9; color: var(--text); }
.picker-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 10px; }
.picker-tag { padding: 7px 10px; background: #dff3ed; border-color: #b9ded4; color: var(--accent); font-weight: 800; }
.weekday-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.weekday-picker .check-label { width: auto; background: #f6faf9; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.alert { margin-top: 16px; padding: 12px; border-radius: 8px; background: #eef8f5; color: var(--accent); }
.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(255,255,255,.90);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
    backdrop-filter: blur(12px);
}
.topbar-title { display: flex; align-items: center; gap: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.install-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.install-card h2 { margin-bottom: 4px; }
.install-card p { margin: 0; color: var(--muted); }
.mini-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 900; }
.topbar-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.app-shell { width: min(1180px, calc(100% - 32px)); margin: 24px auto 60px; display: grid; gap: 20px; }
.admin-layout { width: min(1280px, calc(100% - 32px)); margin: 24px auto 60px; display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-sidebar { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; display: grid; gap: 18px; background: #10242b; color: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 18px 50px rgba(17, 34, 45, .12); }
.admin-sidebar h2 { margin-bottom: 0; font-size: 24px; }
.sidebar-kicker { color: #9fbbb6; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-content { display: grid; gap: 20px; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; background: linear-gradient(135deg, #ffffff, #eef8f5); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.page-heading h1 { margin-bottom: 6px; font-size: 30px; }
.page-heading p { margin-bottom: 0; max-width: 680px; }
.page-heading > span { white-space: nowrap; color: var(--accent); font-weight: 800; background: #dff3ed; border-radius: 8px; padding: 8px 10px; }
.hero { display: flex; justify-content: space-between; gap: 20px; align-items: stretch; background: #0f1f25; color: white; padding: 28px; border-radius: var(--radius); }
.hero p { color: #c9d9dd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.checkin-shortcut { min-height: 48px; padding-inline: 22px; }
.points-card { min-width: 220px; display: grid; align-content: center; gap: 6px; background: rgba(255,255,255,.1); padding: 20px; border-radius: 8px; }
.points-card span, .points-card small { color: #d9e9e8; }
.points-card strong { font-size: 42px; color: var(--accent-2); }
.big-number { display: block; font-size: 40px; color: var(--accent); margin: 8px 0; }
.grid { display: grid; gap: 20px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .metric, .class-card, .lead-card, .reward-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 34px rgba(20, 30, 50, .05); }
.status-line, .settings-line { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: #f0f6ff; color: #215191; }
#qr-reader { width: 100%; max-width: 420px; margin-top: 14px; overflow: hidden; border-radius: 8px; }
.camera-help { display: none; margin-top: 12px; padding: 12px; border-radius: 8px; background: #fff7e6; color: #8a5a00; border: 1px solid #f3d39a; }
.camera-help.show { display: block; }
.manual-qr-form { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.reward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reward-card { display: grid; gap: 10px; }
.plan-panel, .evolution-summary { display: grid; gap: 10px; }
.status-pill { width: fit-content; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 900; background: #eef8f5; color: var(--accent); text-transform: capitalize; }
.status-vencido, .status-bloqueado { background: #fff1f0; color: var(--danger); }
.status-pausado { background: #fff7e6; color: #8a5a00; }
.status-precheck-waitlist { background: #fff7e6; color: #8a5a00; }
.status-precheck-confirmed { background: #eef8f5; color: #176b5d; }
.status-precheck-approved { background: #edf3ff; color: #1d4ed8; }
.notice-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfb; }
.notice-line { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.notice-line:last-child { border-bottom: 0; }
.terms-box { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfb; }
.attendance-calendar { display: grid; grid-template-columns: repeat(7, 34px); gap: 7px; align-items: center; margin: 10px 0 14px; }
.calendar-head { text-align: center; font-size: 12px; font-weight: 900; color: var(--muted); }
.calendar-day { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; font-size: 13px; }
.calendar-day.empty { border-color: transparent; background: transparent; }
.calendar-day.done { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 900; }
.calendar-day.today { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.reward-photo { height: 130px; display: grid; place-items: center; border-radius: 8px; background: #edf3f2; color: var(--accent); font-size: 44px; font-weight: 900; }
.list-row { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row.compact { grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
.tabs { display: grid; gap: 8px; }
.tabs a { white-space: nowrap; text-decoration: none; color: #d7e8e5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 12px 12px; font-weight: 800; }
.tabs a.active, .tabs a:hover { color: #10242b; background: #ffffff; border-color: #ffffff; }
.professor-layout .admin-sidebar { align-content: start; }
.professor-layout .page-heading,
.professor-layout .panel { scroll-margin-top: 104px; }
.professor-tabs a { display: flex; align-items: center; min-height: 42px; }
.professor-tabs a::before { content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 999px; background: rgba(255,255,255,.30); flex: 0 0 auto; }
.professor-tabs a.active::before,
.professor-tabs a:hover::before { background: var(--accent-2); }
.parq-readonly .parq-question { grid-template-columns: auto minmax(0, 1fr) auto; display: grid; align-items: center; gap: 10px; }
.ok-text { color: #176b5d; }
.danger-text { color: #b42318; }
.precheck-row { gap: 8px; align-items: center; }
.precheck-row .mini-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.precheck-row form { margin: 0; }
.metric { display: grid; gap: 8px; }
.metric strong { font-size: 30px; color: var(--accent); }
.metric small { color: var(--muted); }
table { width: 100%; border-collapse: collapse; overflow: hidden; }
.table-scroll { width: 100%; max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.table-scroll table { margin: 0; min-width: 760px; }
.table-scroll th { position: sticky; top: 0; z-index: 2; background: #fff; box-shadow: 0 1px 0 var(--line); }
.students-scroll { max-height: 560px; }
.finance-payments-scroll { max-height: 430px; }
.professor-precheck-scroll { max-height: 430px; }
.finance-filter-form label { min-width: 150px; }
.finance-row-paid { background: #f0fdf4; }
.finance-row-open { background: #fffbeb; }
.finance-row-overdue { background: #fff1f2; }
.status-aberto { background: #fff7e6; color: #8a5a00; }
.status-pago { background: #eaf8ef; color: #176b3a; }
.precheck-class-cards { margin-top: 16px; }
.precheck-class-card { align-content: start; }
.precheck-class-modal { width: min(920px, 100%); }
.mini-metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini-metric-row div { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfb; }
.mini-metric-row strong { color: var(--accent); font-size: 20px; line-height: 1; }
.mini-metric-row span { color: var(--muted); font-size: 12px; font-weight: 800; }
.finance-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.finance-modal { width: min(1100px, 100%); }
.finance-old-edit-panel { display: none; }
.row-under-actions { margin-top: 8px; }
.row-under-actions button { min-height: 32px; padding: 7px 10px; font-size: 13px; }
.table-search { width: min(420px, 100%); margin: 0 0 12px; }
.auto-list-scroll { max-height: 420px; overflow-y: auto; padding-right: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.auto-list-scroll .list-row { padding-left: 12px; padding-right: 12px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.inline-form { display: grid; grid-template-columns: 1.2fr 1fr .6fr 1.4fr auto; gap: 10px; align-items: end; }
.class-card, .lead-card { display: grid; gap: 8px; }
.lead-card a { color: var(--accent); font-weight: 700; }
.lead-card .mini-actions a { display: inline-flex; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; color: var(--accent); background: #fff; }
.scroll-list { max-height: 420px; overflow-y: auto; padding-right: 8px; display: grid; gap: 10px; }
.compact-scroll { max-height: 360px; }
.tiny-scroll { max-height: 150px; }
.scroll-list span, .auto-list-scroll span { overflow-wrap: anywhere; }
.plan-list {
    display: grid;
    gap: 12px;
}
.section-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
}
.section-heading-row h2,
.section-heading-row p {
    margin-top: 0;
}
.group-create-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(150px, .7fr) auto auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 5%, #fff);
    margin-bottom: 14px;
}
.group-create-bar label {
    margin: 0;
}
.group-create-bar input {
    min-height: 42px;
}
.group-table-scroll {
    max-height: 360px;
}
.group-table-scroll td:last-child {
    min-width: 190px;
}
.compact-modal {
    width: min(720px, 100%);
}
.plan-list .edit-card {
    width: 100%;
}
.comm-card .scroll-list { max-height: 360px; }
.comm-card .list-row span { overflow-wrap: anywhere; color: var(--muted); }
.comm-card { align-self: start; }
.template-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}
.template-card {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 14px;
    text-align: left;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 32, 47, .06);
}
.template-card span {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, #fff);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}
.template-card strong {
    font-size: 17px;
}
.template-card small {
    color: var(--muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.message-template-modal {
    width: min(880px, 100%);
}
.message-template-modal textarea,
textarea[data-template-target] {
    min-height: 112px;
    resize: vertical;
}
.empty-line { padding: 14px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); background: #fafafa; }
.mini-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--accent); background: #fff; font-weight: 800; }
.parq-box { display: grid; gap: 12px; padding: 18px; border: 1px solid #cfe6dd; border-radius: 8px; background: #f7fbf9; }
.parq-box p { margin: 0; color: var(--muted); line-height: 1.45; }
.parq-list { margin: 0; padding-left: 0; display: grid; gap: 10px; list-style: none; counter-reset: parq; }
.parq-question { counter-increment: parq; display: grid; gap: 10px; padding: 12px; border-radius: 8px; background: #fff; border: 1px solid #d6e5ea; }
.parq-question::before { content: counter(parq); width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: 12px; font-weight: 900; }
.parq-question-text { display: block; color: var(--text); font-weight: 800; line-height: 1.35; }
.parq-answer-row { display: grid; grid-template-columns: repeat(2, minmax(0, 96px)); gap: 8px; align-items: center; margin-top: 0; }
.parq-answer-row .parq-choice { min-height: 34px; display: block; padding: 0; border: 0; background: transparent; font-weight: 800; color: var(--text); }
.parq-answer-row .parq-choice input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
.parq-answer-row .parq-choice span { min-height: 34px; display: grid; place-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; color: var(--text); }
.parq-answer-row .parq-choice input[type="radio"]:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 18%, transparent); }
.parq-alert-line { padding: 10px 12px; border-radius: 8px; background: #fff7e6; border: 1px solid #f0d092; color: #7a4d00; font-weight: 800; }
.parq-admin-note { padding: 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.parq-admin-answers { margin-top: 12px; }
.admin-parq-list { padding-left: 20px; max-height: 320px; overflow-y: auto; }
.compact-inline { grid-template-columns: minmax(180px, 260px) auto; max-width: 460px; }
.frequency-card .mini-metric { padding: 12px; box-shadow: none; }
.muted-card { opacity: .72; }
.panel-subtitle { margin: 20px 0 8px; color: var(--text); font-weight: 900; }
.attention-panel { border-color: #a8d9ca; background: linear-gradient(135deg, #ffffff, #eef8f5); }
.password-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 20; padding: 24px; background: rgba(15, 31, 37, .52); overflow-y: auto; }
.modal-backdrop.show { display: grid; place-items: start center; }
.modal-panel { position: relative; width: min(980px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; box-shadow: 0 24px 70px rgba(10, 20, 30, .26); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; font-size: 24px; line-height: 1; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.checkin-choice-modal { width: min(520px, 100%); }
.class-block { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.class-block:last-child { border-bottom: 0; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; background: #f6faf9; color: var(--text); }
.mini-row span { font-size: 13px; }
.edit-card { display: grid; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.edit-card:last-child { border-bottom: 0; }
.mini-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini-actions select { width: auto; min-width: 130px; }
.mini-actions input { width: 150px; padding: 9px 10px; }
.student-row-actions { margin-top: 10px; max-width: 520px; align-items: flex-start; }
.student-row-actions button,
.student-row-actions a { min-height: 34px; padding: 8px 10px; font-size: 13px; }
.student-row-actions .pause-reason { width: 150px; min-width: 140px; }
.students-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.students-toolbar h2,
.students-toolbar p { margin-top: 0; }
.students-toolbar p { color: var(--muted); line-height: 1.4; }
.student-card-search { margin-bottom: 12px; }
.student-status-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.student-status-filters button { min-height: 34px; padding: 7px 11px; font-size: 13px; background: #fff; }
.student-status-filters button.active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.student-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; max-height: 680px; overflow-y: auto; padding-right: 6px; }
.student-card { display: grid; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(20, 30, 50, .06); }
.student-card[hidden] { display: none; }
.student-card-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.student-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-weight: 900; }
.student-card-head strong { display: block; line-height: 1.2; }
.student-card-head small { color: var(--muted); overflow-wrap: anywhere; }
.student-status-badge { display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-height: 28px; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.student-status-badge i { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.status-ativo { background: #eaf8f0; color: #16834a; }
.status-vence { background: #fff7e6; color: #9a6700; }
.status-vencido { background: #fdecec; color: #b42318; }
.status-pausado { background: #eaf3ff; color: #1d4ed8; }
.status-bloqueado { background: #f1f3f5; color: #667085; }
.status-primeiro-acesso { background: #f3eafe; color: #6b21a8; }
.student-card-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.student-card-info span { display: grid; gap: 3px; padding: 9px; border-radius: 8px; background: #f8fafc; color: var(--muted); font-size: 12px; }
.student-card-info strong { color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.student-card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.student-card-foot button { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.student-profile-modal { width: min(1120px, 100%); }
.student-profile-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.student-profile-summary div { display: grid; gap: 4px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.student-profile-summary span,
.student-profile-list-title { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.student-profile-summary strong { overflow-wrap: anywhere; }
.student-profile-section { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.student-profile-finance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.student-profile-list { display: grid; gap: 8px; align-content: start; }
.student-profile-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.student-profile-tabs button { min-height: 36px; padding: 8px 12px; border-color: transparent; background: transparent; color: var(--muted); font-size: 13px; }
.student-profile-tabs button.active { background: #fff; color: var(--accent); border-color: var(--line); box-shadow: 0 8px 18px rgba(20, 30, 50, .06); }
.student-tab-panel { display: none; }
.student-tab-panel.active { display: grid; }
.class-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; max-height: 340px; overflow: auto; padding-right: 4px; }
.class-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.class-choice input { width: auto; min-height: auto; margin-top: 3px; }
.class-choice span { display: grid; gap: 4px; }
.class-choice small { color: var(--muted); line-height: 1.35; }
.confirm-class-shell {
    align-items: stretch;
    background:
        radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--accent-2) 34%, transparent), transparent 26%),
        radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 30%),
        linear-gradient(145deg, color-mix(in srgb, var(--accent) 56%, #0f1f25), #0f1f25 68%);
}
.confirm-class-panel {
    width: min(560px, 100%);
    max-width: 560px;
    align-self: center;
    border: 1px solid rgba(255,255,255,.34);
    box-shadow: 0 26px 70px rgba(0,0,0,.28);
}
.confirm-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.confirm-brand-row > div:last-child {
    display: grid;
    gap: 3px;
}
.confirm-brand-row strong {
    color: var(--text);
    font-size: 18px;
}
.confirm-brand-row span,
.confirm-intro {
    color: var(--muted);
}
.confirm-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 10%, white);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.confirm-class-panel h1 {
    margin-bottom: 8px;
}
.confirm-class-card {
    display: grid;
    gap: 14px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 12px;
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 34%),
        linear-gradient(145deg, #fff, color-mix(in srgb, var(--accent) 6%, white));
    box-shadow: 0 14px 30px rgba(20, 30, 50, .08);
}
.confirm-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.confirm-status-row small {
    color: var(--muted);
    font-weight: 800;
}
.confirm-class-card > strong {
    color: var(--text);
    font-size: clamp(25px, 5vw, 34px);
    line-height: 1.05;
}
.confirm-class-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.confirm-class-details span {
    display: grid;
    gap: 4px;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.78);
    color: var(--text);
    font-weight: 900;
}
.confirm-class-details small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.confirm-note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--success) 10%, white);
    color: color-mix(in srgb, var(--success) 72%, #10242b);
    font-size: 14px;
    font-weight: 800;
}
.warning-note {
    background: color-mix(in srgb, var(--danger) 10%, white);
    color: var(--danger);
}
.confirm-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}
.confirm-action-grid form,
.confirm-action-grid button,
.confirm-class-panel .button-link {
    width: 100%;
}
.confirm-action-grid button {
    min-height: 52px;
}
.confirm-action-grid button:disabled {
    background: #d7dce5;
    border-color: #d7dce5;
    color: #707b8d;
}
.confirm-empty-card {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #f8fafc;
}
.confirm-empty-card strong {
    font-size: 20px;
}
.confirm-empty-card p {
    margin: 0;
    color: var(--muted);
}
.assessment-modal { width: min(1050px, 100%); max-height: calc(100vh - 56px); overflow: auto; }
.assessment-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; max-height: 720px; overflow-y: auto; padding-right: 6px; margin-top: 14px; }
.assessment-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(20, 30, 50, .06); }
.assessment-card[hidden] { display: none; }
.assessment-card p { margin: 0; color: var(--muted); line-height: 1.4; }
.assessment-measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.assessment-measures span { display: grid; gap: 3px; padding: 9px; border-radius: 8px; background: #f8fafc; color: var(--muted); font-size: 12px; }
.assessment-measures strong { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.admin-action-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-action-panel p { margin: 4px 0 0; color: var(--muted); }
.admin-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; max-height: 680px; overflow-y: auto; padding-right: 6px; }
.admin-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(20, 30, 50, .06); }
.admin-card[hidden] { display: none; }
.admin-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.admin-card-head strong { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.admin-card-head small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.admin-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-card-meta span { display: grid; gap: 3px; padding: 9px; border-radius: 8px; background: #f8fafc; color: var(--muted); font-size: 12px; }
.admin-card-meta strong { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.admin-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-card-actions button,
.admin-card-actions a { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.compact-modal { width: min(860px, 100%); max-height: calc(100vh - 56px); overflow: auto; }
.danger-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px; border: 1px solid #f4c7c2; background: #fff7f6; border-radius: 8px; }
.danger-button { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 900; }
.report-card { display: grid; gap: 8px; color: var(--text); min-height: 110px; align-content: center; box-shadow: 0 10px 34px rgba(20, 30, 50, .05); }
.report-card strong { color: var(--accent); font-size: 20px; }
.brand-preview { min-height: 520px; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent) 9%, white)); }
.brand-preview-card { width: min(430px, 100%); display: grid; gap: 18px; }
.brand-preview-top { display: flex; align-items: center; gap: 14px; text-align: left; }
.brand-preview-top h2 { margin-bottom: 4px; }
.preview-mark { width: 78px; height: 78px; font-size: 24px; flex: 0 0 auto; }
.brand-preview-hero { display: grid; gap: 10px; padding: 22px; border-radius: 8px; background: #10242b; color: #fff; text-align: left; }
.brand-preview-hero span { color: #d7e8e5; }
.brand-preview-hero strong { color: var(--accent-2); font-size: 32px; }
.brand-preview-hero button { width: fit-content; }
.brand-preview-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.brand-preview-mini span { height: 76px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent) 12%, white)); }
.brand-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.brand-presets button { display: grid; grid-template-columns: 18px 18px 18px 1fr; align-items: center; gap: 6px; text-align: left; padding: 10px; }
.brand-presets span { width: 18px; height: 18px; border-radius: 999px; border: 1px solid rgba(0,0,0,.08); }
.qr-panel { display: grid; place-items: center; text-align: center; gap: 14px; }
.qr-image { width: 280px; max-width: 100%; border: 12px solid #fff; box-shadow: 0 10px 30px rgba(20, 30, 50, .12); }
.admin-topbar {
    height: 68px;
    padding-inline: 24px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.94), color-mix(in srgb, var(--accent-2) 8%, white)),
        rgba(255,255,255,.86);
    box-shadow: 0 10px 30px rgba(16, 36, 43, .06);
}
.admin-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--info));
}
.admin-topbar .topbar-title strong {
    font-size: 16px;
    letter-spacing: 0;
}
.admin-topbar form button {
    background: #fff;
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
    color: var(--accent);
    font-weight: 900;
}
.modern-admin {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
}
.modern-admin .admin-sidebar {
    top: 88px;
    min-height: calc(100vh - 112px);
    max-height: calc(100vh - 112px);
    align-content: start;
    gap: 22px;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 84% 4%, color-mix(in srgb, var(--accent-2) 34%, transparent), transparent 28%),
        radial-gradient(circle at 16% 92%, color-mix(in srgb, var(--info) 22%, transparent), transparent 34%),
        linear-gradient(180deg, #10242b, color-mix(in srgb, var(--accent) 28%, #10242b));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 22px 60px rgba(16, 36, 43, .20);
}
.admin-sidebar-head {
    position: relative;
    padding: 4px 2px 12px;
    border-bottom: 1px solid rgba(255,255,255,.11);
}
.modern-admin .admin-sidebar h2 {
    font-size: 28px;
    line-height: 1;
}
.modern-admin .sidebar-kicker {
    color: color-mix(in srgb, var(--accent-2) 70%, white);
    letter-spacing: .08em;
}
.modern-admin .tabs {
    gap: 7px;
}
.modern-admin .tabs a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px 10px 14px;
    color: rgba(255,255,255,.80);
    background: transparent;
    border-color: transparent;
    font-size: 14px;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.modern-admin .tabs a::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
}
.modern-admin .tabs a.active,
.modern-admin .tabs a:hover {
    color: #fff;
    background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
    border-color: rgba(255,255,255,.18);
    transform: translateX(2px);
}
.modern-admin .tabs a.active::before {
    background: var(--accent-2);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.modern-admin .admin-content {
    gap: 18px;
}
.modern-admin .page-heading {
    position: relative;
    overflow: hidden;
    align-items: center;
    min-height: 138px;
    padding: 26px;
    border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
    background:
        radial-gradient(circle at 94% 18%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 28%),
        radial-gradient(circle at 72% 90%, color-mix(in srgb, var(--info) 10%, transparent), transparent 32%),
        linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent) 10%, #ffffff));
    box-shadow: 0 18px 50px rgba(20, 30, 50, .07);
}
.modern-admin .page-heading::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}
.modern-admin .page-heading > div,
.modern-admin .page-heading > span {
    position: relative;
    z-index: 1;
}
.modern-admin .page-heading h1 {
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1.05;
}
.modern-admin .page-heading p {
    font-size: 15px;
    line-height: 1.45;
}
.modern-admin .page-heading > span {
    background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent-2) 12%, white));
    border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
    box-shadow: 0 10px 24px rgba(20, 30, 50, .06);
}
.modern-admin .panel,
.modern-admin .metric,
.modern-admin .class-card,
.modern-admin .lead-card,
.modern-admin .reward-card,
.modern-admin .report-card {
    border-color: color-mix(in srgb, var(--accent) 8%, var(--line));
    box-shadow: 0 14px 38px rgba(20, 30, 50, .055);
}
.modern-admin .panel {
    padding: 22px;
}
.modern-admin .panel h2 {
    margin-bottom: 16px;
    font-size: 21px;
    letter-spacing: 0;
}
.modern-admin .metric {
    position: relative;
    overflow: hidden;
    min-height: 134px;
    padding: 18px;
    align-content: space-between;
    background:
        radial-gradient(circle at 92% 14%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28%),
        linear-gradient(180deg, #fff, #fbfdfd);
}
.modern-admin .metric::after {
    content: "";
    position: absolute;
    inset: auto 16px 0 16px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.modern-admin .metric:nth-child(4n+2)::after { background: linear-gradient(90deg, var(--info), var(--accent)); }
.modern-admin .metric:nth-child(4n+3)::after { background: linear-gradient(90deg, var(--warning), var(--accent-2)); }
.modern-admin .metric:nth-child(4n+4)::after { background: linear-gradient(90deg, var(--success), var(--info)); }
.modern-admin .metric:nth-child(4n+2) strong { color: var(--info); }
.modern-admin .metric:nth-child(4n+3) strong { color: var(--warning); }
.modern-admin .metric:nth-child(4n+4) strong { color: var(--success); }
.modern-admin .metric span {
    font-weight: 800;
    color: var(--muted);
}
.modern-admin .metric strong {
    font-size: 36px;
    line-height: 1;
}
.modern-admin .metric small {
    line-height: 1.35;
}
.modern-admin .report-card {
    background:
        radial-gradient(circle at 92% 16%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 28%),
        linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent) 5%, #fff));
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.modern-admin .report-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
    box-shadow: 0 18px 46px rgba(20, 30, 50, .09);
}
.modern-admin input,
.modern-admin select,
.modern-admin textarea {
    border-color: color-mix(in srgb, var(--accent) 10%, var(--line));
    background: #fbfcfd;
}
.modern-admin input:focus,
.modern-admin select:focus,
.modern-admin textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    background: #fff;
}
.modern-admin table {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.modern-admin th {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, #fff), #f6faf9);
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
    font-weight: 900;
}
.modern-admin td {
    background: #fff;
}
.modern-admin tr:hover td {
    background: #fbfdfd;
}
.modern-admin .edit-card,
.modern-admin .list-row {
    border-color: color-mix(in srgb, var(--accent) 8%, var(--line));
}
.modern-admin .attention-panel {
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 30%),
        linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent) 9%, #ffffff));
}

/* Visual refresh: deixa painéis de gestão mais leves e menos blocados. */
.admin-topbar {
    height: 60px;
    padding-inline: 28px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 9%, var(--line));
    box-shadow: 0 8px 24px rgba(20, 30, 50, .045);
}
.admin-topbar::after {
    height: 2px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--info));
    opacity: .9;
}
.admin-topbar form button {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    color: color-mix(in srgb, var(--accent) 78%, #111827);
    box-shadow: none;
}
.admin-layout,
.modern-admin {
    width: min(1320px, calc(100% - 36px));
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
}
.admin-sidebar,
.modern-admin .admin-sidebar {
    top: 78px;
    min-height: auto;
    max-height: calc(100vh - 96px);
    padding: 16px;
    gap: 14px;
    background: rgba(255,255,255,.92);
    border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
    color: var(--text);
    box-shadow: 0 16px 38px rgba(20, 30, 50, .08);
    backdrop-filter: blur(14px);
}
.admin-sidebar-head {
    padding: 2px 4px 12px;
    border-bottom: 1px solid var(--line);
}
.admin-sidebar h2,
.modern-admin .admin-sidebar h2 {
    color: var(--text);
    font-size: 24px;
}
.sidebar-kicker,
.modern-admin .sidebar-kicker {
    color: color-mix(in srgb, var(--accent) 70%, var(--muted));
}
.tabs,
.modern-admin .tabs {
    gap: 5px;
}
.tabs a,
.modern-admin .tabs a {
    min-height: 38px;
    padding: 9px 10px;
    color: color-mix(in srgb, var(--text) 76%, var(--muted));
    background: transparent;
    border-color: transparent;
    font-size: 14px;
    font-weight: 800;
}
.tabs a::before,
.modern-admin .tabs a::before {
    background: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.tabs a.active,
.tabs a:hover,
.modern-admin .tabs a.active,
.modern-admin .tabs a:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 7%, #fff);
    border-color: color-mix(in srgb, var(--accent) 13%, var(--line));
    transform: none;
}
.tabs a.active::before,
.modern-admin .tabs a.active::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.admin-content,
.modern-admin .admin-content {
    gap: 16px;
}
.page-heading,
.modern-admin .page-heading {
    min-height: auto;
    padding: 22px 24px;
    border-color: color-mix(in srgb, var(--accent) 8%, var(--line));
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), color-mix(in srgb, var(--accent) 4%, #fff));
    box-shadow: 0 12px 30px rgba(20, 30, 50, .045);
}
.modern-admin .page-heading::after {
    display: none;
}
.page-heading h1,
.modern-admin .page-heading h1 {
    font-size: 30px;
    line-height: 1.12;
}
.page-heading p,
.modern-admin .page-heading p {
    font-size: 15px;
}
.page-heading > span,
.modern-admin .page-heading > span {
    padding: 8px 12px;
    background: color-mix(in srgb, var(--accent-2) 13%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent-2) 20%, var(--line));
    box-shadow: none;
}
.panel,
.metric,
.class-card,
.lead-card,
.reward-card,
.report-card,
.modern-admin .panel,
.modern-admin .metric,
.modern-admin .class-card,
.modern-admin .lead-card,
.modern-admin .reward-card,
.modern-admin .report-card {
    border-color: color-mix(in srgb, var(--accent) 7%, var(--line));
    box-shadow: 0 8px 22px rgba(20, 30, 50, .045);
}
.panel,
.modern-admin .panel {
    padding: 18px 20px;
}
.panel h2,
.modern-admin .panel h2 {
    margin-bottom: 14px;
    font-size: 20px;
}
.metric,
.modern-admin .metric {
    min-height: 104px;
    padding: 16px;
    background: #fff;
}
.modern-admin .metric::after {
    inset: auto 14px 0 14px;
    height: 2px;
}
.metric strong,
.modern-admin .metric strong {
    font-size: 28px;
}
button,
.primary,
.ghost,
.button-link,
.report-card,
.mini-actions a {
    min-height: 38px;
    border-radius: 8px;
    padding: 9px 13px;
}
.primary {
    background: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 82%, #0f172a);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 14%, transparent);
}
.primary:hover {
    background: color-mix(in srgb, var(--accent) 88%, #0f172a);
}
.danger-button {
    box-shadow: none;
}
input,
select,
textarea,
.modern-admin input,
.modern-admin select,
.modern-admin textarea {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fff;
}
label {
    gap: 5px;
    font-size: 14px;
}
.form-grid,
.form-grid.compact-form {
    gap: 12px 14px;
}
.table-scroll {
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.modern-admin th {
    background: #f8fafc;
}
.modern-admin tr:hover td {
    background: color-mix(in srgb, var(--accent) 3%, #fff);
}
.class-card,
.lead-card {
    gap: 7px;
}
.mini-metric-row div {
    background: #fff;
}
.student-mobile-nav { display: none; }
.quick-checkin-modal { width: min(560px, 100%); }
.quick-checkin-modal .modal-kicker { display: inline-flex; width: fit-content; margin-bottom: 6px; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.quick-checkin-modal h2 { margin-top: 0; }
.quick-checkin-modal #startScanner { width: 100%; margin-top: 8px; }
.quick-checkin-modal .manual-qr-details { margin-top: 14px; }
.student-hero h1 { letter-spacing: 0; }
.student-hero-stats { display: none; }
.student-empty-state { padding: 13px; border-radius: 8px; background: #f8fbfb; border: 1px dashed var(--line); color: var(--muted); line-height: 1.35; }
.student-summary-grid .panel h2,
.student-wellness-grid .panel h2,
.student-checkin-grid .panel h2,
.student-rewards-panel h2,
.student-history-panel h2,
.student-bottom-grid h2 { font-size: 19px; margin-bottom: 10px; }
.student-qr-card { border-color: color-mix(in srgb, var(--accent) 26%, var(--line)); }
.student-qr-card #startScanner { width: fit-content; min-width: 190px; }
.precheck-usage-card { display: grid; gap: 4px; margin: 12px 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 8px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent) 6%, #fff)); }
.precheck-usage-card span,
.precheck-options-head span { color: var(--muted); font-size: 13px; font-weight: 800; }
.precheck-usage-card strong { color: var(--accent); font-size: 24px; line-height: 1; }
.precheck-usage-card small { color: var(--muted); }
.precheck-section-label { width: fit-content; margin: 14px 0 8px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.student-current-precheck { display: grid; gap: 8px; margin: 12px 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 8px; background: #f8fbfb; }
.student-current-precheck strong { font-size: 18px; }
.student-current-precheck p { margin: 0; color: var(--muted); }
.student-precheck-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.student-precheck-actions form { margin: 0; }
.precheck-options-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 16px 0 10px; }
.student-precheck-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.student-precheck-option { display: grid; gap: 5px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.student-precheck-option.marked { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.student-precheck-option > span { color: var(--accent); font-size: 20px; font-weight: 900; line-height: 1; }
.student-precheck-option strong { min-height: 38px; }
.student-precheck-option small { color: var(--muted); line-height: 1.25; }
.student-precheck-option button { margin-top: 6px; min-height: 38px; width: 100%; }
.marked-precheck-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 6px;
    border: 1px solid color-mix(in srgb, var(--success) 32%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--success) 12%, white);
    color: color-mix(in srgb, var(--success) 76%, #10242b);
    font-weight: 900;
}
@media (max-width: 1100px) and (min-width: 821px) {
    .student-wellness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-calendar-card { grid-column: 1 / -1; }
    .student-calendar-card .attendance-calendar { grid-template-columns: repeat(7, minmax(42px, 1fr)); gap: 8px; }
    .student-calendar-card .calendar-day { width: 100%; height: 42px; }
    .student-calendar-card .calendar-head { width: 100%; }
    .student-checkin-grid { grid-template-columns: 1fr; }
}
@media print {
    body * { visibility: hidden; }
    .qr-panel, .qr-panel * { visibility: visible; }
    .qr-panel { position: fixed; inset: 0; border: 0; box-shadow: none; }
    .topbar, .admin-sidebar { display: none; }
}
@media (max-width: 820px) {
    .group-create-bar {
        grid-template-columns: 1fr;
    }
    body { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg)), var(--bg) 260px); }
    .hero, .two, .three, .four, .reward-grid { grid-template-columns: 1fr; display: grid; }
    .topbar { height: 58px; padding: 0 12px; }
    .topbar-title strong { max-width: 48vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-actions { gap: 6px; }
    .topbar-actions button { padding: 8px 10px; }
    .topbar-actions [data-install-app] { display: none !important; }
    .app-shell { width: min(100% - 18px, 1180px); margin-top: 14px; gap: 14px; padding-bottom: 24px; }
    .admin-layout { width: min(100% - 20px, 1180px); grid-template-columns: 1fr; margin-top: 14px; }
    .admin-sidebar { position: static; }
    .admin-topbar .topbar-title strong { max-width: 54vw; }
    .modern-admin { gap: 14px; }
    .modern-admin .admin-sidebar {
        min-height: auto;
        max-height: none;
        overflow: visible;
        padding: 14px;
        border-radius: 8px;
    }
    .admin-sidebar-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 10px;
    }
    .modern-admin .admin-sidebar h2 {
        font-size: 21px;
    }
    .modern-admin .tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0 -14px;
        padding: 0 14px 2px;
        overflow: visible;
        scrollbar-width: auto;
    }
    .modern-admin .tabs a {
        flex: 1 1 132px;
        min-height: 38px;
        padding: 8px 11px;
        font-size: 13px;
        transform: none;
    }
    .modern-admin .tabs a:hover,
    .modern-admin .tabs a.active {
        transform: none;
    }
    .modern-admin .tabs a::before {
        display: none;
    }
    .modern-admin .page-heading {
        min-height: 0;
        padding: 18px;
    }
    .modern-admin .page-heading h1 {
        font-size: 26px;
    }
    .modern-admin .page-heading > span {
        width: fit-content;
        font-size: 13px;
    }
    .modern-admin .panel {
        padding: 16px;
    }
    .modern-admin .metric {
        min-height: 112px;
    }
    .modern-admin .metric strong {
        font-size: 32px;
    }
    .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tabs a { text-align: center; white-space: normal; }
    .page-heading { display: grid; }
    .inline-form { grid-template-columns: 1fr; }
    .form-grid, .form-grid.compact-form { grid-template-columns: 1fr; }
    .wide-field { grid-column: auto; }
    .list-row.compact { grid-template-columns: 1fr; }
    .parq-box { padding: 12px; gap: 10px; }
    .parq-box > strong { line-height: 1.25; }
    .parq-list { gap: 8px; }
    .parq-question { padding: 10px; }
    .parq-question-text { font-size: 14px; line-height: 1.32; }
    .parq-answer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .parq-answer-row label { min-height: 36px; padding: 7px 8px; font-size: 14px; }
    .scroll-list { max-height: 320px; }
    .student-row-actions { display: grid; grid-template-columns: 1fr 1fr; max-width: 100%; }
    .student-row-actions button,
    .student-row-actions a,
    .student-row-actions .pause-reason { width: 100%; }
    .students-toolbar { display: grid; }
    .students-toolbar .mini-actions { display: grid; grid-template-columns: 1fr; }
    .students-toolbar .mini-actions button,
    .students-toolbar .mini-actions a { width: 100%; }
    .student-card-grid { grid-template-columns: 1fr; max-height: 620px; }
    .student-card-head { grid-template-columns: 40px minmax(0, 1fr); }
    .student-card-head .student-status-badge { grid-column: 1 / -1; }
    .student-card-info { grid-template-columns: 1fr; }
    .admin-action-panel { display: grid; align-items: start; }
    .admin-card-grid,
    .assessment-card-grid { grid-template-columns: 1fr; max-height: 620px; }
    .admin-card-head { display: grid; }
    .admin-card-meta,
    .assessment-measures { grid-template-columns: 1fr; }
    .admin-card-actions button,
    .admin-card-actions a { width: 100%; }
    .student-profile-summary,
    .student-profile-finance { grid-template-columns: 1fr; }
    .danger-row { align-items: flex-start; flex-direction: column; }
    .install-card { align-items: flex-start; flex-direction: column; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .checkin-shortcut { width: 100%; }
    .panel { overflow-x: auto; }
    table { display: table; min-width: 680px; white-space: nowrap; }
    .student-hero {
        position: relative;
        overflow: hidden;
        display: grid;
        gap: 14px;
        padding: 20px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 8px;
        background:
            radial-gradient(circle at 94% 0%, rgba(244,185,66,.28), transparent 32%),
            linear-gradient(145deg, #0d463c, #167260 58%, #0f5148);
        color: #fff;
        box-shadow: 0 16px 38px rgba(13, 70, 60, .26);
    }
    .student-hero::after {
        content: "";
        position: absolute;
        right: -42px;
        bottom: -46px;
        width: 150px;
        height: 150px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 999px;
        pointer-events: none;
    }
    .student-hero > * {
        position: relative;
        z-index: 1;
    }
    .student-hero h1 {
        margin-bottom: 8px;
        font-size: 28px;
        line-height: 1.08;
        color: #fff;
        text-shadow: 0 1px 0 rgba(0,0,0,.08);
    }
    .student-hero p {
        margin-bottom: 0;
        font-size: 14px;
        line-height: 1.45;
        color: rgba(255,255,255,.86);
    }
    .student-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }
    .student-hero-stats span {
        min-height: 62px;
        display: grid;
        align-content: center;
        gap: 3px;
        padding: 9px 8px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 8px;
        background: rgba(236, 253, 245, .16);
        color: rgba(255,255,255,.86);
        font-size: 11px;
        line-height: 1.15;
    }
    .student-hero-stats strong {
        display: block;
        color: #ffffff;
        font-size: 18px;
        line-height: 1;
    }
    .student-hero .ghost {
        margin-top: 0;
        background: #fff;
        border-color: var(--line);
        color: var(--accent);
    }
    .student-hero .primary {
        min-height: 52px;
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        box-shadow: 0 12px 28px rgba(0,0,0,.18);
    }
    .points-card {
        min-width: 0;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 14px 16px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(255,255,255,.72);
        color: #14231f;
        box-shadow: 0 12px 26px rgba(0,0,0,.12);
    }
    .points-card span {
        color: #53615d;
        font-weight: 800;
    }
    .points-card strong {
        grid-row: span 2;
        font-size: 38px;
        text-align: right;
        color: #8a4700;
    }
    .points-card small { color: #60706b; font-size: 12px; }
    .student-mobile-nav {
        display: flex;
        gap: 8px;
        position: sticky;
        top: 58px;
        z-index: 4;
        order: 2;
        margin: -4px -9px 0;
        padding: 8px 9px;
        overflow-x: auto;
        background: rgba(238, 243, 246, .86);
        border-bottom: 1px solid rgba(221, 227, 238, .78);
        backdrop-filter: blur(12px);
        scrollbar-width: none;
    }
    .student-mobile-nav::-webkit-scrollbar { display: none; }
    .student-mobile-nav a,
    .student-mobile-nav button {
        flex: 0 0 auto;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 13px;
        border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
        border-radius: 8px;
        background: rgba(255,255,255,.92);
        color: var(--accent);
        text-decoration: none;
        font-size: 13px;
        font-weight: 900;
    }
    .student-mobile-nav button {
        background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #10242b));
        color: #fff;
        box-shadow: 0 10px 22px rgba(15, 31, 37, .16);
    }
    .student-install-card {
        order: 4;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
        background: #fff;
    }
    .student-install-card::before {
        content: "+";
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        background: color-mix(in srgb, var(--accent) 12%, white);
        color: var(--accent);
        font-size: 24px;
        font-weight: 900;
    }
    .student-install-card h2 { font-size: 16px; margin: 0 0 4px; }
    .student-install-card p { font-size: 13px; line-height: 1.35; }
    .student-install-card button { grid-column: 1 / -1; width: 100%; }
    .student-summary-grid {
        order: 5;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .student-hero { order: 1; }
    .student-checkin-grid { order: 3; }
    .student-billing-panel { order: 6; }
    .student-wellness-grid { order: 7; }
    .student-rewards-panel { order: 8; }
    .student-history-panel { order: 9; }
    .student-bottom-grid { order: 10; }
    .student-summary-grid .panel,
    .student-wellness-grid .panel,
    .student-checkin-grid .panel,
    .student-billing-panel,
    .student-rewards-panel,
    .student-history-panel,
    .student-bottom-grid .panel {
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 10px 28px rgba(20, 30, 50, .06);
    }
    .student-summary-grid .panel h2,
    .student-wellness-grid .panel h2,
    .student-checkin-grid .panel h2,
    .student-rewards-panel h2,
    .student-history-panel h2,
    .student-bottom-grid h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .plan-panel {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        align-items: start;
        background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent) 5%, white));
    }
    .plan-panel h2,
    .plan-panel p,
    .plan-panel small { grid-column: 1; }
    .plan-panel .status-pill { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
    .plan-panel strong { font-size: 22px; color: var(--text); }
    .plan-panel p { margin-bottom: 0; }
    .evolution-summary,
    .student-presence-card {
        min-height: 172px;
    }
    .student-evolution-card {
        background: linear-gradient(180deg, #fff, #fbfdfd);
    }
    .student-presence-card {
        background:
            radial-gradient(circle at 86% 14%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 36%),
            #fff;
    }
    .student-presence-card .big-number {
        font-size: 52px;
        line-height: .9;
        margin: 10px 0 8px;
    }
    .student-presence-card span,
    .student-presence-card small {
        display: block;
        line-height: 1.35;
    }
    .student-presence-card small {
        margin-top: 8px;
    }
    .mini-row {
        padding: 8px 9px;
        gap: 8px;
        font-size: 13px;
    }
    .student-billing-panel .list-row.compact {
        padding: 12px;
        margin-top: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #f8fbfb;
    }
    .student-billing-panel h2,
    .student-rewards-panel h2,
    .student-history-panel h2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .student-billing-panel h2::after,
    .student-rewards-panel h2::after,
    .student-history-panel h2::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }
    .notice-card {
        padding: 15px;
        line-height: 1.38;
    }
    .notice-card p {
        margin-bottom: 4px;
    }
    .student-wellness-grid {
        gap: 10px;
    }
    .student-calendar-card {
        grid-row: span 2;
    }
    .attendance-calendar {
        width: 100%;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
        margin-top: 12px;
    }
    .calendar-day,
    .calendar-head {
        width: 100%;
    }
    .calendar-day {
        height: 36px;
        border-radius: 8px;
    }
    .student-checkin-grid { gap: 10px; }
    .student-qr-card {
        order: -1;
        background:
            radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent-2) 15%, transparent), transparent 34%),
            linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent) 8%, white));
        border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
    }
    .student-qr-card h2 {
        font-size: 20px;
    }
    .student-qr-card p {
        margin-bottom: 14px;
    }
    .student-qr-card #startScanner {
        width: 100%;
        min-height: 54px;
        font-size: 17px;
    }
    .manual-qr-details {
        margin-top: 12px;
        border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
        border-radius: 8px;
        background: rgba(255,255,255,.72);
        overflow: hidden;
    }
    .manual-qr-details summary {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        color: var(--accent);
        cursor: pointer;
        font-weight: 900;
        list-style: none;
    }
    .manual-qr-details summary::-webkit-details-marker { display: none; }
    .manual-qr-details summary::after {
        content: "+";
        margin-left: auto;
        font-size: 20px;
        color: var(--accent);
    }
    .manual-qr-details[open] summary::after { content: "-"; }
    .manual-qr-form {
        background: rgba(255,255,255,.72);
        margin-top: 0;
        padding: 12px;
        border-top: 1px solid var(--line);
        border-radius: 0;
    }
    #qr-reader {
        max-width: none;
    }
    .student-precheck-card .status-line,
    .status-line,
    .settings-line {
        margin: 10px 0;
        font-size: 13px;
    }
    .student-rewards-panel {
        overflow: hidden;
    }
    .student-rewards-panel .reward-grid {
        display: flex;
        gap: 12px;
        margin: 0 -15px;
        padding: 2px 15px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .student-rewards-panel .reward-card {
        flex: 0 0 76%;
        scroll-snap-align: start;
        padding: 14px;
        border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
    }
    .reward-photo {
        height: 92px;
        font-size: 34px;
        background:
            radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 38%),
            color-mix(in srgb, var(--accent) 8%, white);
    }
    .reward-card h3 {
        margin-bottom: 0;
        font-size: 17px;
    }
    .reward-card p {
        min-height: 38px;
        margin-bottom: 0;
        font-size: 13px;
    }
    .student-history-panel .list-row,
    .student-bottom-grid .list-row {
        padding: 12px;
        margin-top: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }
    .student-history-panel .list-row span,
    .student-history-panel .list-row small {
        line-height: 1.35;
    }
    .student-bottom-grid {
        gap: 10px;
    }
    .student-points-history,
    .student-requests-panel {
        min-height: 120px;
    }
    .form-stack,
    .manual-qr-form {
        gap: 12px;
    }
    input, select, textarea {
        min-height: 46px;
        font-size: 16px;
    }
    button, .primary, .ghost {
        min-height: 44px;
        font-weight: 800;
    }
    .modal-backdrop {
        padding: 10px;
    }
    .modal-panel {
        padding: 18px;
        max-height: calc(100vh - 20px);
        overflow: auto;
    }
    .parq-answer-row .parq-choice input[type="radio"] {
        width: 1px !important;
        height: 1px !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        appearance: none;
        -webkit-appearance: none;
    }
    .student-hero .checkin-shortcut {
        width: 100%;
        border-color: color-mix(in srgb, var(--accent) 82%, #000);
        background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #10242b));
        color: #fff;
        box-shadow: 0 12px 28px rgba(15, 31, 37, .22);
    }
}

/* Ajuste final do painel do aluno para hospedagem: garante contraste mesmo com cache antigo. */
html body .student-hero.student-plan-ativo,
html body .student-hero {
    background:
        radial-gradient(circle at 94% 0%, rgba(244, 185, 66, .28), transparent 34%),
        linear-gradient(135deg, #07483d 0%, #0f766e 58%, #065f46 100%) !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 38px rgba(7, 72, 61, .28) !important;
}
html body .student-hero h1,
html body .student-hero p,
html body .student-hero .student-hero-stats,
html body .student-hero .student-hero-stats span,
html body .student-hero .student-hero-stats small,
html body .student-hero .student-hero-stats strong {
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
}
html body .student-hero h1,
html body .student-hero .student-hero-stats strong {
    color: #ffffff !important;
}
html body .student-hero p,
html body .student-hero .student-hero-stats span,
html body .student-hero .student-hero-stats small {
    color: rgba(255, 255, 255, .92) !important;
}
html body .student-hero .student-hero-stats {
    display: grid !important;
    gap: 12px !important;
}
html body .student-hero .student-hero-stats span {
    min-height: 74px !important;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, .26) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .16) !important;
    backdrop-filter: blur(6px);
}
html body .student-hero .student-hero-stats strong {
    font-size: clamp(24px, 5vw, 34px) !important;
    line-height: 1.05 !important;
}
html body .student-hero .points-card {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .9) !important;
    color: #14231f !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}
html body .student-hero .points-card span,
html body .student-hero .points-card small {
    color: #5b6474 !important;
}
html body .student-hero .points-card strong {
    color: #713500 !important;
}

html body .student-birthday-month {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 221, 89, .22), transparent 24%),
        radial-gradient(circle at 92% 16%, rgba(244, 114, 182, .18), transparent 28%),
        transparent;
}

html body .birthday-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 6px;
    border: 1px solid color-mix(in srgb, #f59e0b 32%, var(--line)) !important;
    background:
        radial-gradient(circle at 96% 10%, rgba(244, 114, 182, .22), transparent 28%),
        radial-gradient(circle at 8% 0%, rgba(34, 197, 94, .16), transparent 26%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #ecfeff 100%) !important;
    box-shadow: 0 16px 36px rgba(180, 83, 9, .14) !important;
}

html body .birthday-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(245, 158, 11, .95) 0 3px, transparent 4px),
        radial-gradient(circle, rgba(14, 165, 233, .8) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(236, 72, 153, .75) 0 2px, transparent 3px);
    background-size: 72px 72px, 96px 96px, 118px 118px;
    background-position: 8px 10px, 44px 30px, 18px 58px;
    opacity: .45;
}

html body .birthday-banner > * {
    position: relative;
    z-index: 1;
}

html body .birthday-banner span {
    color: #b45309;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html body .birthday-banner strong {
    color: #13231f;
    font-size: clamp(24px, 5vw, 42px);
    line-height: 1.05;
}

html body .birthday-banner p {
    max-width: 760px;
    color: #53615d;
    font-size: 16px;
}

html body .student-hero.student-hero-birthday {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, .34), transparent 22%),
        radial-gradient(circle at 10% 18%, rgba(254, 240, 138, .34), transparent 24%),
        linear-gradient(135deg, #0f766e 0%, #15803d 48%, #ca8a04 100%) !important;
}

html body .student-hero.student-hero-birthday::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 8%, rgba(255, 255, 255, .18) 8% 10%, transparent 10% 22%, rgba(255, 255, 255, .14) 22% 24%, transparent 24% 100%);
    opacity: .65;
}

html body .student-hero.student-hero-birthday-today {
    background:
        radial-gradient(circle at 92% 4%, rgba(253, 224, 71, .42), transparent 23%),
        radial-gradient(circle at 12% 12%, rgba(244, 114, 182, .26), transparent 26%),
        linear-gradient(135deg, #0f766e 0%, #16a34a 42%, #f59e0b 100%) !important;
    box-shadow: 0 20px 46px rgba(180, 83, 9, .24) !important;
}

html body .student-hero.student-hero-birthday .points-card {
    border-color: rgba(255, 255, 255, .96) !important;
}

@media (max-width: 640px) {
    html body .birthday-banner {
        padding: 18px;
    }
    html body .birthday-banner strong {
        font-size: 25px;
    }
    html body .birthday-banner p {
        font-size: 14px;
    }
    .confirm-class-shell {
        padding: 14px;
        place-items: start center;
    }
    .confirm-class-panel {
        padding: 22px;
        border-radius: 14px;
    }
    .confirm-class-details,
    .confirm-action-grid {
        grid-template-columns: 1fr;
    }
    .confirm-class-details span {
        min-height: 0;
    }
    .confirm-brand-row {
        align-items: flex-start;
    }
}
