:root {
    --bg: #f5f7fb;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --muted: #5b6475;
    --primary: #0a84ff;
    --primary-strong: #0066cc;
    --danger: #b42318;
    --shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    --radius: 28px;
    --hero-bg: linear-gradient(145deg, rgba(255,255,255,.58), rgba(223,235,255,.75));
    --page-bg:
        radial-gradient(circle at top left, rgba(10, 132, 255, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 159, 10, 0.16), transparent 28%),
        linear-gradient(180deg, #edf4ff 0%, #f8fafc 48%, #eef2ff 100%);
}

:root[data-theme="dark"] {
    --bg: #07111f;
    --surface: rgba(8, 15, 28, 0.78);
    --surface-strong: #0b1527;
    --line: rgba(148, 163, 184, 0.16);
    --text: #e5eefb;
    --muted: #a8b5ca;
    --primary: #4ea1ff;
    --primary-strong: #86bfff;
    --danger: #ff7b7b;
    --shadow: 0 28px 60px rgba(2, 8, 23, 0.45);
    --hero-bg: linear-gradient(145deg, rgba(8,15,28,.88), rgba(18,36,63,.76));
    --page-bg:
        radial-gradient(circle at top left, rgba(78, 161, 255, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(180deg, #06101d 0%, #0b1220 50%, #121a2b 100%);
}

* { box-sizing: border-box; }
html {
    min-height: 100%;
    zoom: .75;
    background: var(--page-bg);
}
body {
    margin: 0;
    font-family: "SF Pro Display", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--page-bg);
    min-height: 133.334vh;
}

.liquid-shell {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(10, 132, 255, .28), transparent 25%),
        radial-gradient(circle at 90% 17%, rgba(107, 190, 255, .20), transparent 26%),
        linear-gradient(135deg, #eaf3ff 0%, #f7fbff 48%, #e7f1ff 100%);
}
.liquid-ambient {
    position: fixed;
    z-index: -1;
    width: 42vw;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(45px);
    opacity: .3;
    pointer-events: none;
}
.liquid-ambient-one { top: 18vh; left: -18vw; background: #0a84ff; }
.liquid-ambient-two { right: -18vw; bottom: 4vh; background: #7dd3fc; }
:root[data-theme="dark"] .liquid-shell {
    background:
        radial-gradient(circle at 12% 8%, rgba(10, 132, 255, .20), transparent 25%),
        radial-gradient(circle at 90% 17%, rgba(73, 175, 255, .14), transparent 26%),
        linear-gradient(135deg, #05101e 0%, #0a1526 50%, #061120 100%);
}

a { color: inherit; text-decoration: none; }

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.topbar, .panel, .form-card, .hero-panel, .metric-card {
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 999px;
    margin-bottom: 24px;
    gap: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255,255,255,.7);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a84ff, #7dd3fc);
    box-shadow: 0 0 30px rgba(10, 132, 255, 0.5);
}

.nav, .topbar-actions, .action-row, .room-meta { display: flex; align-items: center; gap: 12px; }
.inline-form { margin: 0; }
.nav a, .user-pill { padding: 10px 14px; border-radius: 999px; color: var(--muted); }
.nav a:hover { background: rgba(255,255,255,.12); color: var(--text); }
.user-pill { background: rgba(255,255,255,.12); }

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: .2s ease;
}

.button.primary { background: linear-gradient(135deg, var(--primary), #4dabff); color: white; }
.button.secondary, .button.ghost {
    background: rgba(255,255,255,.08);
    border-color: var(--line);
    color: var(--text);
}
.button.danger { color: var(--danger); }
.button:hover { transform: translateY(-1px); }
.full { width: 100%; }
.theme-toggle {
    min-width: 140px;
    gap: 8px;
}
.theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: .95rem;
    background: rgba(255,255,255,.12);
}
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: inline-flex; }

.hero-dashboard, .grid-two, .auth-layout, .logout-layout { display: grid; gap: 24px; }
.hero-dashboard { grid-template-columns: 1.5fr 1fr; margin-bottom: 24px; align-items: stretch; }
.hero-dashboard.admin { grid-template-columns: 1.3fr 1fr; }
.hero-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hero-dashboard.metrics-only { grid-template-columns: 1fr; }
.hero-metrics.full-width { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card, .panel, .form-card, .hero-panel { border-radius: var(--radius); padding: 28px; }
.metric-card { box-shadow: 0 18px 40px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255,255,255,.68); }

.metric-card strong { display: block; font-size: 2rem; margin-bottom: 6px; }
.eyebrow { color: var(--primary-strong); text-transform: uppercase; font-size: .8rem; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; margin-bottom: 16px; }
h2 { font-size: 1.5rem; margin-bottom: 12px; }
p, small, span, th, td, label { color: var(--muted); }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
}

.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.room-grid.large { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.room-card {
    min-height: 220px;
    color: white;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.3);
}
.room-card * { color: white; }
.room-card.selected { outline: 2px solid rgba(255,255,255,.7); transform: translateY(-2px); }
.room-actions { margin-top: 18px; }

.agenda-list { display: grid; gap: 14px; }
.agenda-item, .room-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.auth-layout { grid-template-columns: 1.2fr .9fr; min-height: calc(100vh - 120px); align-items: center; }
.logout-layout { grid-template-columns: 1.1fr .8fr; min-height: calc(100vh - 180px); align-items: center; }
.hero-panel {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: var(--hero-bg);
}
.hero-panel.compact { min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.logout-card { display: grid; gap: 16px; }
.logout-card strong { color: var(--text); }
.form-card.wide { max-width: 740px; width: 100%; }
.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    opacity: .8;
}
.orb-one { width: 220px; height: 220px; background: rgba(10,132,255,.22); right: 30px; top: 40px; }
.orb-two { width: 180px; height: 180px; background: rgba(255,159,10,.22); left: 40px; bottom: 30px; }

.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.input {
    width: 100%;
    border: 1px solid rgba(15,23,42,.1);
    background: rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 14px 16px;
    color: var(--text);
    font: inherit;
}
select.input {
    appearance: none;
    -webkit-appearance: none;
    min-height: 52px;
    padding-right: 52px;
    cursor: pointer;
    background-color: var(--surface-strong);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
select.input:hover { border-color: rgba(10,132,255,.42); }
select.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10,132,255,.16), inset 0 1px 0 rgba(255,255,255,.45);
}
select.input:disabled {
    cursor: not-allowed;
    opacity: .6;
}
:root[data-theme="dark"] select.input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a8b5ca' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 6px 0 0;
    accent-color: var(--primary);
    justify-self: start;
}
.color-input {
    min-height: 56px;
    padding: 8px;
    cursor: pointer;
}
.textarea { resize: vertical; min-height: 120px; }
.field:has(textarea), .field:last-of-type:nth-child(odd) { grid-column: 1 / -1; }
.form-intro { margin-top: -4px; margin-bottom: 18px; }
.mini-gradient {
    width: 72px;
    height: 10px;
    border-radius: 999px;
    margin-top: 10px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.35);
}
.color-preview {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
}
.preview-swatch {
    height: 88px;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.table-shell { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 240px)) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
}
.filter-bar-compact {
    grid-template-columns: minmax(260px, 320px) auto;
    margin-bottom: 0;
}
.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.search-field {
    min-width: 0;
}
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}
.pagination-meta {
    color: var(--muted);
    font-size: .95rem;
}
.status {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10,132,255,.12);
    color: var(--primary-strong);
}
.agenda-item .status {
    margin-top: 10px;
}
.status-scheduled {
    background: rgba(10,132,255,.12);
    color: var(--primary-strong);
}
.status-live {
    background: rgba(16,185,129,.14);
    color: #0f9f6e;
}
.status-completed {
    background: rgba(148,163,184,.16);
    color: var(--muted);
}
.status-cancelled {
    background: rgba(180,35,24,.12);
    color: var(--danger);
}
:root[data-theme="dark"] .status-live {
    color: #6ee7b7;
}

