/* ============================================
   Studio Raya — Universal Booking System
   Monochrome. Minimal. Professional.
   
   CUSTOMIZATION:
   - Change --accent to match client brand
   - Swap logo in assets/logo.png
   ============================================ */

:root {
    /* --- BRAND (change per client) --- */
    --accent: #605956;
    --accent-hover: #f5e1cc;
    --accent-text: #fff;

    /* --- MONOCHROME SCALE (do not change) --- */
    --bg: #fafafa;
    --bg-card: #fff;
    --bg-input: #fff;
    --border: #e0e0e0;
    --border-light: #ebebeb;
    --text: #111;
    --text-secondary: #555;
    --text-muted: #999;
    --success: #2a7d3f;
    --success-bg: #eef7f0;
    --error: #c03;
    --error-bg: #fef0f0;
    --warning: #b58a00;
    --warning-bg: #fdf8e8;
    --radius: 6px;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    font-size: 15px;
    min-height: 100vh;
}

::selection { background: var(--accent); color: var(--accent-text); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }

/* --- HEADER --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.header-back svg { width: 16px; height: 16px; }

.header-logo {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --- FOOTER --- */
.page-footer {
    padding: 32px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.15s;
}
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
}
.btn-primary:not(:disabled):hover { opacity: 0.85; }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* --- FORM ELEMENTS --- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text);
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group input::placeholder { color: var(--text-muted); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   WELCOME / LANDING PAGE
   ============================================ */
.welcome-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.welcome-container {
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.welcome-logo {
    margin-bottom: 20px;
}
.welcome-logo img {
    height: 80px;
    margin: 0 auto;
}
.welcome-logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.welcome-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}
.welcome-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.location-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 20px 24px;
    text-align: left;
}
.location-card.open { cursor: pointer; }
.location-card.open:hover { border-color: var(--accent); }
.location-card.closed { opacity: 0.5; }

.location-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.location-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
}
.location-icon svg { width: 20px; height: 20px; stroke: var(--text-secondary); }

.location-info { flex: 1; min-width: 0; }
.location-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
}
.location-note {
    font-size: 13px;
    color: var(--text-muted);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 3px;
}
.location-badge.open {
    background: var(--success-bg);
    color: var(--success);
}
.location-badge.closed {
    background: var(--bg);
    color: var(--text-muted);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.location-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
}
.location-arrow svg { width: 18px; height: 18px; }

/* ============================================
   THEMES PAGE
   ============================================ */
.themes-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.themes-hero {
    text-align: center;
    margin-bottom: 48px;
}
.themes-hero .section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.themes-hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
}
.themes-hero p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.theme-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    overflow: hidden;
}

.theme-card-image {
    aspect-ratio: 4/3;
    background: var(--bg);
    overflow: hidden;
}
.theme-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.theme-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg);
}

.theme-card-body { padding: 20px; }
.theme-card-number {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.theme-card-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}
.theme-card-price {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}
.theme-card-price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.theme-card-details {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}
.theme-card-details li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}
.theme-card-details li::before {
    content: '·';
    position: absolute;
    left: 0;
    font-weight: 700;
}
.theme-card-details li.note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}
.theme-card-details li.note::before { content: none; }

.theme-card .btn { width: 100%; }

