html.mobile-view {
    --mobile-bottom-nav: 78px;
    --mobile-shell-width: 480px;
    overscroll-behavior: none;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
}

html.mobile-view body {
    padding-bottom: calc(var(--mobile-bottom-nav) + env(safe-area-inset-bottom) + 12px);
    background: #f7f7f7;
    overflow-x: hidden;
    overscroll-behavior: none;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
}

html.mobile-view .skip-link,
html.mobile-view .skip-link:focus,
html.mobile-view .skip-link:focus-visible {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-200vh) !important;
}

html.mobile-view a,
html.mobile-view button,
html.mobile-view input,
html.mobile-view select,
html.mobile-view textarea,
html.mobile-view [role="button"] {
    touch-action: manipulation;
}

html.mobile-view body.dark-mode {
    background: #151515;
    color: #f3f3f3;
}

html.mobile-view header {
    min-height: 74px;
    padding: 8px 16px;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

html.mobile-view header > a:first-child,
html.mobile-view header > .header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

html.mobile-view .header-logo {
    height: 52px;
    max-width: 150px;
    margin-inline: auto;
}

html.mobile-view header > nav,
html.mobile-view header > .nav-right {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, 1fr);
    align-items: center;
    justify-content: start;
    gap: 0;
    min-height: var(--mobile-bottom-nav);
    padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    box-sizing: border-box;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    background: #000;
    border-top: 1px solid #242424;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
    scrollbar-width: none;
}

html.mobile-view header > nav::-webkit-scrollbar,
html.mobile-view header > .nav-right::-webkit-scrollbar {
    display: none;
}

html.mobile-view header > .nav-right > nav {
    display: contents;
}

html.mobile-view header .nav-item {
    min-width: 64px;
    min-height: 58px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px;
    box-sizing: border-box;
}

html.mobile-view header a.nav-item[href="#reviews"] {
    display: none;
}

html.mobile-view header .nav-item:hover,
html.mobile-view header .nav-item:focus {
    color: #fff;
    background: #1d1d1d !important;
    outline: none;
}

html.mobile-view .nav-icon {
    margin: 0 0 2px;
    font-size: 25px;
    line-height: 1;
}

html.mobile-view .nav-text {
    max-width: 70px;
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.mobile-view .cart-badge {
    top: 6px;
    right: calc(50% - 24px);
}

html.mobile-view .container,
html.mobile-view main.container {
    width: 100%;
    max-width: var(--mobile-shell-width);
    padding: 18px 12px 28px;
    box-sizing: border-box;
}

html.mobile-view .page-title {
    margin-bottom: 20px;
}

html.mobile-view .shop-toolbar {
    margin: -2px 0 18px;
}

html.mobile-view .search-shell {
    min-height: 50px;
    padding: 0 48px;
    border-radius: 12px;
}

html.mobile-view .search-icon {
    inset-inline-start: 16px;
    font-size: 22px;
}

html.mobile-view .search-input {
    min-height: 48px;
    font-size: 15px;
}

html.mobile-view .search-clear {
    inset-inline-end: 10px;
    width: 34px;
    height: 34px;
}

html.mobile-view .no-search-results {
    margin: -4px 0 18px;
    font-size: 14px;
}

html.mobile-view .page-title h1,
html.mobile-view h1 {
    font-size: 26px;
    line-height: 1.25;
}

html.mobile-view .page-title p,
html.mobile-view .subtitle,
html.mobile-view .about-text {
    font-size: 15px;
    line-height: 1.65;
}

html.mobile-view .hero-section {
    margin: 0 8px 18px;
    padding: 32px 18px 28px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

html.mobile-view #splash-screen {
    inset: 0;
    width: 100%;
    height: var(--app-viewport-height, 100dvh);
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
}

html.mobile-view .hero-section h1 {
    font-size: 30px;
    line-height: 1.25;
}

html.mobile-view .hero-section p {
    font-size: 16px;
    line-height: 1.6;
}

html.mobile-view .btn-large {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 17px;
}

html.mobile-view .section-box,
html.mobile-view .cart-container,
html.mobile-view .account-card {
    padding: 22px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

html.mobile-view .products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

html.mobile-view .product-card {
    width: auto;
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    box-sizing: border-box;
}

html.mobile-view .products-grid > .product-card:last-child:nth-child(odd),
html.mobile-view .products-grid > .product-card.is-last-unpaired {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 10px) / 2);
}

html.mobile-view .product-card:hover {
    transform: none;
}

html.mobile-view .product-card img,
html.mobile-view #productsContainer img {
    height: 112px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff;
    border-radius: 8px !important;
}

html.mobile-view .product-card h3 {
    margin: 8px 0 6px;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

html.mobile-view .product-card .price {
    margin: 6px 0;
    font-size: 18px;
    line-height: 1.25;
}

html.mobile-view .product-card .old-price {
    font-size: 13px;
}

html.mobile-view .product-card .sale-badge {
    font-size: 10px;
    padding: 2px 5px;
}

html.mobile-view .product-card .info-btn {
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    font-size: 15px;
}

html.mobile-view .product-card .btn,
html.mobile-view .product-card .btn-add {
    min-height: 40px;
    padding: 9px 6px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
}

html.mobile-view .review-slider-container,
html.mobile-view .review-form-card {
    min-height: 0;
    padding: 18px 14px;
    border-radius: 10px;
}

html.mobile-view .star-rating {
    font-size: 28px;
}

html.mobile-view input,
html.mobile-view select,
html.mobile-view textarea {
    min-height: 48px;
    font-size: 16px;
    border-radius: 8px;
}

html.mobile-view .auth-field {
    margin: 10px 0;
}

html.mobile-view .auth-field span {
    font-size: 13px;
}

html.mobile-view .btn,
html.mobile-view .btn-add,
html.mobile-view .btn-checkout {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    box-sizing: border-box;
}

html.mobile-view .modal-overlay {
    align-items: flex-end;
    padding: 0;
}

html.mobile-view .modal-content {
    width: 100%;
    max-width: var(--mobile-shell-width);
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px 18px;
    border-radius: 18px 18px 0 0;
    box-sizing: border-box;
}

html.mobile-view .settings-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: none;
    height: min(82vh, 640px);
    padding: 30px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
}

html.mobile-view .settings-drawer-overlay.open .settings-drawer {
    transform: translateY(0);
}

html.mobile-view .form-grid {
    grid-template-columns: 1fr;
}

html.mobile-view .actions {
    flex-direction: column;
}

html.mobile-view .actions .btn {
    min-width: 0;
}

html.mobile-view .cart-item {
    align-items: stretch;
    flex-direction: column;
}

html.mobile-view .item-info {
    width: 100%;
    min-width: 0;
}

html.mobile-view .qty-controls {
    width: 100%;
    box-sizing: border-box;
}

html.mobile-view .btn-remove {
    width: 100%;
    min-height: 42px;
}

html.mobile-view .cart-summary {
    text-align: center;
}

html.mobile-view .booking-card {
    align-items: stretch;
    flex-direction: column;
}

html.mobile-view .status-pill {
    width: max-content;
    align-self: flex-start;
}

html.mobile-view footer {
    margin-top: 20px;
    margin-bottom: calc(-1 * (var(--mobile-bottom-nav) + env(safe-area-inset-bottom) + 12px));
    padding: 32px 18px calc(var(--mobile-bottom-nav) + env(safe-area-inset-bottom) + 24px);
}

html.mobile-view .footer-logo {
    height: 42px;
}

html.mobile-view .footer-text {
    line-height: 1.7;
}

