@charset "UTF-8";
/* ==========================================================================
   Alex ເບີນຳໂຊກ — Design System (client side) · compact edition
   Loaded after style.css / multiselect.css / status_buy.css.
   Presentation only: no selectors here change behaviour. Properties that the
   page JavaScript toggles inline (display, keypad colours) are never forced
   with !important.
   ========================================================================== */

:root {
    /* Navy & Gold palette — matches the shop banner and the gold
       "ບ້ານເບີມຸງຄຸນ" logo. Light tints/borders/icons are gold, text accents
       are navy. */
    --navy-950: #081229;
    --navy-900: #0b1f4b;
    --navy-800: #12306e;
    --navy-700: #1b3f8f;
    --navy-100: #e6ecf8;
    --navy-50: #f2f5fb;
    --gold-400: #fbbf24;
    --gold-500: #f5b301;
    --gold-600: #e0a100;

    --brand-50: #fffbeb;
    --brand-100: #fef3c7;
    --brand-200: #fde68a;
    --brand-300: #fcd34d;
    --brand-400: #f5b301;
    --brand-500: #e0a100;
    --brand-600: #1b3f8f;
    --brand-700: #12306e;
    --brand-800: #0b1f4b;

    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --ink-300: #cbd5e1;
    --ink-200: #e2e8f0;
    --ink-100: #f1f5f9;
    --ink-50: #f8fafc;

    --danger: #dc2626;

    --bg: #f4f6fb;
    --surface: #ffffff;
    --line: rgba(11, 31, 75, 0.09);

    --grad-brand: linear-gradient(135deg, #2450b0 0%, #12306e 55%, #0b1f4b 100%);
    --grad-gold: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #e0a100 100%);
    --grad-ink: linear-gradient(160deg, #0b1f4b 0%, #0a1a3e 55%, #081229 100%);
    --on-gold: #0b1f4b;

    --r-sm: 8px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --r-pill: 999px;

    --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
    --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 6px -2px rgba(15, 23, 42, 0.08);
    --sh-md: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px -12px rgba(15, 23, 42, 0.2);
    --sh-lg: 0 20px 40px -16px rgba(15, 23, 42, 0.3);
    --sh-brand: 0 6px 14px -8px rgba(11, 31, 75, 0.65);
    --sh-gold: 0 6px 14px -8px rgba(224, 161, 0, 0.8);
    --ring: 0 0 0 3px rgba(245, 179, 1, 0.28);

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --font: "Inter", "Noto Sans Lao Looped", "Noto Sans Lao", "Phetsarath", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 60px;
    --ctl-h: 40px;

    /* legacy variables used by existing inline styles */
    --primary-color: #12306e;
    --primary-hover: #0b1f4b;
    --secondary-color: #f8fafc;
    --text-color: #1e293b;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body,
input,
select,
textarea,
button {
    font-family: var(--font);
}

/* `hidden` turns body into a scroll container and silently breaks the sticky
   header; `clip` prevents sideways scroll without that side effect. */
html,
body {
    overflow-x: clip;
}

body {
    background: var(--bg);
    color: var(--ink-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input,
select,
textarea {
    background-color: #fff;
}

body.nav-open {
    overflow: hidden;
}

body.nav-open .floating-wa,
body.nav-open .fab-top,
body.nav-open .pwa-banner {
    opacity: 0;
    pointer-events: none;
}

::selection {
    background: var(--brand-200);
    color: var(--ink-900);
}

a,
button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid rgba(245, 179, 1, 0.7);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5 {
    color: var(--ink-900);
}

img {
    max-width: 100%;
}

.container {
    padding-left: 16px;
    padding-right: 16px;
}

main.container {
    min-height: 40vh;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.main-header {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.main-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--grad-gold);
}

.main-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px -14px rgba(15, 23, 42, 0.45);
}

.nav-container {
    height: var(--header-h);
    gap: 12px;
}

.logo {
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--grad-brand);
    color: var(--gold-400);
    box-shadow: var(--sh-brand), inset 0 0 0 1px rgba(245, 179, 1, 0.35);
    font-size: 1rem;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    gap: 2px;
}

.nav-link {
    color: var(--ink-700);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-700);
    background: var(--brand-50);
}

.dropdown-arrow {
    transition: transform 0.25s var(--ease);
    opacity: 0.7;
}

@media (min-width: 1201px) {
    .dropdown-content {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
        top: calc(100% + 6px);
        left: 0;
        min-width: 190px;
        padding: 5px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        box-shadow: var(--sh-lg);
        z-index: 1100;
    }

    .dropdown-content::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -8px;
        height: 8px;
    }

    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-content a {
        border-radius: 7px;
        padding: 8px 10px;
        font-size: 0.88rem;
        color: var(--ink-700);
    }

    .dropdown-content a:hover {
        background: var(--brand-50);
        color: var(--brand-700);
    }
}

.btn-login-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ink-900);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s var(--ease);
}

