:root {
    --brand-color: #7c3aed;
    --brand-dark: #5123a5;
    --brand-soft: #f2ecff;
    --ink: #242033;
    --muted: #777389;
    --surface: #ffffff;
    --page: #f7f6fa;
    --line: #eceaf1;
    --shadow: 0 12px 32px rgba(37, 26, 62, .07);
}

* { box-sizing: border-box; }
body { background: var(--page); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: var(--brand-dark); }
.app-layout { min-height: 100vh; }
.sidebar {
    min-height: 100vh;
    background: #211b2e;
    color: #fff;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand-lockup img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; }
.brand-monogram { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; background: linear-gradient(140deg, var(--brand-color), #c084fc); }
.brand-lockup h1 { font-size: 15px; line-height: 1.25; margin: 0; font-weight: 750; color: #fff; }
.brand-lockup small { display: block; color: #aaa4b9; margin-top: 3px; font-size: 11px; }
.nav-caption { color: #817a91; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; padding: 12px 11px 6px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { color: #c4bfd0; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 550; transition: background .15s, color .15s, transform .15s; }
.sidebar-nav a i { width: 18px; text-align: center; font-size: 16px; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.sidebar-nav a.active { color: #fff; background: linear-gradient(100deg, var(--brand-color), var(--brand-dark)); box-shadow: 0 7px 18px color-mix(in srgb, var(--brand-color) 25%, transparent); }
.sidebar-bottom { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 12px; }
.sidebar-user strong { display: block; color: #fff; font-size: 12px; }
.sidebar-user small { color: #aaa4b9; font-size: 11px; }
.main-panel { padding: 22px clamp(16px, 3vw, 38px) 40px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 25px; }
.topbar-kicker { color: var(--muted); font-size: 12px; }
.topbar-date { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--muted); font-size: 12px; }
.page-heading { margin-bottom: 22px; }
.page-heading h2 { font-size: clamp(22px, 2.5vw, 29px); font-weight: 750; letter-spacing: -.04em; margin: 0; }
.page-heading p { color: var(--muted); margin: 5px 0 0; font-size: 13px; }
.app-card, .card { border: 1px solid var(--line) !important; border-radius: 16px !important; box-shadow: var(--shadow) !important; background: var(--surface); }
.metric-card { height: 100%; padding: 19px; position: relative; overflow: hidden; }
.metric-card:after { content: ""; position: absolute; width: 92px; height: 92px; border-radius: 50%; background: var(--brand-soft); right: -30px; top: -34px; }
.metric-label { position: relative; z-index: 1; color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-value { position: relative; z-index: 1; margin: 12px 0 2px; font-size: clamp(22px, 2vw, 28px); font-weight: 780; letter-spacing: -.04em; }
.metric-foot { position: relative; z-index: 1; color: var(--muted); font-size: 11px; }
.metric-icon { position: absolute; z-index: 1; right: 15px; bottom: 13px; color: var(--brand-color); font-size: 21px; }
.section-title { font-size: 15px; font-weight: 730; letter-spacing: -.02em; margin: 0; }
.section-subtitle { font-size: 12px; color: var(--muted); margin-top: 4px; }
.btn-primary, .btn-dark { background-color: var(--brand-color); border-color: var(--brand-color); }
.btn-primary:hover, .btn-dark:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-dark { color: var(--brand-dark); border-color: color-mix(in srgb, var(--brand-color) 45%, #fff); }
.btn-outline-dark:hover { background: var(--brand-color); border-color: var(--brand-color); color: #fff; }
.form-control, .form-select { border-color: #e4e0ea; border-radius: 9px; min-height: 42px; }
.form-control:focus, .form-select:focus { border-color: var(--brand-color); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand-color) 16%, transparent); }
.table { --bs-table-bg: transparent; font-size: 13px; }
.table thead th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; border-bottom-color: var(--line); }
.table td { border-bottom-color: var(--line); }
.badge { font-weight: 650; }
.analytics-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; margin: 13px 0; }
.analytics-bar-label { width: 88px; flex: 0 0 88px; color: var(--muted); }
.analytics-bar-track { flex: 1; height: 8px; border-radius: 99px; background: #f0edf5; overflow: hidden; }
.analytics-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-color), #c084fc); }
.analytics-bar-value { width: 92px; text-align: right; font-weight: 650; }
.revenue-chart { min-height: 205px; display: flex; align-items: stretch; gap: 12px; padding: 18px 4px 0; border-bottom: 1px solid var(--line); }
.revenue-day { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 24px; }
.revenue-column { width: min(30px, 72%); min-height: 5px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #c084fc, var(--brand-color)); }
.revenue-day small { font-size: 10px; color: var(--muted); }
.auth-page { min-height: 100vh; background: radial-gradient(circle at 10% 12%, color-mix(in srgb, var(--brand-color) 17%, transparent), transparent 34%), #f7f6fa; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 980px); min-height: 570px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 25px 70px rgba(32,22,47,.14); }
.auth-brand { padding: 50px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(145deg, var(--brand-color), #34204f); position: relative; overflow: hidden; }
.auth-brand:after { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; right: -110px; bottom: -120px; box-shadow: 0 0 0 35px rgba(255,255,255,.04), 0 0 0 75px rgba(255,255,255,.035); }
.auth-brand img { max-width: 92px; max-height: 70px; object-fit: contain; background: #fff; border-radius: 14px; padding: 7px; }
.auth-brand h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 780; letter-spacing: -.05em; }
.auth-brand p { color: rgba(255,255,255,.76); max-width: 320px; }
.auth-form-panel { padding: 52px clamp(26px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.auth-form-panel h2 { font-weight: 760; letter-spacing: -.04em; }
.auth-form-panel .form-control { min-height: 48px; }
.booking-page { min-height: 100vh; background: radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--brand-color) 13%, transparent), transparent 28%), #f8f6fa; padding: 36px 14px; }
.booking-wrap { max-width: 900px; margin: auto; }
.booking-hero { border-radius: 24px; background: linear-gradient(130deg, var(--brand-color), #3b2753); padding: 35px; color: #fff; margin-bottom: 22px; box-shadow: var(--shadow); }
.booking-hero img { max-height: 68px; max-width: 110px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; }
.booking-hero h1 { font-weight: 780; letter-spacing: -.045em; margin: 15px 0 5px; }
.booking-hero p { color: rgba(255,255,255,.82); margin-bottom: 0; max-width: 620px; }
.booking-style-classic .booking-hero { border-radius: 8px; background: #fff; color: var(--ink); border-top: 5px solid var(--brand-color); }
.booking-style-classic .booking-hero p { color: var(--muted); }
.booking-style-minimal { background: #fff; }
.booking-style-minimal .booking-hero { color: var(--ink); background: transparent; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; padding-left: 8px; }
.booking-style-minimal .booking-hero p { color: var(--muted); }
.booking-preview { --brand-color: #7c3aed; border-radius: 17px; background: linear-gradient(130deg, var(--brand-color), #36234e); color: #fff; transition: background .2s, border-radius .2s; }
.booking-preview-brand { width: 42px; height: 5px; background: rgba(255,255,255,.55); border-radius: 10px; }
.booking-preview small, .booking-preview p { color: rgba(255,255,255,.8) !important; }
.booking-style-classic { background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 5px solid var(--brand-color); border-radius: 8px; }
.booking-style-classic small, .booking-style-classic p { color: var(--muted) !important; }
.booking-style-minimal { color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.booking-style-minimal small, .booking-style-minimal p { color: var(--muted) !important; }
@media (max-width: 767.98px) {
    .sidebar { min-height: auto; padding: 10px 12px; }
    .brand-lockup { padding: 4px 5px 10px; }
    .sidebar-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .sidebar-nav a { white-space: nowrap; padding: 9px 11px; }
    .sidebar-nav a:hover { transform: none; }
    .nav-caption, .sidebar-bottom { display: none; }
    .main-panel { padding-top: 17px; }
    .auth-card { grid-template-columns: 1fr; min-height: 0; }
    .auth-brand { min-height: 220px; padding: 27px; }
    .auth-brand h1 { font-size: 29px; margin-top: 22px; }
    .auth-form-panel { padding: 32px 25px; }
    .booking-hero { padding: 25px; }
}
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-panel { padding: 0; }
    .app-card, .card { box-shadow: none !important; }
}
