/* ===============================
   THEME VARIABLES
================================ */

/* Dark mode (default) */
:root {
    --bg: #0f172a;
    --card-bg: #020617;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #facc15;
    --input-bg: #020617;
    --border: rgba(255,255,255,0.12);
}

/* Light mode */
[data-theme="light"] {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --accent: #f59e0b;
    --input-bg: #ffffff;
    --border: rgba(15,23,42,0.15);
}

/* =========================
   GLOBAL OFFSET FOR FIXED NAVBAR
   ========================= */

main {
    padding-top: 80px;
}

/* ===============================
  BRAND FONT
================================ */
.brand-font {
    font-family: 'Dela Gothic One', system-ui, sans-serif;
}


/* =========================
   STICKY FOOTER LAYOUT
   ========================= */

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===============================
   BASE STYLES
================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.2s ease, color 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* Tablet */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        margin: 64px auto;
        padding: 0 16px;
    }
}


.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

label {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

input {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
}

button {
    margin-top: 22px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: #020617;
    font-weight: 700;
    cursor: pointer;
}

.help {
    margin-top: 18px;
    font-size: 14px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
}

/* Show correct icon */
.icon-light { display: none; }

[data-theme="light"] .icon-light { display: inline; }
[data-theme="light"] .icon-dark { display: none; }

/* =========================
   PROFILE HEADER
   ========================= */

.profile-header {
    position: relative;
    color: #fff;
}

.profile-banner {
    height: 320px;
    background-size: cover;
    background-position: center;
    filter: blur(0);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* Header content */
.profile-header-content {
    position: relative;
    margin-top: -120px;
    text-align: center;
    padding: 0 16px 32px;
}

/* Avatar */
.profile-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.profile-avatar-glow {
    padding: 6px;
    border-radius: 50%;
    background: var(--accent-glow);
    box-shadow: 0 0 25px var(--accent-glow);
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
}

/* Text */
.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 8px 0;
}

.profile-tagline {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 16px;
}

/* CTA */
.btn-primary-accent {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--accent-primary);
    color: #000;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 24px;
}

/* 👇 FIXES START HERE */
.profile-cta-group {
    display: inline-flex;          /* prevents full-width stretch */
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
    margin-bottom: 32px;           /* separation from next section */
}

.btn-secondary {
    background: transparent;
    border: 1px solid currentColor;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.9;
}

.btn-secondary:hover {
    opacity: 1;
}

/* =========================
   ACCENT VARIABLES (TEMP)
   ========================= */

:root {
    --accent-primary: #1ee3cf; /* default teal */
    --accent-glow: rgba(30, 227, 207, 0.85);
}

/* Mobile tuning */
@media (max-width: 768px) {
    .profile-banner {
        height: 260px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.6rem;
    }
}

/* =========================
   AVAILABILITY SNAPSHOT
   ========================= */

.availability-snapshot {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .availability-snapshot {
    background: rgba(255,255,255,0.85);
}

.availability-label {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text);
}

.availability-slots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.availability-slot {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    color: var(--accent);
}

.availability-none {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 12px;
}

/* =========================
   ACCENT PRESETS (PHASE 2)
   ========================= */

/* Default (Teal) */
.accent-teal {
    --accent-primary: #1ee3cf;
    --accent-glow: rgba(30, 227, 207, 0.85);
}

/* Electric Blue */
.accent-blue {
    --accent-primary: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.85);
}

/* Emerald Green */
.accent-green {
    --accent-primary: #22c55e;
    --accent-glow: rgba(34, 197, 94, 0.85);
}

/* Amber Gold */
.accent-amber {
    --accent-primary: #facc15;
    --accent-glow: rgba(250, 204, 21, 0.85);
}

/* Soft Purple */
.accent-purple {
    --accent-primary: #a78bfa;
    --accent-glow: rgba(167, 139, 250, 0.85);
}

/* =========================
   ACCENT PRESET SELECTOR
   ========================= */

.accent-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.accent-preset-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.accent-preset-option:hover {
    transform: translateY(-2px);
}

.accent-preset-option input {
    display: none;
}

/* Ring preview */
.accent-preview-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    box-shadow: 0 0 16px var(--accent-glow);
}

