/* ============================================================
   SkynDeep Esthetics - Comprehensive Theme
   Palette: Cream, Gold, Mint Green
   ============================================================ */

/* Google Fonts loaded via <link> in _Layout.cshtml for performance */

/* --- CSS Custom Properties --- */
:root {
    --cream:          #FAF6F0;
    --cream-light:    #FDFBF7;
    --cream-dark:     #EDE8DF;
    --gold:           #C5A255;
    --gold-light:     #D4B872;
    --gold-dark:      #A88B3E;
    --gold-muted:     #C5A25533;
    --mint:           #B8D8C8;
    --mint-light:     #D0E8DC;
    --mint-dark:      #8FBFA8;
    --mint-muted:     #B8D8C833;

    --charcoal:       #2C2C2C;
    --charcoal-light: #3D3D3D;
    --text-primary:   #2C2C2C;
    --text-secondary: #6B6B6B;
    --text-muted:     #9B9B9B;
    --white:          #FFFFFF;
    --border-light:   #E8E2D8;
    --border:         #D9D0C3;
    --shadow-sm:      0 1px 3px rgba(44, 44, 44, 0.06);
    --shadow-md:      0 4px 12px rgba(44, 44, 44, 0.08);
    --shadow-lg:      0 8px 30px rgba(44, 44, 44, 0.1);
    --shadow-xl:      0 16px 50px rgba(44, 44, 44, 0.12);
    --shadow-gold:    0 4px 20px rgba(197, 162, 85, 0.15);

    --font-heading:   'Cormorant Garamond', Georgia, serif;
    --font-body:      'Montserrat', -apple-system, sans-serif;

    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  20px;
    --radius-full: 9999px;

    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
    --duration-fast: 200ms;
    --duration-med:  350ms;
    --duration-slow: 600ms;

    --admin-bg:         #1A1A1A;
    --admin-surface:    #242424;
    --admin-surface-2:  #2E2E2E;
    --admin-border:     #3A3A3A;
    --admin-text:       #E8E2D8;
    --admin-text-muted: #8A8A8A;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--cream);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.heading {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    margin-top: 0;
}

h1, .h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4, .h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.text-gold { color: var(--gold); }
.text-mint { color: var(--mint-dark); }
.text-muted-custom { color: var(--text-muted); }
.text-secondary-custom { color: var(--text-secondary); }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.italic { font-style: italic; }
.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8em;
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

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

/* --- Navbar --- */
.sd-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(253, 251, 247, 0.92);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--duration-med) var(--ease-out);
}

.sd-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.sd-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.sd-navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--text-primary) !important;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.sd-navbar-brand span {
    color: var(--gold);
}

.sd-navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-navbar-nav a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out);
}

.sd-navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--duration-med) var(--ease-out);
}

.sd-navbar-nav a:hover,
.sd-navbar-nav a.active {
    color: var(--text-primary);
}

.sd-navbar-nav a:hover::after,
.sd-navbar-nav a.active::after {
    width: 100%;
}

.sd-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.sd-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all var(--duration-med) var(--ease-out);
}

@media (max-width: 768px) {
    .sd-nav-toggle {
        display: block;
    }

    .sd-navbar-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--cream-light);
        border-bottom: 1px solid var(--border-light);
        padding: var(--space-lg);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
    }

    .sd-navbar-nav.open {
        display: flex;
    }
}

/* --- Buttons --- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 2rem;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-med) var(--ease-out);
    text-decoration: none;
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--white);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn-gold-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-med) var(--ease-out);
    text-decoration: none;
}

.btn-gold-outline:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-mint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 2rem;
    background: var(--mint);
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-med) var(--ease-out);
    text-decoration: none;
}

.btn-mint:hover {
    background: var(--mint-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.72rem;
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 0.85rem;
}

.btn-link-gold {
    background: none;
    border: none;
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    padding: 0;
    transition: color var(--duration-fast) var(--ease-out);
    text-decoration: none;
}

.btn-link-gold:hover {
    color: var(--gold-dark);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: #C25550;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-med) var(--ease-out);
    text-decoration: none;
}

.btn-danger:hover {
    background: #A84440;
    color: var(--white);
}

/* --- Cards --- */
.sd-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-med) var(--ease-out);
}

