:root {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-elevated: #f1f5f9;
    --bg-input: #ffffff;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text: #0f172a;
    --text-dim: #64748b;
    --text-faint: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-muted: rgba(59, 130, 246, 0.08);
    --gold: #3b82f6;
    --gold-muted: rgba(59, 130, 246, 0.08);
    --red: #d94040;
    --green: #2e9d5a;
    --blue: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.page-home {
    background-color: #f8fafc;
    background-image:
        radial-gradient(60rem 30rem at 80% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
        radial-gradient(40rem 24rem at 0% 10%, rgba(15, 23, 42, 0.06), transparent 55%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── SITE HEADER (topbar + main nav) ── */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 101;
}

.site-header-inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: 58px;
    align-items: center;
    column-gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-announcements {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.topbar-ann {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.73rem;
    font-weight: 500;
    color: var(--text-dim);
    padding: 0 8px;
    transition: color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

a.topbar-ann:hover { color: var(--accent); }

.topbar-ann-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.topbar-ann-info .topbar-ann-dot { background: var(--blue); }
.topbar-ann-success .topbar-ann-dot { background: var(--green); }
.topbar-ann-warning .topbar-ann-dot { background: #e0a030; }
.topbar-ann-promo .topbar-ann-dot { background: var(--accent); animation: topbar-dot-pulse 2s ease-in-out infinite; }

@keyframes topbar-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.topbar-ann-spacer {
    color: var(--text-faint);
    opacity: 0.25;
    font-size: 0.6rem;
    padding: 0 12px;
    user-select: none;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.topbar-link:hover {
    color: var(--accent);
    background: var(--accent-muted);
}

.topbar-link svg {
    opacity: 0.45;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.topbar-link:hover svg {
    opacity: 0.9;
    stroke: var(--accent);
}

.topbar-sep {
    color: var(--border);
    font-size: 0.65rem;
    user-select: none;
}

.locale-switchers-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.header-locale-switchers,
.topbar-locale-switchers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 0 0 12px;
    margin-left: 12px;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    overflow: visible;
}

.header-locale-switchers .lang-switcher-btn,
.header-locale-switchers .currency-pill,
.topbar-locale-switchers .lang-switcher-btn,
.topbar-locale-switchers .currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    box-shadow: none;
    color: var(--text-dim);
    overflow: visible;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.header-locale-switchers .currency-pill {
    min-width: 72px;
    justify-content: space-between;
}

.header-locale-switchers .lang-switcher-btn:hover,
.header-locale-switchers .currency-pill:hover,
.topbar-locale-switchers .lang-switcher-btn:hover,
.topbar-locale-switchers .currency-pill:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
    color: var(--text);
    transform: none;
}

.header-locale-switchers .lang-switcher-wrap.open .lang-switcher-btn,
.header-locale-switchers .currency-switcher-wrap.open .currency-pill,
.topbar-locale-switchers .lang-switcher-wrap.open .lang-switcher-btn,
.topbar-locale-switchers .currency-switcher-wrap.open .currency-pill {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
    color: var(--text);
    box-shadow: none;
}

.header-locale-switchers .currency-switcher-wrap,
.topbar-locale-switchers .currency-switcher-wrap {
    border-left: none;
}

.header-locale-switchers .lang-switcher-btn img,
.topbar-locale-switchers .lang-switcher-btn img {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.header-locale-switchers .lang-switcher-btn svg:last-child,
.header-locale-switchers .currency-pill svg:last-child,
.topbar-locale-switchers .lang-switcher-btn svg:last-child,
.topbar-locale-switchers .currency-pill svg:last-child {
    width: 10px;
    height: 10px;
    opacity: 0.4;
    flex-shrink: 0;
    margin-left: 2px;
}

.header-locale-switchers .lang-switcher-wrap.open .lang-switcher-btn svg:last-child,
.header-locale-switchers .currency-switcher-wrap.open .currency-pill svg:last-child {
    transform: rotate(180deg);
}

.header-locale-switchers .lang-switcher-wrap,
.header-locale-switchers .currency-switcher-wrap,
.topbar-locale-switchers .lang-switcher-wrap,
.topbar-locale-switchers .currency-switcher-wrap {
    position: relative;
    z-index: 2;
}

.header-locale-switchers .lang-switcher-wrap.open,
.header-locale-switchers .currency-switcher-wrap.open,
.topbar-locale-switchers .lang-switcher-wrap.open,
.topbar-locale-switchers .currency-switcher-wrap.open {
    z-index: 20;
}

.header-locale-switchers .lang-dropdown,
.header-locale-switchers .currency-dropdown,
.topbar-locale-switchers .lang-dropdown,
.topbar-locale-switchers .currency-dropdown {
    top: calc(100% + 6px);
    right: 0;
    z-index: 300;
}

@media (max-width: 768px) {
    .site-header {
        z-index: 110;
    }
    .site-header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto;
        min-height: 0;
        height: auto;
        padding: 10px 16px;
        column-gap: 8px;
        align-items: center;
    }
    .logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        margin: 0;
        min-width: 0;
    }
    .logo-img {
        height: 26px;
        max-width: 110px;
        width: auto;
        object-fit: contain;
        object-position: left center;
    }
    .header-search {
        grid-column: 2;
        grid-row: 1;
        display: block !important;
        max-width: none;
        min-width: 0;
        margin: 0;
    }
    .header-search input {
        height: 32px;
        padding: 6px 30px 6px 10px;
        font-size: 0.78rem;
        border-radius: 8px;
    }
    .header-search button {
        right: 2px;
        padding: 4px;
    }
    .header-search button svg {
        width: 16px;
        height: 16px;
    }
    .search-autocomplete {
        left: -72px;
        right: -8px;
        max-height: min(60vh, 360px);
    }
    .header-right {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        gap: 0;
    }
    .header-locale-switchers {
        gap: 4px;
        padding-left: 0;
        margin-left: 0;
        border-left: none;
    }
    .topbar-links {
        grid-column: 1;
        grid-row: 1;
    }
    .topbar-link { font-size: 0.66rem; padding: 3px 6px; }
    .topbar-link svg { display: none; }
    .header-actions {
        display: none !important;
    }
    .header-locale-switchers .lang-switcher-btn,
    .header-locale-switchers .currency-pill,
    .topbar-locale-switchers .lang-switcher-btn,
    .topbar-locale-switchers .currency-pill {
        height: 32px;
        min-height: 32px;
        padding: 0 8px;
        font-size: 0.72rem;
        gap: 5px;
    }
    .header-locale-switchers .lang-switcher-btn img,
    .topbar-locale-switchers .lang-switcher-btn img {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
    .header-locale-switchers .lang-switcher-btn > span,
    .topbar-locale-switchers .lang-switcher-btn > span { display: none; }
    .header-locale-switchers .currency-pill,
    .topbar-locale-switchers .currency-pill {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .topbar-links { display: none; }
    .topbar-announcements { mask-image: none; -webkit-mask-image: none; }
}

/* ── HEADER (main nav row inside site-header) ── */
.header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    position: static;
    top: auto;
    z-index: auto;
}

.header-inner {
    display: contents;
}

.logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.3px;
    transition: opacity 0.15s;
}

.logo:hover { color: var(--text); opacity: 0.85; }

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 800;
}

.logo-img { height: 28px; width: auto; }

.header-search {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    flex: 1;
    position: relative;
    max-width: 540px;
}

.header-search input {
    width: 100%;
    padding: 8px 42px 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    height: 36px;
}

.header-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: var(--bg-surface);
}

.header-search input::placeholder { color: var(--text-faint); }

.header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-faint);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.header-search button:hover { color: var(--accent); }

/* Search Autocomplete Dropdown */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.04);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.search-autocomplete::-webkit-scrollbar { width: 5px; }
.search-autocomplete::-webkit-scrollbar-track { background: transparent; }
.search-autocomplete::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.search-autocomplete.open { display: block; }

.ac-section { padding: 6px 0; }
.ac-section + .ac-section { border-top: 1px solid var(--border, #252530); }

.ac-section-label {
    padding: 6px 14px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-faint, #5c5c6e);
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.12s;
}
.ac-item:hover, .ac-item.ac-active {
    background: var(--bg-elevated);
}

.ac-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated, #1b1b22);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ac-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ac-abbr {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
}

.ac-item-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text, #e8e8ec);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.ac-item-text mark {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
    border-radius: 2px;
    padding: 0 1px;
}
.ac-item-price {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

.ac-item-arrow {
    flex-shrink: 0;
    color: var(--text-faint, #5c5c6e);
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}
.ac-item:hover .ac-item-arrow, .ac-item.ac-active .ac-item-arrow {
    opacity: 1;
    color: var(--accent);
    transform: translateX(2px);
}

.ac-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-top: 1px solid var(--border);
    transition: background 0.12s;
}
.ac-all:hover {
    background: var(--bg-elevated);
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0;
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
}

.header-divider {
    display: none;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    color: var(--text-dim);
    font-size: 0.82rem;
    cursor: pointer;
    border: none;
    background: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.header-btn:hover {
    color: var(--text);
    background: rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.header-btn:active {
    transform: translateY(0);
}

.header-btn svg { flex-shrink: 0; }

.logout-btn { color: var(--text-dim); padding: 8px; }
.logout-btn:hover { color: #ff5555; background: rgba(255,85,85,0.1); transform: translateY(-1px); }

.categories-btn {
    grid-column: 2;
    grid-row: 1;
    padding: 6px 8px;
    color: var(--text-dim);
    flex-shrink: 0;
    border-radius: 8px;
}
.categories-btn:hover {
    color: var(--accent);
    background: var(--accent-muted);
}
.categories-btn svg {
    display: block;
}

/* Header action pills — Sepet + Hesabım (outlined) */
.header-btn.cart-btn,
.account-dropdown-wrap .header-account-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    min-width: 124px;
    padding: 0 18px;
    color: var(--text);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1;
    letter-spacing: -0.01em;
    box-shadow: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}

.header-btn.cart-btn svg,
.account-dropdown-wrap .header-account-btn svg:not(.account-chevron) {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 2;
    stroke: var(--accent);
    color: var(--accent);
}

.header-btn.cart-btn:hover,
.account-dropdown-wrap .header-account-btn:hover {
    color: var(--accent);
    background: var(--accent-muted);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: none;
    transform: none;
}

.header-btn.cart-btn:hover svg,
.account-dropdown-wrap .header-account-btn:hover svg:not(.account-chevron) {
    stroke: var(--accent);
    color: var(--accent);
}

.header-btn.cart-btn:active {
    transform: scale(0.98);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 0.625rem;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    border: 2px solid var(--bg-surface);
    animation: cartPulse 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(217, 64, 64, 0.25);
}

@keyframes cartPulse {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── HEADER PILL BUTTONS (lang/currency) ── */
.header-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--text-dim);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
    height: 34px;
}

.header-pill:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--bg-elevated);
    transform: none;
}

.header-pill svg:last-child {
    opacity: 0.35;
    transition: transform 0.2s, opacity 0.15s;
    width: 9px;
    height: 9px;
}

.header-pill:hover svg:last-child { opacity: 0.7; }

.currency-switcher-wrap { position: relative; }

.currency-pill {
    text-decoration: none;
}

.currency-pill svg:first-child { margin-right: 2px; }

.currency-switcher-wrap.open .currency-pill {
    border-color: var(--border-hover);
    color: var(--text);
}

.currency-switcher-wrap.open .currency-pill svg:last-child { transform: rotate(180deg); }

.currency-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 110px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
    z-index: 200;
    display: none;
    overflow: hidden;
    animation: dropdownSlide 0.15s ease;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.currency-switcher-wrap.open .currency-dropdown { display: block; }

.currency-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-dim);
    font-size: 0.8rem;
    transition: background 0.1s, color 0.1s;
    text-decoration: none;
}