.btn-login-nav:hover {
    background: var(--brand-600);
    color: #fff;
}

.mobile-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-600);
    border: 1px solid var(--brand-100);
    font-size: 1.05rem;
    align-items: center;
    justify-content: center;
}

/* Drawer header (mobile) */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sidebar-brand .logo-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.sidebar-brand-text strong {
    font-size: 0.98rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-brand-text small {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-footer {
    display: none;
}

@media (max-width: 1399px) and (min-width: 1201px) {
    .logo-text-full { display: none; }
    .logo-text-short { display: inline; }
    .nav-link { padding: 7px 8px; font-size: 0.86rem; }
}

@media (max-width: 1200px) {
    :root { --header-h: 56px; }

    .logo-text-full { display: none; }
    .logo-text-short { display: inline; }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1px;
        position: fixed;
        top: 0;
        left: 0;
        width: min(84vw, 300px);
        height: 100vh;
        height: 100dvh;
        padding: 0 0 14px;
        background: #fff !important;
        box-shadow: var(--sh-lg);
        border-radius: 0 18px 18px 0;
        z-index: 2000;
        transform: translateX(-105%);
        transition: transform 0.35s var(--ease);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-menu.active {
        left: 0;
        transform: none;
    }

    .sidebar-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 14px;
        margin-bottom: 6px;
        background: var(--grad-brand);
        color: #fff;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .nav-link {
        display: flex;
        width: auto;
        margin: 0 8px;
        padding: 8px 10px;
        gap: 10px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--ink-700);
        font-size: 0.94rem;
    }

    .nav-link:hover {
        background: var(--brand-50);
        color: var(--brand-700);
    }

    .nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin: 0;
        border-radius: 8px;
        background: var(--ink-100);
        color: var(--ink-500);
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .nav-link:hover .nav-icon,
    .nav-link.active .nav-icon {
        background: var(--grad-brand);
        color: #fff;
    }

    .dropdown {
        width: auto;
    }

    .dropdown-content {
        display: block;
        position: static;
        max-height: 0;
        overflow: hidden;
        margin: 0 8px 0 48px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-left: 2px solid var(--brand-100);
        transition: max-height 0.3s var(--ease);
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown.open .dropdown-content {
        max-height: 480px;
    }

    .dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-content a {
        padding: 7px 12px;
        border: 0;
        font-size: 0.88rem;
        color: var(--ink-600);
    }

    .dropdown-content a:hover {
        background: var(--brand-50);
        color: var(--brand-700);
    }

    .sidebar-footer {
        display: block;
        margin: auto 12px 0;
        padding-top: 12px;
    }

    .btn-login-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 11px 14px;
        border-radius: 10px;
        background: var(--ink-900);
        color: #fff;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .desktop-actions {
        display: none !important;
    }

    .sidebar-overlay {
        display: block;
        left: 0;
        width: 100vw;
        background: rgba(15, 23, 42, 0.45);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s var(--ease), visibility 0.3s;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* The drawer lives inside the header's stacking context: lift the whole
       header above the overlay while it is open, and drop the blur so the
       fixed drawer is laid out against the viewport. */
    .main-header:has(.nav-menu.active),
    body.nav-open .main-header {
        z-index: 2100;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: #fff;
    }
}

@media (min-width: 1201px) {
    .sidebar-overlay { display: none !important; }
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb-bar {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 10px 0 0;
    margin-bottom: 2px;
}

.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    background: none;
    font-family: var(--font);
    font-size: 0.82rem;
    color: var(--ink-500);
}

.breadcrumb a {
    color: var(--ink-500);
    gap: 6px;
}

.breadcrumb a:hover {
    color: var(--brand-600);
}

.breadcrumb .separator {
    margin: 0 8px;
    font-size: 0.6rem;
    color: var(--ink-300);
}

.breadcrumb .current {
    color: var(--brand-700);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Titles & sections
   -------------------------------------------------------------------------- */
.page-hero-title {
    text-align: center;
    margin: 14px auto 2px;
}

.gradient-text-anim {
    background: linear-gradient(90deg, #0b1f4b, #1b3f8f, #b07800, #1b3f8f, #0b1f4b);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: themeSlide 6s linear infinite;
    font-weight: 800;
}

.search-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
    padding: 18px 20px;
    margin: 12px auto;
}

.search-title {
    color: var(--ink-900);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    margin: 0 0 14px;
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 10px;
}

.section-head-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink-900);
}

.section-head-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-gold);
    color: #7c2d12;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.count-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: var(--r-pill);
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-100);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Forms & buttons
   -------------------------------------------------------------------------- */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-600);
}

