:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --secondary: #7c3aed;
    --secondary-soft: #ede9fe;
    --accent: #f59e0b;
    --accent-soft: #fde68a;
    --success: #10b981;
    --success-soft: #d1fae5;
    --danger: #ef4444;
    --danger-soft: #fee2e2;
    --pink: #ec4899;
    --dark: #111827;
    --text: #1f2937;
    --muted: #6b7280;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --surface-soft: #f8fafc;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 18px 45px rgba(37, 99, 235, 0.14);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --premium-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 42%, #7c3aed 100%);
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin-top: 90px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 42%, #f5f3ff 70%, #fffaf0 100%);
    color: var(--text);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.site-messages {
    position: fixed;
    top: 96px;
    left: 50%;
    z-index: 2000;
    width: min(680px, calc(100% - 32px));
    margin: 0;
    transform: translateX(-50%);
}

.site-messages .alert {
    margin-bottom: 10px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

img {
    max-width: 100%;
}

.site-brand-logo {
    width: 135px;
    height: 34px;
}

.salon-breadcrumb {
    --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E");
}

.about-service-image {
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
}

.about-service-placeholder {
    height: 400px;
}

.about-service-salon-image,
.salon-service-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.booking-history-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.customer-dashboard-select-column {
    width: 36px;
}

.customer-booking-page {
    max-width: 760px;
}

.customer-action-box {
    display: none;
    padding: 15px;
    border: 2px solid #dc3545;
    border-radius: 8px;
    background-color: #fff;
}

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

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

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    transition: color 0.25s ease, transform 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 800;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -8px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
}

.mobile-secondary-navbar a.active {
    color: var(--primary) !important;
    font-weight: 800;
    border-bottom: 3px solid var(--primary);
}

.nav-link.active,
.mobile-secondary-navbar a.active {
    box-shadow: none;
}

.custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(240,247,255,0.96) 100%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.09);
    transition: transform 0.25s ease;
}

.custom-navbar.navbar-hidden {
    transform: translateY(-100%);
}

.custom-navbar .navbar-brand img {
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.18));
}

.btn {
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}

