/* =====================================================================================
   Swapio website theme
   -------------------------------------------------------------------------------------
   CHANGE THE BRAND HERE. Every color on the website (including the Tailwind utilities
   such as bg-primary, text-secondary, border-primary ...) reads these variables, so this
   :root block is the only place to edit. Values follow BRANDING.md.
   ===================================================================================== */
:root {
    --sw-primary: #087FF5;
    --sw-primary-dark: #0666C4;
    --sw-primary-soft: #E6F2FE;
    --sw-secondary: #35D99A;
    --sw-secondary-dark: #1FB57D;
    --sw-secondary-soft: #E7FAF3;
    --sw-ink: #0B1B3F;
    --sw-text: #334155;
    --sw-muted: #64748B;
    --sw-border: #E2E8F0;
    --sw-surface: #F5F8FC;
    --sw-white: #FFFFFF;
    --sw-danger: #EF4444;
    --sw-warning: #F59E0B;

    --sw-gradient: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-secondary) 100%);

    --sw-font-heading: 'Poppins', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sw-font-body: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sw-font-arabic: 'Cairo', 'Inter', system-ui, sans-serif;

    --sw-radius-card: 12px;
    --sw-radius-btn: 10px;
    --sw-shadow: 0 4px 16px rgba(11, 27, 63, 0.08);
    --sw-shadow-raised: 0 8px 24px rgba(11, 27, 63, 0.12);
    --sw-header-h: 72px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--sw-font-body);
    font-size: 16px;
    color: var(--sw-text);
    background-color: var(--sw-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .sw-heading {
    font-family: var(--sw-font-heading);
    color: var(--sw-ink);
    letter-spacing: -0.01em;
}

/* Arabic / RTL */
[dir="rtl"] body, body[dir="rtl"], :lang(ar) body, [dir="rtl"], :lang(ar) {
    font-family: var(--sw-font-arabic);
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { font-family: var(--sw-font-arabic); letter-spacing: 0; }

a { transition: color .2s ease; }
::selection { background: var(--sw-primary-soft); color: var(--sw-ink); }
img { max-width: 100%; }

/* Default look for form fields. :where() keeps specificity at zero, so any Tailwind
   utility on the element still wins. */
:where(input[type="text"], input[type="email"], input[type="password"], input[type="number"],
       input[type="tel"], input[type="search"], input[type="date"], input[type="url"],
       input:not([type]), textarea, select) {
    font-family: inherit;
    color: var(--sw-ink);
    border-color: var(--sw-border);
    border-radius: var(--sw-radius-btn);
}
input::placeholder, textarea::placeholder { color: var(--sw-muted); opacity: 1; }
input:focus, textarea:focus, select:focus { outline: none; }
:where(input, textarea, select):focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-primary) 22%, transparent);
    border-color: var(--sw-primary) !important;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--sw-primary); }

/* Tailwind's legacy gray/blue utilities that the views still use for accents */
.text-blue-600, .text-blue-700 { color: var(--sw-primary) !important; }
.hover\:bg-blue-100:hover, .bg-blue-100 { background-color: var(--sw-primary-soft) !important; }
.hover\:border-blue-800:hover { border-color: var(--sw-primary) !important; }
.bg-red-700 { background-color: var(--sw-danger) !important; }
.text-gray-500 { color: var(--sw-muted) !important; }
.text-black { color: var(--sw-ink) !important; }

/* Tailwind container: centred, max 1280px content */
.container, .sw-container {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px;
    padding-right: 16px;
}
.sw-container { max-width: 1320px; }
@media (min-width: 640px) { .sw-container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .sw-container { padding-left: 32px; padding-right: 32px; } }

/* ---------- Buttons ---------- */
.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--sw-radius-btn);
    font-family: var(--sw-font-body);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.sw-btn:active { transform: scale(.98); }
.sw-btn:disabled, .sw-btn[disabled] { opacity: .55; cursor: not-allowed; }
.sw-btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.sw-btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.sw-btn-block { width: 100%; }

.sw-btn-primary { background: var(--sw-primary); color: #fff !important; }
.sw-btn-primary:hover { background: var(--sw-primary-dark); box-shadow: var(--sw-shadow); }

.sw-btn-secondary { background: var(--sw-white); color: var(--sw-primary) !important; border-color: var(--sw-primary); }
.sw-btn-secondary:hover { background: var(--sw-primary-soft); }

.sw-btn-gradient { background: var(--sw-gradient); color: #fff !important; box-shadow: 0 6px 18px color-mix(in srgb, var(--sw-primary) 28%, transparent); }
.sw-btn-gradient:hover { filter: brightness(1.05); box-shadow: 0 10px 26px color-mix(in srgb, var(--sw-primary) 34%, transparent); }

.sw-btn-success { background: var(--sw-secondary); color: var(--sw-ink) !important; }
.sw-btn-success:hover { background: var(--sw-secondary-dark); color: #fff !important; }

.sw-btn-ghost { background: transparent; color: var(--sw-ink) !important; }
.sw-btn-ghost:hover { background: var(--sw-primary-soft); color: var(--sw-primary) !important; }

.sw-btn-danger { background: var(--sw-white); color: var(--sw-danger) !important; border-color: color-mix(in srgb, var(--sw-danger) 40%, transparent); }
.sw-btn-danger:hover { background: #FEF2F2; }

.sw-btn-light { background: #fff; color: var(--sw-primary) !important; }
.sw-btn-light:hover { background: var(--sw-primary-soft); }

.sw-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--sw-ink);
    font-size: 20px;
    background: transparent;
    transition: background-color .2s ease, color .2s ease;
    cursor: pointer;
}
.sw-icon-btn:hover { background: var(--sw-primary-soft); color: var(--sw-primary); }
.sw-icon-btn .sw-dot {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sw-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
    box-sizing: content-box;
}

/* ---------- Form fields ---------- */
.sw-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--sw-ink); }
.sw-input, .sw-select, .sw-textarea {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: var(--sw-white);
    border: 1px solid var(--sw-border) !important;
    border-radius: var(--sw-radius-btn) !important;
    color: var(--sw-ink);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sw-textarea { height: auto; min-height: 120px; padding: 12px 14px; }
.sw-input:focus, .sw-select:focus, .sw-textarea:focus, .sw-input-group:focus-within {
    border-color: var(--sw-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-primary) 18%, transparent);
    outline: none;
}
.sw-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    background: var(--sw-white);
    border: 1px solid var(--sw-border) !important;
    border-radius: var(--sw-radius-btn) !important;
}
.sw-input-group input, .sw-input-group select { border: 0 !important; height: 100%; background: transparent; box-shadow: none !important; min-width: 0; }
.sw-input-group .sw-sep { width: 1px; height: 22px; background: var(--sw-border); }
.sw-field { margin-bottom: 18px; }
.sw-help { font-size: 13px; color: var(--sw-muted); margin-top: 6px; }

/* ---------- Cards, chips, badges ---------- */
.sw-card {
    background: var(--sw-white);
    border-radius: var(--sw-radius-card);
    box-shadow: var(--sw-shadow);
}
.sw-card-pad { padding: 20px; }
@media (min-width: 768px) { .sw-card-pad { padding: 28px; } }
.sw-card-hover { transition: box-shadow .25s ease, transform .25s ease; }
.sw-card-hover:hover { box-shadow: var(--sw-shadow-raised); transform: translateY(-2px); }