.form-control {
    min-height: var(--ctl-h);
    padding: 8px 12px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--ink-900);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder {
    color: var(--ink-400);
}

.form-control:focus {
    border-color: var(--brand-400);
    box-shadow: var(--ring);
    outline: none;
}

.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--grad-brand);
    color: #fff;
    border: 0;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--sh-brand);
    transition: transform 0.15s var(--ease), filter 0.2s;
}

.btn-search:hover {
    background: var(--grad-brand);
    filter: brightness(1.06);
}

.btn-search:active {
    transform: scale(0.98);
}

input[type="checkbox"] {
    accent-color: var(--brand-500);
}

/* --------------------------------------------------------------------------
   Advanced search panel (includes/search_form.php)
   -------------------------------------------------------------------------- */
.search-section .sf-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    margin: 0 0 12px;
}

.search-section .sf-title i {
    color: var(--brand-500);
    font-size: 0.95rem;
}

.sf-top {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 10px;
}

.sf-input {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
}

.sf-input > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-400);
    font-size: 0.85rem;
    pointer-events: none;
}

.sf-input .form-control {
    height: 42px;
    padding-left: 36px !important;
    margin: 0;
}

.search-section .filter-actions {
    display: flex;
    flex: 0 0 auto !important;
    gap: 8px;
    align-items: stretch;
}

.search-section .filter-actions .btn-search,
.search-section .filter-actions .btn-reset {
    width: auto;
    height: 42px;
    margin: 0;
    padding: 0 18px;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.search-section .filter-actions .btn-reset {
    background: #fff;
    color: var(--ink-600);
    border: 1px solid var(--ink-200);
    transition: border-color 0.2s, color 0.2s;
}

.search-section .filter-actions .btn-reset:hover {
    border-color: #fca5a5;
    color: var(--danger);
}

.search-section .split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: var(--r-lg);
    background: var(--ink-50);
    border: 1px solid var(--line);
}

.search-section .left-col,
.search-section .right-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* position boxes stretch to fill all space left of the keypad */
.search-section .left-col {
    flex: 1 1 320px;
    margin: 0 !important;
}

.search-section .right-col {
    flex: 0 0 auto;
}

.search-section .left-col .position-info {
    width: 100%;
}

.search-section .left-col .position-boxes {
    flex: 1 1 0;
    min-width: 0;
}

.search-section .left-col .position-boxes .pos-box {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
}

.sf-label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--ink-500) !important;
}

.sf-label i {
    color: var(--brand-500);
    font-size: 0.72rem;
}

.search-section .position-info {
    display: flex;
    gap: 6px;
    align-items: center;
}

.search-section .position-boxes {
    display: flex;
    gap: 5px;
    margin: 0;
}

.pos-box {
    width: 38px;
    height: 40px;
    flex: 0 0 38px;
    padding: 0;
    border: 1px solid var(--ink-200);
    border-radius: 9px;
    background: #fff;
    color: var(--brand-700);
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pos-box:focus {
    border-color: var(--brand-400);
    box-shadow: var(--ring);
}

#prefixBtn {
    height: 40px;
    min-height: 0;
    width: auto;
    min-width: 66px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--brand-200);
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

.search-section .like-dislike-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-section .mode-toggles {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.btn-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.search-section .keypad-row {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.btn-num {
    width: 36px;
    height: 40px;
    padding: 0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
}

.btn-num:active {
    transform: scale(0.92);
}

.search-section .search-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    margin: 0;
}

/* Multi-select */
.multiselect-btn {
    min-height: var(--ctl-h);
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    color: var(--ink-800);
    font-size: 0.86rem;
    font-weight: 600;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multiselect-btn:hover {
    background: #fff;
    border-color: var(--brand-300);
}

.multiselect-btn::after {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    color: var(--ink-400);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.multiselect-container.active .multiselect-btn {
    border-color: var(--brand-400);
    box-shadow: var(--ring);
}

.multiselect-dropdown {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    padding: 4px;
    margin-top: 6px;
    max-height: 280px;
    min-width: 190px;
}

.multiselect-option {
    border-radius: 7px;
    padding: 7px 9px;
    font-size: 0.88rem;
}

.multiselect-option:hover {
    background: var(--brand-50);
}

.multiselect-option label {
    cursor: pointer;
    flex: 1;
}

@media (max-width: 1100px) {
    .search-section .split-layout {
        flex-direction: column;
        align-items: stretch;
    }

    /* stacked vertically here, so the 320px basis must not become a height */
    .search-section .left-col {
        flex: 0 0 auto;
    }

    .search-section .position-info {
        width: 100%;
    }

    .search-section .position-boxes {
        flex: 1 1 0;
        min-width: 0;
    }

    .search-section .position-boxes .pos-box {
        flex: 1 1 0;
        width: 0 !important;
        min-width: 0;
    }

    .search-section .keypad-row {
        flex: 1;
    }

    .btn-num {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    .search-section .search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .search-section .sf-top {
        flex-wrap: wrap;
    }

    .search-section .sf-input {
        flex: 1 1 100%;
    }

    .search-section .filter-actions {
        flex: 1 1 100% !important;
        width: 100%;
    }

    .search-section .filter-actions .btn-search,
    .search-section .filter-actions .btn-reset {
        flex: 1 1 0 !important;
        height: 42px;
        padding: 0 10px !important;
    }

    .search-section .split-layout {
        margin-bottom: 10px !important;
        gap: 10px !important;
        padding: 10px;
    }

    #filterForm .mobile-keypad-stack {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        align-items: center !important;
    }

    #filterForm .mobile-keypad-stack .mode-toggles {
        width: 100% !important;
        margin: 0 !important;
    }

    #filterForm .mobile-keypad-stack .mode-toggles button {
        flex: 1 !important;
    }

    #filterForm .mobile-keypad-stack .keypad-row {
        width: 100% !important;
        margin: 0 !important;
        gap: 4px !important;
    }

    #filterForm .mobile-keypad-stack .btn-num {
        height: 40px !important;
        font-size: 1rem !important;
    }

    #prefixBtn {
        width: auto !important;
        min-width: 58px;
        font-size: 0.85rem !important;
        padding: 0 8px !important;
    }

    #filterForm .search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    #filterForm .multiselect-btn {
        padding: 8px 9px;
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    #filterForm .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* --------------------------------------------------------------------------
   Filter bar (all_numbers / provider / number_group)
   -------------------------------------------------------------------------- */