.messages { display: grid; gap: 12px; margin-bottom: 20px; }
.message {
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.empty { padding: 24px 0; }
.muted { margin-top: 18px; }
.auth-links {
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
}
.auth-links a {
    color: var(--primary-strong);
    font-size: .95rem;
}
.admin-split { align-items: start; }
.hero-blend { background: linear-gradient(135deg, rgba(10,132,255,.16), rgba(255,255,255,.7)); }
.booking-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 24px;
}
.booking-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.booking-steps.compact { margin-top: -6px; }
.booking-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.mode-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
}
.mode-card.active {
    border-color: rgba(10,132,255,.4);
    background: rgba(10,132,255,.08);
}
.step-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
}
.step-chip strong {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    color: var(--muted);
}
.step-chip.active {
    border-color: rgba(10,132,255,.35);
    background: rgba(10,132,255,.08);
}
.step-chip.active strong {
    background: linear-gradient(135deg, var(--primary), #7dd3fc);
    color: white;
}
.step-chip.current {
    box-shadow: inset 0 0 0 1px rgba(10,132,255,.3);
}
.booking-stack {
    display: grid;
    gap: 24px;
}
.wizard-panel {
    max-width: 100%;
}
.wizard-head {
    margin-bottom: 24px;
}
.wizard-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.wizard-form.single-column {
    grid-template-columns: minmax(0, 420px);
}
.wizard-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}
.booking-room-grid { margin-bottom: 24px; }
.booking-layout { align-items: start; }
.day-grid,
.free-window-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.day-card,
.free-window-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
}
.day-card.active {
    border-color: rgba(10,132,255,.4);
    background: rgba(10,132,255,.08);
}
.day-card.disabled {
    opacity: .5;
    pointer-events: none;
}
.date-step-form {
    display: flex;
    gap: 16px;
    align-items: end;
}
.date-step-form .field {
    min-width: 260px;
    margin: 0;
}
.availability-form { margin-bottom: 24px; }
.step-locked {
    opacity: .7;
}
.slot-section {
    display: grid;
    gap: 16px;
}
.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
}
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.slot-card {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.08);
    display: grid;
    gap: 8px;
    transition: .2s ease;
}
.slot-card.active {
    border-color: rgba(10,132,255,.55);
    box-shadow: inset 0 0 0 1px rgba(10,132,255,.28);
}
.slot-card.disabled {
    opacity: .45;
    pointer-events: none;
}
.slot-card:hover { transform: translateY(-2px); }
.booking-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.summary-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10,132,255,.08);
    color: var(--primary-strong);
}