.sw-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--sw-primary-soft);
    color: var(--sw-primary) !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
    border: 0;
    cursor: pointer;
}
.sw-chip:hover, .sw-chip.is-active, .sw-chip.active { background: var(--sw-primary); color: #fff !important; }

.sw-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.sw-badge-boost { background: var(--sw-gradient); color: #fff; }
.sw-badge-new { background: var(--sw-secondary-soft); color: var(--sw-secondary-dark); }
.sw-badge-soft { background: var(--sw-primary-soft); color: var(--sw-primary); }
.sw-badge-warn { background: #FEF3C7; color: #B45309; }
.sw-badge-danger { background: #FEE2E2; color: #B91C1C; }
.sw-badge-muted { background: var(--sw-surface); color: var(--sw-muted); border: 1px solid var(--sw-border); }

/* ---------- Loader ---------- */
.loader { background: var(--sw-white) !important; }
.loader img { width: 72px; height: 72px; }
.sw-loader-ring {
    width: 44px; height: 44px; margin-top: 18px; border-radius: 50%;
    border: 3px solid var(--sw-primary-soft); border-top-color: var(--sw-primary);
    animation: sw-spin .8s linear infinite;
}
@keyframes sw-spin { to { transform: rotate(360deg); } }

/* =====================================================================================
   Header
   ===================================================================================== */
.sw-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--sw-white);
    box-shadow: 0 1px 0 var(--sw-border), 0 6px 20px rgba(11, 27, 63, 0.05);
}
.sw-header__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--sw-header-h);
}
.sw-header__logo { flex: 0 0 auto; display: flex; align-items: center; }
.sw-header__logo img { height: 46px; width: auto; max-width: none; }
.sw-header__search { flex: 1 1 auto; max-width: 620px; margin: 0 auto; }
.sw-search {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 6px 0 16px;
    background: var(--sw-surface);
    border: 1px solid var(--sw-border);
    border-radius: 999px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.sw-search:focus-within { background: #fff; border-color: var(--sw-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-primary) 16%, transparent); }
.sw-search i { color: var(--sw-muted); font-size: 16px; }
.sw-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    background: transparent;
    border: 0 !important;
    font-size: 15px;
    color: var(--sw-ink);
    box-shadow: none !important;
}
.sw-search button {
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--sw-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: background-color .2s ease;
}
.sw-search button:hover { background: var(--sw-primary-dark); }
.sw-header__actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; list-style: none; margin: 0; padding: 0; }
.sw-header__post { margin-left: 8px; }
.sw-header__user { font-size: 14px; font-weight: 600; color: var(--sw-ink); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-header__mobile-search { display: none; padding-bottom: 12px; }

/* dropdowns in the header (index.js toggles .open on click, hover opens on desktop) */
.sw-header .dropdown { position: relative; list-style: none; }
.sw-header .dropdown > .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    min-width: 220px;
    width: auto;
    padding: 8px;
    background: var(--sw-white);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-card);
    box-shadow: var(--sw-shadow-raised);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 130;
    list-style: none;
}
.sw-header .dropdown > .dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sw-header .dropdown:hover > .dropdown-menu,
.sw-header .dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); top: calc(100% + 10px); }
.sw-header .dropdown-menu.sw-notify { width: 360px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.sw-menu-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px !important;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--sw-ink) !important;
    cursor: pointer;
    line-height: 1.3 !important;
}
.sw-menu-link i { color: var(--sw-muted); font-size: 17px; }
.sw-menu-link:hover { background: var(--sw-primary-soft); color: var(--sw-primary) !important; }
.sw-menu-link:hover i { color: var(--sw-primary); }
.sw-menu-head { padding: 14px 16px; border-bottom: 1px solid var(--sw-border); font-family: var(--sw-font-heading); font-weight: 600; color: var(--sw-ink); font-size: 15px; }
.sw-notify-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sw-border);
    cursor: pointer;
    transition: background-color .2s ease;
}
.sw-notify-item:hover { background: var(--sw-surface); }
.sw-notify-item .sw-notify-icon { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--sw-primary-soft); color: var(--sw-primary); display: flex; align-items: center; justify-content: center; }
.sw-notify-empty { padding: 28px 16px; text-align: center; color: var(--sw-muted); font-size: 14px; }
.sw-notify-all { display: block; padding: 12px; text-align: center; font-weight: 600; font-size: 14px; color: var(--sw-primary) !important; cursor: pointer; }
.sw-notify-all:hover { background: var(--sw-primary-soft); }

/* category navigation row (becomes the mobile drawer) */
.sw-catnav { border-top: 1px solid var(--sw-border); background: var(--sw-white); }
.sw-catnav .menu-items {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.sw-catnav .menu-items::-webkit-scrollbar { display: none; }
.sw-catnav .menu-items > li { padding: 0 !important; border: 0 !important; background: none !important; }
.sw-catnav .menu-item {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    height: 36px;
    padding: 0 14px !important;
    border-radius: 999px;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--sw-text) !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.sw-catnav .menu-item i { font-size: 16px; color: var(--sw-muted); transition: color .2s ease; }
.sw-catnav .menu-item:hover, .sw-catnav .menu-item.is-active { background: var(--sw-primary-soft); color: var(--sw-primary) !important; }
.sw-catnav .menu-item:hover i { color: var(--sw-primary); }
.sw-catnav .sw-drawer-only { display: none !important; }
.sw-catnav .sw-catnav__spacer { flex: 1 1 auto; }
.sw-catnav .sw-catnav__note { font-size: 13px; color: var(--sw-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sw-catnav .sw-catnav__note i { color: var(--sw-secondary-dark); }

/* hamburger (index.js toggles .open on .menu-btn and .menu-items) */
.sw-header .menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; }
.sw-header .menu-btn:hover { background: var(--sw-primary-soft); }
.sw-header .menu-btn__lines, .sw-header .menu-btn__lines::before, .sw-header .menu-btn__lines::after { width: 20px; height: 2px; border-radius: 2px; background: var(--sw-ink); }
.sw-header .menu-btn__lines::before { transform: translateY(-6px); }
.sw-header .menu-btn__lines::after { transform: translateY(6px); }
.sw-header .menu-btn.open .menu-btn__lines { background: transparent; transform: none; }
.sw-header .menu-btn.open .menu-btn__lines::before { transform: rotate(45deg); background: var(--sw-ink); }
.sw-header .menu-btn.open .menu-btn__lines::after { transform: rotate(-45deg); background: var(--sw-ink); }

@media (max-width: 1100px) {
    .sw-header__user { display: none; }
}
@media (max-width: 991px) {
    :root { --sw-header-h: 64px; }
    .sw-header__bar { gap: 8px; }
    .sw-header__logo img { height: 38px; }
    .sw-header__search { display: none; }
    .sw-header__mobile-search { display: block; }
    .sw-header__actions { margin-left: auto; }
    .sw-header .menu-btn { display: flex; }
    .sw-header__post .sw-btn { height: 40px; padding: 0 14px; }
    .sw-catnav { border-top: 0; }
    .sw-catnav .menu-items {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(320px, 86vw);
        height: auto;
        display: block;
        padding: 20px 16px 32px;
        background: var(--sw-white);
        box-shadow: var(--sw-shadow-raised);
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .28s ease;
        z-index: 140;
        line-height: normal;
    }
    [dir="rtl"] .sw-catnav .menu-items { left: auto; right: 0; transform: translateX(105%); }
    .sw-catnav .menu-items.open { transform: translateX(0); }
    .sw-catnav .menu-items > li { display: block; margin-bottom: 2px; }
    .sw-catnav .menu-item { display: flex !important; width: 100% !important; height: 46px; border-radius: 10px; font-size: 15px !important; }
    .sw-catnav .sw-drawer-only { display: block !important; }
    .sw-catnav .sw-catnav__spacer, .sw-catnav .sw-catnav__note { display: none !important; }
    .sw-drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(11, 27, 63, .45); z-index: 135; }
    .menu-items.open ~ .sw-drawer-backdrop { display: block; }
}
@media (max-width: 480px) {
    .sw-header__post .sw-btn span { display: none; }
    .sw-header__post .sw-btn { width: 40px; padding: 0; border-radius: 50%; }
    .sw-header__post { margin-left: 2px; }
    .sw-header__logo img { height: 34px; }
    .sw-icon-btn { width: 38px; height: 38px; font-size: 19px; }
    .sw-hide-xs { display: none !important; }
}
.sw-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--sw-border); }
.sw-drawer-head img { height: 32px; width: auto; }
.sw-drawer-label { padding: 14px 14px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sw-muted); }

/* Jobs chooser modal (opened by modal('jobs') / modal('jobjob')) */
.sw-modal-panel {
    position: relative;
    display: inline-block;
    width: calc(100% - 32px);
    max-width: 520px;
    margin: 12vh auto 0;
    padding: 32px 28px 28px;
    background: var(--sw-white);
    border-radius: 16px;
    box-shadow: var(--sw-shadow-raised);
    text-align: center;
    vertical-align: top;
}
.sw-modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--sw-surface); color: var(--sw-ink); cursor: pointer;
}
.sw-modal-close:hover { background: var(--sw-primary-soft); color: var(--sw-primary); }
.sw-modal-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--sw-primary-soft); color: var(--sw-primary); font-size: 26px; }
.sw-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
@media (max-width: 420px) { .sw-modal-actions { grid-template-columns: 1fr; } }

/* App download sheet (index.js shows .popup on small screens) */
.sw-app-sheet { align-items: flex-end !important; background: rgba(11, 27, 63, .5) !important; }
.sw-app-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 28px 22px 26px;
    border-radius: 20px 20px 0 0;
    background: var(--sw-white);
    text-align: center;
    box-shadow: var(--sw-shadow-raised);
}
.sw-app-sheet__panel .sw-mark { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 12px; }
.sw-store-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw-store-badges img { height: 42px; width: auto; transition: transform .2s ease; }
.sw-store-badges a:hover img { transform: translateY(-2px); }

/* =====================================================================================
   Footer
   ===================================================================================== */
.sw-footer { margin-top: 64px; background: var(--sw-ink); color: rgba(255, 255, 255, .72); }
.sw-footer a { color: rgba(255, 255, 255, .72); }
.sw-footer a:hover { color: #fff; }
.sw-footer__top { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
@media (min-width: 640px) { .sw-footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sw-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px; } }
.sw-footer__brand img { height: 44px; width: auto; }
.sw-footer__brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; max-width: 300px; }
.sw-footer h4 { color: #fff; font-family: var(--sw-font-heading); font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.sw-footer ul { list-style: none; margin: 0; padding: 0; }
.sw-footer li { margin-bottom: 10px; font-size: 14px; }
.sw-social { display: flex; gap: 10px; margin-top: 20px; }
.sw-social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px;
    transition: background-color .2s ease, transform .2s ease;
}
.sw-social a:hover { background: var(--sw-primary); transform: translateY(-2px); }
.sw-footer__bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px;
}
.sw-footer__bottom .sw-pay { height: 26px; width: auto; opacity: .85; filter: grayscale(1) brightness(2.2); }
.sw-go-top {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sw-gradient); color: #fff !important; font-size: 18px;
}