html.mobile-view .footer-version-switch {
    display: block;
    margin-top: 10px;
    margin-inline-start: 0;
}

html.mobile-view .product-stock {
    color: #666;
    font-weight: bold;
}

html.mobile-view .product-stock.out-of-stock {
    color: #cc0000;
}

html.mobile-view body.dark-mode .container,
html.mobile-view body.dark-mode main.container {
    background: transparent;
}

html.mobile-view body.dark-mode .page-title h1,
html.mobile-view body.dark-mode h1,
html.mobile-view body.dark-mode h2,
html.mobile-view body.dark-mode h3,
html.mobile-view body.dark-mode .product-card h3,
html.mobile-view body.dark-mode .product-card .price {
    color: #f3f3f3 !important;
}

html.mobile-view body.dark-mode .page-title p,
html.mobile-view body.dark-mode .subtitle,
html.mobile-view body.dark-mode .about-text,
html.mobile-view body.dark-mode .review-slide p,
html.mobile-view body.dark-mode .modal-content p,
html.mobile-view body.dark-mode #productsContainer > p,
html.mobile-view body.dark-mode .product-stock.in-stock {
    color: #d8d8d8 !important;
}

html.mobile-view body.dark-mode .section-box,
html.mobile-view body.dark-mode .cart-container,
html.mobile-view body.dark-mode .account-card,
html.mobile-view body.dark-mode .review-slider-container,
html.mobile-view body.dark-mode .review-form-card,
html.mobile-view body.dark-mode .modal-content,
html.mobile-view body.dark-mode .product-card {
    background: #202020;
    color: #f3f3f3;
    border-color: #343434;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

html.mobile-view body.dark-mode .product-card img,
html.mobile-view body.dark-mode #productsContainer img {
    background: #151515;
    border: 1px solid #343434;
    box-sizing: border-box;
}

html.mobile-view body.dark-mode #infoDesc {
    background: #181818 !important;
    color: #d8d8d8 !important;
    border-color: #343434 !important;
}

html.mobile-view body.dark-mode .appointment-item {
    background: #1d1d1d;
    border-color: #343434;
}

html.mobile-view body.dark-mode .appointment-item span[style*="background"] {
    background: #2a2a2a !important;
    color: #f3f3f3 !important;
}

html.mobile-view body.dark-mode .product-stock.out-of-stock {
    color: #ff8a8a;
}

html.mobile-view body.dark-mode .info-btn {
    background: #2a2a2a;
    color: #f3f3f3;
    border-color: #444;
}

/* Phone comfort pass: keeps desktop unchanged while tightening iPhone and Android layouts. */
html.mobile-view {
    --mobile-bottom-nav: 72px;
    --mobile-shell-width: 500px;
    --mobile-page-gutter: 12px;
    --mobile-card-padding: 16px;
    --mobile-control-height: 46px;
    --mobile-radius: 10px;
}

html.mobile-view.ios-device {
    --mobile-bottom-nav: 76px;
}

html.mobile-view.samsung-device,
html.mobile-view.android-device {
    --mobile-bottom-nav: 70px;
}

html.mobile-view.compact-phone {
    --mobile-page-gutter: 10px;
    --mobile-card-padding: 14px;
    --mobile-control-height: 44px;
}

html.mobile-view body {
    min-width: 0;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html.mobile-view body:not(.admin-page) {
    padding-bottom: calc(var(--mobile-bottom-nav) + env(safe-area-inset-bottom) + 8px);
}

html.mobile-view header {
    min-height: 66px;
    padding: 7px 12px;
}

html.mobile-view .header-logo {
    height: 46px;
    max-width: min(150px, 54vw);
}

html.mobile-view.compact-phone .header-logo {
    height: 42px;
    max-width: min(132px, 52vw);
}

html.mobile-view header > nav,
html.mobile-view header > .nav-right {
    grid-auto-columns: minmax(56px, 1fr);
    min-height: var(--mobile-bottom-nav);
    padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right));
}

html.mobile-view header .nav-item {
    min-width: 56px;
    min-height: 54px;
    padding: 5px 3px;
    border-radius: 8px;
}

html.mobile-view .nav-icon {
    font-size: 23px;
}

html.mobile-view .nav-text {
    max-width: 62px;
    font-size: 10px;
    line-height: 1.15;
}

html.mobile-view.compact-phone .nav-text {
    max-width: 56px;
    font-size: 9.5px;
}

html.mobile-view .container,
html.mobile-view main.container,
html.mobile-view body:not(.admin-page) main {
    width: 100%;
    max-width: var(--mobile-shell-width);
    padding: 14px var(--mobile-page-gutter) 24px;
    margin-inline: auto;
    box-sizing: border-box;
}

html.mobile-view .section-box,
html.mobile-view .cart-container,
html.mobile-view .account-card,
html.mobile-view .legal-page,
html.mobile-view .review-slider-container,
html.mobile-view .review-form-card {
    padding: var(--mobile-card-padding);
    border-radius: var(--mobile-radius);
}

html.mobile-view .page-title {
    margin-bottom: 16px;
}

html.mobile-view .page-title h1,
html.mobile-view h1 {
    margin-top: 0;
    font-size: 22px;
    line-height: 1.25;
}

html.mobile-view .page-title p,
html.mobile-view .subtitle,
html.mobile-view .page-subtitle,
html.mobile-view .about-text {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}

html.mobile-view h2 {
    font-size: 19px;
    line-height: 1.3;
}

html.mobile-view label {
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.35;
}

html.mobile-view input,
html.mobile-view select,
html.mobile-view textarea {
    min-height: var(--mobile-control-height);
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.35;
    border-radius: 8px;
}

html.mobile-view textarea {
    min-height: 86px;
}

html.mobile-view .service-choice-list {
    gap: 8px;
    margin-top: 6px;
}

html.mobile-view .service-choice {
    min-height: 50px;
    padding: 10px 12px;
    gap: 10px;
    border-width: 1.5px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.35;
}

html.mobile-view .service-choice input[type="checkbox"],
html.mobile-view .service-choice input[type="radio"] {
    flex: 0 0 21px;
    width: 21px;
    min-width: 21px;
    height: 21px;
    min-height: 21px;
}

html.mobile-view .service-choice span {
    min-width: 0;
    overflow-wrap: anywhere;
}

html.mobile-view.compact-phone .service-choice {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 14px;
}

html.mobile-view .time-group {
    gap: 8px;
    align-items: stretch;
}

html.mobile-view .time-group select {
    min-width: 0;
    padding-inline: 8px;
}

html.mobile-view .time-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    font-size: 18px;
}

html.mobile-view .booking-final-panel {
    gap: 8px;
    margin-top: 16px;
}

html.mobile-view .booking-availability,
html.mobile-view .section-box .policy-note,
html.mobile-view .prepayment-panel {
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.55;
}

html.mobile-view .booking-availability strong,
html.mobile-view .prepayment-panel strong {
    font-size: 15px;
}

html.mobile-view .booking-price-summary {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
}

html.mobile-view .btn,
html.mobile-view .btn-add,
html.mobile-view .btn-checkout,
html.mobile-view .old-bookings-btn {
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 15px;
    line-height: 1.25;
}

html.mobile-view .auth-actions {
    grid-template-columns: 1fr;
    gap: 10px;
}

html.mobile-view .auth-actions .btn {
    min-height: 48px;
}

html.mobile-view .settings-drawer {
    height: min(78vh, 620px);
    padding: 26px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
}

html.mobile-view .settings-close,
html.mobile-view .close-modal,
html.mobile-view .mini-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html.mobile-view .settings-row {
    margin: 14px 0;
}

