:root {
    --bg: #0c1220;
    --bg-soft: #10182a;
    --surface: #141d31;
    --surface-alt: #1a263d;
    --text: #e8edf7;
    --text-muted: #a7b3c9;
    --primary: #4ea3ff;
    --primary-strong: #2e8ef4;
    --primary-soft: #1c304d;
    --secondary: #2ab8a8;
    --secondary-soft: #163a3c;
    --danger: #e15748;
    --danger-soft: #3d2425;
    --warning: #f2b64d;
    --warning-soft: #3d331f;
    --success: #37b36b;
    --success-soft: #183829;
    --border: #2a3650;
    --border-strong: #3b4a6b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;

    --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.4);

    --container: 1120px;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 8%, #1b2945 0%, transparent 30%),
        radial-gradient(circle at 90% 0%, #132944 0%, transparent 26%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 200px);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 180ms ease, opacity 180ms ease;
}

a:hover {
    color: var(--primary-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 var(--space-4);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
}

h1 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

p {
    margin: 0 0 var(--space-4);
}

.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

.page-content {
    padding: var(--space-6) 0 var(--space-10);
}

.muted {
    color: var(--text-muted);
    margin-top: 0;
}

.app-shell {
    min-height: 100vh;
}

/* Navbar publica e painel tutor */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(7, 12, 22, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-left: 0;
}

.brand-logo {
    width: 200px;
    height: auto;
    display: block;
}

.landing-logo {
    width: 280px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.topbar-nav a {
    color: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.7rem;
    font-size: 0.95rem;
}

.topbar-alert-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 36px;
}

.topbar-alert-icon {
    font-size: 1rem;
    line-height: 1;
}

.topbar-alert-count {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
}

.topbar-nav a:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.topbar-user-menu {
    position: relative;
}

.topbar-menu-trigger {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-alt);
    padding: 0.45rem 0.5rem;
    min-width: 40px;
    min-height: 36px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.topbar-menu-trigger::-webkit-details-marker {
    display: none;
}

.topbar-menu-trigger span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 4px;
    background: var(--text-muted);
}

.topbar-user-menu[open] .topbar-menu-trigger {
    border-color: var(--border-strong);
}

.topbar-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    z-index: 30;
}

.topbar-menu-dropdown a {
    display: block;
    color: var(--text);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
}

.topbar-menu-dropdown a:hover {
    background: var(--surface-alt);
    color: #fff;
}

/* Hero */
.hero {
    padding: clamp(3.25rem, 8vw, 5rem) 0;
    text-align: center;
}

.hero h1 {
    max-width: 18ch;
    margin-inline: auto;
    margin-bottom: var(--space-3);
}

.hero p {
    max-width: 62ch;
    margin-inline: auto;
    color: var(--text-muted);
}

.actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
    margin: var(--space-4) 0;
}

.actions .btn {
    flex-shrink: 0;
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.card-sub {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 42px;
    padding: 0.6rem 0.95rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 130ms ease, box-shadow 170ms ease, background-color 170ms ease, color 170ms ease, border-color 170ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn,
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 18px rgba(31, 122, 224, 0.25);
}

.btn:hover,
.btn-primary:hover {
    background: var(--primary-strong);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.24);
}

.btn-secondary:hover {
    background: #0a5e59;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: rgba(31, 122, 224, 0.35);
}

.btn-outline:hover {
    background: var(--primary-soft);
    color: #cfe5ff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 10px 18px rgba(192, 57, 43, 0.26);
}

.btn-danger:hover {
    background: #a93226;
    color: #fff;
}

/* Badges e status */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border: 1px solid transparent;
    margin: 0 0 var(--space-2);
}

.badge-trial,
.status-trial {
    background: var(--warning-soft);
    border-color: #5e4a26;
    color: #f9d58f;
}

.badge-active,
.status-active,
.badge-safe,
.status-safe {
    background: var(--success-soft);
    border-color: #2f724b;
    color: #90e5b4;
}

.badge-expired,
.status-expired,
.badge-lost,
.status-lost {
    background: var(--danger-soft);
    border-color: #7f3936;
    color: #ffb7b1;
}

