```css
:root {
    --ink: #171717;
    --muted: #77736d;
    --gold: #b8944f;
    --gold-dark: #8c6b2e;
    --cream: #f7f5f0;
    --white: #ffffff;
    --line: #e8e3da;
    --soft: #f2efe9;
    --green: #387a5b;
    --red: #a84b4b;
    --amber: #956f24;
    --shadow: 0 18px 48px rgba(34, 28, 18, 0.08);
}

/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font: 15px/1.55 Inter, Arial, sans-serif;
}

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

a:hover {
    color: var(--gold);
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

img {
    max-width: 100%;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 28px 0;
}

/* =========================================================
   PUBLIC PAGE LAYOUT
========================================================= */

.page {
    width: min(1500px, 94vw);
    margin: 0 auto;
    min-height: calc(100vh - 140px);
}

.portal-topbar {
    height: 82px;
    padding: 0 5vw;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    flex-direction: column;
    color: #111111;
    letter-spacing: 0.28em;
    font-family: Georgia, serif;
    font-size: 22px;
}

.brand small {
    font: 9px Inter, Arial, sans-serif;
    letter-spacing: 0.5em;
    text-align: center;
    color: var(--gold);
}

.portal-topbar nav {
    display: flex;
    gap: 20px;
}

.footer {
    text-align: center;
    color: var(--muted);
    padding: 30px;
}

/* =========================================================
   AUTHENTICATION
========================================================= */

.auth-wrap {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 40px 0;
}

.form-card {
    width: min(470px, 94vw);
    padding: 44px;
}

/* =========================================================
   COMMON PANELS
========================================================= */

.panel,
.stat,
.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.panel {
    width: 100%;
    padding: 24px;
    margin: 20px 0;
}

.panel h2 {
    margin-top: 0;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.muted {
    color: var(--muted);
}

/* =========================================================
   FORMS
========================================================= */

label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #dcd6cc;
    border-radius: 9px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 148, 79, 0.12);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--gold);
    border-radius: 9px;
    padding: 11px 18px;
    background: var(--gold);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.button:active {
    transform: translateY(1px);
}

.button.ghost,
.button.secondary {
    background: var(--white);
    color: var(--ink);
    border-color: var(--line);
}

.button.ghost:hover,
.button.secondary:hover {
    background: var(--soft);
    color: var(--ink);
    border-color: var(--gold);
}

.button.full {
    width: 100%;
}

.button.small {
    padding: 7px 12px;
    font-size: 12px;
}

.button-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

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

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check input {
    width: auto;
    margin-top: 4px;
}

/* =========================================================
   ALERTS
========================================================= */

.alert {
    width: 100%;
    max-width: 1600px;
    margin: 12px auto;
    padding: 13px 16px;
    border-radius: 10px;
}

.alert-success {
    background: #e8f4ed;
    color: #255b41;
}

.alert-danger {
    background: #faeaea;
    color: #842f2f;
}

/* =========================================================
   ADMIN SHELL
========================================================= */

.admin-page {
    min-height: 100vh;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #171714;
    color: #eeeeee;
    padding: 25px 18px 18px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 25px;
    border-bottom: 1px solid #302f2a;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    font: 25px Georgia;
    color: var(--gold);
}

.sidebar-brand strong {
    display: block;
    letter-spacing: 0.24em;
    font: 17px Georgia;
}

.sidebar-brand small {
    display: block;
    color: #b9aa8a;
    letter-spacing: 0.22em;
    font-size: 8px;
}

.sidebar-label {
    padding: 25px 12px 10px;
    color: #76736b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    border-radius: 9px;
    color: #c9c7c1;
}

.sidebar-nav a span {
    width: 20px;
    color: #a88c55;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #292720;
    color: var(--white);
}

.sidebar-nav a.active {
    box-shadow: inset 3px 0 var(--gold);
}

.sidebar-user {
    margin-top: auto;
    padding: 15px 8px 4px;
    border-top: 1px solid #302f2a;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    align-items: center;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.sidebar-user strong,
.sidebar-user small {
    display: block;
}

.sidebar-user strong {
    font-size: 12px;
}

.sidebar-user small {
    font-size: 10px;
    color: #8e8b83;
}

.sidebar-user > a {
    font-size: 21px;
    color: #aaaaaa;
}

/* =========================================================
   ADMIN MAIN CONTENT
========================================================= */

.admin-main {
    min-width: 0;
    width: 100%;
    padding: 34px 38px 50px;
}

/*
   This ensures every direct section inside the admin area is centred
   and uses the same wide dashboard width.
*/

.admin-main > .admin-top,
.admin-main > .section-heading,
.admin-main > .page-header,
.admin-main > .stats,
.admin-main > .panel,
.admin-main > .calendar-layout,
.admin-main > .cards,
.admin-main > .alert {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.admin-top,
.section-heading,
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-top h1,
.section-heading h1,
.page-header h1 {
    font-size: 38px;
    line-height: 1.15;
    margin: 0;
}

.page-header p:last-child {
    margin-bottom: 0;
}

.top-actions,
.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    display: grid;
    place-items: center;
    font-size: 23px;
    color: #222222;
}

/* =========================================================
   DASHBOARD STATS
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat {
    padding: 22px;
}

.stat small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.stat strong {
    display: block;
    font: 30px Georgia;
    margin-top: 8px;
}

/* =========================================================
   CLIENT FILTER BAR
========================================================= */

.filter-bar {
    display: grid;
    grid-template-columns:
        minmax(280px, 2fr)
        minmax(190px, 0.8fr)
        auto;
    gap: 18px;
    align-items: end;
    padding: 22px 24px;
    margin-bottom: 24px;
}

.filter-bar label {
    margin-top: 0;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 1px;
}

/* =========================================================
   TABLES
========================================================= */

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.table-header h2 {
    margin: 0;
}

.table-wrap,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
}

table,
.data-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
    background: var(--white);
}

th,
td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: #77736d;
    background: #fbfaf7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    font-size: 14px;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: #fbfaf7;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.data-table td:first-child {
    min-width: 190px;
}

.data-table td:nth-child(2) {
    min-width: 240px;
}

.data-table td:last-child {
    width: 90px;
    text-align: right;
}

/* =========================================================
   STATUS BADGES
========================================================= */

.badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eeeeee;
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.badge-confirmed,
.badge-paid,
.badge-completed,
.status-active {
    background: #e4f2ea;
    color: var(--green);
}

.badge-cancelled,
.badge-no_show,
.status-inactive,
.status-suspended {
    background: #f8e5e5;
    color: var(--red);
}

.badge-pending_payment,
.badge-unpaid {
    background: #f6edd8;
    color: var(--amber);
}

/* =========================================================
   INLINE FORMS
========================================================= */

.inline-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.inline-form label {
    margin: 0;
}

/* =========================================================
   CALENDAR
========================================================= */

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
}

.calendar-panel {
    padding: 0;
    overflow: hidden;
}

.time-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 64px;
    border-bottom: 1px solid var(--line);
}

.time-label {
    padding: 12px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.time-track {
    padding: 7px;
    border-left: 1px solid var(--line);
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.calendar-event {
    min-width: 220px;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: #f5efe3;
    padding: 8px 11px;
    display: flex;
    flex-direction: column;
}

.calendar-event strong {
    font-size: 12px;
}

.calendar-event span,
.calendar-event small {
    font-size: 10px;
}

.calendar-event small {
    color: var(--muted);
}

.calendar-event.status-confirmed {
    border-color: #4d8b69;
    background: #eaf4ee;
}

.calendar-event.status-pending_payment {
    border-color: #c6973d;
    background: #faf1dd;
}

.calendar-event.status-completed {
    border-color: #477a92;
    background: #e7f0f4;
}

.day-summary {
    margin: 0;
    height: max-content;
}

.mini-appointment {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.mini-appointment time {
    font-weight: 900;
    color: var(--gold-dark);
}

.mini-appointment strong,
.mini-appointment small {
    display: block;
}

.mini-appointment small {
    color: var(--muted);
}

/* =========================================================
   EMPTY STATES
========================================================= */

.empty-state {
    padding: 50px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--ink);
}

/* =========================================================
   SERVICES AND CARDS
========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 22px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

/* =========================================================
   BOOKING
========================================================= */

.booking-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.6fr;
    gap: 24px;
    padding: 42px 0;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.booking-summary {
    display: flex;
    justify-content: space-between;
    background: #f6f1e6;
    border: 1px solid #dfcfac;
    padding: 15px;
    border-radius: 10px;
}

.success-card {
    max-width: 720px;
    margin: 70px auto;
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    border: 2px solid var(--green);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: auto;
    color: var(--green);
    font-size: 35px;
}

.steps {
    display: flex;
    gap: 8px;
}

.steps span {
    padding: 7px 10px;
    background: #eeeeee;
    border-radius: 99px;
    font-size: 11px;
}

.steps .active {
    background: var(--gold);
    color: var(--white);
}

/* =========================================================
   RESPONSIVE: LARGE TABLETS
========================================================= */

@media (max-width: 1300px) {
    .admin-main {
        padding-left: 26px;
        padding-right: 26px;
    }

    .filter-bar {
        grid-template-columns: minmax(250px, 1.5fr) minmax(180px, 0.7fr);
    }

    .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 1100px) {
    .admin-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

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

    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .day-summary {
        display: none;
    }

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

    .form-grid.two-column {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   RESPONSIVE: MOBILE
========================================================= */

@media (max-width: 760px) {
    .admin-shell {
        display: block;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sidebar-user {
        margin-top: 20px;
    }

    .admin-main {
        padding: 24px 15px;
    }

    .admin-top,
    .section-heading,
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-top h1,
    .section-heading h1,
    .page-header h1 {
        font-size: 32px;
    }

    .stats,
    .grid2,
    .cards,
    .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        grid-column: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }

    .calendar-panel {
        overflow: auto;
    }

    .time-row {
        min-width: 650px;
    }

    .panel {
        padding: 18px;
    }

    .table-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-topbar {
        height: auto;
        min-height: 82px;
        gap: 20px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

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

@media (max-width: 480px) {
    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .page {
        width: min(94vw, 1500px);
    }

    .form-card {
        padding: 28px 20px;
    }

    .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .button-row .button {
        width: 100%;
    }
}
.button.danger {
    background: #a84b4b;
    border-color: #a84b4b;
    color: #ffffff;
}

.button.danger:hover {
    background: #843838;
    border-color: #843838;
    color: #ffffff;
}

.actions form {
    margin: 0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-booking-layout {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.admin-booking-layout .booking-form {
    width: 100%;
    max-width: none;
}

.admin-booking-layout .booking-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 22px 0;
    padding: 18px;
}

.admin-booking-layout .booking-summary > div {
    padding-right: 15px;
    border-right: 1px solid var(--line);
}

.admin-booking-layout .booking-summary > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.admin-booking-layout .booking-summary strong {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .admin-booking-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-booking-layout .booking-summary {
        grid-template-columns: 1fr;
    }

    .admin-booking-layout .booking-summary > div {
        padding: 10px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-booking-layout .booking-summary > div:last-child {
        border-bottom: 0;
    }
}