.filter-bar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
    padding: 12px 14px;
    margin: 8px 0 12px;
}

.filter-form {
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 769px) {
    .filter-form {
        display: grid;
        grid-template-columns: minmax(180px, 1.6fr) repeat(auto-fit, minmax(110px, 1fr));
        align-items: end;
    }

    .filter-form .filter-group {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .filter-form .filter-actions .filter-reset {
        width: 100%;
    }
}

.filter-group label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-500);
    margin-bottom: 4px;
}

.filter-input,
.filter-select {
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    background-color: #fff;
    color: var(--ink-800);
    font-size: 0.86rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-input {
    width: 100%;
}

.filter-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--brand-400);
    box-shadow: var(--ring);
    background-color: #fff;
}

.filter-search-group {
    flex: 1 1 200px;
    max-width: none;
}

.filter-reset {
    height: 38px;
    padding: 0 12px;
    border-radius: var(--r-md);
    background: var(--ink-100);
    color: var(--ink-600);
    font-size: 0.86rem;
    font-weight: 600;
    justify-content: center;
}

.filter-reset:hover {
    background: var(--brand-50);
    color: var(--brand-700);
}

.filter-count {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--ink-200);
    color: var(--ink-500);
    font-size: 0.84rem;
}

.filter-count strong {
    color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   Toolbar / copy button
   -------------------------------------------------------------------------- */
.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 8px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink-700);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.btn-copy i {
    color: var(--brand-500);
}

.btn-copy:hover {
    border-color: var(--brand-300);
    color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   Number table (desktop) — dense rows
   -------------------------------------------------------------------------- */
.number-table-container {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
    padding-bottom: 0;
    margin-bottom: 1rem;
    overflow: hidden !important;
}

.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: var(--ink-300) transparent;
}

.number-table {
    border-collapse: separate;
    border-spacing: 0;
}

.number-table th {
    background: var(--ink-50);
    color: var(--ink-500);
    font-size: 0.76rem !important;
    font-weight: 700;
    padding: 9px 10px;
    border-bottom: 1px solid var(--ink-200);
}

.number-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--ink-100);
    color: var(--ink-700);
    font-size: 0.86rem !important;
}

.number-table tbody tr:nth-child(even) td {
    background: #fcfcfd;
}

.number-table tbody tr:last-child td {
    border-bottom: 0;
}

.number-table tbody tr:hover td {
    background: var(--brand-50);
}

.number-table td:first-child {
    color: var(--ink-400);
    font-weight: 600;
    font-size: 0.8rem !important;
    font-variant-numeric: tabular-nums;
}

.number-table td:nth-child(2) {
    font-size: 1rem !important;
}

.number-display {
    font-family: "Inter", var(--font);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
}

.price-tag {
    color: var(--danger);
    font-weight: 800;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.badge-category {
    padding: 2px 9px;
    border-radius: var(--r-pill);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.5;
}

.badge-category[style*="#ffd700"] {
    background: var(--grad-gold) !important;
    color: #78350f !important;
}

.badge-category[style*="#e2e8f0"] {
    background: var(--ink-100) !important;
    color: var(--ink-600) !important;
}

.sim-type-text {
    font-size: 0.82rem;
    color: var(--ink-600);
}

.group-text {
    font-size: 0.82rem;
    color: var(--ink-600);
    margin: 0 auto;
}

.btn-meaning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 0.78rem;
    transition: background 0.2s;
}