.sd-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.sd-card-elevated {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.sd-card-gold {
    background: var(--white);
    border: 1.5px solid var(--gold-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-gold);
}

/* --- Sections --- */
.sd-section {
    padding: var(--space-3xl) 0;
}

.sd-section-alt {
    padding: var(--space-3xl) 0;
    background: var(--cream-dark);
}

.sd-section-white {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.sd-section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.sd-section-header h2 {
    margin-bottom: var(--space-sm);
}

.sd-section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-inline: auto;
}

.sd-divider {
    width: 60px;
    height: 1.5px;
    background: var(--gold);
    margin: var(--space-lg) auto;
    border: none;
}

/* --- Forms --- */
.sd-form-group {
    margin-bottom: var(--space-lg);
}

.sd-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.sd-input,
.sd-select,
.sd-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    outline: none;
}

.sd-input:focus,
.sd-select:focus,
.sd-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-muted);
}

.sd-input::placeholder {
    color: var(--text-muted);
}

.sd-textarea {
    resize: vertical;
    min-height: 100px;
}

.sd-input.input-error,
.sd-select.input-error {
    border-color: #C25550;
    box-shadow: 0 0 0 3px rgba(194, 85, 80, 0.15);
}

.field-validation-error {
    display: block;
    color: #C25550;
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

.sd-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.88rem;
    cursor: pointer;
}

.sd-checkbox-label input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

/* --- Tables --- */
.sd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sd-table thead {
    background: var(--cream-dark);
}

.sd-table th {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1.5px solid var(--border);
}

.sd-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.sd-table tbody tr {
    transition: background var(--duration-fast) var(--ease-out);
}

.sd-table tbody tr:hover {
    background: var(--cream-light);
}

/* --- Badges / Status --- */
.sd-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
}

.sd-badge-gold     { background: var(--gold-muted); color: var(--gold-dark); }
.sd-badge-mint     { background: var(--mint-muted); color: var(--mint-dark); }
.sd-badge-pending  { background: #FFF3CD; color: #856404; }
.sd-badge-confirmed{ background: #D0E8DC; color: #2D6A4F; }
.sd-badge-cancelled{ background: #F5D5D3; color: #8B2520; }
.sd-badge-completed{ background: #D0E8DC; color: #2D6A4F; }
.sd-badge-noshow   { background: #F5D5D3; color: #8B2520; }

/* --- Hero Section --- */
.sd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #4D3D44;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.sd-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: var(--space-2xl) var(--space-lg);
}

.sd-hero-tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: heroFadeUp 1.2s var(--ease-out) 0.5s forwards;
}

.sd-hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin: 0 0 var(--space-xl);
    white-space: nowrap;
    visibility: hidden;
}

.sd-hero-title.revealed {
    visibility: visible;
}

.sd-hw {
    display: inline;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sd-hw.visible {
    opacity: 1;
}

/* "Beauty," -- flowing brush script */
.sd-hw-main {
    font-family: 'Alex Brush', cursive;
    font-weight: 400;
    font-size: 1.4em;
    color: rgba(245, 240, 232, 0.95);
}

/* "Refined" -- wide-spaced, light, airy contrast */
.sd-hw-accent {
    font-family: 'Marcellus', serif;
    font-weight: 400;
    font-size: 0.9em;
    letter-spacing: 0.14em;
    margin-left: 0.25em;
    background: linear-gradient(90deg, #C9A84C, #EDE0B8, #D4B872, #C9A84C);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sd-hw-accent.visible {
    animation: goldShift 8s ease-in-out 1s infinite;
}

@keyframes goldShift {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

/* Flash canvas */
.sd-hero-flash-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    display: block;
}

@keyframes goldShift {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

.sd-hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.55);
    line-height: 1.9;
    margin-bottom: var(--space-xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease-out) 1s forwards;
}

.sd-hero-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease-out) 1.3s forwards;
}

.sd-hero-actions .btn-gold {
    padding: 1rem 3.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(197, 162, 85, 0.2);
}

.sd-hero-actions .btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btnShimmer 3s ease-in-out 2.5s infinite;
}

@keyframes btnShimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}

.sd-hero-actions .btn-gold-outline {
    padding: 1rem 3.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    border-radius: 0;
    border-color: rgba(197, 162, 85, 0.5);
    color: var(--gold-light);
}

.sd-hero-actions .btn-gold-outline:hover {
    border-color: var(--gold);
    background: rgba(197, 162, 85, 0.15);
    color: var(--gold);
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.sd-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease-out) 2.5s forwards;
}

.sd-hero-scroll-dot {
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, var(--gold-light), transparent);
    margin: 0 auto;
    animation: scrollPulse 2.5s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; height: 35px; }
    50%      { opacity: 0.7; height: 50px; }
}

/* --- Scroll Reveal --- */
.sd-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.sd-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Service Cards --- */
.sd-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.sd-service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-med) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.sd-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--mint));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-med) var(--ease-out);
}