html.mobile-view .modal-content,
html.mobile-view .mini-modal {
    width: 100%;
    max-width: var(--mobile-shell-width);
    padding: 22px 16px;
}

html.mobile-view .hero-section {
    margin: 0 0 16px;
    padding: 26px 16px 24px;
    border-radius: 12px;
}

html.mobile-view .hero-section h1 {
    font-size: 25px;
}

html.mobile-view .hero-section p {
    font-size: 14px;
}

html.mobile-view .home-service-grid {
    grid-template-columns: 1fr;
    gap: 9px;
}

html.mobile-view .home-service-chip {
    padding: 12px;
}

html.mobile-view .products-grid {
    gap: 9px;
}

html.mobile-view .product-card {
    padding: 9px;
}

html.mobile-view .product-card img,
html.mobile-view #productsContainer img {
    height: 104px !important;
}

html.mobile-view .product-card h3 {
    font-size: 13.5px;
}

html.mobile-view .product-card .price {
    font-size: 16px;
}

html.mobile-view .cart-item {
    gap: 10px;
    padding: 12px 0;
}

html.mobile-view .item-info {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

html.mobile-view .item-img {
    width: 54px;
    height: 54px;
}

html.mobile-view .item-details h3 {
    font-size: 15px;
    line-height: 1.3;
}

html.mobile-view .qty-controls {
    min-height: 42px;
}

html.mobile-view .price-breakdown,
html.mobile-view .compliance-panel,
html.mobile-view .terms-consent,
html.mobile-view .status-box,
html.mobile-view .empty-state {
    padding: 12px;
    border-radius: 10px;
}

html.mobile-view .form-grid,
html.mobile-view .phone-edit-row {
    gap: 12px;
}

html.mobile-view .risk-summary,
html.mobile-view .booking-card {
    gap: 10px;
}

html.mobile-view .legal-page h1 {
    font-size: 24px;
}

html.mobile-view .legal-page h2 {
    margin-top: 22px;
    font-size: 19px;
}

html.mobile-view .legal-page p,
html.mobile-view .legal-page li {
    font-size: 14px;
    line-height: 1.7;
}

html.mobile-view.compact-phone .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

html.mobile-view.compact-phone .product-card img,
html.mobile-view.compact-phone #productsContainer img {
    height: 96px !important;
}

html.mobile-view.compact-phone .btn,
html.mobile-view.compact-phone .btn-add,
html.mobile-view.compact-phone .btn-checkout,
html.mobile-view.compact-phone .old-bookings-btn {
    font-size: 14px;
}

html.mobile-view.large-phone {
    --mobile-shell-width: 540px;
}

/* Booking page mobile redesign. */
html.mobile-view {
    --booking-mobile-bg: #f4f6f8;
    --booking-mobile-card: #ffffff;
    --booking-mobile-ink: #121417;
    --booking-mobile-muted: #626a73;
    --booking-mobile-line: #dde2e7;
    --booking-mobile-soft: #f8fafc;
    --booking-mobile-shadow: 0 16px 38px rgba(16, 24, 40, 0.08);
}

html.mobile-view body:has(#bookingFormContainer) {
    background:
        linear-gradient(180deg, #ffffff 0, var(--booking-mobile-bg) 180px, var(--booking-mobile-bg) 100%);
}

html.mobile-view body.dark-mode:has(#bookingFormContainer) {
    --booking-mobile-bg: #111111;
    --booking-mobile-card: #1f1f1f;
    --booking-mobile-ink: #f4f4f4;
    --booking-mobile-muted: #c6c6c6;
    --booking-mobile-line: #363636;
    --booking-mobile-soft: #181818;
    --booking-mobile-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
    background: #111111;
}

html.mobile-view body:has(#bookingFormContainer) header {
    min-height: 58px;
    padding: 6px 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

html.mobile-view body:has(#bookingFormContainer) .header-logo {
    height: 40px;
    max-width: min(132px, 48vw);
}

html.mobile-view body:has(#bookingFormContainer) .container {
    max-width: 460px;
    padding-top: 10px;
}

html.mobile-view #bookingFormContainer {
    position: relative;
    margin: 0 auto 14px;
    padding: 18px 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(221, 226, 231, 0.9);
    border-radius: 18px;
    background: var(--booking-mobile-card);
    color: var(--booking-mobile-ink);
    box-shadow: var(--booking-mobile-shadow);
}

html.mobile-view #bookingFormContainer h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.18;
    letter-spacing: 0;
    color: var(--booking-mobile-ink) !important;
}

html.mobile-view #bookingFormContainer .subtitle {
    max-width: 320px;
    margin: 0 auto 18px;
    color: var(--booking-mobile-muted) !important;
    font-size: 14px;
    line-height: 1.55;
}

html.mobile-view #bookingFormContainer > label {
    margin: 16px 0 8px;
    color: var(--booking-mobile-ink);
    font-size: 15px;
    line-height: 1.35;
}

html.mobile-view #bookingFormContainer .service-choice-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

html.mobile-view #bookingFormContainer .service-choice {
    position: relative;
    min-height: 54px;
    padding: 10px 12px;
    padding-inline-start: 43px;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    border: 1px solid var(--booking-mobile-line);
    border-radius: 14px;
    background: var(--booking-mobile-soft);
    color: var(--booking-mobile-ink);
    box-shadow: none;
    font-size: 14.5px;
    line-height: 1.3;
    text-align: start;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

html.mobile-view #bookingFormContainer .service-choice input {
    position: absolute;
    inset-inline-start: 13px;
    top: 50%;
    width: 23px;
    min-width: 23px;
    height: 23px;
    min-height: 23px;
    margin: 0;
    opacity: 0;
    transform: translateY(-50%);
}

html.mobile-view #bookingFormContainer .service-choice::after {
    content: "";
    position: absolute;
    inset-inline-start: 13px;
    top: 50%;
    width: 23px;
    height: 23px;
    border: 1.5px solid #8c939b;
    border-radius: 8px;
    background: #fff;
    transform: translateY(-50%);
    box-sizing: border-box;
}

html.mobile-view #bookingFormContainer .service-choice::before {
    content: "check";
    position: absolute;
    inset-inline-start: 13px;
    top: 50%;
    z-index: 1;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Material Symbols Outlined";
    font-size: 19px;
    line-height: 1;
    opacity: 0;
    transform: translateY(-50%);
}

html.mobile-view #bookingFormContainer .service-choice span {
    display: block;
    min-width: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

html.mobile-view #bookingFormContainer .service-choice-list > .service-choice:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

html.mobile-view #bookingFormContainer .service-choice:has(input:checked) {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    transform: translateY(-1px);
}

html.mobile-view #bookingFormContainer .service-choice:has(input:checked)::after {
    border-color: #111111;
    background: #111111;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

html.mobile-view #bookingFormContainer .service-choice:has(input:checked)::before {
    opacity: 1;
}

html.mobile-view body.dark-mode #bookingFormContainer .service-choice {
    background: #181818;
    border-color: #363636;
}

html.mobile-view body.dark-mode #bookingFormContainer .service-choice::after {
    background: #232323;
    border-color: #686868;
}

html.mobile-view body.dark-mode #bookingFormContainer .service-choice:has(input:checked) {
    background: #f4f4f4;
    border-color: #f4f4f4;
    color: #111111;
}

html.mobile-view body.dark-mode #bookingFormContainer .service-choice:has(input:checked)::after {
    background: #111111;
    border-color: #f4f4f4;
}

