/* ═══════════════════════════════════════════════════════════════
   MAX Services — Premium Marketplace Mini App Styles
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Primary palette */
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #5A4BD1;
    --primary-gradient: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);

    /* Accent */
    --accent: #FF6B9D;
    --accent-light: #FF8FB1;
    --accent-gradient: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);

    /* Success / Warning / Error */
    --success: #00D2A0;
    --warning: #FDCB6E;
    --error: #FF6B6B;

    /* Neutrals */
    --bg-primary: #0F0F1A;
    --bg-secondary: #1A1A2E;
    --bg-card: #1E1E35;
    --bg-elevated: #252545;
    --bg-input: #2A2A4A;
    --bg-overlay: rgba(0, 0, 0, 0.6);

    /* Text */
    --text-primary: #EAEAFF;
    --text-secondary: #9898B8;
    --text-muted: #6B6B8D;
    --text-inverse: #0F0F1A;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-active: rgba(108, 92, 231, 0.4);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Spacing */
    --header-height: 56px;
    --nav-height: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Animations */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

html, body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* ─── Bootstrap Icons Base ─── */
.bi {
    vertical-align: -0.125em;
    line-height: 1;
}

/* ─── 3D Utilities ─── */
.perspective-container {
    perspective: 1000px;
}

@keyframes float3d {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-4px) rotateX(1deg); }
}

@keyframes shimmer3d {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

a {
    color: inherit;
    text-decoration: none;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background: none;
    color: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--bg-secondary);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: var(--primary-gradient);
    position: relative;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 15px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-city {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.sidebar-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    position: relative;
}

.sidebar-link:hover,
.sidebar-link:active {
    background: rgba(108, 92, 231, 0.1);
}

.sidebar-link svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.sidebar-link-primary {
    color: var(--primary-light);
}

.sidebar-link-primary svg {
    color: var(--primary-light);
}

.sidebar-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.sidebar-divider {
    height: 1px;
    margin: 8px 20px;
    background: var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   APP CONTAINER & HEADER
   ═══════════════════════════════════════════════════════════════ */

.app-container {
    height: 100%;
    height: 100dvh;
    height: var(--tg-viewport-height, 100dvh);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Subpage & Detail pages overlay the entire container */
#pageSubpage,
#pageDetail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--bg-primary);
    padding-bottom: 0;
}

.app-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 10;
}

.header-menu-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.header-menu-btn:hover {
    background: var(--bg-elevated);
}

.header-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    padding: 0 14px;
    height: 38px;
    border: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.header-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.header-search input {
    flex: 1;
    height: 100%;
    font-size: 13px;
    color: var(--text-primary);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-city-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.header-city-btn:hover {
    background: rgba(108, 92, 231, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES SLIDER
   ═══════════════════════════════════════════════════════════════ */

/* ─── Filter Bar ─── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: var(--primary);
    color: white;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition);
}
.filter-bar-btn:active { transform: scale(0.96); }

.filter-bar-badge {
    background: white;
    color: var(--primary);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}

.filter-bar-active {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-bar-active::-webkit-scrollbar { display: none; }

/* ─── Category Strip (horizontal scroll of top-level categories) ─── */
.cat-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-strip-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: var(--radius-xl);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.cat-strip-chip:active { transform: scale(0.96); }
.cat-strip-chip.active {
    background: rgba(108, 92, 231, 0.18);
    border-color: rgba(108, 92, 231, 0.55);
    color: var(--primary-light);
}
.cat-strip-chip .cat-strip-icon {
    font-size: 14px;
    line-height: 1;
}
.cat-strip-chip .cat-strip-arrow {
    opacity: 0.55;
    font-size: 11px;
    margin-left: 2px;
}

/* ─── Category Sheet (subcategory selector) ─── */
.cs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.cs-overlay.open { opacity: 1; pointer-events: all; }

.cs-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-secondary);
    z-index: 1101;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.cs-sheet.open { transform: translateY(0); }

.cs-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    margin: 10px auto 6px;
    flex-shrink: 0;
}

.cs-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cs-back, .cs-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.cs-back:active, .cs-close:active { background: rgba(255,255,255,0.06); }

.cs-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.cs-row:active { transform: scale(0.98); background: var(--bg-elevated); }
.cs-row.active {
    border-color: rgba(108, 92, 231, 0.55);
    background: rgba(108, 92, 231, 0.10);
}

.cs-row-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.cs-row-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-row-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

.cs-row-all {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.08));
    border-color: rgba(108, 92, 231, 0.45);
    margin-bottom: 6px;
}
.cs-row-all .cs-row-name { color: var(--primary-light); font-weight: 700; }
.cs-row-all-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}
.filter-tag svg { flex-shrink: 0; }

/* ─── Filter Panel (bottom sheet) ─── */
.fp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}
.fp-overlay.open { opacity: 1; pointer-events: all; }

.fp-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
    z-index: 1101;
    max-height: min(88dvh, 88vh);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
}
.fp-sheet.open { transform: translateY(0); }

.fp-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

.fp-header {
    display: flex;
    align-items: center;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    gap: 8px;
}
.fp-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.fp-reset-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color var(--transition);
}
.fp-reset-btn:hover { color: var(--primary); }
.fp-close-btn {
    background: var(--bg-card);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.fp-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
}
.fp-body::-webkit-scrollbar { display: none; }

.fp-section {
    padding: 12px 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}
.fp-section:last-child { border-bottom: none; }

