:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-soft: #faf9f7;
    --ink: #202225;
    --muted: #747980;
    --line: #e7e8eb;
    --brand: #c88a3d;
    --brand-dark: #986225;
    --dark: #171816;
    --success: #e5f5eb;
    --error: #fde9e7;
    --shadow: 0 8px 30px rgba(24, 27, 31, .06);
}

html[data-segment="esmalteria"] {
    --brand: #c77992;
    --brand-dark: #96536a;
}

html[data-segment="bronze"] {
    --brand: #cf8339;
    --brand-dark: #985a22;
}

html[data-segment="salao"] {
    --brand: #9569ad;
    --brand-dark: #714985;
}

html[data-segment="estetica"] {
    --brand: #4b958d;
    --brand-dark: #327169;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.5 Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.environment-banner {
    min-height: 28px;
    padding: 5px 15px;
    display: grid;
    place-items: center;
    background: #8b5d22;
    color: #fff8ed;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
}

a { color: inherit; }

.topbar {
    height: 76px;
    padding: 0 clamp(24px, 4vw, 72px);
    display: flex;
    align-items: center;
    gap: 44px;
    background: var(--dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .14);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 700 23px Georgia, serif;
    text-decoration: none;
    color: #f1bd76;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #6f5839;
    border-radius: 11px;
    color: #f1bd76;
    background: #24231f;
    font-size: 18px;
}

.topbar nav {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 4px;
}

.topbar nav a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    text-decoration: none;
    color: #bfc1c0;
    border-bottom: 3px solid transparent;
    transition: .2s ease;
}

.topbar nav a:hover,
.topbar nav a.active {
    color: #fff;
    border-color: var(--brand);
}

.user-box {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 13px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #34332e;
    color: #efbd7d;
    font-weight: 800;
}