.currency-dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.currency-dropdown-item.active {
    color: var(--accent);
    font-weight: 500;
}

.currency-dropdown-flag { font-size: 1.1rem; }

.currency-dropdown-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.currency-dropdown-code { font-weight: 600; }

.currency-dropdown-symbol {
    color: var(--text-dim);
    opacity: 0.6;
    font-size: 0.78rem;
}

.currency-check { margin-left: auto; color: var(--accent); font-size: 0.75rem; }

.header-account-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 9999px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.25);
    height: 34px;
}

.header-account-btn:hover {
    background: var(--accent-hover);
    transform: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.header-account-btn svg {
    flex-shrink: 0;
    stroke: #fff;
    width: 15px;
    height: 15px;
}

.account-dropdown-wrap .header-account-btn {
    padding: 0 14px 0 18px;
    cursor: pointer;
}

.account-dropdown-wrap .header-account-btn .account-chevron {
    width: 10px;
    height: 10px;
    margin-left: -2px;
    opacity: 0.45;
    stroke: currentColor;
    transition: transform 0.2s, opacity 0.15s;
}

.account-dropdown-wrap.open .header-account-btn .account-chevron,
.account-dropdown-wrap .header-account-btn:hover .account-chevron {
    opacity: 0.75;
}

.account-dropdown-wrap.open .header-account-btn .account-chevron {
    transform: rotate(180deg);
}

.account-dropdown-wrap { position: relative; }

.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
    z-index: 1000;
    animation: fadeDown 0.15s ease-out;
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.account-dropdown-wrap.open .account-dropdown { display: block; }

.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-dim, #bbb);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.account-dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--text);
}
.account-dropdown-item svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.account-dropdown-logout {
    color: #e74c3c;
    border-top: 1px solid var(--border);
    margin-top: 2px;
    padding-top: 10px;
}
.account-dropdown-logout:hover {
    background: rgba(231,76,60,0.08);
    color: #ff6b6b;
}

/* ── HERO ── */
.hero {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 64px 48px;
    margin: 0 auto 48px;
    max-width: 1280px;
    box-shadow: none;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: -0.02em;
    font-style: normal;
    color: var(--text);
}

.hero h1 span {
    color: var(--accent);
    display: block;
    margin-top: 4px;
}

.hero p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 480px;
    line-height: 1.65;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.45);
}

.hero-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.hero-btn svg {
    transition: transform 0.2s ease;
}

.hero-btn:hover svg {
    transform: translateX(3px);
}

/* ── BANNER SLIDER ── */
.banner-slider {
    position: relative;
    margin: 24px auto 48px;
    width: 100%;
    max-width: 1280px;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.banner-track {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    z-index: 0;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.92) 18%,
        rgba(255, 255, 255, 0.78) 32%,
        rgba(255, 255, 255, 0.45) 48%,
        rgba(255, 255, 255, 0.12) 62%,
        rgba(255, 255, 255, 0) 78%,
        transparent 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 32px 40px 28px;
    max-width: 520px;
}

.banner-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.02em;
    font-family: var(--font-sans);
}

:lang(tr) .banner-title {
    text-transform: none;
    font-style: normal;
}

.banner-title span {
    color: var(--text);
    display: block;
    margin-top: 2px;
}

.banner-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 380px;
    font-weight: 400;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.45);
}

.banner-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.banner-btn svg {
    transition: transform 0.2s ease;
}

.banner-btn:hover svg {
    transform: translateX(3px);
}

.banner-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-nav {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    position: static;
}

.banner-nav svg {
    width: 12px;
    height: 12px;
}

.banner-nav:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
}

.banner-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.banner-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 3px;
}

.banner-dot:hover:not(.active) {
    background: rgba(0, 0, 0, 0.35);
}

/* ── SECTIONS ── */
.section {
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
    background: #eff6ff;
    border: 1px solid #dbeafe;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-transform: none;
    letter-spacing: -0.02em;
    font-style: normal;
    line-height: 1.3;
}

