/* ===========================
   Base / Reset
   =========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-width: 320px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f3f7fb;
    color: #17243a;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   Identidade NÚCLEO DO PORTO DA ANTF (azul)
   =========================== */

:root {
    --brand-navy: #082d57;
    --brand-dark: #0b3b70;
    --brand-blue: #146fb3;
    --brand-bright: #2f8ed0;
    --brand-soft: #eaf4fc;
    --brand-pale: #f4f9fd;
    --antf-green: var(--brand-blue);
    --antf-green-dark: var(--brand-dark);
    --antf-green-soft: var(--brand-soft);
    --antf-text: #17243a;
    --antf-muted: #68778d;
    --antf-border: #d9e4ef;
    --antf-danger: #c83c4d;
    --antf-warning: #d79a1d;
    --antf-success: #198754;
    --antf-radius-lg: 18px;
    --antf-shadow-soft: 0 14px 36px rgba(8, 45, 87, 0.09);
    --antf-shadow-lift: 0 22px 48px rgba(8, 45, 87, 0.14);
}

/* ===========================
   Links e texto
   =========================== */

a {
    color: var(--antf-green-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===========================
   Botões
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: var(--antf-text);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--antf-green), var(--antf-green-dark));
    color: #fff;
    box-shadow: var(--antf-shadow-soft);
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(0, 143, 90, 0.3);
}

.btn-secondary {
    background: #fff;
    border-color: var(--antf-border);
    color: var(--antf-green-dark);
}

.btn-secondary:hover {
    background: var(--antf-green-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--antf-muted);
    border-color: transparent;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ===========================
   Layout Admin
   =========================== */

.admin-body {
    min-height: 100vh;
    display: flex;
}

.admin-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: radial-gradient(circle at top left, #00b46f, var(--antf-green-dark));
    color: #ecfdf5;
    padding: 1.5rem 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    text-transform: uppercase;
    background: rgba(0,0,0,0.12);
}

.sidebar-title {
    display: flex;
    flex-direction: column;
}

.sidebar-title span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-title span:last-child {
    font-size: 0.75rem;
    opacity: 0.85;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.sidebar-nav li {
    margin-bottom: 0.35rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #e5fbee;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.05s ease;
}

.sidebar-nav a:hover {
    background: rgba(0, 0, 0, 0.22);
    transform: translateX(2px);
}

.sidebar-footer {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 1.5rem;
}

/* ===========================
   Main / Topbar
   =========================== */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, rgba(0, 143, 90, 0.08), transparent 60%);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem 0.4rem;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--antf-muted);
}

/* ===========================
   Conteúdo / Cartões / Tabelas
   =========================== */

.page-content {
    padding: 0.5rem 2rem 2rem;
}

.card {
    background: #ffffff;
    border-radius: var(--antf-radius-lg);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--antf-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--antf-muted);
}

.stat-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.stat-pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--antf-green-soft);
    font-size: 0.85rem;
    color: var(--antf-green-dark);
}

/* Tabela */

.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table thead {
    background: #f0f4f8;
}

.table th,
.table td {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--antf-border);
    text-align: left;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #f9fbff;
}

/* Estados de presença */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-obs{
  border: 1px dashed rgba(0,0,0,.25);
  box-shadow: 0 0 0 2px rgba(0,0,0,.04) inset;
  cursor: help;
}

.badge-sim {
    background: rgba(0, 143, 90, 0.12);
    color: var(--antf-green-dark);
}

.badge-nao {
    background: rgba(214, 69, 69, 0.1);
    color: var(--antf-danger);
}

.badge-pendente {
    background: rgba(247, 201, 72, 0.12);
    color: #8a6d1c;
}

/* ===========================
   Formulários
   =========================== */

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--antf-border);
    font-size: 0.9rem;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: #f9fafb;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--antf-green);
    box-shadow: 0 0 0 1px rgba(0, 143, 90, 0.2);
    background: #ffffff;
}

/* Radio */