.fp-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.fp-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition);
}
.fp-category-row:active { background: var(--bg-elevated); }
#fpCategoryText { flex: 1; text-align: left; }

.fp-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp-chip {
    padding: 8px 12px;
    border-radius: var(--radius-xl);
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    white-space: nowrap;
}
.fp-chip:hover { background: var(--bg-elevated); color: var(--text-primary); }
.fp-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(108,92,231,0.35);
}

.fp-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.fp-price-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    transition: border-color var(--transition);
}
.fp-price-field:focus-within { border-color: var(--primary); }
.fp-price-lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}
.fp-price-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
}
.fp-price-input::placeholder { color: var(--text-muted); }
.fp-price-sep {
    width: 16px;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    flex-shrink: 0;
}

.fp-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.fp-apply-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: opacity var(--transition);
}
.fp-apply-btn:active { opacity: 0.85; }

/* ═══════════════════════════════════════════════════════════════
   PAGES
   ═══════════════════════════════════════════════════════════════ */

.page {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    scrollbar-width: thin;
    scrollbar-color: var(--bg-elevated) transparent;
}

.page.active {
    display: flex;
    flex-direction: column;
}

.page-title-bar {
    padding: 16px;
    flex-shrink: 0;
}

.page-title-bar h2 {
    font-size: 20px;
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════
   LISTINGS GRID (Wildberries-style)
   ═══════════════════════════════════════════════════════════════ */

.listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px 16px;
}

.listing-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--spring), box-shadow var(--transition);
    cursor: pointer;
    position: relative;
    animation: cardFadeIn 0.4s ease forwards;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.listing-card:active {
    transform: scale(0.97) translateZ(-5px);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%;
    background: var(--bg-elevated);
    overflow: hidden;
}

.card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
}

.listing-card:hover .card-image {
    transform: scale(1.04);
}

.card-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2;
}

.card-fav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.card-fav-btn.active {
    background: var(--accent);
}