.accent-preview-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--card-bg);
}

/* Label */
.accent-name {
    font-size: 0.85rem;
    color: var(--text);
}

/* Selected state */
.accent-preset-option input:checked + .accent-preview-ring {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* =========================
   FORM UTILITIES
   ========================= */

.form-success {
    color: var(--accent);
    margin-bottom: 16px;
}

.form-divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid var(--border);
}

select, textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
}

.secondary-button {
    margin-top: 16px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

/* =========================
   IMAGE PREVIEWS
   ========================= */

.profile-image-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.banner-image-preview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

/* =========================
   AVAILABILITY STATES
   ========================= */

.availability-snapshot {
    max-width: 420px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    text-align: center;
}

.availability-available {
    background: color-mix(in srgb, var(--accent-primary) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 40%, transparent);
}

.availability-unavailable {
    background: rgba(0,0,0,0.45);
    border: 1px solid var(--border);
}

[data-theme="light"] .availability-unavailable {
    background: rgba(255,255,255,0.85);
}

.availability-label {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text);
}

.availability-slots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.availability-slot {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
}

/* CTA inside availability */
.availability-cta {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
}

/* =========================
   LIMITED AVAILABILITY
   ========================= */

.availability-limited {
    background: color-mix(in srgb, var(--accent-primary) 8%, transparent);
    border: 1px solid var(--accent-primary);
}

.availability-limited .availability-label {
    color: var(--accent-primary);
    font-weight: 600;
}

/* =========================
   BOOKING PAGE
   ========================= */

.muted-text {
    color: var(--muted);
    font-size: 0.9rem;
}

.form-error {
    color: #ef4444;
    margin-top: 12px;
}

.date-picker-form {
    margin-bottom: 8px;
}

.slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slot-button {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
}

.slot-button:hover {
    border-color: var(--accent-primary);
}

.selected-slot {
    margin-top: 12px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* =========================
   SEARCH RESULTS
   ========================= */

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.search-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.availability-hint {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin: 8px 0;
}

.autocomplete-list {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 6px;
    width: 100%;
    z-index: 20;
    overflow: hidden;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
}

.autocomplete-item:hover {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
}

.profession-autocomplete {
    position: relative;
}

.profession-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface-2, #fff);
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 6px;
    z-index: 20;
    overflow: hidden;
}

.profession-suggestion {
    padding: 10px 14px;
    cursor: pointer;
}

.profession-suggestion:hover {
    background: rgba(0,0,0,0.06);
}


/* =========================
   NAVBAR (LOCKED, OPAQUE)
   ========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 65px;
    z-index: 9999;
    margin-bottom: 10;

    /* OPAQUE BACKGROUND */
    background: var(--bg);

    /* Subtle separation from content */
    border-bottom: 1px solid var(--border);

    /* Optional polish */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);

    pointer-events: auto;
}

.navbar-inner {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LEFT */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-logo {
    height: 48px;
    width: auto;
}

.navbar-title {
    font-family: 'Dela Gothic One', system-ui, sans-serif;
    font-size: 1.4rem;
    color: var(--text);
}

/* RIGHT */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.85;
}

.nav-link:hover {
    opacity: 1;
}


/* =========================
   THEME TOGGLE (INLINE)
   ========================= */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* =========================
   HOME (GOOGLE-STYLE)
   ========================= */

.home-hero {
    min-height: 30vh;

    padding-top: clamp(96px, 18vh, 220px);
    padding-bottom: 10vh;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.home-center {
    width: 100%;
    max-width: 560px;
}

.home-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 32px;
}

/* SEARCH */
.home-search {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-search select,
.home-search input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.95rem;
}