/* =====================================================================================
   Page sections
   ===================================================================================== */
.sw-section { padding: 40px 0 8px; }
.sw-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sw-section-title { font-family: var(--sw-font-heading); font-size: 22px; font-weight: 700; color: var(--sw-ink); line-height: 1.25; }
@media (min-width: 768px) { .sw-section-title { font-size: 26px; } }
.sw-section-sub { font-size: 14px; color: var(--sw-muted); margin-top: 4px; }
.sw-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sw-primary); margin-bottom: 6px; }
.sw-link { color: var(--sw-primary) !important; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sw-link:hover { color: var(--sw-primary-dark) !important; }

/* inner-page title band (replaces the old photo banners) */
.sw-page-hero { position: relative; overflow: hidden; background: var(--sw-gradient); color: #fff; }
.sw-page-hero::after {
    content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}
.sw-page-hero::before {
    content: ''; position: absolute; left: -60px; bottom: -140px; width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.sw-page-hero__inner { position: relative; z-index: 1; padding: 36px 0; }
.sw-page-hero h1 { color: #fff; font-size: 26px; font-weight: 700; }
@media (min-width: 768px) { .sw-page-hero h1 { font-size: 32px; } .sw-page-hero__inner { padding: 44px 0; } }
.sw-page-hero p { color: rgba(255, 255, 255, .88); margin-top: 6px; font-size: 15px; }
.sw-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .85); margin-bottom: 8px; }
.sw-crumbs a { color: rgba(255, 255, 255, .85) !important; }
.sw-crumbs a:hover { color: #fff !important; }

/* Home hero */
.sw-hero { position: relative; overflow: hidden; background: var(--sw-gradient); }
.sw-hero__shape { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .10); pointer-events: none; }
.sw-hero__inner { position: relative; z-index: 1; padding: 56px 0 96px; text-align: center; color: #fff; }
@media (min-width: 1024px) { .sw-hero__inner { padding: 80px 0 120px; } }
.sw-hero h1 { color: #fff; font-weight: 700; font-size: 32px; line-height: 1.15; }
@media (min-width: 768px) { .sw-hero h1 { font-size: 44px; } }
@media (min-width: 1280px) { .sw-hero h1 { font-size: 52px; } }
.sw-hero p.sw-hero__lead { margin: 14px auto 0; max-width: 620px; font-size: 16px; color: rgba(255, 255, 255, .9); }
@media (min-width: 768px) { .sw-hero p.sw-hero__lead { font-size: 18px; } }
.sw-hero__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 18px; backdrop-filter: blur(4px); }
.sw-hero__search {
    display: flex; align-items: center; gap: 8px;
    max-width: 720px; margin: 28px auto 0; padding: 8px 8px 8px 20px;
    background: #fff; border-radius: 999px; box-shadow: 0 16px 40px rgba(11, 27, 63, .18);
}
.sw-hero__search i { color: var(--sw-muted); font-size: 18px; }
.sw-hero__search input { flex: 1 1 auto; min-width: 0; height: 48px; border: 0 !important; font-size: 16px; color: var(--sw-ink); background: transparent; box-shadow: none !important; }
.sw-hero__search .sw-btn { height: 48px; border-radius: 999px; padding: 0 28px; }
@media (max-width: 520px) {
    .sw-hero__search { padding: 6px 6px 6px 14px; }
    .sw-hero__search input { height: 44px; font-size: 15px; }
    .sw-hero__search .sw-btn { height: 44px; padding: 0 16px; }
}
.sw-hero__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.sw-hero__tags a { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff !important; font-size: 13px; font-weight: 500; }
.sw-hero__tags a:hover { background: rgba(255, 255, 255, .28); }
.sw-hero__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.sw-hero__stats div { text-align: center; }
.sw-hero__stats b { display: block; font-family: var(--sw-font-heading); font-size: 22px; color: #fff; }
.sw-hero__stats span { font-size: 13px; color: rgba(255, 255, 255, .85); }

/* category tiles */
.sw-cat-panel { position: relative; z-index: 2; margin-top: -64px; padding: 24px; }
@media (min-width: 768px) { .sw-cat-panel { padding: 28px 32px; } }
.sw-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .sw-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sw-cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
.sw-cat-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
    padding: 18px 10px 16px; border-radius: var(--sw-radius-card);
    background: var(--sw-white); border: 1px solid var(--sw-border);
    cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sw-cat-tile:hover { border-color: transparent; box-shadow: var(--sw-shadow-raised); transform: translateY(-3px); }
.sw-cat-icon {
    width: 60px; height: 60px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--sw-primary-soft); transition: background .2s ease;
}
.sw-cat-icon img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) saturate(100%) invert(35%) sepia(96%) saturate(2780%) hue-rotate(201deg) brightness(99%) contrast(95%); transition: filter .2s ease; }
.sw-cat-tile:hover .sw-cat-icon { background: var(--sw-gradient); }
.sw-cat-tile:hover .sw-cat-icon img { filter: brightness(0) invert(1); }
.sw-cat-tile h3 { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.sw-cat-tile p { margin-top: 2px; font-size: 12px; color: var(--sw-muted); }

/* sub-category cards on the home page */
.sw-subcat-card { height: 100%; padding: 18px; margin: 4px; }
.sw-subcat-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sw-subcat-card__head .sw-cat-icon { width: 40px; height: 40px; border-radius: 12px; }
.sw-subcat-card__head .sw-cat-icon img { width: 20px; height: 20px; }
.sw-subcat-card__chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 76px; overflow: hidden; }

/* ---------- Ad card ---------- */
.sw-ad-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: var(--sw-white); border-radius: var(--sw-radius-card); box-shadow: var(--sw-shadow);
    overflow: hidden; transition: box-shadow .25s ease, transform .25s ease;
}
.sw-ad-card:hover { box-shadow: var(--sw-shadow-raised); transform: translateY(-3px); }
.sw-ad-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sw-surface); }
.sw-ad-card__media img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .4s ease; }
.sw-ad-card:hover .sw-ad-card__media img { transform: scale(1.05); }
.sw-ad-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.sw-ad-card__fav {
    position: absolute; top: 10px; right: 10px; z-index: 1;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .95); color: var(--sw-ink); box-shadow: var(--sw-shadow); font-size: 15px;
}
.sw-ad-card__fav:hover { color: var(--sw-danger); }
.sw-ad-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; flex: 1 1 auto; }
.sw-ad-card__cat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sw-muted); font-weight: 500; }
.sw-ad-card__cat img { width: 14px !important; height: 14px !important; object-fit: contain; opacity: .7; }
.sw-ad-card__title { font-family: var(--sw-font-body); font-size: 15px; font-weight: 600; color: var(--sw-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.sw-ad-card__title a { color: inherit; }
.sw-ad-card__title a:hover { color: var(--sw-primary); }
.sw-ad-card__price { font-family: var(--sw-font-heading); font-size: 18px; font-weight: 700; color: var(--sw-primary); margin-top: 2px; }
.sw-ad-card__price small { font-size: 12px; font-weight: 600; color: var(--sw-muted); margin-right: 2px; }
.sw-ad-card__meta { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--sw-muted); border-top: 1px solid var(--sw-border); }
.sw-ad-card__meta i { color: var(--sw-muted); }
.sw-ad-card__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sw-ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .sw-ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .sw-ad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 380px) { .sw-ad-card__body { padding: 10px 10px 12px; } .sw-ad-card__price { font-size: 16px; } }

/* Boosted band */
.sw-band { position: relative; overflow: hidden; padding: 36px 0 40px; margin-top: 40px; background: var(--sw-ink); }
.sw-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 400px at 100% 0%, color-mix(in srgb, var(--sw-primary) 45%, transparent), transparent 60%), radial-gradient(700px 360px at 0% 100%, color-mix(in srgb, var(--sw-secondary) 30%, transparent), transparent 60%); }
.sw-band > * { position: relative; }
.sw-band .sw-section-title { color: #fff; }
.sw-band .sw-section-sub { color: rgba(255, 255, 255, .72); }
.sw-band .sw-link { color: #fff !important; }
.sw-band .sw-eyebrow { color: var(--sw-secondary); }

/* location tiles */
.sw-loc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) { .sw-loc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .sw-loc-grid .sw-loc--wide { grid-column: span 2; } }
.sw-loc { position: relative; display: block; height: 180px; border-radius: var(--sw-radius-card); overflow: hidden; background: var(--sw-ink); }
@media (min-width: 1024px) { .sw-loc { height: 220px; } }
.sw-loc img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.sw-loc:hover img { transform: scale(1.06); }
.sw-loc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11, 27, 63, .82) 100%); }
.sw-loc__text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.sw-loc__text b { display: block; font-family: var(--sw-font-heading); font-size: 18px; font-weight: 600; }
.sw-loc__text span { font-size: 13px; opacity: .85; }