.radio-group {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

/* Mensagens */

.alert {
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.alert-error {
    background: rgba(214,69,69,0.06);
    color: var(--antf-danger);
}

.alert-success {
    background: rgba(0,143,90,0.08);
    color: var(--antf-green-dark);
}

/* ===========================
   Login
   =========================== */

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at top, rgba(0, 143, 90, 0.14), #f7fafc 60%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.8rem 1.9rem;
    box-shadow: var(--antf-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.login-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.login-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.login-subtitle {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    color: var(--antf-muted);
}

/* ===========================
   Frontend RSVP
   =========================== */

.rsvp-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(0, 143, 90, 0.15), #f7fafc 55%);
    padding: 1.5rem;
}

.rsvp-card {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 24px;
    padding: 1.8rem 1.9rem;
    box-shadow: var(--antf-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.rsvp-header {
    margin-bottom: 1rem;
}

.rsvp-event-title {
    margin: 0 0 0.2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.rsvp-meta {
    font-size: 0.9rem;
    color: var(--antf-muted);
}

.rsvp-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--antf-muted);
}

/* ===========================
   Responsivo
   =========================== */

@media (max-width: 880px) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding-top: 0.5rem;
    }

    .topbar {
        padding: 1rem 1.1rem 0.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .page-content {
        padding: 0.75rem 1.1rem 1.6rem;
    }
}

/* ===========================
   Tema premium azul — Núcleo do Porto da ANTF
   =========================== */

:focus-visible {
    outline: 3px solid rgba(47, 142, 208, 0.35);
    outline-offset: 2px;
}

.btn {
    min-height: 40px;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
}

.btn-primary:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(20, 111, 179, 0.28);
}

.btn-secondary:hover {
    border-color: #b9d6eb;
    text-decoration: none;
}

.btn-ghost:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    text-decoration: none;
}

.admin-body {
    overflow-x: hidden;
}

.sidebar {
    position: sticky;
    top: 0;
    width: 286px;
    height: 100vh;
    padding: 1.6rem 1.25rem 1.4rem;
    color: #f2f8fd;
    background:
        radial-gradient(circle at 15% 0%, rgba(47, 142, 208, 0.55), transparent 34%),
        linear-gradient(165deg, var(--brand-navy), #061f3c 78%);
    box-shadow: 14px 0 38px rgba(6, 31, 60, 0.12);
    z-index: 40;
}

.sidebar-header {
    margin-bottom: 2.2rem;
    padding: 0.2rem 0.25rem;
}

.sidebar-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    font-weight: 800;
    background: linear-gradient(145deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 24px rgba(0,0,0,0.16);
}

.sidebar-title span:first-child {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.045em;
}

.sidebar-title span:last-child {
    font-size: 0.7rem;
    opacity: 0.72;
    letter-spacing: 0.02em;
}

.sidebar-nav a {
    gap: 0.7rem;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #dceaf7;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.09);
    transform: translateX(3px);
}

.sidebar-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(47,142,208,0.42), rgba(255,255,255,0.12));
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.nav-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: rgba(178, 211, 238, 0.65);
    box-shadow: 0 0 0 4px rgba(178, 211, 238, 0.08);
}

.sidebar-nav a.active .nav-dot {
    background: #8dd2ff;
    box-shadow: 0 0 0 4px rgba(141, 210, 255, 0.15);
}

.sidebar-footer {
    color: rgba(226, 239, 250, 0.65);
    padding: 1rem 0.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.sidebar-footer-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #fff;
    font-weight: 700;
}

.sidebar-session {
    display: flex;
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    color: rgba(226, 239, 250, 0.82);
    font-size: 0.75rem;
    font-weight: 700;
}

.sidebar-session > span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #45d483;
    box-shadow: 0 0 0 4px rgba(69,212,131,0.12);
}