.card-fav-btn svg {
    width: 16px;
    height: 16px;
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.card-badge.new {
    background: var(--success);
    color: var(--text-inverse);
}

.card-badge.used {
    background: var(--warning);
    color: var(--text-inverse);
}

.card-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.card-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-price.free {
    background: linear-gradient(135deg, #00D2A0 0%, #00f5b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-price.negotiable {
    background: linear-gradient(135deg, #FDCB6E 0%, #f5a623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.card-meta svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.card-city {
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 8px 0;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    color: white;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.card-cart-btn:active {
    transform: scale(0.95);
    opacity: 0.85;
}

.card-cart-btn svg {
    width: 14px;
    height: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   LISTING DETAIL PAGE
   ═══════════════════════════════════════════════════════════════ */

.detail-content {
    padding-bottom: 90px;
}

.detail-gallery {
    width: 100%;
    height: 320px;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.detail-gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
    height: 100%;
}

.detail-gallery-scroll::-webkit-scrollbar { display: none; }

.detail-gallery-scroll img,
.detail-gallery-scroll video {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.detail-gallery-scroll video {
    object-fit: contain;
    background: #000;
}

.detail-gallery img,
.detail-gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
}

.detail-photo-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.detail-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: white;
    transition: all var(--transition);
}

.detail-back-btn:active {
    transform: scale(0.9);
}

.detail-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: white;
    transition: all var(--transition);
}

.detail-fav-btn.active {
    background: var(--accent);
}

.detail-info {
    padding: 16px;
}

.detail-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.detail-price {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-price.free {
    background: linear-gradient(135deg, #00D2A0, #00f5b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-price.negotiable {
    background: linear-gradient(135deg, #FDCB6E, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.detail-tag {
    padding: 5px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.detail-tag.tag-new {
    background: rgba(0, 210, 160, 0.15);
    color: var(--success);
    border-color: rgba(0, 210, 160, 0.3);
}

.detail-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.detail-stat {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
    white-space: pre-wrap;
    padding: 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.detail-seller {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin: 0 16px 12px;
    border: 1px solid var(--border);
}

.detail-seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.detail-seller-info { flex: 1; }

.detail-seller-name {
    font-weight: 600;
    font-size: 15px;
}

.detail-seller-rating {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.detail-actions-sticky {
    position: fixed;
    bottom: 12px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    box-shadow:
        0 -4px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(108, 92, 231, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 20;
    animation: detailActionsSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes detailActionsSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.btn-primary-gradient {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--spring);
    border: none;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
}

.btn-primary-gradient:active { transform: scale(0.93); }

.btn-cart-gradient {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--spring);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cart-gradient:active { transform: scale(0.93); }

.btn-call-gradient {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00D2A0 0%, #00A37C 100%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--spring);
    border: none;
    box-shadow: 0 4px 16px rgba(0, 210, 160, 0.35);
    text-decoration: none;
}

.btn-call-gradient:active { transform: scale(0.93); }

/* ═══════════════════════════════════════════════════════════════
   CHATS LIST
   ═══════════════════════════════════════════════════════════════ */

.chats-list {
    padding: 0 12px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: background var(--transition);
}

.chat-item:hover,
.chat-item:active {
    background: var(--bg-elevated);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    color: white;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.chat-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-last-msg {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.chat-unread {
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    margin-left: 8px;
    flex-shrink: 0;
}



/* ─── Chat Item Enhanced ─── */
.chat-item-listing-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    margin-left: auto;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.chat-item .chat-read-indicator {
    color: var(--primary-light);
    font-size: 11px;
    margin-right: 3px;
}

.chat-item .chat-read-indicator.unread {
    color: var(--text-muted);
}

/* ─── Conversation Header ─── */
.chat-conv-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-conv-back {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.chat-conv-back:active {
    background: var(--bg-elevated);
}

.chat-conv-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
    position: relative;
}

.chat-conv-avatar .online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 6px rgba(0, 210, 160, 0.5);
}

.chat-conv-info {
    flex: 1;
    min-width: 0;
}

.chat-conv-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conv-status {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.chat-conv-status.offline {
    color: var(--text-muted);
}

/* ─── Listing Card Banner ─── */
.chat-listing-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.chat-listing-banner-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.chat-listing-banner-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.chat-listing-banner-info {
    flex: 1;
    min-width: 0;
}

.chat-listing-banner-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-listing-banner-price {
    font-size: 14px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-listing-banner-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ─── Date Separator ─── */
.msg-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 6px;
    user-select: none;
}

.msg-date-divider span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
}

/* ─── Message Bubble (Telegram-style) ─── */
.msg-bubble {
    max-width: 78%;
    width: fit-content;
    padding: 6px 10px 5px;
    border-radius: 18px;
    font-size: 14.5px;
    line-height: 1.4;
    animation: msgSlide 0.2s ease;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

@keyframes msgSlide {
    from { opacity: 0; transform: translateY(4px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.msg-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #7c6cf0 0%, #6c5ce7 100%);
    color: white;
    border-bottom-right-radius: 6px;
    box-shadow: 0 1px 3px rgba(108, 92, 231, 0.25);
}

.msg-bubble.received {
    align-self: flex-start;
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.msg-text {
    display: inline;
}

/* Inline footer — floats to end of last text line */
.msg-footer {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: right;
    margin: 3px 0 -3px 10px;
    position: relative;
    top: 3px;
    white-space: nowrap;
}

.msg-time {
    font-size: 10px;
    opacity: 0.6;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.msg-status {
    display: inline-flex;
    font-size: 11px;
    line-height: 1;
}

.msg-status.read {
    color: #7dd3fc;
    opacity: 1;
}

.msg-status.delivered {
    opacity: 0.6;
}

/* Hide sender name in 1-on-1 chats — redundant */
.msg-sender-name {
    display: none;
}

/* ─── Edited indicator ─── */
.msg-edited {
    font-size: 10px;
    opacity: 0.5;
    font-style: italic;
    margin-right: 2px;
}

/* ─── Media in messages ─── */
.msg-media {
    border-radius: 12px;
    overflow: hidden;
    margin: 0 -4px 4px;
}

.msg-media img, .msg-media video {
    width: 100%;
    max-width: 260px;
    max-height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    cursor: pointer;
}

.msg-media-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}

.msg-media-file-icon {
    font-size: 22px;
}

/* ─── Attach button ─── */
.chat-attach-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
    border: none;
}

.chat-attach-btn:active {
    color: var(--primary-light);
}

/* ─── Message Context Menu ─── */
.msg-context-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.15s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.msg-context-menu {
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 420px;
    padding: 8px 0;
    animation: slideUp 0.2s ease;
    border-top: 1px solid var(--border);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.msg-context-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.msg-context-menu-item:active {
    background: rgba(255,255,255,0.06);
}

.msg-context-menu-item .ctx-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.msg-context-menu-item.danger {
    color: var(--error);
}

.msg-context-divider {
    height: 1px;
    margin: 4px 16px;
    background: var(--border);
}

/* ─── Chat Full Page Layout ─── */
.chat-full-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 16px;
    scroll-behavior: smooth;
    background: var(--bg-primary);
}

/* ─── Pinned Message Banner ─── */
.chat-pinned-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(108, 92, 231, 0.12);
    border-left: 3px solid var(--primary);
    border-bottom: 1px solid rgba(108, 92, 231, 0.15);
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    z-index: 2;
}

.chat-pinned-banner:active {
    background: rgba(108, 92, 231, 0.22);
}

.pinned-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.pinned-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.pinned-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
}

.pinned-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pinned-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.pinned-close:active {
    background: rgba(255, 107, 107, 0.2);
    color: var(--error);
}

/* ─── Edit Mode Banner ─── */
.chat-edit-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 159, 67, 0.08);
    border-top: 1px solid rgba(255, 159, 67, 0.15);
    flex-shrink: 0;
}

.chat-edit-banner .edit-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-edit-banner .edit-cancel {
    color: var(--error);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border: none;
    background: none;
}/* ─── Input Area ─── */
.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-textarea {
    flex: 1;
    background: rgba(255,255,255,0.06);
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    resize: none;
    max-height: 100px;
    min-height: 38px;
    line-height: 1.35;
    overflow-y: auto;
    transition: border-color 0.2s;
    outline: none;
}

.chat-textarea:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.09);
}

.chat-textarea::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    border: none;
}

.chat-send-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.9);
}

/* ─── Scroll to Bottom FAB ─── */
.chat-scroll-fab {
    position: absolute;
    bottom: 65px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 5;
    transition: all 0.2s;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.chat-scroll-fab.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-scroll-fab:active {
    transform: scale(0.9);
}

.chat-scroll-fab .fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ─── Typing Indicator ─── */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-muted);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ─── Chat Page Layout ─── */
.chat-full-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    background: var(--bg-primary);
}

.chat-full-page .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
}

/* Push messages to bottom when there are few */
.chat-full-page .chat-messages::before {
    content: '';
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE (Premium Redesign)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero Card ─── */
.pro-hero {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.pro-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(108, 92, 231, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 107, 157, 0.3) 0%, transparent 55%),
        linear-gradient(180deg, #1A1A2E 0%, #0F0F1A 100%);
    z-index: 0;
}

.pro-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        );
    animation: heroGridPulse 8s ease-in-out infinite alternate;
}

@keyframes heroGridPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.pro-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 28px;
    text-align: center;
}

/* ─── Avatar ─── */
.pro-avatar-wrap {
    position: relative;
    margin-bottom: 14px;
}

.pro-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(108, 92, 231, 0.35),
        0 0 0 6px rgba(108, 92, 231, 0.12),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    animation: avatarGlow 4s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
    0% { box-shadow: 0 8px 32px rgba(108, 92, 231, 0.35), 0 0 0 6px rgba(108, 92, 231, 0.12); }
    100% { box-shadow: 0 8px 40px rgba(108, 92, 231, 0.5), 0 0 0 8px rgba(108, 92, 231, 0.18); }
}