/* Theme slider */
.theme-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.theme-slider-track {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
}
.theme-slider-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.theme-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.theme-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}
.theme-slider-btn svg { width: 16px; height: 16px; }
.theme-slider:hover .theme-slider-btn { opacity: 1; }
.theme-slider-prev { left: 8px; }
.theme-slider-next { right: 8px; }
.theme-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.theme-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.2s;
}
.theme-slider-dot.active { background: #fff; }

/* ============================================
   BOOKING PAGE
   ============================================ */
.booking-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.booking-theme-header {
    margin-bottom: 32px;
}
.booking-theme-header h1 {
    font-size: 24px;
    margin-bottom: 4px;
}
.theme-price-display {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Steps */
.booking-steps {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.step {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.step:last-child { border-right: none; }
.step.active { background: var(--bg-card); color: var(--text); }
.step.completed { background: var(--bg-card); color: var(--text-muted); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
}
.step.active .step-num { background: var(--accent); color: var(--accent-text); }
.step.completed .step-num { background: var(--success); color: #fff; }

/* Booking sections */
.booking-section { display: none; }
.booking-section.active { display: block; }

.booking-section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}
.booking-section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Date grid */
.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 32px;
}
.date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
}
.date-btn:hover { border-color: var(--text-muted); }
.date-btn.selected { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.date-btn .day-name { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.date-btn .day-num { font-size: 18px; font-weight: 600; line-height: 1.2; }
.date-btn .day-month { font-size: 11px; color: var(--text-muted); }
.date-btn.selected .day-name,
.date-btn.selected .day-month { color: var(--accent-text); opacity: 0.7; }

/* Time slots */
.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 32px;
}
.timeslot-btn {
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s;
}
.timeslot-btn:hover:not(:disabled) { border-color: var(--text-muted); }
.timeslot-btn.selected { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.timeslot-btn.unavailable {
    background: var(--bg);
    color: var(--text-muted);
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Pax */
.pax-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}
.pax-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.pax-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: none;
    font-size: 18px;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
}
.pax-value {
    width: 48px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pax-info { font-size: 13px; color: var(--text-muted); }

.pax-extra-note {
    font-size: 13px;
    color: var(--warning);
    margin-bottom: 24px;
    display: none;
}
.pax-extra-note.visible { display: block; }

/* Booking nav */
.booking-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Summary */
.booking-summary {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
    background: var(--bg-card);
}
.summary-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}
.summary-row .label { color: var(--text-secondary); }
.summary-row .value { font-weight: 500; text-align: right; }
.summary-divider { height: 1px; background: var(--border); margin: 12px 0; }
.summary-total .label { font-weight: 600; color: var(--text); }
.summary-total .value { font-size: 16px; font-weight: 600; }

/* Payment options */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}
.payment-option {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s;
}
.payment-option:hover { border-color: var(--text-muted); }
.payment-option.selected { border-color: var(--accent); }
.payment-option-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.payment-option-amount {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}
.payment-option-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   SUCCESS / ERROR PAGE
   ============================================ */
.result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.result-container {
    width: 100%;
    max-width: 480px;
    text-align: center;
}
.result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.result-icon.success { background: var(--success-bg); }
.result-icon.success svg { stroke: var(--success); }
.result-icon.error { background: var(--error-bg); }
.result-icon.error svg { stroke: var(--error); }
.result-icon svg { width: 24px; height: 24px; }

.result-container h1 { font-size: 24px; margin-bottom: 8px; }
.result-ref {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.result-details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
    background: var(--bg-card);
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
.loading-overlay.active { display: flex; }
.loader {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 13px; color: var(--text-muted); }

/* ============================================
   ADMIN
   ============================================ */
.admin-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}
.admin-title {
    font-size: 24px;
    margin-bottom: 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.stat-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.stat-value { font-size: 24px; font-weight: 600; }

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.admin-tab {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg);
    border: none;
    border-right: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
}
.admin-tab:last-child { border-right: none; }
.admin-tab.active { background: var(--bg-card); color: var(--text); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    white-space: nowrap;
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 3px;
}
.status-paid { background: var(--success-bg); color: var(--success); }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-failed, .status-cancelled { background: var(--error-bg); color: var(--error); }

/* Admin forms */
.admin-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.admin-form-row .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }
.admin-form-row .btn { height: 40px; white-space: nowrap; }

/* Date chips */
.date-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.date-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.remove-date {
    color: var(--error);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

/* Admin theme editor */
.theme-editor {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    background: var(--bg-card);
}
.theme-editor-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.theme-inactive { opacity: 0.55; }

/* Admin theme images */
.theme-images-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.theme-image-item {
    position: relative;
    width: 100px;
    height: 75px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.theme-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.theme-image-delete {
    position: absolute;
    top: 4px;
    right: 4px;
}
.theme-image-delete button {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-image-delete button:hover { background: var(--error); }

/* Admin login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.login-box {
    width: 100%;
    max-width: 360px;
}
.login-box h1 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}
.login-box p {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}
.login-error {
    font-size: 13px;
    color: var(--error);
    padding: 10px;
    background: var(--error-bg);
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-align: center;
}

/* ============================================
   PACKAGE CARDS (Booking Step 1)
   ============================================ */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.package-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.15s;
    text-align: center;
}
.package-card:hover { border-color: var(--text-muted); }
.package-card.selected { border-color: var(--accent); border-width: 2px; }

.package-card-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.package-card-pax {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.package-card-price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}
.package-card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
    text-align: left;
}
.package-card-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}
.package-card-features li::before {
    content: '*';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}
.package-card-duration {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   FRAME CARDS (Booking Step 2)
   ============================================ */
.frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.frame-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    overflow: hidden;
    transition: border-color 0.15s;
}
.frame-card.selected { border-color: var(--accent); border-width: 2px; }

.frame-card-image {
    aspect-ratio: 1;
    background: var(--bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.frame-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.frame-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-card-body { padding: 16px; text-align: center; }
.frame-card-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.frame-card-size { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.frame-card-price { font-size: 16px; font-weight: 600; margin-bottom: 10px; }

.frame-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.frame-qty-value {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.frame-qty-control .pax-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

/* ============================================
   ADMIN PACKAGE EDITOR
   ============================================ */
.package-editor {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    background: var(--bg);
}
.package-inactive { opacity: 0.5; }

/* ============================================
   BOOKING FILTERS (Admin)
   ============================================ */
.booking-filters {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.filter-form .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.filter-group {
    flex: 1;
    min-width: 140px;
}
.filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    font-family: inherit;
}
.filter-actions {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    padding-bottom: 1px;
}

/* WhatsApp Button */
.wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    transition: opacity 0.15s;
    margin-right: 6px;
    vertical-align: middle;
}
.wa-btn:hover { opacity: 0.8; }
.wa-btn svg { width: 16px; height: 16px; }

/* ============================================
   COUPON INPUT
   ============================================ */
.coupon-section {
    margin: 20px 0;
}
.coupon-input-group {
    display: flex;
    gap: 8px;
}
.coupon-input-group input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    letter-spacing: 0.5px;
}
.coupon-input-group input:focus {
    outline: none;
    border-color: var(--accent);
}
.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--success-bg, #f0fdf4);
    border: 1px solid var(--success, #22c55e);
    border-radius: var(--radius);
}
.coupon-applied-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.coupon-applied-code {
    font-weight: 700;
    color: var(--success, #22c55e);
    letter-spacing: 0.5px;
}
.coupon-applied-discount {
    color: var(--success, #22c55e);
    font-weight: 500;
}
.coupon-remove {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
    line-height: 1;
}
.coupon-remove:hover {
    color: var(--error);
}
.coupon-error {
    margin-top: 6px;
    font-size: 13px;
    color: var(--error);
}
.summary-discount .value {
    color: var(--success, #22c55e);
    font-weight: 600;
}
.summary-discount .label {
    color: var(--success, #22c55e);
}
.coupon-inactive-row {
    opacity: 0.5;
}

/* ============================================
   TERMS & CONDITIONS
   ============================================ */
.tnc-check {
    margin: 16px 0 8px;
}
.tnc-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}
.tnc-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.tnc-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}
.tnc-link:hover {
    opacity: 0.8;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text);
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.tnc-list {
    padding-left: 20px;
    margin: 0;
}
.tnc-list li {
    margin-bottom: 14px;
}
.tnc-list li strong {
    color: var(--text);
}

/* ============================================
   INFO / CONTACT SECTION
   ============================================ */
.info-section {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    background: var(--bg);
}
.info-container {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.info-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.info-item a {
    color: var(--text-secondary);
    text-decoration: none;
}
.info-item a:hover {
    color: var(--accent);
}
.info-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   BOOKING CARDS (Admin Dashboard)
   ============================================ */
.booking-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.booking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg);
}

.booking-card-ref {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: monospace;
    color: var(--text);
}

.booking-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.booking-card-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bck-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.bck-value {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.booking-card-customer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.bck-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.bck-phone {
    font-size: 12px;
    color: var(--text-secondary);
}

.bck-social {
    font-size: 12px;
    color: var(--text-muted);
}

.booking-card-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.addon-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-secondary);
}

.booking-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-light);
    background: var(--bg);
}

.booking-card-price {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.booking-card-price > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.booking-card-price strong {
    font-size: 13px;
    font-weight: 700;
}

.booking-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .payment-options { grid-template-columns: 1fr; }
    .booking-steps { font-size: 12px; }
    .step { padding: 10px 4px; gap: 4px; flex-direction: column; }
    .step-label { font-size: 11px; }
    .themes-grid { grid-template-columns: 1fr; }
    .packages-grid { grid-template-columns: 1fr; }
    .frames-grid { grid-template-columns: repeat(2, 1fr); }
    .date-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
    .timeslot-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
    .filter-form .filter-row { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .info-container { grid-template-columns: 1fr; gap: 32px; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-form-row { flex-direction: column; }
}

@media (max-width: 420px) {
    .step-label { display: none; }
    .step { padding: 10px 0; flex-direction: row; justify-content: center; }
    .step-num { width: 26px; height: 26px; font-size: 13px; }
}

/* ============================================
   BACKGROUND SHOWCASE (themes.php)
   ============================================ */
.bg-showcase {
    margin-bottom: 48px;
}
.bg-showcase-header {
    text-align: center;
    margin-bottom: 20px;
}
.bg-showcase-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}
.bg-showcase-header p {
    font-size: 13px;
    color: var(--text-secondary);
}
.bg-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.bg-showcase-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.bg-showcase-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg);
}
.bg-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.bg-showcase-card:hover .bg-showcase-image img {
    transform: scale(1.04);
}
.bg-showcase-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-card);
}
.bg-showcase-label {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
}