/* app promo */
.sw-app-promo { position: relative; overflow: hidden; margin-top: 48px; padding: 32px 24px; border-radius: 20px; background: var(--sw-gradient); color: #fff; }
@media (min-width: 768px) { .sw-app-promo { padding: 44px 48px; } }
.sw-app-promo h2 { color: #fff; font-size: 24px; font-weight: 700; }
@media (min-width: 768px) { .sw-app-promo h2 { font-size: 30px; } }
.sw-app-promo p { color: rgba(255, 255, 255, .9); margin-top: 8px; max-width: 520px; }
.sw-app-promo .sw-mark-big { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); width: 200px; height: auto; opacity: .95; filter: drop-shadow(0 20px 40px rgba(11, 27, 63, .25)); }
@media (max-width: 767px) { .sw-app-promo .sw-mark-big { display: none; } }

/* feature strip */
.sw-features { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .sw-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sw-features { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.sw-feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.sw-feature .sw-feature__icon { flex: 0 0 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--sw-primary-soft); color: var(--sw-primary); }
.sw-feature:nth-child(even) .sw-feature__icon { background: var(--sw-secondary-soft); color: var(--sw-secondary-dark); }
.sw-feature h3 { font-size: 15px; font-weight: 600; }
.sw-feature p { font-size: 13px; color: var(--sw-muted); margin-top: 2px; }

/* ---------- Owl carousel ---------- */
.owl-carousel .owl-stage-outer { padding: 6px 2px 18px; margin: -6px -2px 0; }
.owl-carousel .owl-item { padding: 0; }
.owl-carousel .owl-nav { margin: 0 !important; }
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute !important;
    top: 40% !important;
    left: auto !important;
    right: auto !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: var(--sw-shadow-raised) !important;
    color: var(--sw-ink) !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.owl-carousel .owl-nav button.owl-prev { left: -14px !important; }
.owl-carousel .owl-nav button.owl-next { right: -14px !important; }
.owl-carousel .owl-nav button img { display: none; }
.owl-carousel .owl-nav button i { font-size: 18px; line-height: 1; }
.owl-carousel .owl-nav button:hover { background: var(--sw-primary) !important; color: #fff !important; }
.owl-carousel .owl-nav button.disabled { opacity: 0 !important; pointer-events: none; }
.product-details .owl-nav button.owl-prev { left: 4px !important; }
.product-details .owl-nav button.owl-next { right: 4px !important; }

/* =====================================================================================
   Listing / search results
   ===================================================================================== */
.sw-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 16px; }
.sw-filter-card { padding: 18px; }
.sw-filter-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.sw-list-card { display: flex; gap: 16px; padding: 12px; }
.sw-list-card__media { flex: 0 0 38%; max-width: 280px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sw-surface); }
.sw-list-card__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .sw-list-card { flex-direction: column; } .sw-list-card__media { flex-basis: auto; max-width: none; } }
.sw-empty { padding: 56px 20px; text-align: center; color: var(--sw-muted); }
.sw-empty i { font-size: 44px; color: var(--sw-primary); display: block; margin-bottom: 10px; }

/* pagination look for simple links */
.sw-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.sw-pager a, .sw-pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--sw-border); color: var(--sw-ink); font-weight: 600; font-size: 14px; }
.sw-pager a:hover, .sw-pager .is-active { background: var(--sw-primary); border-color: var(--sw-primary); color: #fff; }

/* =====================================================================================
   Ad details
   ===================================================================================== */
.sw-details-gallery { padding: 12px; }
.sw-details-gallery .main-img, .sw-details-gallery .main-video { width: 100%; max-height: 520px; object-fit: contain; border-radius: 10px; background: var(--sw-surface); }
.sw-details-price { font-family: var(--sw-font-heading); font-size: 28px; font-weight: 700; color: var(--sw-primary); }
.sw-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .sw-spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sw-spec { padding: 12px 14px; border-radius: 10px; background: var(--sw-surface); }
.sw-spec span { display: block; font-size: 12px; color: var(--sw-muted); }
.sw-spec b { display: block; font-size: 14px; color: var(--sw-ink); font-weight: 600; margin-top: 2px; }
.sw-seller { display: flex; align-items: center; gap: 12px; }
.sw-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--sw-primary-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--sw-primary); font-weight: 700; }
.thumb-img { border-radius: 10px; cursor: pointer; }

/* =====================================================================================
   Auth
   ===================================================================================== */
.sw-auth { padding: 40px 0 16px; }
.sw-auth__wrap { display: grid; grid-template-columns: 1fr; max-width: 1040px; margin: 0 auto; overflow: hidden; }
@media (min-width: 1024px) { .sw-auth__wrap { grid-template-columns: 1fr 1.1fr; } }
.sw-auth__aside { position: relative; overflow: hidden; display: none; padding: 44px; background: var(--sw-gradient); color: #fff; }
@media (min-width: 1024px) { .sw-auth__aside { display: flex; flex-direction: column; justify-content: space-between; } }
.sw-auth__aside h2 { color: #fff; font-size: 30px; font-weight: 700; line-height: 1.2; }
.sw-auth__aside p { color: rgba(255, 255, 255, .9); margin-top: 12px; }
.sw-auth__aside ul { list-style: none; padding: 0; margin: 28px 0 0; }
.sw-auth__aside li { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-weight: 500; }
.sw-auth__aside li i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; }
.sw-auth__aside .sw-auth__mark { position: absolute; right: -40px; bottom: -40px; width: 240px; opacity: .18; filter: brightness(0) invert(1); }
.sw-auth__main { padding: 28px 20px; background: #fff; }
@media (min-width: 640px) { .sw-auth__main { padding: 40px 44px; } }
.sw-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 26px; border-radius: 12px; background: var(--sw-surface); border: 1px solid var(--sw-border); }
.sw-tab { height: 42px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--sw-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s ease; }
.sw-tab.is-active { background: #fff; color: var(--sw-primary); box-shadow: var(--sw-shadow); }
.sw-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--sw-muted); font-size: 13px; }
.sw-divider::before, .sw-divider::after { content: ''; flex: 1; height: 1px; background: var(--sw-border); }
.sw-alert { padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.sw-alert:empty { display: none; }
.sw-demo-login { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border: 1px dashed #CBD5E1; border-radius: 10px; font-size: 13px; }
.sw-demo-login__info { display: flex; flex-direction: column; gap: 2px; }
.sw-demo-login__title { font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.sw-demo-login code { font-weight: 600; }
.sw-alert-danger { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.sw-alert-success { background: var(--sw-secondary-soft); color: var(--sw-secondary-dark); border: 1px solid color-mix(in srgb, var(--sw-secondary) 40%, transparent); }

/* =====================================================================================
   Account area (my listings, profile, favourites, swaps, notifications)
   ===================================================================================== */
.sw-account-nav { padding: 10px; }
.sw-account-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--sw-text); font-weight: 500; font-size: 14px; }
.sw-account-nav a i { font-size: 17px; color: var(--sw-muted); }
.sw-account-nav a:hover, .sw-account-nav a.is-active { background: var(--sw-primary-soft); color: var(--sw-primary); }
.sw-account-nav a:hover i, .sw-account-nav a.is-active i { color: var(--sw-primary); }

/* =====================================================================================
   Checkout / boost / thank-you
   ===================================================================================== */
.sw-plan { position: relative; padding: 22px; border: 1.5px solid var(--sw-border); border-radius: var(--sw-radius-card); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.sw-plan:hover, .sw-plan.is-active { border-color: var(--sw-primary); box-shadow: var(--sw-shadow-raised); }
.sw-plan__price { font-family: var(--sw-font-heading); font-size: 28px; font-weight: 700; color: var(--sw-ink); }
.sw-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--sw-border); font-size: 14px; }
.sw-summary-row:last-child { border-bottom: 0; }
.sw-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--sw-border); }
.sw-summary-total b { font-family: var(--sw-font-heading); font-size: 24px; color: var(--sw-ink); }
.sw-success-icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sw-secondary-soft); color: var(--sw-secondary-dark); font-size: 40px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--sw-secondary) 12%, transparent); }
.sw-demo-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; font-size: 13px; }

/* =====================================================================================
   Chat
   ===================================================================================== */