html.mobile-view #bookingFormContainer #bookDate,
html.mobile-view #bookingFormContainer .time-group select,
html.mobile-view #bookingFormContainer textarea {
    min-height: 48px;
    border: 1px solid var(--booking-mobile-line);
    border-radius: 13px;
    background: var(--booking-mobile-soft);
    color: var(--booking-mobile-ink);
    box-shadow: none;
}

html.mobile-view #bookingFormContainer #bookDate {
    font-weight: 700;
}

html.mobile-view #bookingFormContainer .time-group {
    gap: 9px;
}

html.mobile-view #bookingFormContainer .time-group select {
    font-weight: 800;
}

html.mobile-view #bookingFormContainer .time-separator {
    min-width: 16px;
    color: var(--booking-mobile-ink);
    font-size: 22px;
}

html.mobile-view #bookingFormContainer textarea {
    min-height: 92px;
    resize: none;
}

html.mobile-view #bookingFormContainer .booking-final-panel {
    margin-top: 14px;
}

html.mobile-view #bookingFormContainer .booking-availability,
html.mobile-view #bookingFormContainer .booking-price-summary,
html.mobile-view #bookingFormContainer .policy-note,
html.mobile-view #bookingFormContainer .prepayment-panel {
    border-radius: 14px;
}

html.mobile-view #bookingFormContainer .booking-availability {
    border-color: #d9e3ec;
    background: #f6f9fc;
}

html.mobile-view body.dark-mode #bookingFormContainer .booking-availability {
    border-color: #343434;
    background: #181818;
}

html.mobile-view #bookingFormContainer #submitBookBtn {
    min-height: 52px;
    margin-top: 13px;
    border-radius: 14px;
    font-size: 16px;
}

html.mobile-view #bookingFormContainer #submitBookBtn:disabled {
    background: #9a9a9a;
    color: #ffffff;
    opacity: 1;
}

html.mobile-view #bookingFormContainer .policy-note {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--booking-mobile-line);
    background: #ffffff;
}

html.mobile-view body.dark-mode #bookingFormContainer .policy-note {
    background: #181818;
    border-color: #343434;
}

html.mobile-view #bookingFormContainer .policy-note p {
    font-size: 14px;
    line-height: 1.6;
}

html.mobile-view #bookingFormContainer .policy-note a {
    display: inline-flex;
    margin-top: 4px;
    font-weight: 900;
    color: inherit;
    text-underline-offset: 4px;
}

html.mobile-view.compact-phone #bookingFormContainer {
    padding: 16px 12px 14px;
    border-radius: 16px;
}

html.mobile-view.compact-phone #bookingFormContainer h1 {
    font-size: 24px;
}

html.mobile-view.compact-phone #bookingFormContainer .service-choice-list {
    gap: 8px;
}

html.mobile-view.compact-phone #bookingFormContainer .service-choice {
    min-height: 50px;
    padding-block: 10px;
    font-size: 13.5px;
}

@media (max-width: 340px) {
    html.mobile-view #bookingFormContainer .service-choice-list {
        grid-template-columns: 1fr;
    }
}

/* Customer pages polish: public salon experience. */
body:not(.admin-page) {
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.06), transparent 280px),
        linear-gradient(180deg, #f8fafc 0, #ffffff 42%, #f3f6fa 100%);
    color: #111827;
}

body:not(.admin-page) header {
    background: #020202;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.14);
}

body:not(.admin-page) header .header-logo {
    filter: drop-shadow(0 8px 18px rgba(255, 255, 255, 0.08));
}

body:not(.admin-page) header .nav-item {
    position: relative;
}

body:not(.admin-page) header .nav-item::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -7px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body:not(.admin-page) header .nav-item:hover::after,
body:not(.admin-page) header .nav-item:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

body:not(.admin-page) .container,
body:not(.admin-page) main.container {
    width: min(1120px, calc(100% - 32px));
}

body:not(.admin-page) .section-box,
body:not(.admin-page) .cart-container,
body:not(.admin-page) .account-card,
body:not(.admin-page) .review-slider-container,
body:not(.admin-page) .review-form-card,
body:not(.admin-page) .product-card,
body:not(.admin-page) .booking-card,
body:not(.admin-page) .empty-state,
body:not(.admin-page) .status-box {
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

body:not(.admin-page) .section-box,
body:not(.admin-page) .cart-container,
body:not(.admin-page) .account-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
        #fff;
}

body:not(.admin-page) .hero-section {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.12), transparent 220px),
        linear-gradient(135deg, #020202, #111827);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

body:not(.admin-page) .hero-section::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    pointer-events: none;
}

body:not(.admin-page) .hero-section h1,
body:not(.admin-page) .page-title h1,
body:not(.admin-page) h1.page-title,
body:not(.admin-page) .account-card > h1,
body:not(.admin-page) #bookingFormContainer h1 {
    letter-spacing: 0;
    line-height: 1.18;
}

body:not(.admin-page) .hero-section p,
body:not(.admin-page) .page-title p,
body:not(.admin-page) .subtitle,
body:not(.admin-page) .page-subtitle,
body:not(.admin-page) .about-text,
body:not(.admin-page) .records-subtitle {
    color: #64748b !important;
    line-height: 1.75;
}

body:not(.admin-page) .hero-section p {
    color: #d1d5db !important;
}

body:not(.admin-page) .btn,
body:not(.admin-page) .btn-add,
body:not(.admin-page) .btn-checkout,
body:not(.admin-page) .btn-large,
body:not(.admin-page) .old-bookings-btn {
    border-radius: 8px;
    min-height: 46px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

body:not(.admin-page) .btn:hover,
body:not(.admin-page) .btn-add:hover,
body:not(.admin-page) .btn-checkout:hover,
body:not(.admin-page) .btn-large:hover {
    transform: translateY(-1px);
}

body:not(.admin-page) input,
body:not(.admin-page) select,
body:not(.admin-page) textarea,
body:not(.admin-page) .search-shell {
    border-color: #d6dde8;
    border-radius: 8px;
    background-color: #fff;
}

body:not(.admin-page) input:focus,
body:not(.admin-page) select:focus,
body:not(.admin-page) textarea:focus,
body:not(.admin-page) .search-shell:focus-within {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08), 0 14px 30px rgba(15, 23, 42, 0.08);
}

body:not(.admin-page) .service-choice,
body:not(.admin-page) .verification-option,
body:not(.admin-page) .terms-consent,
body:not(.admin-page) .price-breakdown,
body:not(.admin-page) .compliance-panel,
body:not(.admin-page) .booking-availability,
body:not(.admin-page) .booking-price-summary,
body:not(.admin-page) .prepayment-panel,
body:not(.admin-page) .policy-note {
    border-radius: 8px;
}

body:not(.admin-page) #bookingFormContainer .service-choice {
    border-color: #dde5ef;
    background: #fff;
}

body:not(.admin-page) #bookingFormContainer .service-choice:has(input:checked) {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