.pro-avatar-online {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00D2A0;
    border: 3px solid #1A1A2E;
    box-shadow: 0 0 8px rgba(0, 210, 160, 0.6);
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(0, 210, 160, 0.6); }
    50% { transform: scale(1.15); box-shadow: 0 0 16px rgba(0, 210, 160, 0.8); }
}

.pro-name {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.pro-username {
    font-size: 14px;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 4px;
}

.pro-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    margin-top: 4px;
    letter-spacing: 0.03em;
}

.pro-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.pro-edit-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.18);
}

/* ─── Statistics Row ─── */
.pro-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px;
    margin-top: -14px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.pro-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--spring), box-shadow var(--transition);
    transform-style: preserve-3d;
    transform: perspective(600px) translateZ(0);
}

.pro-stat-card:active {
    transform: perspective(600px) scale(0.92) translateZ(-10px) rotateX(3deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pro-stat-icon {
    position: absolute;
    top: -4px;
    right: -2px;
    font-size: 32px;
    opacity: 0.1;
    pointer-events: none;
    color: var(--primary-light);
}

.pro-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pro-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── Sections ─── */
.pro-section {
    margin: 16px 12px 0;
    flex-shrink: 0;
}

.pro-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.pro-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.pro-see-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.pro-see-all:active {
    background: rgba(108, 92, 231, 0.1);
}

/* ─── Personal Info Panel ─── */
.pro-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pro-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: background var(--transition);
}

.pro-info-item:active {
    background: var(--bg-elevated);
}

.pro-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--primary-light);
    transition: transform var(--spring);
}

.pro-info-item:active .pro-info-icon {
    transform: perspective(400px) rotateY(15deg) scale(1.1);
}

.pro-info-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pro-info-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pro-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.pro-info-status {
    color: var(--success);
}

/* ─── Quick Actions Grid ─── */
.pro-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pro-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--spring);
    color: var(--text-primary);
    transform-style: preserve-3d;
    transform: perspective(500px) translateZ(0);
}

.pro-action-card:active {
    transform: perspective(500px) scale(0.9) rotateX(5deg) translateZ(-8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pro-action-card span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

.pro-action-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    transition: transform var(--spring);
    transform-style: preserve-3d;
}

.pro-action-card:active .pro-action-icon-wrap {
    transform: perspective(300px) rotateY(25deg);
    animation: float3d 0.6s ease;
}

.pro-action-blue {
    background: rgba(100, 149, 237, 0.15);
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.1);
    color: #6495ED;
}

.pro-action-purple {
    background: rgba(108, 92, 231, 0.15);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1);
    color: #A29BFE;
}

.pro-action-pink {
    background: rgba(255, 107, 157, 0.15);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.1);
    color: #FF6B9D;
}

.pro-action-green {
    background: rgba(0, 210, 160, 0.15);
    box-shadow: 0 4px 12px rgba(0, 210, 160, 0.1);
    color: #00D2A0;
}

/* ─── Listings Preview (horizontal scroll) ─── */
.pro-listings-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.pro-listings-scroll::-webkit-scrollbar { display: none; }

.pro-listing-mini {
    min-width: 120px;
    max-width: 120px;
    flex-shrink: 0;
    flex-grow: 0;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform var(--spring);
}

.pro-listing-mini:active {
    transform: scale(0.96);
}

.pro-listing-mini-img {
    width: 120px;
    height: 90px;
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.pro-listing-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pro-listing-mini-price {
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-mini-card {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    flex-grow: 0;
    transition: transform var(--spring);
}

.pro-mini-card:active {
    transform: scale(0.96);
}

.pro-mini-card-img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    background: var(--bg-elevated);
    display: block;
}

.pro-mini-card-placeholder {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

.pro-mini-card-body {
    padding: 8px 10px 10px;
}

.pro-mini-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.pro-mini-card-price {
    font-size: 13px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pro-listings-empty {
    width: 100%;
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(108, 92, 231, 0.2);
}

.pro-publish-mini {
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--primary-gradient);
    color: white;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--spring);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.pro-publish-mini:active {
    transform: scale(0.95);
}

/* ─── Orders Preview ─── */
.pro-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pro-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
}

.pro-order-item:active {
    background: var(--bg-elevated);
}

.pro-order-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(108, 92, 231, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pro-order-info {
    flex: 1;
    min-width: 0;
}

.pro-order-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-order-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.pro-order-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-light);
    flex-shrink: 0;
}