.section-header-box {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.section-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    background: #eff6ff;
    padding: 8px 18px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.section-view-all-btn:hover {
    background: #dbeafe;
    color: var(--accent-hover);
    transform: none;
    opacity: 1;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.section-link:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

/* ── GAME GRID ── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(var(--game-cols, 4), 1fr);
    gap: 14px;
}

.game-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-decoration: none;
    color: var(--text);
}

.game-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.16), 0 8px 16px -8px rgba(15, 23, 42, 0.1);
    color: var(--text);
}

.game-card-image {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-elevated);
    text-transform: uppercase;
}

.game-card-body {
    flex: 1;
    min-width: 0;
}

.game-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    word-break: break-word;
}

.game-card-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
}

.game-card:hover .game-card-action {
    opacity: 0.85;
}

@media (max-width: 1024px) {
    .game-grid { --game-cols: 3 !important; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .game-grid { --game-cols: 3 !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .section { padding: 0 16px; margin-bottom: 32px; }
    .section-header { margin-bottom: 14px; gap: 10px; }
    .section-title { font-size: 1.25rem; }
    .section-view-all-btn { font-size: 0.75rem; padding: 7px 14px; }
    .game-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 6px 8px;
        gap: 6px;
    }
    .game-card:hover {
        transform: translateY(-2px);
    }
    .game-card-image {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .game-card-body {
        width: 100%;
    }
    .game-card-name {
        font-size: 0.72rem;
        line-height: 1.25;
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .game-card-name-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .game-card-name-flag {
        margin-left: 0;
    }
    .game-card-action {
        display: none;
    }
}
@media (max-width: 600px) {
    .game-card {
        padding: 10px 6px 8px;
        gap: 6px;
    }
    .game-card-image {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .game-card-name {
        font-size: 0.72rem;
    }
}
@media (max-width: 480px) {
    .section { padding: 0 12px; }
    .game-grid { gap: 6px; }
    .game-card { padding: 8px 4px 6px; gap: 5px; }
    .game-card-image { width: 36px; height: 36px; border-radius: 8px; }
    .game-card-name { font-size: 0.66rem; }
}

/* ── HOME NEWS (anasayfa) ── */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.home-news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.home-news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.16), 0 8px 16px -8px rgba(15, 23, 42, 0.1);
}

.home-news-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.home-news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-news-card-placeholder svg { color: rgba(0, 0, 0, 0.2); position: relative; z-index: 1; }

.home-news-card-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(0, 0, 0, 0.03) 18px, rgba(0, 0, 0, 0.03) 36px);
}

.home-news-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-news-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-card:hover .home-news-card-title { color: var(--accent); }

.home-news-card-summary {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-card-more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.home-news-card:hover .home-news-card-more { gap: 8px; }

.section-view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

.section-view-all:hover { color: var(--accent-hover); }

@media (max-width: 768px) {
    .home-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .home-news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── FOOTER ── */
.footer {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 120px);
    border-top: 1px solid var(--border);
    margin-top: 56px;
}

.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 28px;
}

.footer-grid {
    display: grid;
    gap: 32px;
}

.footer-cols-1 { grid-template-columns: 1fr; }
.footer-cols-2 { grid-template-columns: 1.5fr 1fr; }
.footer-cols-3 { grid-template-columns: 1.5fr 1fr 1fr; }
.footer-cols-4 { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; }
.footer-cols-5 { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; }

.footer-brand .footer-logo { font-size: 1rem; margin-bottom: 10px; display: inline-flex; }

.footer-desc {
    color: var(--text-faint);
    font-size: 0.8rem;
    margin-bottom: 16px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-emails {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-email-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dim);
    font-size: 0.82rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
}

.footer-email-item:hover {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--accent);
}

.footer-email-item svg {
    color: var(--text-faint);
    flex-shrink: 0;
}

.footer-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: var(--text-dim);
    font-size: 0.82rem;
    transition: color 0.15s;
}

.footer-links li a:hover { color: var(--accent); }

.footer-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 14px;
    text-align: left;
    cursor: default;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
}

.footer-accordion-icon {
    display: none;
    flex-shrink: 0;
    color: var(--text-faint);
    transition: transform 0.25s ease;
}

@media (max-width: 768px) {
    .footer-accordion-col {
        border-bottom: 1px solid var(--border);
    }
    .footer-accordion-col:last-of-type {
        border-bottom: none;
    }
    .footer-accordion-toggle {
        cursor: pointer;
        padding: 14px 0;
        margin-bottom: 0;
        -webkit-tap-highlight-color: transparent;
    }
    .footer-accordion-icon {
        display: block;
    }
    .footer-accordion-col.is-open .footer-accordion-icon {
        transform: rotate(180deg);
    }
    .footer-accordion-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .footer-accordion-col.is-open .footer-accordion-panel {
        max-height: 600px;
        padding-bottom: 14px;
    }
    .footer-companies-col.is-open .footer-accordion-panel {
        max-height: 1200px;
    }
    .footer-accordion-col .footer-links {
        padding-top: 2px;
    }
}