::placeholder { color: var(--muted); }
.help-text {
    display: block;
    color: var(--muted);
    font-size: .88rem;
}
.field-full {
    grid-column: 1 / -1;
}
.email-composer {
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.email-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.email-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(10,132,255,.2);
    background: rgba(10,132,255,.12);
    color: var(--text);
}
.email-chip strong {
    color: var(--primary-strong);
    font-size: 1rem;
    line-height: 1;
}
.email-chip-input {
    flex: 1;
    min-width: 220px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    padding: 8px 4px;
}
.meeting-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.meeting-mode-card {
    cursor: pointer;
}
.meeting-mode-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.meeting-mode-card span {
    min-height: 96px;
    display: grid;
    gap: 8px;
    align-content: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.08);
    transition: .2s ease;
}
.meeting-mode-card strong {
    color: var(--text);
    font-size: 1.05rem;
}
.meeting-mode-card input:checked + span,
.meeting-mode-card:hover span {
    transform: translateY(-2px);
    border-color: rgba(10,132,255,.45);
    background: rgba(10,132,255,.1);
    box-shadow: inset 0 0 0 1px rgba(10,132,255,.16);
}
.teams-url-field {
    display: none;
}
.teams-url-field.is-visible,
.teams-url-field:has(.errorlist) {
    display: grid;
}
.inline-note {
    display: inline-flex;
    margin-right: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10,132,255,.1);
    color: var(--primary-strong);
    font-size: .85rem;
}

ul.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--danger);
    font-size: .92rem;
}

.survey-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(10,132,255,.22), transparent 32%),
        radial-gradient(circle at 70% 70%, rgba(255,159,10,.18), transparent 30%),
        rgba(3, 7, 18, .46);
    backdrop-filter: blur(18px);
}