.pro-order-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.pro-order-status.pending {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}

.pro-order-status.completed {
    background: rgba(0, 210, 160, 0.15);
    color: var(--success);
}

.pro-order-status.cancelled {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
}

/* ─── Simple Profile Menu ─── */
.pro-simple-menu {
    margin: 16px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pro-menu-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition), transform 0.1s;
    text-align: left;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.pro-menu-row:active {
    background: var(--bg-elevated);
    transform: scale(0.98);
}

.pro-menu-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.pro-menu-row-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.pro-menu-row-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ─── Stats Subpage Card ─── */
.stats-row-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* ─── My Data Subpage ─── */
.my-data-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.my-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.my-data-row:last-child {
    border-bottom: none;
}

.my-data-lbl {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.my-data-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    margin-left: 12px;
}

/* ─── Review Cards (profile subpage) ─── */
.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-card-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.review-card-stars {
    font-size: 15px;
    color: #f9ca24;
    letter-spacing: 1px;
}

.review-card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.review-card-reply {
    background: rgba(108, 92, 231, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-card-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED CAROUSEL
   ═══════════════════════════════════════════════════════════════ */

.featured-carousel {
    padding: 12px 0 8px;
    flex-shrink: 0;
}

.featured-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 0 14px;
}

.featured-badge {
    font-size: 18px;
    animation: firePulse 1.5s ease-in-out infinite;
    color: #FF6B2C;
}

@keyframes firePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.featured-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.featured-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-padding-left: 14px;
}

.featured-track::-webkit-scrollbar { display: none; }

.featured-card {
    min-width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    min-height: 220px;
    height: 220px;
    margin-left: 14px;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    cursor: pointer;
    transition: transform var(--spring), box-shadow 0.3s ease;
    flex-shrink: 0;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1.5px rgba(108, 92, 231, 0.25);
}

.featured-card:last-child {
    margin-right: 14px;
}

/* ::before with inset:-1.5px was paired with a transparent border — both
   removed. Glow ring is now purely the box-shadow on .featured-card. */

.featured-card:active {
    transform: scale(0.96);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.featured-card-img {
    /* Fill the card body completely. position:absolute + inset:0 plus
       explicit min-/max- dimensions defeats any iOS Safari <video> quirks
       where the element would otherwise size to its intrinsic dimensions. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
}

.featured-card-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
}

.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Tags row */
.featured-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.featured-tag {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 3px;
}

.featured-tag-new {
    background: rgba(0, 210, 160, 0.2);
    color: #00f5b8;
}

.featured-card-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.featured-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.featured-card-price {
    font-size: 18px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-card-seller {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.featured-seller-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dots */
.featured-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.featured-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--text-muted);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.featured-dot.active {
    width: 22px;
    background: var(--primary);
    opacity: 1;
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.4);
}

.section-label {
    padding: 8px 16px 4px;
    flex-shrink: 0;
}

.section-label span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION (Floating Cloud)
   ═══════════════════════════════════════════════════════════════ */

.bottom-nav {
    display: flex;
    align-items: center;
    height: 68px;
    margin: 0 10px 8px;
    margin-bottom: calc(8px + var(--safe-bottom));
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    border: 1px solid rgba(108, 92, 231, 0.15);
    box-shadow:
        0 -4px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(108, 92, 231, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    padding: 0 4px;
}

.nav-pill {
    position: absolute;
    top: 6px;
    height: 3px;
    width: 40px;
    border-radius: 2px;
    background: var(--primary-gradient);
    transition: left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding: 8px 0;
    -webkit-tap-highlight-color: transparent;
}

.nav-tab span:not(.nav-badge) {
    font-size: 10px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.nav-tab svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tab.active {
    color: var(--primary-light);
}

.nav-tab.active svg {
    transform: scale(1.15);
}

.nav-tab:active:not(.nav-tab-publish) {
    transform: scale(0.88);
}

/* Publish FAB button */
.nav-tab-publish {
    flex: 0 0 56px;
    height: 56px;
    padding: 0;
    margin-top: -16px;
}

.nav-publish-ring {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(108, 92, 231, 0.45),
        0 0 24px rgba(108, 92, 231, 0.2);
    transition: all var(--spring);
    position: relative;
}

.nav-publish-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-full);
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary-light), var(--primary));
    z-index: -1;
    opacity: 0.6;
    animation: ringRotate 3s linear infinite;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

.nav-tab-publish:active .nav-publish-ring {
    transform: scale(0.88) rotate(90deg);
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(calc(50% + 10px));
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    from { transform: translateX(calc(50% + 10px)) scale(0); }
    to { transform: translateX(calc(50% + 10px)) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════
   SUBPAGE (back + title header)
   ═══════════════════════════════════════════════════════════════ */

.subpage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
}

.back-btn:hover {
    background: var(--bg-elevated);
}

.subpage-header h2 {
    font-size: 17px;
    font-weight: 700;
}

.subpage-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

/* When subpage contains a chat, remove padding and let chat manage scroll */
.subpage-content:has(.chat-full-page) {
    padding: 0;
    overflow: hidden;
}

/* Remove page-level padding when chat is active */
#pageSubpage:has(.chat-full-page) {
    padding-bottom: 0;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-height: 85vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-fullscreen {
    max-height: 95vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition);
}

.modal-close:hover {
    background: var(--bg-elevated);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    padding-bottom: 32px;
}

/* ─── City selector ─── */

.city-search {
    margin-bottom: 12px;
}

.city-search input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.city-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city-option {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition);
}