/* Companies section */
.footer-companies-col {
    grid-column: 1 / -1;
    padding-top: 24px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

.footer-companies-col .footer-accordion-toggle {
    margin-bottom: 14px;
}

.footer-companies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.footer-company-card {
    height: 100%;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.footer-company-card:hover {
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.footer-company-flag {
    flex-shrink: 0;
    line-height: 0;
    margin-top: 2px;
}

.footer-company-flag img {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    vertical-align: -1px;
}

.footer-company-name {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    text-transform: none;
}

.footer-company-address {
    font-size: 0.68rem;
    color: var(--text-faint);
    line-height: 1.5;
    margin-top: 6px;
}

@media (min-width: 769px) {
    .footer-companies-col {
        padding-top: 28px;
        margin-top: 0;
    }

    .footer-companies-col .footer-accordion-toggle {
        justify-content: flex-start;
        margin-bottom: 16px;
    }

    .footer-companies {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .footer-company-card {
        padding: 14px 16px;
    }

    .footer-company-name {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .footer-company-address {
        font-size: 0.72rem;
        margin-top: 8px;
    }

    .footer-company-flag img {
        width: 18px;
        height: 13px;
    }
}

@media (min-width: 769px) and (max-width: 1080px) {
    .footer-companies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.footer-social-only {
    margin-top: 0;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
    text-decoration: none;
}

.footer-social-link:hover {
    transform: translateY(-2px);
}

.footer-social-facebook:hover { background: rgba(66, 103, 178, 0.1); border-color: rgba(66, 103, 178, 0.3); color: #4267b2; }
.footer-social-twitter:hover { background: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.15); color: #1a1a2e; }
.footer-social-instagram:hover { background: rgba(225, 48, 108, 0.08); border-color: rgba(225, 48, 108, 0.25); color: #e1306c; }
.footer-social-youtube:hover { background: rgba(255, 0, 0, 0.08); border-color: rgba(255, 0, 0, 0.2); color: #ff0000; }
.footer-social-discord:hover { background: rgba(114, 137, 218, 0.1); border-color: rgba(114, 137, 218, 0.3); color: #7289da; }
.footer-social-tiktok:hover { background: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.12); color: #1a1a2e; }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    color: var(--text-faint);
    font-size: 0.75rem;
}
.footer-bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 36px;
}
.footer-bottom-social {
    margin-top: 0 !important;
    gap: 6px !important;
    grid-column: 1;
    justify-self: start;
    position: relative;
    z-index: 1;
}
.footer-bottom-social .footer-social-link {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.footer-bottom-social .footer-social-link svg {
    width: 15px;
    height: 15px;
}
.footer-copyright {
    grid-column: 2;
    position: static;
    text-align: center;
    pointer-events: auto;
    min-width: 0;
}
.footer-bottom-inner:not(:has(.footer-bottom-social)) .footer-copyright {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
    }
    .footer-main {
        padding: 28px 16px 20px;
    }
    .footer-grid {
        gap: 20px;
    }
    .footer-desc {
        max-width: none;
    }
    .footer-companies-col {
        padding-top: 0;
        border-top: none;
    }
    .footer-companies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .footer-company-card {
        padding: 12px 14px;
        border-radius: 10px;
    }
    .footer-company-card:hover {
        box-shadow: none;
        border-color: var(--border);
    }
    .footer-company-name {
        font-size: 0.78rem;
    }
    .footer-company-address {
        font-size: 0.68rem;
        line-height: 1.4;
    }
    .footer-bottom {
        padding: 12px 16px;
    }
    .footer-bottom-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
    }
    .footer-bottom-social {
        grid-column: 1;
        justify-self: center;
    }
    .footer-copyright {
        grid-column: 1;
        font-size: 0.72rem;
        line-height: 1.45;
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .footer-companies {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .footer-company-name {
        font-size: 0.76rem;
    }
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.45);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: #eff6ff;
    color: var(--accent);
    border-color: transparent;
}

.btn-secondary:hover {
    background: #dbeafe;
    color: var(--accent-hover);
    border-color: transparent;
}

.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-lg { padding: 10px 24px; font-size: 0.9rem; }

/* ── ORDER ACTION BUTTONS ── */
.order-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.order-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.3;
    font-family: inherit;
}
.order-btn svg {
    flex-shrink: 0;
}
.order-btn-review {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #000));
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.order-btn-review:hover {
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.order-btn-reviewed {
    background: var(--bg-elevated);
    color: var(--text-dim);
    border-color: var(--border);
}
.order-btn-reviewed:hover {
    background: var(--border);
    border-color: var(--accent);
    color: var(--accent);
}
.order-btn-issue {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.2);
}
.order-btn-issue:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}
@media (max-width: 640px) {
    .order-action-btns { flex-direction: column; gap: 6px; }
    .order-btn { width: 100%; justify-content: center; font-size: 0.74rem; padding: 6px 10px; }
}

/* ── FORMS ── */
.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}

.form-control:focus { border-color: var(--border-hover); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* ── ALERTS ── */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 0.85rem;
    border: 1px solid;
}

.alert-success {
    background: rgba(58, 176, 106, 0.08);
    border-color: rgba(58, 176, 106, 0.2);
    color: var(--green);
}

.alert-danger {
    background: rgba(217, 64, 64, 0.08);
    border-color: rgba(217, 64, 64, 0.2);
    color: var(--red);
}

.alert-info {
    background: rgba(74, 142, 217, 0.08);
    border-color: rgba(74, 142, 217, 0.2);
    color: var(--blue);
}

/* ── TABLE ── */
.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.84rem;
}

.data-table th {
    background: var(--bg-elevated);
    color: var(--text-faint);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
}

.data-table tr:hover td { background: var(--bg-elevated); }

/* ── BADGE ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-success { background: rgba(58, 176, 106, 0.1); color: var(--green); }
.badge-danger { background: rgba(217, 64, 64, 0.1); color: var(--red); }
.badge-warning { background: var(--accent-muted); color: var(--accent); }
.badge-info { background: rgba(74, 142, 217, 0.1); color: var(--blue); }

/* ── CARD ── */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.card-title { font-size: 0.92rem; font-weight: 600; }

/* ── PAGINATION ── */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    margin: 24px 0;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: border-color 0.15s, color 0.15s;
}

.pagination a:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.pagination .active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}

.subcategory-title {
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 2px solid var(--border);
}

/* ── PANEL NAV (shared across customer/seller) ── */
.panel-page { max-width: 1280px; margin: 32px auto; padding: 0 24px; }

.page-head {
    margin-bottom: 20px;
}
.page-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-hover, #2563eb) 100%);
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    color: #fff;
}

.page-head h1 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: inherit;
    color: #fff;
}

.page-head p {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ── CUSTOMER PANEL PAGE HEADER ── */
.cp-page-head { margin-bottom: 20px; }
.cp-page-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-hover, #2563eb) 100%);
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    color: #fff;
}
.cp-page-head-inner--back { padding: 12px 20px; }
.cp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}
.cp-breadcrumb-link,
.cp-breadcrumb-mid,
.cp-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    letter-spacing: inherit;
}
.cp-breadcrumb-link,
.cp-breadcrumb-mid {
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
}
.cp-breadcrumb-link {
    text-decoration: none;
    transition: color 0.2s;
}
.cp-breadcrumb-link:hover { color: #fff; }
.cp-breadcrumb-link svg,
.cp-breadcrumb-sep svg {
    flex-shrink: 0;
    color: inherit;
    stroke: currentColor;
}
.cp-breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.45);
    opacity: 1;
}
.cp-breadcrumb-current {
    color: #fff;
    opacity: 1;
}
.cp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    margin: -6px -12px -6px -8px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.cp-back-link svg { flex-shrink: 0; transition: transform 0.2s; }
.cp-back-link:hover { color: var(--accent); background: var(--accent-muted); }
.cp-back-link:hover svg { transform: translateX(-2px); }
.cp-page-head-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cp-page-head-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    white-space: nowrap;
    line-height: 1.3;
}
.cp-head-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cp-page-head-inner .cp-head-action--success {
    background: #fff;
    color: #27ae60;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.cp-page-head-inner .cp-head-action--success:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
@media (max-width: 640px) {
    .cp-page-head-inner { padding: 12px 16px; }
    .cp-breadcrumb { font-size: 0.75rem; }
    .cp-page-head-inner:has(.cp-page-head-actions) {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cp-page-head-actions { width: 100%; }
    .cp-head-action {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ── CUSTOMER PANEL MOBILE ── */
@media (max-width: 640px) {
    .panel-page,
    .deposit-page,
    .withdraw-page,
    .cs-page {
        margin: 12px auto 16px;
        padding: 0 12px;
    }

    .panel-page > .card,
    .panel-page .card:not([style*="padding:0"]),
    .deposit-page .dep-card,
    .withdraw-form-card,
    .wr-history-card,
    .cs-card {
        padding: 14px;
    }

    .dash-welcome {
        padding: 16px;
        margin-bottom: 14px;
        gap: 14px;
    }
    .dash-greeting { font-size: 1rem; }
    .dash-welcome-right {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .dash-action-btn {
        justify-content: center;
        padding: 10px 10px;
        font-size: 0.76rem;
    }
    .dash-nav-card { padding: 14px 16px; gap: 12px; }
    .dash-nav-card-title { font-size: 0.88rem; }
    .dash-nav-card-icon { width: 40px; height: 40px; }

    .cp-breadcrumb-current { word-break: break-all; }

    /* Shared list cards: orders, selling, tickets */
    .ord-list,
    .ms-list,
    .tk-list {
        padding: 12px;
        gap: 10px;
    }
    .ord-head,
    .ms-head,
    .tk-card-head {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 10px 12px;
        align-items: center;
    }
    .ord-head-left,
    .ms-head-left,
    .tk-card-left {
        flex: 1 1 0;
        min-width: 0;
    }
    .ord-head-title,
    .ms-head-title,
    .tk-card-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .ord-head-title .ord-name,
    .ms-head-title .ms-name,
    .tk-card-title .tk-card-name {
        font-size: 0.88rem;
        line-height: 1.35;
    }
    .ord-head-title .ord-id,
    .ms-head-title .ms-id,
    .tk-card-title .tk-card-no {
        font-size: 0.68rem;
        word-break: break-all;
        line-height: 1.35;
    }
    .tk-card-title .tk-card-name {
        white-space: normal;
        max-width: none;
        overflow: visible;
        text-overflow: unset;
    }
    .ord-head-right,
    .ms-head-right,
    .tk-card-right {
        width: 100%;
        flex-shrink: 0;
    }
    .ord-detail-link,
    .ms-detail-link,
    .tk-card-detail-link {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.82rem;
        box-sizing: border-box;
    }

    /* Selling detail */
    .ms-summary { grid-template-columns: 1fr; }
    .ms-prog-row { flex-direction: column; gap: 8px; }
    .ms-tl-item-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .ms-account-item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ms-account-right { width: 100%; }
    .card-header { padding-bottom: 10px !important; }

    /* Tickets detail */
    .tk-detail-info {
        flex-direction: column;
        gap: 8px;
        padding: 12px 14px;
    }
    .tk-msg { max-width: 92%; }
    .tk-ticket-body { padding: 16px; }

    /* Deposit / withdraw */
    .dep-pay-layout .wallet-col-placeholder,
    .dep-pay-layout .wallet-col-right { position: static; }
    .dep-amount-wrap .dep-control { font-size: 1.05rem; }
    .ck-pay-wallet-layout .pm-card {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        gap: 4px 12px;
        padding: 12px 14px;
        align-items: center;
    }
    .ck-pay-wallet-layout .pm-card-icon {
        grid-row: 1 / span 2;
        align-self: center;
    }
    .ck-pay-wallet-layout .pm-card-info {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }
    .ck-pay-wallet-layout .pm-card-price {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        text-align: left;
        margin: 0;
    }
    .ck-pay-wallet-layout .pm-card-price:has(.pm-price-amount:empty),
    .ck-pay-wallet-layout .pm-card-price:has(.dep-pm-price:empty) {
        display: none;
    }
    .ck-pay-wallet-layout .pm-card-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }
    .dep-hist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .dep-hist-meta {
        width: 100%;
        text-align: left;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    /* Profile pickers */
    .phone-code-dropdown {
        width: calc(100vw - 48px);
        max-width: 340px;
    }
    .tz-picker-dropdown {
        min-width: 0;
        width: calc(100vw - 48px);
        max-width: 400px;
    }

    .pagination { flex-wrap: wrap; gap: 6px; justify-content: center; }

    .tk-reply-bar form { gap: 8px; }
    .tk-reply-bar .tk-input { min-width: 0; font-size: 0.84rem; }

    .ms-cancel-btn-head,
    .ms-cancel-pending-head {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .card > div[style*="justify-content:flex-end"] {
        justify-content: stretch !important;
    }
    .card > div[style*="justify-content:flex-end"] > * {
        width: 100%;
        justify-content: center;
    }

    .order-detail-meta {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .order-detail-meta-item { font-size: 0.82rem; }
    .order-detail-meta-value { word-break: break-all; }

    .panel-page form > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
}

.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-header h1 { font-size: 1.25rem; font-weight: 600; }
.panel-nav { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-nav a {
    padding: 6px 14px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}
.panel-nav a:hover { color: var(--text); background: var(--bg-elevated); }
.panel-nav a.active { color: var(--accent); background: var(--accent-muted); }
.seller-tab-badge { display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:#fff;font-size:0.68rem;font-weight:700;margin-left:6px;line-height:1; }
.panel-nav a.active .seller-tab-badge { background:var(--accent);color:#fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden; }
.stat-card .stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.stat-icon--orders { background: rgba(74, 142, 217, 0.1); color: var(--blue); }
.stat-icon--completed { background: rgba(58, 176, 106, 0.1); color: var(--green); }
.stat-icon--pending { background: var(--accent-muted); color: var(--accent); }
.stat-icon--spent { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 1.3rem; font-weight: 600; color: var(--accent); }

/* ── CUSTOMER DASHBOARD ── */
.text-accent { color: var(--accent); }
.text-success { color: var(--green); }
.text-faint { color: var(--text-faint); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

/* Welcome Banner */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-hover, #2563eb) 100%);
    border: none;
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 20px;
    gap: 16px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}
.dash-welcome-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.dash-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}
.dash-greeting {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-profile-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    transition: background .2s, color .2s;
    text-decoration: none;
    flex-shrink: 0;
}
.dash-profile-edit-btn:hover {
    background: #fff;
    color: var(--accent);
}
.dash-subtitle {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
}
.dash-balance-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-welcome-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Balance Pill */
.dash-balance-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    color: inherit;
}
.dash-balance-pill:hover {
    border-color: var(--accent);
    background: var(--bg-elevated);
}
.dash-balance-pill-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.dash-balance-pill-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}
.dash-balance-pill svg {
    width: 18px;
    height: 18px;
    padding: 2px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-action-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.dash-welcome .dash-action-btn--deposit,
.dash-welcome .dash-action-btn--withdraw {
    background: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.dash-welcome .dash-action-btn--deposit {
    color: #27ae60;
}
.dash-welcome .dash-action-btn--deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.dash-welcome .dash-action-btn--withdraw {
    color: #e17055;
}
.dash-welcome .dash-action-btn--withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Role Switch */
.dash-role-switch {
    display: flex;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.dash-role-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-faint);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.dash-role-btn:hover {
    color: var(--text-dim);
}
.dash-role-btn.active[data-role="customer"] {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.dash-role-btn.active[data-role="seller"] {
    background: var(--green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(58, 176, 106, 0.25);
}
.dash-role-btn.active svg { stroke: currentColor; }

/* View Transitions */
.dash-view { animation: dashFadeIn 0.25s ease; }
@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stat Cards */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.dash-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s, transform 0.15s;
}
.dash-stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}
.dash-stat-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-stat-icon--balance { background: rgba(59, 130, 246, 0.12); color: var(--accent); }
.dash-stat-icon--orders { background: rgba(74, 142, 217, 0.1); color: var(--blue); }
.dash-stat-icon--spent { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.dash-stat-icon--member { background: rgba(58, 176, 106, 0.1); color: var(--green); }
.dash-stat-icon--seller-products { background: rgba(58, 176, 106, 0.1); color: var(--green); }
.dash-stat-icon--seller-stock { background: rgba(74, 142, 217, 0.1); color: var(--blue); }
.dash-stat-icon--seller-sold { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.dash-stat-icon--seller-revenue { background: rgba(59, 130, 246, 0.12); color: var(--accent); }
.dash-stat-value--success { color: var(--green) !important; }
.dash-stat-info { min-width: 0; }
.dash-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.dash-stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quick Actions Row */
.dash-quick-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dash-quick-item {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}
.dash-quick-item:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}
.dash-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    transition: all 0.2s ease;
}
.dash-quick-item:hover .dash-quick-icon {
    background: var(--accent-muted);
    color: var(--accent);
}
.dash-quick-item--seller { border-color: rgba(58, 176, 106, 0.25); }
.dash-quick-item--seller:hover { border-color: var(--green); }
.dash-quick-item--seller:hover .dash-quick-icon {
    background: rgba(58, 176, 106, 0.12);
    color: var(--green);
}

/* Seller Panel */
.dash-seller-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}
.dash-seller-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}
.dash-seller-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
}
.dash-seller-title h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}
.dash-seller-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
}
.dash-seller-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dash-seller-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
}
.dash-seller-stat {
    background: var(--bg-surface);
    padding: 16px 18px;
    text-align: center;
}
.dash-seller-stat-val {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.dash-seller-stat-val--accent { color: var(--accent); }
.dash-seller-stat-val--warn { color: var(--warning, #e0964a); }
.dash-seller-stat-val--success { color: var(--green); }
.dash-seller-stat-lbl {
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.dash-seller-sales { padding: 16px 20px; }
.dash-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.dash-section-bar h4 {
    font-size: 0.88rem;
    font-weight: 600;
}
.dash-section-bar a {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
}
.dash-section-bar a:hover { text-decoration: underline; }

/* Seller Revenue Breakdown */
.dash-seller-revenue {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}
.dash-seller-rev-card {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
}
.dash-seller-rev-card--highlight {
    background: var(--bg-elevated);
}
.dash-seller-rev-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.dash-seller-rev-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.dash-seller-rev-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex-shrink: 0;
}

/* Main Content Grid */
.dash-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}
.dash-orders-card { min-width: 0; }
.dash-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Empty State */
.dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 20px;
    text-align: center;
}
.dash-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    margin-bottom: 4px;
}
.dash-empty p {
    color: var(--text-faint);
    font-size: 0.88rem;
}

/* Profile Widget */
.profile-widget { height: 100%; }
.profile-widget-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 12px;
}
.profile-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-widget-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}
.profile-widget-info {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}
.profile-widget-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-widget-email {
    font-size: 0.72rem;
    color: var(--text-dim);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-widget-edit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 6px;
    color: var(--text-faint);
    transition: background 0.15s, color 0.15s;
}
.profile-widget-edit-icon:hover {
    background: var(--bg-elevated);
    color: var(--accent);
}
.profile-widget-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.profile-widget-badge.badge-individual {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
}
.profile-widget-badge.badge-corporate {
    background: rgba(99,102,241,0.08);
    color: #818cf8;
}
.profile-widget-upgrade {
    width: 100%;
    padding: 9px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    background: rgba(99,102,241,0.05);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 7px;
    color: #818cf8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s, border-color 0.15s;
}
.profile-widget-upgrade:hover {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.25);
}