.sd-service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.sd-service-card:hover::before {
    transform: scaleX(1);
}

.sd-service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.sd-service-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-sm) 0;
    border-bottom: 1px dashed var(--border-light);
}

.sd-service-item:last-child {
    border-bottom: none;
}

.sd-service-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.sd-service-duration {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: var(--space-sm);
}

.sd-service-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold-dark);
    white-space: nowrap;
}

/* --- Package Cards --- */
.sd-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.sd-package-card {
    background: var(--white);
    border: 1.5px solid var(--gold-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    transition: all var(--duration-med) var(--ease-out);
}

.sd-package-card:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.sd-package-card .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sd-package-card .price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--gold-dark);
    margin: var(--space-md) 0;
}

.sd-package-card .savings {
    display: inline-block;
    background: var(--mint-light);
    color: var(--mint-dark);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Footer --- */
.sd-footer {
    background: var(--charcoal);
    color: var(--cream-dark);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: auto;
}

.sd-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .sd-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.sd-footer h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: var(--space-md);
}

.sd-footer p,
.sd-footer a {
    font-size: 0.88rem;
    color: var(--cream-dark);
    opacity: 0.8;
}

.sd-footer a:hover {
    color: var(--gold-light);
    opacity: 1;
}

.sd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-footer-links li {
    margin-bottom: var(--space-sm);
}

.sd-footer-bottom {
    border-top: 1px solid var(--charcoal-light);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .sd-footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* --- Page Headers (inner pages) --- */
.sd-page-header {
    position: relative;
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 80% at 75% 30%, rgba(197, 162, 85, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 60% 90% at 25% 70%, rgba(184, 216, 200, 0.1) 0%, transparent 50%),
        linear-gradient(160deg, #FDFBF7 0%, #FAF6F0 30%, #F2EDE4 50%, #EAF0EA 70%, #F5F0E8 100%);
    border-bottom: 1px solid var(--border-light);
}

.sd-page-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(197, 162, 85, 0.06) 0%, transparent 55%);
    filter: blur(50px);
    animation: pageHeaderWash 12s var(--ease-in-out) infinite alternate;
}

.sd-page-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 45%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(184, 216, 200, 0.08) 0%, transparent 55%);
    filter: blur(50px);
    animation: pageHeaderWash 16s var(--ease-in-out) infinite alternate-reverse;
}

@keyframes pageHeaderWash {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(20px, -10px) scale(1.08); opacity: 0.8; }
}

.sd-page-header .sd-container {
    position: relative;
    z-index: 1;
}

.sd-page-header h1 {
    margin-bottom: var(--space-sm);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 300;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease-out) 0.1s forwards;
}

.sd-page-header .sd-divider {
    opacity: 0;
    animation: heroFadeUp 0.6s var(--ease-out) 0.3s forwards;
}

.sd-page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 500px;
    margin-inline: auto;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease-out) 0.5s forwards;
}

/* Bottom gold accent line */
.sd-page-header-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--gold-light) 35%, var(--gold) 50%, var(--gold-light) 65%, transparent 90%);
    opacity: 0;
    animation: heroLine 2s var(--ease-out) 0.6s forwards;
}

/* --- Auth Pages --- */
.sd-auth-container {
    max-width: 440px;
    margin: var(--space-2xl) auto;
    padding: var(--space-2xl);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.sd-auth-container h2 {
    text-align: center;
    margin-bottom: var(--space-xs);
}

.sd-auth-container .sd-divider {
    margin-bottom: var(--space-xl);
}

/* --- Booking Calendar --- */
.sd-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sd-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.sd-calendar-header h3 {
    margin: 0;
}

.sd-cal-day-name {
    background: var(--cream-dark);
    padding: var(--space-sm);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.sd-cal-day {
    background: var(--white);
    padding: var(--space-sm);
    min-height: 48px;
    text-align: center;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.sd-cal-day:hover:not(.disabled) {
    background: var(--mint-light);
}

.sd-cal-day.selected {
    background: var(--gold);
    color: var(--white);
    font-weight: 600;
}

.sd-cal-day.today {
    font-weight: 700;
    color: var(--gold-dark);
}

.sd-cal-day.disabled {
    opacity: 0.3;
    cursor: default;
}

.sd-cal-day.other-month {
    opacity: 0.2;
}

.sd-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-sm);
}

.sd-time-slot {
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    font-size: 0.85rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.sd-time-slot:hover {
    border-color: var(--gold);
    background: var(--cream-light);
}

.sd-time-slot.selected {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

.sd-time-slot.unavailable {
    opacity: 0.3;
    cursor: default;
    text-decoration: line-through;
}

/* --- Admin Layout --- */
.sd-admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

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

    .sd-admin-sidebar {
        position: relative;
        height: auto;
    }
}

.sd-admin-sidebar {
    background: var(--admin-bg);
    border-right: 1px solid var(--admin-border);
    padding: var(--space-lg) 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sd-admin-sidebar-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--cream) !important;
    text-decoration: none;
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-xl);
    display: block;
}

