/* =====================================================================
   CutFlow - Premium Barbershop Management System Design System
   Design Source of Truth: CutFlow UI Mockups
   Stack: Pure CSS Custom Properties, Dark Mode First, Responsive Shell
   ===================================================================== */

:root {
    /* CutFlow Dark Theme (Default - Source of Truth: Mockups) */
    --color-bg: #0d0e11;
    --color-bg-secondary: #131418;
    --color-card: #17181d;
    --color-card-hover: #1f2027;
    --color-elevated: #23252d;
    --color-border: #25272e;
    --color-border-subtle: #1e1f25;
    
    --color-text: #ffffff;
    --color-text-secondary: #9ea0ad;
    --color-text-muted: #6b6d7a;
    
    --color-accent: #c09d63;
    --color-accent-hover: #d5b378;
    --color-accent-active: #a6844b;
    --color-accent-muted: rgba(192, 157, 99, 0.15);
    --color-accent-contrast: #121316;
    
    --color-gold: #c09d63;
    --color-gold-hover: #d5b378;
    --color-gold-dark: #121316;

    --color-success: #34d399;
    --color-success-bg: rgba(52, 211, 153, 0.12);
    --color-warning: #fbbf24;
    --color-warning-bg: rgba(251, 191, 36, 0.12);
    --color-danger: #f87171;
    --color-danger-bg: rgba(248, 113, 113, 0.12);
    --color-info: #60a5fa;
    --color-info-bg: rgba(96, 165, 250, 0.12);
    --color-purple: #c084fc;
    --color-purple-bg: rgba(192, 132, 252, 0.12);
    
    --color-input-bg: #131418;
    --color-input-border: #25272e;
    --color-input-text: #ffffff;

    /* Glassmorphism Design Tokens */
    --glass-bg: rgba(23, 24, 29, 0.65);
    --glass-bg-hover: rgba(30, 32, 39, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-border-subtle: 1px solid rgba(255, 255, 255, 0.04);
    --glass-blur: blur(14px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px 0 rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 28px -5px rgba(0, 0, 0, 0.7);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sidebar-width: 250px;
    --header-height: 70px;
}

:root[data-theme="light"] {
    --color-bg: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-card: #ffffff;
    --color-card-hover: #f1f5f9;
    --color-elevated: #ffffff;
    --color-border: #e2e8f0;
    --color-border-subtle: #cbd5e1;
    
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    
    --color-accent: #c09d63;
    --color-accent-hover: #a6844b;
    --color-accent-active: #8c6b35;
    --color-accent-muted: rgba(192, 157, 99, 0.14);
    --color-accent-contrast: #ffffff;
    
    --color-gold: #c09d63;
    --color-gold-hover: #a6844b;
    --color-gold-dark: #ffffff;

    --color-input-bg: #ffffff;
    --color-input-border: #cbd5e1;
    --color-input-text: #0f172a;

    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-bg-hover: rgba(241, 245, 249, 0.95);
    --glass-border: 1px solid #e2e8f0;
    --glass-border-subtle: 1px solid #f1f5f9;
    --glass-blur: blur(14px);
    --glass-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.07);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Base resets & typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    max-width: 100%;
    max-height: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

/* =====================================================================
   App Shell Layout (Sidebar + Top Navbar + Content)
   ===================================================================== */
.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background: rgba(19, 20, 24, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-logo svg, .brand-logo-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.brand-title {
    background: linear-gradient(135deg, #ffffff 0%, #d4b06a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.sidebar-nav {
    flex: 1;
    padding: 1.25rem 0.85rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    padding: 0.75rem 0.75rem 0.35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: color 0.18s ease;
    flex-shrink: 0;
}

.nav-item:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.nav-item:hover svg {
    color: var(--color-accent);
}

.nav-item.active {
    color: var(--color-accent-contrast);
    background: var(--color-gold);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(192, 157, 99, 0.25);
}

.nav-item.active svg {
    color: #121316;
}

/* Sidebar Feature Promo Card (Source of Truth: Mockup) */
.sidebar-promo {
    margin: auto 0.85rem 1rem 0.85rem;
    padding: 1.25rem 1.1rem;
    background: linear-gradient(180deg, rgba(23, 24, 29, 0.7) 0%, rgba(13, 14, 17, 0.95) 100%),
                radial-gradient(circle at center, rgba(192, 157, 99, 0.2), transparent 70%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-promo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(192, 157, 99, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.sidebar-promo h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 1;
}

.sidebar-promo p {
    font-size: 0.76rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
    z-index: 1;
    margin-bottom: 0.25rem;
}

.sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Main Area Container */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Navbar */
.app-header {
    height: var(--header-height);
    background: rgba(19, 20, 24, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 450px;
}

.sidebar-toggle-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.header-search {
    position: relative;
    width: 100%;
}

.header-search input {
    width: 100%;
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-full);
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    color: var(--color-text);
    font-size: 0.88rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.header-search svg {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-action-btn {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    color: var(--color-text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.header-action-btn:hover {
    color: var(--color-text);
    border-color: var(--color-accent);
    background: var(--color-card-hover);
    transform: translateY(-1px);
}

.notification-badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-secondary);
}

/* User Profile Badge Dropdown */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.user-profile-menu:hover {
    background-color: var(--color-card);
    border-color: var(--color-border);
    transform: translateY(-1px);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    background-color: var(--color-elevated);
}

/* Visually hidden but still focusable/operable via keyboard and screen
   readers — used for file inputs styled as a button via their <label>. */
.sr-only-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

label:has(+ .sr-only-file-input:focus-visible) {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Admin form image-upload preview (service/product forms) */
.media-upload-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.media-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    background: #0d0e11;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.media-preview-wide {
    width: 160px;
    height: 100px;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-preview-empty {
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* Customer-facing service/product card image (book.php, admin lists) */
.card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0d0e11;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-media-empty {
    color: var(--color-text-muted);
    opacity: 0.35;
}

/* Barber portfolio (barber/portfolio.php, customer/barber_profile.php) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.portfolio-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-card-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0d0e11;
    overflow: hidden;
}

.portfolio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-card-body {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
}

.user-role-badge {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

/* Main Content Wrapper */
.app-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.app-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border-subtle);
    color: var(--color-text-muted);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =====================================================================
   Components: Cards, Stats, Data Tables, Buttons, Forms, Badges
   ===================================================================== */

/* Page Headers */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.page-title-group h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Glassmorphism Cards */
.card, .cutflow-card, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.card:hover, .cutflow-card:hover, .glass-card:hover {
    border-color: rgba(192, 157, 99, 0.3);
    box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.card-narrow {
    max-width: 440px;
    margin: 0 auto;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.card-header h3, .card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Stat Grid & Stat Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
    opacity: 0.6;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: var(--color-accent-muted);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-subtext {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
}

.data-table, .cutflow-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th, .cutflow-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table td, .cutflow-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text);
    vertical-align: middle;
}

.data-table tbody tr, .cutflow-table tbody tr {
    transition: background-color 0.12s ease;
}

.data-table tbody tr:hover, .cutflow-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td, .cutflow-table tbody tr:last-child td {
    border-bottom: none;
}

/* User / Entity Table Cell */
.entity-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.entity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    background-color: var(--color-elevated);
}

.entity-info {
    display: flex;
    flex-direction: column;
}

.entity-title {
    font-weight: 600;
    color: var(--color-text);
}

.entity-subtitle {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #b45309 100%);
    color: var(--color-accent-contrast);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--color-elevated);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-card-hover);
    border-color: var(--color-text-muted);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.btn-outline:hover {
    color: var(--color-text);
    border-color: var(--color-accent);
    background-color: var(--color-accent-muted);
    text-decoration: none;
}

.btn-danger {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background-color: var(--color-danger);
    color: #ffffff;
    text-decoration: none;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.45rem;
}

.form-control, 
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.9rem;
    color: var(--color-input-text);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, 
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* Badges & Status Pills */
.badge, .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    line-height: 1;
}

.badge-success, .status-confirmed, .status-available, .status-paid {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-warning, .status-pending, .status-away {
    background-color: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger, .status-cancelled, .status-busy {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-info, .status-completed {
    background-color: var(--color-info-bg);
    color: var(--color-info);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-purple, .status-refunded {
    background-color: var(--color-purple-bg);
    color: var(--color-purple);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-muted {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

/* Status Indicator Dot */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    display: inline-block;
    background-color: currentColor;
}

/* Navigation Tabs */
.cutflow-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.tab-item:hover {
    color: var(--color-text);
    text-decoration: none;
}

.tab-item.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Multi-Step Booking Wizard */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background-color: var(--color-border);
    z-index: 1;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.wizard-step-num {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background-color: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wizard-step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.wizard-step.active .wizard-step-num {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--color-accent-muted);
}

.wizard-step.active .wizard-step-label {
    color: var(--color-accent);
}

.wizard-step.completed .wizard-step-num {
    border-color: var(--color-success);
    background-color: var(--color-success);
    color: #ffffff;
}

/* Card Selection Grids (Services / Barbers) */
.selectable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.selectable-card {
    background-color: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.selectable-card:hover {
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.selectable-card.selected {
    border-color: var(--color-accent);
    background-color: rgba(217, 119, 6, 0.05);
}

.selectable-card-radio {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    accent-color: var(--color-accent);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background-color: var(--color-danger-bg);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-danger);
}

.alert-success {
    background-color: var(--color-success-bg);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--color-success);
}

.alert-warning {
    background-color: var(--color-warning-bg);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--color-warning);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

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

.modal-container {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-backdrop.show .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    background-color: var(--color-bg-secondary);
}

/* Filter Bar Container */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background-color: var(--color-card);
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Backward compatibility helpers for pre-existing pages */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.actions-cell { display: flex; align-items: center; gap: 0.75rem; }
.inline-form { display: inline; }
.link-button { background: none; border: none; padding: 0; color: var(--color-accent); cursor: pointer; font: inherit; }
.link-button:hover { text-decoration: underline; }
.text-muted { color: var(--color-text-muted); }
.option-list { display: flex; flex-direction: column; gap: 0.6rem; }
.option-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-input-bg); }
.slot-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.slot-btn { background-color: var(--color-input-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text); padding: 0.5rem 0.85rem; cursor: pointer; font: inherit; }
.slot-btn:hover { border-color: var(--color-accent); }
.slot-btn.selected { background-color: var(--color-accent); border-color: var(--color-accent); color: #ffffff; }
.summary-box { border-top: 1px solid var(--color-border); margin-top: 1rem; padding-top: 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.9rem; }
.summary-total { font-size: 1.1rem; font-weight: 700; color: var(--color-accent); }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    
    .app-shell.sidebar-open .app-sidebar {
        transform: translateX(0);
    }
    
    .app-main {
        margin-left: 0;
    }
    
    .sidebar-toggle-btn {
        display: flex;
    }

    .app-header {
        padding: 0 1rem;
    }

    .app-content {
        padding: 1.25rem 1rem;
    }
}

/* =====================================================================
   CutFlow UI Mockup Dashboard Layout Components
   ===================================================================== */
.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-gold-dark);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-md);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    text-decoration: none;
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    color: var(--color-gold-dark);
    text-decoration: none;
}

.card-select {
    background-color: #20222a;
    border: 1px solid #2d303c;
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
}

.dashboard-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid-3 {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

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

@media (max-width: 640px) {
    .dashboard-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Stat KPI Cards (Source of Truth: Mockup) */
.kpi-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 120px;
}

.kpi-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.kpi-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    margin-bottom: 0.2rem;
}

.kpi-title {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.kpi-trend {
    font-size: 0.72rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.kpi-chart-wrap {
    width: 80px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Employee Table Row (Mockup Style) */
.employee-table {
    width: 100%;
    border-collapse: collapse;
}

.employee-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0.5rem 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.employee-table td {
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--color-border-subtle);
    vertical-align: middle;
}

.employee-table tr:last-child td {
    border-bottom: none;
}

.badge-active-pill {
    background-color: rgba(52, 211, 153, 0.12);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.badge-inactive-pill {
    background-color: rgba(248, 113, 113, 0.12);
    color: #f87171;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Service Donut & Map Legend */
.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    padding: 0.25rem 0;
}

.legend-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 120px;
    margin: 0 0.5rem;
}

.legend-bar {
    height: 6px;
    border-radius: 999px;
    background-color: var(--color-gold);
}

/* 5-Column Grid for Appointments KPI Bar (Source of Truth: appointment_page_admin.png) */
.dashboard-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1300px) {
    .dashboard-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .dashboard-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .dashboard-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* Appointments 2-Column Main Layout */
.appointments-layout-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .appointments-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Upcoming Appointments Feed Side Card */
.feed-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-subtle);
    gap: 0.75rem;
}

.feed-card-item:last-child {
    border-bottom: none;
}

.feed-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    min-width: 60px;
}

.feed-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
}

.feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: var(--color-elevated);
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feed-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.feed-subtitle {
    font-size: 0.74rem;
    color: var(--color-text-muted);
}

/* =====================================================================
   Global Page Transitions (CutFlow Smooth Navigation)
   ===================================================================== */
.page-enter {
    opacity: 0;
    transform: translateY(8px);
    will-change: opacity, transform;
}

.page-enter.is-ready {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.page-exit {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 120ms ease-in, transform 120ms ease-in;
}

/* =====================================================================
   Reusable Micro-Interactions & Refined States
   ===================================================================== */
/* Button Hover Lift & Gold Glow */
.btn, .btn-gold, .btn-primary, .btn-secondary, .btn-outline {
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.18s ease,
                border-color 0.18s ease,
                box-shadow 0.18s ease,
                color 0.18s ease;
}

.btn:hover, .btn-gold:hover, .btn-primary:hover, .btn-secondary:hover, .btn-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(192, 157, 99, 0.25);
}

.btn:active, .btn-gold:active, .btn-primary:active, .btn-secondary:active, .btn-outline:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Inputs & Form Controls Focus Ring */
.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.header-search input:focus,
.card-select:focus {
    outline: none !important;
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 0 3px rgba(192, 157, 99, 0.22) !important;
}

/* Glass Table Rows & Feed Items Hover Highlight */
.data-table tbody tr,
.cutflow-table tbody tr,
.employee-table tbody tr,
.feed-card-item {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover,
.cutflow-table tbody tr:hover,
.employee-table tbody tr:hover,
.feed-card-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Glass KPI Cards */
.kpi-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.kpi-card:hover {
    border-color: rgba(192, 157, 99, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

/* =====================================================================
   KPI / Dashboard Card Entrance Stagger
   Reuses the existing .page-enter/.is-ready toggle from theme.js — no
   extra JS needed, so this applies automatically to every dashboard-grid
   on every role's dashboard/report page.
   ===================================================================== */
.page-enter .kpi-card {
    opacity: 0;
    transform: translateY(10px);
}

.page-enter.is-ready .kpi-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.page-enter.is-ready .dashboard-grid-2 .kpi-card:nth-child(2),
.page-enter.is-ready .dashboard-grid-3 .kpi-card:nth-child(2),
.page-enter.is-ready .dashboard-grid-4 .kpi-card:nth-child(2) { transition-delay: 40ms; }
.page-enter.is-ready .dashboard-grid-3 .kpi-card:nth-child(3),
.page-enter.is-ready .dashboard-grid-4 .kpi-card:nth-child(3) { transition-delay: 80ms; }
.page-enter.is-ready .dashboard-grid-4 .kpi-card:nth-child(4) { transition-delay: 120ms; }
.page-enter.is-ready .kpi-card:nth-child(n+5) { transition-delay: 120ms; }

/* =====================================================================
   Mobile Sidebar Backdrop
   ===================================================================== */
.sidebar-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 95;
    }

    .app-shell.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* =====================================================================
   Portfolio Card Hover (barber/portfolio.php, customer/barber_profile.php)
   ===================================================================== */
.portfolio-card {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.portfolio-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(192, 157, 99, 0.3);
}

.portfolio-card-media img {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-card-media img {
    transform: scale(1.03);
}

/* =====================================================================
   Form Image Preview Crossfade (service/product/portfolio image swap)
   ===================================================================== */
.media-preview img {
    transition: opacity 0.25s ease;
}

/* =====================================================================
   Profile Photo Upload — Loading State
   The upload auto-submits on file selection (existing behavior,
   unchanged); this only adds a brief visual "uploading" cue during the
   round trip so the click doesn't feel like it did nothing.
   ===================================================================== */
.profile-photo-row.is-uploading .user-avatar {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.profile-photo-row .photo-upload-label {
    transition: opacity 0.2s ease;
}

.profile-photo-row.is-uploading .photo-upload-label {
    opacity: 0.6;
    pointer-events: none;
}

/* =====================================================================
   Alert Entrance (success/error messages after form submits)
   ===================================================================== */
.alert {
    animation: alertIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   Accessibility: Reduced Motion Support
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .page-enter, .page-enter.is-ready, .page-exit,
    .page-enter .kpi-card, .page-enter.is-ready .kpi-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .btn:hover, .btn-gold:hover, .btn-primary:hover, .btn-secondary:hover, .btn-outline:hover,
    .card:hover, .cutflow-card:hover, .glass-card:hover, .kpi-card:hover,
    .portfolio-card:hover, .portfolio-card:hover .portfolio-card-media img {
        transform: none !important;
    }
    .sidebar-backdrop {
        transition: none !important;
    }
}

/* =====================================================================
   CutFlow Booking Portal System (.slot-grid, .slot-btn, .selectable-card)
   ===================================================================== */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.slot-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.slot-btn:hover {
    border-color: var(--color-gold);
    background: rgba(192, 157, 99, 0.12);
    color: var(--color-gold);
    transform: translateY(-1px);
}

.slot-btn.selected {
    background: var(--color-gold) !important;
    color: #121316 !important;
    border-color: var(--color-gold) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 12px rgba(192, 157, 99, 0.4);
}

.selectable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.selectable-card {
    background: var(--glass-bg);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.selectable-card:hover {
    border-color: rgba(192, 157, 99, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.selectable-card:has(input:checked) {
    border-color: var(--color-gold);
    background: rgba(192, 157, 99, 0.08);
    box-shadow: 0 0 14px rgba(192, 157, 99, 0.18);
}

.selectable-card-radio {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--color-gold);
    cursor: pointer;
}

/* Retail add-on quantity stepper (customer/book.php, admin/walkin_form.php) */
.selectable-card.qty-selected {
    border-color: var(--color-gold);
    background: rgba(192, 157, 99, 0.08);
    box-shadow: 0 0 14px rgba(192, 157, 99, 0.18);
}

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    opacity: 0.55;
    white-space: nowrap;
}

.wizard-step.active {
    opacity: 1;
}

.wizard-step-num {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-step.active .wizard-step-num {
    background: var(--color-gold);
    color: #121316;
}

.wizard-step-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
}

/* =====================================================================
   Landing / Pricing pages (public, logged-out marketing surfaces)
   ===================================================================== */

/* Scroll-reveal animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.landing-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.landing-section-narrow {
    padding: 4rem 0;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(192, 157, 99, 0.1);
    border: 1px solid rgba(192, 157, 99, 0.25);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
}

/* Public Header Bar */
.public-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem;
    background: rgba(13, 14, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.public-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.public-nav-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.public-nav-brand-subtitle {
    font-size: 0.68rem;
    color: var(--color-gold);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-top: -0.15rem;
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.public-nav-link {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.15s ease;
}

.public-nav-link:hover {
    color: #ffffff;
}

.public-nav-ctas {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.public-nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    color: #ffffff;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.public-nav-ctas-mobile {
    display: none;
}

/* Hero Grid */
.landing-hero {
    padding: 4.5rem 0 3.5rem;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}

.landing-hero-content {
    text-align: left;
}

.landing-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.landing-hero p.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 540px;
}

.landing-hero-ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.landing-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.landing-stat-item {
    display: flex;
    flex-direction: column;
}

.landing-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-gold);
    letter-spacing: -0.02em;
}

.landing-stat-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Product Visual Showcase Component */
.saas-window-frame {
    background: #131418;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(192, 157, 99, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.saas-window-frame:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 20px rgba(192, 157, 99, 0.2);
}

.saas-window-header {
    background: #17181d;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border-subtle);
}

.saas-window-dots {
    display: flex;
    gap: 0.4rem;
}

.saas-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.saas-dot.red { background: #ff5f56; }
.saas-dot.yellow { background: #ffbd2e; }
.saas-dot.green { background: #27c93f; }

.product-tab-switcher {
    display: flex;
    background: #0d0e11;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.product-tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-tab-btn.active {
    background: var(--color-card);
    color: var(--color-gold);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.saas-window-body {
    padding: 1.25rem;
    background: #0d0e11;
    min-height: 380px;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

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

/* Mock UI Components inside SaaS Showcase */
.mock-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.mock-kpi-card {
    background: #17181d;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem;
}

.mock-kpi-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mock-kpi-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.2rem 0;
}

.mock-schedule-list {
    background: #17181d;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem;
}

.mock-schedule-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.65rem;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 0.4rem;
}

.mock-schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
}

.mock-badge-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.mock-badge-status.confirmed {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.mock-badge-status.qr {
    background: rgba(192, 132, 252, 0.12);
    color: #c084fc;
}

/* Trust / Positioning Bar */
.trust-bar-section {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
    background: #131418;
}

.trust-bar-title {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.trust-capabilities-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-capability-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    background: #17181d;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
}

.trust-capability-pill svg {
    color: var(--color-gold);
}

/* Problem -> Solution Section */
.problem-solution-container {
    max-width: 960px;
    margin: 0 auto;
}

.problem-header {
    text-align: center;
    margin-bottom: 3rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.problem-card {
    background: #131418;
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.problem-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.problem-card p {
    font-size: 0.86rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.solution-banner {
    background: linear-gradient(135deg, rgba(192, 157, 99, 0.12) 0%, rgba(23, 24, 29, 0.9) 100%);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: center;
}

.solution-banner h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.solution-banner p {
    color: var(--color-text-secondary);
    font-size: 0.98rem;
    max-width: 620px;
    margin: 0 auto;
}

/* Editorial Feature Sections (01 to 05) */
.editorial-features {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.editorial-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.editorial-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.editorial-item:nth-child(even) .editorial-copy {
    order: 2;
}

.editorial-item:nth-child(even) .editorial-visual {
    order: 1;
}

.editorial-number {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    background: rgba(192, 157, 99, 0.12);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.editorial-copy h3 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.editorial-copy p {
    font-size: 1.02rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.editorial-visual {
    background: #131418;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

/* Customer & Owner Workflow Pipelines */
.workflow-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: #131418;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow-x: auto;
}

.workflow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.workflow-node-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #17181d;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.workflow-node-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.workflow-arrow {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    align-items: stretch;
    max-width: 780px;
    margin: 0 auto;
}

.pricing-card {
    background: #131418;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 157, 99, 0.4);
}

.pricing-card.featured {
    background: #17181d;
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(192, 157, 99, 0.15);
    position: relative;
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: #121316;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
}

.pricing-card-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.pricing-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    min-height: 2.4em;
}

.pricing-card-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 0.25rem;
}

.pricing-card-price span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.pricing-card-features li {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.pricing-card-features li::before {
    content: '✓';
    color: #34d399;
    font-weight: 800;
    flex-shrink: 0;
}

/* Testimonials */
.landing-testimonial-card {
    background: #131418;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.landing-testimonial-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.7rem;
    margin-bottom: 1.25rem;
    align-self: flex-start;
}

.landing-testimonial-quote {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.landing-testimonial-author {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* FAQ Accordion */
.landing-faq-item {
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 1.2rem 0;
}

.landing-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.02rem;
    color: #ffffff;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-faq-item summary::-webkit-details-marker {
    display: none;
}

.landing-faq-item summary::after {
    content: '+';
    color: var(--color-gold);
    font-weight: 800;
    font-size: 1.2rem;
}

.landing-faq-item[open] summary::after {
    content: '\2212';
}

.landing-faq-item p {
    margin: 0.85rem 0 0;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* Final CTA Section */
.landing-final-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(192, 157, 99, 0.15) 0%, rgba(19, 20, 24, 0.95) 100%);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.landing-final-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    color: #ffffff;
}

.landing-final-cta p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Multi-column Public SaaS Footer */
.public-saas-footer {
    background: #090a0c;
    border-top: 1px solid var(--color-border);
    padding: 4.5rem 0 2.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-brand-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    font-size: 0.86rem;
    color: var(--color-text-secondary);
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-link-soon {
    font-size: 0.86rem;
    color: var(--color-text-muted);
    cursor: default;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .landing-hero-content {
        text-align: center;
    }
    .landing-hero p.hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .landing-hero-ctas {
        justify-content: center;
    }
    .editorial-item, .editorial-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .editorial-item:nth-child(even) .editorial-copy {
        order: 1;
    }
    .editorial-item:nth-child(even) .editorial-visual {
        order: 2;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2.2rem;
    }
    .problem-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .landing-grid-3 {
        grid-template-columns: 1fr;
    }
    .public-nav-mobile-toggle {
        display: flex;
    }
    .public-nav-ctas-desktop {
        display: none;
    }
    .public-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(13, 14, 17, 0.98);
        border-bottom: 1px solid var(--color-border-subtle);
        padding: 0.5rem 1.5rem 1.25rem;
    }
    .public-nav-links.is-open {
        display: flex;
    }
    .public-nav-link {
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--color-border-subtle);
    }
    .public-nav-ctas-mobile {
        display: flex;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .workflow-pipeline {
        justify-content: flex-start;
    }
}

/* =====================================================================
   Light Theme Comprehensive Component Overrides & Polish
   ===================================================================== */
:root[data-theme="light"] .app-sidebar {
    background: rgba(255, 255, 255, 0.94);
    border-right-color: #e2e8f0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .brand-title {
    background: linear-gradient(135deg, #0f172a 0%, #c09d63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .sidebar-promo {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
}

:root[data-theme="light"] .sidebar-promo h5 {
    color: #0f172a;
}

:root[data-theme="light"] .app-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] .public-nav-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: #e2e8f0;
}

:root[data-theme="light"] .public-nav-brand-title {
    color: #0f172a;
}

:root[data-theme="light"] .public-nav-link {
    color: #475569;
}

:root[data-theme="light"] .public-nav-link:hover {
    color: var(--color-gold);
}

:root[data-theme="light"] .public-nav-links {
    background: #ffffff;
}

:root[data-theme="light"] .public-saas-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #475569;
}

:root[data-theme="light"] .footer-brand-title,
:root[data-theme="light"] .footer-col-title {
    color: #0f172a;
}

:root[data-theme="light"] .data-table th,
:root[data-theme="light"] .cutflow-table th {
    background-color: #f1f5f9;
    color: #475569;
    border-bottom-color: #e2e8f0;
}

:root[data-theme="light"] .data-table tbody tr:hover,
:root[data-theme="light"] .cutflow-table tbody tr:hover {
    background-color: #f8fafc;
}

:root[data-theme="light"] .card-select {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

:root[data-theme="light"] .media-preview,
:root[data-theme="light"] .card-media,
:root[data-theme="light"] .portfolio-card-media {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

:root[data-theme="light"] .mock-kpi-card,
:root[data-theme="light"] .mock-schedule-item {
    background: #ffffff;
    border-color: #e2e8f0;
}

:root[data-theme="light"] .mockup-floating-badge {
    background: #ffffff;
    color: #0f172a;
    border-color: var(--color-gold);
}

:root[data-theme="light"] .saas-window-frame {
    background: #ffffff;
    border-color: #cbd5e1;
}

:root[data-theme="light"] .saas-window-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

:root[data-theme="light"] .saas-window-body {
    background: #f8fafc;
}

:root[data-theme="light"] .problem-card,
:root[data-theme="light"] .solution-banner,
:root[data-theme="light"] .editorial-item,
:root[data-theme="light"] .editorial-visual,
:root[data-theme="light"] .workflow-pipeline,
:root[data-theme="light"] .pricing-card,
:root[data-theme="light"] .landing-testimonial-card,
:root[data-theme="light"] .landing-faq-item,
:root[data-theme="light"] .landing-final-cta {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}

:root[data-theme="light"] .pricing-card.featured {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-color: var(--color-gold);
}

:root[data-theme="light"] .landing-faq-item[open] {
    background: #f8fafc;
    border-color: var(--color-gold);
}

/* =====================================================================
   Beginner-Friendly Empty States Component System
   ===================================================================== */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--color-card);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-accent-muted);
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px rgba(192, 157, 99, 0.15);
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.empty-state-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    max-width: 440px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}






