/* REMBO Multi-Tenant Salon POS Stylesheet */
:root {
    --primary: #8a3ab9;
    --primary-dark: #622589;
    --primary-light: #e1bbf7;
    --accent: #e95950;
    --gold: #d4af37;
    --secondary: #4a5568;
    --dark: #1a202c;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.5;
}

/* ========================================================
   PUBLIC STOREFRONT STYLES
   ======================================================== */
.storefront-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.storefront-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.storefront-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.storefront-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    font-size: 28px;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.brand-domain {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.brand-domain i {
    margin-right: 4px;
}

.storefront-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.storefront-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}

.storefront-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.storefront-brand p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.storefront-nav-actions {
    display: flex;
    gap: 10px;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.btn-nav-primary {
    background: white;
    color: var(--primary);
}

.btn-nav-primary:hover {
    background: #f1f5f9;
}

.storefront-hero {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.storefront-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.storefront-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto 25px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-cta-book {
    background: #10b981;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
}

.btn-cta-book:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-cta-loyalty {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cta-loyalty:hover {
    background: white;
    color: #4f46e5;
}

/* Storefront Content */
.storefront-container {
    max-width: 1200px;
    margin: -30px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.storefront-section {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.storefront-section h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Informative public home page */
.storefront-eyebrow,
.home-section-kicker {
    display: inline-block;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.storefront-eyebrow {
    color: rgba(255,255,255,.88);
}

.storefront-hero-copy { min-width: 0; }
.hero-side-card { display: none; }
body.website-layout-split .hero-side-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
}
.hero-side-card > span { opacity: .85; font-size: .9rem; }
.hero-side-card > strong { font-size: 3rem; line-height: 1; }
.hero-side-card > small { opacity: .9; }
.hero-side-card > div { padding-top: 12px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.3); }
.hero-side-card b { font-size: 1.2rem; margin-right: 4px; }

.home-intro-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    padding: clamp(30px, 6vw, 72px);
    margin: 38px 0;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

.home-intro-copy h2,
.home-visit-section h2 {
    color: var(--dark);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.home-intro-copy p,
.home-visit-section > div:first-child > p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1.02rem;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 18px;
}

.home-text-link:hover { color: var(--primary-dark); }

.home-highlight-list { display: grid; gap: 20px; }
.home-highlight-list > div { display: flex; align-items: center; gap: 14px; }
.home-highlight-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
}
.home-highlight-list strong,
.home-highlight-list small { display: block; }
.home-highlight-list strong { color: var(--dark); margin-bottom: 4px; }
.home-highlight-list small { color: #64748b; line-height: 1.5; }

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 18px;
}
.home-section-heading h3 { margin-bottom: 0; }
.home-section-heading .home-text-link { margin: 0 0 10px; white-space: nowrap; }
.home-empty-message { color: #64748b; padding: 18px 0; line-height: 1.6; }

.home-visit-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(28px, 5vw, 54px);
    margin: 38px 0;
    border-radius: 20px;
    background: var(--primary-light);
}
.home-visit-section h2 { margin-bottom: 10px; }
.home-contact-details { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.home-contact-details p { color: var(--secondary); margin: 0; }
.home-contact-details i { color: var(--primary); margin-right: 6px; }
.home-contact-details a { color: inherit; text-decoration: none; }
.home-visit-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.home-visit-actions .btn-cta-secondary,
.home-visit-actions .btn-cta-primary { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; }
.home-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 14px; }
.home-footer-links a { color: #cbd5e1; text-decoration: none; }
.home-footer-links a:hover { color: white; }

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-storefront-card {
    background: #fdfdfd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-storefront-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.service-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.service-card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 15px;
}

.service-card-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.service-card-btn:hover {
    background: var(--primary-dark);
}

.staff-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.staff-storefront-card {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.staff-avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    margin: 0 auto 12px;
}

.staff-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.staff-card-role {
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========================================================
   INTERNAL POS PORTAL LAYOUT
   ======================================================== */
.pos-layout {
    display: flex;
    min-height: 100vh;
}

.pos-layout.pos-sidebar-collapsed .pos-sidebar { width: 78px; }
.pos-sidebar { transition: width .22s ease; overflow-x: hidden; }
.pos-sidebar-collapsed .pos-brand-text,
.pos-sidebar-collapsed .pos-nav-item a span,
.pos-sidebar-collapsed .pos-user-info > div:last-child { display: none; }
.pos-sidebar-collapsed .pos-sidebar-brand { justify-content: center; padding-left: 10px; padding-right: 10px; }
.pos-sidebar-collapsed .pos-nav-item a { justify-content: center; padding-left: 10px; padding-right: 10px; }
.pos-sidebar-collapsed .pos-nav-item a i { width: auto; }
.pos-sidebar-collapsed .pos-sidebar-footer { padding-left: 10px; padding-right: 10px; }
.pos-sidebar-collapsed .pos-user-profile,
.pos-sidebar-collapsed .pos-user-info { justify-content: center; }
.pos-sidebar-collapsed .pos-logout-btn { display: none; }

.pos-sidebar {
    width: 260px;
    background: #1e1e2d;
    color: #a2a3b7;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.pos-sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.pos-brand-text h2 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.pos-brand-text span {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pos-nav {
    list-style: none;
    padding: 15px 0;
    flex-grow: 1;
}

.pos-nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.pos-nav-item a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.pos-nav-item.active a {
    color: white;
    background: rgba(124, 58, 237, 0.15);
    border-left-color: #7c3aed;
    font-weight: 600;
}

.pos-nav-item a i {
    width: 20px;
    font-size: 1.1rem;
}

.pos-sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-user-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pos-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pos-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.pos-user-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.pos-user-role {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: capitalize;
}

.pos-logout-btn {
    color: #ef4444;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px;
}

/* POS Main Content */
.pos-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
    overflow-y: auto;
}

.pos-topbar {
    background: white;
    height: 65px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.pos-topbar-heading { display:flex; align-items:center; gap:14px; min-width:0; }
.pos-sidebar-toggle { width:38px; height:38px; border:1px solid var(--border); border-radius:9px; background:#fff; color:#475569; cursor:pointer; flex:0 0 auto; }
.pos-sidebar-toggle:hover { background:#f1f5f9; color:#4f46e5; }
.pos-sidebar-backdrop { display:none; }

.pos-page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.pos-topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pos-notification-link{position:relative;display:inline-flex;align-items:center;gap:8px;color:#334155;text-decoration:none;font-weight:600;padding:8px 11px;border-radius:9px;background:#f8fafc}
.pos-notification-link:hover{background:#eef2ff;color:#4338ca}
.pos-notification-count{position:absolute;top:-7px;right:-7px;min-width:19px;height:19px;padding:0 5px;border-radius:20px;background:#e11d48;color:#fff;font-size:11px;display:grid;place-items:center;border:2px solid #fff}

.badge-tenant {
    background: #e0e7ff;
    color: #4338ca;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pos-content {
    padding: 25px 30px;
    flex-grow: 1;
}

/* Alerts */
.pos-alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.pos-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pos-alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pos-alert-info {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

/* Stat Cards */
.pos-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card-pos {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-sales { background: #dcfce7; color: #15803d; }
.stat-icon-expense { background: #fee2e2; color: #b91c1c; }
.stat-icon-profit { background: #ede9fe; color: #6d28d9; }
.stat-icon-book { background: #e0f2fe; color: #0369a1; }

.stat-card-data h4 {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card-data p {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

/* POS Terminal / Checkout Grid */
.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    height: calc(100vh - 140px);
}

.services-catalog-panel {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.catalog-search-bar {
    margin-bottom: 15px;
    position: relative;
}

.catalog-search-bar input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
}

.catalog-search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.service-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    overflow-y: auto;
    padding-right: 5px;
    flex-grow: 1;
}

.service-tile {
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-tile:hover {
    border-color: var(--primary);
    background: #faf5ff;
    transform: translateY(-2px);
}

.service-tile h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.service-tile-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.service-tile-comm {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

/* Cart Panel */
.checkout-cart-panel {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}

.client-selector-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.client-selector-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.client-loyalty-badge {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

.loyalty-highlight {
    color: #d97706;
    font-weight: 700;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 15px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.cart-item-info h5 {
    font-size: 0.95rem;
    color: var(--dark);
}

.cart-item-info select {
    font-size: 0.8rem;
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-top: 4px;
}

.cart-item-staff {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-size: 0.72rem;
    color: #64748b;
}

.cart-item-staff span {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cart-item-staff strong {
    color: #0f172a;
}

.cart-item-staff-missing {
    color: #b45309;
}

.cart-item-staff button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--primary, #4f46e5);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.staff-assign-hint {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.staff-assign-row {
    display: grid;
    grid-template-columns: 1fr 190px 110px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.staff-assign-service {
    display: flex;
    flex-direction: column;
}

.staff-assign-service small {
    color: #64748b;
    font-weight: 400;
}

.staff-assign-row select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.staff-assign-comm {
    text-align: right;
    font-weight: 700;
    color: #15803d;
}

.staff-assign-head {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid var(--border);
}

.staff-assign-total {
    border-bottom: 0;
    font-weight: 700;
    color: #0f172a;
}

.staff-assign-error {
    margin: 10px 0 0;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 560px) {
    .staff-assign-row { grid-template-columns: 1fr; gap: 6px; }
    .staff-assign-comm,
    .staff-assign-total strong { text-align: left; }
    .staff-assign-head { display: none; }
}

.cart-item-pricing {
    text-align: right;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.btn-remove-item {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 8px;
}

.cart-summary {
    border-top: 2px solid var(--border);
    padding-top: 12px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 8px;
}

.payment-method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.btn-payment-option {
    padding: 10px;
    border: 2px solid var(--border);
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.btn-payment-option.active {
    border-color: var(--primary);
    background: #f5f3ff;
    color: var(--primary);
}

.btn-complete-checkout {
    width: 100%;
    background: #10b981;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    transition: background 0.2s;
}

.btn-complete-checkout:hover {
    background: #059669;
}

/* Tables and Panels */
.pos-table-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow-x: auto;
}

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

.pos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pos-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
}

.pos-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: #334155;
}

.pos-table tr:hover {
    background: #f8fafc;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending { background: #fef3c7; color: #b45309; }
.badge-paid { background: #dcfce7; color: #15803d; }
.badge-confirmed { background: #dbeafe; color: #1d4ed8; }
.badge-in_progress { background: #ede9fe; color: #6d28d9; }
.badge-completed { background: #dcfce7; color: #15803d; }
.badge-cancelled { background: #fee2e2; color: #b91c1c; }

.sales-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.sales-summary-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
}

.sales-summary-card span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.sales-summary-card strong {
    font-size: 1.3rem;
    color: #0f172a;
}

.sales-summary-good strong { color: #15803d; }
.sales-summary-warn strong { color: #b45309; }

/* The sales table scrolls horizontally on narrow screens; keep the receipt
   number and timestamp on one line so they do not stack vertically. */
.sales-table td:nth-child(1),
.sales-table td:nth-child(2),
.sales-table td:nth-last-child(2),
.sales-table td:last-child { white-space: nowrap; }

/* Actions stay reachable while the rest of the row scrolls underneath. */
.sales-table th:last-child,
.sales-table td:last-child {
    position: sticky;
    right: 0;
    background: #fff;
    box-shadow: -8px 0 10px -10px rgba(15, 23, 42, 0.45);
}

/* Buttons */
.btn-pos {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-pos-primary { background: #7c3aed; color: white; }
.btn-pos-primary:hover { background: #6d28d9; }

.btn-pos-success { background: #10b981; color: white; }
.btn-pos-success:hover { background: #059669; }

.btn-pos-danger { background: #ef4444; color: white; }
.btn-pos-danger:hover { background: #dc2626; }

.btn-pos-secondary { background: #e2e8f0; color: #475569; }
.btn-pos-secondary:hover { background: #cbd5e1; }

.btn-pos-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* Modals */
.pos-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.pos-modal {
    background: white;
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.pos-modal-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

.pos-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #64748b;
}

.pos-modal-body {
    padding: 20px;
    max-height: 75vh;
    overflow-y: auto;
}

.pos-form-group {
    margin-bottom: 16px;
}

.pos-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.pos-form-group input,
.pos-form-group select,
.pos-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
}

.pos-form-group input:focus,
.pos-form-group select:focus,
.pos-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.pos-modal-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Printable Receipt Template */
.receipt-paper {
    width: 320px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #000;
}

.receipt-header {
    text-align: center;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.receipt-header h3 {
    font-size: 16px;
    font-weight: bold;
}

.receipt-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.receipt-items-table td {
    padding: 4px 0;
}

.receipt-total-section {
    border-top: 1px dashed #000;
    padding-top: 8px;
    margin-bottom: 10px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.receipt-footer {
    text-align: center;
    border-top: 1px dashed #000;
    padding-top: 10px;
    font-size: 11px;
}

@media print {
    body * {
        visibility: hidden;
    }
    #printableReceiptModal, #printableReceiptModal * {
        visibility: visible;
    }
    #printableReceiptModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        padding: 0;
    }
    .receipt-paper {
        width: 100%;
        max-width: 300px;
        box-shadow: none;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .pos-layout {
        flex-direction: row;
    }
    .pos-sidebar {
        position:fixed;
        z-index:1200;
        inset:0 auto 0 0;
        width:min(290px, 84vw);
        height:100vh;
        overflow-y:auto;
        box-shadow:0 18px 48px rgba(15,23,42,.28);
        transform:translateX(-105%);
        transition:transform .22s ease;
    }
    .pos-layout.pos-sidebar-collapsed .pos-sidebar { width:min(290px, 84vw); }
    .pos-layout.pos-sidebar-open .pos-sidebar { transform:translateX(0); }
    .pos-sidebar-collapsed .pos-brand-text,
    .pos-sidebar-collapsed .pos-nav-item a span,
    .pos-sidebar-collapsed .pos-user-info > div:last-child { display:block; }
    .pos-sidebar-collapsed .pos-nav-item a { justify-content:flex-start; padding-left:20px; padding-right:20px; }
    .pos-sidebar-collapsed .pos-nav-item a i { width:20px; }
    .pos-sidebar-collapsed .pos-sidebar-brand { justify-content:flex-start; padding:24px 20px; }
    .pos-sidebar-collapsed .pos-sidebar-footer { padding:15px 20px; }
    .pos-sidebar-collapsed .pos-user-profile { justify-content:space-between; }
    .pos-sidebar-collapsed .pos-user-info { justify-content:flex-start; }
    .pos-sidebar-collapsed .pos-logout-btn { display:block; }
    .pos-sidebar-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:1190; width:100%; height:100%; border:0; background:rgba(15,23,42,.48); }
    .pos-main { width:100%; min-width:0; }
    .pos-topbar { padding:0 16px; }
}

/* ========================================================
   LOGIN PAGE STYLES
   ======================================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.login-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.login-header h1 {
    color: var(--dark);
    font-size: 24px;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--secondary);
    font-size: 14px;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-login i {
    margin-right: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-footer p {
    color: var(--secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ========================================================
   DASHBOARD STYLES
   ======================================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-brand h2 {
    font-size: 18px;
    margin-bottom: 5px;
    text-align: center;
}

.sidebar-brand span {
    font-size: 12px;
    text-align: center;
    display: block;
    opacity: 0.8;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    margin-bottom: 5px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

.nav-item i {
    width: 25px;
    margin-right: 15px;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-details {
    flex: 1;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-logout i {
    margin-right: 8px;
}

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    background: var(--light-bg);
}

.dashboard-header {
    background: white;
    padding: 20px 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    color: var(--dark);
    font-size: 28px;
}

.header-date {
    color: var(--secondary);
    font-size: 14px;
}

.dashboard-content {
    padding: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-icon-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-info h3 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--secondary);
    font-size: 14px;
}

.section {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.section h2 {
    color: var(--dark);
    font-size: 20px;
    margin-bottom: 20px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--border);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.action-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.action-card span {
    display: block;
    font-weight: 500;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--radius);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.activity-info {
    color: var(--secondary);
    font-size: 13px;
}

.no-data {
    color: var(--secondary);
    text-align: center;
    padding: 30px;
    font-style: italic;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1000;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   PUBLIC PAGES STYLES (SEO-Friendly)
   ======================================================== */
.storefront-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.storefront-main {
    flex: 1;
    background: var(--light-bg);
}

.storefront-footer {
    background: var(--dark);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-brand {
    font-size: 18px !important;
    font-weight: 700;
    opacity: 1 !important;
    margin-bottom: 12px !important;
}

.menu-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.menu-link:hover,
.menu-link.active {
    color: var(--gold);
}

/* Bookings Page Styles */
.booking-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.booking-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.booking-info h2 {
    color: var(--dark);
    font-size: 28px;
    margin-bottom: 10px;
}

.booking-info p {
    color: var(--secondary);
    margin-bottom: 25px;
}

.booking-form {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-booking {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-booking:hover {
    transform: translateY(-2px);
}

.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 15px;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card ul li {
    padding: 8px 0;
    color: var(--secondary);
    font-size: 14px;
}

.sidebar-card ul li i {
    color: var(--success);
    margin-right: 10px;
}

.btn-contact {
    display: inline-block;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    margin-top: 15px;
}

/* Services Page Styles */
.services-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1 {
    color: var(--dark);
    font-size: 36px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--secondary);
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--dark);
    font-size: 20px;
    margin-bottom: 10px;
}

.service-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-description {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-book-service {
    display: inline-block;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.3s;
}

.btn-book-service:hover {
    background: var(--primary-dark);
}

.no-services {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-services i {
    font-size: 64px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.no-services h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.services-cta {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.services-cta h2 {
    color: var(--dark);
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-cta-primary {
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-cta-secondary {
    padding: 14px 30px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
}

/* About Page Styles */
.about-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 40px;
}

.about-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.about-tagline {
    font-size: 20px;
    opacity: 0.9;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-story,
.about-mission {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-story h2,
.about-mission h2 {
    color: var(--dark);
    font-size: 24px;
    margin-bottom: 20px;
}

.about-story p,
.about-mission p {
    color: var(--secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-values h2 {
    color: var(--dark);
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.value-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--primary);
}

.value-card h3 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.6;
}

.about-cta {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.about-cta h2 {
    color: var(--dark);
    font-size: 28px;
    margin-bottom: 15px;
}

.about-cta p {
    color: var(--secondary);
    margin-bottom: 25px;
}

/* Contact Page Styles */
.contact-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.contact-details h3 {
    color: var(--dark);
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-card h2 {
    color: var(--dark);
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-form-card p {
    color: var(--secondary);
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-contact-submit {
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
}

.contact-quick-booking {
    background: var(--primary-light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
}

.contact-quick-booking h3 {
    color: var(--dark);
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-quick-booking p {
    color: var(--secondary);
    margin-bottom: 20px;
}

.btn-quick-book {
    display: inline-block;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
}

/* Responsive Public Pages */
@media (max-width: 768px) {
    body.website-layout-split .storefront-hero { display: block; }
    body.website-layout-split .hero-side-card { display: none; }
    .home-intro-section { grid-template-columns: 1fr; padding: 28px 22px; margin: 24px 0; }
    .home-section-heading { align-items: start; flex-direction: column; gap: 8px; }
    .home-section-heading .home-text-link { margin: 0 0 8px; }
    .home-visit-section { align-items: stretch; flex-direction: column; margin: 24px 0; }
    .home-visit-actions { width: 100%; }
    .home-visit-actions > * { flex: 1; }
    .home-contact-details { flex-direction: column; }
    
    .booking-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PUBLIC NAVIGATION BAR (shared by every public page)
   Markup comes from POS/includes/public_nav.php:
     .storefront-nav > .storefront-brand + .mobile-toggle + .storefront-menu
   Desktop renders the menu inline; from 768px down it collapses behind the
   hamburger and is revealed by .storefront-nav.mobile-open (public_nav.js).
   ============================================================ */

.storefront-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.storefront-menu {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 28px;
}

.storefront-nav .menu-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    white-space: nowrap;
    opacity: 0.88;
    transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

/* Extra .storefront-menu level so per-business theme colours cannot make the
   active link the same colour as the header gradient. */
.storefront-nav .storefront-menu .menu-link:hover,
.storefront-nav .storefront-menu .menu-link.active {
    opacity: 1;
    color: var(--gold, #f59e0b);
}

.storefront-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.brand-text h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
    .storefront-nav {
        flex-wrap: wrap;
        padding: 0.9rem 1rem;
        gap: 12px;
    }

    .storefront-brand { flex: 1 1 auto; min-width: 0; }

    .brand-text h1 { font-size: 1.2rem; }

    .mobile-toggle { display: flex; }

    /* The collapsed menu stays in the flow and animates open/closed evenly. */
    .storefront-menu {
        order: 3;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        border-top: 0 solid rgba(255, 255, 255, 0.22);
        transition: max-height 0.34s ease, padding 0.34s ease, border-width 0.34s ease,
                    opacity 0.24s ease, visibility 0s linear 0.34s;
    }

    .storefront-nav.mobile-open .storefront-menu {
        max-height: 28rem;
        padding: 10px 0 4px;
        border-top-width: 1px;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.34s ease, padding 0.34s ease, border-width 0.34s ease,
                    opacity 0.2s ease, visibility 0s linear 0s;
    }

    .storefront-nav .storefront-menu > * {
        opacity: 0;
        transform: translateY(-8px);
        transition-delay: 0s;
    }

    .storefront-nav.mobile-open .storefront-menu > * {
        opacity: 1;
        transform: translateY(0);
    }

    .storefront-nav.mobile-open .storefront-menu > *:nth-child(1) { transition-delay: 0.05s; }
    .storefront-nav.mobile-open .storefront-menu > *:nth-child(2) { transition-delay: 0.10s; }
    .storefront-nav.mobile-open .storefront-menu > *:nth-child(3) { transition-delay: 0.15s; }
    .storefront-nav.mobile-open .storefront-menu > *:nth-child(4) { transition-delay: 0.20s; }
    .storefront-nav.mobile-open .storefront-menu > *:nth-child(5) { transition-delay: 0.25s; }
    .storefront-nav.mobile-open .storefront-menu > *:nth-child(6) { transition-delay: 0.30s; }
    .storefront-nav.mobile-open .storefront-menu > *:nth-child(7) { transition-delay: 0.35s; }

    @media (prefers-reduced-motion: reduce) {
        .storefront-menu,
        .storefront-nav .storefront-menu > * { transition: none; }
        .storefront-nav .storefront-menu > * { transform: none; }
    }

    .storefront-menu .menu-link {
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 1rem;
    }

    .storefront-nav .storefront-menu .menu-link:hover,
    .storefront-nav .storefront-menu .menu-link.active {
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
    }

    .storefront-nav-actions {
        margin: 8px 0 0;
        width: 100%;
    }

    .storefront-nav-actions .btn-nav { width: 100%; }
}

@media (max-width: 480px) {
    .storefront-logo { width: 44px; height: 44px; }
    .brand-text h1 { font-size: 1.05rem; }
    .home-visit-actions { flex-direction: column; }
    .home-visit-actions > * { width: 100%; }
}
/* ── Gallery (POS manager view + public client view) ─────────────── */
.pos-gallery-form { margin-top: 20px; }
.pos-gallery-type-choice {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.pos-gallery-type-choice label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
}
.pos-gallery-type-choice label:has(input:checked) {
    border-color: #6366f1;
    background: #eef2ff;
    color: #3730a3;
}
.pos-gallery-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.pos-gallery-submit {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.pos-gallery-hint { color: #64748b; font-size: 0.85rem; }
.pos-gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.pos-gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pos-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.pos-gallery-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.pos-gallery-media, .gallery-card-media { position: relative; background: #0f172a; }
.pos-gallery-media > img, .gallery-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.pos-gallery-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.pos-gallery-body h4 { margin: 0; color: #1e293b; }
.pos-gallery-body p { margin: 0; color: #64748b; font-size: 0.9rem; }
.pos-gallery-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pos-gallery-date { color: #94a3b8; font-size: 0.78rem; }
.pos-gallery-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.pos-gallery-actions form { display: inline; }
.pos-gallery-by { color: #94a3b8; }

/* Before/after reveal slider */
.pos-gallery-beforeafter { position: relative; overflow: hidden; }
.pos-gallery-beforeafter > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pos-gallery-beforeclip {
    position: absolute;
    inset: 0;
    width: 100%;
    clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
}
.pos-gallery-beforeclip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pos-gallery-slider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    width: 100%;
    margin: 0;
    background: transparent;
}
.pos-gallery-ba-tag {
    position: absolute;
    top: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
}
.pos-gallery-ba-before { left: 10px; }
.pos-gallery-ba-after { right: 10px; }

/* Public gallery page */
.gallery-hero { text-align: center; padding: 40px 20px 10px; }
.gallery-hero h1 { margin-bottom: 8px; }
.gallery-hero p { color: #64748b; max-width: 640px; margin: 0 auto; }
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 20px 8px;
}
.gallery-filter-active { outline: 2px solid currentColor; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}
.gallery-card-body { padding: 16px 18px 20px; }
.gallery-card-body h3 { margin: 6px 0; }
.gallery-card-body p { margin: 0; color: #64748b; }
.gallery-card-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
}
.gallery-empty { text-align: center; color: #64748b; padding: 40px 0; }
.gallery-cta { text-align: center; padding: 34px 20px 10px; }

/* Hidden-by-JS blocks must win over the grid/block display rules above. */
.pos-gallery-form [hidden],
.pos-gallery-card [hidden] {
    display: none !important;
}

/* The combined before/after card has an unpredictable ratio, so show it whole. */
.pos-gallery-card[data-item-type="transformation"] .pos-gallery-media > img,
.gallery-card[data-type="transformation"] .gallery-card-media > img {
    object-fit: contain;
}