.custom-navbar .btn {
    white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.btn-primary,
.btn-success,
.btn-warning,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-danger,
.btn-info {
    border: none;
}

.btn-primary {
    background: var(--premium-gradient);
    color: #fff;
    font-weight: 700;
}

.btn-success {
    background: var(--success-gradient);
    color: #fff;
    font-weight: 700;
}

.btn-warning {
    background: var(--gold-gradient);
    color: var(--dark);
    font-weight: 700;
}

.btn-info {
    background: linear-gradient(135deg, #38bdf8 0%, #4f46e5 100%);
    color: #fff;
    font-weight: 700;
}

.btn-outline-primary {
    background: rgba(37, 99, 235, 0.04);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.btn-outline-success {
    background: rgba(16, 185, 129, 0.04);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.btn-outline-warning {
    background: rgba(245, 158, 11, 0.04);
    color: #a16207;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.btn-outline-danger {
    background: rgba(239, 68, 68, 0.04);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.push-notification-control {
    position: fixed !important;
    left: 22px;
    bottom: 24px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px 8px 13px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.18);
    backdrop-filter: blur(12px);
}

.push-notification-label {
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.push-notification-label i {
    margin-right: 4px;
    color: var(--accent);
}

.push-notification-control button {
    padding: 0.34rem 0.72rem;
    border-color: rgba(37, 99, 235, 0.32);
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 700;
}

.profile-nav-link {
    display: none;
}

.mobile-profile-button {
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: var(--surface-strong);
    color: var(--primary);
    font-size: 1.55rem;
    line-height: 1;
    text-decoration: none;
    overflow: hidden;
}

.mobile-profile-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.responsive-navbar-toggler {
    display: none;
    border: 1px solid var(--border);
    color: var(--dark);
    font-size: 1.35rem;
}

.mobile-secondary-navbar {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

.mobile-navbar-search {
    display: none;
}

:root {
    --snipalert-gold: #D4AF37;
    --snipalert-gold-dark: #9a7818;
    --snipalert-ivory: #FDFCF0;
    --snipalert-black: #1A1A1A;
    --snipalert-card: #FFFFFF;
}

.desktop-navbar-search {
    display: flex;
    align-items: center;
    width: min(360px, 30vw);
    min-width: 220px;
    margin: 0 1rem 0 auto;
    padding: 0.25rem 0.35rem 0.25rem 0.9rem;
    border: 1px solid rgba(26, 26, 26, 0.16);
    border-radius: 999px;
    background: var(--snipalert-card);
    box-shadow: 0 8px 22px rgba(26, 26, 26, 0.06);
}

.desktop-navbar-search > i {
    color: var(--snipalert-gold-dark);
}

.desktop-navbar-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0.55rem 0.65rem;
    color: var(--snipalert-black);
    background: transparent;
}

.desktop-navbar-search input::placeholder {
    color: #737373;
}

.desktop-navbar-search button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--snipalert-black);
    background: var(--snipalert-gold);
}

.footer-info-grid {
    display: none;
}

.footer-info-layout {
    display: block;
    gap: 0;
    max-width: 980px;
    margin: 30px auto 0;
    overflow: hidden;
    border: 1px solid rgba(32, 38, 49, 0.16);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(32, 38, 49, 0.12);
}

.footer-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(32, 38, 49, 0.12);
    background: #fff;
}

.footer-info-header i {
    color: var(--primary);
    font-size: 1.45rem;
}

.footer-info-header h1 {
    margin: 0;
    color: #202631;
    font-size: 1.35rem;
    font-weight: 800;
}

.footer-info-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.footer-content-page {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-content-page .all-salons-heading {
    margin: 0;
    padding: 24px 16px 18px;
}

.footer-content-page .footer-info-layout {
    width: 100%;
    max-width: none;
    margin: 50px 0 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.footer-info-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 0;
    background: #202631;
}

.footer-info-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-info-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-info-tab i {
    color: #f4b6c4;
    font-size: 1.2rem;
}

.footer-info-tab:hover,
.footer-info-tab.active {
    background: var(--primary);
    color: #fff;
    border-left-color: #ffd166;
    transform: none;
}

.footer-info-tab.active i {
    color: #fff;
}

.footer-info-child-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px 14px 12px 51px;
}

.footer-info-child-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    line-height: 1.35;
    text-decoration: none;
}

.footer-info-child-links a:hover {
    color: #fff;
}

.footer-info-panel {
    min-height: 360px;
    padding: 36px;
    background: rgba(255, 255, 255, 0.88);
}

.footer-info-content {
    display: none;
}

.footer-info-content.active {
    display: block;
}

.footer-info-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(194, 65, 93, 0.1);
    color: var(--primary);
    font-size: 1.35rem;
}

.footer-founder-photo {
    display: block;
    width: 112px;
    height: 112px;
    margin-bottom: 16px;
    border: 4px solid rgba(194, 65, 93, 0.14);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(71, 50, 42, 0.14);
}

.footer-info-content h2 {
    margin: 18px 0 8px;
    color: #202631;
    font-size: 1.5rem;
}

.footer-info-content p {
    max-width: 560px;
    margin: 0 0 10px;
    color: #596273;
    line-height: 1.6;
}

.footer-info-panel-detail {
    margin-top: 20px;
    color: #596273;
    font-weight: 600;
}

.footer-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 20px;
}

.footer-info-links a {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .footer-info-layout {
        margin-top: 50px;
    }

    .footer-info-body {
        grid-template-columns: 155px minmax(0, 1fr);
    }

    .footer-info-tabs {
        display: flex;
    }

    .footer-info-group {
        min-width: 0;
    }

    .footer-info-child-links {
        padding: 4px 8px 10px 34px;
        text-align: left;
    }

    .footer-info-tab {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 10px 4px;
        font-size: 0.72rem;
        text-align: center;
    }

    .footer-info-tab i {
        font-size: 1.05rem;
    }

    .footer-info-tab:hover,
    .footer-info-tab.active {
        transform: none;
    }

    .footer-info-panel {
        min-height: 300px;
        padding: 22px 16px;
    }

    .footer-info-header {
        min-height: 58px;
        padding: 13px 16px;
    }

    .footer-info-header h1 {
        font-size: 1rem;
    }

    .footer-info-tab {
        gap: 8px;
        padding: 12px 8px;
        font-size: 0.75rem;
    }

    .footer-info-tab i {
        font-size: 1rem;
    }
    .footer-content-page {
        padding-top: 112px !important;
    }

    .footer-content-page .footer-info-layout {
        margin-top: 0;
    }

    .footer-info-header h1 {
        color: #202631 !important;
        text-shadow: none;
    }
}