/* Form styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}

.auth-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}

.auth-side {
    background: linear-gradient(160deg, #74b6ff 0%, #4f98f1 100%);
    padding: clamp(1.5rem, 2.4vw, 2.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #09111f;
}

.auth-side h2 {
    color: #09111f;
    margin-bottom: var(--space-3);
}

.auth-side p {
    color: rgba(9, 17, 31, 0.84);
    margin-bottom: var(--space-5);
}

.auth-side-btn {
    width: fit-content;
    background: transparent;
    border-color: rgba(9, 17, 31, 0.42);
    color: #09111f;
    box-shadow: none;
}

.auth-side-btn:hover {
    background: rgba(9, 17, 31, 0.1);
    border-color: rgba(9, 17, 31, 0.6);
    color: #09111f;
}

.auth-card {
    width: 100%;
    position: relative;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.auth-card-split {
    padding: clamp(1.2rem, 2.5vw, 2rem);
    padding-top: clamp(2.2rem, 3.8vw, 2.6rem);
}

.auth-brand {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--space-3);
}

.auth-logo {
    width: 220px;
}

.auth-links {
    margin-top: var(--space-3);
}

.auth-links p {
    margin: 0.35rem 0 0;
}

.auth-actions {
    margin-top: var(--space-4);
    justify-content: flex-end;
}

.auth-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text-muted);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    line-height: 1;
}

.auth-close:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: #22304b;
}

.password-field {
    position: relative;
    margin-bottom: var(--space-2);
}

.password-field input {
    margin-bottom: 0;
    padding-right: 2.9rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
}

.password-toggle:hover {
    color: var(--text);
    background: #23314f;
    border-color: var(--border);
}

.password-toggle .icon-eye,
.password-toggle .icon-eye-off {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
}

.password-toggle .icon-eye {
    display: inline-flex;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle svg {
    display: block;
    width: 18px;
    height: 18px;
}

.password-toggle[aria-pressed="true"] .icon-eye {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-off {
    display: inline-flex;
}

label {
    display: block;
    margin-top: var(--space-3);
    margin-bottom: var(--space-1);
    font-weight: 600;
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    padding: 0.62rem 0.78rem;
    outline: none;
    margin: 0 0 var(--space-2);
    transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4e8ed5;
    box-shadow: 0 0 0 4px rgba(78, 163, 255, 0.18);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input[type="checkbox"] {
    width: auto;
    margin-right: var(--space-2);
    accent-color: var(--primary);
}

/* Alerts e mensagens */
.alert {
    border-radius: var(--radius-md);
    border: 1px solid #7f3936;
    background: var(--danger-soft);
    color: #ffbeb7;
    padding: 0.7rem 0.85rem;
    margin-bottom: var(--space-3);
}

.alert.success {
    border-color: #2f724b;
    background: var(--success-soft);
    color: #9ce8bc;
}

/* Tabelas responsivas */
.table-wrap,
.alerts-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.alerts-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.alerts-table th,
.alerts-table td {
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    padding: 0.72rem 0.56rem;
}

.alerts-table th {
    background: var(--surface-alt);
    font-weight: 700;
}

.alerts-table td a,
.qrcode-info a {
    overflow-wrap: anywhere;
}

/* Lists, empty states e utilitarios */
.simple-list {
    margin: 0;
    padding-left: 1.1rem;
}

.empty-state {
    border: 1px dashed var(--border-strong);
    background: var(--surface-alt);
    color: var(--text-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
}

.kpi {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
}

/* Midia e blocos do pet */
.qrcode-image {
    max-width: 240px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
    padding: var(--space-2);
}

.pet-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.pet-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 150ms ease, box-shadow 170ms ease;
}

.pet-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pet-card-body {
    padding: var(--space-4);
}

.pet-card-body h3 {
    margin: 0 0 var(--space-2);
}

.pet-card-body p {
    margin: 0 0 var(--space-3);
    color: var(--text-muted);
}

.pet-thumb-wrap {
    height: 180px;
    background: #1f2b44;
}

.pet-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pet-thumb.placeholder {
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.pet-main-photo {
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: var(--space-3) 0 var(--space-4);
    display: block;
}

.location-helper {
    margin-bottom: var(--space-3);
}

/* Public pet pages */
.public-page {
    background:
        radial-gradient(circle at 12% 8%, #1e2f4f 0%, transparent 28%),
        linear-gradient(180deg, #0c1424 0%, #0a1220 220px);
}

.public-wrap {
    width: min(760px, 94%);
}

.public-card {
    padding: var(--space-5);
}

.public-kicker {
    margin-bottom: var(--space-2);
    color: #c8d9f4;
    font-weight: 700;
}

.public-title {
    margin-bottom: var(--space-3);
    font-size: clamp(1.55rem, 5vw, 2.25rem);
}

.public-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: var(--space-3) 0 var(--space-4);
    display: block;
    object-fit: cover;
    max-height: 420px;
}

.public-question {
    font-size: 1.08rem;
    margin-bottom: var(--space-2);
}

.public-actions {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.btn-block {
    width: 100%;
}

.public-info-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: 1fr;
    margin: var(--space-4) 0;
}

.public-info-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    padding: var(--space-3) var(--space-4);
}

.public-info-card p:last-child {
    margin-bottom: 0;
}

.public-success {
    text-align: center;
}

/* Tutor panel refinements */
.tutor-hero {
    margin-bottom: var(--space-5);
}

.tutor-hero h1 {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    margin-bottom: 0.2rem;
}

.tutor-trial-box {
    margin-top: var(--space-4);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.stat-card {
    text-align: left;
    padding: 0.85rem 1rem;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card p {
    margin-bottom: 0.35rem;
}

.stat-card .kpi {
    margin: 0.15rem 0 0.3rem;
    line-height: 1.05;
}

.form-grid {
    display: grid;
    gap: var(--space-3);
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-4);
    margin: var(--space-3) 0 var(--space-4);
}

.check-grid label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    padding: 0.62rem 0.72rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
}

.pet-form-card form .actions {
    margin-top: var(--space-4);
}

.pet-detail-card p {
    margin-bottom: var(--space-2);
}

.qrcode-card .qrcode-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-5);
    align-items: center;
    margin-bottom: var(--space-4);
}