.user-info { display: grid; line-height: 1.25; }
.user-info strong { font-size: 13px; }
.user-info span { font-size: 11px; color: #999d9b; text-transform: capitalize; }
.logout { color: #d9ab6d; font-weight: 700; font-size: 13px; text-decoration: none; margin-left: 8px; }

.container {
    width: min(1460px, calc(100% - 64px));
    margin: 42px auto 70px;
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 28px;
}

.page-title h1 {
    margin: 4px 0 0;
    font: 700 36px Georgia, serif;
    letter-spacing: -.02em;
}

.page-title small {
    color: var(--brand-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.page-subtitle { margin: 7px 0 0; color: var(--muted); }

.button,
button {
    min-height: 43px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    text-decoration: none;
    font: 700 14px inherit;
    cursor: pointer;
    transition: .2s ease;
    box-shadow: 0 5px 14px rgba(158, 100, 33, .16);
}

.button:hover,
button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.button-icon { font-size: 20px; line-height: 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.metric,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.metric {
    min-height: 130px;
    padding: 23px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    position: relative;
    overflow: hidden;
}

.metric::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--metric-color, var(--brand));
    opacity: .75;
}

.metric-copy { align-self: center; }
.metric span { display: block; color: var(--muted); margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.metric strong { display: block; font: 700 30px Georgia, serif; }
.metric small { display: block; color: #9a9ea4; margin-top: 3px; font-size: 11px; }

.metric-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--metric-color, var(--brand)) 12%, white);
    color: var(--metric-color, var(--brand));
    font-size: 21px;
}

.metric.calendar { --metric-color: #3e75ba; }
.metric.revenue { --metric-color: #319267; }
.metric.clients { --metric-color: #9a62c7; }
.metric.team { --metric-color: #c27c34; }

.panel { padding: 26px; }
.panel h2 { margin: 0 0 18px; font: 700 21px Georgia, serif; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.panel-title h2 { margin: 0; }
.panel-title a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.panel-title a:hover { text-decoration: underline; }
.badge { background: #f1eee7; color: #64543d; border-radius: 999px; padding: 4px 11px; font-weight: 700; }

.two-columns { display: grid; grid-template-columns: minmax(340px, .8fr) minmax(560px, 1.5fr); gap: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #555960; font-weight: 650; font-size: 13px; }

input,
textarea,
select {
    width: 100%;
    min-height: 43px;
    border: 1px solid #d9dce0;
    border-radius: 9px;
    background: #fff;
    color: #222;
    padding: 10px 12px;
    font: 14px inherit;
}

input:focus,
textarea:focus,
select:focus { outline: 3px solid rgba(200, 138, 61, .14); border-color: var(--brand); }
textarea { resize: vertical; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; background: #fafafa; }
tbody tr:hover { background: #fcfbf9; }

.alert { width: min(1460px, 100%); padding: 13px 17px; margin-bottom: 20px; border-radius: 10px; }
.alert.success { background: var(--success); color: #246236; }
.alert.error { background: var(--error); color: #8d2e27; }

.empty-state { min-height: 190px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-state-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; background: #f3f0ea; color: var(--brand-dark); font-size: 23px; }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 3px; }

.login-page { min-height: 100vh; background: radial-gradient(circle at 20% 20%, #3a3328, #171612 60%); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login-card { width: min(430px, 100%); background: #fff; border-radius: 18px; padding: 40px; box-shadow: 0 30px 80px #0006; position: relative; }
.logo-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; background: #1c1a16; color: #e5b977; font: 700 27px Georgia; margin-bottom: 20px; }
.login-card h1 { font: 700 34px Georgia; margin: 0; }
.login-card p { color: var(--muted); margin: 6px 0 25px; }
.login-card form { display: grid; gap: 16px; }
.date-filter { width: 190px; }
.schedule { display: grid; gap: 10px; }
.appointment { display: grid; grid-template-columns: 60px 1fr 140px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.appointment time { font-size: 18px; font-weight: 800; color: var(--brand-dark); }
.appointment div { display: grid; }
.appointment span, .empty { color: var(--muted); }
.empty { padding: 26px 5px; text-align: center; }
.agenda-grid { grid-template-columns: minmax(340px, .85fr) minmax(580px, 1.5fr); }

@media (max-width: 1050px) {
    .topbar { height: auto; min-height: 70px; flex-wrap: wrap; padding: 14px 24px; gap: 14px 25px; }
    .topbar nav { order: 3; width: 100%; height: auto; overflow: auto; }
    .topbar nav a { padding: 9px 12px; border: 0; background: #242520; border-radius: 7px; white-space: nowrap; }
    .container { width: min(100% - 32px, 850px); margin-top: 28px; }
    .cards { grid-template-columns: 1fr 1fr; }
    .two-columns, .agenda-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .topbar { padding: 12px 16px; }
    .brand { font-size: 20px; }
    .user-info, .logout { display: none; }
    .container { width: calc(100% - 24px); }
    .cards { grid-template-columns: 1fr; gap: 12px; }
    .metric { min-height: 112px; }
    .page-title { align-items: start; gap: 14px; }
    .page-title h1 { font-size: 30px; }
    .button-label-mobile { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .panel { padding: 18px; }
    .appointment { grid-template-columns: 48px 1fr; }
    .appointment form { grid-column: 2; }
    .login-card { padding: 28px; }
}

.form-explanation { margin: -4px 0 18px; color: var(--muted); font-size: 13px; }
.form-grid label small { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; line-height: 1.35; }
.business-hours-panel { overflow: hidden; }
.business-hours-head,
.business-hours-row {
    display: grid;
    grid-template-columns: minmax(175px, 1.25fr) repeat(4, minmax(120px, 1fr));
    gap: 12px;
    align-items: center;
}
.business-hours-head {
    padding: 0 12px 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.business-hours-row { padding: 12px; border-top: 1px solid var(--line); }
.business-hours-row label { margin: 0; }
.business-hours-row input[type="time"] { width: 100%; }
.day-toggle { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.day-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.mobile-field-label { display: none; }
.business-hours-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; }
.business-hours-actions p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
    .business-hours-head { display: none; }
    .business-hours-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .business-hours-row .day-toggle { grid-column: 1 / -1; }
    .mobile-field-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
    .business-hours-actions { align-items: stretch; flex-direction: column; }
}

.notification-center { position: relative; }
.notification-button { position: relative; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: #2c2d28; display: grid; place-items: center; font-size: 17px; }
.notification-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #d9473f; color: #fff; border: 2px solid #181713; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.notification-count.is-hidden { display: none; }
.notification-menu { position: absolute; z-index: 40; right: 0; top: 48px; width: min(390px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.notification-heading { padding: 15px 16px; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.notification-heading span { color: var(--muted); font-size: 12px; }
.notification-list a { display: block; padding: 13px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.notification-list a:hover { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.notification-list strong, .notification-list span { display: block; }
.notification-list span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; white-space: normal; }
.notification-empty { margin: 0; padding: 22px 16px; color: var(--muted); text-align: center; }
.notification-read-form { padding: 10px 16px; }
.notification-read-form button { width: 100%; padding: 9px; font-size: 12px; }
.whatsapp-button, .whatsapp-contact { background: #1f9d58 !important; color: #fff !important; text-decoration: none; border-radius: 8px; font-weight: 700; }
.whatsapp-button { padding: 8px 11px; font-size: 12px; white-space: nowrap; }
.whatsapp-contact { display: block; margin: 18px 0 10px; text-align: center; }
@media (max-width: 600px) { .notification-menu { position: fixed; top: 72px; right: 12px; } .appointment { flex-wrap: wrap; } .appointment > div { min-width: calc(100% - 65px); } }

.push-control,
.install-app-button {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #45463f;
    background: #292a25;
    color: #f4f2ed;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}
.push-control { display: inline-flex; align-items: center; gap: 6px; }
.push-control.is-active { border-color: #269d5e; background: #173e29; color: #dff8e9; }
.push-control:disabled { opacity: .65; cursor: wait; }
.install-app-button[hidden] { display: none; }
.push-toast {
    position: fixed;
    z-index: 100;
    right: 20px;
    bottom: 20px;
    width: min(390px, calc(100vw - 40px));
    padding: 14px 16px;
    border-radius: 11px;
    background: #1d6e43;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,.28);
    font-weight: 650;
    line-height: 1.4;
}
.push-toast.warning { background: #8a5d1e; }
.push-toast.error { background: #a33131; }

@media (max-width: 600px) {
    .push-control { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
    .push-control [data-push-label] { display: none; }
    .install-app-button { padding: 7px 8px; font-size: 10px; }
    .push-toast { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

.public-topbar {
    height: 78px;
    padding: 0 clamp(24px, 6vw, 90px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(23, 24, 22, .97);
    color: #fff;
}

.admin-link {
    color: #d5d2ca;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #44443f;
    border-radius: 8px;
    padding: 9px 13px;
}

.admin-link:hover { color: #fff; border-color: #8e6a3e; }

.client-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 28%),
        linear-gradient(140deg, #f6f3ed 0%, #fff 50%, #f2f4f5 100%);
}

.client-container {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 145px);
    margin: 0 auto;
    padding: 72px 0;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(40px, 7vw, 95px);
    align-items: start;
}

.booking-hero { padding-top: 50px; }
.eyebrow { color: var(--brand-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .16em; }
.booking-hero h1 { margin: 14px 0 18px; font: 700 clamp(42px, 5vw, 68px)/1.04 Georgia, serif; letter-spacing: -.04em; }
.booking-hero p { max-width: 470px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.booking-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 25px 65px rgba(28, 30, 33, .1);
}

.booking-card-title { display: flex; gap: 15px; align-items: center; margin-bottom: 30px; }
.booking-card-title > div:first-child { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border-radius: 50%; background: #1d1e1b; color: #e7b975; font-weight: 800; }
.booking-card-title h2 { margin: 0; font: 700 25px Georgia, serif; }
.booking-card-title p { margin: 2px 0 0; color: var(--muted); }
.booking-form { display: grid; gap: 25px; }
.booking-form fieldset { margin: 0; padding: 0; border: 0; }
.booking-form legend { width: 100%; margin-bottom: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: #333; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.booking-submit { width: 100%; min-height: 52px; font-size: 15px; }
.booking-submit span { font-size: 21px; }
.booking-note { margin: -13px 0 0; text-align: center; color: #94979c; font-size: 11px; }
.client-access-link { display: block; margin-top: 20px; color: var(--brand-dark); text-align: center; font-weight: 700; text-decoration: none; }
.client-access-link:hover { text-decoration: underline; }

.confirmation-card {
    grid-column: 1 / -1;
    width: min(620px, 100%);
    margin: 15px auto;
    padding: clamp(30px, 5vw, 55px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 25px 65px rgba(28, 30, 33, .1);
    text-align: center;
}

.confirmation-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: #e6f5eb; color: #278152; font-size: 34px; font-weight: 900; }
.confirmation-card h1 { margin: 8px 0; font: 700 37px Georgia, serif; }
.confirmation-card > p { margin: 0 auto 28px; max-width: 450px; color: var(--muted); }
.confirmation-details { margin: 0 0 28px; padding: 6px 20px; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-soft); border-radius: 13px; text-align: left; }
.confirmation-details div { padding: 14px; border-bottom: 1px solid var(--line); }
.confirmation-details div:nth-last-child(-n+2) { border-bottom: 0; }
.confirmation-details dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.confirmation-details dd { margin: 3px 0 0; font-weight: 750; }
.booking-again { width: 100%; }
.public-footer { padding: 0 20px 28px; color: #8b8f94; text-align: center; font-size: 12px; }

@media (max-width: 850px) {
    .client-container { padding: 40px 0; grid-template-columns: 1fr; gap: 28px; }
    .booking-hero { padding-top: 0; text-align: center; }
    .booking-hero p { margin: 0 auto; }
    .booking-hero h1 { font-size: clamp(38px, 10vw, 55px); }
}

@media (max-width: 520px) {
    .public-topbar { height: 68px; padding: 0 16px; }
    .public-topbar .brand-mark { width: 34px; height: 34px; }
    .admin-link { padding: 7px 9px; font-size: 11px; }
    .client-container { width: calc(100% - 24px); padding-top: 30px; }
    .booking-hero h1 { margin-top: 10px; }
    .booking-card { padding: 22px 18px; border-radius: 15px; }
    .confirmation-details { grid-template-columns: 1fr; }
    .confirmation-details div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
}

.login-logo {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin-bottom: 22px;
    border-radius: 16px;
}

.public-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
    min-height: 36px;
    width: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #4a4943;
    border-radius: 9px;
    background: #292925;
    color: #edbc78;
    box-shadow: none;
    font-size: 17px;
}

.theme-toggle:hover { background: #393833; transform: none; }
.login-theme-toggle { position: absolute; top: 20px; right: 20px; }
.theme-toggle .theme-dark { display: none; }
[data-theme="dark"] .theme-toggle .theme-light { display: none; }
[data-theme="dark"] .theme-toggle .theme-dark { display: inline; }

.settings-layout {
    display: grid;
    grid-template-columns: minmax(500px, 1.4fr) minmax(280px, .6fr);
    gap: 24px;
}

.password-panel { grid-column: 1 / -1; }
.password-panel > .page-subtitle { margin: -8px 0 20px; }
.password-form { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
.password-input {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 6px;
}
.password-input input { min-width: 0; }
.password-input button {
    width: 42px;
    min-width: 42px;
    min-height: 43px;
    padding: 0;
    position: static;
    border-radius: 7px;
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    color: var(--muted);
    box-shadow: none;
    font-size: 17px;
}
.password-input button:hover,
.password-input button.visible { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-dark); transform: none; }

.field-help { color: var(--muted); font-weight: 400; }
.brand-preview { display: flex; flex-direction: column; align-items: center; text-align: center; }
.preview-logo { width: 130px; height: 130px; display: grid; place-items: center; margin: 12px 0 18px; border-radius: 24px; background: #24231f; color: #edbc78; font: 700 52px Georgia, serif; overflow: hidden; }
.preview-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 8px; }
.brand-preview > strong { font: 700 24px Georgia, serif; }
.brand-preview p { margin: 5px 0 0; color: var(--muted); }
.preview-note { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.segment-badge { margin-top: 10px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

[data-theme="dark"] {
    --bg: #151613;
    --surface: #20211e;
    --surface-soft: #292a26;
    --ink: #f1f0eb;
    --muted: #a7aaa8;
    --line: #363833;
    --brand: #c88a3d;
    --brand-dark: #e2a75d;
    --success: #193526;
    --error: #402321;
    --shadow: 0 10px 35px rgba(0, 0, 0, .18);
    color-scheme: dark;
}

[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select { background: #191a18; border-color: #40423d; color: #f1f0eb; }
[data-theme="dark"] th { background: #272824; }
[data-theme="dark"] tbody tr:hover { background: #262723; }
[data-theme="dark"] .badge,
[data-theme="dark"] .empty-state-icon { background: #30312d; }
[data-theme="dark"] .metric-icon { background: #2d2e2a; }
[data-theme="dark"] .client-page {
    background:
        radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 28%),
        linear-gradient(140deg, #151613 0%, #1d1e1b 55%, #171815 100%);
}
[data-theme="dark"] .booking-card,
[data-theme="dark"] .confirmation-card,
[data-theme="dark"] .login-card { background: var(--surface); color: var(--ink); }
[data-theme="dark"] .login-page { background: radial-gradient(circle at 20% 20%, #3a3328, #10110f 65%); }

@media (max-width: 1050px) {
    .settings-layout { grid-template-columns: 1fr; }
    .password-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .password-form { grid-template-columns: 1fr; }
    .password-form label { width: 100%; min-width: 0; }
    .password-input {
        width: 100%;
        min-width: 0;
        display: flex !important;
        flex-flow: row nowrap;
        align-items: center;
        gap: 8px;
    }
    .password-input input {
        width: calc(100% - 50px) !important;
        min-width: 0;
        flex: 1 1 auto;
    }
    .password-input button {
        width: 42px !important;
        min-width: 42px;
        max-width: 42px;
        flex: 0 0 42px;
        margin: 0;
    }
}