/* Responsive safeguards: keep existing colors and layout hierarchy intact. */
*, *::before, *::after {
    box-sizing: border-box;
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

button,
.btn,
input,
select,
textarea {
    max-width: 100%;
}

.btn {
    white-space: normal;
    overflow-wrap: anywhere;
}

.custom-navbar {
    max-width: 100%;
}

.custom-navbar .navbar-brand,
.custom-navbar .navbar-collapse,
.custom-navbar .navbar-nav {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .custom-navbar {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .custom-navbar .navbar-nav {
        width: 100%;
        padding: .5rem 0;
    }

    .custom-navbar .navbar-nav .nav-item {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .custom-navbar .navbar-nav .nav-link,
    .custom-navbar .navbar-nav .btn {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
    }

    .custom-navbar .navbar-nav .btn {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .site-brand-logo {
        width: min(135px, 42vw);
        height: auto;
    }

    .container,
    .container-fluid {
        --bs-gutter-x: 1rem;
    }

    .modal-dialog {
        margin: .75rem;
    }

    .modal-content {
        max-width: 100%;
    }

    .btn {
        min-height: 40px;
    }
}

.footer-info-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(194, 65, 93, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 26px rgba(71, 50, 42, 0.08);
}

.footer-info-card > i {
    color: var(--primary);
    font-size: 1.5rem;
}

.footer-info-card h2 {
    margin: 2px 0 4px;
    color: #202631;
    font-size: 1.05rem;
}

.footer-info-card p {
    margin: 0;
    color: #596273;
    font-size: 0.9rem;
}

.footer-info-card a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

/* TODO: Use @media (max-width: 768px) temporarily when testing the PWA UI in responsive mode. */
@media (display-mode: standalone) {
    .app-install-button,
    .mobile-app-install-button {
        display: none !important;
    }

    .site-footer {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        align-items: stretch;
        justify-content: space-around;
        height: 70px;
        padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
        background: linear-gradient(135deg, #1A1A1A 0%, #292315 58%, #9a7818 160%) !important;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.2);
    }

    .mobile-bottom-nav.navbar-hidden {
        transform: translateY(100%);
        transition: transform 0.25s ease;
    }

    .mobile-bottom-nav a {
        display: flex;
        min-width: 58px;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 3px 2px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .mobile-bottom-nav a i {
        font-size: 1.2rem;
        line-height: 1;
    }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a:focus-visible {
        color: #fff;
    }

    .mobile-bottom-nav a.active {
        background: rgba(255, 255, 255, 0.16);
    }

    .mobile-bottom-nav a.active i {
        color: #ffd166;
    }
}

@media (max-width: 991.98px) {
    body {
        margin-top: 142px;
    }

    .custom-navbar {
        min-height: 64px;
        padding: 0 16px !important;
    }

    .custom-navbar .container-fluid {
        min-height: 64px;
    }

    .custom-navbar .navbar-collapse {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        width: min(300px, calc(100vw - 24px));
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    }

    .custom-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 4px;
    }

    .custom-navbar .navbar-nav .nav-item {
        margin: 0 !important;
    }

    .custom-navbar .navbar-nav .nav-link,
    .custom-navbar .navbar-nav .btn {
        display: block;
        width: 100%;
        text-align: left;
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .responsive-navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .mobile-secondary-navbar {
        position: fixed;
        top: 64px;
        left: 0;
        z-index: 999;
        display: flex;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 10px;
        background: rgba(255, 255, 255, 0.97);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

    .mobile-secondary-navbar a,
    .mobile-secondary-navbar .mobile-app-install-button {
        display: block;
        padding: 12px 10px 10px;
        color: #334155;
        text-decoration: none;
        white-space: nowrap;
        font-size: 0.82rem;
        font-weight: 600;
    }

    .mobile-secondary-navbar .mobile-app-install-button {
        border: 0;
        background: transparent;
        cursor: pointer;
    }
}

@media (min-width: 992px) {
    .custom-navbar .navbar-brand {
        display: inline-flex;
        align-items: center;
        flex: 0 0 135px;
        width: 135px;
        margin-right: 1rem;
    }

    .custom-navbar .navbar-brand img {
        display: block;
        width: 135px !important;
        height: 40px !important;
    }

    .custom-navbar .navbar-nav {
        gap: 2px;
    }

    .custom-navbar .navbar-nav .nav-item {
        margin-left: 3px !important;
        margin-right: 3px !important;
    }

    .custom-navbar .navbar-nav .pwa-install-nav-link {
        display: inline-flex;
        align-items: center;
        padding-right: 0.35rem;
        padding-left: 0.35rem;
        white-space: nowrap;
        font-size: 0.76rem;
    }

    .custom-navbar .navbar-nav .btn {
        padding: 8px 11px;
        font-size: 0.78rem;
        line-height: 1.15;
    }
}

.alert {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.alert-success {
    background: #ecfdf5;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.alert_box {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.profile,
.static-profile {
    position: fixed;
    height: 92px;
    width: 92px;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
    object-fit: cover;
    background: var(--surface-strong);
}

.form-control,
.form-select,
textarea {
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 14px;
    padding: 0.8rem 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.modal-content {
    border: none;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.12));
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.card-header {
    background: var(--premium-gradient) !important;
    color: white !important;
    border-bottom: none !important;
}

.list-group-item {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.7);
}

.breadcrumb {
    --bs-breadcrumb-divider-color: rgba(37, 99, 235, 0.7);
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb-item.active {
    color: #374151;
    font-weight: 700;
}

.site-footer {
    background: #1A1A1A;
    color: #e5e7eb;
    padding: 44px 0 24px;
    margin-top: 50px;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: #cbd5e1;
    font-size: 14px;
}

.site-footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-top {
    padding: 22px 15px;
}

.site-footer .footer-col {
    margin-bottom: 18px;
}

.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

.site-footer .footer-logo img {
    width: 150px;
    height: auto;
}

.site-footer .footer-brand-copy {
    max-width: 300px;
    margin-bottom: 16px;
    line-height: 1.65;
}

.site-footer .footer-trust-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 600;
}

.site-footer .footer-trust-note i {
    color: #60a5fa;
    font-size: 16px;
}

.site-footer .footer-col .list-unstyled {
    display: grid;
    gap: 9px;
    margin: 0;
}

.site-footer .footer-col .list-unstyled a {
    display: inline-flex;
    align-items: center;
}

.site-footer .footer-col .list-unstyled a:hover {
    transform: translateX(3px);
}

.site-footer .footer-founder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.site-footer .founder-photo {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    object-fit: cover;
    object-position: center 28%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.site-footer .founder-role {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.site-footer .founder-name {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.site-footer .footer-founder p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.site-footer .footer-follow-title {
    margin-top: 2px;
}

.site-footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.site-footer .social-icons a i {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.site-footer .social-icons a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary), var(--purple));
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 12px;
    font-size: 14px;
}

.site-footer .footer-bottom p {
    margin: 0;
}

.site-footer .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.site-footer .footer-legal-links a {
    font-size: 13px;
}

.service-page-heading {
    position: relative;
    display: grid;
    min-height: 300px;
    place-content: center;
    overflow: hidden;
    padding: 76px 24px;
    color: #fff;
    text-align: center;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 12%, rgba(96, 165, 250, 0.2), transparent 26%),
        radial-gradient(circle at 88% 84%, rgba(167, 139, 250, 0.24), transparent 30%),
        linear-gradient(125deg, #0f172a 0%, #172554 48%, #312e81 100%);
}

.service-page-heading::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 28px 28px, 56px 56px;
    content: "";
}

.service-page-heading span {
    margin-bottom: 12px;
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.38em;
    text-transform: uppercase;
}

.service-page-heading h1 {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5.4vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    text-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.removal-page {
    display: grid;
    min-height: 60vh;
    place-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.removal-card {
    width: min(100%, 580px);
    padding: 38px;
    text-align: center;
    border: 1px solid #fecaca;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(127, 29, 29, 0.1);
}

.removal-icon {
    margin-right: auto;
    margin-left: auto;
    color: #b91c1c;
    background: #fef2f2;
}

.removal-card h1 {
    color: #7f1d1d;
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    font-weight: 800;
}

.removal-card > p {
    color: #64748b;
    line-height: 1.65;
}

.removal-form {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.removal-form label {
    color: #334155;
    font-weight: 600;
    text-align: left;
}

.removal-form input[type='text'] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.2em;
}

.removal-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.legal-hero {
    padding: 70px 24px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 15% 10%, rgba(96, 165, 250, 0.2), transparent 27%),
        radial-gradient(circle at 85% 90%, rgba(167, 139, 250, 0.26), transparent 30%),
        linear-gradient(125deg, #0f172a 0%, #172554 48%, #312e81 100%);
}

.legal-hero span {
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 10px 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 5vw, 4rem);
}

.legal-hero p {
    margin: 0;
    color: #dbeafe;
}

.legal-content {
    max-width: 900px;
    padding-top: 56px;
    padding-bottom: 70px;
}

.legal-intro {
    margin-bottom: 28px;
    padding: 22px 24px;
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    color: #334155;
    line-height: 1.75;
    background: #eff6ff;
}

.legal-content section {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}

.legal-content h2 {
    margin-bottom: 12px;
    color: #172554;
    font-size: 1.2rem;
    font-weight: 800;
}

.legal-content p {
    margin-bottom: 0;
    color: #475569;
    line-height: 1.75;
}

.legal-content p + p {
    margin-top: 12px;
}

.legal-content a {
    color: var(--primary);
    font-weight: 700;
}

.legal-consent {
    color: #475569;
    font-size: 0.83rem;
    line-height: 1.45;
}

.legal-consent .form-check-input {
    margin-top: 0.22rem;
}

.legal-consent a {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 576px) {
}

/* Chatbot Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 16px 35px rgba(245, 158, 11, 0.24), 0 0 20px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 16px 35px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.6);
    }
}

@keyframes float-bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

 .chatbot-fab {
    position: fixed;
    right: 20px;
    bottom: 120px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer;
    z-index: 1100;
    border: none;
    font-size: 28px;
    animation: float-bounce 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
}

.chatbot-icon-text {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chatbot-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.chatbot-fab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.5s ease;
}

.chatbot-fab:hover {
    transform: scale(1.15) translateY(-2px);
}

.chatbot-fab:hover::before {
    left: 100%;
}

.chatbot-panel {
    position: fixed;
    right: 20px;
    bottom: 190px;
    width: min(92vw, 360px);
    background: var(--surface-strong);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 0 30px rgba(245, 158, 11, 0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1100;
    border: 2px solid var(--accent);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-panel.open {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.1));
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.chatbot-header h6 {
    margin: 0;
    font-weight: 700;
    color: var(--dark);
}

.chatbot-header small {
    color: var(--muted);
}

.chatbot-close {
    border: none;
    background: transparent;
    font-size: 22px;
    color: var(--dark);
    cursor: pointer;
}

.chatbot-messages {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.message {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.message.user {
    align-self: flex-end;
    background: var(--gold-gradient);
    color: #fff;
    border-radius: 18px 4px 18px 18px;
    animation: slideInRight 0.3s ease-out;
}

.message.bot {
    align-self: flex-start;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: var(--dark);
    border-radius: 4px 18px 18px 18px;
    animation: slideInLeft 0.3s ease-out;
}

.chatbot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 12px;
}

.quick-action {
    border: 2px solid var(--accent);
    background: #fff;
    color: var(--accent);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quick-action:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.chatbot-form {
    display: flex;
    border-top: 2px solid rgba(245, 158, 11, 0.2);
    padding: 10px;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), rgba(245, 158, 11, 0.05));
}

.chatbot-form input {
    flex: 1;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chatbot-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.chatbot-form button {
    border: none;
    background: var(--gold-gradient);
    color: #fff;
    width: 42px;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 576px) {
    body {
        margin-top: 0;
        padding-top: 104px;
    }

    .site-messages {
        top: 118px;
        width: calc(100% - 24px);
    }

    .custom-navbar {
        min-height: 56px;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08) !important;
    }

    .custom-navbar .container-fluid {
        min-height: 56px;
        padding: 0;
    }

    .custom-navbar .navbar-collapse {
        top: calc(100% + 6px);
        right: 10px;
        width: min(280px, calc(100vw - 20px));
    }
    .mobile-secondary-navbar {
        display: none;
    }

    .chatbot-panel {
        right: 10px;
        left: 10px;
        bottom: 110px;
        width: auto;
    }

    .chatbot-fab {
        right: 14px;
        bottom: 24px;
        width: 58px;
        height: 58px;
    }


    .custom-navbar .navbar-brand {
        margin: 0;
        color: var(--dark);
        font-size: 1.15rem;
        font-weight: 700;
    }

    .profile-nav-link,
    .profile-nav-link:hover {
        display: flex;
        padding: 0;
        color: var(--primary);
        text-decoration: none;
        margin-left: auto;
        margin-right: 14px;
        flex: 0 0 auto;
    }

    .mobile-secondary-navbar {
        position: fixed;
        top: 56px;
        left: 0;
        z-index: 999;
        display: flex;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 8px;
        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
        transition: none;
        will-change: transform;
    }

    .mobile-secondary-navbar.navbar-hidden {
        transform: translateY(-100%) !important;
        transition: transform 0.25s ease;
    }

    .mobile-secondary-navbar a {
        display: block;
        padding: 12px 10px 10px;
        color: #334155;
        text-decoration: none;
        white-space: nowrap;
        font-size: 0.82rem;
        font-weight: 600;
    }

    .mobile-secondary-navbar a:first-child {
        color: var(--primary);
        border-bottom: 2px solid var(--primary);
    }

    .mobile-secondary-navbar {
        display: none;
    }

    .push-notification-control {
        left: 12px !important;
        bottom: 12px !important;
        transform: scale(0.72);
        transform-origin: bottom left;
    }

    .push-notification-label {
        font-size: 0.7rem;
    }

    .site-footer .row {
        gap: 12px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .footer-legal-links {
        justify-content: flex-start;
        gap: 10px 14px;
    }

    .navbar-nav {
        gap: 10px !important;
        background-color: transparent !important;
    }

    .nav-link {
        background: none !important;
    }
}

@media (max-width: 991.98px) {
    /* The profile icon is the mobile account entry point; hide the duplicate
       hamburger control and keep the profile icon at the far right. */
    .responsive-navbar-toggler {
        display: none;
    }

    .profile-nav-link,
    .profile-nav-link:hover {
        display: block;
        margin-left: auto;
    }
}

/* Final visual overrides for the shared salon experience */
:root {
    --primary: #c2415d;
    --primary-dark: #92243f;
    --secondary: #0f766e;
    --accent: #d28b27;
    --dark: #202631;
    --text: #303844;
    --muted: #6d7580;
    --surface: rgba(255, 253, 249, 0.94);
    --surface-strong: #fffdfa;
    --border: rgba(32, 38, 49, 0.12);
    --shadow: 0 20px 55px rgba(71, 50, 42, 0.14);
    --shadow-soft: 0 10px 28px rgba(71, 50, 42, 0.09);
    --premium-gradient: linear-gradient(135deg, #c2415d 0%, #a83252 100%);
    --gold-gradient: linear-gradient(135deg, #e7ac3c 0%, #c98220 100%);
    --success-gradient: linear-gradient(135deg, #16805d 0%, #0f766e 100%);
}

body {
    background:
        radial-gradient(circle at 8% 8%, rgba(210, 139, 39, 0.11), transparent 24rem),
        radial-gradient(circle at 92% 30%, rgba(194, 65, 93, 0.08), transparent 28rem),
        #f6f2ec;
    color: var(--text);
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.custom-navbar {
    background: rgba(255, 253, 249, 0.92);
    border-color: rgba(32, 38, 49, 0.1) !important;
    box-shadow: 0 10px 32px rgba(71, 50, 42, 0.12);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link.active::after,
.mobile-secondary-navbar a.active {
    background: var(--primary);
    border-color: var(--primary);
}

.mobile-secondary-navbar a.active {
    color: #fff !important;
    border-radius: 8px 8px 0 0;
}

@media (max-width: 576px) {
    .mobile-secondary-navbar a:first-child {
        color: #334155;
        border-bottom: 0;
    }

    .mobile-secondary-navbar a:first-child.active {
        color: #fff !important;
        border-bottom: 0;
    }
}

.btn {
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary { background: var(--premium-gradient); }
.btn-success { background: var(--success-gradient); }
.btn-warning { background: var(--gold-gradient); }
.btn-info { background: linear-gradient(135deg, #2a9d9a, #187b80); }

.card,
.hero-card,
.feedback-section,
.owner-feedback-panel,
.salon-booking-panel {
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-soft);
}

.card:hover,
.salon-card:hover {
    box-shadow: var(--shadow);
}

.card-header { background: var(--premium-gradient) !important; }

.form-control,
.form-select,
textarea {
    border-color: rgba(32, 38, 49, 0.18);
    background: rgba(255, 253, 249, 0.9);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(194, 65, 93, 0.15);
}

.site-footer { background: #1A1A1A; }

.hero-card,
.service-page-heading,
.salon-public-page,
.wallet-dashboard {
    animation: page-reveal 0.65s ease both;
}

@keyframes page-reveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Form system shared by account, salon, booking, and payment screens */
form:not(.chatbot-form) {
    color: var(--text);
}

form:not(.chatbot-form) .form-label,
form:not(.chatbot-form) .label-control {
    display: block;
    margin-bottom: 0.42rem;
    color: var(--dark);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

form:not(.chatbot-form) .form-text,
form:not(.chatbot-form) .form-check-label {
    color: var(--muted);
}

form:not(.chatbot-form) .form-control,
form:not(.chatbot-form) .form-select,
form:not(.chatbot-form) textarea {
    min-height: 48px;
    border: 1px solid rgba(32, 38, 49, 0.16);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.94);
    color: var(--dark);
    box-shadow: inset 0 1px 1px rgba(71, 50, 42, 0.03);
}

form:not(.chatbot-form) textarea {
    min-height: 100px;
}

form:not(.chatbot-form) .form-control::placeholder,
form:not(.chatbot-form) textarea::placeholder {
    color: #9b968f;
}

form:not(.chatbot-form) .form-control:focus,
form:not(.chatbot-form) .form-select:focus,
form:not(.chatbot-form) textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(194, 65, 93, 0.12), 0 8px 20px rgba(71, 50, 42, 0.06);
}

form:not(.chatbot-form) input[type="file"] {
    padding: 0.55rem 0.7rem;
}

form:not(.chatbot-form) input[type="file"]::file-selector-button {
    margin-right: 0.7rem;
    border: 0;
    border-radius: 8px;
    padding: 0.48rem 0.7rem;
    background: var(--primary-soft, #fde8ed);
    color: var(--primary-dark);
    font-weight: 700;
}

form:not(.chatbot-form) .form-check-input {
    border-color: rgba(32, 38, 49, 0.28);
}

form:not(.chatbot-form) .form-check-input:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

form:not(.chatbot-form) .form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(194, 65, 93, 0.12);
}

form:not(.chatbot-form) .btn[type="submit"] {
    box-shadow: 0 8px 18px rgba(71, 50, 42, 0.12);
}

.modal-body form:not(.chatbot-form) {
    display: grid;
    gap: 0.35rem;
}

.modal-body form:not(.chatbot-form) .mb-2,
.modal-body form:not(.chatbot-form) .mb-3 {
    margin-bottom: 0.8rem !important;
}

@media (max-width: 575.98px) {
    form:not(.chatbot-form) .form-control,
    form:not(.chatbot-form) .form-select,
    form:not(.chatbot-form) textarea {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .custom-navbar .container-fluid {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
    }

    .custom-navbar .navbar-brand {
        flex: 0 0 auto;
    }

    .custom-navbar .navbar-brand img {
        width: 100px !important;
        height: auto !important;
    }

    .mobile-navbar-search {
        position: relative;
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        min-width: 0;
        max-width: none;
        margin: 0 6px;
    }

    .mobile-navbar-search > i {
        position: absolute;
        left: 12px;
        color: var(--primary);
        pointer-events: none;
    }

    .mobile-navbar-search input {
        width: 100%;
        min-width: 0;
        padding: 8px 38px 8px 32px;
        border: 1px solid rgba(37, 99, 235, 0.2);
        border-radius: 999px;
        background: rgba(248, 250, 252, 0.95);
        font-size: 0.8rem;
    }

    .mobile-navbar-search button {
        display: inline-flex;
        position: absolute;
        right: 4px;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-size: 0.75rem;
    }

    .mobile-navbar-search button i {
        position: static;
        color: inherit;
        font-size: inherit;
    }

    .mobile-navbar-search input:focus {
        outline: 2px solid rgba(37, 99, 235, 0.2);
        border-color: var(--primary);
    }

    .footer-toggle-button,
    .footer-toggle-button:hover,
    .footer-toggle-button:focus-visible {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin: 0;
        border: 1px solid var(--primary);
        border-radius: 10px;
        background: transparent;
        color: var(--primary);
        font-size: 1.3rem;
    }
}

/* Horizontal mobile tabs hide on downward scroll and return on upward scroll. */
@media (max-width: 991.98px) {
    .mobile-secondary-navbar {
        display: flex;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .responsive-navbar-toggler {
        display: none;
    }

    .profile-nav-link,
    .profile-nav-link:hover {
        display: block;
        margin-left: auto;
    }
}

/* Keep the account entry visible only in the phone navbar. */
@media (max-width: 767.98px) {
    .mobile-profile-button,
    .mobile-profile-button:hover,
    .mobile-profile-button:focus {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-left: auto;
        margin-right: 14px;
        border: 2px solid var(--primary) !important;
        border-radius: 50%;
        background: var(--surface-strong) !important;
        color: var(--primary) !important;
        flex: 0 0 auto;
        visibility: visible;
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .mobile-profile-button {
        display: none !important;
    }
}

/* Show the profile control in the desktop navbar, but keep it off phones. */
@media (max-width: 991.98px) {
    .mobile-profile-button,
    .mobile-profile-button:hover,
    .mobile-profile-button:focus {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-profile-button,
    .mobile-profile-button:hover,
    .mobile-profile-button:focus {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .desktop-navbar-search {
        width: min(320px, 38vw);
        margin-right: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .desktop-navbar-search {
        display: none;
    }
}

@media (display-mode: standalone) {
    .custom-navbar .pwa-footer-duplicate,
    .mobile-secondary-navbar .pwa-footer-duplicate,
    .desktop-profile-shortcut {
        display: none !important;
    }

    .push-notification-control,
    #push-notification-control {
        display: none !important;
    }

    .carousel img,
    .image-slider {
        height: 50vh !important;
        min-height: 300px;
        max-height: 520px;
        object-fit: cover;
    }

    .all-salons-page {
        padding-top: 112px !important;
    }

    .site-footer {
        display: none !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: flex !important;
        align-items: stretch;
        justify-content: space-around;
        width: 100%;
        margin: 0;
        min-height: 70px;
        padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
        border-radius: 28px 28px 0 0;
        background: linear-gradient(135deg, #1A1A1A 0%, #292315 58%, #9a7818 160%);
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
    }

    #homeSalonList {
        row-gap: 0 !important;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 56px;
        padding: 3px 2px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.68rem;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-bottom-nav .mobile-push-button {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 56px;
        padding: 3px 2px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
    }

    .mobile-bottom-nav .mobile-push-button i {
        font-size: 1.35rem;
    }

    .mobile-bottom-nav .mobile-push-button.active {
        color: #fff;
        background: rgba(212, 175, 55, 0.24);
        box-shadow: inset 0 0 0 1px rgba(255, 223, 116, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .mobile-bottom-nav .mobile-push-button.active i {
        color: #ffd166;
        transform: scale(1.1);
        text-shadow: 0 0 12px rgba(255, 209, 71, 0.72);
    }

    .mobile-bottom-nav a i {
        font-size: 1.35rem;
        line-height: 1;
    }

    .mobile-bottom-nav a.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.16);
    }

    .mobile-bottom-nav a.active i {
        color: #ffd166;
    }

    .chatbot-fab {
        bottom: 100px !important;
    }

    body {
        padding-bottom: 70px !important;
    }

    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .mobile-profile-button,
    .mobile-profile-button:hover,
    .mobile-profile-button:focus {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-left: auto;
        margin-right: 14px;
    }
}
/* Icon Button Styles for Salon Cards */
.salon-card-actions .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.salon-card-actions .icon-btn:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.salon-card-actions .icon-btn img {
    display: block;
    width: 18px;
    height: 18px;
}

.salon-card-actions .btn-call-salon:hover {
    border-color: #22c55e;
    background: #dcfce7;
}

.salon-card-actions .btn-save-salon.saved {
    border: 2px solid #db2777;
    background: #f9a8d4;
    color: #831843;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.18);
}

.salon-card-actions .btn-save-salon.saved:hover {
    border-color: #be185d;
    background: #f472b6;
}

.salon-card-actions .btn-save-salon.not-saved {
    border-color: var(--border);
    background: var(--surface-strong);
}

.salon-card-actions .favorite-form-inline {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Shared responsive guardrails for every customer-facing page. */
html {
    overflow-x: clip;
}

body,
.container,
.container-fluid,
.row,
[class*="col-"] {
    min-width: 0;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
        padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-nav {
        min-height: calc(64px + env(safe-area-inset-bottom));
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav .mobile-push-button {
        min-width: 0;
        overflow: hidden;
    }

    .mobile-bottom-nav span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-card,
    .card,
    .modal-dialog,
    .payment-checkout-page {
        max-width: calc(100vw - 24px);
    }
}