.survey-modal {
    position: relative;
    width: min(620px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 34px;
    background: var(--surface-strong);
    box-shadow: 0 36px 90px rgba(2, 8, 23, .26);
}

.survey-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -90px;
    border-radius: 50%;
    background: rgba(10,132,255,.16);
    filter: blur(4px);
    pointer-events: none;
}

.survey-kicker {
    position: relative;
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10,132,255,.1);
    color: var(--primary-strong);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.survey-modal h2,
.survey-modal p,
.survey-form {
    position: relative;
}

.survey-modal h2 {
    margin: 18px 0 10px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.survey-scale {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0;
    font-size: .92rem;
}

.survey-rating-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.survey-rating-card {
    cursor: pointer;
}

.survey-rating-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.survey-rating-card span {
    min-height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 800;
    transition: .2s ease;
}

.survey-rating-card:hover span,
.survey-rating-card input:checked + span {
    transform: translateY(-2px);
    border-color: rgba(10,132,255,.45);
    background: linear-gradient(135deg, rgba(10,132,255,.95), rgba(77,171,255,.95));
    color: #fff;
    box-shadow: 0 18px 36px rgba(10,132,255,.22);
}

.survey-textarea {
    min-height: 100px;
}

.survey-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* Dashboard: visual de vidro liquido inspirado na referencia de interface. */
.app-content { position: relative; }
.liquid-welcome {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    min-height: 360px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 60px);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 36px;
    background:
        radial-gradient(circle at 78% 44%, rgba(10,132,255,.28), transparent 24%),
        linear-gradient(125deg, rgba(255,255,255,.80), rgba(232,244,255,.54));
    box-shadow: 0 28px 70px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.94);
    backdrop-filter: blur(26px) saturate(145%);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
}
.liquid-welcome::before,
.liquid-welcome::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
.liquid-welcome::before {
    width: 380px;
    height: 380px;
    right: -120px;
    top: -130px;
    background: radial-gradient(circle, rgba(10,132,255,.34), rgba(125,211,252,.04) 68%, transparent 70%);
}
.liquid-welcome::after {
    width: 220px;
    height: 220px;
    left: 40%;
    bottom: -160px;
    background: rgba(10,132,255,.16);
    filter: blur(16px);
}
.liquid-welcome-copy { align-self: center; max-width: 610px; }
.liquid-welcome h1 { max-width: 560px; margin: 12px 0 16px; letter-spacing: -.055em; }
.liquid-welcome p { max-width: 510px; font-size: 1.05rem; line-height: 1.6; }
.liquid-welcome-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.liquid-welcome .button {
    box-shadow: 0 10px 22px rgba(10,132,255,.15), inset 0 1px 0 rgba(255,255,255,.35);
}
.liquid-welcome-orb {
    position: relative;
    width: min(100%, 330px);
    aspect-ratio: 1;
    align-self: center;
    justify-self: center;
}
.liquid-orb-core {
    position: absolute;
    inset: 24%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ddf4ff, #63bdff 28%, #0a84ff 58%, #07519d 100%);
    box-shadow: 0 0 0 14px rgba(255,255,255,.18), 0 26px 48px rgba(0,74,150,.32), inset -16px -18px 26px rgba(2,34,79,.35);
}
.liquid-orb-ring {
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 50%;
    box-shadow: inset 0 0 16px rgba(255,255,255,.38), 0 10px 20px rgba(0,74,150,.2);
}
.ring-one { transform: rotateX(62deg) rotateZ(20deg); }
.ring-two { inset: 5% 18%; transform: rotateY(62deg) rotateZ(-30deg); border-color: rgba(93,187,255,.72); }
.liquid-orb-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 3px solid rgba(255,255,255,.86);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 18px rgba(10,132,255,.85);
}
.dot-one { top: 12%; right: 20%; }
.dot-two { bottom: 16%; left: 18%; }
.liquid-metrics-section { margin-bottom: 24px; }
.liquid-metric-card {
    position: relative;
    overflow: hidden;
    padding: 22px 26px;
    border-radius: 24px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.liquid-metric-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.8); }