.btn-meaning::before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.62rem;
    color: #6366f1;
}

.btn-meaning:hover {
    background: #e0e7ff;
    transform: none;
}

.status-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--grad-gold);
    color: var(--on-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    border: 0;
    box-shadow: none;
    white-space: nowrap;
    transition: filter 0.2s, transform 0.15s;
}

.status-buy:not([style*="pointer-events"])::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.68rem;
}

.status-buy:hover {
    background: var(--grad-gold);
    color: var(--on-gold);
    transform: none;
    filter: brightness(1.05);
    box-shadow: var(--sh-gold);
}

.status-buy[style*="pointer-events"] {
    opacity: 0.9;
}

.btn-buy-direct {
    border-radius: var(--r-pill) !important;
    padding: 4px 12px !important;
    font-size: 0.78rem;
    box-shadow: none !important;
}

.btn-buy-direct:hover {
    filter: brightness(1.05);
}

.btn-buy-direct[style*="#ea580c"] {
    background: var(--grad-gold) !important;
    color: var(--on-gold) !important;
}

/* Mobile: compact cards for the shared 10-column number table
   (index / provider / number_group / search results). */
@media (max-width: 768px) {
    .number-table-container {
        background: transparent;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .number-table-container .table-responsive {
        overflow: visible;
    }

    .number-table-container .number-table {
        min-width: 0;
        display: block;
    }

    .number-table-container .number-table thead {
        display: none;
    }

    .number-table-container .number-table tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .number-table-container .number-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding: 10px 12px 10px 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--sh-xs);
        position: relative;
        overflow: hidden;
    }

    .number-table-container .number-table tbody tr::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--grad-gold);
    }

    .number-table-container .number-table tbody tr td,
    .number-table-container .number-table tbody tr:nth-child(even) td,
    .number-table-container .number-table tbody tr:hover td {
        background: transparent;
    }

    .number-table-container .number-table td {
        display: block;
        padding: 0 !important;
        border: 0;
        text-align: left;
        white-space: nowrap !important;
        font-size: 0.8rem !important;
        min-width: 0;
    }

    .number-table-container .number-table td[colspan] {
        flex: 1 1 100%;
        text-align: center;
        white-space: normal !important;
        padding: 16px !important;
    }

    /* line 1: index · number · price */
    .number-table-container .number-table td:nth-child(1) {
        order: 1;
        font-size: 0.7rem !important;
        color: var(--ink-400);
        min-width: 20px;
    }

    .number-table-container .number-table td:nth-child(2) {
        order: 2;
        flex: 1 0 calc(100% - 172px);
    }

    .number-table-container .number-table td:nth-child(2) .number-display {
        font-size: 1.15rem !important;
    }

    .number-table-container .number-table td:nth-child(3) {
        order: 3;
        margin-left: auto;
        text-align: right;
    }

    .number-table-container .number-table td:nth-child(3) .price-tag {
        font-size: 0.95rem;
    }

    /* line 2: small info chips */
    .number-table-container .number-table td:nth-child(5),
    .number-table-container .number-table td:nth-child(8),
    .number-table-container .number-table td:nth-child(10),
    .number-table-container .number-table td:nth-child(9) {
        padding: 1px 7px !important;
        border-radius: 6px;
        background: var(--ink-100) !important;
        color: var(--ink-600);
        font-size: 0.72rem !important;
        font-weight: 600;
        line-height: 1.6;
    }

    .number-table-container .number-table td:nth-child(5) { order: 4; }
    .number-table-container .number-table td:nth-child(7) { order: 5; }
    .number-table-container .number-table td:nth-child(8) { order: 6; }
    .number-table-container .number-table td:nth-child(10) { order: 7; }

    .number-table-container .number-table td:nth-child(8) .sim-type-text {
        font-size: inherit;
        color: inherit;
    }

    .number-table-container .number-table td:nth-child(7) .badge-category {
        font-size: 0.7rem;
        padding: 1px 8px;
    }

    .number-table-container .number-table td:nth-child(10)::before {
        content: "ຜົນລວມ ";
        font-weight: 500;
        color: var(--ink-400);
    }

    /* number group: own small line when present, hidden when the row has none */
    .number-table-container .number-table td:nth-child(9) {
        order: 8;
        flex: 1 1 100%;
        min-width: 0;
        padding: 0 !important;
        background: transparent !important;
        overflow: hidden;
    }

    .number-table-container .number-table td:nth-child(9):has(.group-text[title=""]),
    .number-table-container .number-table td:nth-child(9):has(.group-text[title="-"]) {
        display: none;
    }

    .number-table-container .number-table td:nth-child(9) .group-text {
        max-width: none;
        font-size: 0.74rem;
        color: var(--brand-700);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .number-table-container .number-table td:nth-child(9) .group-text::before {
        content: "\f5fd  ";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.65rem;
        margin-right: 4px;
    }

    /* line 3: actions */
    .number-table-container .number-table td:nth-child(6) {
        order: 9;
        flex: 1 1 40%;
    }

    .number-table-container .number-table td:nth-child(4) {
        order: 10;
        flex: 1 1 40%;
    }

    .number-table-container .number-table td:nth-child(6) .btn-meaning,
    .number-table-container .number-table td:nth-child(4) .status-buy,
    .number-table-container .number-table td:nth-child(4) .btn-buy-direct {
        display: flex !important;
        width: 100%;
        height: 34px;
        justify-content: center;
        align-items: center;
        border-radius: 9px !important;
        font-size: 0.84rem;
    }
}