.sidebar-logout {
    display: flex;
    width: 100%;
    min-height: 42px;
    margin-top: 1rem;
    padding: 0.62rem 0.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sidebar-logout:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.sidebar-logout svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu-toggle,
.sidebar-backdrop {
    display: none;
}

.main-content {
    min-width: 0;
    background:
        radial-gradient(circle at 75% 0%, rgba(47, 142, 208, 0.1), transparent 30%),
        linear-gradient(180deg, #f8fbfe 0%, #f2f6fa 100%);
}

/* No desktop, apenas a area de conteudo rola; o menu permanece no viewport. */
@media (min-width: 881px) {
    html,
    body.admin-body {
        height: 100%;
        overflow: hidden;
    }

    .admin-shell {
        display: block;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .main-content {
        width: calc(100% - 286px);
        height: 100vh;
        height: 100dvh;
        margin-left: 286px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}

.topbar {
    padding: 1.65rem clamp(1.2rem, 3vw, 2.6rem) 0.8rem;
    gap: 1.5rem;
}

.topbar-heading {
    min-width: 0;
}

.page-eyebrow,
.section-kicker,
.login-eyebrow {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--brand-blue);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-title {
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    font-weight: 760;
    letter-spacing: -0.025em;
}

.session-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    white-space: nowrap;
}

.session-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--antf-success);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
}

.page-content {
    width: 100%;
    max-width: 1680px;
    padding: 0.7rem clamp(1.2rem, 3vw, 2.6rem) 2.6rem;
}

.card {
    padding: clamp(1.1rem, 2vw, 1.5rem);
    border: 1px solid rgba(201, 218, 233, 0.75);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-header {
    margin-bottom: 1rem;
    gap: 1rem;
}

.card-title {
    font-size: 1.12rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.card-subtitle {
    margin: 0.15rem 0 0;
}

.stat-pill {
    border-radius: 10px;
}

.table-wrapper {
    border: 1px solid #e2ebf3;
    border-radius: 14px;
    background: #fff;
}

.table thead {
    background: #f2f7fb;
}

.table th,
.table td {
    padding: 0.72rem 0.78rem;
}

.table th {
    color: #4f6177;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.table tbody tr:hover {
    background: #f4f9fd;
}

.form-group label {
    font-weight: 650;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    min-height: 42px;
    padding: 0.62rem 0.75rem;
    border-radius: 11px;
    background: #fbfdff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(20, 111, 179, 0.12);
}

.alert {
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
}

.alert-success {
    background: rgba(25, 135, 84, 0.08);
    color: #146c43;
}

.login-shell {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(47, 142, 208, 0.42), transparent 25%),
        radial-gradient(circle at 85% 85%, rgba(20, 111, 179, 0.2), transparent 30%),
        linear-gradient(145deg, #061f3c 0%, #0b3b70 52%, #0d538e 100%);
}

.login-shell::before,
.login-shell::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 50%;
    pointer-events: none;
}

.login-shell::before { top: -230px; right: -120px; }
.login-shell::after { bottom: -290px; left: -130px; }

.login-card {
    max-width: 470px;
    position: relative;
    z-index: 1;
    padding: clamp(1.45rem, 4vw, 2.2rem);
    border-radius: 24px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(255,255,255,0.62);
    box-shadow: 0 32px 70px rgba(1, 19, 38, 0.34);
}

.login-header {
    gap: 0.95rem;
    margin-bottom: 1.7rem;
}

.login-card .sidebar-logo {
    color: #fff;
    background: linear-gradient(145deg, var(--brand-bright), var(--brand-dark));
    border-color: rgba(20,111,179,0.18);
    box-shadow: 0 12px 28px rgba(20,111,179,0.25);
}

.login-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0.015em;
}

.login-actions {
    display: flex;
    margin-top: 1.35rem;
}

.login-actions .btn {
    width: 100%;
    min-height: 46px;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border-radius: 6px;
}

.login-footer {
    margin: 1.3rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e5edf4;
    color: var(--antf-muted);
    font-size: 0.75rem;
    text-align: center;
}

.rsvp-body {
    background: radial-gradient(circle at top, rgba(47, 142, 208, 0.18), #f4f8fc 55%);
}

@media (max-width: 880px) {
    .sidebar {
        display: flex;
        position: fixed;
        left: 0;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

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

    .mobile-menu-toggle {
        position: fixed;
        top: max(0.85rem, env(safe-area-inset-top));
        left: 0.85rem;
        z-index: 60;
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 1px solid #d4e1ec;
        border-radius: 12px;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 10px 26px rgba(8,45,87,0.16);
        cursor: pointer;
        transition: left 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .menu-open .mobile-menu-toggle {
        left: 232px;
    }

    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: var(--brand-dark);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: block;
        border: 0;
        background: rgba(2, 18, 35, 0.56);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        backdrop-filter: blur(2px);
    }

    .menu-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-open { overflow: hidden; }

    .main-content { padding-top: 0.2rem; }

    .topbar {
        min-height: 76px;
        padding: 1rem 1rem 0.6rem 4.4rem;
        flex-direction: row;
        align-items: center;
    }

    .page-content { padding: 0.75rem 1rem 1.6rem; }
}

@media (max-width: 640px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .card-header > .btn { width: 100%; }

    .radio-group {
        flex-direction: column;
        gap: 0.65rem;
    }

    .login-shell,
    .rsvp-body { padding: 0.75rem; }

    .login-card { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
