/* ==========================================================================
   GigMarket — visual identity (v3: aligned to the supplied WM Pazar design)
   Palette: green #1DBF73 (primary) · near-black #222325 (text) ·
            gray #74767E (secondary text) · white/light-gray backgrounds ·
            amber #FFB33E (ratings)
   Type:    "Macan" was requested but is a paid commercial typeface (by
            TIGHTYPE) with no free/Google Fonts distribution - it isn't
            embedded here, since doing so would require pulling it from an
            unauthorized source. "Plus Jakarta Sans" is used sitewide
            instead, a free, open geometric sans with a similar modern
            character. "Playfair Display" italic is still used only for
            the single accented word in the homepage hero headline —
            matching the reference design's type pairing.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1DBF73;
    --primary-dark: #19A463;
    --primary-light: #E4F9EE;
    --ink: #222325;
    --ink-soft: #74767E;
    --paper: #F7F7F7;
    --paper-raised: #FFFFFF;
    --gold: #FFB33E;
    --teal: #1DBF73;
    --rust: #E33D4E;
    --line: #E4E5E7;
    --header-dark: #222325;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 1px 2px rgba(4, 4, 5, 0.06), 0 1px 12px rgba(4, 4, 5, 0.04);
    --shadow-hover: 0 8px 24px rgba(4, 4, 5, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper-raised);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

/* The single italic accent word inside the homepage hero headline - the
   reference design uses <i> for this (not <em>) - see home/index.php */
.hero h1 i {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .1s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-gold { background: var(--ink); color: #fff; }
.btn-gold:hover { background: #000; }
.btn-join { background: var(--ink); color: #fff !important; }
.btn-join:hover { background: #000; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.sticky-header-wrap {
    position: sticky;
    top: 0;
    z-index: 110;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.site-header {
    background: #fff;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--ink);
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.logo-dot { color: var(--primary); font-weight: 800; }
.logo-image { height: 32px; width: auto; display: block; }
.modal-logo { text-align: center; margin-bottom: 14px; }
.modal-logo .logo-image { height: 36px; margin: 0 auto; }

.header-search {
    flex: 1;
    display: flex;
    align-items: stretch;
    position: relative;
    min-width: 220px;
    max-width: 480px;
    height: 44px;
    transition: box-shadow 0.25s ease;
}
.header-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 0.85rem; pointer-events: none; }
.header-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 0 14px 0 36px;
    border: 1.5px solid var(--line);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--paper);
}
.header-search input:focus { outline: none; border-color: var(--ink); background: #fff; }
.header-search button {
    width: 46px;
    height: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1.5px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-size: 0.92rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}
.header-search button:hover { background: #000; border-color: #000; }

/* Applied server-side in header.php only when rendering the homepage
   (see $isHomepageRequest there) - hides the header search/categories
   bar until the visitor scrolls past the hero, exactly matching the
   reference design. Deliberately not added by JS after the page loads:
   that left a gap between first paint and JS execution where the bar
   was visible by default on every homepage load/refresh, before any
   scrolling had happened. Pages other than the homepage never get this
   class at all, so they keep the always-visible default above. */
.header-search.scroll-gated {
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
}
.header-search.scroll-gated.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* The categories bar is its own full-width band with a solid background,
   not just inline content like the search box above - hiding it with
   opacity/visibility alone still reserves its full layout height, which
   renders as an empty blank strip before the visitor has scrolled. Its
   height is collapsed to 0 here too, so there's genuinely nothing there
   (no reserved gap) until it's actually shown. */
#stickyCategories.scroll-gated {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}
#stickyCategories.scroll-gated.show {
    max-height: 260px;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s, overflow 0s 0.3s;
}

/* ---------- Dedicated search page ---------- */
.search-page-form {
    display: flex;
    max-width: 640px;
    margin-bottom: 24px;
}
.search-page-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid var(--line);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: inherit;
    font-size: 1rem;
}
.search-page-form input:focus { outline: none; border-color: var(--primary); }
.search-page-form button {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0 26px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    font-size: 0.92rem;
    font-weight: 500;
}
.header-nav a { color: var(--ink); }
.header-nav a:hover { color: var(--primary); }
.header-nav .btn { color: #fff; }

/* ---------- Categories dropdown bar (below the main nav) ---------- */
.categories-nav-wrapper { background: #fff; position: relative; z-index: 100; }
.categories-nav {
    display: flex;
    padding: 10px 24px;
    gap: 25px;
    flex-wrap: wrap;
}
.categories-nav > a, .mega-menu-trigger {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.2s;
    display: inline-block;
    cursor: pointer;
}
.categories-nav > a:hover, .mega-menu-trigger:hover { color: var(--primary); }
.categories-nav > a::after, .mega-menu-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.2s;
}
.categories-nav > a:hover::after, .mega-menu-item:hover > .mega-menu-trigger::after { width: 100%; }
.mega-menu-item { display: flex; align-self: stretch; align-items: center; }
.mega-menu-trigger { position: relative; display: inline-flex; align-items: center; height: 100%; }
.mega-menu-new-badge {
    display: inline-block;
    background: #FCE4EC;
    color: #D6336C;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}
.mega-menu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-top: 1px solid var(--line);
    z-index: 101;
    max-height: 80vh;
    overflow-y: auto;
}
.mega-menu-item.mega-menu-open .mega-menu-panel { display: block; }
.mega-menu-panel-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding: 36px 24px;
}
.mega-menu-column { min-width: 0; }
.mega-menu-group-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    margin-bottom: 14px;
}
.mega-menu-group-title:hover { color: var(--primary); }
.mega-menu-leaf-link {
    display: block;
    font-size: 0.86rem;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 7px 0;
}
.mega-menu-leaf-link:hover { color: var(--primary); }

/* ---------- Account dropdown (avatar menu, replaces the old horizontal
   Dashboard/Admin/Hi-name/Logout items - matches the Fiverr "My Account"
   dropdown pattern) ---------- */
.account-dropdown { position: relative; }
.account-dropdown-trigger { background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; line-height: 0; }
.account-dropdown-trigger .avatar { width: 36px; height: 36px; font-size: 0.95rem; }
.account-dropdown-trigger .avatar-status-dot { width: 12px; height: 12px; border-width: 2px; }
.account-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 240px;
    z-index: 110;
    padding: 8px 0;
}
/* The small arrow pointing back up at the avatar that opened the menu -
   matches the reference design. Positioned to line up under the ~36px
   avatar trigger, which sits flush with the dropdown's right edge. */
.account-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 12px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}
.account-dropdown.open .account-dropdown-menu { display: block; }
.account-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem;
    color: var(--ink);
    font-weight: 400;
}
.account-dropdown-menu a:hover { background: var(--paper); }
.account-dropdown-menu a.admin-link { color: var(--rust) !important; font-weight: 700; }
.account-dropdown-menu a.account-dropdown-highlight { color: var(--primary); font-weight: 600; }
.account-dropdown-divider { height: 1px; background: var(--line); margin: 8px 0; }
.account-dropdown-locale { display: flex; gap: 8px; padding: 4px 20px; }
.account-dropdown-locale .locale-switcher-btn { border-radius: 6px; padding: 5px 10px; font-size: 0.78rem; }

/* ---------- RTL support (Arabic) ---------- */
html[dir="rtl"] .header-inner { flex-direction: row; }
html[dir="rtl"] .hero-tags,
html[dir="rtl"] .cat-strip .container,
html[dir="rtl"] .header-nav,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .dash-quick-links,
html[dir="rtl"] .admin-actions { flex-direction: row-reverse; }
html[dir="rtl"] .ticket-seller,
html[dir="rtl"] .seller-line,
html[dir="rtl"] .review-head,
html[dir="rtl"] .thread-head { flex-direction: row-reverse; }
html[dir="rtl"] .btn-remove { margin-inline-start: 0; margin-inline-end: auto; }


/* ---------- Hero (homepage) ---------- */
.hero {
    position: relative;
    padding: 110px 0;
    color: #fff;
    overflow: hidden;
    min-height: 550px;
}
.hero-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-color: #023a15;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(2, 58, 21, 0.65);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; }
.hero-content {
    position: absolute;
    top: 50%;
    left: calc((100vw - min(100vw, 1400px)) / 2 + 24px);
    transform: translateY(-50%);
    max-width: 950px;
    width: calc(100% - 48px - (100vw - min(100vw, 1400px)));
    text-align: left;
    z-index: 101;
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    color: #fff;
}
.hero-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-width: 850px;
    width: 100%;
    border: 1.5px solid transparent;
    box-sizing: border-box;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.hero-search-box .search-icon { color: var(--ink-soft); padding: 0 18px; font-size: 1.1rem; }
.hero-search-box input {
    flex: 1;
    border: none;
    padding: 15px 0;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    color: var(--ink);
}
.hero-search-box .btn-search {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 15px 34px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s ease;
}
.hero-search-box .btn-search:hover { background: #000; }
.hero-search-box.search-focused .btn-search { background: #000; }
.popular-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 0.9rem; font-weight: 500; }
.popular-tags span:first-child { text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.popular-tags a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.8);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
}
.popular-tags a i { font-size: 0.78rem; transition: transform 0.15s; }
.popular-tags a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.popular-tags a:hover i { transform: translateX(3px); }