/* all_numbers.php mobile cards (own markup) — same compact look */
.number-grid {
    gap: 8px !important;
}

.number-grid .premium-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--sh-xs);
    padding: 10px 12px 10px 14px;
}

.number-grid .premium-card::before {
    width: 3px;
    background: var(--grad-gold) !important;
}

.number-grid .premium-card > .cc-row {
    border: 0;
    padding: 0;
    min-width: 0;
    gap: 4px;
}

.number-grid .premium-card > .cc-row:nth-child(-n+3) .cc-label {
    display: none;
}

.number-grid .premium-card > .cc-row:nth-child(1) {
    flex: 1 0 calc(100% - 150px);
}

.number-grid .premium-card > .cc-row:nth-child(2) {
    margin-left: auto;
}

.number-grid .premium-card > .cc-row:nth-child(3),
.number-grid .premium-card > .cc-row:nth-child(4) {
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--ink-100);
}

.number-grid .premium-card > .cc-row:nth-child(3) .cc-value,
.number-grid .premium-card > .cc-row:nth-child(4) .cc-value,
.number-grid .premium-card > .cc-row:nth-child(4) .cc-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-600);
}

.number-grid .premium-card > .cc-row:nth-child(4) .cc-label {
    color: var(--ink-400);
    font-weight: 500;
}

.number-grid .premium-card > .cc-tags {
    flex: 1 1 auto;
    margin: 0;
    gap: 4px;
}

.number-grid .premium-card > .cc-actions {
    flex: 1 1 100%;
    margin: 0;
    padding-top: 2px;
    border-top: 0;
    gap: 6px;
}

.number-grid .cc-value.number {
    font-family: "Inter", var(--font);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: var(--ink-900);
}

.number-grid .cc-value.price {
    font-size: 0.95rem;
    color: var(--danger);
    font-weight: 800;
}

.number-grid .cc-tag {
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 0.7rem;
}

.number-grid .cc-tag.ausp {
    background: var(--grad-gold);
    color: #78350f;
}

.number-grid .cc-btn {
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 0.84rem;
}

.number-grid .cc-btn-outline {
    background: #eef2ff;
    color: #4338ca;
    border: 0;
}

.number-grid .cc-btn-primary {
    background: var(--grad-gold);
    color: var(--on-gold);
}

/* --------------------------------------------------------------------------
   Pagination (shared)
   -------------------------------------------------------------------------- */
.pager-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.pager-link,
.pager-gap {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

.pager-link {
    background: #fff;
    border: 1px solid var(--ink-200);
    color: var(--ink-600);
    transition: border-color 0.2s, color 0.2s;
}

.pager-link:hover {
    border-color: var(--brand-300);
    color: var(--brand-700);
}

.pager-link.is-active {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
}

.pager-gap {
    color: var(--ink-400);
    min-width: 18px;
    padding: 0 2px;
}

.pager-summary {
    color: var(--ink-500);
    font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Home page
   -------------------------------------------------------------------------- */
.main-slider {
    max-width: calc(1400px - 32px);
    width: calc(100% - 32px) !important;
    margin: 12px auto 0;
    aspect-ratio: 3789 / 909;
    border-radius: var(--r-xl);
    box-shadow: var(--sh-md) !important;
    isolation: isolate;
}

.main-slider .swiper-wrapper,
.main-slider .swiper-slide {
    height: 100%;
}

.main-slider .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
}

.main-slider .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #fff;
    opacity: 0.6;
    transition: width 0.3s var(--ease), opacity 0.3s;
}

.main-slider .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 7px;
    opacity: 1;
    background: var(--brand-400);
}

.forecast-home-input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: stretch;
}

.forecast-home-input-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-500);
    font-size: 1rem;
    z-index: 2;
    line-height: 1;
    pointer-events: none;
}