.message.to, .message.from { border-radius: 16px; font-size: 14px; line-height: 1.45; }
.message.to { background-color: var(--sw-primary) !important; color: #fff; border-bottom-right-radius: 4px; }
.message.from { background-color: var(--sw-white) !important; color: var(--sw-ink) !important; border: 1px solid var(--sw-border); border-bottom-left-radius: 4px; }
.chat-container .message.from:first-child::before, .chat-container .message.to:first-child::before,
.chat-container .message.from:first-child::after, .chat-container .message.to:first-child::after { display: none; }
.chat-body { scrollbar-width: thin; scrollbar-color: var(--sw-border) transparent; }

/* =====================================================================================
   Legacy pieces still rendered by some views
   ===================================================================================== */
.footer-title::after { background: var(--sw-secondary) !important; }
.menu-items li.hover-true:hover { border-bottom-color: var(--sw-primary); background-color: var(--sw-primary-soft); }
.menu-items li:hover > a { color: var(--sw-primary); }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple { border-color: var(--sw-border) !important; border-radius: var(--sw-radius-btn) !important; min-height: 44px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px !important; color: var(--sw-ink); padding-left: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: var(--sw-primary) !important; }
.select2-dropdown { border-color: var(--sw-border) !important; border-radius: 10px !important; overflow: hidden; }
.swal2-styled.swal2-confirm { background-color: var(--sw-primary) !important; border-radius: var(--sw-radius-btn) !important; }
.swal2-styled.swal2-cancel { border-radius: var(--sw-radius-btn) !important; }
.swal2-popup { border-radius: 16px !important; font-family: var(--sw-font-body) !important; }
.swal2-title { font-family: var(--sw-font-heading) !important; color: var(--sw-ink) !important; }

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- Content pages (about / terms / privacy) ---- */
.sw-prose { font-size: 15px; line-height: 1.75; color: var(--sw-text); }
.sw-prose h1, .sw-prose h2, .sw-prose h3, .sw-prose h4 { margin: 1.4em 0 .5em; line-height: 1.3; }
.sw-prose h1 { font-size: 26px; } .sw-prose h2 { font-size: 22px; } .sw-prose h3 { font-size: 18px; }
.sw-prose > :first-child { margin-top: 0; }
.sw-prose p { margin: 0 0 1em; }
.sw-prose ul, .sw-prose ol { margin: 0 0 1em 1.4em; list-style: disc; }
.sw-prose ol { list-style: decimal; }
.sw-prose a { color: var(--sw-primary); text-decoration: underline; }
[dir="rtl"] .sw-prose ul, [dir="rtl"] .sw-prose ol { margin: 0 1.4em 1em 0; }

/* ---- Boost / checkout packages ---- */
.sw-plan-option {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border: 1.5px solid var(--sw-border); border-radius: var(--sw-radius-card);
    background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.sw-plan-option:hover { border-color: color-mix(in srgb, var(--sw-primary) 50%, var(--sw-border)); }
.sw-plan-option:has(input:checked) { border-color: var(--sw-primary); background: color-mix(in srgb, var(--sw-primary-soft) 55%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-primary) 14%, transparent); }
.sw-plan-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sw-plan-check { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--sw-border); display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: 13px; transition: all .2s ease; }
.sw-plan-option:has(input:checked) .sw-plan-check { background: var(--sw-primary); border-color: var(--sw-primary); color: #fff; }
.sw-plan-radio:focus-visible + .sw-plan-check { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-primary) 30%, transparent); }
.sw-plan-option__price { font-family: var(--sw-font-heading); font-size: 18px; font-weight: 700; color: var(--sw-ink); white-space: nowrap; }
.sw-plan-option__price small { font-size: 12px; color: var(--sw-muted); font-weight: 600; }
@media (max-width: 400px) { .sw-plan-option { padding: 14px; gap: 10px; } .sw-plan-option__price { font-size: 16px; } }