.home-search button {
    margin-top: 10px;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

/* PROFESSIONAL CTA */
.home-professional {
    margin-top: 36px;
    font-size: 0.9rem;
}

.home-professional-links {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.home-professional-links a {
    color: var(--accent);
    text-decoration: none;
}


/* =========================
   PAGE LAYOUT
   ========================= */

main {
    width: 100%;
    flex: 1;
}

/* =========================
   SEARCH PAGE (LAYOUT)
   ========================= */

.search-page {
    max-width: 1100px;
    margin: 72px auto;
    padding: 0 24px;
}

.search-header {
    margin-bottom: 32px;
}

.search-header h1 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.search-empty {
    margin-top: 48px;
}

.search-footer {
    margin-top: 40px;
}

/* =========================
   SEARCH MINI FORM
   ========================= */

.search-mini-form {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.search-mini-form select,
.search-mini-form input {
    height: 44px;
}

/* =========================
   AVAILABILITY BADGE
   ========================= */

.availability-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--accent);
    color: #000;
}

/* =========================
   PAGE LAYOUT (APP PAGES)
   ========================= */

.page {
    max-width: 960px;
    margin: 64px auto;
    padding: 0 20px;
}

/* Page header */
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.page-header .muted {
    font-size: 0.95rem;
    color: var(--muted);
}

.page-back {
    margin-top: 8px;
    font-size: 0.9rem;
}

/* =========================
   FORM LAYOUT
   ========================= */

.form-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.form-section h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

/* Divider spacing */
.form-divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

/* =========================
   INPUT GROUPS
   ========================= */

.form-layout label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-layout input,
.form-layout select,
.form-layout textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.95rem;
}

.form-layout textarea {
    resize: vertical;
    min-height: 100px;
}

/* Two-column rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* =========================
   CHECKBOX GRID
   ========================= */

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-option input {
    accent-color: var(--accent);
}

/* =========================
   BUTTONS
   ========================= */

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

button {
    padding: 14px 20px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.secondary-button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

/* =========================
   STATUS MESSAGES
   ========================= */

.form-success {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #22c55e;
}

/* =========================
   IMAGE PREVIEWS
   ========================= */

.profile-image-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.banner-image-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

/* =========================
   ACCENT PRESET GRID
   ========================= */

.accent-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.accent-preset-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.accent-preview-ring {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accent-preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}

/* Preset colors */
.accent-teal { color: #1ee3cf; }
.accent-blue { color: #3b82f6; }
.accent-green { color: #22c55e; }
.accent-amber { color: #f59e0b; }
.accent-purple { color: #a855f7; }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .page {
        margin-top: 40px;
    }
}

/* =========================
   BOOKING SLOTS
   ========================= */

.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slot-pill {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
}

.slot-pill:hover {
    border-color: var(--accent);
}

.slot-pill.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.selected-slot {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--accent);
}

/* Error block (shared) */
.form-error {
    border: 1px solid #ef4444;
    background: rgba(239,68,68,0.1);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.form-error ul {
    margin: 0;
    padding-left: 18px;
}

/* =========================
   AVAILABILITY EXCEPTIONS
   ========================= */

.exceptions-form {
    margin-top: 12px;
}

.exceptions-all-day {
    display: flex;
    align-items: flex-end;
}

.exceptions-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exception-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

[data-theme="light"] .exception-row {
    background: rgba(15,23,42,0.03);
}

.exception-date {
    font-weight: 600;
}

.exception-time {
    font-weight: 500;
    margin-left: 10px;
    color: var(--muted);
}

.exception-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    color: var(--text);
    opacity: 0.9;
}

.exception-reason {
    margin-top: 4px;
    font-size: 0.9rem;
}

.small-button {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-radius: 999px;
}

/* =========================
   BUTTON VARIANTS (ACCENT-LED)
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    border: none;
    text-decoration: none;

    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

/* PRIMARY – MoBook Yellow */
.btn-primary {
    background: var(--accent);
    color: #020617;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 90%, #000);
    transform: translateY(-1px);
}

/* SECONDARY – Yellow outline */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    transform: translateY(-1px);
}

/* GHOST – subtle text action */
.btn-ghost {
    background: transparent;
    color: var(--accent);
    padding: 6px 0;
}

.btn-ghost:hover {
    text-decoration: underline;
}

/* Button grouping */
.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    margin-top: 64px;
    padding: 48px 24px;

    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 32px;
    align-items: center;
}

/* Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 28px;
    width: auto;
}

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* Links */
.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

/* Meta */
.footer-meta {
    text-align: right;
}

.footer-meta p {
    margin: 0;
    font-size: 0.8rem;
}

.footer-muted {
    color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-meta {
        text-align: center;
    }
}

/* =========================
   AUTH PAGES
   ========================= */

.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 120px 20px 80px; /* distance from navbar + bottom air */
}