.sd-admin-sidebar-brand span {
    color: var(--gold);
}

.sd-admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-admin-nav-section {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--admin-text-muted);
    padding: var(--space-lg) var(--space-lg) var(--space-sm);
}

.sd-admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.6rem var(--space-lg);
    font-size: 0.85rem;
    color: var(--admin-text);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
    border-left: 3px solid transparent;
}

.sd-admin-nav a:hover {
    background: var(--admin-surface);
    color: var(--gold-light);
}

.sd-admin-nav a.active {
    background: var(--admin-surface);
    color: var(--gold-light);
    border-left-color: var(--gold);
}

.sd-admin-content {
    background: var(--admin-surface);
    padding: var(--space-xl);
    min-height: 100vh;
}

.sd-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--admin-border);
}

.sd-admin-header h1 {
    font-size: 1.8rem;
    color: var(--admin-text);
    margin: 0;
}

.sd-admin-card {
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.sd-admin-stat-card {
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.sd-admin-stat-card .stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--admin-text-muted);
    margin-bottom: var(--space-sm);
}

.sd-admin-stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-light);
}

.sd-admin-stat-card .stat-change {
    font-size: 0.78rem;
    color: var(--mint);
    margin-top: var(--space-xs);
}

.sd-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.sd-admin-table thead {
    background: var(--admin-surface-2);
}

.sd-admin-table th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--admin-text-muted);
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}

.sd-admin-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text);
    vertical-align: middle;
}

.sd-admin-table tbody tr:hover {
    background: var(--admin-surface-2);
}

.sd-admin-input,
.sd-admin-select,
.sd-admin-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--admin-text);
    background: var(--admin-surface-2);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out);
}

.sd-admin-input:focus,
.sd-admin-select:focus,
.sd-admin-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(197, 162, 85, 0.2);
}

.sd-admin-input::placeholder {
    color: var(--admin-text-muted);
}

.sd-admin-textarea {
    resize: vertical;
    min-height: 80px;
}

.sd-admin-content .sd-badge-pending  { background: #433A1A; color: #D4B872; }
.sd-admin-content .sd-badge-confirmed{ background: #1A3326; color: #8FBFA8; }
.sd-admin-content .sd-badge-cancelled{ background: #3D1A1A; color: #D09090; }
.sd-admin-content .sd-badge-completed{ background: #1A3326; color: #8FBFA8; }
.sd-admin-content .sd-badge-noshow   { background: #3D1A1A; color: #D09090; }

.sd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* --- Alerts --- */
.sd-alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    margin-bottom: var(--space-lg);
}

.sd-alert-success {
    background: #D0E8DC;
    color: #2D6A4F;
    border: 1px solid #B8D8C8;
}

.sd-alert-error {
    background: #F5D5D3;
    color: #8B2520;
    border: 1px solid #E8B5B2;
}

.sd-alert-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFE69C;
}

.sd-alert-info {
    background: #D0E8DC;
    color: #2D6A4F;
    border: 1px solid #B8D8C8;
}

/* --- Loading Spinner --- */
.sd-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Modal --- */
.sd-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(44, 44, 44, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-med) var(--ease-out);
}

.sd-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.sd-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform var(--duration-med) var(--ease-out);
}

.sd-modal-backdrop.active .sd-modal {
    transform: translateY(0);
}

.sd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.sd-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

/* --- Identity Page Overrides --- */
.identity-container {
    max-width: 440px;
    margin: var(--space-xl) auto;
}

.identity-container .form-floating > .form-control {
    font-family: var(--font-body);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
}

.identity-container .form-floating > .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-muted);
}

.identity-container .btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.75rem;
}

.identity-container .btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

/* --- Utility Classes --- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }
.gap-4 { gap: var(--space-xl); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

main {
    flex: 1;
}

.page-content {
    animation: pageIn 0.4s var(--ease-out);
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Container override for non-admin pages */
.sd-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.sd-container-narrow {
    max-width: 800px;
    margin-inline: auto;
    padding-inline: var(--space-lg);
}