.metric-icon {
    display: block;
    width: 34px;
    height: 10px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #7dd3fc);
    box-shadow: 0 5px 14px rgba(10,132,255,.25);
}
.liquid-metric-card:nth-child(2) .metric-icon { width: 22px; }
.liquid-metric-card:nth-child(3) .metric-icon { width: 42px; }
:root[data-theme="dark"] .liquid-welcome {
    border-color: rgba(148,163,184,.18);
    background:
        radial-gradient(circle at 78% 44%, rgba(10,132,255,.22), transparent 24%),
        linear-gradient(125deg, rgba(13,29,50,.90), rgba(8,20,37,.72));
    box-shadow: 0 28px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
}
:root[data-theme="dark"] .liquid-welcome::before { opacity: .65; }
:root[data-theme="dark"] .liquid-metric-card { box-shadow: 0 18px 40px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06); }

/* Direcao visual iOS: clara, arejada e com superficies mais fisicas. */
.theme-toggle { display: none !important; }
.app-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow: hidden;
    color: #0b2542;
    background: rgba(239,247,255,.62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity .3s ease, visibility .3s ease;
}
.app-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.app-loader::before { display: none; }
.app-loader-content { position: relative; z-index: 1; width: min(100%, 510px); }
.app-loader-card {
    display: grid;
    justify-items: center;
    padding: 36px;
    border: 1px solid rgba(154,198,234,.62);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(228,244,255,.92));
    box-shadow: 0 24px 54px rgba(32,104,166,.20), inset 0 1px 0 #fff;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.loader-orbit { position: relative; width: 154px; height: 154px; margin-bottom: 26px; display: grid; place-items: center; }