/* Dashboard Nav Cards */
.dash-content-area { min-width: 0; height: 100%; }
.dash-nav-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    height: 100%;
}
.dash-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.dash-nav-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.16), 0 8px 16px -8px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}
.dash-nav-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-nav-card-body { flex: 1; min-width: 0; }
.dash-nav-card-title {
    font-size: 0.95rem;
    font-weight: 700;
}
.dash-nav-card-count {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 3px;
}
.dash-nav-card-arrow {
    color: var(--text-faint);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.dash-nav-card:hover .dash-nav-card-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

/* Dashboard Recent Orders */
.dash-recent-orders {
    margin-top: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.dash-section-header h2 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
}
.dash-section-header a {
    font-size: 0.76rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.dash-section-header a:hover { text-decoration: underline; }
.dash-recent-list { padding: 4px 0; }
.dash-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    transition: background 0.15s;
}
.dash-recent-item:hover { background: var(--bg-elevated); }
.dash-recent-id {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    min-width: 50px;
}
.dash-recent-total {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    flex: 1;
}
.dash-recent-date {
    font-size: 0.72rem;
    color: var(--text-faint);
    white-space: nowrap;
}

/* Dashboard Sidebar Mini Stats */
.dash-stats-mini {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.dash-stat-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.dash-stat-mini-item:last-child { border-bottom: none; }
.dash-stat-mini-label {
    font-size: 0.78rem;
    color: var(--text-faint);
}
.dash-stat-mini-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .dash-main { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    .dash-welcome { flex-direction: column; align-items: flex-start; }
    .dash-welcome-right { width: 100%; flex-wrap: wrap; }
    .dash-nav-cards { grid-template-columns: 1fr; }
    .dash-role-switch { flex: 1; min-width: 0; }
    .dash-role-btn { flex: 1; justify-content: center; }
    .dash-balance-pill { flex: 1; justify-content: center; }
    .dash-balance-btn { width: 100%; justify-content: center; }
    .dash-quick-row { gap: 8px; }
    .dash-quick-item { min-width: 80px; padding: 12px 8px; }
    .dash-seller-revenue { flex-wrap: wrap; }
    .dash-seller-rev-sep { display: none; }
    .dash-seller-rev-card { min-width: 45%; }
}
@media (max-width: 640px) {
    .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dash-stat-card { padding: 14px 16px; }
    .dash-stat-value { font-size: 1rem; }
    .dash-quick-item { font-size: 0.72rem; }
    .dash-seller-stats { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr 1fr !important; }
}

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } }

/* ── SELLER SIDEBAR LAYOUT ── */
.seller-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.seller-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
}

.seller-sidebar-logo {
    padding: 20px 20px 0;
}
.seller-sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.seller-sidebar-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.3px;
}

.seller-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.seller-sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.seller-sidebar-user { min-width: 0; }

.seller-sidebar-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-sidebar-role {
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seller-sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seller-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
}

.seller-sidebar-link:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.seller-sidebar-link.active {
    color: var(--accent);
    background: var(--accent-muted);
    font-weight: 600;
}

.seller-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.seller-sidebar-link.active .seller-sidebar-icon { opacity: 1; }
.seller-sidebar-link:hover .seller-sidebar-icon { opacity: 1; }

.seller-sidebar-footer {
    padding: 10px 10px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seller-sidebar-logout:hover {
    color: var(--red) !important;
    background: rgba(217, 64, 64, 0.08) !important;
}

.seller-content {
    flex: 1;
    min-width: 0;
    padding: 28px 32px;
    max-width: 100%;
}

.seller-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 60;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: background 0.15s;
}
.seller-sidebar-toggle:hover { background: var(--bg-elevated); }
.seller-sidebar-toggle.open { background: var(--accent-muted); color: var(--accent); }

@media (max-width: 900px) {
    .seller-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 90;
        box-shadow: none;
    }
    .seller-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.5);
    }
    .seller-sidebar-toggle {
        display: flex;
    }
    .seller-content {
        padding: 20px 16px;
    }
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher-wrap { position: relative; }

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--text-dim);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    height: 34px;
}

.lang-switcher-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--bg-elevated);
    transform: none;
}

.lang-switcher-btn svg { transition: transform 0.2s; }

.lang-switcher-btn svg:last-child {
    opacity: 0.35;
    width: 9px;
    height: 9px;
}

.lang-switcher-wrap.open .lang-switcher-btn svg:last-child { transform: rotate(180deg); }

.lang-switcher-wrap.open .lang-switcher-btn {
    border-color: var(--border-hover);
    color: var(--text);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
    z-index: 200;
    display: none;
    overflow: hidden;
    animation: dropdownSlide 0.15s ease;
}

.lang-switcher-wrap.open .lang-dropdown { display: block; }

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-dim);
    font-size: 0.82rem;
    transition: background 0.1s, color 0.1s;
    text-decoration: none;
}

.lang-dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.lang-dropdown-item.active {
    color: var(--accent);
    font-weight: 500;
}

.lang-dropdown-flag { font-size: 1.1rem; }

.lang-dropdown-flag img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.lang-check { margin-left: auto; color: var(--accent); font-size: 0.75rem; }

/* ── TRUSTPILOT WIDGET ── */
.trustpilot-widget {
    background: #00b67a;
    border: 1px solid #00a06a;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.25s;
    box-shadow: 0 2px 10px rgba(0, 182, 122, 0.2);
}
.trustpilot-widget:hover {
    background: #00a06a;
    border-color: #009060;
    box-shadow: 0 4px 16px rgba(0, 182, 122, 0.3);
    transform: translateY(-1px);
}
.trustpilot-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.trustpilot-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #00b67a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trustpilot-logo svg {
    width: 16px;
    height: 16px;
}
.trustpilot-site-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}
.trustpilot-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}
.trustpilot-star {
    width: 22px;
    height: 22px;
    position: relative;
}
.trustpilot-star-bg {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.trustpilot-star-bg.full {
    background: #fff;
}
.trustpilot-star-bg.half {
    background: linear-gradient(90deg, #fff 50%, rgba(255,255,255,0.3) 50%);
}
.trustpilot-star-bg.empty {
    background: rgba(255,255,255,0.3);
}
.trustpilot-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}
.trustpilot-rating-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.trustpilot-review-text {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 14px;
}
.trustpilot-ext-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}
.trustpilot-widget:hover .trustpilot-ext-icon,
.trustpilot-inline:hover .trustpilot-ext-icon {
    opacity: 1;
    transform: translateX(2px) translateY(-2px);
}