.auth-card {
    width: 100%;
    max-width: 420px; /* stops stretched inputs */
}

.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.auth-divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* ========================
   BACKGROUND TOOLS
   ======================== */
 .bg-tools {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.tool {
    position: absolute;
    color: var(--text);
    opacity: 0.06;
    animation: float 40s linear infinite;
}

.tool svg {
    width: 64px;
    height: 64px;
}

.tool-1 { top: 10%; left: 8%; animation-duration: 38s; }
.tool-2 { top: 25%; left: 70%; animation-duration: 42s; }
.tool-3 { top: 55%; left: 15%; animation-duration: 45s; }
.tool-4 { top: 70%; left: 80%; animation-duration: 36s; }
.tool-5 { top: 40%; left: 45%; animation-duration: 50s; }
.tool-6 { top: 15%; left: 50%; animation-duration: 44s; }
.tool-7 { top: 80%; left: 30%; animation-duration: 48s; }
.tool-8 { top: 60%; left: 65%; animation-duration: 41s; }

@keyframes float {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-120px);
    }
}

main {
    position: relative;
    z-index: 1;
}

/* ============================
   FAQ - HOW IT WORKS
   ============================*/
.faq-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ========================
   LEGAL 
   ========================*/
 .legal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legal-item {
    display: block;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.legal-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.legal-item h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
    color: var(--text);
}

.legal-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.legal-content h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.legal-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted);
}

.legal-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 16px;
}

/*==========================
  SERVICES
  ==========================*/
.profile-services {
    margin-top: 1.5rem;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.service-main {
    display: flex;
    flex-direction: column;
}

.service-duration {
    font-size: 0.85rem;
    opacity: 0.7;
}

.service-price {
    font-weight: 600;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.service-item:last-child {
    border-bottom: none;
}

.service-price {
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================
   TABLES (APP UI)
   ========================== */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

/* Header */
.table thead th {
    text-align: left;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Body cells */
.table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    vertical-align: middle;
}

/* Last row */
.table tbody tr:last-child td {
    border-bottom: none;
}

/* Hover */
.table tbody tr:hover {
    background: rgba(0,0,0,0.02);
}

/* Actions column */
.table td.actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Buttons (table size) */
.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Danger button */
.btn-danger {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.08);
}

/* Secondary button (already exists but reinforced) */
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.25);
    opacity: 0.9;
}

.btn-secondary:hover {
    opacity: 1;
}

/* ==========================
   RESPONSIVE TABLE WRAP
   ========================== */

.card {
    overflow-x: auto;
}

/* ==========================
   ERROR MESSAGE
   ========================== */
.form-error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-error-box {
    background: #fdecea;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* ============================================================
   BOOKING CALENDAR
============================================================ */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

/* Tablet */
@media (min-width: 640px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.calendar-day {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.calendar-day:hover {
    transform: translateY(-2px);
}

/* Date text */
.calendar-date {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* Status text */
.calendar-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ======================
   STATES
====================== */

/* AVAILABLE */
.calendar-day.available {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* LIMITED */
.calendar-day.limited {
    border-color: #f59e0b;
    background: color-mix(in srgb, #f59e0b 10%, transparent);
}

.calendar-day.limited .calendar-status {
    color: #f59e0b;
    font-weight: 600;
}

/* FULLY BOOKED */
.calendar-day.fully-booked {
    opacity: 0.45;
    cursor: default;
}

.calendar-day.fully-booked:hover {
    transform: none;
}

/* ACTIVE (Selected Day) */
.calendar-day.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 28px var(--accent-glow);
    transform: translateY(-2px);
}

/* ============================================================
   SLOT PILLS
============================================================ */

.slots-grid,
.slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.slot-pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.85rem;
}

.slot-pill:hover {
    border-color: var(--accent-primary);
}

/* Selected slot */
.slot-pill.active {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

/* Selected time text */
.selected-slot {
    margin-top: 12px;
    font-weight: 600;
    color: var(--accent-primary);
}