/* ---- Post an ad / jobs ---- */
/* Step indicator */
.sw-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-step { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--sw-surface); border: 1px solid var(--sw-border); color: var(--sw-muted); font-size: 13px; font-weight: 600; }
.sw-step b { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--sw-border); font-size: 12px; }
.sw-step.is-active { background: var(--sw-primary-soft); border-color: transparent; color: var(--sw-primary); }
.sw-step.is-active b { background: var(--sw-primary); border-color: var(--sw-primary); color: #fff; }
.sw-step.is-done b { background: var(--sw-secondary); border-color: var(--sw-secondary); color: #fff; }
@media (min-width: 1024px) { .sw-postad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sw-postad-grid .sw-cat-tile { padding: 24px 12px 20px; }
.sw-postad-grid .sw-cat-icon { width: 68px; height: 68px; border-radius: 20px; }
.sw-postad-grid .sw-cat-icon img { width: 34px; height: 34px; }

/* Form pages (post / update an ad, job posts). Styles the existing markup, including the
   fields that the page scripts build at runtime. */
.sw-form { padding: 28px 0 8px; }
@media (min-width: 1024px) { .sw-form { padding-top: 36px; } }
.sw-form-card { padding: 20px !important; border: 0 !important; border-radius: var(--sw-radius-card) !important; box-shadow: var(--sw-shadow) !important; background: #fff !important; }
@media (min-width: 768px) { .sw-form-card { padding: 32px !important; } }
.sw-form h1.text-4xl { font-family: var(--sw-font-heading); font-size: 22px !important; font-weight: 700 !important; color: var(--sw-ink); margin-bottom: 0 !important; }
@media (min-width: 768px) { .sw-form h1.text-4xl { font-size: 26px !important; } }
.sw-form .border-b { border-color: var(--sw-border) !important; }
.sw-form h3.text-xl, .sw-form h4.text-xl {
    font-family: var(--sw-font-body) !important; font-size: 14px !important; font-weight: 600 !important;
    color: var(--sw-ink); margin-bottom: 8px !important; letter-spacing: 0;
}
.sw-form h4.text-xl { font-size: 15px !important; }
.sw-form .mx-7 { margin-left: 0 !important; margin-right: 0 !important; }
/* field boxes */
.sw-form .dropdown.border:not(.bg-gray-100) {
    height: 46px; border: 1px solid var(--sw-border) !important; border-radius: var(--sw-radius-btn) !important;
    background: #fff; padding-left: 4px !important; padding-right: 4px !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sw-form .dropdown.border:not(.bg-gray-100):not(.h-12) { height: auto; }
.sw-form .dropdown.border:not(.bg-gray-100):focus-within { border-color: var(--sw-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-primary) 16%, transparent); }
.sw-form .dropdown.border input, .sw-form .dropdown.border select, .sw-form .dropdown.border textarea { border: 0 !important; box-shadow: none !important; background: transparent; font-size: 15px; color: var(--sw-ink); }
.sw-form .dropdown.border select { padding-left: 10px; }
.sw-form .dropdown.border img[alt="dropdown-icon"] { opacity: .55; width: 26px; }
.sw-form .text-\[\#838383\] { color: var(--sw-border) !important; }
/* collapsible section headers (index.js toggles .open) */
.sw-form .dropdown.bg-gray-100 {
    background: var(--sw-surface) !important; border: 1px solid var(--sw-border) !important;
    border-radius: 12px !important; padding: 14px 16px 14px 20px !important; transition: background-color .2s ease, border-color .2s ease;
}
.sw-form .dropdown.bg-gray-100:hover { border-color: color-mix(in srgb, var(--sw-primary) 35%, transparent) !important; }
.sw-form .dropdown.bg-gray-100.open { background: var(--sw-primary-soft) !important; border-color: color-mix(in srgb, var(--sw-primary) 30%, transparent) !important; }
.sw-form .dropdown.bg-gray-100 > p { font-family: var(--sw-font-heading); font-size: 16px !important; font-weight: 600 !important; color: var(--sw-ink); }
.sw-form .dropdown.bg-gray-100 > div { width: 32px !important; height: 32px !important; background: #fff; color: var(--sw-primary); box-shadow: var(--sw-shadow); }
.sw-form .dropdown.bg-gray-100 > div i { font-size: 15px !important; }
.sw-form .dropdown.open + .dropdown-area { padding: 22px 4px 8px !important; }
/* upload rows */
.sw-form .h-12.rounded-lg.border.overflow-hidden {
    height: 58px !important; border: 1.5px dashed color-mix(in srgb, var(--sw-primary) 45%, transparent) !important;
    border-radius: 12px !important; background: color-mix(in srgb, var(--sw-primary-soft) 55%, #fff); padding: 6px;
}
.sw-form .h-12.rounded-lg.border.overflow-hidden > .relative { flex: 1 1 auto; align-self: stretch; }
.sw-form .h-12.rounded-lg.border.overflow-hidden > .relative > input[type="file"] { width: 100% !important; height: 100%; cursor: pointer; }
.sw-form #imageName, .sw-form #videoName, .sw-form label[for="imageUpload"], .sw-form label[for="videoUpload"] {
    display: flex !important; align-items: center; gap: 10px; color: var(--sw-primary); font-weight: 600; font-size: 14px; cursor: pointer;
}
.sw-form label[for="imageUpload"]::before, .sw-form label[for="videoUpload"]::before, .sw-form label[for="imageUploadlogo"]::before {
    font-family: 'bootstrap-icons'; font-size: 20px; font-weight: normal; content: "\f297";
}
.sw-form label[for="videoUpload"]::before { content: "\f21f"; }
.sw-form .h-12.rounded-lg.border.overflow-hidden > button { height: 100% !important; border-radius: 9px !important; font-size: 14px !important; padding: 0 22px !important; }
.sw-form #images > div, .sw-form #videos > div { margin: 0 10px 10px 0 !important; border-color: var(--sw-border) !important; overflow: hidden; background: var(--sw-surface); }
.sw-form #images img:not([alt="modal-close"]) { max-height: 96px; object-fit: cover; }
/* buttons */
.sw-form button.bg-secondary, .sw-form a.bg-secondary, .sw-acct a.bg-secondary, .sw-acct button.bg-secondary {
    background: var(--sw-primary) !important; color: #fff !important; border-color: var(--sw-primary) !important;
    border-radius: var(--sw-radius-btn) !important; font-weight: 600 !important; opacity: 1 !important;
    transition: background-color .2s ease, box-shadow .2s ease;
}
.sw-form button.bg-secondary:hover, .sw-form a.bg-secondary:hover, .sw-acct a.bg-secondary:hover, .sw-acct button.bg-secondary:hover { background: var(--sw-primary-dark) !important; box-shadow: var(--sw-shadow); }
.sw-form #orderRequest, .sw-form .sw-submit {
    background: var(--sw-gradient) !important; height: 50px; padding: 0 30px !important; font-size: 15px !important;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--sw-primary) 28%, transparent);
}
.sw-form a.text-secondary, .sw-acct a.text-secondary { color: var(--sw-primary) !important; }
.sw-form .sw-terms { font-size: 13px !important; color: var(--sw-muted); line-height: 1.6; }
.sw-form #pac-input { width: 100% !important; max-width: 440px; height: 46px; margin-top: 0 !important; border: 1px solid var(--sw-border) !important; border-radius: 10px !important; box-shadow: none !important; font-size: 14px !important; }
.sw-form #googleMap { border-radius: 12px; overflow: hidden; border: 1px solid var(--sw-border); }
.sw-form input[type="checkbox"] { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.sw-form .chkamnities + label { font-size: 14px; color: var(--sw-text); margin-right: 14px; }
.sw-form-foot { border-top: 1px solid var(--sw-border); padding-top: 20px; margin-top: 24px !important; gap: 16px; }

/* Job account pages (recruiter list, applied list, applicants) */
.sw-acct { padding-top: 28px; gap: 20px; }
.sw-acct #filter-option > div, .sw-acct #filter-option > .shadow-xl { background: #fff; border-radius: var(--sw-radius-card) !important; box-shadow: var(--sw-shadow) !important; overflow: hidden; }
.sw-acct #filter-option .bg-lightBlue { background: #fff !important; border-bottom: 1px solid var(--sw-border); }
.sw-acct #filter-option h1.text-2xl { font-size: 17px !important; font-weight: 600 !important; padding: 18px 20px !important; }
.sw-acct #filter-option ul { padding: 8px; }
.sw-acct #filter-option li { font-size: 15px !important; padding: 11px 12px !important; border-radius: 10px; color: var(--sw-text); margin-bottom: 2px; }
.sw-acct #filter-option li a { font-size: 15px !important; font-weight: 500; }
.sw-acct #filter-option li i.bi:not(.bi-chevron-right) { font-size: 18px; color: var(--sw-muted); width: 22px; }
.sw-acct #filter-option li .bi-chevron-right { font-size: 12px; color: var(--sw-muted); }
.sw-acct #filter-option li:hover, .sw-acct #filter-option li.bg-primary { background: var(--sw-primary-soft) !important; color: var(--sw-primary) !important; }
.sw-acct #filter-option li:hover i, .sw-acct #filter-option li.bg-primary i { color: var(--sw-primary) !important; }
.sw-acct > .shadow-lg.rounded-lg, .sw-acct .sw-acct-main { background: #fff; border-radius: var(--sw-radius-card) !important; box-shadow: var(--sw-shadow) !important; }
.sw-acct h1.text-4xl { font-family: var(--sw-font-heading); font-size: 24px !important; font-weight: 700 !important; }
.sw-acct hr { border-color: var(--sw-border); }
.sw-acct .mt-11 { margin-top: 16px !important; border-color: var(--sw-border) !important; }
.sw-acct .border-secondary { border-color: var(--sw-primary) !important; color: var(--sw-primary); }
.sw-acct span.bg-secondary { background: var(--sw-primary-soft) !important; color: var(--sw-primary) !important; font-size: 13px !important; font-weight: 700; }
.sw-acct .group.border.rounded-xl { border: 0 !important; box-shadow: var(--sw-shadow) !important; border-radius: var(--sw-radius-card) !important; transition: box-shadow .25s ease, transform .25s ease; }
.sw-acct .group.border.rounded-xl:hover { box-shadow: var(--sw-shadow-raised) !important; transform: translateY(-2px); }
.sw-acct .group p.text-xl.text-secondary { color: var(--sw-primary) !important; font-family: var(--sw-font-heading); font-size: 18px !important; }
.sw-acct .group .bg-blurBg.inset-0 { background: rgba(11, 27, 63, .55) !important; gap: 8px; }
.sw-acct .group .bg-blurBg.inset-0 a { min-width: 150px; text-align: center; padding: 11px 20px !important; border-radius: 10px !important; font-weight: 600; }
.sw-acct .group .bg-blurBg.inset-0 a.bg-primary { background: var(--sw-gradient) !important; border: 0 !important; }
.sw-applicant { padding: 24px !important; margin-top: 28px !important; background: #fff; border-radius: var(--sw-radius-card); box-shadow: var(--sw-shadow) !important; }
@media (min-width: 768px) { .sw-applicant { padding: 32px !important; } }
.sw-applicant > .grid > .w-full img { border-radius: 12px; }
.sw-applicant h3.text-secondary { color: var(--sw-primary) !important; font-family: var(--sw-font-heading); }
.sw-applicant .shadow-md.rounded-lg { box-shadow: none !important; border: 1px solid var(--sw-border); border-radius: 12px !important; background: #fff; }
.sw-applicant .shadow-md.rounded-lg:hover { border-color: color-mix(in srgb, var(--sw-primary) 35%, transparent); }

/* ---- Listing pages ---- */
.sw-list-search { margin: 22px 0 0 !important; max-width: 640px; }
.sw-listing { display: flex; align-items: flex-start; gap: 24px; padding-top: 28px; padding-bottom: 8px; }
.sw-listing__main { flex: 1 1 auto; min-width: 0; width: 100%; }
@media (min-width: 1024px) {
    #filter-option:not(.fixed) { flex: 0 0 290px; width: 290px; margin-right: 0 !important; position: sticky; top: calc(var(--sw-header-h) + 64px); max-height: calc(100vh - var(--sw-header-h) - 84px); overflow-y: auto; scrollbar-width: thin; }
}
#filter-option.fixed { z-index: 170 !important; margin: 0 !important; padding: 16px; background: var(--sw-surface) !important; }
.sw-filter-panel { overflow: hidden; }
.sw-filter-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--sw-border); }
.sw-filter-panel__title { display: flex; align-items: center; gap: 8px; font-family: var(--sw-font-heading); font-size: 17px; font-weight: 600; color: var(--sw-ink); }
.sw-filter-panel__title i { color: var(--sw-primary); }
.sw-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--sw-border); cursor: pointer; transition: background-color .2s ease; }
.sw-filter-head:hover { background: var(--sw-surface); }
.sw-filter-title { font-size: 15px; font-weight: 600; color: var(--sw-ink); }
.sw-filter-toggle { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sw-primary-soft); color: var(--sw-primary); font-size: 13px; flex: 0 0 auto; }
.sw-filter-head.open .sw-filter-toggle { background: var(--sw-primary); color: #fff; }
.sw-filter-panel .dropdown.open + .dropdown-area { padding: 14px 18px 16px; border-bottom: 1px solid var(--sw-border); background: #fff; }
.sw-filter-panel .dropdown-area br { display: none; }
.sw-filter-label { font-size: 13px; font-weight: 600; color: var(--sw-muted); margin: 12px 0 4px; }
.sw-filter-label:first-child { margin-top: 0; }
.sw-fbox { position: relative; display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 4px; background: #fff; border: 1px solid var(--sw-border); border-radius: var(--sw-radius-btn); transition: border-color .2s ease, box-shadow .2s ease; }
.sw-fbox:focus-within { border-color: var(--sw-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-primary) 16%, transparent); }
.sw-fbox select, .sw-fbox input { font-size: 14px; color: var(--sw-ink); background: transparent; border: 0 !important; box-shadow: none !important; padding-left: 10px !important; padding-right: 10px !important; }
.sw-filter-panel .dropdown-area .sw-fbox { margin-bottom: 8px; }
.sw-filter-panel .dropdown-area .sw-fbox.w-1\/2 { margin-bottom: 0; }
.sw-fbox-caret { position: absolute; right: 10px; pointer-events: none; font-size: 12px; color: var(--sw-muted); }
[dir="rtl"] .sw-fbox-caret { right: auto; left: 10px; }
#filter-option input[type="checkbox"] { width: 16px; height: 16px; margin: 6px 8px 6px 0; vertical-align: middle; }
#filter-option input[type="checkbox"] + label { font-size: 14px; color: var(--sw-text); vertical-align: middle; }
.sw-filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sw-filter-actions .sw-btn { width: 100%; }
.sw-toolbar__controls .sw-fbox { height: 36px; min-width: 96px; }
.sw-view-btn { width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; border: 1px solid var(--sw-border); background: #fff; color: var(--sw-muted); font-size: 16px; transition: all .2s ease; }
.sw-view-btn:hover { color: var(--sw-primary); border-color: var(--sw-primary); }
.sw-view-btn.is-active { background: var(--sw-primary); border-color: var(--sw-primary); color: #fff; }
@media (min-width: 1024px) and (max-width: 1279px) { .sw-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sw-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .sw-toolbar__controls { width: 100%; } .sw-toolbar__controls > .flex { flex: 1 1 auto; } .sw-toolbar__controls .sw-fbox { flex: 1 1 auto; } }
.sw-ad-card .sw-btn-block { margin-top: 12px; }
/* ---- Post an ad / jobs (upload labels with numbered ids) ---- */
.sw-form label[for^="imageUpload"], .sw-form label[for^="videoUpload"] { display: flex !important; align-items: center; gap: 10px; color: var(--sw-primary); font-weight: 600; font-size: 14px; cursor: pointer; }
.sw-form label[for^="imageUpload"]::before { font-family: 'bootstrap-icons'; font-size: 20px; font-weight: normal; content: "\f297"; }
.sw-form label[for^="videoUpload"]::before { font-family: 'bootstrap-icons'; font-size: 20px; font-weight: normal; content: "\f21f"; }
.sw-filter-panel .dropdown-area br { display: initial; }
.sw-filter-panel .dropdown-area > br { display: none; }
.sw-fbox select { padding-right: 28px !important; }
[dir="rtl"] .sw-fbox select { padding-right: 10px !important; padding-left: 28px !important; }
/* keep container gutters on hero inners (their padding shorthand reset them) */
.sw-container.sw-page-hero__inner, .sw-container.sw-hero__inner { padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .sw-container.sw-page-hero__inner, .sw-container.sw-hero__inner { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .sw-container.sw-page-hero__inner, .sw-container.sw-hero__inner { padding-left: 32px; padding-right: 32px; } }
.sw-hero__search .sw-btn i { color: #fff; }

/* ---- Ad details ---- */
.sw-page-hero--slim .sw-page-hero__inner { padding: 22px 0 26px; }
.sw-page-hero--slim h1 { font-size: 22px; line-height: 1.25; }
@media (min-width: 768px) { .sw-page-hero--slim .sw-page-hero__inner { padding: 28px 0 32px; } .sw-page-hero--slim h1 { font-size: 28px; } }

.sw-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; align-items: start; }
@media (min-width: 1024px) { .sw-details { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; } }
.sw-details__main { min-width: 0; }
.sw-details__side { min-width: 0; }
@media (min-width: 1024px) and (min-height: 820px) { .sw-details__side { position: sticky; top: 140px; } }

/* gallery */
.sw-details-gallery { padding: 12px; }
.sw-details-gallery > .relative { border-radius: 10px; overflow: hidden; background: var(--sw-surface); }
.sw-gallery__main { display: block; width: 100% !important; height: 280px !important; object-fit: contain; background: var(--sw-surface); border-radius: 10px; }
@media (min-width: 640px) { .sw-gallery__main { height: 400px !important; } }
@media (min-width: 1280px) { .sw-gallery__main { height: 480px !important; } }
.sw-gallery__btn {
    position: absolute; top: 12px; z-index: 5;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .96); color: var(--sw-ink); font-size: 17px;
    box-shadow: var(--sw-shadow); cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.sw-gallery__btn:hover { transform: scale(1.06); box-shadow: var(--sw-shadow-raised); }
.sw-gallery__share { right: 12px; }
.sw-gallery__fav { right: 62px; }
[dir="rtl"] .sw-gallery__share { right: auto; left: 12px; }
[dir="rtl"] .sw-gallery__fav { right: auto; left: 62px; }
.sw-share-pop {
    position: absolute; top: 60px; right: 12px; z-index: 6;
    display: flex; gap: 8px; padding: 8px; border-radius: 12px;
    background: #fff; box-shadow: var(--sw-shadow-raised);
}
.sw-share-pop a { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: var(--sw-surface); color: var(--sw-ink); }
.sw-share-pop a:hover { background: var(--sw-primary-soft); color: var(--sw-primary); }
.sw-thumbs { margin-top: 10px; }
.sw-details .product-carousel { width: auto !important; margin: 0 !important; }
.sw-details .product-details { position: relative !important; bottom: auto !important; width: 100%; }
.sw-thumb { display: block; width: 100% !important; height: 72px !important; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: border-color .2s ease, opacity .2s ease; opacity: .85; background: var(--sw-surface); }
@media (min-width: 768px) { .sw-thumb { height: 84px !important; } }
.sw-thumb:hover { border-color: var(--sw-primary); opacity: 1; }
.sw-floorplan { width: 220px !important; height: 160px !important; object-fit: contain; }
.sw-details .product-details .owl-nav button.owl-prev, .sw-details .product-details .owl-nav button.owl-next { top: 50% !important; transform: translateY(-50%) !important; width: 32px !important; height: 32px !important; }
.sw-details .product-details .owl-nav button i { font-size: 14px; }

/* title + meta */
.sw-details__titlebar { display: flex; flex-direction: column; gap: 6px; }
.sw-details__title { font-family: var(--sw-font-heading); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--sw-ink); }
@media (min-width: 768px) { .sw-details__title { font-size: 24px; } }
.sw-details-price { font-size: 24px; }
@media (min-width: 768px) { .sw-details-price { font-size: 28px; } }
.sw-details__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--sw-border); font-size: 13px; color: var(--sw-muted); }
.sw-details__meta .bi { color: var(--sw-muted); }
.sw-details__meta .flex { gap: 4px; }
.sw-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sw-muted); }
.sw-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--sw-border); }
.sw-report-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sw-danger) !important; cursor: pointer; }
.sw-report-link:hover { text-decoration: underline; }
.sw-spec b a { color: var(--sw-primary); }