.trustpilot-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #00b67a;
    border: 1px solid #00a06a;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0, 182, 122, 0.2);
}
.trustpilot-inline:hover {
    background: #00a06a;
    border-color: #009060;
    box-shadow: 0 4px 14px rgba(0, 182, 122, 0.3);
    transform: translateY(-1px);
}
.trustpilot-inline .trustpilot-logo {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}
.trustpilot-inline-info {
    flex: 1;
    min-width: 0;
}
.trustpilot-inline-top {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1px;
}
.trustpilot-inline-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.trustpilot-inline-rating {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}
.trustpilot-inline .trustpilot-stars {
    margin-bottom: 0;
    margin-left: auto;
    margin-right: 12px;
    gap: 2px;
    flex-shrink: 0;
}
.trustpilot-inline .trustpilot-star {
    width: 14px;
    height: 14px;
}
.trustpilot-inline .trustpilot-star-bg.full { background: #fff; }
.trustpilot-inline .trustpilot-star-bg.half { background: linear-gradient(90deg, #fff 50%, rgba(255,255,255,0.3) 50%); }
.trustpilot-inline .trustpilot-star-bg.empty { background: rgba(255,255,255,0.3); }
.trustpilot-inline-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── MOBILE BOTTOM NAV ── */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body:not(.auth-page) {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99990;
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
    }

    .mbn-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px 2px;
        color: var(--text-dim);
        text-decoration: none;
        border-radius: 10px;
        transition: color 0.2s ease, background 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    button.mbn-item {
        border: none;
        background: none;
        font: inherit;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    .mbn-item-support.is-active {
        color: #128C7E;
    }

    .mbn-item:active {
        background: rgba(59, 130, 246, 0.06);
    }

    .mbn-item.is-active {
        color: var(--accent);
    }

    .mbn-icon {
        position: relative;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mbn-icon svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .mbn-item.is-active .mbn-icon svg {
        stroke-width: 2.35;
    }

    .mbn-label {
        font-size: 0.62rem;
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: -0.01em;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }

    .mbn-badge {
        position: absolute;
        top: -4px;
        right: -7px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 0.58rem;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
        border: 1.5px solid #fff;
        box-shadow: 0 1px 4px rgba(239, 68, 68, 0.35);
    }

    .lcsw-widget {
        left: 0;
        right: 0;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        width: auto;
        pointer-events: none;
    }

    .lcsw-fab {
        display: none !important;
    }

    .lcsw-window {
        pointer-events: auto;
        position: fixed;
        left: 10px;
        right: 10px;
        width: auto;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        height: min(460px, calc(100dvh - 80px - env(safe-area-inset-bottom, 0px)));
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr !important; }
    .header-search { max-width: none; }
}

@media (max-width: 768px) {
    .categories-btn,
    .header-btn.cart-btn,
    .header-account-btn,
    .account-dropdown-wrap,
    .header-divider {
        display: none !important;
    }
    .header-actions {
        display: none !important;
    }

    .hero { padding: 32px 20px; }
    .hero h1 { font-size: 1.2rem; }
    .banner-slider {
        border-radius: var(--radius-lg);
        margin: 12px auto 28px;
        padding-left: 16px;
        padding-right: 16px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    }
    .banner-track {
        height: clamp(200px, 54vw, 240px);
    }
    .banner-slide {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        background-position: center right;
        background-size: cover;
    }
    .banner-slide::after {
        display: none;
    }
    .banner-overlay {
        display: block;
        background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.94) 28%,
            rgba(255, 255, 255, 0.82) 42%,
            rgba(255, 255, 255, 0.5) 58%,
            rgba(255, 255, 255, 0.15) 72%,
            transparent 88%);
    }
    .banner-content {
        display: block;
        align-items: flex-start;
        align-self: auto;
        width: auto;
        max-width: min(62%, 280px);
        flex-shrink: 0;
        background: transparent;
        padding: 18px 16px 18px 20px;
        box-sizing: border-box;
        border-top: none;
        text-align: left;
    }
    .banner-title {
        width: auto;
        font-size: clamp(0.95rem, 4.2vw, 1.2rem);
        margin: 0 0 6px;
        line-height: 1.2;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
        word-break: normal;
        text-align: left;
    }
    .banner-desc {
        display: -webkit-box;
        font-size: clamp(0.68rem, 2.8vw, 0.78rem);
        margin-bottom: 12px;
        line-height: 1.45;
        max-width: 100%;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .banner-btn {
        align-self: auto;
        justify-content: flex-start;
        width: auto;
        padding: 8px 14px;
        font-size: clamp(0.68rem, 2.8vw, 0.78rem);
        gap: 6px;
        max-width: 100%;
        white-space: nowrap;
        line-height: 1.25;
        min-height: 0;
        box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.45);
    }
    .banner-btn svg {
        display: block;
        width: 13px;
        height: 13px;
    }
    .banner-controls {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
    .banner-nav { display: none; }
    .banner-dots { gap: 5px; }
    .banner-dot { width: 6px; height: 6px; background: rgba(0, 0, 0, 0.18); }
    .banner-dot.active { width: 18px; background: var(--accent); }
    .banner-dot:hover:not(.active) { background: rgba(0, 0, 0, 0.35); }
    .footer-grid { grid-template-columns: 1fr !important; gap: 0; }
    .footer-brand { margin-bottom: 20px; }
}

@media (max-width: 480px) {
    .site-header-inner { padding: 8px 12px; column-gap: 8px; }
    .logo-img { height: 24px; max-width: 120px; }
    .logo { font-size: 0.95rem; gap: 6px; }
    .header-locale-switchers .lang-switcher-btn,
    .header-locale-switchers .currency-pill {
        height: 30px;
        min-height: 30px;
        padding: 0 7px;
        font-size: 0.68rem;
    }
    .banner-slider {
        padding-left: 12px;
        padding-right: 12px;
    }
    .banner-track { height: clamp(188px, 52vw, 220px); }
    .banner-content {
        max-width: min(68%, 240px);
        padding: 14px 12px 14px 16px;
    }
    .banner-title { font-size: clamp(0.88rem, 4.5vw, 1.05rem); margin-bottom: 5px; }
    .banner-desc { font-size: clamp(0.64rem, 2.9vw, 0.72rem); margin-bottom: 10px; }
    .banner-btn { padding: 7px 12px; font-size: 0.68rem; gap: 5px; }
    .banner-btn svg { width: 12px; height: 12px; }
    .banner-controls { bottom: 8px; }
    .banner-dot { width: 5px; height: 5px; }
    .banner-dot.active { width: 14px; }
    .header-divider { display: none; }
}

/* ── ADVERTISEMENT ZONES ── */
.ad-zone {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.ad-zone .ad-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: opacity 0.2s;
}
.ad-zone .ad-item:hover {
    opacity: 0.9;
}
.ad-zone .ad-item img {
    display: block;
    max-width: 100%;
    height: auto;
}
.ad-zone .ad-label {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    z-index: 2;
    background: rgba(255,255,255,0.85);
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.15s;
    border: 1px solid var(--border);
}
.ad-zone .ad-label:hover {
    background: #fff;
}
}

/* PVP Top Banner Ad */
.ad-zone-pvp-top {
    margin: 16px 0;
    padding: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 100px;
    overflow: hidden;
}
.ad-zone-pvp-top .ad-item {
    width: 100%;
    flex: 1 1 100%;
}
.ad-zone-pvp-top .ad-item img {
    border-radius: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Homepage Banner Ad */
.ad-zone-homepage {
    margin: 0 0 8px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    position: relative;
    width: 100%;
}
.ad-zone-homepage .ad-item {
    display: block;
    width: 100%;
}
.ad-zone-homepage .ad-item img {
    border-radius: 0;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    display: block;
}
.ad-zone-homepage + .section,
.ad-zone-homepage + section.section {
    margin-top: 8px;
}

/* ── END AD ZONES ── */

/* ── LIVE CHAT WIDGET (WhatsApp palette) ── */
.lcsw-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: inherit;
}

.lcsw-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E, #075E54);
    background-size: 200% 200%;
    animation: lcswFabGradient 4s ease infinite;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.3);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    position: relative;
}

@keyframes lcswFabGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.lcsw-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0);
}

.lcsw-fab:active {
    transform: scale(0.95);
}

.lcsw-fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
    border: 2px solid #fff;
    animation: lcswBadgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lcswBadgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.lcsw-window {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 340px;
    height: 440px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lcswSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lcswSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lcsw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 60%, #0D6E5F 100%);
    color: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.lcsw-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.lcsw-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.lcsw-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lcsw-header-avatar::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #075E54;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.lcsw-header-title {
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
}

.lcsw-header-subtitle {
    font-size: 0.68rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lcsw-header-actions {
    position: relative;
    z-index: 1;
}

.lcsw-header-close {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}

.lcsw-header-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

.lcsw-prechat {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.lcsw-prechat::-webkit-scrollbar { width: 4px; }
.lcsw-prechat::-webkit-scrollbar-track { background: transparent; }
.lcsw-prechat::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.lcsw-prechat-inner {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.lcsw-prechat-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(18, 140, 126, 0.1));
    border: 1px solid rgba(37, 211, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #128C7E;
    margin-bottom: 4px;
}

.lcsw-prechat-inner h3 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.lcsw-prechat-inner p {
    color: var(--text-faint);
    font-size: 0.78rem;
    margin: 0 0 10px 0;
    line-height: 1.45;
    max-width: 260px;
}

.lcsw-prechat-inner form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lcsw-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 0.84rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lcsw-input:focus {
    border-color: rgba(37, 211, 102, 0.5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.lcsw-input::placeholder {
    color: var(--text-faint);
}

.lcsw-start-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-weight: 700;
    font-size: 0.84rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
    margin-top: 4px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.lcsw-start-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.lcsw-start-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.lcsw-start-btn:hover::before {
    opacity: 1;
}

.lcsw-start-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
}

.lcsw-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.lcsw-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.08) transparent;
}

.lcsw-messages::-webkit-scrollbar { width: 4px; }
.lcsw-messages::-webkit-scrollbar-track { background: transparent; }
.lcsw-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }

.lcsw-msg-loading, .lcsw-msg-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-faint);
    font-size: 0.82rem;
}

.lcsw-msg {
    display: flex;
    max-width: 82%;
    animation: lcswMsgIn 0.2s ease-out;
}

@keyframes lcswMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lcsw-msg-system {
    align-self: center;
    max-width: 100%;
    font-size: 0.7rem;
    color: var(--text-faint);
    text-align: center;
    padding: 6px 12px;
    gap: 6px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.lcsw-msg-me {
    align-self: flex-end;
    margin-left: auto;
}

.lcsw-msg-admin {
    align-self: flex-start;
}

.lcsw-msg-bubble {
    padding: 8px 12px;
    border-radius: 12px 12px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lcsw-bubble-admin {
    background: rgba(220, 248, 198, 0.6);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 12px 12px 12px 4px;
}

.lcsw-bubble-me {
    background: #DCF8C6;
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: 12px 12px 4px 12px;
}

.lcsw-msg-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #128C7E;
    letter-spacing: 0.02em;
}

.lcsw-msg-text {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}

.lcsw-msg-time {
    font-size: 0.6rem;
    color: var(--text-faint);
    align-self: flex-end;
    margin-top: 1px;
}

.lcsw-input-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-top: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}

.lcsw-msg-input {
    flex: 1;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-elevated, #f8f8fa);
    color: var(--text);
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lcsw-msg-input:focus {
    border-color: rgba(37, 211, 102, 0.45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.08);
}

.lcsw-msg-input::placeholder {
    color: var(--text-faint);
}

.lcsw-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.lcsw-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

.lcsw-send-btn:active {
    transform: scale(0.95);
}

.lcsw-end-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    margin: 0 auto 8px;
    padding: 5px 16px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: var(--text-faint, #999);
    font-size: 0.7rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.lcsw-end-chat:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.lcsw-ended-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px 8px;
    text-align: center;
}

.lcsw-ended-notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #128C7E;
}