.city-option:hover {
    background: var(--bg-elevated);
}

.city-option.active {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
}

/* ─── Filters ─── */

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    appearance: none;
}

.filter-chips {
    display: flex;
    gap: 8px;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

.publish-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group-half {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn-primary {
    padding: 14px 24px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--spring), box-shadow var(--transition);
    text-align: center;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    padding: 14px 24px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform var(--spring), background var(--transition);
    text-align: center;
}

.btn-secondary:active {
    transform: scale(0.97);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-danger {
    background: var(--accent-gradient);
}

/* ═══════════════════════════════════════════════════════════════
   LOADING & EMPTY STATES
   ═══════════════════════════════════════════════════════════════ */

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 32px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   SUBPAGE LIST ITEMS
   ═══════════════════════════════════════════════════════════════ */

.listing-list-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
}

.listing-list-item:active {
    background: var(--bg-elevated);
}

.listing-list-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.listing-list-thumb img,
.listing-list-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-list-info {
    flex: 1;
    min-width: 0;
}

.listing-list-price {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
}

.listing-list-title {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-list-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.listing-list-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.listing-list-actions button {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.listing-list-actions button:hover {
    background: var(--bg-elevated);
}

.listing-list-actions .remove-btn {
    color: var(--error);
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 1100;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90vw;
    text-align: center;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE GRID
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 480px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   MEDIA UPLOAD
   ═══════════════════════════════════════════════════════════════ */

.media-counter-label {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

.media-upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(108, 92, 231, 0.03);
    border: 2px dashed rgba(108, 92, 231, 0.15);
    min-height: 96px;
    align-items: flex-start;
    transition: border-color var(--transition), background var(--transition);
}

.media-upload-area:hover {
    border-color: rgba(108, 92, 231, 0.3);
    background: rgba(108, 92, 231, 0.05);
}

.media-previews {
    display: contents;
}

.media-preview-item {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
    flex-shrink: 0;
    animation: mediaFadeIn 0.3s ease forwards;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

@keyframes mediaFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.media-remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
}

.media-remove-btn:hover {
    background: var(--error);
    transform: scale(1.15);
}

.media-add-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: var(--radius-sm);
    border: 2px dashed rgba(108, 92, 231, 0.35);
    background: rgba(108, 92, 231, 0.06);
    color: var(--primary-light);
    cursor: pointer;
    transition: all var(--transition);
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.media-add-btn:active {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
    transform: scale(0.95);
}

.media-add-btn svg {
    opacity: 0.7;
}

.media-gif-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(0, 210, 160, 0.85);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY PICKER
   ═══════════════════════════════════════════════════════════════ */

.category-picker-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 48px;
}

.category-picker-field:active {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.category-picker-field.selected {
    border-color: var(--border-active);
    background: rgba(108, 92, 231, 0.06);
}

.cpf-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.cpf-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-picker-field.selected .cpf-text {
    color: var(--text-primary);
    font-weight: 500;
}

.cpf-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.category-picker-field:active .cpf-arrow {
    transform: translateX(3px);
}

/* Category picker modal */
.cat-picker-back-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: background var(--transition);
    flex-shrink: 0;
}

.cat-picker-back-btn:active {
    background: var(--bg-elevated);
}

.category-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 4px 0 20px;
}

.category-picker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 8px 14px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--spring);
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-height: 96px;
}

.category-picker-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.category-picker-card:active {
    transform: scale(0.94);
}

.category-picker-card:active::before,
.category-picker-card.selected::before {
    opacity: 0.12;
}

.category-picker-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(108, 92, 231, 0.2);
}

.cpc-icon {
    font-size: 30px;
    line-height: 1;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cpc-name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.2;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-picker-card.selected .cpc-name {
    color: var(--primary-light);
}

.cpc-arrow {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING CLOUD BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.bottom-nav {
    position: fixed;
    bottom: 8px; /* JS will override this for Telegram */
    left: 10px;
    right: 10px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 64px;
    background: rgba(22, 22, 44, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 22px;
    border: 1px solid rgba(108, 92, 231, 0.15);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(108, 92, 231, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 0 6px;
}

/* Active tab indicator pill (animated) */
.nav-pill {
    display: none;
}

/* Tab buttons */
.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 0;
    flex: 1;
    max-width: 72px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    background: none;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-tab svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tab span {
    font-size: 10px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

/* Active state */
.nav-tab.active {
    color: var(--primary-light);
}

.nav-tab.active svg {
    transform: scale(1.1) translateY(-1px);
    filter: drop-shadow(0 0 6px rgba(108, 92, 231, 0.5));
}

.nav-tab.active span {
    color: var(--primary-light);
    font-weight: 700;
}

/* Tap effect */
.nav-tab:active:not(.nav-tab-publish) {
    transform: scale(0.85);
}

/* Badge */
.nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(14px);
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: translateX(14px) scale(1); }
    50% { transform: translateX(14px) scale(1.15); }
}

/* ─── Central Publish Button ─── */
.nav-tab-publish {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    max-width: 52px;
    margin: 0 4px;
    padding: 0;
    position: relative;
    top: -14px;
}

.nav-publish-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(108, 92, 231, 0.5),
        0 0 24px rgba(108, 92, 231, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.nav-publish-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(108, 92, 231, 0.3);
    animation: publishRingPulse 2.5s ease-in-out infinite;
}

@keyframes publishRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.12); opacity: 0; }
}