.qrcode-card .qrcode-info p {
    margin-bottom: var(--space-2);
}

/* Landing page */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(10, 16, 28, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.landing-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.landing-nav a {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.4rem 0.55rem;
    border-radius: var(--radius-sm);
}

.landing-nav a:hover {
    background: var(--primary-soft);
    color: #d3e7ff;
}

.landing-hero {
    padding-top: var(--space-10);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-6);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    background: var(--primary-soft);
    color: #b9d9ff;
    border: 1px solid #355582;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.28rem 0.62rem;
    margin-bottom: var(--space-3);
}

.hero-mockup {
    display: flex;
    justify-content: center;
}

.mockup-card {
    width: min(330px, 100%);
}

.mockup-qr {
    width: 118px;
    height: 118px;
    border-radius: var(--radius-sm);
    border: 1px solid #4d5f82;
    object-fit: cover;
    margin-bottom: var(--space-3);
}

.landing-section {
    padding: var(--space-8) 0;
}

.landing-section[id] {
    scroll-margin-top: 96px;
}

.step-card {
    position: relative;
    padding-top: 3.1rem;
}

.step-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid #3b5987;
    color: #b9d9ff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.step-card h3 {
    margin-top: 0.45rem;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-3);
}

.benefit-list .card {
    margin-bottom: 0;
    text-align: center;
    font-weight: 600;
    background: var(--surface-alt);
}

.emotional .card {
    background: linear-gradient(120deg, #1a2741 0%, #1a2138 100%);
}

.price {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
}

.price span {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 600;
}

.plan-highlight {
    border-color: #4470a8;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.plan-current {
    border-color: #2f724b;
    box-shadow: 0 12px 28px rgba(18, 68, 44, 0.28);
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.faq-list .card {
    margin-bottom: 0;
}

.final-cta .card {
    text-align: center;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(9, 15, 27, 0.92);
    padding: var(--space-6) 0;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4);
    align-items: start;
}

.site-footer-logo {
    width: 250px;
}

.site-footer-copy {
    margin: var(--space-2) 0 0;
    color: var(--text-muted);
    max-width: 52ch;
}

.site-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-4);
}

.site-footer-nav a {
    color: var(--text-muted);
}

.site-footer-nav a:hover {
    color: #d7e8ff;
}

/* Responsivo */
@media (max-width: 1024px) {
    .grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .topbar-inner {
        padding: 0.25rem 0;
    }

    .topbar-nav {
        justify-content: flex-end;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid.two,
    .grid.three,
    .pet-cards {
        grid-template-columns: 1fr;
    }

    .hero-layout,
    .faq-list,
    .site-footer-inner {
        grid-template-columns: 1fr;
    }

    .landing-header-inner {
        min-height: auto;
        padding: var(--space-3) 0;
        flex-wrap: wrap;
    }

    .landing-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .landing-header .btn {
        width: 100%;
    }

    .site-footer-nav {
        grid-template-columns: 1fr;
    }

    .form-grid.two,
    .check-grid,
    .qrcode-card .qrcode-layout {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding-top: var(--space-5);
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-side {
        text-align: center;
        align-items: center;
        padding-block: var(--space-8);
    }

    .auth-side-btn {
        width: 100%;
    }

    .auth-brand {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: 94%;
    }

    .brand-logo {
        width: 170px;
    }

    .landing-logo {
        width: 190px;
    }

    .site-footer-logo {
        width: 190px;
    }

    .topbar-inner,
    .landing-header-inner {
        gap: var(--space-2);
    }

    .topbar-nav,
    .landing-nav {
        width: 100%;
    }

    .topbar-nav a,
    .landing-nav a {
        font-size: 0.9rem;
        padding: 0.34rem 0.52rem;
    }

    .auth-page {
        padding: var(--space-3);
    }

    .auth-card-split {
        padding: 2.1rem 1rem 1rem;
    }

    .auth-logo {
        width: 190px;
    }

    .auth-close {
        top: 0.45rem;
        right: 0.45rem;
        width: 40px;
        height: 40px;
        font-size: 1.35rem;
    }

    .actions.auth-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .actions.auth-actions .btn {
        width: 100%;
    }

    .public-wrap {
        width: 96%;
    }

    .table-wrap,
    .alerts-table-wrap {
        margin-inline: -0.25rem;
    }

    .alerts-table {
        min-width: 640px;
    }

    .alerts-table th,
    .alerts-table td {
        font-size: 0.86rem;
        padding: 0.62rem 0.48rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding-top: var(--space-4);
    }

    .landing-header .btn {
        width: 100%;
    }

    .actions .btn {
        width: 100%;
    }

    .card {
        padding: 0.95rem;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .check-grid label {
        padding: 0.56rem 0.62rem;
    }
}

@media (min-width: 768px) {
    .public-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}