.lcsw-ended-notice span {
    font-size: 0.78rem;
    color: var(--text-faint);
    line-height: 1.4;
}

.lcsw-new-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 24px);
    margin: auto 12px 12px;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.lcsw-new-chat-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.lcsw-new-chat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.lcsw-new-chat-btn:hover::before {
    opacity: 1;
}

.lcsw-new-chat-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
}

@media (max-width: 480px) {
    .lcsw-window {
        left: 8px;
        right: 8px;
        height: min(420px, calc(100dvh - 76px - env(safe-area-inset-bottom, 0px)));
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        border-radius: 14px;
    }
    .lcsw-prechat-inner {
        padding: 20px 16px;
    }
    .lcsw-header {
        padding: 10px 12px;
    }
}

/* ── END LIVE CHAT WIDGET ── */

/* ── FRONTEND MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-overlay.opening { display: flex; }

.modal-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.modal-overlay.show .modal-box { transform: translateY(0) scale(1); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }

.modal-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1.1rem; line-height: 1;
}
.modal-close:hover { border-color: var(--red); color: var(--red); background: rgba(217,64,64,0.1); }

.modal-body { padding: 22px; }

@media (max-width: 640px) {
    .modal-box { max-width: 100%; margin: 10px; }
}

/* ── Currency product row (category list + product detail) ── */
.product-item,
.product-detail-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 22px 0 0;
    gap: 16px;
    overflow: hidden;
}

.product-item {
    transition: border-color 0.15s;
}

.product-item:hover {
    border-color: var(--border-hover);
}

.product-detail-header {
    margin-bottom: 24px;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.product-item .product-thumb,
.product-detail-image {
    aspect-ratio: 1 / 1;
    height: 100%;
    width: auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-elevated);
}

.product-item .product-thumb a {
    position: absolute;
    inset: 0;
    display: block;
}

.product-item .product-thumb img,
.product-detail-image > img,
.product-detail-image > #prodMainImg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.product-item .product-thumb .product-thumb-placeholder,
.product-detail-image .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-faint);
    background: var(--bg-elevated);
}

.product-info,
.product-detail-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
    text-decoration: none;
    color: inherit;
}

.product-info:hover h3,
.product-detail-info a:hover {
    color: var(--gold);
}

.product-info h3,
.product-detail-info h1 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.product-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-unit-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-delivery-region {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    box-sizing: border-box;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    line-height: 1.35;
}

.product-delivery-region__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.product-delivery-region__icon svg {
    width: 16px;
    height: 16px;
}

.product-delivery-region__label {
    color: var(--text-dim);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-delivery-region__value {
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}

.product-meta,
.product-header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 18px 0;
}

.product-header-right {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
}

.product-prices,
.product-header-right > .product-price-box {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
}

.product-item .product-price-box,
.product-price-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 10px 18px;
    min-width: 100px;
}

.product-item .product-price-box form,
.product-price-col form {
    width: 100%;
    display: flex;
}

.product-item .product-price-box .price-label,
.product-price-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    text-align: center;
}

.product-item .product-price-box.buy-price .price-label,
.product-price-label--buy { color: var(--green); }

.product-item .product-price-box.sell-price .price-label,
.product-price-label--sell { color: var(--accent); }

.product-item .product-price-box .price-value,
.product-price-value {
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-bottom: 8px;
    text-align: center;
}

.product-item .product-price-box.buy-price .price-value,
.product-price-value--buy { color: var(--green); }

.product-item .product-price-box.sell-price .price-value,
.product-price-value--sell { color: var(--accent); }

.product-price-value--nostock {
    font-size: 0.85rem;
    color: var(--text-faint);
}

.product-old-price {
    display: inline-block;
    text-decoration: line-through;
    color: var(--text-faint);
    font-weight: 500;
    font-size: 0.8em;
    margin-right: 6px;
    opacity: 0.85;
}

.product-price-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 3px;
}
.product-price-top .product-old-price {
    margin-right: 0;
    font-size: 0.85rem;
}
.product-discount-badge {
    background: rgba(217, 64, 64, 0.1);
    color: var(--red, #d94040);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    line-height: 1.5;
    white-space: nowrap;
}
.product-header-right .product-price-value--sell {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-price-divider {
    width: 1px;
    background: var(--border-hover);
    align-self: stretch;
}

.game-price-btn,
.product-price-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0 14px;
    height: 32px;
    line-height: 32px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.game-price-btn--buy,
.product-price-btn--buy {
    background: var(--green);
    color: #fff;
    border: 1px solid var(--green);
}

.game-price-btn--buy:hover,
.product-price-btn--buy:hover {
    background: #2e9e5e;
    border-color: #2e9e5e;
}

.game-price-btn--sell,
.product-price-btn--sell {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.game-price-btn--sell:hover,
.product-price-btn--sell:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.game-price-btn--disabled,
.product-price-btn--disabled {
    background: var(--red, #d94040);
    color: #fff;
    border: 1px solid var(--red, #d94040);
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .product-item,
    .product-detail-header {
        grid-template-columns: 76px 1fr;
        grid-template-rows: auto auto;
        gap: 0 12px;
        text-align: left;
        padding: 12px;
        align-items: start;
    }

    .product-item .product-thumb,
    .product-detail-image {
        grid-column: 1;
        grid-row: 1;
        width: 76px;
        height: 76px;
        aspect-ratio: 1 / 1;
        border-radius: var(--radius-sm);
        overflow: hidden;
    }

    .product-info,
    .product-detail-info {
        grid-column: 2;
        grid-row: 1;
        padding: 0;
        align-self: center;
    }

    .product-info h3,
    .product-detail-info h1 {
        font-size: 0.88rem;
        text-align: left;
        line-height: 1.3;
    }

    .product-name-row {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    .product-unit-badge {
        font-size: 0.66rem;
        padding: 2px 6px;
    }

    .product-delivery-region {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        margin-top: 6px;
        padding: 6px 8px;
        font-size: 0.7rem;
        line-height: 1.4;
        gap: 4px 6px;
    }

    .product-delivery-region__value {
        white-space: normal;
        word-break: break-word;
        flex: 1 1 100%;
    }

    .product-meta,
    .product-header-right {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 10px 0 0;
        align-items: stretch;
        margin-top: 2px;
        border-top: 1px solid var(--border);
    }

    .product-prices,
    .product-header-right > .product-price-box {
        width: 100%;
    }

    .product-item .product-price-box,
    .product-price-col {
        flex: 1;
        padding: 8px 10px;
        min-width: 0;
    }

    .product-item .product-price-box .price-label {
        font-size: 0.62rem;
        margin-bottom: 2px;
    }

    .product-item .product-price-box .price-value {
        font-size: 0.92rem;
        margin-bottom: 6px;
    }

    .game-price-btn,
    .product-price-btn {
        width: 100%;
        min-width: 0;
        padding: 0 8px;
        height: 30px;
        line-height: 30px;
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .product-item,
    .product-detail-header {
        grid-template-columns: 64px 1fr;
        gap: 0 10px;
        padding: 10px;
    }

    .product-item .product-thumb,
    .product-detail-image {
        width: 64px;
        height: 64px;
    }

    .product-info h3,
    .product-detail-info h1 {
        font-size: 0.82rem;
    }

    .product-delivery-region {
        font-size: 0.66rem;
        padding: 5px 7px;
    }

    .product-item .product-price-box {
        padding: 7px 8px;
    }

    .product-item .product-price-box .price-value {
        font-size: 0.85rem;
    }

    .game-price-btn,
    .product-price-btn {
        height: 28px;
        line-height: 28px;
        font-size: 0.68rem;
    }
}

.cf-modal-dz {
    margin-bottom: 18px;
    padding: 11px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
}
.cf-modal-dz svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.85;
}
.cf-modal-dz-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
}
.cf-modal-dz-value {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 500;
}

.cf-modal-qty {
    margin-bottom: 18px;
}
.cf-modal-qty-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cf-modal-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-input);
}
.cf-modal-qty-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.cf-modal-qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}
.cf-modal-qty-btn:hover {
    background: var(--bg-elevated);
    color: var(--text);
}
.cf-modal-qty-btn:active {
    background: var(--border);
}
.gcf-qty-input {
    width: 52px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    -moz-appearance: textfield;
    outline: none;
}
.gcf-qty-input::-webkit-outer-spin-button,
.gcf-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