.nav-tab-publish:active .nav-publish-ring {
    transform: scale(0.85) rotate(90deg);
    box-shadow:
        0 2px 8px rgba(108, 92, 231, 0.3),
        0 0 16px rgba(108, 92, 231, 0.15);
}

.nav-publish-ring svg {
    width: 24px;
    height: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   APPLE-STYLE CONTEXT MENU
   ═══════════════════════════════════════════════════════════════ */

.ctx-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.01);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transition: opacity 0.2s ease, backdrop-filter 0.3s ease, background 0.3s ease;
}

.ctx-overlay.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.ctx-sheet {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(100%) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ctx-overlay.active .ctx-sheet {
    transform: translateY(0) scale(1);
}

.ctx-preview {
    padding: 12px;
    display: flex;
    justify-content: flex-end;
}

.ctx-preview-bubble {
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: 18px 18px 4px 18px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 240px;
    word-break: break-word;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.ctx-actions-group {
    background: rgba(40, 40, 58, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.ctx-action {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.ctx-action:active {
    background: rgba(255, 255, 255, 0.08);
}

.ctx-danger {
    color: #FF453A;
}

.ctx-action-icon {
    font-size: 20px;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.ctx-sep {
    height: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 18px;
}

.ctx-cancel-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(40, 40, 58, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ctx-cancel-btn:active {
    background: rgba(60, 60, 80, 0.95);
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════════ */

.checkout-page {
    padding: 12px;
    padding-bottom: 200px;
}

.checkout-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 12px;
    animation: cardFadeIn 0.3s ease forwards;
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.checkout-section-title svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-price {
    font-size: 14px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 2px;
}

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

.checkout-field:last-child {
    margin-bottom: 0;
}

.checkout-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
    color: var(--text-muted);
}

.checkout-field textarea {
    resize: vertical;
    min-height: 60px;
}

.checkout-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.checkout-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.checkout-chip:active {
    transform: scale(0.96);
}

.checkout-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.checkout-chip svg {
    flex-shrink: 0;
}

.checkout-total-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 53, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    z-index: 100;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkout-total-price {
    font-size: 20px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.checkout-submit-btn {
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.checkout-submit-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.checkout-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── Checkout Success ─── */

.checkout-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    animation: cardFadeIn 0.4s ease forwards;
}

.checkout-success-icon {
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   ORDER CARDS
   ═══════════════════════════════════════════════════════════════ */

.order-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 14px;
    margin: 8px 12px;
    animation: cardFadeIn 0.3s ease forwards;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-card-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.order-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.order-card-body {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.order-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.order-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-card-info {
    flex: 1;
    min-width: 0;
}

.order-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card-price {
    font-size: 16px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 2px;
}

.order-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-card-companion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}

.order-companion-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.order-card-comment {
    padding: 8px 10px;
    margin-top: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.order-action-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.order-action-btn:active {
    transform: scale(0.96);
}

.order-action-btn.confirm {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
}

.order-action-btn.cancel {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.order-action-btn.cancel:active {
    background: rgba(239, 68, 68, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   REVIEWS SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* ─── Star Rating Picker (Modal) ─── */
.review-stars-container {
    text-align: center;
    padding: 20px 0;
}

.review-stars {
    display: inline-flex;
    gap: 8px;
}

.review-star {
    font-size: 38px;
    color: var(--bg-elevated);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-text-stroke: 1px var(--text-muted);
    filter: grayscale(1);
}

.review-star.active {
    color: #FDCB6E;
    -webkit-text-stroke: none;
    filter: none;
    animation: starPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-star:active {
    transform: scale(1.2);
}

@keyframes starPop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.review-stars-label {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ─── Review Order Preview ─── */
.review-order-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.review-order-preview-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.review-order-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-order-preview-info {
    flex: 1;
    min-width: 0;
}

.review-order-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-order-preview-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ─── Comment Area ─── */
.review-comment-wrap {
    position: relative;
    margin-bottom: 16px;
}

.review-comment-wrap textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color var(--transition);
}

.review-comment-wrap textarea:focus {
    border-color: var(--primary);
}

.review-comment-wrap textarea::placeholder {
    color: var(--text-muted);
}

.review-char-count {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Submit Button ─── */
.review-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all var(--transition);
}

.review-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Review Card ─── */
.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 10px;
    animation: cardFadeIn 0.3s ease forwards;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.review-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-info {
    flex: 1;
    min-width: 0;
}

.review-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.review-card-date {
    font-size: 11px;
    color: var(--text-muted);
}

.review-card-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.review-card-stars .star {
    font-size: 14px;
    color: #FDCB6E;
}

.review-card-stars .star.empty {
    color: var(--bg-elevated);
    -webkit-text-stroke: 1px var(--text-muted);
    filter: grayscale(1);
}

.review-card-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.review-card-listing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-input);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.review-card-edited {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}

/* ─── Seller Reply Block ─── */
.review-reply {
    margin-top: 12px;
    padding: 12px;
    background: rgba(108, 92, 231, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.review-reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.review-reply-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.review-reply-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Reply Preview in Modal ─── */
.review-reply-preview {
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.review-reply-preview .reply-stars {
    color: #FDCB6E;
    font-size: 14px;
    margin-bottom: 6px;
}

.review-reply-preview .reply-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.review-reply-preview .reply-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* ─── Rating Distribution (Progress Bars) ─── */
.rating-summary {
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 12px;
}

.rating-summary-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.rating-summary-big {
    text-align: center;
}

.rating-summary-number {
    font-size: 40px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.rating-summary-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 4px;
}

.rating-summary-stars .star {
    font-size: 16px;
    color: #FDCB6E;
}

.rating-summary-stars .star.empty {
    color: var(--bg-elevated);
}

.rating-summary-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.rating-bars {
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.rating-bar-row:last-child {
    margin-bottom: 0;
}

.rating-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    width: 16px;
    text-align: right;
    flex-shrink: 0;
}

.rating-bar-label .star-icon {
    font-size: 10px;
    color: #FDCB6E;
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FDCB6E, #f5a623);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.rating-bar-count {
    font-size: 11px;
    color: var(--text-muted);
    width: 24px;
    text-align: left;
    flex-shrink: 0;
}

/* ─── Review Button on Order Card ─── */
.order-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    background: linear-gradient(135deg, #FDCB6E 0%, #f5a623 100%);
    color: #1a1a2e;
    box-shadow: 0 2px 12px rgba(253, 203, 110, 0.3);
}

.order-review-btn:active {
    transform: scale(0.97);
}

.order-review-btn.reviewed {
    background: var(--bg-input);
    color: #FDCB6E;
    box-shadow: none;
    border: 1px solid rgba(253, 203, 110, 0.3);
    cursor: default;
}

/* ─── Seller Reply Button ─── */
.review-card-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(108, 92, 231, 0.3);
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 8px;
}

.review-card-reply-btn:active {
    transform: scale(0.95);
}

/* ─── Reviews Section in Detail Page ─── */
.detail-reviews-section {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.detail-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.detail-reviews-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-reviews-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
}


/* ═══════════════════════════════════════════════════════════════
   MAP & DISTANCE FEATURES
   ═══════════════════════════════════════════════════════════════ */

/* Map Toggle Button in Section Label */
.section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ═══════════════════════════════════════════════════════════════
   BOOST / ADVERTISING SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* "Купить рекламу" button highlight */
.pro-menu-row-ads {
    background: linear-gradient(90deg, rgba(255,107,157,0.08) 0%, transparent 100%);
    border: 1px solid rgba(255, 107, 157, 0.2);
}
.pro-menu-row-ads:hover,
.pro-menu-row-ads:active {
    background: linear-gradient(90deg, rgba(255,107,157,0.16) 0%, transparent 100%);
    border-color: rgba(255, 107, 157, 0.4);
}

/* Ad type cards */
.ad-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}
.ad-type-card--active {
    border-color: rgba(255, 107, 157, 0.35);
    cursor: pointer;
}
.ad-type-card--active:active {
    transform: scale(0.98);
    background: var(--bg-elevated);
}
.ad-type-card--soon {
    opacity: 0.55;
    cursor: default;
}
.ad-type-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ad-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.ad-type-info {
    flex: 1;
    min-width: 0;
}
.ad-type-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.ad-type-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.ad-type-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}
.ad-type-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ad-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.ad-type-badge--green {
    background: rgba(0, 210, 160, 0.15);
    color: #00D2A0;
}
.ad-type-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(150, 150, 180, 0.15);
    color: var(--text-muted);
    margin-left: auto;
}

/* Boost: listing selection row */
.boost-listing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.boost-listing-row:active {
    transform: scale(0.98);
    background: var(--bg-elevated);
}
.boost-listing-photo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
}
.boost-listing-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.boost-listing-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.boost-listing-info {
    flex: 1;
    min-width: 0;
}
.boost-listing-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.boost-listing-price {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}
.boost-active-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 107, 157, 0.15);
    color: #FF6B9D;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Boost: duration picker */
.boost-days-selector {
    display: flex;
    gap: 8px;
}
.boost-day-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.boost-day-btn--active {
    background: rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.5);
    color: #FF6B9D;
}
.boost-day-btn:active {
    transform: scale(0.96);
}

/* Boost: amount input */
.boost-amount-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.boost-amount-input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    -moz-appearance: textfield;
}
.boost-amount-input::-webkit-outer-spin-button,
.boost-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.boost-amount-input:focus {
    border-color: rgba(255, 107, 157, 0.5);
}
.boost-amount-currency {
    position: absolute;
    right: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

/* Boost: preview card */
.boost-preview-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
    flex-direction: column;
    gap: 10px;
}
.boost-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.boost-preview-lbl {
    font-size: 13px;
    color: var(--text-muted);
}
.boost-preview-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.boost-preview-val--pos {
    font-size: 20px;
    color: #FF6B9D;
}

/* Boost: confirm button */
.boost-confirm-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Boost: success screen stats */
.boost-success-stats {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}
.boost-success-stat {
    flex: 1;
    background: var(--bg-elevated);
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
}
.boost-success-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: #FF6B9D;
    line-height: 1;
}
.boost-success-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Boost: payment waiting pulse animation */
@keyframes boostPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.1); opacity: 0.7; }
}

/* Boosted listing badge in catalog card */
.card-boost-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255,107,157,0.2), rgba(196,69,105,0.2));
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: #FF6B9D;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