.prefix-switch {
    display: flex;
    align-items: stretch;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.prefix-switch-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 64px;
    padding: 0 10px;
    border-radius: var(--r-md);
    border: 1px solid var(--brand-200);
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 800;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.prefix-switch-inner::after {
    content: "\f362";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.62rem;
    opacity: 0.6;
}

.prefix-switch-inner.is-030 {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff;
}

.forecast-home-input {
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    padding: 0 12px 0 34px !important;
    border: 1px solid var(--brand-200) !important;
    border-radius: var(--r-md) !important;
    background: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-900);
}

.forecast-home-input:focus {
    border-color: var(--brand-400) !important;
    box-shadow: var(--ring) !important;
}

.forecast-home-btn {
    width: auto;
    padding: 0 18px;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    border-radius: var(--r-md);
}

.view-all-wrap {
    text-align: center;
    margin: 16px 0 14px;
    padding: 0 15px;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal,
#bookingModal,
#copyModal {
    z-index: 10050 !important;
}

.modal {
    background-color: rgba(15, 23, 42, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 16px;
    box-sizing: border-box;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    background: #fff;
    animation: themePop 0.3s var(--ease);
}

.modal-header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--ink-100);
    background: var(--brand-50);
}

.modal-header h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink-900);
}

.modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff;
    color: var(--ink-500);
    font-size: 20px;
    z-index: 2;
}

.modal-close:hover,
.modal-close:focus {
    background: var(--ink-100);
    color: var(--ink-900);
}

.modal-body {
    padding: 4px 16px 16px;
}

.detail-row {
    padding: 8px 0;
    border-bottom: 1px dashed var(--ink-100);
    font-size: 0.9rem;
    align-items: center;
    gap: 10px;
}

.detail-label {
    color: var(--ink-500);
}

.detail-value {
    color: var(--ink-900);
}

.number-value {
    font-family: "Inter", var(--font);
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
}

.price-value {
    color: var(--danger);
    font-weight: 800;
    font-size: 1.1rem;
}

.contact-actions {
    background: var(--grad-brand);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    padding: 14px 16px;
    margin: 14px -16px -16px;
}

.contact-title {
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.contact-buttons-grid {
    gap: 12px;
    flex-wrap: wrap;
}

.contact-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
}

.booking-pulse-btn {
    padding: 11px !important;
    font-size: 1rem !important;
    margin-bottom: 12px !important;
}

@media (max-width: 576px) {
    .modal {
        align-items: flex-end !important;
        padding: 0;
    }

    .modal-content {
        max-width: none;
        border-radius: 18px 18px 0 0;
        animation: themeSheet 0.35s var(--ease);
        max-height: 92vh;
        overflow-y: auto;
    }

    .modal-header::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 4px;
        background: var(--ink-300);
        margin: -4px auto 10px;
    }

    .contact-actions {
        border-radius: 0;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
}

/* --------------------------------------------------------------------------
   Floating actions
   -------------------------------------------------------------------------- */
.fab-top {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-600);
    border: 1px solid var(--line);
    box-shadow: var(--sh-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.fab-top[style*="block"] {
    display: flex !important;
}

.fab-top:hover {
    background: var(--brand-500);
    color: #fff;
}

@media (max-width: 576px) {
    .fab-top { right: 20px; bottom: 76px; width: 38px; height: 38px; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer.site-footer,
.site-footer {
    position: relative;
    background: var(--grad-ink);
    color: rgba(255, 255, 255, 0.75);
    border-top: 0;
    margin-top: 24px !important;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--grad-gold);
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 28px;
    padding: 28px 16px 18px !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.84rem;
    margin: 0 0 12px;
    max-width: 440px;
}

.footer-contact-item {
    display: flex;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-contact-item i {
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    color: var(--brand-400);
    font-size: 0.8rem;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item a:hover {
    color: var(--brand-300);
}

.footer-col {
    text-align: left;
}

.footer-col-title {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    border-bottom: 0;
    padding-bottom: 0;
    margin: 0 0 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 2px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    transition: color 0.2s;
}

.footer-links a i {
    font-size: 0.55rem;
    color: var(--brand-400);
}

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

.footer-bottom {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 16px !important;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 20px 16px 10px !important;
    }

    .footer-info {
        margin-bottom: 8px;
    }

    .footer-col-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 11px 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-col-title::after {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.5);
        transition: transform 0.3s;
    }

    .footer-col-title.active::after {
        transform: rotate(180deg);
    }

    .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease), padding 0.3s;
    }

    .footer-links.show {
        max-height: 320px;
        padding-top: 6px;
    }
}

/* --------------------------------------------------------------------------
   Booking modal, copy modal & PWA banner (markup in includes/footer.php)
   -------------------------------------------------------------------------- */