/* description tabs */
.sw-dtabs { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--sw-border); }
.sw-dtab { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--sw-muted); background: var(--sw-surface); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.sw-dtab:hover { color: var(--sw-primary); }
.sw-dtab.is-active { background: var(--sw-primary); color: #fff; }
.sw-dpanel { display: block; }
.sw-prose { font-size: 15px; line-height: 1.7; color: var(--sw-text); white-space: pre-line; overflow-wrap: anywhere; }
.sw-spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.sw-spec-list__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--sw-border); }
.sw-block-title { font-family: var(--sw-font-heading); font-size: 18px; font-weight: 600; color: var(--sw-ink); margin-bottom: 8px; }
.sw-map { border-radius: 12px; overflow: hidden; background: var(--sw-surface); border: 1px solid var(--sw-border); }
.sw-map-search { height: 40px; margin-top: 10px; padding: 0 12px; width: min(320px, calc(100% - 20px)); border: 1px solid var(--sw-border) !important; border-radius: 10px !important; background: #fff; box-shadow: var(--sw-shadow); font-size: 14px; }

/* side card */
.sw-side-price { font-family: var(--sw-font-heading); font-size: 28px; font-weight: 700; color: var(--sw-primary); line-height: 1.15; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--sw-border); }
.sw-side-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sw-muted); }
.sw-side-name { font-family: var(--sw-font-heading); font-size: 17px; font-weight: 600; color: var(--sw-ink); overflow: hidden; text-overflow: ellipsis; }
.sw-side-addr { display: flex; align-items: flex-start; font-style: normal; font-size: 13px; color: var(--sw-muted); margin-bottom: 8px; }
.sw-details__side a { display: block; }
.sw-btn-whatsapp { background: #25D366; color: #fff !important; }
.sw-btn-whatsapp:hover { background: #1EBE5A; box-shadow: var(--sw-shadow); }
.sw-safety-ic { flex: 0 0 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--sw-secondary-soft); color: var(--sw-secondary-dark); font-size: 18px; }

/* modals */
.sw-modal-panel--wide { max-width: 560px; }
.sw-modal-panel--wide:has(.swap-products) { max-width: 900px; }
.sw-modal-body { display: block; width: 100%; }
.sw-swap-card { text-align: left; }
.sw-swap-card .sw-ad-card__title { min-height: 0; }

/* ---- Account & chat ---- */
.sw-account-hero .sw-page-hero__inner { padding-bottom: 72px; }
.sw-account-hero p { margin-top: 2px; }
.sw-account-avatar {
    flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .2); border: 3px solid rgba(255, 255, 255, .6);
    font-family: var(--sw-font-heading); font-size: 26px; font-weight: 700; color: #fff;
}
.sw-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sw-account { position: relative; z-index: 2; margin-top: -48px; }
.sw-account__grid { display: flex; align-items: flex-start; }
.sw-account__main { flex: 1 1 auto; min-width: 0; }
.sw-account #filter-option:not(.fixed) { flex: 0 0 264px; width: 264px; margin-right: 24px !important; position: sticky; top: 132px; }
[dir="rtl"] .sw-account #filter-option:not(.fixed) { margin-right: 0 !important; margin-left: 24px; }
.sw-account #filter-option.fixed { z-index: 170 !important; margin: 0 !important; padding: 16px; background: var(--sw-surface) !important; }
.sw-account-side { overflow: hidden; }
.sw-account-side__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 4px; }
.sw-account-side__title { font-family: var(--sw-font-heading); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--sw-muted); }
.sw-account-nav a { cursor: pointer; }
.sw-account-nav a.is-active { font-weight: 600; }
.sw-account-nav__sep { height: 1px; margin: 6px 4px; background: var(--sw-border); }
.sw-account-nav a.sw-account-nav__logout:hover { background: #FEF2F2; color: var(--sw-danger); }
.sw-account-nav a.sw-account-nav__logout:hover i { color: var(--sw-danger); }
.sw-account-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 2px 16px 4px; }
.sw-account-tabs::-webkit-scrollbar { display: none; }
.sw-account-tabs .sw-chip { flex: 0 0 auto; height: 38px; background: var(--sw-white); color: var(--sw-text) !important; box-shadow: var(--sw-shadow); }
.sw-account-tabs .sw-chip.is-active, .sw-account-tabs .sw-chip:hover { background: var(--sw-primary); color: #fff !important; }
@media (min-width: 1280px) { .sw-account .sw-ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sw-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sw-page-head h2 { font-size: 22px; font-weight: 700; line-height: 1.25; }

/* segmented tabs */
.sw-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sw-surface); border: 1px solid var(--sw-border); overflow-x: auto; scrollbar-width: none; }
.sw-seg::-webkit-scrollbar { display: none; }
.sw-seg__item { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--sw-muted); cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.sw-seg__item:hover { color: var(--sw-ink); }
.sw-seg__item.is-active { background: var(--sw-white); color: var(--sw-primary); box-shadow: var(--sw-shadow); }
.sw-seg__count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--sw-border); color: var(--sw-text); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sw-seg__item.is-active .sw-seg__count { background: var(--sw-primary); color: #fff; }

/* my ads */
.sw-my-ad .sw-ad-card__title { min-height: 0; }
.sw-my-ad__delete { border: 0; cursor: pointer; }
.sw-my-ad__delete:hover { color: var(--sw-danger); background: #fff; }
.sw-my-ad__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.sw-my-ad__actions .sw-btn { padding: 0 10px; font-size: 13px; }
@media (max-width: 520px) { .sw-my-ad__actions { grid-template-columns: 1fr; padding: 0 10px 12px; } }

/* swap requests */
.sw-swap-card { padding: 16px; border: 1px solid var(--sw-border); border-radius: var(--sw-radius-card); background: var(--sw-white); transition: box-shadow .2s ease; }
.sw-swap-card:hover { box-shadow: var(--sw-shadow-raised); }
.sw-swap-card__title { font-family: var(--sw-font-heading); font-size: 16px; font-weight: 600; color: var(--sw-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-swap-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12px; color: var(--sw-muted); }
.sw-swap-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.sw-swap-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 14px; }
.sw-swap-item { min-width: 0; padding: 8px; border-radius: 10px; background: var(--sw-surface); }
.sw-swap-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--sw-border); }
.sw-swap-item__label { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sw-muted); }
.sw-swap-item__title { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--sw-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-swap-item__label + .sw-swap-item__title { margin-top: 2px; }
.sw-swap-item__price { font-family: var(--sw-font-heading); font-size: 15px; font-weight: 700; color: var(--sw-primary); }
.sw-swap-item__city { font-size: 11px; color: var(--sw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-swap-item__city i { margin-right: 2px; }
.sw-swap-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sw-gradient); color: #fff; box-shadow: var(--sw-shadow); }
.sw-swap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sw-swap-actions .sw-btn:first-child { flex: 1 1 auto; }
@media (max-width: 400px) { .sw-swap-pair { gap: 6px; } .sw-swap-icon { width: 30px; height: 30px; font-size: 13px; } }

/* notifications */
.sw-notif-date { margin: 22px 0 10px; font-family: var(--sw-font-body); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sw-muted); }
.sw-notif-date:first-child { margin-top: 0; }
.sw-notif { display: flex; gap: 14px; padding: 14px 16px; margin-bottom: 8px; border: 1px solid var(--sw-border); border-radius: var(--sw-radius-card); background: var(--sw-white); transition: background-color .2s ease, border-color .2s ease; }
.sw-notif:hover { background: var(--sw-surface); border-color: color-mix(in srgb, var(--sw-primary) 25%, var(--sw-border)); }
.sw-notif__icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--sw-primary-soft); color: var(--sw-primary); font-size: 18px; }
.sw-notif__title { font-family: var(--sw-font-body); font-size: 15px; font-weight: 600; color: var(--sw-ink); }
.sw-notif__time { flex: 0 0 auto; font-size: 12px; color: var(--sw-muted); white-space: nowrap; }
.sw-notif__text { margin-top: 4px; font-size: 14px; color: var(--sw-text); line-height: 1.55; }