.loader-progress-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-ring-track, .loader-ring-value { fill: none; stroke-width: 3; }
.loader-ring-track { stroke: rgba(10,132,255,.16); }
.loader-ring-value { stroke: #55b8ff; stroke-linecap: round; stroke-dasharray: 452.39; stroke-dashoffset: 452.39; transition: stroke-dashoffset .09s linear; filter: drop-shadow(0 0 8px rgba(85,184,255,.72)); }
.loader-center { position: relative; z-index: 2; display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(10,132,255,.22); border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(10,132,255,.12); color: #087be9; font-size: 1.2rem; font-weight: 900; letter-spacing: -.08em; }
.loader-center img { display: block; width: 48px; height: auto; }
.loader-orbit-dot { position: absolute; z-index: 3; top: 4px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #bdeaff; box-shadow: 0 0 18px #39aaff; animation: loader-orbit 3s linear infinite; transform-origin: 0 73px; }
.loader-pulse { position: absolute; z-index: 1; width: 62px; height: 62px; border-radius: 50%; background: rgba(79,181,255,.34); animation: loader-pulse 2.4s cubic-bezier(.22,1,.36,1) infinite; }
.loader-copy { text-align: center; }
.loader-kicker { color: #aee5ff; font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.loader-copy h1 { margin: 10px 0 8px; color: #0b2542; font-size: clamp(1.65rem, 5vw, 2.2rem); letter-spacing: -.05em; }
.loader-copy p { margin: 0; color: #59718a; line-height: 1.5; }
.loader-progress-meta { display: flex; justify-content: space-between; width: 100%; margin-top: 28px; color: #59718a; font-size: .76rem; font-weight: 700; }
.loader-progress-meta strong { color: #0b2542; font-variant-numeric: tabular-nums; }
.loader-progress-bar { width: 100%; height: 7px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: rgba(10,132,255,.12); }
.loader-progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #218ff8, #73d9ff); box-shadow: 0 0 18px rgba(85,184,255,.82); transition: width .09s linear; }
.loader-steps { display: grid; width: 100%; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.loader-steps li { position: relative; padding: 10px 13px 10px 38px; border: 1px solid rgba(10,132,255,.08); border-radius: 12px; background: rgba(255,255,255,.42); color: rgba(89,113,138,.68); font-size: .82rem; transition: opacity .2s ease, border-color .2s ease, background .2s ease, color .2s ease; }
.loader-steps li::before { content: ""; position: absolute; top: 50%; left: 14px; width: 9px; height: 9px; border: 1px solid rgba(60,105,148,.28); border-radius: 50%; transform: translateY(-50%); }
.loader-steps li.is-active { border-color: rgba(10,132,255,.28); background: rgba(96,196,255,.12); color: #0b2542; }
.loader-steps li.is-active::before { border-color: #bdeaff; background: #74d7ff; box-shadow: 0 0 12px rgba(116,215,255,.8); animation: loader-step-pulse 1s ease-in-out infinite alternate; }
.loader-steps li.is-done { color: #287ebc; }
.loader-steps li.is-done::before { border-color: #55b8ff; background: #55b8ff; }
.loader-steps li span { float: right; color: #7ed6ff; font-size: .68rem; font-weight: 700; }
@keyframes loader-orbit { to { transform: rotate(360deg); } }
@keyframes loader-pulse { 0% { transform: scale(1); opacity: .62; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes loader-step-pulse { from { transform: translateY(-50%) scale(.85); } to { transform: translateY(-50%) scale(1.15); } }
@media (max-width: 520px) { .app-loader-card { padding: 28px 22px; } .loader-steps li { font-size: .77rem; } }
.liquid-shell {
    background:
        radial-gradient(circle at 50% -15%, rgba(115, 196, 255, .42), transparent 38%),
        radial-gradient(circle at 4% 42%, rgba(211, 235, 255, .88), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #f4f8fd 47%, #eef5fc 100%);
}
.page-shell { width: min(1280px, calc(100% - 36px)); padding-top: 18px; }
.topbar {
    position: sticky;
    top: 14px;
    z-index: 20;
    min-height: 74px;
    padding: 10px 14px 10px 20px;
    border-radius: 26px;
    background: rgba(255,255,255,.72);
    border-color: rgba(255,255,255,.86);
    box-shadow: 0 12px 36px rgba(34,77,122,.12), inset 0 1px 0 #fff;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}
.brand-logo { min-height: 48px; }
.brand-logo-default { height: 38px; }
.nav {
    position: relative;
    padding: 5px;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 18px;
    background: rgba(238,244,250,.78);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.9);
}
.nav a {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #536274;
    font-size: 0;
    font-weight: 650;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nav a::before {
    color: currentColor;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}
.nav a::after {
    position: absolute;
    top: -39px;
    left: 50%;
    z-index: 5;
    padding: 7px 10px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 18px rgba(15,23,42,.12);
    color: #233850;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 5px) scale(.94);
    transition: opacity .18s ease, transform .18s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { opacity: 1; transform: translate(-50%, 0) scale(1); }
.nav a:nth-child(1)::before { content: "\2302"; }
.nav a:nth-child(2)::before { content: "\25A6"; }
.nav a:nth-child(3)::before { content: "+"; font-size: 24px; font-weight: 300; }
.nav a:nth-child(4)::before { content: "\25A3"; }
.nav a:nth-child(1)::after { content: "Inicio"; }
.nav a:nth-child(2)::after { content: "Salas"; }
.nav a:nth-child(3)::after { content: "Agendar"; }
.nav a:nth-child(4)::after { content: "Agenda"; }
.nav a:hover {
    color: #0f172a;
    background: rgba(255,255,255,.94);
    box-shadow: 0 3px 10px rgba(15,23,42,.08), inset 0 1px 0 white;
    transform: translateY(-1px);
}
.topbar-actions { gap: 8px; }
.user-pill {
    padding: 10px 13px;
    color: #40536b;
    background: rgba(237,244,252,.92);
    border: 1px solid rgba(15,23,42,.06);
}
.button {
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button.primary {
    background: linear-gradient(180deg, #178dff 0%, #0077ed 100%);
    box-shadow: 0 8px 18px rgba(0,119,237,.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.button.ghost, .button.secondary {
    background: rgba(255,255,255,.78);
    border-color: rgba(15,23,42,.10);
    box-shadow: 0 4px 12px rgba(15,23,42,.06), inset 0 1px 0 #fff;
}
.button:hover { transform: translateY(-2px) scale(1.01); }
.panel, .form-card, .hero-panel, .metric-card {
    border-radius: 32px;
    background: rgba(255,255,255,.70);
    border-color: rgba(255,255,255,.92);
    box-shadow: 0 14px 34px rgba(38,80,124,.10), inset 0 1px 0 #fff;
}
.panel, .form-card, .hero-panel { padding: clamp(22px, 3vw, 32px); }
.liquid-welcome {
    grid-template-columns: 1fr;
    min-height: 390px;
    border-radius: 38px;
    border-color: rgba(255,255,255,.92);
    background:
        radial-gradient(circle at 90% 0%, rgba(143,216,255,.72), transparent 27%),
        radial-gradient(circle at 74% 88%, rgba(15,132,255,.16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #edf8ff 54%, #d7f0ff 100%);
    box-shadow: 0 22px 54px rgba(22,96,165,.17), inset 0 1px 0 #fff;
}
.liquid-welcome h1 {
    color: #071d38;
    font-size: clamp(3.15rem, 6vw, 5.9rem);
    font-weight: 760;
    line-height: .94;
    letter-spacing: -.075em;
}
.liquid-welcome-copy { max-width: 670px; }

/* Dock de navegacao: compacto e limpo, inspirado nos controles das referencias. */
.nav {
    gap: 5px;
    padding: 6px;
    border: 1px solid #d7e2ed;
    border-radius: 21px;
    background: linear-gradient(180deg, #f9fcff, #edf3f9);
    box-shadow: 0 9px 18px rgba(36,72,112,.10), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(91,110,131,.08);
}
.nav a {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #5b6e83;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), background .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.nav a::before {
    content: "";
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.85)) drop-shadow(0 2px 2px rgba(34,77,122,.17));
    transition: transform .22s cubic-bezier(.2,.8,.2,1), filter .22s ease;
}
.nav a::after { display: none; }
.nav a:nth-child(1)::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 10 8-7 8 7v10H4z' fill='none' stroke='%235b6e83' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.nav a:nth-child(2)::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%235b6e83' stroke-width='1.7'%3E%3Crect x='3.5' y='3.5' width='6' height='6'/%3E%3Crect x='14.5' y='3.5' width='6' height='6'/%3E%3Crect x='3.5' y='14.5' width='6' height='6'/%3E%3Crect x='14.5' y='14.5' width='6' height='6'/%3E%3C/g%3E%3C/svg%3E");
}
.nav a:nth-child(3)::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%235b6e83' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.nav a:nth-child(4)::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' rx='1.5' fill='none' stroke='%235b6e83' stroke-width='1.8'/%3E%3Cpath d='M8 8h8v8H8z' fill='%235b6e83'/%3E%3C/svg%3E");
}
.nav a:hover, .nav a:focus-visible {
    background: rgba(255,255,255,.78);
    border-color: rgba(111,151,190,.20);
    box-shadow: 0 4px 9px rgba(36,72,112,.12), inset 0 1px 0 #fff;
    transform: translateY(-1px) scale(1.04);
}
.nav a:hover::before, .nav a:focus-visible::before { transform: scale(1.08); filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 3px 3px rgba(10,132,255,.22)); }
.nav a.active {
    border-color: rgba(10,132,255,.48);
    background: linear-gradient(180deg, #48adff, #087ff1);
    box-shadow: 0 5px 11px rgba(10,132,255,.30), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,74,159,.35);
    transform: translateY(-1px);
}
.nav a.active::before {
    filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(0,69,150,.32));
}
.liquid-metrics-section { margin-top: 10px; }

/* Login centralizado: uma unica superficie de acesso, sem painel decorativo lateral. */
.auth-layout.login-layout {
    display: grid;
    place-items: center;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 190px);
    padding: 34px 0 52px;
}
.login-card {
    position: relative;
    width: min(100%, 430px);
    padding: 42px;
    border: 1px solid rgba(139,171,202,.42);
    border-radius: 32px;
    background: transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.login-card > * { position: relative; }
.login-card-mark {
    width: 42px;
    height: 8px;
    margin-bottom: 23px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0a84ff, #75c9ff);
    box-shadow: 0 5px 14px rgba(10,132,255,.26);
}
.login-card .eyebrow { display: block; margin-bottom: 10px; }
.login-card h1 {
    margin-bottom: 8px;
    color: #0b1f39;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: -.055em;
}
.login-card > p { margin-bottom: 30px; color: #64758a; }
.login-card .field { gap: 7px; }
.login-card .field > span { color: #3d526b; font-size: .84rem; font-weight: 700; }
.login-card .input {
    min-height: 54px;
    border-color: rgba(25,68,112,.13);
    border-radius: 18px;
    background: rgba(244,248,252,.92);
    box-shadow: inset 0 1px 2px rgba(15,23,42,.04);
}
.login-card .button { margin-top: 4px; min-height: 52px; border-radius: 18px; }
.login-card .button span { margin-left: 10px; color: #fff; font-size: 1.1rem; }
.login-card .auth-links { margin-top: -2px; text-align: right; }
.login-card .auth-links a { font-size: .82rem; font-weight: 700; }
.login-signup { margin: 24px 0 0 !important; text-align: center; font-size: .9rem; }
.login-signup a { color: #0077ed; font-weight: 800; }
.liquid-welcome p { color: #49647d; font-size: 1.12rem; }
.liquid-welcome .eyebrow { color: #0077ed; font-size: .75rem; font-weight: 800; }
.liquid-welcome-orb { width: min(100%, 350px); filter: drop-shadow(0 24px 25px rgba(0,88,180,.24)); }
.liquid-orb-core { background: radial-gradient(circle at 33% 26%, #fff, #b8eaff 23%, #25a0ff 52%, #0070d8 100%); }
.liquid-metric-card {
    min-height: 156px;
    padding: 24px 26px;
    background: rgba(255,255,255,.76);
}
.liquid-metric-card strong { color: #071d38; font-size: 2.45rem; letter-spacing: -.06em; }
.liquid-metric-card > span:last-child { color: #5a6b7e; font-weight: 650; }
.panel-head h2 { color: #071d38; letter-spacing: -.035em; font-size: 1.65rem; }
.agenda-item { padding: 18px 4px; }
.agenda-item strong { color: #10253e; font-size: 1.02rem; }
.room-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 18px 30px rgba(15,23,42,.13), inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform .25s ease, box-shadow .25s ease;
}
.room-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 26px 42px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.55); }
.site-footer { opacity: .8; }

@media (max-width: 900px) {
    .topbar, .panel-head, .nav, .topbar-actions, .action-row { flex-wrap: wrap; }
    .auth-layout, .logout-layout, .hero-dashboard, .grid-two, .hero-dashboard.admin, .grid-form { grid-template-columns: 1fr; }
    .booking-hero { align-items: start; }
    .booking-steps { grid-template-columns: 1fr 1fr; }
    .booking-modes { grid-template-columns: 1fr; }
    .hero-metrics.full-width { grid-template-columns: 1fr; }
    .date-step-form { flex-direction: column; align-items: stretch; }
    .date-step-form .field { min-width: 100%; }
    .wizard-form, .wizard-form.single-column { grid-template-columns: 1fr; }
    .wizard-actions { justify-content: stretch; flex-direction: column; }
    .meeting-mode-grid { grid-template-columns: 1fr; }
    .filter-bar, .filter-bar-compact { grid-template-columns: 1fr; }
    .pagination-bar { justify-content: stretch; flex-direction: column; align-items: stretch; }
    .page-shell { width: min(100% - 20px, 1180px); }
    h1 { font-size: 2.6rem; }
    .survey-modal { padding: 26px; border-radius: 28px; }
    .survey-rating-grid { grid-template-columns: repeat(5, 1fr); }
    .survey-rating-card span { min-height: 54px; border-radius: 18px; }
    .survey-actions { flex-direction: column; }
    .liquid-welcome { grid-template-columns: 1fr; min-height: auto; }
    .liquid-welcome-orb { width: min(220px, 55vw); margin-top: -8px; }
    .topbar { position: relative; top: 0; border-radius: 24px; }
    .nav { order: 3; width: 100%; justify-content: center; overflow-x: auto; flex-wrap: nowrap; }
    .topbar-actions { margin-left: auto; }
    .user-pill { display: none; }
    .liquid-welcome h1 { font-size: clamp(2.9rem, 13vw, 4.4rem); }
}