body:not(.admin-page) .product-card {
    overflow: hidden;
    background:
        linear-gradient(180deg, #fff, #f8fafc);
}

body:not(.admin-page) .product-card img,
body:not(.admin-page) #productsContainer img,
body:not(.admin-page) .item-img {
    border-radius: 8px;
    border-color: #edf1f5;
}

body:not(.admin-page) .product-card .price,
body:not(.admin-page) .total-price,
body:not(.admin-page) .price-row.total {
    color: #0f172a;
}

body:not(.admin-page) .info-btn,
body:not(.admin-page) .search-clear,
body:not(.admin-page) .qty-btn {
    border-radius: 8px;
}

body:not(.admin-page) .review-slider-container {
    background:
        linear-gradient(135deg, #fff, #f8fafc);
}

body:not(.admin-page) .review-form-card,
body:not(.admin-page) .appointment-item,
body:not(.admin-page) .booking-card {
    border-right-color: #0f172a;
}

body:not(.admin-page) .history-switch {
    border-radius: 8px;
    background: #eef3f8;
}

body:not(.admin-page) .history-switch button {
    border-radius: 8px;
}

body:not(.admin-page) .modal-overlay {
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
}

body:not(.admin-page) .modal-content,
body:not(.admin-page) .mini-modal,
body:not(.admin-page) .settings-drawer {
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

body:not(.admin-page) .close-modal,
body:not(.admin-page) .mini-close,
body:not(.admin-page) .settings-close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
}

body:not(.admin-page) .settings-drawer h2,
body:not(.admin-page) .modal-content h2,
body:not(.admin-page) .mini-modal h2 {
    margin-top: 12px;
    color: #0f172a;
}

body:not(.admin-page) footer {
    background: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.admin-page) .social-icons a {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

@media (min-width: 821px) {
    body:not(.admin-page) .container,
    body:not(.admin-page) main.container {
        padding-top: 44px;
        padding-bottom: 76px;
    }

    body:not(.admin-page) .section-box,
    body:not(.admin-page) .cart-container,
    body:not(.admin-page) .account-card {
        padding: 42px;
    }

    body:not(.admin-page) .products-grid {
        align-items: stretch;
    }

    body:not(.admin-page) .product-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 410px;
    }

    body:not(.admin-page) .booking-card {
        min-height: 112px;
        padding: 20px 22px;
    }

    body:not(.admin-page) .modal-content,
    body:not(.admin-page) .mini-modal {
        padding: 34px;
    }
}

html.mobile-view body:not(.admin-page) {
    background:
        linear-gradient(180deg, #ffffff 0, #f3f6fa 190px, #f3f6fa 100%);
}

html.mobile-view body:not(.admin-page) header {
    min-height: 66px;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.mobile-view body:not(.admin-page) header .header-logo {
    height: 46px;
    max-width: min(156px, 50vw);
}

html.mobile-view body:not(.admin-page) header > nav,
html.mobile-view body:not(.admin-page) header > .nav-right {
    min-height: var(--mobile-bottom-nav);
    padding-top: 7px;
    background: #020202;
}

html.mobile-view body:not(.admin-page) header .nav-item {
    min-height: 56px;
    border-radius: 8px;
}

html.mobile-view body:not(.admin-page) header .nav-item::after {
    display: none;
}

html.mobile-view body:not(.admin-page) .nav-icon {
    font-size: 24px;
}

html.mobile-view body:not(.admin-page) .nav-text {
    max-width: 76px;
    font-size: 10.5px;
}

html.mobile-view body:not(.admin-page) .container,
html.mobile-view body:not(.admin-page) main.container {
    width: 100%;
    max-width: var(--mobile-shell-width);
    padding: 14px var(--mobile-page-gutter, 12px) 28px;
}

html.mobile-view body:not(.admin-page) .section-box,
html.mobile-view body:not(.admin-page) .cart-container,
html.mobile-view body:not(.admin-page) .account-card,
html.mobile-view body:not(.admin-page) .review-slider-container,
html.mobile-view body:not(.admin-page) .review-form-card {
    padding: 18px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

html.mobile-view body:not(.admin-page) .page-title {
    margin: 8px 0 18px;
}

html.mobile-view body:not(.admin-page) .page-title h1,
html.mobile-view body:not(.admin-page) h1 {
    font-size: 25px;
    line-height: 1.2;
}

html.mobile-view body:not(.admin-page) .page-title p,
html.mobile-view body:not(.admin-page) .subtitle,
html.mobile-view body:not(.admin-page) .page-subtitle,
html.mobile-view body:not(.admin-page) .about-text {
    font-size: 14px;
    line-height: 1.62;
}

html.mobile-view body:not(.admin-page) .hero-section {
    margin: 0 0 14px;
    padding: 28px 16px 24px;
    border-radius: 8px;
}

html.mobile-view body:not(.admin-page) .hero-section::before {
    inset: 9px;
}

html.mobile-view body:not(.admin-page) .hero-section h1 {
    font-size: 29px;
}

html.mobile-view body:not(.admin-page) .hero-section p {
    max-width: 340px;
    font-size: 15px;
}

html.mobile-view body:not(.admin-page) .btn,
html.mobile-view body:not(.admin-page) .btn-add,
html.mobile-view body:not(.admin-page) .btn-checkout,
html.mobile-view body:not(.admin-page) .btn-large,
html.mobile-view body:not(.admin-page) .old-bookings-btn {
    min-height: 50px;
    border-radius: 8px;
    font-size: 15px;
}

html.mobile-view body:not(.admin-page) input,
html.mobile-view body:not(.admin-page) select,
html.mobile-view body:not(.admin-page) textarea {
    min-height: 48px;
    border-radius: 8px;
    font-size: 15px;
}

html.mobile-view body:not(.admin-page) .modal-overlay.open,
html.mobile-view body:not(.admin-page) .modal-overlay[style*="flex"] {
    align-items: flex-end;
}

html.mobile-view body:not(.admin-page) .modal-content,
html.mobile-view body:not(.admin-page) .mini-modal {
    width: 100%;
    max-width: var(--mobile-shell-width);
    max-height: calc(100dvh - 28px);
    margin: 0 auto;
    padding: 54px 18px 22px;
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    text-align: start;
}

html.mobile-view body:not(.admin-page) .modal-content h2,
html.mobile-view body:not(.admin-page) .mini-modal h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 24px;
}

html.mobile-view body:not(.admin-page) .modal-content p,
html.mobile-view body:not(.admin-page) .mini-modal p {
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
}

html.mobile-view body:not(.admin-page) .close-modal,
html.mobile-view body:not(.admin-page) .mini-close {
    top: 12px;
    inset-inline-start: 14px;
    inset-inline-end: auto;
    right: auto;
    left: 14px;
    position: absolute;
}

html.mobile-view body:not(.admin-page) .settings-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 28px);
    padding: 54px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
}

html.mobile-view body:not(.admin-page) .settings-drawer-overlay.open .settings-drawer {
    transform: translateY(0);
}

html.mobile-view body:not(.admin-page) .settings-close {
    top: 12px;
    inset-inline-start: 14px;
    inset-inline-end: auto;
    right: auto;
    left: 14px;
}

html.mobile-view body:not(.admin-page) .settings-row {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

html.mobile-view body:not(.admin-page) .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

html.mobile-view body:not(.admin-page) .product-card {
    min-height: 248px;
    padding: 10px;
    border-radius: 8px;
}

html.mobile-view body:not(.admin-page) .product-card img,
html.mobile-view body:not(.admin-page) #productsContainer img {
    height: 108px !important;
}

html.mobile-view body:not(.admin-page) .product-card h3 {
    min-height: 36px;
    font-size: 14px;
    line-height: 1.3;
}

html.mobile-view body:not(.admin-page) .product-card .price {
    margin: 8px 0;
    font-size: 17px;
}

html.mobile-view body:not(.admin-page) .cart-item,
html.mobile-view body:not(.admin-page) .booking-card,
html.mobile-view body:not(.admin-page) .appointment-item {
    padding: 14px;
    border: 1px solid #dfe6ee;
    border-right: 4px solid #0f172a;
    border-radius: 8px;
    background: #fff;
}

html.mobile-view body:not(.admin-page) .cart-item {
    display: grid;
    gap: 12px;
}

html.mobile-view body:not(.admin-page) .cart-summary {
    text-align: right;
}

html.mobile-view body:not(.admin-page) .history-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
}

html.mobile-view body:not(.admin-page) .history-switch button {
    min-height: 54px;
    padding: 10px;
}

html.mobile-view body:not(.admin-page) .history-switch-label {
    font-size: 13px;
}

html.mobile-view body:not(.admin-page) .history-switch-count {
    width: 28px;
    min-width: 28px;
    height: 28px;
}

html.mobile-view body:not(.admin-page) footer {
    margin-top: 16px;
    padding-top: 28px;
}

html.mobile-view body:not(.admin-page) .social-icons a {
    width: 44px;
    height: 44px;
}

html.mobile-view.compact-phone body:not(.admin-page) .products-grid {
    gap: 8px;
}

html.mobile-view.compact-phone body:not(.admin-page) .product-card {
    min-height: 236px;
}

html.mobile-view.compact-phone body:not(.admin-page) .history-switch-label {
    gap: 5px;
    font-size: 12px;
}

/* Customer icon fallback: keep late-loading icon fonts from stretching mobile UI. */
body:not(.admin-page) .material-symbols-outlined.nav-icon,
body:not(.admin-page) .bottom-nav .material-symbols-outlined,
body:not(.admin-page) .mobile-bottom-nav .material-symbols-outlined {
    flex: 0 0 auto;
    width: 28px;
    max-width: 28px;
    height: 28px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 26px !important;
    line-height: 28px;
}

body:not(.admin-page) .auth-checking .material-symbols-outlined {
    width: 48px;
    max-width: 48px;
    height: 48px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 30px !important;
    line-height: 48px;
}

/* Customer polish dark mode overrides. */
body.dark-mode:not(.admin-page) {
    background: #0f1115;
    color: #f8fafc;
}

html.mobile-view body.dark-mode:not(.admin-page) {
    background: #0f1115;
    color: #f8fafc;
}

body.dark-mode:not(.admin-page) main.container,
html.mobile-view body.dark-mode:not(.admin-page) main.container {
    background: transparent;
}

body.dark-mode:not(.admin-page) .section-box,
body.dark-mode:not(.admin-page) .cart-container,
body.dark-mode:not(.admin-page) .account-card,
body.dark-mode:not(.admin-page) .review-slider-container,
body.dark-mode:not(.admin-page) .review-form-card,
body.dark-mode:not(.admin-page) .modal-content,
body.dark-mode:not(.admin-page) .mini-modal,
body.dark-mode:not(.admin-page) .settings-drawer,
body.dark-mode:not(.admin-page) .product-card,
body.dark-mode:not(.admin-page) .cart-item,
body.dark-mode:not(.admin-page) .booking-card,
body.dark-mode:not(.admin-page) .appointment-item,
body.dark-mode:not(.admin-page) .status-box {
    background: #171b23;
    color: #f8fafc;
    border-color: #303746;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

body.dark-mode:not(.admin-page) .hero-section {
    background: linear-gradient(145deg, #050505, #171b23);
    color: #fff;
}

body.dark-mode:not(.admin-page) .hero-section::before {
    border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode:not(.admin-page) .page-title p,
body.dark-mode:not(.admin-page) .subtitle,
body.dark-mode:not(.admin-page) .page-subtitle,
body.dark-mode:not(.admin-page) .about-text,
body.dark-mode:not(.admin-page) .modal-content p,
body.dark-mode:not(.admin-page) .mini-modal p,
body.dark-mode:not(.admin-page) .review-slide p,
body.dark-mode:not(.admin-page) small {
    color: #cbd5e1;
}

body.dark-mode:not(.admin-page) input,
body.dark-mode:not(.admin-page) select,
body.dark-mode:not(.admin-page) textarea,
body.dark-mode:not(.admin-page) .phone-prefix {
    background: #10141b;
    color: #f8fafc;
    border-color: #3a4352;
}

body.dark-mode:not(.admin-page) input:focus,
body.dark-mode:not(.admin-page) select:focus,
body.dark-mode:not(.admin-page) textarea:focus {
    background: #131923;
    border-color: #e7c94b;
    box-shadow: 0 0 0 3px rgba(231, 201, 75, 0.16);
}

body.dark-mode:not(.admin-page) .settings-row,
body.dark-mode:not(.admin-page) .history-switch,
body.dark-mode:not(.admin-page) .cart-total,
body.dark-mode:not(.admin-page) .auth-checking {
    background: #10141b;
    border-color: #303746;
}

body.dark-mode:not(.admin-page) .empty-state,
body.dark-mode:not(.admin-page) #productsContainer > p {
    background: #111827;
    color: #cbd5e1;
    border-color: #303746;
}

body.dark-mode:not(.admin-page) .btn.secondary,
body.dark-mode:not(.admin-page) .info-btn,
body.dark-mode:not(.admin-page) .google-auth-btn {
    background: #10141b;
    color: #f8fafc;
    border-color: #3a4352;
}

body.dark-mode:not(.admin-page) footer {
    border-color: #262d3a;
}

body.dark-mode:not(.admin-page) .social-icons a,
body.dark-mode:not(.admin-page) .auth-checking .material-symbols-outlined {
    background: #111827;
    border-color: #303746;
}

/* Final customer mobile and dark-mode polish. */
body:not(.admin-page) {
    --yana-mobile-bg: #f3f6fa;
    --yana-mobile-surface: #ffffff;
    --yana-mobile-surface-soft: #f8fafc;
    --yana-mobile-border: #dbe3ef;
    --yana-mobile-text: #0f172a;
    --yana-mobile-muted: #64748b;
    --yana-mobile-gold: #d4af37;
    --yana-mobile-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    --yana-mobile-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body.dark-mode:not(.admin-page) {
    --yana-mobile-bg: #0b111b;
    --yana-mobile-surface: #141b27;
    --yana-mobile-surface-soft: #101722;
    --yana-mobile-border: #263244;
    --yana-mobile-text: #f8fafc;
    --yana-mobile-muted: #aebacf;
    --yana-mobile-gold: #e6c65a;
    --yana-mobile-shadow: 0 20px 54px rgba(0, 0, 0, 0.36);
    --yana-mobile-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.26);
    color-scheme: dark;
    background:
        radial-gradient(circle at 20% -8%, rgba(212, 175, 55, 0.12), transparent 34%),
        linear-gradient(180deg, #0f1724 0, var(--yana-mobile-bg) 250px, var(--yana-mobile-bg) 100%);
    color: var(--yana-mobile-text);
}

html.mobile-view body:not(.admin-page) {
    background:
        linear-gradient(180deg, #ffffff 0, var(--yana-mobile-bg) 210px, var(--yana-mobile-bg) 100%);
    color: var(--yana-mobile-text);
}

html.mobile-view body.dark-mode:not(.admin-page) {
    background:
        radial-gradient(circle at 20% -8%, rgba(212, 175, 55, 0.12), transparent 34%),
        linear-gradient(180deg, #0f1724 0, var(--yana-mobile-bg) 250px, var(--yana-mobile-bg) 100%);
}

html.mobile-view body:not(.admin-page) header {
    background:
        linear-gradient(135deg, rgba(3, 7, 18, 0.99), rgba(17, 24, 39, 0.99));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

html.mobile-view body:not(.admin-page) header > nav,
html.mobile-view body:not(.admin-page) header > .nav-right {
    background:
        linear-gradient(135deg, rgba(3, 7, 18, 0.98), rgba(17, 24, 39, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.mobile-view body:not(.admin-page) header .nav-item {
    color: rgba(255, 255, 255, 0.78);
}

html.mobile-view body:not(.admin-page) header .nav-item.active,
html.mobile-view body:not(.admin-page) header .nav-item:hover,
html.mobile-view body:not(.admin-page) header .nav-item:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

html.mobile-view body:not(.admin-page) .section-box,
html.mobile-view body:not(.admin-page) .cart-container,
html.mobile-view body:not(.admin-page) .account-card,
html.mobile-view body:not(.admin-page) .review-slider-container,
html.mobile-view body:not(.admin-page) .review-form-card,
html.mobile-view body:not(.admin-page) .product-card,
html.mobile-view body:not(.admin-page) .cart-item,
html.mobile-view body:not(.admin-page) .booking-card,
html.mobile-view body:not(.admin-page) .appointment-item,
html.mobile-view body:not(.admin-page) .status-box,
html.mobile-view body:not(.admin-page) .prepayment-panel,
html.mobile-view body:not(.admin-page) .booking-availability,
html.mobile-view body:not(.admin-page) .booking-price-summary,
html.mobile-view body:not(.admin-page) .empty-state {
    background: var(--yana-mobile-surface);
    border: 1px solid var(--yana-mobile-border);
    color: var(--yana-mobile-text);
    box-shadow: var(--yana-mobile-shadow-soft);
}

html.mobile-view body:not(.admin-page) .section-box,
html.mobile-view body:not(.admin-page) .cart-container,
html.mobile-view body:not(.admin-page) .account-card,
html.mobile-view body:not(.admin-page) .review-slider-container,
html.mobile-view body:not(.admin-page) .review-form-card {
    border-radius: 18px;
}

html.mobile-view body:not(.admin-page) .product-card,
html.mobile-view body:not(.admin-page) .cart-item,
html.mobile-view body:not(.admin-page) .booking-card,
html.mobile-view body:not(.admin-page) .appointment-item {
    border-radius: 16px;
}

html.mobile-view body.dark-mode:not(.admin-page) .section-box,
html.mobile-view body.dark-mode:not(.admin-page) .cart-container,
html.mobile-view body.dark-mode:not(.admin-page) .account-card,
html.mobile-view body.dark-mode:not(.admin-page) .review-slider-container,
html.mobile-view body.dark-mode:not(.admin-page) .review-form-card,
html.mobile-view body.dark-mode:not(.admin-page) .product-card,
html.mobile-view body.dark-mode:not(.admin-page) .cart-item,
html.mobile-view body.dark-mode:not(.admin-page) .booking-card,
html.mobile-view body.dark-mode:not(.admin-page) .appointment-item,
html.mobile-view body.dark-mode:not(.admin-page) .status-box,
html.mobile-view body.dark-mode:not(.admin-page) .prepayment-panel,
html.mobile-view body.dark-mode:not(.admin-page) .booking-availability,
html.mobile-view body.dark-mode:not(.admin-page) .booking-price-summary,
html.mobile-view body.dark-mode:not(.admin-page) .empty-state {
    background: var(--yana-mobile-surface);
    border-color: var(--yana-mobile-border);
    color: var(--yana-mobile-text);
    box-shadow: var(--yana-mobile-shadow-soft);
}

html.mobile-view body.dark-mode:not(.admin-page) .page-title h1,
html.mobile-view body.dark-mode:not(.admin-page) h1,
html.mobile-view body.dark-mode:not(.admin-page) h2,
html.mobile-view body.dark-mode:not(.admin-page) h3,
html.mobile-view body.dark-mode:not(.admin-page) .product-card h3,
html.mobile-view body.dark-mode:not(.admin-page) .product-card .price,
html.mobile-view body.dark-mode:not(.admin-page) .appointment-item strong,
html.mobile-view body.dark-mode:not(.admin-page) .booking-card strong {
    color: var(--yana-mobile-text);
}

html.mobile-view body.dark-mode:not(.admin-page) .page-title p,
html.mobile-view body.dark-mode:not(.admin-page) .subtitle,
html.mobile-view body.dark-mode:not(.admin-page) .page-subtitle,
html.mobile-view body.dark-mode:not(.admin-page) .about-text,
html.mobile-view body.dark-mode:not(.admin-page) .review-slide p,
html.mobile-view body.dark-mode:not(.admin-page) .modal-content p,
html.mobile-view body.dark-mode:not(.admin-page) .mini-modal p,
html.mobile-view body.dark-mode:not(.admin-page) small,
html.mobile-view body.dark-mode:not(.admin-page) .product-stock.in-stock,
html.mobile-view body.dark-mode:not(.admin-page) .item-info,
html.mobile-view body.dark-mode:not(.admin-page) .appointment-item p,
html.mobile-view body.dark-mode:not(.admin-page) .booking-card p {
    color: var(--yana-mobile-muted);
}

html.mobile-view body:not(.admin-page) input,
html.mobile-view body:not(.admin-page) select,
html.mobile-view body:not(.admin-page) textarea,
html.mobile-view body:not(.admin-page) .phone-prefix,
html.mobile-view body:not(.admin-page) .search-shell {
    background: var(--yana-mobile-surface);
    border: 1px solid var(--yana-mobile-border);
    color: var(--yana-mobile-text);
    box-shadow: none;
}

html.mobile-view body.dark-mode:not(.admin-page) input,
html.mobile-view body.dark-mode:not(.admin-page) select,
html.mobile-view body.dark-mode:not(.admin-page) textarea,
html.mobile-view body.dark-mode:not(.admin-page) .phone-prefix,
html.mobile-view body.dark-mode:not(.admin-page) .search-shell {
    background: var(--yana-mobile-surface-soft);
    border-color: var(--yana-mobile-border);
    color: var(--yana-mobile-text);
}

html.mobile-view body:not(.admin-page) input:focus,
html.mobile-view body:not(.admin-page) select:focus,
html.mobile-view body:not(.admin-page) textarea:focus {
    border-color: var(--yana-mobile-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
    outline: none;
}

html.mobile-view body:not(.admin-page) .modal-overlay.open,
html.mobile-view body:not(.admin-page) .modal-overlay[style*="flex"],
html.mobile-view body:not(.admin-page) .settings-drawer-overlay.open {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
}

html.mobile-view body:not(.admin-page) .modal-content,
html.mobile-view body:not(.admin-page) .mini-modal,
html.mobile-view body:not(.admin-page) .settings-drawer {
    position: relative;
    background: var(--yana-mobile-surface);
    border: 1px solid var(--yana-mobile-border);
    color: var(--yana-mobile-text);
    box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.28);
}

html.mobile-view body.dark-mode:not(.admin-page) .modal-content,
html.mobile-view body.dark-mode:not(.admin-page) .mini-modal,
html.mobile-view body.dark-mode:not(.admin-page) .settings-drawer {
    background: var(--yana-mobile-surface);
    border-color: var(--yana-mobile-border);
    color: var(--yana-mobile-text);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.45);
}

html.mobile-view body:not(.admin-page) .modal-content::before,
html.mobile-view body:not(.admin-page) .mini-modal::before,
html.mobile-view body:not(.admin-page) .settings-drawer::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.45);
    transform: translateX(-50%);
}

html.mobile-view body:not(.admin-page) .modal-content h2,
html.mobile-view body:not(.admin-page) .mini-modal h2,
html.mobile-view body:not(.admin-page) .settings-drawer h2 {
    color: var(--yana-mobile-text);
}

html.mobile-view body:not(.admin-page) .close-modal,
html.mobile-view body:not(.admin-page) .mini-close,
html.mobile-view body:not(.admin-page) .settings-close {
    border-color: var(--yana-mobile-border);
    background: var(--yana-mobile-surface-soft);
    color: var(--yana-mobile-text);
}

html.mobile-view body:not(.admin-page) .settings-row,
html.mobile-view body:not(.admin-page) .history-switch,
html.mobile-view body:not(.admin-page) .cart-total,
html.mobile-view body:not(.admin-page) .auth-checking,
html.mobile-view body:not(.admin-page) .service-choice {
    background: var(--yana-mobile-surface-soft);
    border: 1px solid var(--yana-mobile-border);
    color: var(--yana-mobile-text);
}

html.mobile-view body.dark-mode:not(.admin-page) .history-switch button.active,
html.mobile-view body.dark-mode:not(.admin-page) .status-pill,
html.mobile-view body.dark-mode:not(.admin-page) .btn.secondary,
html.mobile-view body.dark-mode:not(.admin-page) .info-btn,
html.mobile-view body.dark-mode:not(.admin-page) .google-auth-btn,
html.mobile-view body.dark-mode:not(.admin-page) .search-clear,
html.mobile-view body.dark-mode:not(.admin-page) .qty-btn {
    background: #182133;
    border-color: var(--yana-mobile-border);
    color: var(--yana-mobile-text);
}

html.mobile-view body.dark-mode:not(.admin-page) .product-card img,
html.mobile-view body.dark-mode:not(.admin-page) #productsContainer img {
    background: #0f1622;
    border-color: var(--yana-mobile-border);
}

html.mobile-view body.dark-mode:not(.admin-page) footer {
    background:
        linear-gradient(180deg, #05070b, #0a0f18);
    border-color: rgba(230, 198, 90, 0.14);
}

html.mobile-view body.dark-mode:not(.admin-page) .social-icons a,
html.mobile-view body.dark-mode:not(.admin-page) .auth-checking .material-symbols-outlined {
    background: var(--yana-mobile-surface-soft);
    border-color: var(--yana-mobile-border);
}

/* Customer phone safe-area and next-booking compact polish. */
html.mobile-view {
    background: #05070b;
}

html.mobile-view body:not(.admin-page) {
    background-color: var(--yana-mobile-bg);
}

html.mobile-view body:not(.admin-page)::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: env(safe-area-inset-top, 0px);
    background: linear-gradient(135deg, #030712, #111827);
    pointer-events: none;
    z-index: 99;
}

html.mobile-view body:not(.admin-page) header {
    padding-top: calc(7px + env(safe-area-inset-top, 0px));
}

@media (max-width: 640px) {
    html.mobile-view body:not(.admin-page) .next-booking-card {
        margin-bottom: 12px;
        padding: 16px 14px;
        border-radius: 18px;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    }

    html.mobile-view body:not(.admin-page) .next-booking-card::before {
        top: -54px;
        inset-inline-end: -34px;
        width: 120px;
        height: 120px;
    }

    html.mobile-view body:not(.admin-page) .next-booking-label {
        gap: 6px;
        margin-bottom: 9px;
        padding: 5px 9px;
        font-size: 11.5px;
    }

    html.mobile-view body:not(.admin-page) .next-booking-title {
        margin-bottom: 8px;
        font-size: clamp(18px, 5vw, 22px);
        line-height: 1.22;
    }

    html.mobile-view body:not(.admin-page) .next-booking-meta {
        gap: 8px;
        margin-bottom: 12px;
        font-size: 13px;
        line-height: 1.35;
    }

    html.mobile-view body:not(.admin-page) .booking-countdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        max-width: none;
    }

    html.mobile-view body:not(.admin-page) .booking-countdown-box {
        min-height: 54px;
        padding: 7px 4px;
        border-radius: 13px;
    }

    html.mobile-view body:not(.admin-page) .booking-countdown-box strong {
        font-size: clamp(18px, 6vw, 24px);
    }

    html.mobile-view body:not(.admin-page) .booking-countdown-box small {
        font-size: 10.5px;
        line-height: 1.1;
    }
}

@media (max-width: 360px) {
    html.mobile-view body:not(.admin-page) .next-booking-card {
        padding: 14px 12px;
    }

    html.mobile-view body:not(.admin-page) .booking-countdown {
        gap: 5px;
    }

    html.mobile-view body:not(.admin-page) .booking-countdown-box {
        min-height: 50px;
        padding: 6px 3px;
    }

    html.mobile-view body:not(.admin-page) .booking-countdown-box small {
        font-size: 9.5px;
    }
}

/* Keep the iPhone top area black while the visible page colors match desktop. */
html.mobile-view {
    background: #000000;
}

html.mobile-view body:not(.admin-page) {
    --yana-mobile-bg: #f3f6fa;
    --yana-mobile-surface: #ffffff;
    --yana-mobile-surface-soft: #f8fafc;
    --yana-mobile-border: #dbe3ef;
    --yana-mobile-text: #0f172a;
    --yana-mobile-muted: #64748b;
    --yana-mobile-gold: #d4af37;
    --yana-mobile-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
    background: #000000 !important;
    color: #0f172a;
}

html.mobile-view body.dark-mode:not(.admin-page) {
    --yana-mobile-bg: #0b111b;
    --yana-mobile-surface: #141b27;
    --yana-mobile-surface-soft: #101722;
    --yana-mobile-border: #263244;
    --yana-mobile-text: #f8fafc;
    --yana-mobile-muted: #aebacf;
    --yana-mobile-gold: #e6c65a;
    --yana-mobile-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.26);
    background: #000000 !important;
    color: #f8fafc;
}

html.mobile-view body:not(.admin-page) > .container,
html.mobile-view body:not(.admin-page) > main,
html.mobile-view body:not(.admin-page) #mainContent {
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.06), transparent 280px),
        linear-gradient(180deg, #f8fafc 0, #ffffff 42%, #f3f6fa 100%);
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

html.mobile-view body.dark-mode:not(.admin-page) > .container,
html.mobile-view body.dark-mode:not(.admin-page) > main,
html.mobile-view body.dark-mode:not(.admin-page) #mainContent {
    background:
        radial-gradient(circle at 20% -8%, rgba(212, 175, 55, 0.12), transparent 34%),
        linear-gradient(180deg, #0f1724 0, #0b111b 250px, #0b111b 100%);
}

html.mobile-view body:not(.admin-page) header,
html.mobile-view body:not(.admin-page) header > nav,
html.mobile-view body:not(.admin-page) header > .nav-right {
    background: #000000;
    border-color: #242424;
}

html.mobile-view body:not(.admin-page) header {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

html.mobile-view body:not(.admin-page)::before {
    height: max(360px, env(safe-area-inset-top, 0px));
    background: #000000;
    z-index: -1;
}

html.mobile-view body:not(.admin-page) header .nav-item {
    color: #ffffff;
}

html.mobile-view body:not(.admin-page) header .nav-item.active,
html.mobile-view body:not(.admin-page) header .nav-item:hover,
html.mobile-view body:not(.admin-page) header .nav-item:focus {
    background: #1d1d1d !important;
    color: #ffffff;
}

html.mobile-view body:not(.admin-page) .home-page-stack,
html.mobile-view body:not(.admin-page) .builder-custom-section,
html.mobile-view body:not(.admin-page) .hero-section,
html.mobile-view body:not(.admin-page) .section-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

html.mobile-view body:not(.admin-page) .hero-section h1,
html.mobile-view body:not(.admin-page) .hero-section p,
html.mobile-view body:not(.admin-page) .about-text,
html.mobile-view body:not(.admin-page) .home-editable-text {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

html.mobile-view body:not(.admin-page) .hero-section .btn-large,
html.mobile-view body:not(.admin-page) .home-section-actions,
html.mobile-view body:not(.admin-page) .home-section-actions a {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
}