/* ============================================
   PACKAGES LANDING (themes.php)
   ============================================ */
.packages-landing {
    margin-bottom: 48px;
}
.packages-landing-header {
    text-align: center;
    margin-bottom: 20px;
}
.packages-landing-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}
.packages-landing-header p {
    font-size: 13px;
    color: var(--text-secondary);
}
.packages-landing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.pkg-landing-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pkg-landing-name {
    font-size: 17px;
    font-weight: 600;
}
.pkg-landing-price {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}
.pkg-price-rm {
    font-size: 16px;
    font-weight: 500;
    vertical-align: super;
    margin-right: 2px;
    color: var(--accent);
}
.pkg-landing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.pkg-landing-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}
.pkg-landing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    top: 1px;
}
.pkg-landing-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* ============================================
   BACKGROUND SELECTION (booking.php step 2)
   ============================================ */
.backgrounds-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.background-select-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--bg-card);
}
.background-select-card:hover:not(.disabled) {
    border-color: var(--text-muted);
}
.background-select-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.background-select-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.background-select-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg);
}
.background-select-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.background-select-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}
.background-select-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 8px;
}
.background-select-name {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}
.background-select-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

/* Responsive additions */
@media (max-width: 640px) {
    .packages-landing-grid { grid-template-columns: 1fr; }
    .bg-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .backgrounds-select-grid { grid-template-columns: repeat(2, 1fr); }
}