/* profile: collapsible sections (index.js toggles .open on .dropdown) */
.sw-collapse { overflow: hidden; }
.sw-collapse__head { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; transition: background-color .2s ease; }
.sw-collapse__head:hover { background: var(--sw-surface); }
.sw-collapse__head p { display: flex; align-items: center; gap: 10px; font-family: var(--sw-font-heading); font-size: 16px; font-weight: 600; color: var(--sw-ink); }
.sw-collapse__head p i { color: var(--sw-primary); font-size: 18px; }
.sw-collapse__toggle { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sw-primary-soft); color: var(--sw-primary); }
.sw-collapse .dropdown.open + .dropdown-area { border-top: 1px solid var(--sw-border); padding: 24px 20px !important; }
.sw-collapse .sw-label { margin-bottom: 6px; }
.sw-upload { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; border: 1.5px dashed var(--sw-border); border-radius: var(--sw-radius-btn); background: var(--sw-surface); }
.sw-upload__label { display: flex; align-items: center; color: var(--sw-muted); font-size: 14px; cursor: pointer; }
#pac-input.sw-input { height: 44px; }

/* sweetalert buttons used with buttonsStyling:false */
.swal2-actions .btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; margin: 0 4px; border-radius: var(--sw-radius-btn); font-weight: 600; font-size: 14px; }
.swal2-actions .btn-success { background: var(--sw-primary); color: #fff; }
.swal2-actions .btn-danger { background: #fff; color: var(--sw-danger); border: 1.5px solid color-mix(in srgb, var(--sw-danger) 40%, transparent); }

/* chat */
.sw-chat .chatList { padding-bottom: 8px; }
.sw-chat-list__head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--sw-white); border-bottom: 1px solid var(--sw-border); }
.sw-chat-list__head h2 { font-size: 17px; font-weight: 600; }
.sw-chat .chatListCard { border-left-color: transparent; }
.sw-chat .chatListCard .w-48 { width: auto; min-width: 0; flex: 1 1 auto; }
.sw-chat-panel { overflow: hidden; }
.sw-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--sw-border); min-height: 64px; }
.sw-chat-head .backToChatList { cursor: pointer; }
.sw-chat .chat-body { background: linear-gradient(180deg, var(--sw-white), var(--sw-surface)); }
.sw-chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 16px; }
.sw-chat-empty__icon { width: 64px; height: 64px; margin-bottom: 12px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--sw-primary-soft); color: var(--sw-primary); font-size: 28px; }
.sw-chat-input { background: var(--sw-surface) !important; border: 1px solid var(--sw-border) !important; font-size: 15px; }
.sw-chat-input:focus { background: #fff !important; border-color: var(--sw-primary) !important; }
.sw-chat-send { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sw-gradient); color: #fff; font-size: 18px; box-shadow: 0 6px 16px color-mix(in srgb, var(--sw-primary) 30%, transparent); }
.sw-chat-send:hover { filter: brightness(1.05); }
.sw-chat .message { font-size: 14px; }
@media (max-width: 991px) {
    .sw-account { margin-top: -36px; }
    .sw-account-hero .sw-page-hero__inner { padding-bottom: 56px; }
    .sw-chat .chat-panel:not(.invisible) { min-height: 560px; }
}
@media (max-width: 480px) {
    .sw-account-avatar { flex-basis: 52px; width: 52px; height: 52px; font-size: 20px; }
    .sw-page-head h2 { font-size: 19px; }
    .sw-seg__item { padding: 0 10px; font-size: 13px; }
}

/* ---- Home: compact tiles on phones, footer payment logo ---- */
@media (max-width: 639px) {
    .sw-cat-panel { padding: 18px 14px; }
    .sw-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .sw-cat-tile { padding: 12px 4px 10px; }
    .sw-cat-icon { width: 48px; height: 48px; border-radius: 14px; }
    .sw-cat-icon img { width: 24px; height: 24px; }
    .sw-cat-tile h3 { font-size: 13px; margin-top: 8px; }
    .sw-cat-tile p { font-size: 11px; }
}
.sw-footer__bottom .sw-pay { filter: none; opacity: 1; background: #fff; border-radius: 6px; padding: 3px 8px; height: 30px; }
/* ---- Ad details: keep the container gutters on the hero band (the base `padding: 36px 0` removed them) ---- */
.sw-container.sw-page-hero__inner { padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .sw-container.sw-page-hero__inner { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .sw-container.sw-page-hero__inner { padding-left: 32px; padding-right: 32px; } }
.sw-gallery__main { height: 260px !important; }
@media (min-width: 640px) { .sw-gallery__main { height: 400px !important; } }
@media (min-width: 1280px) { .sw-gallery__main { height: 480px !important; } }
@media (max-width: 639px) {
    .sw-footer__top { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-top: 44px; }
    .sw-footer__top > .sw-footer__brand, .sw-footer__top > div:last-child { grid-column: 1 / -1; }
}
/* chat page: full-width messenger, account links as chips */
.sw-account--wide #filter-option:not(.fixed) { display: none !important; }
@media (min-width: 992px) { .sw-account--wide .sw-account-tabs { margin: 0 0 16px; padding: 0; overflow: visible; flex-wrap: wrap; } }
.sw-chat .chatListCard p.text-xs { white-space: nowrap; }
.sw-chat .chatListCard > .flex:last-child { flex: 0 0 auto; margin-left: 8px; }
.sw-chat .chatListCard > .flex:first-child { min-width: 0; flex: 1 1 auto; }
.sw-chat .chatListCard .truncate { display: block; max-width: 100%; }
.sw-chat .chatListCard .flex.items-center { min-width: 0; }

/* ---- Header drawer fixes (style.css legacy menu rules) ---- */
.sw-catnav .menu-item { justify-content: flex-start !important; }
.sw-catnav .menu-items .sw-btn { display: flex !important; line-height: 1 !important; font-size: 15px !important; color: #fff !important; }