.hero-trusted-by { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 36px; }
.hero-trusted-label { font-size: 0.85rem; font-weight: 700; color: #fff; }
.hero-trusted-marks { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-trusted-mark { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.hero-trusted-mark i { font-size: 0.85rem; }

/* ---------- Featured categories icon grid (homepage) ---------- */
.featured-categories { padding-top: 56px; padding-bottom: 20px; }
.featured-categories h2 { font-size: 1.7rem; margin-bottom: 22px; letter-spacing: -0.02em; }
.category-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}
.category-grid-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 16px 0 4px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.category-grid-toggle i { font-size: 0.75rem; transition: transform 0.15s; }
.category-grid-toggle.expanded i { transform: rotate(180deg); }

@media (max-width: 640px) {
    .category-icon-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cat-card { padding: 14px 6px; }
    .cat-card-icon { font-size: 1.4rem; margin-bottom: 8px; }
    .cat-card span:last-child { font-size: 0.76rem; }
    .cat-card-extra { display: none !important; }
    .category-icon-grid.expanded .cat-card-extra { display: flex !important; }
    .category-grid-toggle { display: flex; }
}
.cat-card {
    padding: 22px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--ink);
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.cat-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: transparent; transform: translateY(-3px); }
.cat-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.cat-card span:last-child { font-weight: 600; font-size: 0.86rem; line-height: 1.3; }

/* ---------- Benefits / Join section ---------- */
.benefits-section { padding-top: 50px; padding-bottom: 50px; }
.benefits-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.benefits-header h2 { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.01em; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.benefit-item-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.5rem; color: var(--ink); }
.benefit-item p { font-size: 0.95rem; color: var(--ink); line-height: 1.5; }

/* ---------- Popular services carousel (homepage) ---------- */
.popular-services-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    padding-top: 8px;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.popular-service-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #0d3b26;
    transition: transform 0.15s;
}
.popular-service-card:hover { transform: translateY(-3px); }
.popular-service-card-title { color: #fff; font-weight: 700; font-size: 1rem; padding: 18px 16px; line-height: 1.3; min-height: 68px; }
.popular-service-card-art {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 12px 12px;
    border-radius: var(--radius);
}
.popular-service-art-0 { background: #C8E6D9; }
.popular-service-art-1 { background: #F5D9C8; }
.popular-service-art-2 { background: #D9CBA0; }
.popular-service-art-3 { background: #E8C4D0; }
.popular-service-art-4 { background: #C9DCE8; }
.popular-service-art-5 { background: #DCE0C8; }

/* ---------- Become a seller CTA (homepage) ---------- */
.become-seller-section { padding-top: 40px; padding-bottom: 60px; }
.become-seller-card {
    background-color: #023a15;
    background-image:
        linear-gradient(rgba(2,58,21,0.75), rgba(2,58,21,0.75)),
        url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1600&q=80');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    padding: 70px 40px;
    text-align: center;
    color: #fff;
}
.become-seller-card h2 { font-size: 2rem; color: #fff; margin-bottom: 16px; letter-spacing: -0.02em; }
.become-seller-card p { font-size: 1.05rem; max-width: 560px; margin: 0 auto 30px; color: #E4E5E7; }
.btn-become-seller {
    background: var(--ink);
    color: #fff;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    display: inline-block;
}
.btn-become-seller:hover { background: #000; }

/* ================================================================
   Referral program
   ================================================================ */
.referral-hero { display: flex; min-height: 420px; }
.referral-hero-left {
    flex: 1;
    background: #FDECEC;
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.referral-hero-eyebrow { color: var(--rust); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.referral-hero-left h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; max-width: 480px; }
.referral-hero-left p { font-size: 0.95rem; color: var(--ink-soft); max-width: 460px; margin-bottom: 24px; line-height: 1.6; }
.referral-terms-link { margin-top: 16px; font-size: 0.82rem; }
.referral-terms-link a { text-decoration: underline; color: var(--ink); }
.referral-track-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--primary); }
.referral-hero-right {
    flex: 1;
    background: linear-gradient(135deg, #E8532E, #C43A1F);
    display: flex;
    align-items: center;
    justify-content: center;
}
.referral-hero-graphic {
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 3.5rem;
}
.referral-link-box { display: flex; gap: 8px; max-width: 480px; }
.referral-link-box input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    background: #fff;
    color: var(--ink-soft);
}

/* ---------- Earnings widget (dashboard referrals page) ---------- */
.earnings-widget {
    display: flex;
    align-items: center;
    gap: 22px;
    background: linear-gradient(135deg, #0d3b26, #19A463);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    margin-bottom: 24px;
    color: #fff;
    flex-wrap: wrap;
}
.earnings-widget-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.earnings-widget-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 200px; }
.earnings-widget-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.5px; }
.earnings-widget-amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.earnings-widget-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255,255,255,0.85); margin-top: 4px; }
.earnings-widget-meta strong { color: #fff; }
.earnings-widget-rate {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-left: 22px;
    border-left: 1px solid rgba(255,255,255,0.2);
}
.earnings-widget-rate span { font-size: 0.76rem; color: rgba(255,255,255,0.75); }
.earnings-widget-rate strong { font-size: 1.2rem; font-weight: 700; }

@media (max-width: 640px) {
    .earnings-widget { flex-direction: column; align-items: flex-start; }
    .earnings-widget-rate { border-left: none; padding-left: 0; align-items: flex-start; }
}

.referral-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 24px; }
.referral-step-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.referral-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.referral-step p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 768px) {
    .referral-hero { flex-direction: column; min-height: 0; }
    .referral-hero-left { padding: 40px 24px; }
    .referral-hero-right { min-height: 220px; }
}

/* ---------- Simple page-header hero (blog, help center - not the homepage) ---------- */
.page-hero {
    background: var(--header-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 700px 400px at 85% -10%, rgba(29,191,115,0.35), transparent 70%);
    pointer-events: none;
}
.page-hero-eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}
.page-hero h1 { color: #fff; position: relative; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }

/* ================================================================
   Help Center (modernized, matching the reference design)
   ================================================================ */
.help-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 24px 80px;
    text-align: center;
    background: linear-gradient(135deg, #A8D5BE 0%, #1B5E3A 55%, #0d3b26 100%);
}
.help-hero-shapes { position: absolute; inset: 0; overflow: hidden; }
.hs-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12); }
.hs-circle-1 { width: 220px; height: 220px; top: -60px; left: 8%; background: rgba(255,255,255,0.15); }
.hs-circle-2 { width: 160px; height: 160px; bottom: -40px; right: 14%; background: rgba(0,0,0,0.1); }
.hs-triangle {
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 260px 260px 0;
    border-color: transparent rgba(255,255,255,0.08) transparent transparent;
}
.hs-sparkle { position: absolute; top: 18%; right: 8%; color: rgba(255,255,255,0.65); font-size: 1.6rem; }
.help-hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.help-hero-content h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 26px; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.help-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 4px 4px 4px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 18px;
}
.help-search-box input { flex: 1; border: none; padding: 13px 0; font-size: 0.95rem; font-family: inherit; outline: none; color: var(--ink); }
.help-search-box button { background: var(--ink); color: #fff; border: none; width: 44px; height: 44px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.help-search-box button:hover { background: #000; }
.help-top-searches { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; }
.help-top-searches span { color: rgba(255,255,255,0.75); }
.help-top-searches a {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}
.help-top-searches a:hover { background: rgba(255,255,255,0.28); }

.help-tabs { display: flex; gap: 34px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.help-tab-btn {
    background: none; border: none; font-family: inherit;
    font-size: 1rem; font-weight: 600; color: var(--ink-soft);
    padding: 14px 0; cursor: pointer; position: relative;
}
.help-tab-btn:hover { color: var(--ink); }
.help-tab-btn.active { color: var(--ink); }
.help-tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--ink); }
.help-tab-panel { display: none; }
.help-tab-panel.active { display: block; }

.help-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 32px; }
.help-topic-card { min-width: 0; }
.help-topic-icon {
    width: 44px; height: 44px;
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 16px;
}
.help-topic-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.help-topic-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.help-topic-links a { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.4; }
.help-topic-links a:hover { color: var(--primary); text-decoration: underline; }
.help-topic-empty { color: var(--ink-soft); font-size: 0.85rem; }
.help-see-all {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 18px;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
}
.help-see-all:hover { background: var(--ink); color: #fff; }

@media (max-width: 640px) {
    .help-hero { padding: 50px 20px 60px; }
    .hs-triangle { display: none; }
}


/* ---------- Section headings ---------- */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 12px;
    flex-wrap: wrap;
}
.section-head h2 { font-size: 1.6rem; }
.section-head .view-all { font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

/* ---------- Category navigator box (category page) ---------- */
.category-nav-box {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.category-nav-main {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.category-nav-main a { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.category-nav-main a:hover, .category-nav-main a.active { color: var(--primary); }
.category-nav-sub { display: flex; gap: 16px; flex-wrap: wrap; }
.category-nav-sub a { font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); }
.category-nav-sub a:hover, .category-nav-sub a.active { color: var(--primary); }

/* ---------- Subcategory pills (all-categories list page) ---------- */
.subcategory-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.subcategory-pills a {
    background: var(--paper-raised);
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.subcategory-pills a:hover { border-color: var(--primary); color: var(--ink); }

/* ---------- Category sort/filter bar ---------- */
.category-filters {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 24px;
}
.category-filters .field { margin-bottom: 0; }
.category-filters select,
.category-filters input {
    padding: 8px 10px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
}
.category-filters input[type="number"] { width: 100px; }

/* ================================================================
   Category page top section (matches the reference design)
   ================================================================ */
.cat-page-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; }
.cat-page-breadcrumb a { color: var(--ink-soft); }
.cat-page-breadcrumb a:hover { color: var(--ink); }
.cat-page-breadcrumb .slash { color: #d5d6d9; }
.cat-page-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.cat-page-subtitle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 24px; }
.cat-subtitle-divider { color: var(--line); }
.cat-page-subtitle a { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.cat-page-subtitle a:hover { color: var(--primary); }

.cat-filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.cat-filter-dropdowns { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-filter-dd { position: relative; }
.cat-filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
}
.cat-filter-btn:hover { border-color: #b5b6ba; }
.cat-filter-btn i { font-size: 0.7rem; color: var(--ink-soft); transition: transform 0.15s; }
.cat-filter-dd.open .cat-filter-btn i { transform: rotate(180deg); }
.cat-filter-dd.open .cat-filter-btn { border-color: var(--ink); }
.cat-filter-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 220px;
    padding: 14px;
    z-index: 90;
}
.cat-filter-dd.open .cat-filter-panel { display: block; }
.cat-filter-panel-budget { min-width: 260px; }

@media (max-width: 640px) {
    .cat-filter-panel, .cat-filter-panel-budget { min-width: 0; max-width: calc(100vw - 48px); }
    .cat-results-row { flex-direction: column; align-items: flex-start; }
}
.cat-filter-check { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--ink); padding: 7px 4px; cursor: pointer; }
.cat-filter-check:hover { color: var(--primary); }
.cat-filter-check input { accent-color: var(--ink); flex-shrink: 0; }
.cat-filter-budget-row { display: flex; gap: 10px; margin-bottom: 6px; }
.cat-filter-budget-row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.cat-filter-budget-row input {
    width: 90px;
    padding: 8px 10px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.86rem;
}
.cat-filter-apply-btn {
    width: 100%;
    margin-top: 8px;
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 9px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    font-family: inherit;
}
.cat-filter-apply-btn:hover { background: #000; }

.cat-toggle-wrap { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.cat-toggle-switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.cat-toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cat-toggle-slider {
    position: absolute; inset: 0;
    background: var(--line);
    border-radius: 22px;
    transition: background 0.15s;
}
.cat-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.cat-toggle-switch input:checked + .cat-toggle-slider { background: var(--primary); }
.cat-toggle-switch input:checked + .cat-toggle-slider::before { transform: translateX(16px); }

.cat-results-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); margin-bottom: 8px; }
.cat-results-count { font-size: 0.88rem; color: var(--ink-soft); display: flex; align-items: center; gap: 14px; }
.cat-clear-filters { color: var(--primary); font-weight: 600; text-decoration: underline; }
.cat-sort-row { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.cat-sort-row select {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- Category grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.category-card .icon { font-size: 2rem; margin-bottom: 10px; }
.category-card h3 { font-size: 1rem; margin-bottom: 4px; }
.category-card .count { color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- Category directory (all-categories page, sitemap-style) ---------- */
.cat-directory-header { margin-bottom: 40px; }
.cat-directory-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.cat-directory-header p { font-size: 1rem; color: var(--ink-soft); }
.cat-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
}
.cat-directory-column { min-width: 0; }
.cat-directory-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}
.cat-directory-title:hover { color: var(--primary); }
.cat-directory-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.cat-directory-list a { font-size: 0.88rem; color: var(--ink-soft); }
.cat-directory-list a:hover { color: var(--primary); text-decoration: underline; }
.cat-directory-empty { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

@media (max-width: 992px) {
    .cat-directory-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .cat-directory-grid { grid-template-columns: 1fr; }
}

/* ---------- Service / gig cards (exact structure from the reference design) ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
@media (max-width: 640px) {
    .service-grid { grid-template-columns: 1fr; gap: 28px; }
    .gig-image-wrapper { height: 280px; margin-bottom: 14px; }
    .gig-card { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
}
.gig-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    text-decoration: none;
}
.gig-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    display: block;
    background: linear-gradient(135deg, var(--primary), #0E9B5C);
}
.gig-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
#preview_image_thumb {
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.9rem; text-align: center; padding: 12px;
}
.gig-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.9rem; text-align: center; padding: 12px;
}
.promoted-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--gold);
    color: #3A2900;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.heart-icon-img, .heart-icon-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    z-index: 2;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}
.heart-icon-btn:hover, .heart-icon-img:hover { color: #ff5b5b; transform: scale(1.1); }
.heart-icon-btn.favorited { color: #ff5b5b; }
.heart-icon-btn.favorited i { font-weight: 900; }

.gig-info { display: flex; flex-direction: column; padding: 0 4px; flex: 1; min-width: 0; }
.seller-info { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
.seller-avatar-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.seller-name { font-weight: 600; font-size: 0.82rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.seller-name:hover { text-decoration: underline; }
.fiverr-gig-header-overview .seller-name { font-size: 0.98rem; }
.gig-title {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 8px;
    flex: 1;
}
.gig-title:hover { text-decoration: underline; }
.gig-rating { display: flex; align-items: center; gap: 4px; font-size: 0.86rem; margin-bottom: 12px; color: var(--ink); }
.gig-rating i { color: var(--ink); font-size: 0.8rem; }
.gig-rating strong { font-weight: 700; }
.gig-rating span { color: var(--ink-soft); font-weight: 400; font-size: 0.8rem; }
.gig-footer { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 4px 6px; }
.price-box { display: flex; align-items: baseline; gap: 5px; }
.price-box small { font-size: 0.72rem; color: var(--ink); font-weight: 600; }
.price-box .price { font-size: 1.02rem; font-weight: 700; color: var(--ink); }

.avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.72rem;
    flex-shrink: 0;
}
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar-img { object-fit: cover; background: var(--paper); }

/* ---------- Online status dot ---------- */
.avatar-status-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.avatar-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.avatar-status-dot.is-online { background: var(--primary); }
.avatar-status-dot.is-offline { background: #B8BCC4; }
.avatar.lg + .avatar-status-dot { width: 15px; height: 15px; border-width: 3px; }
.online-status-text { font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; }
.online-status-text.is-online { color: var(--primary); font-weight: 700; }

/* ---------- Avatar preset picker (Settings) ---------- */
.avatar-preset-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.avatar-preset-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: none;
}
.avatar-preset-btn img { width: 100%; height: 100%; display: block; }
.avatar-preset-btn:hover { border-color: var(--line); }
.avatar-preset-btn.active { border-color: var(--primary); }

/* .stars / .price-tag: general-purpose, used well beyond gig cards
   (order summaries, review displays, invoices, etc.) - kept as-is. */
.stars { color: var(--ink); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.stars i { color: var(--ink); font-size: 0.8rem; }
.price-tag {
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
}
.price-tag small { font-size: 0.68rem; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; }

/* ---------- Forms / auth ---------- */
.auth-wrap {
    max-width: 420px;
    margin: 48px auto;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: var(--shadow);
}
.auth-wrap h1 { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
.auth-sub { color: var(--ink-soft); margin-bottom: 26px; font-size: 12px; line-height: 1.4; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--ink);
}
.field input[readonly] { background: var(--paper); color: var(--ink-soft); cursor: not-allowed; }

/* ---------- "I will" fixed-prefix gig title field ---------- */
.title-prefix-field {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.title-prefix-field:focus-within { border-color: var(--ink); }
.title-prefix-fixed {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    background: var(--paper);
    border-right: 1px solid var(--line);
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}
.title-prefix-field input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 11px 15px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
}
.title-prefix-field input:focus { outline: none; }

.role-choice { display: flex; gap: 10px; }
.role-choice label {
    flex: 1;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.86rem;
}
.role-choice input { width: auto; margin-right: 6px; }
.form-error {
    background: #FDECEE;
    border: 1px solid var(--rust);
    color: #A5192A;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 18px;
}
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--ink-soft); }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ---------- Service details ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary); }
.desc-block { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 30px; }
.desc-block h2 { font-size: 1.25rem; margin-bottom: 12px; }

.order-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--sticky-header-height, 132px) + 20px);
    max-height: calc(100vh - var(--sticky-header-height, 132px) - 40px);
    overflow-y: auto;
}
.order-card .price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.order-card .price-row .price-tag { font-size: 1.6rem; }
.order-card ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.9rem; color: var(--ink-soft); }
.order-card ul li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }

.promo-form { display: flex; gap: 8px; margin-bottom: 14px; }
.promo-form input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.86rem;
}
.promo-form input:focus { outline: none; border-color: var(--primary); }
.promo-form button { padding: 9px 14px; font-size: 0.84rem; white-space: nowrap; }

.review-item { border-top: 1px solid var(--line); padding: 18px 0; }
.review-item .review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-item .review-head strong { font-size: 0.92rem; }
.review-item .stars { font-size: 0.85rem; }
.review-form textarea { min-height: 90px; resize: vertical; }

/* ================================================================
   Service details page (redesigned)
   ================================================================ */
.gig-details-page { padding-top: 26px; }
.top-action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.breadcrumb .slash { color: #b5b6ba; font-weight: 300; }
.gig-actions-bar { display: flex; gap: 8px; align-items: center; }
.fiverr-pill-btn {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fiverr-pill-btn:hover { border-color: #b5b6ba; background: #fafafa; }
.fiverr-pill-btn.is-favorited { color: #ff5b5b; border-color: #ffd4d4; background: #fff5f5; }
.fiverr-pill-btn.is-favorited i { color: #ff5b5b; }

.gig-layout { display: grid; grid-template-columns: 1fr 400px; gap: 50px; align-items: start; }
.gig-main-content { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.gig-main-title { font-size: 1.7rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }

.fiverr-gig-header-overview { display: flex; align-items: center; gap: 14px; }
.avatar.fiverr-gig-header-avatar-wrap { width: 52px; height: 52px; font-size: 1.15rem; }
.fiverr-gig-header-meta { display: flex; flex-direction: column; gap: 5px; }
.header-meta-row-1 { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; flex-wrap: wrap; }
.header-meta-row-1 .seller-name { font-weight: 700; color: var(--ink); }
.header-meta-row-1 .seller-name:hover { text-decoration: underline; }
.header-queue-text { color: var(--ink-soft); font-weight: 400; font-size: 0.88rem; }
.header-meta-row-2 { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.header-stars { display: flex; gap: 2px; color: var(--gold); font-size: 0.8rem; }
.header-rating-score { font-weight: 700; color: var(--ink); margin-left: 2px; }
.header-reviews-link { color: var(--ink-soft); text-decoration: underline; }

/* ---------- Gallery ---------- */
.fiverr-gig-slider-wrapper { display: flex; flex-direction: column; gap: 10px; }
.gig-slider-main-box {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gig-slide-img { width: 100%; height: 100%; object-fit: cover; }
.gig-slide-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary), #0E9B5C);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.9); font-weight: 600; font-size: 1.1rem;
}
.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}
.gig-slider-main-box:hover .slider-arrow-btn { opacity: 1; visibility: visible; }
.slider-arrow-btn.prev-btn { left: 14px; }
.slider-arrow-btn.next-btn { right: 14px; }
.gig-thumbnails-wrapper { width: 100%; }
.gig-thumbnails-container { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gig-thumbnails-container::-webkit-scrollbar { display: none; }
.gig-thumb-item { flex: 1; min-width: 70px; height: 60px; border-radius: var(--radius); overflow: hidden; cursor: pointer; opacity: 0.5; }
.gig-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.gig-thumb-item:hover { opacity: 0.8; }
.gig-thumb-item.active { opacity: 1; outline: 2px solid var(--primary); outline-offset: -2px; }

@media (max-width: 640px) {
    .gig-slider-main-box { height: 260px; }
    /* :hover doesn't exist on touch devices, so the arrows must be
       visible by default here rather than relying on hover to reveal them -
       otherwise there's no way to reach them on mobile at all. */
    .slider-arrow-btn { opacity: 1; visibility: visible; width: 36px; height: 36px; font-size: 0.8rem; }
    .gig-main-title { font-size: 1.35rem; }
    .order-card { padding: 18px; }
}

.content-section { display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 28px; min-width: 0; }
.content-section h3 { font-size: 1.25rem; }
.content-section p { font-size: 0.95rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Package comparison table ---------- */
.fiverr-compare-wrapper { overflow-x: auto; }
.fiverr-compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 700px; border: 1px solid var(--line); }
.fiverr-compare-table th, .fiverr-compare-table td { border: 1px solid var(--line); padding: 18px 16px; vertical-align: middle; }
.fiverr-compare-table th:first-child, .fiverr-compare-table td:first-child { width: 22%; text-align: left; color: var(--ink-soft); font-size: 0.86rem; font-weight: 500; }
.fiverr-compare-table td:not(:first-child) { text-align: center; color: var(--ink); font-weight: 600; font-size: 0.86rem; }
.fiverr-compare-table th:not(:first-child) { text-align: left; vertical-align: top; background: #fff; }
.fiverr-compare-table tbody tr:nth-child(even) { background: #fafafa; }
.compare-price { font-size: 1.15rem; color: var(--ink); font-weight: 700; margin-bottom: 6px; display: block; }
.compare-pkg-tier { text-transform: uppercase; color: #404145; font-size: 0.7rem; font-weight: 700; margin-bottom: 8px; display: block; }
.compare-pkg-desc { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.4; font-weight: 400; }
.fiverr-compare-table .fa-check.active { color: var(--ink); font-size: 0.95rem; }
.fiverr-compare-table .fa-check.inactive { color: #d5d6d9; font-size: 0.95rem; }
.total-price-row td { background: #fff !important; }
.btn-select-pkg { background: var(--ink); color: #fff; border: none; width: 100%; padding: 10px; font-weight: 600; font-size: 0.9rem; border-radius: var(--radius); cursor: pointer; font-family: inherit; }
.btn-select-pkg:hover { background: #000; }

/* ---------- Seller profile card ---------- */
.seller-profile-card { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 640px) {
    .seller-profile-card { padding: 18px; }
}
.seller-header-flex { display: flex; gap: 18px; align-items: flex-start; }
.avatar.seller-img-avatar-wrap { width: 72px; height: 72px; font-size: 1.6rem; }
.seller-header-details { display: flex; flex-direction: column; gap: 6px; }
.seller-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seller-name-row h4 { font-size: 1.05rem; margin: 0; }
.seller-profile-card-name-link { color: var(--ink); text-decoration: none; }
.seller-profile-card-name-link:hover { text-decoration: underline; }
.seller-title-sub { font-size: 0.88rem; color: var(--ink-soft); }
.seller-badges-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.badge-top-rated {
    background: #FFF8E5;
    color: #B56A00;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius);
}
.btn-contact-me {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-contact-me:hover { background: var(--paper); }
.seller-rating-badges-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.seller-inline-rating { display: flex; align-items: center; gap: 5px; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.seller-inline-rating span { font-weight: 400; color: var(--ink-soft); }
.seller-details-box { border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.seller-vetted-content { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.seller-bio-text-inline { font-size: 0.88rem; color: #404145; line-height: 1.6; margin: 0 0 14px; }
.seller-vetted-heading { font-size: 0.95rem; font-weight: 700; margin: 0 0 12px; }
.seller-vetted-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.seller-vetted-item { font-size: 0.88rem; color: var(--ink); }
.seller-vetted-item i { color: var(--primary); margin-right: 8px; }
.seller-info-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.seller-info-grid-2col > div { display: flex; flex-direction: column; gap: 3px; }
.seller-info-grid-2col span { font-size: 0.8rem; color: var(--ink-soft); }
.seller-info-grid-2col strong { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.seller-info-grid-full { grid-column: 1 / -1; }

/* ---------- Reviews dashboard ---------- */
.reviews-empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.reviews-empty-state i { font-size: 2.2rem; color: var(--line); margin-bottom: 14px; display: block; }
.reviews-empty-state p { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.reviews-empty-state span { font-size: 0.88rem; }

.reviews-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.reviews-count-line { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.reviews-sub-title-block { display: flex; flex-direction: column; gap: 4px; }
.reviews-overall-score { display: flex; align-items: center; gap: 6px; }
.reviews-overall-score i { color: var(--gold); font-size: 0.9rem; }
.reviews-overall-score strong { font-size: 1.05rem; font-weight: 800; margin-left: 4px; }

.reviews-dashboard { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.rating-stars-breakdown { display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.star-row { display: flex; align-items: center; gap: 12px; font-size: 0.86rem; font-weight: 600; }
.star-label { width: 55px; white-space: nowrap; color: var(--ink); }
.progress-bar-bg { flex: 1; height: 8px; background: var(--line); border-radius: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--ink); border-radius: 10px; }
.star-count { width: 42px; color: var(--ink-soft); font-size: 0.8rem; text-align: right; }

.rating-breakdown-panel { border-left: 1px solid var(--line); padding-left: 32px; }
.rating-breakdown-panel h4 { font-size: 0.95rem; margin-bottom: 14px; }
.rating-breakdown-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 0.86rem; color: var(--ink-soft); }
.rating-breakdown-row span:last-child { display: flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 700; }
.rating-breakdown-row i { color: var(--gold); font-size: 0.8rem; }

.reviews-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.reviews-search-box { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; max-width: 320px; flex: 1; }
.reviews-search-box input { flex: 1; min-width: 0; border: none; padding: 10px 14px; font-family: inherit; font-size: 0.86rem; }
.reviews-search-box input:focus { outline: none; }
.reviews-search-box button { border: none; background: var(--ink); color: #fff; padding: 10px 14px; cursor: pointer; }
.reviews-sort-box { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-soft); }
.reviews-sort-box select { border: 1.5px solid var(--line); border-radius: 6px; padding: 8px 10px; font-family: inherit; font-size: 0.86rem; color: var(--ink); cursor: pointer; }

.review-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 14px; }
.review-user-header { display: flex; align-items: center; gap: 12px; }
.avatar.user-avatar-circle-wrap { width: 44px; height: 44px; font-size: 1.05rem; }
.review-user-info { display: flex; flex-direction: column; gap: 2px; }
.user-name-row strong { font-size: 0.92rem; }
.review-stars-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-soft); border-top: 1px solid #f0f0f0; padding-top: 10px; }
.review-stars-row i { color: var(--gold); font-size: 0.75rem; }
.review-text { font-size: 0.88rem; line-height: 1.6; color: var(--ink); }

.review-helpful-row { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--ink-soft); flex-wrap: wrap; }
.review-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: inherit;
}
.review-vote-btn:hover { border-color: var(--ink); color: var(--ink); }
.review-vote-btn.voted { background: var(--ink); border-color: var(--ink); color: #fff; }
.review-vote-btn .js-helpful-count, .review-vote-btn .js-not-helpful-count { font-weight: 700; }

@media (max-width: 640px) {
    .reviews-dashboard { grid-template-columns: 1fr; }
    .rating-breakdown-panel { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}

/* ---------- Related services strip ---------- */
.related-services-wrapper { background: #fafafa; border-top: 1px solid var(--line); padding: 50px 0; margin-top: 50px; }
.related-header { margin-bottom: 22px; }
.related-header h2 { font-size: 1.4rem; letter-spacing: -0.02em; }

@media (max-width: 992px) {
    .gig-layout { grid-template-columns: 1fr; }
    .order-card#packageSidebar { position: static; }
    .seller-metrics-grid { grid-template-columns: 1fr; }
}

/* ---------- Seller profile (modern redesign) ---------- */
.seller-profile-header { background: #fff; border-bottom: 1px solid var(--line); padding: 40px 0; }
.seller-profile-header-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.seller-profile-identity { display: flex; align-items: stretch; gap: 22px; }
.seller-profile-identity-text { display: flex; flex-direction: column; justify-content: space-between; }
.seller-avatar-backdrop {
    width: 140px; height: 140px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.seller-avatar-backdrop .avatar, .seller-avatar-backdrop img { width: 114px; height: 114px; font-size: 2.3rem; }
.seller-avatar-backdrop-0 { background: #FBD5D5; }
.seller-avatar-backdrop-1 { background: #C8E6D9; }
.seller-avatar-backdrop-2 { background: #F5D9C8; }
.seller-avatar-backdrop-3 { background: #D9CBA0; }
.seller-avatar-backdrop-4 { background: #C9DCE8; }
.seller-avatar-backdrop-5 { background: #E8C4D0; }
.seller-profile-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.seller-profile-name-row h1 { font-size: 2.1rem; margin: 0; }
.seller-online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.seller-online-dot.is-online { background: var(--primary); }
.seller-vetted-pill { background: var(--primary-light); color: var(--primary-dark); font-size: 0.9rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.seller-profile-meta-row { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 8px; }
.seller-meta-rating { display: flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 700; }
.seller-meta-rating i { color: var(--gold); }
.seller-meta-rating span { color: var(--ink-soft); font-weight: 400; }
.seller-meta-dot { color: var(--line); }
.seller-profile-tagline { font-size: 1.12rem; color: var(--ink); margin-bottom: 8px; }
.seller-profile-submeta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--ink-soft); }
.seller-profile-submeta i { margin-right: 5px; }
.seller-country { display: inline-flex; align-items: center; gap: 6px; }
.seller-country i { margin-right: 0; }
.seller-country-flag { width: 18px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }

.seller-profile-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; margin-bottom: 20px; }
.seller-profile-content { min-width: 0; }
.seller-profile-block { margin-bottom: 32px; }
.seller-profile-block h3 { font-size: 1.05rem; margin-bottom: 12px; }
.seller-bio { color: var(--ink); font-size: 0.94rem; line-height: 1.6; }
.seller-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.seller-badge {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.skills-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.skill-pill { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }

/* ---------- Skills combobox (search + pills inside one box, dropdown list below) ---------- */
.skills-combobox { position: relative; }
.skills-combobox-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    min-height: 46px;
    padding: 6px 40px 6px 8px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: text;
    position: relative;
}
.skills-combobox-box:hover { border-color: #b5b6ba; }
.skills-combobox.open .skills-combobox-box { border-color: var(--ink); }
.skills-combobox-box > i.fa-chevron-down {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: var(--ink-soft);
    transition: transform 0.15s;
    pointer-events: none;
}
.skills-combobox.open .skills-combobox-box > i.fa-chevron-down { transform: translateY(-50%) rotate(180deg); }
.skills-combobox-pills { display: contents; }
.skills-combobox-input {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    padding: 6px 4px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--ink);
    background: transparent;
}
.skills-combobox-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 6px 5px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
}
.skills-combobox-pill button {
    background: none;
    border: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px;
    display: flex;
    align-items: center;
}
.skills-combobox-pill button:hover { color: var(--rust); }

.skills-combobox-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    max-height: 280px;
    overflow-y: auto;
    z-index: 40;
}
.skills-combobox.open .skills-combobox-dropdown { display: block; }
.skills-combobox-option { padding: 11px 16px; font-size: 0.88rem; color: var(--ink); cursor: pointer; }
.skills-combobox-option:hover { background: var(--paper); }
.skills-combobox-option.is-active { background: var(--primary-light); color: var(--primary-dark); }
.skills-combobox-option.is-selected { color: var(--ink-soft); background: var(--paper); pointer-events: none; }
.skills-combobox-empty { padding: 14px 16px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }

.seller-contact-card { position: sticky; top: calc(var(--sticky-header-height, 132px) + 20px); display: flex; flex-direction: column; gap: 14px; margin-top: -28px; }

@media (max-width: 860px) {
    .seller-contact-card { display: none; }
}
.seller-contact-card-head { display: flex; align-items: center; gap: 12px; }
.seller-contact-avatar { width: 48px; height: 48px; font-size: 1.1rem; }
.seller-contact-card-head strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.seller-contact-price { font-size: 0.85rem; color: var(--ink-soft); }
.seller-contact-status { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.seller-response-time { text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.seller-response-time strong { display: block; color: var(--ink); font-size: 0.86rem; margin-top: 2px; }

/* The condensed sticky profile bar - hidden by default, JS adds .visible
   once the visitor scrolls past the real identity section. Fixed at the
   very top with a higher z-index than the site's own sticky header
   (101), so it visually covers it while active, matching the reference
   design exactly. */
.seller-sticky-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-100%);
    transition: transform 0.2s ease;
}
.seller-sticky-topbar.visible { transform: translateY(0); }
.seller-sticky-row-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; flex-wrap: wrap; }
.seller-sticky-identity { display: flex; align-items: center; gap: 12px; }
.seller-sticky-avatar { width: 44px; height: 44px; font-size: 1.05rem; }
.seller-sticky-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.seller-sticky-name-row strong { font-size: 0.98rem; }
.seller-sticky-meta { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-soft); }
.seller-sticky-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.seller-sticky-right .btn { padding: 9px 18px; font-size: 0.85rem; }
.seller-sticky-response { font-size: 0.76rem; color: var(--ink-soft); }

/* The tabs live in their own full-width row below the identity row,
   bordered top and bottom - matching the reference exactly, and making
   the whole bar tall enough to fully cover the site's own header
   (including the categories bar) while active, rather than leaving a
   gap where it peeks through underneath. */
.seller-sticky-row-tabs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seller-sticky-tabs { display: flex; gap: 30px; }
.seller-sticky-tabs .js-seller-nav-link { padding: 14px 0; font-size: 0.9rem; }

.js-seller-nav-link {
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
    position: relative;
}
.js-seller-nav-link:hover { color: var(--ink); }
.js-seller-nav-link.active { color: var(--primary); }
.js-seller-nav-link.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--primary); }

@media (max-width: 992px) {
    .seller-sticky-row-tabs { display: none; }
}
@media (max-width: 768px) {
    .seller-sticky-identity { gap: 10px; }
    .seller-sticky-right { display: none; }
}

@media (max-width: 860px) {
    .seller-profile-layout { grid-template-columns: 1fr; }
    .seller-contact-card { position: static; }
}
@media (max-width: 640px) {
    .seller-profile-header-inner { flex-direction: column; }
    .seller-profile-identity { flex-direction: column; align-items: flex-start; }
}

/* ---------- Empty / not found ---------- */
.empty-state { text-align: center; padding-top: 70px; padding-bottom: 70px; color: var(--ink-soft); }
.empty-state h2 { margin-bottom: 10px; }

/* ---------- 404 page ---------- */
.notfound-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--header-dark) 0%, var(--primary-dark) 55%, var(--primary-light) 100%);
    padding: 90px 0 100px;
    text-align: center;
}
.notfound-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.notfound-shape { position: absolute; border-radius: 50%; opacity: 0.12; background: #fff; }
.notfound-shape-1 { width: 260px; height: 260px; top: -60px; left: -60px; }
.notfound-shape-2 { width: 180px; height: 180px; bottom: -40px; right: 8%; }
.notfound-shape-3 { width: 120px; height: 120px; top: 30%; right: -30px; }
.notfound-inner { position: relative; max-width: 620px; }
.notfound-icon { width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; }
.notfound-hero h1 { color: #fff; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.notfound-sub { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 30px; }
.notfound-sub span { display: block; font-size: 0.86rem; color: rgba(255,255,255,0.65); margin-top: 4px; }
.notfound-search { display: flex; max-width: 460px; margin: 0 auto 22px; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.notfound-search input { flex: 1; border: none; padding: 14px 18px; font-family: inherit; font-size: 0.95rem; }
.notfound-search input:focus { outline: none; }
.notfound-search button { border: none; background: var(--ink); color: #fff; padding: 0 20px; cursor: pointer; font-size: 0.95rem; }
.notfound-popular { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.notfound-popular span { color: rgba(255,255,255,0.75); font-size: 0.86rem; font-weight: 600; }
.notfound-popular a { background: rgba(255,255,255,0.14); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.notfound-popular a:hover { background: rgba(255,255,255,0.26); }
.notfound-home-link { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.notfound-home-link:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

@media (max-width: 640px) {
    .notfound-hero { padding: 60px 0 70px; }
    .notfound-hero h1 { font-size: 1.5rem; }
    .notfound-search { flex-direction: column; box-shadow: none; }
    .notfound-search input, .notfound-search button { border-radius: 8px; }
    .notfound-search button { padding: 12px; margin-top: 8px; }
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    margin-top: 40px;
    padding: 60px 0 30px;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin-bottom: 44px;
}
.footer-col h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.footer-col a { display: block; color: var(--ink-soft); text-decoration: none; margin-bottom: 14px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-accordion-summary {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: default;
    pointer-events: none;
    font-family: inherit;
}
.footer-accordion-summary h3 { margin-bottom: 20px; }
.footer-col-links { display: block; }
.footer-accordion-chevron { display: none; }
.footer-logo-area { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-logo-area .logo { color: var(--ink); }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.copyright-text { color: var(--ink-soft); font-size: 0.85rem; }
.footer-bottom-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-social { display: flex; align-items: center; gap: 18px; }
.footer-social a { color: var(--ink-soft); font-size: 1.2rem; }
.footer-social a:hover { color: var(--primary); }

@media (max-width: 992px) {
    .footer-top-5col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .footer-top-5col { grid-template-columns: 1fr; gap: 0; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
    .footer-logo-area { flex-direction: column; gap: 10px; }
    .footer-bottom-right { flex-direction: column; align-items: center; gap: 16px; }
    .footer-accordion { border-bottom: 1px solid var(--line); }
    .footer-accordion-summary {
        pointer-events: auto;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
    }
    .footer-accordion-summary h3 { margin-bottom: 0; }
    .footer-col-links { display: none; padding-bottom: 16px; }
    .footer-accordion.footer-accordion-open .footer-col-links { display: block; }
    .footer-accordion-chevron { display: block; font-size: 0.8rem; color: var(--ink-soft); transition: transform 0.15s; }
    .footer-accordion.footer-accordion-open .footer-accordion-chevron { transform: rotate(180deg); }
}

/* ================================================================
   Auth modal (exact structure/classes from the reference design)
   ================================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box-fiverr {
    background: #fff;
    width: 880px;
    max-width: 95vw;
    height: 560px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box-fiverr { transform: translateY(0); }
.modal-left-banner {
    flex: 1;
    background-color: #0d3b26;
    background-image: linear-gradient(rgba(13, 59, 38, 0.85), rgba(13, 59, 38, 0.85)), url('https://images.unsplash.com/photo-1531482615713-2afd69097998?w=800&q=80');
    background-size: cover;
    background-position: center;
    padding: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.modal-left-banner h2 { font-size: 30px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; color: #fff; }
.modal-features { list-style: none; display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; }
.modal-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.modal-features li i { background: rgba(255,255,255,0.2); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }

.modal-right-form { flex: 1.1; padding: 35px 40px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow-y: auto; }
.modal-top-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-back-btn { background: none; border: none; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: inherit; }
.modal-back-btn:hover { color: var(--primary); }
.modal-close-x { background: none; border: none; font-size: 20px; color: var(--ink-soft); cursor: pointer; }
.modal-close-x:hover { color: var(--ink); }
.modal-form-header h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.5px; }
.modal-form-header p { font-size: 12px; color: var(--ink-soft); margin-bottom: 15px; line-height: 1.4; }

.auth-options-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 15px; }
.social-auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 14px; font-weight: 600; color: var(--ink);
    cursor: pointer;
    font-family: inherit;
}
.social-auth-btn:hover { background: var(--paper); border-color: #b5b6ba; }
.divider-text { text-align: center; position: relative; margin: 15px 0; font-size: 12px; color: var(--ink-soft); }
.divider-text::before, .divider-text::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--line); }
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.auth-form-steps { display: none; }
.auth-form-steps.active-step { display: block; }
.modal-form-content { display: block; }
.fiverr-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; text-align: left; position: relative; }
.fiverr-form-group label { font-size: 13px; font-weight: 600; color: var(--ink); }
.fiverr-form-group input {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.fiverr-form-group input:focus { border-color: var(--ink); }
.password-eye-icon { position: absolute; right: 15px; top: 36px; color: var(--ink-soft); cursor: pointer; font-size: 16px; }
.forgot-password-link { text-align: right; margin-top: -6px; margin-bottom: 15px; }
.forgot-password-link a { font-size: 12px; color: var(--ink); text-decoration: underline; font-weight: 500; }
.fiverr-submit-btn {
    background: var(--ink);
    color: #fff;
    border: none;
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}
.fiverr-submit-btn:hover { background: #000; }
.modal-footer-terms { font-size: 11px; color: var(--ink-soft); line-height: 1.3; margin-top: 10px; }
.modal-footer-terms a { color: var(--ink); text-decoration: underline; }
.modal-form-error { background: #FDECEE; border: 1px solid var(--rust); color: #A5192A; font-size: 0.78rem; padding: 8px 12px; border-radius: 6px; margin-bottom: 14px; }

/* ================================================================
   Language & currency modal (replaces the old hover dropdowns)
   ================================================================ */
.locale-trigger-btn {
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}
.locale-trigger-btn:hover { border-color: var(--primary); }
.account-dropdown-locale .locale-trigger-btn { width: 100%; justify-content: flex-start; border: none; padding: 10px 20px; border-radius: 0; font-weight: 400; font-size: 0.88rem; }
.account-dropdown-locale .locale-trigger-btn:hover { background: var(--paper); }

.locale-modal-box {
    background: #fff;
    width: 560px;
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .locale-modal-box { transform: translateY(0); }
.locale-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 28px 20px; }
.locale-modal-header h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.locale-modal-tabs { display: flex; gap: 36px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.locale-modal-tab {
    background: none; border: none; font-family: inherit;
    font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
    padding: 0 0 14px; cursor: pointer; position: relative;
}
.locale-modal-tab.active { color: var(--ink); }
.locale-modal-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--ink); }
.locale-modal-body { padding: 24px 28px; overflow-y: auto; max-height: 50vh; }
.locale-modal-panel { display: none; }
.locale-modal-panel.active { display: block; }
.locale-option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.locale-option-card {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 16px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.locale-option-card:hover { border-color: #b5b6ba; }
.locale-option-card.selected { border-color: var(--ink); border-width: 2px; }
.locale-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    border-top: 1px solid var(--line);
}
.locale-modal-cancel { background: none; border: none; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.locale-modal-save {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.locale-modal-save:hover:not(:disabled) { background: #000; }
.locale-modal-save:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }

@media (max-width: 560px) {
    .locale-option-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .modal-overlay { padding: 0; }
    .modal-box-fiverr {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        flex-direction: column;
    }
    .modal-left-banner { display: none; }
    .modal-right-form { padding: 20px 20px 24px; flex: 1; width: 100%; }
    .modal-top-nav { padding-top: 4px; }
    .modal-close-x { font-size: 1.1rem; }
}


/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .service-layout { grid-template-columns: 1fr; }
    .order-card { position: static; max-height: none; overflow-y: visible; }
}
@media (max-width: 640px) {
    .hero { padding: 40px 0; min-height: 0; }
    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
        text-align: center;
    }
    .hero-search-box { margin-left: auto; margin-right: auto; }
    .hero-search-box .btn-search { padding: 15px 16px; }
    .hero-search-box .btn-search-text { display: none; }
    .popular-tags { display: none; }
    .hero-trusted-by { display: none; }
    .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Flash messages ---------- */
.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
    padding: 14px 16px;
    background: #fff;
    border-radius: var(--radius);
    border-left: 4px solid transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    font-size: 0.9rem;
}
.flash::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.flash-text { flex: 1; font-weight: 700; color: var(--ink); }
.flash-close {
    background: none;
    border: none;
    padding: 4px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
}
.flash-close:hover { color: var(--ink); }
.flash-success { border-left-color: var(--primary); }
.flash-success::before { content: "\f058"; color: var(--primary); }
.flash-error   { border-left-color: var(--rust); }
.flash-error::before { content: "\f057"; color: var(--rust); }
.flash-info    { border-left-color: var(--gold); }
.flash-info::before { content: "\f05a"; color: var(--gold); }

/* The session-flash toast specifically (not the many static inline
   notices elsewhere that share the base .flash styling) floats above
   the page instead of sitting in the document flow. */
.flash-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    margin: 0;
    max-width: 92vw;
    width: max-content;
    min-width: 280px;
    animation: flashToastIn 0.25s ease;
}
@keyframes flashToastIn {
    from { opacity: 0; transform: translate(-50%, -12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 640px) {
    .flash-toast { left: 12px; right: 12px; transform: none; width: auto; max-width: none; min-width: 0; }
    @keyframes flashToastIn {
        from { opacity: 0; transform: translateY(-12px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* ---------- Header extras: cart badge ---------- */
.nav-cart { position: relative; }
.cart-badge {
    background: var(--rust);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: 2px;
}

/* ---------- Modern header icon buttons (messages/favorites/cart) ---------- */
.nav-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--ink-soft);
    font-size: 1.05rem;
}
.nav-icon-btn:hover { background: var(--paper); color: var(--ink); }
.nav-icon-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rust);
    border: 1.5px solid #fff;
}

/* ---------- Shopping cart page ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 32px;
    align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}
.cart-item-thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #0E9B5C);
    color: rgba(255,255,255,0.9);
    font-size: 0.68rem;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 6px;
    flex-shrink: 0;
    font-weight: 600;
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 600; display: block; margin-bottom: 4px; }
.cart-item-title:hover { color: var(--primary); }
.cart-item-seller { font-size: 0.82rem; color: var(--ink-soft); }
.cart-item-extras { list-style: none; padding: 0; margin: 6px 0 0; font-size: 0.8rem; color: var(--ink-soft); }
.cart-item-extras li { display: flex; justify-content: space-between; max-width: 260px; padding: 2px 0; }
.cart-item-price { white-space: nowrap; }
.btn-remove {
    background: none;
    border: 1.5px solid var(--line);
    color: var(--ink-soft);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-remove:hover { border-color: var(--rust); color: var(--rust); }

/* ---------- Checkout page ---------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ---------- Dashboard ---------- */
.dash-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}
.dash-sidebar {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 112px;
}
.dash-user { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.dash-user strong { display: block; font-size: 0.92rem; }
.dash-role { font-size: 0.76rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.dash-nav a:hover { background: var(--paper); color: var(--ink); }
.dash-nav a.active { background: var(--primary-light); color: var(--primary-dark); }
.dash-content { min-width: 0; }

/* ================================================================
   Admin panel left sidebar navigation - a true viewport-fixed, full-
   height panel flush against the left edge (not constrained within
   the centered .container), with the site logo living at its top.
   admin only - scoped to .admin-body so the buyer/seller dashboard's
   own sidebar, which shares the .dash-layout/.dash-content class
   names, is untouched.
   ================================================================ */
:root {
    --admin-sidebar-width: 240px;
}
body.admin-sidebar-collapsed {
    --admin-sidebar-width: 68px;
}

.admin-body .dash-layout {
    display: block;
}

.admin-sidebar {
    background: var(--paper-raised);
    border-right: 1px solid var(--line);
    padding: 14px 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--admin-sidebar-width);
    height: 100vh;
    overflow-y: auto;
    z-index: 200;
    transition: width 0.25s ease;
}
.admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.admin-sidebar-logo { overflow: hidden; }
.admin-sidebar-logo-text {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.admin-sidebar-logo-text em { color: var(--primary); font-weight: 600; font-style: normal; }
.admin-sidebar-toggle {
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.admin-sidebar-toggle:hover { background: var(--paper); color: var(--ink); }
.admin-sidebar-toggle i { transition: transform 0.2s ease; }

.admin-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    text-align: left;
    white-space: nowrap;
}
.admin-sidebar-link i:first-child { width: 18px; text-align: center; flex-shrink: 0; font-size: 0.9rem; }
.admin-sidebar-link:hover { background: var(--paper); color: var(--ink); }
.admin-sidebar-link.active { background: var(--primary-light); color: var(--primary-dark); }
.admin-sidebar-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.admin-sidebar-badge { flex-shrink: 0; }
.admin-sidebar-link-top { margin-bottom: 6px; }

.admin-sidebar-group { position: relative; }
.admin-sidebar-group-btn .admin-sidebar-chevron { font-size: 0.68rem; transition: transform 0.2s ease; flex-shrink: 0; }
.admin-sidebar-group.open .admin-sidebar-group-btn .admin-sidebar-chevron { transform: rotate(180deg); }
.admin-sidebar-subnav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 8px;
}
.admin-sidebar-group.open .admin-sidebar-subnav { max-height: 600px; }
.admin-sidebar-sublink { font-weight: 500; font-size: 0.84rem; padding-left: 14px; }
.admin-sidebar-sublink.active { font-weight: 700; }

.admin-sidebar-view-site { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Collapsed state: an icon-only rail. Sub-items would otherwise become
   completely inaccessible with no room left to show their labels, so
   each group's items appear in a flyout panel on hover instead. */
body.admin-sidebar-collapsed .admin-sidebar-logo-text,
body.admin-sidebar-collapsed .admin-sidebar-label,
body.admin-sidebar-collapsed .admin-sidebar-badge,
body.admin-sidebar-collapsed .admin-sidebar-group-btn .admin-sidebar-chevron { display: none; }
body.admin-sidebar-collapsed .admin-sidebar-head { justify-content: center; }
body.admin-sidebar-collapsed .admin-sidebar-toggle i { transform: rotate(180deg); }
body.admin-sidebar-collapsed .admin-sidebar-link { justify-content: center; padding: 10px 6px; }
body.admin-sidebar-collapsed .admin-sidebar-subnav {
    max-height: none;
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 6px;
    min-width: 210px;
    z-index: 95;
}
body.admin-sidebar-collapsed .admin-sidebar-group:hover .admin-sidebar-subnav { display: flex; }
body.admin-sidebar-collapsed .admin-sidebar-subnav .admin-sidebar-label,
body.admin-sidebar-collapsed .admin-sidebar-subnav .admin-sidebar-badge { display: inline; }
body.admin-sidebar-collapsed .admin-sidebar-sublink { justify-content: flex-start; padding: 9px 12px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.stat-label { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; }

.dash-quick-links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-upsell {
    background: var(--paper-raised);
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius-lg);
    padding: 22px;
}
.dash-upsell h3 { margin-bottom: 6px; }

.dash-tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); margin-bottom: 24px; }
.dash-tabs a { padding: 10px 16px; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1.5px; }
.dash-tabs a:hover { color: var(--ink); }
.dash-tabs a.active { color: var(--primary); border-color: var(--primary); }

.settings-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}
.settings-card h3 { font-size: 1.1rem; margin-bottom: 16px; }

/* ---------- Order tables & status badges ---------- */
.order-block {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    overflow: hidden;
}
.order-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--paper);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.order-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.order-table td, .order-table th { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.order-table.full { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.order-table th { background: var(--paper); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-soft); }
.order-table tr:last-child td { border-bottom: none; }
@media (max-width: 768px) {
    .order-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.order-item-extras { list-style: none; padding: 0; margin: 4px 0 0; font-size: 0.78rem; color: var(--ink-soft); }
.inline-form select {
    padding: 6px 10px;
    border-radius: var(--radius);
    border: 1.5px solid var(--line);
    font-family: inherit;
    font-size: 0.82rem;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
}
.badge-pending     { background: #FFF6E0; color: #8A6100; }
.badge-in_progress { background: #E6F0FA; color: #1D5FA8; }
.badge-delivered   { background: #EDE7FB; color: #5B3EBF; }
.badge-revision_requested { background: #FFE9D6; color: #B0530A; }
.badge-completed   { background: var(--primary-light); color: #0E6B3C; }
.badge-cancelled   { background: #FDECEE; color: #A5192A; }

/* ---------- Buyer order actions (accept delivery / request revision) ---------- */
.buyer-order-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; align-items: flex-start; }
.revision-form { display: none; margin-top: 6px; width: 100%; max-width: 260px; }
.revision-form.open { display: flex; flex-direction: column; gap: 6px; }
.revision-form textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    padding: 8px 10px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.82rem;
}
.revision-form textarea:focus { outline: none; border-color: var(--primary); }

/* ---------- About page ---------- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.about-block {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}
.about-block h2 { font-size: 1.15rem; margin-bottom: 10px; }
.cta-banner {
    text-align: center;
    background: var(--header-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 24px;
    margin-top: 40px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #C4C5C9; margin-bottom: 20px; }

/* ---------- Help / FAQ page ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.faq-item {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::before { content: "− "; }
.faq-item p { margin-top: 10px; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Help Center ---------- */
.help-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.help-section-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
}
.help-section-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.help-section-card > p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 18px; }
.help-cat-list { display: flex; flex-direction: column; gap: 2px; }
.help-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 4px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    font-size: 0.92rem;
}
.help-cat-list a:hover { color: var(--primary); }
.help-cat-count {
    background: var(--paper);
    border-radius: 10px;
    padding: 2px 9px;
    font-size: 0.76rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.help-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.help-category-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    text-align: left;
    transition: border-color 0.15s, transform 0.15s;
}
.help-category-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.help-category-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.help-category-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.help-category-card p { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 10px; }
.help-category-card .count { font-size: 0.78rem; color: var(--primary); font-weight: 700; }

.help-article-list { display: flex; flex-direction: column; gap: 2px; max-width: 720px; }
.help-article-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.92rem;
}
.help-article-list a:hover { border-color: var(--primary); color: var(--primary); }

.help-article-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.help-article-content h1 { font-size: 1.5rem; margin-bottom: 18px; }
.help-article-body { font-size: 0.96rem; line-height: 1.7; color: var(--ink); }
.help-article-body p { margin-bottom: 14px; }
.help-article-body strong { color: var(--ink); }
.help-article-body ul, .help-article-body ol { margin: 0 0 14px 22px; }

.blog-sidebar-list { display: flex; flex-direction: column; gap: 14px; }
.blog-sidebar-item { display: flex; gap: 12px; align-items: flex-start; }
.blog-sidebar-thumb { width: 64px; height: 48px; flex-shrink: 0; border-radius: var(--radius); background-size: cover; background-position: center; background-color: var(--paper); }
.blog-sidebar-thumb-placeholder { display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.blog-sidebar-item h4 { font-size: 0.86rem; line-height: 1.35; margin-bottom: 4px; color: var(--ink); }
.blog-sidebar-item:hover h4 { color: var(--primary); }
.blog-sidebar-item span { font-size: 0.76rem; color: var(--ink-soft); }

/* ---------- Blog ---------- */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.blog-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s;
}
.blog-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.blog-card-image { height: 150px; background-size: cover; background-position: center; background-color: var(--paper); }
.blog-card-image-placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.blog-card-body { padding: 16px 18px; }
.blog-card-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); font-weight: 700; }
.blog-card h3 { font-size: 1.02rem; margin: 6px 0 8px; }
.blog-card p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.blog-card-meta { font-size: 0.76rem; color: var(--ink-soft); }

/* ---------- Homepage "From our blog" section ---------- */
.home-blog-see-more { font-size: 0.88rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.home-blog-see-more:hover { color: var(--primary); }
.home-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.home-blog-card { color: var(--ink); text-decoration: none; }
.home-blog-card-image { height: 220px; border-radius: var(--radius-lg); background-size: cover; background-position: center; background-color: var(--paper); margin-bottom: 14px; }
.home-blog-card-image-placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.home-blog-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.home-blog-card:hover h3 { color: var(--primary); }
.home-blog-slider-wrap { position: relative; }
.home-blog-slider-next { display: none; }

@media (max-width: 640px) {
    .home-blog-grid { display: block; }
    .home-blog-card { display: none; }
    .home-blog-card.home-blog-slide-active { display: block; }
    .home-blog-slider-next {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 90px;
        right: 12px;
        width: 34px; height: 34px;
        border-radius: 50%;
        background: #fff;
        border: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.18);
        color: var(--ink);
        font-size: 0.8rem;
        cursor: pointer;
        z-index: 5;
    }
}

.blog-post { max-width: 760px; }
.blog-post h1 { font-size: 1.7rem; margin: 8px 0 10px; }
.blog-post-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.blog-post-image { height: 320px; background-size: cover; background-position: center; border-radius: var(--radius-lg); margin-bottom: 24px; }
.blog-post-body { font-size: 1rem; line-height: 1.75; }
.blog-post-body p { margin-bottom: 16px; }
.blog-post-body h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.blog-post-body h3 { font-size: 1.1rem; margin: 22px 0 10px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 16px 24px; }
.blog-post-body li { margin-bottom: 6px; }

@media (max-width: 768px) {
    .blog-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .help-section-grid { grid-template-columns: 1fr; }
    .help-article-layout { grid-template-columns: 1fr; }
}

/* ---------- Showcase tabs (homepage "Featured Services") ---------- */
.showcase-section h2 { font-size: 1.7rem; margin-bottom: 20px; letter-spacing: -0.02em; }
.showcase-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}
.showcase-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    font-family: inherit;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--primary); font-weight: 600; }
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.2s;
    border-radius: 3px 3px 0 0;
}
.tab-btn.active::after { width: 100%; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Package tabs (service details right rail) ---------- */
.package-card { padding: 0; overflow: hidden; }
.package-tabs { display: flex; border-bottom: 1.5px solid var(--line); }
.package-tab {
    flex: 1;
    background: var(--paper);
    border: none;
    border-right: 1px solid var(--line);
    padding: 14px 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink-soft);
    cursor: pointer;
}
.package-tab:last-child { border-right: none; }
.package-tab.active { background: var(--ink); color: #fff; }
.package-panel { display: none; padding: 22px; }
.package-panel.active { display: block; }
.package-panel .price-row { align-items: flex-start; gap: 12px; }
.package-panel .price-row span:first-child { font-size: 0.88rem; color: var(--ink-soft); }
.feature-list { list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.88rem; }
.feature-list li { padding: 5px 0; color: var(--ink); }
.badge-tier { background: var(--primary-light); border: 1px solid var(--primary); color: #0E6B3C; padding: 2px 9px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; }

/* ---------- Extras selection (service details package panel) ---------- */
.extras-select { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 14px; margin-bottom: 16px; }
.extras-select-label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px; }
.extra-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.88rem;
}
.extra-checkbox input { width: auto; margin: 0; flex-shrink: 0; }
.extra-checkbox-name { flex: 1; }
.extra-checkbox-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.extras-list { list-style: none; padding: 0; margin: 0; }
.extras-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.extras-list li:last-child { border-bottom: none; }

/* ---------- Contact seller ---------- */
.contact-seller-form { margin-top: 18px; }
.contact-seller-form textarea { min-height: 80px; resize: vertical; }
.contact-seller-panel { display: none; padding: 20px 0 0; }
.contact-seller-panel.open { display: block; }

/* ---------- Stripe checkout panel ---------- */
.stripe-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
}
.stripe-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.stripe-panel p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 16px; }
.stripe-test-note { margin: 12px 0 0; font-size: 0.78rem; color: var(--ink-soft); text-align: center; }

/* ---------- Checkout success ---------- */
.success-panel {
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    box-shadow: var(--shadow);
}
.success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

/* ---------- Messaging: inbox ---------- */
.conversation-list { display: flex; flex-direction: column; gap: 2px; }
.conversation-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
}
.conversation-row:hover { border-color: var(--primary); }
.conversation-row.unread { border-left: 3px solid var(--primary); }
.conversation-row-body { flex: 1; min-width: 0; }
.conversation-row-head { display: flex; justify-content: space-between; gap: 10px; }
.conversation-time { font-size: 0.76rem; color: var(--ink-soft); white-space: nowrap; }
.conversation-preview { font-size: 0.86rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Messaging: thread ---------- */
.thread-wrap {
    max-width: 720px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.thread-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.thread-messages { padding: 20px; display: flex; flex-direction: column; gap: 16px; max-height: 480px; overflow-y: auto; }
.thread-msg { max-width: 75%; }
.thread-msg.mine { align-self: flex-end; text-align: right; }
.thread-bubble { display: inline-block; background: var(--paper); border-radius: var(--radius); padding: 10px 14px; font-size: 0.9rem; text-align: left; }
.thread-msg.mine .thread-bubble { background: var(--ink); color: #fff; }
.thread-msg-meta { font-size: 0.72rem; color: var(--ink-soft); margin-top: 4px; }
.thread-reply { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); flex-shrink: 0; }
.thread-reply textarea { flex: 1; min-height: 44px; max-height: 120px; resize: vertical; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 0.9rem; }
.thread-reply textarea:focus { outline: none; border-color: var(--primary); }

.thread-system-msg {
    align-self: center;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
}
.thread-system-time { display: block; font-size: 0.7rem; color: var(--ink-soft); opacity: 0.7; margin-top: 2px; }

.review-prompt-block { padding: 0 20px; flex-shrink: 0; }
.review-prompt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #0E6B3C;
}

/* ---------- Messaging: 3-column layout (inbox list / chat / info+orders) ---------- */
.msg-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    height: calc(100vh - 200px);
    min-height: 560px;
    max-height: 760px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 24px 0;
}
.msg-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.msg-col-list { border-right: 1px solid var(--line); background: var(--paper); }
.msg-col-info { border-left: 1px solid var(--line); background: var(--paper); overflow-y: auto; padding: 24px 20px; }

.msg-search { padding: 14px; border-bottom: 1px solid var(--line); }
.msg-search input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    background: #fff;
}
.msg-search input:focus { outline: none; border-color: var(--primary); }

.msg-tabs { display: flex; border-bottom: 1px solid var(--line); background: #fff; }
.msg-tabs a { flex: 1; text-align: center; padding: 12px 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.msg-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.msg-tabs a:hover { color: var(--ink); }

.msg-list { flex: 1; overflow-y: auto; }
.msg-list-empty { padding: 30px 20px; text-align: center; color: var(--ink-soft); font-size: 0.85rem; }
.msg-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.msg-list-item:hover { background: var(--paper-raised); }
.msg-list-item.active { background: var(--primary-light); }
.msg-list-item-body { flex: 1; min-width: 0; }
.msg-list-item-top { display: flex; justify-content: space-between; gap: 8px; }
.msg-list-item-name { font-size: 0.88rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-list-item-time { font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; }
.msg-list-item-preview { font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.msg-unread-dot {
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
}

.msg-col-chat { background: #fff; }
.msg-empty-state { align-items: center; justify-content: center; text-align: center; color: var(--ink-soft); padding: 30px; }
.msg-empty-icon { font-size: 2.4rem; margin-bottom: 10px; }
.msg-empty-state h2 { color: var(--ink); margin-bottom: 8px; }
.msg-empty-state p { margin-bottom: 18px; font-size: 0.9rem; }

.msg-chat-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.msg-chat-header-sub { font-size: 0.78rem; color: var(--ink-soft); }
/* Only this area scrolls when a conversation has a lot of messages - the
   header above and the reply box below (via .thread-reply's flex-shrink:0,
   see the messaging CSS block further up) stay fixed in place, so the
   "write a message" box is always visible without scrolling to find it. */
.msg-chat-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; max-height: none; }

.msg-info-profile { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.msg-info-profile .avatar.lg { margin: 0 auto 10px; }
.msg-info-profile strong { display: block; font-size: 1rem; margin-bottom: 2px; }

.msg-info-actions { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.msg-info-actions a, .msg-info-actions button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 4px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.msg-info-actions a:hover, .msg-info-actions button:hover { color: var(--primary); }
.msg-info-action-form { margin: 0; }

.msg-info-orders h3 { font-size: 0.9rem; margin-bottom: 12px; }
.msg-info-empty { font-size: 0.84rem; color: var(--ink-soft); }
.msg-order-card {
    display: block;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 10px;
}
.msg-order-card:hover { border-color: var(--primary); }
.msg-order-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.msg-order-title { font-size: 0.84rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-order-card-bottom { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-soft); }

@media (max-width: 992px) {
    .msg-layout { grid-template-columns: 1fr; height: auto; max-height: none; }
    .msg-col-list, .msg-col-info { border: none; border-bottom: 1px solid var(--line); max-height: 320px; }
    .msg-col-chat { min-height: 400px; }
}

/* ---------- Earnings bar chart ---------- */
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 10px; }
.bar-chart.bar-chart-dense { gap: 3px; }
.bar-chart.bar-chart-dense .bar { max-width: none; border-radius: 2px 2px 0 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: 100%; max-width: 36px; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); border-radius: 4px 4px 0 0; }
.bar-label { font-size: 0.76rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Status badges (services / users) ---------- */
.badge-status-pending  { background: #FFF6E0; color: #8A6100; }
.badge-status-approved { background: var(--primary-light); color: #0E6B3C; }
.badge-status-rejected { background: #FDECEE; color: #A5192A; }
.badge-status-reviewed { background: #E8F0FE; color: #1A56C4; }
.badge-status-action_taken { background: var(--primary-light); color: #0E6B3C; }
.badge-status-dismissed { background: #F1F1F1; color: #5A5A5A; }

/* ---------- Header: admin link ---------- */
.admin-link { color: var(--rust) !important; font-weight: 700; }

/* ---------- Gig gallery (service details page) ---------- */
.gig-gallery { display: flex; gap: 10px; margin-top: 12px; }
.gig-gallery-thumb {
    flex: 1;
    height: 70px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    color: var(--ink-soft);
    text-align: center;
    padding: 4px;
    overflow: hidden;
}

/* ---------- Standalone review list (seller profile) ---------- */
.review-list-standalone { display: flex; flex-direction: column; gap: 4px; }
.review-list-standalone .review-item { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 10px; }
.review-service-link { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* ---------- Seller gig wizard ---------- */
.wizard { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.wizard-tabs { display: flex; border-bottom: 1.5px solid var(--line); overflow-x: auto; }
.wizard-tab {
    flex: 1;
    min-width: 140px;
    background: var(--paper);
    border: none;
    border-right: 1px solid var(--line);
    padding: 16px 10px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink-soft);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}
.wizard-tab:last-child { border-right: none; }
.wizard-tab.active { background: var(--ink); color: #fff; }
.wizard-tab.has-error::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rust);
}
.wizard-panel { display: none; padding: 28px; }
.wizard-panel.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

.package-form-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px; background: var(--paper); }
.package-form-block h3 { font-size: 1rem; margin-bottom: 14px; }
.faq-field-group .js-remove-faq { margin-top: 4px; display: inline-block; }
.package-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 640px) {
    .package-form-grid { grid-template-columns: 1fr !important; }
}

.upload-preview { margin-top: 10px; }
.upload-preview img { max-width: 180px; max-height: 120px; border-radius: var(--radius); border: 1px solid var(--line); object-fit: cover; }

/* ---------- Admin panel ---------- */
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.admin-badge-list { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-badge-toggle { margin: 0; }
.admin-badge-chip {
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: inherit;
}
.admin-badge-chip:hover { border-color: var(--primary); }
.admin-badge-chip.is-active { background: var(--primary-light); border-color: var(--primary); color: #0E6B3C; }
.admin-service-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.admin-reject-form { display: flex; gap: 8px; align-items: center; }
.admin-reject-form input[type="text"] {
    padding: 8px 10px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.82rem;
    width: 200px;
}
.btn-mini {
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 1.5px solid var(--line);
    background: var(--paper-raised);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--ink);
}
.btn-mini:hover { border-color: var(--primary); }
.btn-mini-danger { border-color: var(--rust); color: var(--rust); }
.btn-mini-danger:hover { background: var(--rust); color: #fff; }

/* ---------- Responsive: dashboard / cart / checkout / wizard ---------- */
@media (max-width: 860px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }
    /* Hover flyouts don't work on touch - if the sidebar was left
       collapsed from a previous desktop session, force it back to full
       width with normal (click, not hover) accordion behavior so every
       item stays reachable. */
    body.admin-sidebar-collapsed { --admin-sidebar-width: 240px; }
    body.admin-sidebar-collapsed .admin-sidebar-logo-text,
    body.admin-sidebar-collapsed .admin-sidebar-label,
    body.admin-sidebar-collapsed .admin-sidebar-badge,
    body.admin-sidebar-collapsed .admin-sidebar-group-btn .admin-sidebar-chevron { display: inline; }
    body.admin-sidebar-collapsed .admin-sidebar-head { justify-content: space-between; }
    body.admin-sidebar-collapsed .admin-sidebar-link { justify-content: flex-start; padding: 10px; }
    body.admin-sidebar-collapsed .admin-sidebar-subnav {
        position: static;
        display: flex;
        box-shadow: none;
        border: none;
        padding-left: 8px;
        margin-left: 0;
        max-height: 0;
        min-width: 0;
    }
    body.admin-sidebar-collapsed .admin-sidebar-group.open .admin-sidebar-subnav { max-height: 600px; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .thread-msg { max-width: 90%; }
    .package-form-grid { grid-template-columns: 1fr 1fr; }
    .wizard-tabs { flex-wrap: nowrap; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Proforma invoice ---------- */
.invoice-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.invoice-sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 760px;
}
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.invoice-head h1 { font-size: 1.4rem; margin-bottom: 4px; }
.invoice-subtitle { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.invoice-meta { text-align: right; font-size: 0.85rem; }
.invoice-meta p { margin-bottom: 4px; }
.invoice-parties { display: flex; gap: 60px; margin-bottom: 30px; }
.invoice-parties h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }
.invoice-parties p { font-size: 0.95rem; font-weight: 600; }
.invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.invoice-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); padding: 8px 4px; border-bottom: 2px solid var(--line); }
.invoice-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.invoice-table th:not(:first-child), .invoice-table td:not(:first-child) { text-align: right; }
.invoice-totals { max-width: 320px; margin-left: auto; }
.invoice-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.invoice-grand-total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; font-weight: 700; }
.invoice-footnote { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-soft); }

@media print {
    .site-header, .site-footer, .no-print, .flash { display: none !important; }
    .invoice-sheet { border: none; padding: 0; max-width: 100%; }
    body, .section { background: #fff !important; }
}

/* ---------- Mobile hamburger menu overlay ---------- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.4);
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu-panel {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.mobile-menu-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 14px 4px 6px;
}
.mobile-menu-search i { color: var(--ink-soft); font-size: 0.85rem; }
.mobile-menu-search input { flex: 1; min-width: 0; border: none; background: none; font-family: inherit; font-size: 0.9rem; color: var(--ink); }
.mobile-menu-search input:focus { outline: none; }
.mobile-menu-close { background: none; border: none; font-size: 1.2rem; color: var(--ink-soft); cursor: pointer; padding: 6px; }

.mobile-menu-screens { position: relative; flex: 1; overflow: hidden; }
.mobile-menu-screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 8px 20px 20px;
    transition: transform 0.25s ease;
    transform: translateX(100%);
}
.mobile-menu-screen.mobile-menu-screen-active { transform: translateX(0); }
.mobile-menu-screen.mobile-menu-screen-slide-left { transform: translateX(-100%); }

.mobile-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 4px;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}
.mobile-menu-row i.fa-chevron-right, .mobile-menu-row i.fa-chevron-down { font-size: 0.75rem; color: var(--ink-soft); }
.mobile-menu-row i.fa-globe { margin-right: 6px; color: var(--ink-soft); }
.mobile-menu-badge { background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.mobile-menu-divider { height: 1px; background: var(--line); margin: 10px 0; }

.mobile-menu-back {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 4px 18px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}

.mobile-menu-row-leaf { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); padding: 8px 0 8px 14px; }
.mobile-menu-group-heading { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 18px; margin-bottom: 4px; }

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
}
.mobile-menu-footer .btn { width: 100%; text-align: center; }

@media (max-width: 860px) {
    .mobile-menu-btn { display: block; }
    .header-inner { flex-direction: row; justify-content: space-between; flex-wrap: nowrap; gap: 0; position: relative; }
    .header-inner .logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
    .mobile-header-right { display: flex; align-items: center; flex-shrink: 0; }
    .mobile-header-right .btn-join { padding: 8px 16px; font-size: 0.85rem; }
    .mobile-header-avatar-btn { background: none; border: none; padding: 0; cursor: pointer; line-height: 0; }
    .header-search { display: none; }
    .header-nav { display: none; }
    .categories-nav-wrapper { display: none; }
}
@media (min-width: 861px) {
    .mobile-header-right { display: none; }
}

/* ---------- Infinite scroll (category page) ---------- */
.infinite-scroll-sentinel { display: flex; justify-content: center; padding: 30px 0; min-height: 1px; }
.infinite-scroll-spinner { font-size: 1.4rem; color: var(--ink-soft); }
.infinite-scroll-end-message { text-align: center; padding: 30px 0; color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Floating "Message seller" widget (seller profile page) ---------- */
.floating-message-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 50px;
    padding: 10px 20px 10px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow 0.15s, transform 0.15s;
}
.floating-message-widget:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.22); transform: translateY(-2px); }
.floating-message-avatar { width: 46px; height: 46px; font-size: 1.1rem; flex-shrink: 0; }
.floating-message-text { display: flex; flex-direction: column; gap: 2px; }
.floating-message-text strong { font-size: 0.92rem; }
.floating-message-text span { font-size: 0.78rem; color: var(--ink-soft); }
.floating-message-text-compact { display: none; font-size: 0.92rem; font-weight: 700; white-space: nowrap; }

@media (max-width: 640px) {
    .floating-message-widget { padding: 6px 18px 6px 6px; }
    .floating-message-avatar { width: 34px; height: 34px; font-size: 0.9rem; }
    .floating-message-text-full { display: none; }
    .floating-message-text-compact { display: block; }
}

/* ---------- AI-generated gig summary box ---------- */
.ai-summary-box {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.ai-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}
.ai-summary-header i.fa-wand-magic-sparkles { color: #6B3FA0; margin-right: 8px; }
.ai-summary-info { font-size: 0.8rem; color: var(--ink-soft); margin-left: 6px; cursor: help; }
.ai-summary-chevron { color: var(--ink-soft); transition: transform 0.15s; }
.ai-summary-box.ai-summary-collapsed .ai-summary-chevron { transform: rotate(180deg); }
.ai-summary-list { margin: 16px 0 0; padding-left: 20px; }
.ai-summary-list li { font-size: 0.92rem; color: var(--ink); line-height: 1.6; margin-bottom: 8px; }
.ai-summary-list li:last-child { margin-bottom: 0; }
.ai-summary-box.ai-summary-collapsed .ai-summary-list { display: none; }

/* ---------- Rich text editor (gig description) ---------- */
.rich-text-editor-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rich-text-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.rich-text-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    cursor: pointer;
}
.rich-text-btn:hover { background: #fff; color: var(--ink); }
.rich-text-toolbar-divider { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rich-text-editable {
    min-height: 160px;
    max-height: 400px;
    overflow-y: auto;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
    outline: none;
}
.rich-text-editable:empty::before { content: attr(data-placeholder); color: var(--ink-soft); }
.rich-text-editable ul { padding-left: 22px; margin: 8px 0; }
.rich-text-editable p { margin: 0 0 10px; }
.rich-text-hidden-field { display: none; }

/* Rendered gig description on the service details page - matches the editor's own formatting */
.gig-description-html ul { padding-left: 22px; margin: 10px 0; }
.gig-description-html li { margin-bottom: 6px; }
.gig-description-html p { margin: 0 0 14px; }

/* ---------- Share gig modal ---------- */
.share-modal-box {
    background: #fff;
    width: 480px;
    max-width: 92vw;
    border-radius: 16px;
    padding: 40px 36px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .share-modal-box { transform: translateY(0); }
@media (max-width: 640px) {
    .share-modal-box { padding: 28px 20px; }
}
.share-modal-box h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.share-modal-subtitle { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 28px; }
.share-modal-close {
    position: absolute;
    top: 18px; right: 18px;
    background: none;
    border: none;
    color: var(--ink-soft);
    font-size: 1.1rem;
    cursor: pointer;
}
.share-modal-close:hover { color: var(--ink); }
.share-modal-options {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.82rem;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}
.share-option-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.15s;
}
.share-option:hover .share-option-icon { transform: translateY(-2px); }
@media (max-width: 640px) {
    .share-option-icon { width: 46px; height: 46px; font-size: 1.05rem; }
    .share-modal-options { gap: 16px; }
}
.share-option-facebook { background: #1877F2; }
.share-option-linkedin { background: #0A66C2; }
.share-option-twitter { background: #1DA1F2; }
.share-option-whatsapp { background: #25D366; }
.share-option-copy { background: #fff; color: var(--ink-soft); border: 1.5px solid var(--line); }

/* ---------- Report gig modal ---------- */
.report-modal-box {
    background: #fff;
    width: 620px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 40px 44px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .report-modal-box { transform: translateY(0); }
@media (max-width: 640px) {
    .report-modal-box { padding: 28px 20px; }
}
.report-modal-close {
    position: absolute;
    top: 22px; right: 22px;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
}
.report-modal-close:hover { color: var(--ink-soft); }
.report-modal-step { display: none; }
.report-modal-step.active { display: block; }
.report-modal-step h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 22px; padding-right: 30px; }
.report-modal-label { font-weight: 700; font-size: 0.92rem; color: var(--ink); margin-bottom: 12px; }

.report-category-list { border-top: 1px solid var(--line); }
.report-category-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    font-size: 1rem;
}
.report-category-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.report-category-radio-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    flex-shrink: 0;
    position: relative;
}
.report-category-option input:checked ~ .report-category-radio-dot::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ink);
}
.report-modal-footnote { font-size: 0.85rem; color: var(--ink-soft); margin: 22px 0 0; }
.report-modal-footnote a { color: var(--ink); }

.report-sub-reason-group { display: none; margin-bottom: 20px; }
.report-sub-reason-group.active { display: block; }
.report-sub-reason-select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    background: #fff;
}
.report-modal-hint { font-size: 0.82rem; color: var(--ink-soft); margin: 10px 0 0; }
.report-modal-hint strong { color: var(--ink); }
.report-optional-tag { font-weight: 400; color: var(--ink-soft); }
.report-comments-textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    resize: vertical;
    box-sizing: border-box;
}
.report-char-count { font-size: 0.78rem; color: var(--ink-soft); text-align: right; margin: 6px 0 20px; }

.report-goodfaith-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.86rem;
    color: var(--ink);
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 28px;
}
.report-goodfaith-checkbox input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.report-goodfaith-checkbox a { color: var(--ink); }

.report-modal-actions { display: flex; justify-content: flex-end; gap: 14px; }

/* ---------- Embedded Stripe payment modal (checkout page) ---------- */
.payment-modal-box {
    background: #fff;
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .payment-modal-box { transform: translateY(0); }
.payment-modal-close {
    position: absolute;
    top: 18px; right: 18px;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
}
.payment-modal-close:hover { color: var(--ink-soft); }
@media (max-width: 640px) {
    .payment-modal-box { padding: 26px 20px; }
}

/* ---------- FAQ accordion (service details page) ---------- */
.faq-accordion { border-top: 1px solid var(--line); }
.faq-accordion-item { border-bottom: 1px solid var(--line); }
.faq-accordion-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    padding: 18px 4px;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}
.faq-accordion-chevron { color: var(--ink-soft); font-size: 0.85rem; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-accordion-open .faq-accordion-chevron { transform: rotate(180deg); }
.faq-accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.faq-accordion-answer p { margin: 0 0 18px; padding: 0 4px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; }
.faq-accordion-open .faq-accordion-answer { max-height: 600px; }

/* ---------- Search-focus dim overlay (header + hero search) ---------- */
.search-dim-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}
.search-dim-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.header-search.search-focused,
.hero-search-box.search-focused {
    position: relative;
    z-index: 102;
}
.header-search.search-focused {
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.hero-search-box.search-focused {
    /* The hero search box already carries a 0 10px 25px / 0.15 shadow at
       rest (it needs to pop against the hero photo even when idle) - a
       similarly-sized shadow on focus would be imperceptible next to
       that. This needs to be clearly stronger to read as a real change. */
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-color: var(--ink);
}

/* ---------- Related tags (AI-generated, service details page) ---------- */
.related-tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.related-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.related-tag-pill:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Seller level badge ---------- */
.seller-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EEF2FF;
    color: #3730A3;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius);
    cursor: help;
}
.seller-level-diamonds { display: inline-flex; gap: 2px; }
.seller-level-diamonds i { font-size: 0.68rem; }
.seller-level-diamond-filled { color: #4F46E5; }
.seller-level-diamond-empty { color: #C7D2FE; }

/* On gig cards specifically, push the level badge to the far right of
   the seller-info row (matching the reference layout) - the other two
   places this same badge partial is used (the service page's seller
   profile card, and the seller's own profile header) intentionally keep
   it sitting immediately next to the name instead. */
.gig-card .seller-info .seller-level-badge { margin-left: auto; flex-shrink: 0; }

/* ---------- Shared: chart x-axis labels (admin dashboard graph + seller dashboard order graph) ---------- */
.analytics-chart-x-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Seller gigs page: Boost modal ---------- */
.boost-modal-box {
    background: #fff;
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .boost-modal-box { transform: translateY(0); }
.boost-modal-box .modal-close-x { position: absolute; top: 18px; right: 18px; }
.boost-modal-box h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; padding-right: 30px; }
.boost-modal-step { display: none; }
.boost-modal-step.active { display: block; }
.boost-plan-options { display: flex; flex-direction: column; gap: 10px; }
.boost-plan-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.boost-plan-option:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.boost-plan-option input { flex-shrink: 0; width: 16px; height: 16px; }
.boost-plan-option-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.boost-plan-name { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.boost-plan-meta { font-size: 0.78rem; color: var(--ink-soft); }
.boost-plan-price { font-weight: 700; font-size: 0.95rem; color: var(--ink); flex-shrink: 0; }
@media (max-width: 640px) {
    .boost-modal-box { padding: 26px 20px; }
}

/* ---------- Header messages dropdown (desktop only - see main.js for the
   860px viewport check that keeps mobile on plain link navigation) ---------- */
.messages-dropdown { position: relative; }
.messages-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    width: 360px;
    max-width: 90vw;
    z-index: 110;
}
.messages-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 12px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}
.messages-dropdown.open .messages-dropdown-menu { display: block; }
.messages-dropdown-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 0.92rem;
}
.messages-dropdown-list { max-height: 360px; overflow-y: auto; }
.messages-dropdown-loading,
.messages-dropdown-empty {
    padding: 24px 18px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.messages-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.messages-dropdown-item:last-child { border-bottom: none; }
.messages-dropdown-item:hover { background: var(--paper); }
.messages-dropdown-item-unread { background: #EEF6FF; }
.messages-dropdown-item .avatar { width: 40px; height: 40px; flex-shrink: 0; font-size: 1rem; }
.messages-dropdown-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.messages-dropdown-item-name { font-weight: 700; font-size: 0.86rem; }
.messages-dropdown-item-preview {
    font-size: 0.82rem;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.messages-dropdown-item-time { font-size: 0.74rem; color: var(--ink-soft); }
.messages-dropdown-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.messages-dropdown-foot a { color: var(--primary); font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.messages-dropdown-foot a:hover { text-decoration: underline; }

/* ---------- Standalone seller card page (QR code destination) ---------- */
.seller-card-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 12% 88%, #6FE070 0%, transparent 40%),
                radial-gradient(circle at 90% 8%, #E8F27A 0%, transparent 45%),
                var(--paper);
}
.seller-card-close {
    position: fixed;
    top: 22px;
    right: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 1rem;
    z-index: 10;
}
.seller-card-close:hover { background: #fff; }
.seller-card-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    padding: 40px 36px;
    width: 400px;
    max-width: 100%;
    text-align: center;
}
.seller-card-avatar { width: 92px; height: 92px; font-size: 2rem; margin: 0 auto 18px; }
.seller-card-name { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; }
.seller-card-tagline { font-size: 0.95rem; color: var(--ink); font-weight: 600; margin: 0 0 6px; line-height: 1.4; }
.seller-card-location { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 22px; }
.seller-card-location i { color: var(--ink-soft); margin-right: 3px; }
.seller-card-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 18px; }
.seller-card-stat { display: flex; flex-direction: column; gap: 2px; }
.seller-card-stat-value { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.seller-card-stat-label { font-size: 0.76rem; color: var(--ink-soft); }
.seller-card-rating { color: #FFB800; font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 22px; }
.seller-card-view-btn { display: block; width: 100%; }

/* ---------- Seller profile: QR code button + modal ---------- */
.seller-qr-btn {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 0.82rem;
    cursor: pointer;
}
.seller-qr-btn:hover { background: var(--paper); }
.qr-modal-box {
    background: #fff;
    width: 480px;
    max-width: 92vw;
    border-radius: 16px;
    padding: 40px 36px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .qr-modal-box { transform: translateY(0); }
.qr-modal-box .modal-close-x { position: absolute; top: 18px; right: 18px; }
.qr-modal-box h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.qr-modal-code {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
    padding: 16px;
    width: 232px;
    height: 232px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
@media (max-width: 640px) {
    .qr-modal-box { padding: 28px 20px; }
}

/* ---------- Seller card: top 3 popular services ---------- */
.seller-card-services {
    text-align: left;
    border-top: 1px solid var(--line);
    margin-bottom: 22px;
    padding-top: 6px;
}
.seller-card-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
}
.seller-card-service-item:last-child { border-bottom: none; }
.seller-card-service-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.seller-card-service-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.seller-card-service-title {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seller-card-service-price { font-size: 0.82rem; font-weight: 700; flex-shrink: 0; }

/* ---------- Password strength meter ---------- */
.password-requirements-hint { font-size: 0.74rem; color: var(--ink-soft); margin: 0; }
.password-strength-meter { display: none; align-items: center; gap: 8px; margin-top: 2px; }
.password-strength-meter.has-value { display: flex; }
.password-strength-bars { display: flex; gap: 4px; flex: 1; }
.password-strength-bars span {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: var(--line);
    transition: background 0.2s ease;
}
.password-strength-bars span.strength-weak { background: #E02D2D; }
.password-strength-bars span.strength-fair { background: #E8930C; }
.password-strength-bars span.strength-good { background: #A8C711; }
.password-strength-bars span.strength-strong { background: var(--primary); }
.password-strength-label { font-size: 0.74rem; font-weight: 700; flex-shrink: 0; }
.password-strength-label.strength-weak { color: #E02D2D; }
.password-strength-label.strength-fair { color: #E8930C; }
.password-strength-label.strength-good { color: #7A9207; }
.password-strength-label.strength-strong { color: var(--primary-dark); }

/* ---------- Settings page: languages spoken ---------- */
/* ---------- Settings page: languages spoken (dynamic cards) ---------- */
.lang-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #EBF3FE;
    color: #1B4C96;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 14px;
}
.lang-info-banner i { margin-top: 2px; flex-shrink: 0; }
#languageCardsContainer { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.language-card {
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.language-card select {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--ink);
}
.language-card-footer { display: flex; justify-content: flex-end; }
.language-card-delete {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    cursor: pointer;
}
.language-card-delete:hover { color: var(--rust); }
.add-language-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}
.add-language-btn:hover { background: var(--paper); }

/* ---------- Seller profile: languages tooltip ---------- */
.seller-languages-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: default;
}
.seller-languages-tooltip-wrap i { margin-right: 0; }
.seller-languages-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 20;
    background: #2B2B33;
    color: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    min-width: 220px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    white-space: normal;
    text-align: left;
}
.seller-languages-tooltip-wrap:hover .seller-languages-tooltip { display: block; }
.seller-languages-tooltip strong { display: block; margin-bottom: 8px; font-size: 0.85rem; }
.seller-languages-tooltip span { display: block; font-size: 0.85rem; line-height: 1.6; }
.seller-languages-tooltip em { color: rgba(255,255,255,0.7); font-style: normal; }

/* ---------- Admin homepage: modern grouped stat cards ---------- */
.stat-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 22px 0 10px;
}
.stat-group-title:first-of-type { margin-top: 4px; }
.stat-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 4px;
}
.stat-card-modern {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid transparent;
}
.stat-value-modern { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.2; color: var(--ink); }
.stat-label-modern { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.stat-icon-modern {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.stat-card-blue { border-left-color: #4F46E5; }
.stat-card-blue .stat-icon-modern { background: #EEF2FF; color: #4F46E5; }
.stat-card-teal { border-left-color: #0E9F6E; }
.stat-card-teal .stat-icon-modern { background: #E6F9F1; color: #0E9F6E; }
.stat-card-purple { border-left-color: #7C3AED; }
.stat-card-purple .stat-icon-modern { background: #F3EBFF; color: #7C3AED; }
.stat-card-amber { border-left-color: #F59E0B; }
.stat-card-amber .stat-icon-modern { background: #FEF3E2; color: #F59E0B; }
.stat-card-indigo { border-left-color: #4338CA; }
.stat-card-indigo .stat-icon-modern { background: #EDEBFB; color: #4338CA; }
.stat-card-green { border-left-color: #16A34A; }
.stat-card-green .stat-icon-modern { background: #E8F8ED; color: #16A34A; }
.stat-card-gold { border-left-color: #CA8A04; }
.stat-card-gold .stat-icon-modern { background: #FEF9E7; color: #CA8A04; }
.stat-card-red { border-left-color: #DC2626; }
.stat-card-red .stat-icon-modern { background: #FDECEC; color: #DC2626; }

/* ---------- Admin homepage: chart hover tooltip ---------- */
.analytics-chart-wrap { position: relative; }
.analytics-chart-svg { cursor: crosshair; }
.analytics-chart-tooltip {
    position: absolute;
    z-index: 30;
    background: #2B2B33;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8rem;
    pointer-events: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.analytics-chart-tooltip-date { font-weight: 700; margin-bottom: 6px; }
.analytics-chart-tooltip-row { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.analytics-chart-tooltip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Seller profile: languages within About Me ---------- */
.seller-about-subhead { font-size: 0.95rem; font-weight: 700; margin: 16px 0 10px; }
.skill-pill em { font-style: normal; color: var(--ink-soft); font-weight: 500; }

/* ---------- Verification badge (X-style), shown next to a nickname anywhere it appears ---------- */
.verified-badge-wrap { position: relative; display: inline-flex; align-items: center; cursor: default; vertical-align: middle; }
.verified-badge { color: #1D9BF0; font-size: 0.9em; }
.verified-badge-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: #2B2B33;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.verified-badge-wrap:hover .verified-badge-tooltip { display: block; }
/* On the profile page, the badge sits beside a much larger H1 nickname -
   scale it up to match and pull it closer, since the flex row's default
   gap (shared with the level badge/vetted pill after it) is too wide
   for just this one pairing. */
.seller-profile-name-row h1 + .verified-badge-wrap { margin-left: -4px; }
.seller-profile-name-row h1 + .verified-badge-wrap .verified-badge { font-size: 1.5rem; }