.booking-modal-overlay,
.copy-modal {
    background: rgba(15, 23, 42, 0.5) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 16px;
    box-sizing: border-box;
}

.booking-modal,
.copy-modal-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    overflow: hidden;
}

.copy-modal-box {
    animation: themePop 0.3s var(--ease);
}

.booking-modal-header,
.copy-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: var(--brand-50);
    border-bottom: 1px solid var(--ink-100);
}

.booking-modal-header h3,
.copy-modal-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-modal-header h3 i,
.copy-modal-head h3 i {
    color: var(--brand-500);
}

.close-modal {
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    font-family: inherit;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #fff;
    color: var(--ink-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.booking-modal-body,
.copy-modal-body {
    padding: 14px 16px;
}

.bk-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--ink-700);
}

.bk-label .req {
    color: var(--danger);
}

.bk-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink-900);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bk-input:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: var(--ring);
}

.bk-field {
    margin-bottom: 10px;
}

.btn-submit-booking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: var(--r-md);
    background: var(--grad-brand);
    font-size: 1rem;
}

.bk-note {
    font-size: 0.76rem;
    text-align: center;
    margin: 8px 0 0;
    color: var(--ink-500);
}

.copy-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 10px;
}

.copy-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-700);
    transition: border-color 0.2s, background 0.2s;
}

.copy-option:has(input:checked) {
    border-color: var(--brand-300);
    background: var(--brand-50);
    color: var(--brand-800);
}

.copy-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--brand-500);
}

.copy-hint {
    font-size: 0.82rem;
    color: var(--ink-500);
    margin: 0;
}

.copy-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.btn-ghost,
.btn-primary {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: var(--r-md);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: filter 0.2s, background 0.2s;
}

.btn-ghost {
    background: var(--ink-100);
    color: var(--ink-700);
}

.btn-ghost:hover {
    background: var(--ink-200);
}

.btn-primary {
    background: var(--grad-brand);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.pwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 16px;
    z-index: 10000;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--brand-200);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    padding: 12px 14px;
    animation: themeFadeUp 0.4s var(--ease);
}

.pwa-banner-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pwa-banner img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pwa-banner-title {
    font-weight: 800;
    color: var(--ink-900);
    font-size: 0.95rem;
}

.pwa-banner-hint {
    font-size: 0.8rem;
    color: var(--ink-600);
    line-height: 1.4;
    margin-bottom: 8px;
}

.pwa-banner-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pwa-btn {
    border: 0;
    border-radius: var(--r-sm);
    padding: 7px 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
}

.pwa-btn-install {
    background: var(--grad-brand);
    color: #fff;
}

.pwa-btn-close {
    background: var(--ink-100);
    color: var(--ink-700);
}

.swal2-popup {
    border-radius: 18px !important;
    font-family: var(--font) !important;
}

.swal2-styled {
    border-radius: 10px !important;
    font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   Group / provider chooser
   -------------------------------------------------------------------------- */
.chooser {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chooser p {
    color: var(--ink-500);
    margin: 0;
}

.chooser-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 860px;
    margin: 16px auto 0;
}

.chooser-item {
    flex: 1 1 140px;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    color: var(--ink-800);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.chooser-item:hover {
    border-color: var(--brand-300);
    color: var(--brand-700);
    box-shadow: var(--sh-md);
}

.chooser-item .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-page-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 16px;
    box-shadow: var(--sh-sm);
}

.contact-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ink-900);
}

.contact-card-head .ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    background: var(--ink-50);
    color: var(--ink-800);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.contact-row:hover {
    background: var(--brand-50);
}

.contact-row .go {
    margin-left: auto;
    color: var(--ink-400);
    font-size: 0.75rem;
}

.contact-row small {
    display: block;
    font-weight: 500;
    color: var(--ink-500);
    font-size: 0.76rem;
}

.contact-store {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--ink-200);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-600);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Forecast result blocks & meanings
   -------------------------------------------------------------------------- */
.forecast-block-number {
    background: var(--grad-brand) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--sh-brand) !important;
    padding: 1rem !important;
    position: relative;
    overflow: hidden;
}

.forecast-block-meanings {
    border: 1px solid var(--line) !important;
    border-radius: var(--r-xl) !important;
    box-shadow: var(--sh-sm) !important;
}

.meaning-card {
    border-radius: var(--r-xl) !important;
    box-shadow: var(--sh-sm) !important;
}

/* --------------------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .main-slider {
        display: none !important;
    }

    .search-section {
        padding: 14px 12px;
        margin: 10px auto;
        border-radius: var(--r-lg);
    }

    .filter-bar {
        padding: 10px;
    }

    .filter-form {
        gap: 6px !important;
    }

    .filter-group {
        min-width: 0;
    }

    .filter-reset {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes themeSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes themePop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes themeSheet {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@keyframes themeFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

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