.availability-planner h4 {
    margin: 0.25rem 0 0.75rem;
    color: #444;
}

.personal-section h4 {
    margin: 0.25rem 0 0.75rem;
    color: #444;
}

.personal-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.personal-row label {
    font-weight: 600;
    color: #555;
}

.personal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Marketplace Styles */
.marketplace-filters {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.filter-panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.filter-panel-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}
.filter-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0 0 0.2rem;
}
.filter-search-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
}
.filter-search-bar i {
    color: #64748b;
}
.filter-search-bar input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.95rem;
    color: #0f172a;
    flex: 1;
    min-width: 0;
}
.filter-search-bar input::placeholder {
    color: #94a3b8;
}
.filter-search-bar input:focus {
    outline: none;
}

.ai-search-btn {
    border: 1px solid #1d4ed8;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.32rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}
.ai-search-btn:hover {
    background: #1d4ed8;
}
.ai-search-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}
.filter-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}
.filter-panel-grid.narrow {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.filter-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.filter-item label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0;
}

.filter-item .filter-select,
.filter-item .filter-input {
    border-radius: 10px;
    border: 1px solid #d7dde7;
    background: #fff;
    color: #0f172a;
}

.filter-item .filter-select:focus,
.filter-item .filter-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.price-filter-item .price-row {
    background: #fff;
    border: 1px solid #d7dde7;
}

.filter-actions-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.filter-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.25);
}
.filter-apply i { font-size: 0.9rem; }
.advanced-toggle {
    border: none;
    background: none;
    padding: 0.35rem 0.2rem;
    font-weight: 600;
    color: #475569;
}
.advanced-toggle:hover {
    color: #2563eb;
}
.filter-advanced {
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}
.market-upload-section { display: flex; flex-direction: column; gap: 0.5rem; }
.market-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.85rem;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.market-dropzone.drag-active { border-color: #2563eb; background: #eef2ff; }
.market-upload-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
}
.market-upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.market-upload-chip {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.market-upload-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.market-upload-primary {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.98);
    background: rgba(2, 6, 23, 0.62);
    border: 1px solid rgba(226, 232, 240, 0.22);
    pointer-events: none;
}
.market-upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}
.market-upload-empty { margin: 0; color: #6b7280; }
.market-upload-note { margin: 0; color: #6b7280; font-size: 0.9rem; }
.market-story-preview {
    width: 100%;
    max-height: 240px;
    border-radius: 16px;
    background: #0b1020;
    margin-top: 0.75rem;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
    object-fit: cover;
    display: block;
}
.market-story-status {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    font-weight: 650;
    color: rgba(15, 23, 42, 0.72);
}
.market-story-status.error { color: rgba(185, 28, 28, 0.95); }

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.marketplace-filters .price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
    border: 1px dashed #cbd5f5;
}
.marketplace-filters .price-row .filter-input {
    min-width: 0;
}

@media (max-width: 480px) {
    .marketplace-filters .price-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .marketplace-filters .price-row .dash {
        display: none;
    }
    .filter-panel-grid {
        grid-template-columns: 1fr;
    }
    .filter-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
}
.filter-group-inline {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
}
.filter-group-inline .small-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.25rem;
}

.filter-select,
.filter-input {
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #667eea;
}

.marketplace-feed {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#clothing-content {
    --sneaker-green: #22c55e;
    --sneaker-black: #0b0f1a;
    --sneaker-ink: #111827;
    --sneaker-cream: #f8fafc;
    --sneaker-muted: rgba(15, 23, 42, 0.68);
}

.clothing-header .app-header-title h2 {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: "Space Grotesk", "Fraunces", Georgia, "Times New Roman", Times, serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.clothing-header .app-header-subtitle {
    color: rgba(15, 23, 42, 0.75);
    font-weight: 600;
}

.clothing-hero {
    margin: 1rem 0 1.25rem;
    padding: 1.6rem 1.75rem;
    border-radius: 22px;
    background: var(--sneaker-black);
    color: var(--sneaker-cream);
    border: 1px solid rgba(34, 197, 94, 0.28);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.5rem;
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.4);
}

.clothing-hero::before {
    content: "";
    position: absolute;
    inset: -50% 0 auto;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.32), transparent 58%),
        radial-gradient(circle at 85% 5%, rgba(248, 250, 252, 0.12), transparent 45%);
    opacity: 0.9;
    pointer-events: none;
}

.clothing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(34, 197, 94, 0.14) 0%, transparent 55%);
    pointer-events: none;
}

.clothing-hero-main,
.clothing-hero-metrics {
    position: relative;
    z-index: 1;
}

.clothing-hero-label {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(187, 247, 208, 0.85);
}

.clothing-hero h3 {
    margin: 0 0 0.45rem;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
    font-family: "Space Grotesk", "Fraunces", Georgia, "Times New Roman", Times, serif;
}

.clothing-hero-sub {
    margin: 0 0 1rem;
    color: rgba(226, 232, 240, 0.82);
    font-weight: 500;
    max-width: 420px;
}

.clothing-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.clothing-hero-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.32);
    color: rgba(187, 247, 208, 0.95);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.clothing-hero-metrics {
    display: grid;
    gap: 0.75rem;
}

.clothing-metric-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.25rem;
}

.clothing-metric-card .metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.8);
    font-weight: 700;
}

.clothing-metric-card .metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
}

.clothing-metric-card .metric-sub {
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.7);
    font-weight: 500;
}

.clothing-categories {
    margin: 1rem 0 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.clothing-categories::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.05) 0, rgba(15, 23, 42, 0.05) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.04) 0, rgba(15, 23, 42, 0.04) 1px, transparent 1px, transparent 24px);
    opacity: 0.45;
    pointer-events: none;
}

.clothing-categories::after {
    content: none;
}

.clothing-categories-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.clothing-kicker {
    margin: 0 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--sneaker-green);
}

.clothing-categories-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sneaker-black);
    font-family: "Space Grotesk", "Fraunces", Georgia, "Times New Roman", Times, serif;
}

.clothing-note {
    color: rgba(15, 23, 42, 0.6);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.clothing-category-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
}

.clothing-category-card {
    --accent: #22c55e;
    --accent-2: rgba(34, 197, 94, 0.1);
    --accent-glow: rgba(34, 197, 94, 0.35);
    --accent-ring: rgba(34, 197, 94, 0.2);
    --accent-soft: rgba(34, 197, 94, 0.12);
    position: relative;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: var(--sneaker-black);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
}

.clothing-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.clothing-category-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--accent);
    opacity: 0.9;
}

.clothing-category-card.is-active {
    border-color: var(--accent);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
    transform: translateY(-3px);
}

.clothing-category-card.is-active::before {
    opacity: 1;
}

.clothing-category-card:hover,
.clothing-category-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent-glow);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.clothing-category-card:hover::before,
.clothing-category-card:focus-visible::before { opacity: 1; }

.clothing-category-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-ring), 0 18px 36px rgba(15, 23, 42, 0.18);
}

.clothing-category-card.is-used {
    --accent: #64748b;
    --accent-2: rgba(100, 116, 139, 0.12);
    --accent-glow: rgba(100, 116, 139, 0.35);
    --accent-ring: rgba(100, 116, 139, 0.2);
    --accent-soft: rgba(100, 116, 139, 0.16);
}

.clothing-category-card.is-free {
    --accent: #0ea5e9;
    --accent-2: rgba(14, 165, 233, 0.12);
    --accent-glow: rgba(14, 165, 233, 0.35);
    --accent-ring: rgba(14, 165, 233, 0.2);
    --accent-soft: rgba(14, 165, 233, 0.16);
}

.clothing-category-card.is-bidding {
    --accent: #f59e0b;
    --accent-2: rgba(245, 158, 11, 0.12);
    --accent-glow: rgba(245, 158, 11, 0.35);
    --accent-ring: rgba(245, 158, 11, 0.2);
    --accent-soft: rgba(245, 158, 11, 0.16);
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--accent);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 1.05rem;
    box-shadow: 0 10px 24px var(--accent-glow);
    flex: 0 0 auto;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.clothing-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1.1rem;
}

.jobs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1.1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(148, 210, 255, 0.18), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(94, 234, 212, 0.18), transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.12), transparent 50%),
        linear-gradient(135deg, rgba(6, 10, 22, 0.98), rgba(10, 18, 36, 0.94));
    border: 1px solid rgba(148, 210, 255, 0.22);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.jobs-header {
    align-items: center;
}

.jobs-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.jobs-link-btn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.9);
    color: rgba(15, 23, 42, 0.85);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jobs-link-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.jobs-hero {
    margin: 0 0 1.1rem;
}

.jobs-hero-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(16, 24, 40, 0.95), rgba(9, 16, 30, 0.95));
    color: #f8fafc;
    border: 1px solid rgba(148, 210, 255, 0.25);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.35);
}

.jobs-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(148, 210, 255, 0.18);
    border: 1px solid rgba(148, 210, 255, 0.35);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.jobs-hero-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.jobs-hero-sub {
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
}

.jobs-hero-cta.btn-primary {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 45%, #38bdf8 100%);
    color: #0b1220;
    font-weight: 800;
    border: none;
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.35);
}

.jobs-search-panel {
    margin: 0 0 1.1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.75);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.08);
}

.jobs-search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.8rem;
    align-items: end;
    margin-bottom: 0.85rem;
}

.jobs-search-btn.btn-primary {
    width: 100%;
    min-height: 44px;
    font-weight: 800;
}

.jobs-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.jobs-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jobs-type-chip {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.92);
    color: rgba(15, 23, 42, 0.85);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jobs-type-chip.active,
.jobs-type-chip:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    color: rgba(30, 64, 175, 0.95);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.jobs-posted-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jobs-posted-tab {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.92);
    color: rgba(15, 23, 42, 0.85);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jobs-posted-tab.active,
.jobs-posted-tab:hover {
    background: rgba(14, 116, 144, 0.12);
    border-color: rgba(14, 116, 144, 0.35);
    color: rgba(14, 116, 144, 0.95);
    box-shadow: 0 8px 18px rgba(14, 116, 144, 0.18);
}

.jobs-sort-select {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.jobs-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.jobs-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.jobs-card-brand {
    display: flex;
    gap: 0.75rem;
}

.jobs-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 116, 144, 0.2));
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.8);
    font-weight: 800;
}

.jobs-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.jobs-role {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.jobs-company {
    font-size: 0.82rem;
    color: rgba(51, 65, 85, 0.85);
}

.jobs-location {
    font-size: 0.78rem;
    color: rgba(71, 85, 105, 0.85);
}

.jobs-status-pill {
    align-self: flex-start;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: rgba(22, 101, 52, 0.95);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
}

.jobs-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(30, 41, 59, 0.9);
}

.jobs-card-meta span {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.jobs-summary {
    margin: 0;
    color: rgba(71, 85, 105, 0.95);
    font-size: 0.85rem;
    line-height: 1.4;
}

.jobs-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.jobs-card-tags span {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: rgba(37, 99, 235, 0.95);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.jobs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.jobs-posted {
    font-size: 0.75rem;
    color: rgba(100, 116, 139, 0.9);
    font-weight: 700;
}

.jobs-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.jobs-card-actions .marketplace-offer-btn {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(59, 130, 246, 0.08);
}

.jobs-card-actions .marketplace-save-btn {
    height: 36px;
    width: 36px;
}

#post-item-modal .jobs-preview-card {
    border: 1px dashed rgba(148, 163, 184, 0.5);
    background: rgba(248, 250, 252, 0.92);
    box-shadow: none;
    cursor: default;
}

#post-item-modal .jobs-preview-card .jobs-card-actions {
    opacity: 0.65;
}

.jobs-preview-empty {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.8);
    font-weight: 700;
    padding: 0.2rem 0;
}

.clothing-audience-filters {
    margin: 0 0 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.clothing-audience-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.clothing-audience-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0b0f1a;
}

.clothing-audience-note {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 700;
}

.clothing-audience-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.clothing-filter-chip,
.clothing-audience-chip {
    border: 1px solid rgba(15, 23, 42, 0.8);
    background: #ffffff;
    color: var(--sneaker-black);
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jobs-filter-chip {
    border: 1px solid rgba(15, 23, 42, 0.8);
    background: rgba(8, 16, 32, 0.72);
    color: #f8fafc;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border-color: rgba(148, 210, 255, 0.35);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(6px);
}

.jobs-filter-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(148, 210, 255, 0.2), transparent 40%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.clothing-filter-chip:hover,
.clothing-filter-chip.active,
.clothing-audience-chip:hover,
.clothing-audience-chip.active {
    background: var(--sneaker-green);
    border-color: var(--sneaker-green);
    color: #0b0f1a;
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.25);
}

.jobs-filter-chip:hover,
.jobs-filter-chip.active {
    background: rgba(16, 28, 52, 0.92);
    border-color: rgba(226, 232, 240, 0.85);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(148, 210, 255, 0.22), 0 12px 28px rgba(2, 6, 23, 0.55);
}

.jobs-filter-chip:hover::after,
.jobs-filter-chip.active::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .clothing-hero {
        grid-template-columns: 1fr;
    }

    .clothing-hero-metrics {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .electronics-hero {
        grid-template-columns: 1fr;
    }

    .electronics-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .clothing-categories {
        padding: 1.1rem;
    }

    .clothing-categories-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .electronics-categories {
        padding: 1.1rem;
    }

    .electronics-categories-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .electronics-chip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
    }

    .electronics-chip-row::-webkit-scrollbar { display: none; }

    .electronics-chip {
        white-space: nowrap;
    }

    .electronics-hero {
        padding: 1.15rem;
    }

    .electronics-hero h3 {
        font-size: 1.35rem;
    }

    .electronics-hero-actions {
        width: 100%;
    }

    .electronics-hero .btn-primary,
    .electronics-hero .btn-secondary {
        width: 100%;
    }

    .category-title {
        letter-spacing: 0.16em;
    }

    .clothing-hero {
        padding: 1.35rem;
    }

    .clothing-hero h3 {
        font-size: 1.45rem;
    }
}

.marketplace-sections {
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marketplace-section {
    background: rgba(248, 250, 252, 0.96);
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.10);
}

.marketplace-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.marketplace-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    color: #0b1b3a;
    letter-spacing: 0.01em;
}

.marketplace-section-sub {
    color: rgba(51, 65, 85, 0.78);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.marketplace-row {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.marketplace-row::-webkit-scrollbar {
    height: 0;
    display: none;
}

.marketplace-row {
    scrollbar-width: none;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.feed-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

#listing-count {
    font-size: 0.9rem;
    color: #666;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.marketplace-feed-list,
.marketplace-feed-day-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.marketplace-feed-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    padding-top: 0.1rem;
}

.marketplace-offer-btn {
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.marketplace-offer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    background: rgba(59, 130, 246, 0.14);
}

.marketplace-card-actions {
    margin-top: 0.55rem;
}

.marketplace-feed-actions .dating-feed-action {
    font-weight: 800;
}

.marketplace-item {
    background: rgba(248, 250, 252, 0.98);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
}

.marketplace-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.16);
}

.marketplace-item:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 3px;
}

.item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.marketplace-item-media {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.marketplace-feed-list .marketplace-item-media {
    width: 120px;
    height: 120px;
}

.marketplace-feed-list .marketplace-item-media.image-carousel {
    height: 120px;
    min-height: 120px;
}

.marketplace-feed-list .marketplace-media-badges {
    left: 0.55rem;
    top: 0.55rem;
}

.marketplace-media-badges {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    display: inline-flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    max-width: calc(100% - 1.5rem);
    z-index: 2;
}

.marketplace-category-label {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 3;
}

.marketplace-item-media:hover .marketplace-category-label,
.marketplace-item-media:focus-within .marketplace-category-label,
.marketplace-item:focus-visible .marketplace-category-label,
.marketplace-item:hover .marketplace-category-label {
    opacity: 1;
    transform: translateY(0);
}

.marketplace-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: rgba(11, 27, 58, 0.90);
    color: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.72);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.marketplace-badge.soft {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.28);
    color: rgba(29, 78, 216, 0.95);
}

.marketplace-item-media.image-carousel {
    height: 180px;
}

.marketplace-item .carousel-track img {
    cursor: grab;
}

.marketplace-item .carousel-track img:active {
    cursor: grabbing;
}

.marketplace-item-media .carousel-btn {
    width: 26px;
    height: 26px;
    border-color: rgba(226, 232, 240, 0.22);
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(6px);
    font-size: 0.85rem;
    z-index: 3;
}

.marketplace-item-media .carousel-btn.prev { left: 0.35rem; }
.marketplace-item-media .carousel-btn.next { right: 0.35rem; }

.item-info {
    padding: 1rem;
}

.marketplace-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.marketplace-save-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.95);
    color: rgba(30, 41, 59, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.marketplace-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.16);
}

.marketplace-save-btn.saved {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.32);
    color: rgba(29, 78, 216, 0.95);
}

.marketplace-save-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.85);
    outline-offset: 2px;
}

.item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.marketplace-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.55rem;
}

.marketplace-sub-row .item-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: rgba(29, 78, 216, 0.98);
    margin: 0;
}

.marketplace-sub-row .item-date {
    font-size: 0.82rem;
    color: rgba(51, 65, 85, 0.75);
    font-weight: 700;
    margin: 0;
}

.item-desc {
    margin: 0.45rem 0 0;
    color: rgba(51, 65, 85, 0.88);
    font-size: 0.86rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-desc.compact {
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.marketplace-seller-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.seller-profile-link {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.seller-name-link {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    appearance: none;
    display: inline-flex;
    align-items: center;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.75);
    text-underline-offset: 3px;
}

.seller-name-link:hover {
    text-decoration-color: rgba(37, 99, 235, 0.95);
}

.seller-name-link:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
    border-radius: 6px;
}

.seller-profile-link:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.4);
    outline-offset: 4px;
    border-radius: 12px;
}

.seller-profile-cta {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex: 0 0 auto;
}

.seller-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(11, 27, 58, 0.96), rgba(37, 99, 235, 0.85));
    color: rgba(248, 250, 252, 0.98);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.12);
    flex: 0 0 auto;
}

.seller-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.seller-name {
    font-weight: 900;
    color: rgba(15, 23, 42, 0.92);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-verified {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: rgba(5, 150, 105, 0.95);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.seller-sub {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(51, 65, 85, 0.78);
    font-weight: 700;
    font-size: 0.82rem;
}

.seller-sub .item-location {
    margin: 0;
}

.seller-rating i {
    color: #facc15;
}

.seller-profile-btn {
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.85);
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.seller-profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.08);
}

.marketplace-item.compact {
    flex: 0 0 250px;
    min-width: 250px;
    scroll-snap-align: start;
}

.marketplace-item.compact .marketplace-item-media,
.marketplace-item.compact .item-image {
    height: 155px;
}

.marketplace-item.compact .item-info {
    padding: 0.9rem;
}

.marketplace-item.compact .seller-avatar {
    width: 34px;
    height: 34px;
    border-radius: 13px;
}

@media (max-width: 520px) {
    .marketplace-feed-list .marketplace-item-media {
        width: 96px;
        height: 96px;
    }
    .marketplace-feed-list .marketplace-item-media.image-carousel {
        height: 96px;
    }
}
.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.category-header-text h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
}
.category-header-text p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}
.category-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.category-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.category-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.category-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.category-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}
.category-card-name-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
}
.category-card-name-link:hover,
.category-card-name-link:focus-visible {
    text-decoration: underline;
}
.category-card-header p {
    margin: 0.15rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}
.category-status {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.category-status.online {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}
.category-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #4b5563;
}
.category-card-meta i {
    margin-right: 0.35rem;
    color: #6366f1;
}
.category-media {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
}
.category-media.companionship-layout {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
}
.category-main-photo-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    width: 88%;
    max-width: 420px;
}
.category-main-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.category-photo-count {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.72);
    color: #f9fafb;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.category-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 0.35rem;
    width: 88%;
    max-width: 420px;
}
.category-thumb {
    width: 100%;
    height: 66px;
    object-fit: cover;
    border-radius: 12px;
}
    .category-photo-click {
        cursor: zoom-in;
    }
    .category-photo-click:focus {
        outline: 3px solid rgba(99, 102, 241, 0.6);
        outline-offset: 2px;
    }
.category-video {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    width: 88%;
    max-width: 420px;
}
.category-video video {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.category-video-label {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(15, 23, 42, 0.85);
    color: #f9fafb;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.category-video.companionship-video {
    flex: 0 0 220px;
    width: 220px;
    max-width: 220px;
}
.companionship-photo-grid {
    position: relative;
    display: flex;
    gap: 0.55rem;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin: 0;
}
.companionship-photo {
    flex: 1 1 0;
    min-width: 140px;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
}
@media (max-width: 640px) {
    .category-media.companionship-layout {
        flex-direction: column;
        align-items: center;
    }
    .companionship-photo-grid {
        flex-direction: column;
        width: 88%;
        max-width: 420px;
        margin: 0 auto;
    }
    .companionship-photo {
        height: 176px;
        min-width: 0;
    }
    .category-video.companionship-video {
        flex: none;
        width: 88%;
        max-width: 420px;
    }
}
.category-premium {
    color: #b45309;
    background: rgba(245, 158, 11, 0.18);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-weight: 600;
}
.category-card-body {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}
.category-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.category-card-tags span {
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
}
.category-empty {
    background: #f9fafb;
    border: 1px dashed #cbd5f5;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #6b7280;
}
.category-empty h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}
.category-filter-btn {
    transition: transform 0.2s ease;
}
.category-filter-btn:hover {
    transform: translateY(-1px);
}


.item-location,
.item-seller,
.item-date {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.item-seller {
    color: #555;
    font-weight: 600;
}

.no-items {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.no-items h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .marketplace-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .marketplace-grid {
        grid-template-columns: 1fr;
    }
}

/* Discovery Feed Styles */
.post-creation {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-form {
    display: flex;
    gap: 1rem;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-input-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#post-text {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

#post-text:focus {
    outline: none;
    border-color: #2563eb;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-options {
    display: flex;
    gap: 1rem;
}

.post-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.post-option input[type="checkbox"] {
    display: none;
}

.post-option input[type="checkbox"] + i {
    color: #ccc;
    transition: color 0.3s ease;
}

.post-option input[type="checkbox"]:checked + i {
    color: #2563eb;
}

.discovery-feed {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.feed-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.feed-filters {
    display: flex;
    gap: 0.5rem;
}

.geo-filter-bar {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: #f6f7ff;
    border: 1px solid #e1e6ff;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.geo-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.geo-filter-btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid #c8d2ff;
    background: #fff;
    color: #1f2a56;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(44, 62, 255, 0.08);
}

.geo-filter-btn.active,
.geo-filter-btn:focus {
    outline: none;
    background: linear-gradient(135deg, #5a67f2, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(76, 81, 191, 0.25);
}


.geo-search-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.geo-search-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.35rem;
    display: inline-block;
}

.geo-search-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #d9e1ff;
    border-radius: 14px;
    padding: 0.55rem 0.85rem;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
}

.geo-search-input i {
    color: #6366f1;
}

.geo-search-input input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: #111827;
}

.geo-search-input input:focus {
    outline: none;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.home-featured-ads {
    margin: 1.5rem 0 2rem;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.95), rgba(14, 165, 233, 0.55)) 0 0 / 5px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.26), transparent 60%),
        radial-gradient(760px circle at 88% 16%, rgba(34, 197, 94, 0.16), transparent 58%),
        radial-gradient(720px circle at 50% 120%, rgba(59, 130, 246, 0.22), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    border-radius: 22px;
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

.home-featured-ads::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px) 0 0 / 260px 260px,
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0 / 310px 310px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.home-featured-ads::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%, rgba(15, 23, 42, 0.30) 100%),
        radial-gradient(600px circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.home-featured-ads > * {
    position: relative;
    z-index: 1;
}

.services-featured,
.realestate-featured {
    margin: 1.5rem 0 2rem;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.95), rgba(14, 165, 233, 0.55)) 0 0 / 5px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.26), transparent 60%),
        radial-gradient(760px circle at 88% 16%, rgba(34, 197, 94, 0.16), transparent 58%),
        radial-gradient(720px circle at 50% 120%, rgba(59, 130, 246, 0.22), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    border-radius: 22px;
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

.services-featured::before,
.realestate-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px) 0 0 / 260px 260px,
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0 / 310px 310px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.services-featured::after,
.realestate-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%, rgba(15, 23, 42, 0.30) 100%),
        radial-gradient(600px circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.services-featured > *,
.realestate-featured > * {
    position: relative;
    z-index: 1;
}

.realestate-hero {
    margin: 1.5rem 0 2rem;
    padding: 1.75rem 2rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.realestate-hero h3 {
    margin: 0.35rem 0 0.5rem;
    color: #f8fafc;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.realestate-kicker {
    margin: 0;
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 700;
}

.realestate-sub {
    margin: 0;
    color: #cbd5f5;
    max-width: 520px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.realestate-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.realestate-cta .btn-luxe.small {
    padding: 0.6rem 1.25rem;
    font-weight: 700;
    background: rgba(248, 250, 252, 0.96);
    color: #0b1b3a;
    border: 1px solid rgba(226, 232, 240, 0.65);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.20);
}

.electronics-hero {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1.2rem;
    padding: 1.35rem 1.6rem;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.16);
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.92), rgba(14, 165, 233, 0.5)) 0 0 / 4px 100% no-repeat,
        radial-gradient(900px circle at 18% 18%, rgba(59, 130, 246, 0.2), transparent 62%),
        radial-gradient(760px circle at 82% 30%, rgba(250, 204, 21, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.92) 100%);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.electronics-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.26) 0 1px, transparent 2px) 0 0 / 260px 260px;
    opacity: 0.55;
    pointer-events: none;
}

.electronics-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%, rgba(15, 23, 42, 0.3) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 62%);
    pointer-events: none;
}

.electronics-hero > * {
    position: relative;
    z-index: 1;
}

.electronics-hero-kicker {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(248, 250, 252, 0.78);
}

.electronics-hero h3 {
    margin: 0 0 0.45rem;
    color: rgba(248, 250, 252, 0.98);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.electronics-hero-sub {
    margin: 0 0 0.85rem;
    color: rgba(226, 232, 240, 0.78);
    max-width: 520px;
    line-height: 1.5;
}

.electronics-hero-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.electronics-hero-tip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(248, 250, 252, 0.08);
    color: rgba(248, 250, 252, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.electronics-hero-tip i {
    color: rgba(250, 204, 21, 0.9);
}

.electronics-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-start;
}

.electronics-hero .btn-primary,
.electronics-hero .btn-secondary {
    width: auto;
    margin: 0;
}

.electronics-hero .btn-secondary {
    border-color: rgba(226, 232, 240, 0.65);
    color: rgba(248, 250, 252, 0.95);
}

.electronics-hero .btn-secondary:hover {
    background: rgba(248, 250, 252, 0.12);
    color: rgba(248, 250, 252, 0.98);
}

.electronics-categories {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1.4rem;
    padding: 1.1rem 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.92), rgba(14, 165, 233, 0.45)) 0 0 / 4px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.18), transparent 62%),
        radial-gradient(720px circle at 86% 30%, rgba(250, 204, 21, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
}

.electronics-categories::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.26) 0 1px, transparent 2px) 0 0 / 260px 260px;
    opacity: 0.5;
    pointer-events: none;
}

.electronics-categories::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%, rgba(15, 23, 42, 0.32) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%);
    pointer-events: none;
}

.electronics-categories-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.electronics-kicker {
    margin: 0 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.8);
}

.electronics-categories-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: rgba(248, 250, 252, 0.98);
    font-family: "Space Grotesk", "Fraunces", Georgia, "Times New Roman", Times, serif;
}

.electronics-note {
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.electronics-chip-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.electronics-chip {
    appearance: none;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(248, 250, 252, 0.08);
    color: rgba(248, 250, 252, 0.92);
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.electronics-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.95), rgba(245, 158, 11, 0.65));
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.12), 0 12px 22px rgba(250, 204, 21, 0.18);
    flex: 0 0 auto;
}

.electronics-chip:hover,
.electronics-chip.active {
    transform: translateY(-1px);
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(248, 250, 252, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(2, 6, 23, 0.34);
}

.electronics-chip:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.22);
    outline-offset: 3px;
    border-color: rgba(250, 204, 21, 0.55);
}

.electronics-filters {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1.4rem;
    padding: 1.05rem 1.3rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.9), rgba(14, 165, 233, 0.38)) 0 0 / 4px 100% no-repeat,
        radial-gradient(880px circle at 16% 12%, rgba(59, 130, 246, 0.18), transparent 62%),
        radial-gradient(720px circle at 84% 18%, rgba(250, 204, 21, 0.1), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.9) 0%, rgba(11, 27, 58, 0.92) 100%);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.2);
}

.electronics-filters::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 74% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 42% 80%, rgba(255, 255, 255, 0.24) 0 1px, transparent 2px) 0 0 / 260px 260px;
    opacity: 0.45;
    pointer-events: none;
}

.electronics-filters::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, rgba(15, 23, 42, 0.28) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%);
    pointer-events: none;
}

.electronics-filter-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.electronics-filters .filter-group label {
    color: rgba(248, 250, 252, 0.82);
}

.electronics-filters .filter-input,
.electronics-filters .filter-select {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.45);
    color: rgba(248, 250, 252, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px rgba(2, 6, 23, 0.28);
}

.electronics-filters .filter-input::placeholder {
    color: rgba(226, 232, 240, 0.55);
}

.electronics-filters .filter-select option {
    color: #111827;
}

.electronics-filters .filter-input:focus,
.electronics-filters .filter-select:focus {
    border-color: rgba(250, 204, 21, 0.65);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14), 0 14px 30px rgba(2, 6, 23, 0.3);
}

.electronics-filter-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.electronics-filter-actions .btn-secondary.small {
    border-color: rgba(226, 232, 240, 0.65);
    color: rgba(248, 250, 252, 0.95);
}

.electronics-filter-actions .btn-secondary.small:hover {
    background: rgba(248, 250, 252, 0.12);
    color: rgba(248, 250, 252, 0.98);
}

.electronics-featured-section {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.9), rgba(14, 165, 233, 0.35)) 0 0 / 4px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(59, 130, 246, 0.16), transparent 62%),
        radial-gradient(700px circle at 86% 22%, rgba(250, 204, 21, 0.1), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
}

.electronics-featured-section::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.26) 0 1px, transparent 2px) 0 0 / 260px 260px;
    pointer-events: none;
    opacity: 0.5;
}

.electronics-featured-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, rgba(15, 23, 42, 0.3) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%);
    pointer-events: none;
}

.electronics-featured-section .marketplace-section-header,
.electronics-featured-section .marketplace-row {
    position: relative;
    z-index: 1;
}

.electronics-featured-section .marketplace-section-header h3 {
    color: rgba(248, 250, 252, 0.98);
}

.electronics-featured-section .marketplace-section-sub {
    color: rgba(226, 232, 240, 0.72);
}

.realestate-categories {
    margin: 1.5rem 0 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.8));
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.28);
}

.vehicles-categories {
    margin: 1.5rem 0 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.8));
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.28);
}

.vehicles-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.vehicles-chip {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.45);
    color: #e2e8f0;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vehicles-chip:hover,
.vehicles-chip.active {
    background: rgba(250, 204, 21, 0.2);
    color: #fef3c7;
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
}

.vehicles-feed .marketplace-item img {
    height: 190px;
    object-fit: cover;
}

.vehicle-featured-top .btn-luxe.small {
    padding: 0.6rem 1.25rem;
    font-weight: 700;
    background: rgba(248, 250, 252, 0.96);
    color: #0b1b3a;
    border: 1px solid rgba(226, 232, 240, 0.65);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.20);
}

.vehicles-feed-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.marketplace-feed-group {
    margin-bottom: 0;
}

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

.vehicles-feed-header h4 {
    margin: 0;
    color: #0b1020;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f8fafc;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.vehicles-feed-header span {
    color: #0b1020;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #f8fafc;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}
.realestate-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.realestate-chip {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.45);
    color: #e2e8f0;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.realestate-chip:hover,
.realestate-chip.active {
    background: rgba(250, 204, 21, 0.2);
    color: #fef3c7;
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
}

.realestate-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.realestate-category-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem;
    color: #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

.realestate-category-card h4 {
    margin: 0 0 0.4rem;
    color: #f8fafc;
    font-size: 1rem;
}

.realestate-category-card p {
    margin: 0;
    color: #cbd5f5;
    font-size: 0.9rem;
    line-height: 1.4;
}

.realestate-grid {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 1.5rem;
}

.realestate-feed-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.realestate-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.realestate-feed-header h4 {
    margin: 0;
    color: #0b1020;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f8fafc;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.realestate-feed-header span {
    color: #0b1020;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #f8fafc;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.realestate-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
    gap: 1.2rem;
    justify-content: start;
}


.realestate-card {
    background: rgba(248, 250, 252, 0.98);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.12);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.realestate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.16);
}

.realestate-card:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 3px;
}

.realestate-card-media {
    position: relative;
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: 170px;
    overflow: hidden;
}

.realestate-card-media .image-carousel {
    height: 100%;
}

.realestate-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 55%, rgba(2, 6, 23, 0.55) 100%);
}

.realestate-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.realestate-card .carousel-track img {
    cursor: grab;
}

.realestate-card .carousel-track img:active {
    cursor: grabbing;
}

.realestate-card-media .carousel-btn {
    width: 26px;
    height: 26px;
    border-color: rgba(226, 232, 240, 0.22);
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(6px);
    font-size: 0.85rem;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.realestate-card:hover .carousel-btn,
.realestate-card:focus-within .carousel-btn {
    opacity: 1;
}

@media (hover: none) {
    .realestate-card-media .carousel-btn {
        opacity: 1;
    }
}

.realestate-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(11, 27, 58, 0.92);
    color: rgba(248, 250, 252, 0.98);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.35);
    z-index: 4;
}

.realestate-badge.is-luxury {
    background: rgba(250, 204, 21, 0.92);
    color: rgba(11, 27, 58, 0.98);
    border-color: rgba(250, 204, 21, 0.65);
}

.realestate-badge.is-new {
    background: rgba(34, 197, 94, 0.92);
    color: rgba(2, 6, 23, 0.98);
    border-color: rgba(34, 197, 94, 0.55);
}

.realestate-badge.is-premium {
    background: rgba(99, 102, 241, 0.92);
    color: rgba(248, 250, 252, 0.98);
    border-color: rgba(99, 102, 241, 0.55);
}

.realestate-badge.is-top {
    background: rgba(37, 99, 235, 0.92);
    color: rgba(248, 250, 252, 0.98);
    border-color: rgba(37, 99, 235, 0.55);
}

.realestate-badge.is-verified {
    background: rgba(15, 23, 42, 0.92);
    color: rgba(248, 250, 252, 0.98);
}

.realestate-card-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.realestate-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.realestate-card-title h4 {
    margin: 0;
    font-size: 1rem;
    color: #0b1020;
    line-height: 1.25;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.realestate-card-price {
    color: #1d4ed8;
    font-weight: 900;
    font-size: 0.98rem;
    white-space: nowrap;
}

.realestate-card-location {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(71, 85, 105, 0.95);
    font-size: 0.86rem;
    font-weight: 700;
}

.realestate-card-location i {
    color: rgba(37, 99, 235, 0.95);
}

.realestate-card-meta {
    margin: 0;
    color: rgba(71, 85, 105, 0.92);
    font-size: 0.88rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.realestate-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: rgba(71, 85, 105, 0.92);
    font-size: 0.82rem;
    font-weight: 800;
}

.realestate-card-stats .realestate-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.86);
}

.realestate-card-stats .realestate-stat i {
    color: rgba(250, 204, 21, 0.98);
}

.realestate-card-stats .realestate-stat i.fa-building {
    color: rgba(37, 99, 235, 0.95);
}

.realestate-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.realestate-card-tags span {
    background: rgba(37, 99, 235, 0.10);
    color: rgba(29, 78, 216, 0.95);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.realestate-empty {
    background: rgba(248, 250, 252, 0.98);
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    color: rgba(71, 85, 105, 0.95);
    font-weight: 800;
}

/* Real estate filters (compact) */
#realestate-content .realestate-filters {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 0.9rem;
    margin: 0.9rem 0 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

#realestate-content .realestate-filter-core {
    display: grid;
    grid-template-columns: 1.8fr 1.4fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

#realestate-content .realestate-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

#realestate-content .realestate-filter-more {
    position: relative;
}

#realestate-content .realestate-filter-more > summary {
    list-style: none;
}

#realestate-content .realestate-filter-more > summary::-webkit-details-marker {
    display: none;
}

#realestate-content .realestate-filter-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    width: min(560px, calc(100vw - 2rem));
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.24);
    z-index: 40;
}

#realestate-content .realestate-filter-advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

#realestate-content .realestate-filter-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
}

#realestate-content #realestate-apply.btn-primary.small {
    padding: 0.6rem 1.05rem;
}

#realestate-content .realestate-status {
    margin-top: 0.6rem;
    color: rgba(71, 85, 105, 0.95);
    font-weight: 800;
}

/* Vehicles filters (compact) */
#marketplace-content .vehicles-filters {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 0.9rem;
    margin: 0.9rem 0 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

#marketplace-content .vehicles-filter-core {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 0.9fr 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

#marketplace-content .vehicles-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

#marketplace-content .vehicles-filter-more {
    position: relative;
}

#marketplace-content .vehicles-filter-more > summary {
    list-style: none;
}

#marketplace-content .vehicles-filter-more > summary::-webkit-details-marker {
    display: none;
}

#marketplace-content .vehicles-filter-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    width: min(520px, calc(100vw - 2rem));
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.24);
    z-index: 40;
}

#marketplace-content .vehicles-filter-advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

#marketplace-content #vehicles-favs-toggle.btn-secondary.active {
    background: linear-gradient(135deg, rgba(11, 27, 58, 0.98), rgba(29, 78, 216, 0.92));
    color: #f8fafc;
    border-color: rgba(226, 232, 240, 0.35);
}

@media (max-width: 820px) {
    #marketplace-content .vehicles-filter-core {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    #marketplace-content .vehicles-filter-actions {
        justify-content: flex-start;
    }
    #marketplace-content .vehicles-filter-panel {
        position: static;
        width: 100%;
        margin-top: 0.6rem;
    }
}

@media (max-width: 820px) {
    #realestate-content .realestate-filter-core {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    #realestate-content .realestate-filter-actions {
        justify-content: space-between;
    }
    #realestate-content .realestate-filter-panel {
        position: static;
        width: 100%;
        margin-top: 0.6rem;
    }
}

.featured-ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.services-featured-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-ads-header h3 {
    margin: 0.15rem 0 0;
    font-size: 1.4rem;
    color: #f8fafc;
}

.services-featured-head h3 {
    margin: 0.15rem 0 0;
    font-size: 1.4rem;
    color: #f8fafc;
}

.featured-label {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #facc15;
    font-weight: 700;
}

.home-featured-ads .featured-label,
.services-featured .featured-label,
.realestate-featured .featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(226, 232, 240, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 252, 0.92);
}

.home-featured-ads .featured-label::before,
.services-featured .featured-label::before,
.realestate-featured .featured-label::before {
    content: "●";
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.services-featured h3,
.realestate-featured h3 {
    color: #f8fafc;
}

.services-featured .featured-fee-note,
.realestate-featured .featured-fee-note,
.realestate-featured-note {
    color: #cbd5f5;
}

.realestate-featured .featured-ads-header {
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 16px 36px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(10px);
}

.realestate-featured .realestate-featured-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.16);
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.realestate-featured .featured-ads-carousel {
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(10px);
}

.home-featured-ads .featured-fee-note {
    margin: 0.2rem 0 0;
    color: rgba(226, 232, 240, 0.88);
    font-weight: 650;
}

.featured-ads-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.featured-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.featured-tag {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.featured-ad-card {
    position: relative;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-carousel {
    position: relative;
    aspect-ratio: 3 / 2;
    min-height: 150px;
}

.carousel-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    height: 0;
    display: none;
}

.carousel-track {
    scrollbar-width: none;
}

.carousel-track img {
    flex: 0 0 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    cursor: pointer;
}

.vehicle-featured-top .vehicle-featured-static .carousel-track img {
    cursor: grab;
}

.vehicle-featured-top .vehicle-featured-static .carousel-track img:active {
    cursor: grabbing;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }

.carousel-btn:focus-visible {
    outline: 2px solid rgba(250, 204, 21, 0.7);
    outline-offset: 2px;
}

/* Sponsored/featured ad cards: show carousel toggles */
.home-featured-ads .carousel-btn,
.services-featured .carousel-btn,
.realestate-featured .carousel-btn {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-color: rgba(226, 232, 240, 0.22);
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(6px);
    font-size: 0.9rem;
}

.home-featured-ads .carousel-btn.prev,
.services-featured .carousel-btn.prev,
.realestate-featured .carousel-btn.prev { left: 0.35rem; }

.home-featured-ads .carousel-btn.next,
.services-featured .carousel-btn.next,
.realestate-featured .carousel-btn.next { right: 0.35rem; }

.vehicle-featured-top .vehicle-photo-prev,
.vehicle-featured-top .vehicle-photo-next {
    display: none;
}

.home-featured-ads .featured-ad-card,
.services-featured .featured-ad-card,
.realestate-featured .featured-ad-card {
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.30);
}

.home-featured-ads .featured-ad-card::before,
.services-featured .featured-ad-card::before,
.realestate-featured .featured-ad-card::before {
    border-color: rgba(59, 130, 246, 0.18);
}

.home-featured-ads .featured-ad-card::after,
.services-featured .featured-ad-card::after,
.realestate-featured .featured-ad-card::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.18) 60%, rgba(2, 6, 23, 0.35) 100%);
}

.home-featured-ads .featured-ad-body h4,
.services-featured .featured-ad-body h4,
.realestate-featured .featured-ad-body h4 {
    color: #0b1b3a;
    letter-spacing: 0.01em;
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

.home-featured-ads .featured-ad-body p,
.services-featured .featured-ad-body p,
.realestate-featured .featured-ad-body p {
    color: #1d4ed8;
    font-weight: 800;
}

.home-featured-ads .featured-ad-body span,
.services-featured .featured-ad-body span,
.realestate-featured .featured-ad-body span {
    color: rgba(51, 65, 85, 0.92);
}

.home-featured-ads .featured-ad-tag,
.services-featured .featured-ad-tag,
.realestate-featured .featured-ad-tag {
    background: rgba(11, 27, 58, 0.90);
    border: 1px solid rgba(226, 232, 240, 0.75);
    color: rgba(248, 250, 252, 0.98);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}

.home-featured-ads .featured-ad-tag.tag-top,
.services-featured .featured-ad-tag.tag-top,
.realestate-featured .featured-ad-tag.tag-top {
    background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    color: #f8fafc;
    border-color: rgba(226, 232, 240, 0.70);
}

.home-featured-ads .featured-ad-tag.tag-new,
.services-featured .featured-ad-tag.tag-new,
.realestate-featured .featured-ad-tag.tag-new {
    background: rgba(248, 250, 252, 0.94);
    color: #0b1b3a;
    border-color: rgba(11, 27, 58, 0.25);
}

.home-featured-ads .featured-ad-tag.tag-premium,
.services-featured .featured-ad-tag.tag-premium,
.realestate-featured .featured-ad-tag.tag-premium {
    background: linear-gradient(135deg, rgba(11, 27, 58, 0.96) 0%, rgba(15, 23, 42, 0.86) 100%);
    color: rgba(248, 250, 252, 0.98);
    border-color: rgba(226, 232, 240, 0.60);
}

.home-featured-ads .carousel-btn {
    background: rgba(2, 6, 23, 0.55);
    border-color: rgba(226, 232, 240, 0.22);
    backdrop-filter: blur(6px);
    color: rgba(248, 250, 252, 0.96);
}

.home-featured-ads .carousel-btn:hover {
    background: rgba(2, 6, 23, 0.72);
    border-color: rgba(226, 232, 240, 0.3);
}

.services-featured .btn-luxe.small,
.realestate-featured .btn-luxe.small {
    background: rgba(248, 250, 252, 0.96);
    color: #0b1b3a;
    border: 1px solid rgba(226, 232, 240, 0.65);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.20);
}

.services-featured .btn-luxe.small:hover,
.realestate-featured .btn-luxe.small:hover {
    filter: brightness(1.02);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.26);
}

#services-content #services-promote-btn.btn-luxe.small {
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    color: #f8fafc;
    border: 1px solid rgba(191, 219, 254, 0.8);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.25);
}

#services-content #services-promote-btn.btn-luxe.small:hover {
    filter: brightness(1.05);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.32);
}

/* Services category cards (luxury) */
#services-content .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

#services-content .services-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#services-content .services-feed.services-feed-grouped {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

#services-content .services-feed-day-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

#services-content .services-feed .featured-ad-card {
    min-height: 260px;
}

#services-content .services-feed-empty {
    grid-column: 1 / -1;
    width: 100%;
    padding: 1.4rem 1.1rem;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px dashed rgba(148, 163, 184, 0.5);
    color: rgba(51, 65, 85, 0.85);
    font-weight: 700;
    text-align: center;
}

#services-content .services-categories {
    margin: 1rem 0 1.1rem;
    padding: 0.9rem 0.9rem 0.85rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.75);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.08);
}

#services-content .services-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

#services-content .service-chip {
    appearance: none;
    border: 1px solid rgba(11, 27, 58, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(11, 27, 58, 0.92);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

#services-content .service-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 78, 216, 0.28);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.10);
}

#services-content .service-chip.active {
    background: linear-gradient(135deg, rgba(11, 27, 58, 0.98), rgba(29, 78, 216, 0.92));
    color: #f8fafc;
    border-color: rgba(226, 232, 240, 0.55);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

#services-content .service-chip:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.22);
    outline-offset: 3px;
}

#services-content .service-card {
    position: relative;
    padding: 1.15rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.92) 100%);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.10);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#services-content .service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.95), rgba(14, 165, 233, 0.55));
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    pointer-events: none;
}

#services-content .service-card::after {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(520px circle at 20% 0%, rgba(59, 130, 246, 0.14), transparent 60%),
        radial-gradient(520px circle at 90% 10%, rgba(14, 165, 233, 0.10), transparent 62%);
    opacity: 0.9;
    pointer-events: none;
}

#services-content .service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.30);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.16);
}

#services-content .service-card:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.22);
    outline-offset: 3px;
}

#services-content .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11, 27, 58, 0.98), rgba(29, 78, 216, 0.90));
    color: #f8fafc;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.18);
    position: relative;
    z-index: 1;
}

#services-content .service-icon i {
    font-size: 1.25rem;
}

#services-content .service-card h4 {
    margin: 0.8rem 0 0.35rem;
    color: #0b1b3a;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    position: relative;
    z-index: 1;
}

#services-content .service-card p {
    margin: 0;
    color: rgba(51, 65, 85, 0.92);
    line-height: 1.45;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

#services-content .service-meta {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(11, 27, 58, 0.06);
    border: 1px solid rgba(11, 27, 58, 0.12);
    color: rgba(11, 27, 58, 0.88);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.featured-ad-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(250, 204, 21, 0.18);
    border-radius: 16px;
    pointer-events: none;
}

.featured-ad-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.45) 60%, rgba(2, 6, 23, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.featured-ad-card:hover,
.featured-ad-card:focus-within,
.featured-ad-card:active {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.5);
}

.featured-ad-card:hover::after,
.featured-ad-card:focus-within::after,
.featured-ad-card:active::after { opacity: 1; }

@media (hover: none) {
    .featured-ad-card::after { opacity: 1; }
    .featured-ad-card { transform: translateY(-2px); }
}

.featured-ad-card img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06);
    transform: scale(1);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.featured-ad-card:hover img,
.featured-ad-card:focus-within img,
.featured-ad-card:active img {
    transform: scale(1.03);
    filter: saturate(1.15) contrast(1.08);
}

.featured-ad-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.featured-ad-body h4 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
}

.featured-ad-body p {
    margin: 0;
    color: #facc15;
    font-weight: 600;
}

.featured-ad-body span {
    font-size: 0.85rem;
    color: #cbd5f5;
}


.featured-ad-online-dot {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.95);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 12px 22px rgba(2, 6, 23, 0.35);
    z-index: 3;
}

.featured-ad-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #ef4444;
    color: #fff7f7;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    z-index: 3;
    border: 2px solid #b91c1c;
    box-shadow: 0 12px 24px rgba(2, 8, 23, 0.45);
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discovery-post {
    background: #fafafa;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    color: #0f172a;
}

.discovery-post:hover {
    background: #f5f5f5;
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.post-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-user-info {
    flex: 1;
}

.post-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-indicator {
    color: #4ecdc4;
    font-size: 0.7rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #475569;
}

.post-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-menu-btn {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.post-menu-btn:hover {
    background: #f0f0f0;
}

.post-content {
    margin-bottom: 0.75rem;
}

.post-content p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

.post-listing-fields {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 0.75rem 0 0;
}

.post-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.post-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
}

.post-field input,
.post-field select {
    width: 100%;
    border: 1px solid #dbe0ea;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    background: white;
    font-size: 0.9rem;
}

.post-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.listing-layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 1rem;
    align-items: stretch;
}

.listing-media {
    border-radius: 14px;
    overflow: hidden;
    background: #e5e7eb;
    min-height: 180px;
    position: relative;
    cursor: pointer;
}

/* Recent Activity: ensure listing images fill the media area (and keep media compact so the card content stays visible) */
.discovery-post .listing-layout > * {
    min-width: 0;
}

.discovery-post .listing-media {
    aspect-ratio: 2 / 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.discovery-post .listing-media:not(.image-carousel) img {
    position: absolute;
    inset: 0;
}

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

.listing-media.image-carousel {
    aspect-ratio: 3 / 2;
}

/* Recent Activity: make carousel media shorter so the post card is readable at a glance */
.discovery-post .listing-media.image-carousel {
    aspect-ratio: 2 / 1;
}

.listing-media.image-carousel .carousel-track img {
    cursor: grab;
}
.listing-media.image-carousel .carousel-track img:active {
    cursor: grabbing;
}


.listing-media-count {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.22);
    color: rgba(248, 250, 252, 0.98);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    pointer-events: none;
}

/* Recent Activity: keep the photo carousel compact on small screens */
@media (max-width: 768px) {
    .discovery-post .listing-media.image-carousel {
        aspect-ratio: 2 / 1;
        min-height: 140px;
    }
}

.listing-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.listing-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
}

.listing-type-sale { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.listing-type-free { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.listing-type-trade { background: rgba(249, 115, 22, 0.15); color: #c2410c; }
.listing-type-rent { background: rgba(99, 102, 241, 0.15); color: #4338ca; }
.listing-type-service { background: rgba(45, 212, 191, 0.18); color: #0f766e; }

.listing-title {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.listing-price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.listing-summary {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}

.listing-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.listing-highlights span {
    background: #eef2ff;
    color: #312e81;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.listing-tags span {
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.post-header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.seller-stat-pill {
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8e8e8;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.post-action-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.post-action-btn.like-btn:hover {
    color: #ff6b6b;
}

.no-posts {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.no-posts h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

@media (max-width: 768px) {
    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .listing-layout {
        grid-template-columns: 1fr;
    }
}

.avail-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.75rem 1rem;
}

.avail-form .av-field {
    display: flex;
    flex-direction: column;
}

.avail-form label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.25rem;
}

.avail-form input,
.avail-form select,
.avail-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
}

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

@media (max-width: 640px) {
    .avail-form { grid-template-columns: 1fr; }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --app-max-width: 1320px;
    --app-gutter: clamp(1rem, 2.4vw, 2rem);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f9ff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Home Screen */
#home-screen {
    min-height: 100vh;
    padding: 5rem min(6vw, 4rem) 4rem;
    background: linear-gradient(180deg, #0f4af0 0%, #0f4af0 55%, #f8fafc 55%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-wrapper {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    color: #fff;
}

.home-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 520px;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.75rem;
    font-weight: 800;
}

.home-logo i {
    font-size: 2.75rem;
}

.home-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.95;
}

.home-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-actions .btn-secondary {
    border-color: rgba(255,255,255,0.75);
    color: #0f4af0;
    background: white;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.home-feature {
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: 0 22px 40px -24px rgba(15, 74, 240, 0.45);
    color: #0b1f4d;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.home-feature i {
    font-size: 1.8rem;
    color: #0f4af0;
}

.home-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.home-feature p {
    font-size: 0.95rem;
    color: #3b4a70;
    line-height: 1.5;
}

@media (max-width: 768px) {
    #home-screen {
        padding: 4rem 1.5rem 3rem;
        background: linear-gradient(180deg, #0f4af0 0%, #0f4af0 62%, #f8fafc 62%);
    }

    .home-logo {
        font-size: 2.3rem;
    }

    .home-logo i {
        font-size: 2.3rem;
    }

    .home-lead {
        font-size: 1.05rem;
    }
}

@media (max-width: 540px) {
    .home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.heart-animation {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.loading-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.loading-screen p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Screen Management */
.screen {
    width: 100%;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.hidden {
    display: none !important;
}

/* Login/Signup Styles */
.login-container, .signup-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #e6f0ff 0%, #f5f9ff 100%);
}

.logo {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.logo i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-luxe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1.35rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid rgba(147, 197, 253, 0.65);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
    white-space: nowrap;
}

.btn-luxe:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.btn-luxe.small {
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

.btn-circle.btn-primary,
.btn-circle.btn-secondary,
.btn-circle.btn-luxe {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    margin-bottom: 0;
    flex: 0 0 44px;
}

/* Scoped icon spacing for Next buttons */
#premium-next i,
#personal-next-btn i {
    margin-left: 0.4rem;
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
}

.btn-link {
    background: transparent;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-link.small {
    font-size: 0.9rem;
}

.btn-link:hover {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.switch-mode {
    text-align: center;
    color: #666;
}

.switch-mode span {
    color: #2563eb;
    cursor: pointer;
    font-weight: 600;
}

/* Main App Styles */
#main-app {
    background: #f5f5f5;
    padding-top: 112px;
    padding-bottom: 60px;
}

/* Mode bar */
.mode-bar {
    position: fixed;
    top: 100px;
    right: 12px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 200;
}

.mode-bar select {
    border: none;
    outline: none;
    background: transparent;
    font-weight: 600;
    color: #333;
}

.mode-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3b82f6; /* default discover */
}

/* Navigation */
.bottom-nav {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 0.65rem);
    left: 0.75rem;
    right: 0.75rem;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.88), rgba(14, 165, 233, 0.36)) 0 0 / 4px 100% no-repeat,
        radial-gradient(920px circle at 14% 0%, rgba(14, 165, 233, 0.16), transparent 60%),
        radial-gradient(820px circle at 88% 20%, rgba(250, 204, 21, 0.10), transparent 55%),
        radial-gradient(760px circle at 50% 140%, rgba(59, 130, 246, 0.14), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.86) 0%, rgba(11, 27, 58, 0.90) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.32);
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(14px) saturate(1.15);
    z-index: 250;
}

.bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.46) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.32) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.22) 0 1px, transparent 2px) 0 0 / 260px 260px;
    pointer-events: none;
    opacity: 0.55;
    z-index: 0;
}

.bottom-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%, rgba(15, 23, 42, 0.34) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.nav-btn-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 14px;
    position: relative;
}

.nav-btn.active {
    color: rgba(250, 204, 21, 0.96);
}

.nav-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.nav-btn:hover {
    background: rgba(248, 250, 252, 0.06);
}

.nav-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.96), rgba(14, 165, 233, 0.65));
    box-shadow: 0 14px 30px rgba(250, 204, 21, 0.18);
}

/* Content Screens */
.content-screen {
    display: none;
    padding: var(--app-gutter);
    min-height: calc(100vh - 140px);
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
}

.content-screen.active {
    display: block;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.app-header-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.app-header-subtitle {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(71, 85, 105, 0.95);
}

#vehicles-content .app-header {
    position: relative;
    isolation: isolate;
    padding: 1.05rem 1.15rem 1.25rem;
    margin: 0.25rem 0 1.1rem;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.95), rgba(14, 165, 233, 0.55)) 0 0 / 5px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.22), transparent 60%),
        radial-gradient(760px circle at 88% 16%, rgba(34, 197, 94, 0.14), transparent 58%),
        radial-gradient(720px circle at 50% 120%, rgba(59, 130, 246, 0.18), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

#vehicles-content .app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px) 0 0 / 260px 260px,
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0 / 310px 310px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

#vehicles-content .app-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%, rgba(15, 23, 42, 0.30) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 62%),
        linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.75), transparent)
            1.15rem calc(100% - 0.65rem) / calc(100% - 2.3rem) 1px no-repeat;
    pointer-events: none;
    z-index: 0;
}

#vehicles-content .app-header > * {
    position: relative;
    z-index: 1;
}

#vehicles-content .app-header h2 {
    margin: 0;
    color: rgba(248, 250, 252, 0.98);
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.02em;
    text-shadow: 0 18px 38px rgba(2, 6, 23, 0.45);
}

#vehicles-content .app-header-subtitle {
    color: rgba(250, 204, 21, 0.92);
    text-shadow: 0 10px 22px rgba(2, 6, 23, 0.45);
}

#vehicles-content .settings-btn {
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.22);
    color: rgba(248, 250, 252, 0.95);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(10px);
}

#vehicles-content .settings-btn:hover {
    background: rgba(248, 250, 252, 0.12);
    border-color: rgba(226, 232, 240, 0.3);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

@media (max-width: 640px) {
    #main-app {
        padding-top: 104px;
        padding-bottom: 90px;
    }

    .bottom-nav {
        left: 0.6rem;
        right: 0.6rem;
        padding: 0.6rem 0.65rem;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .nav-btn-group {
        gap: 0.45rem;
        flex: 1 1 auto;
        justify-content: space-between;
    }

    .nav-btn {
        padding: 0.35rem;
        font-size: 0.7rem;
    }

    .nav-btn i {
        font-size: 1.25rem;
        margin-bottom: 0.1rem;
    }

    .nav-btn span {
        font-size: 0.7rem;
    }

    .mode-bar {
        top: 86px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        justify-content: center;
    }

    .mode-bar select {
        font-size: 0.85rem;
    }

    .content-screen {
        padding: 0.85rem;
        min-height: calc(100vh - 120px);
    }

    .post-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .post-avatar {
        width: 40px;
        height: 40px;
    }

    .post-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .post-options {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .feed-filters {
        width: 100%;
        gap: 0.4rem;
        overflow-x: auto;
    }

    .feed-filters .filter-btn {
        flex: 1 0 auto;
        font-size: 0.75rem;
        padding: 0.45rem 0.6rem;
        white-space: nowrap;
    }

    .discovery-feed {
        padding: 0.75rem;
    }

    .premium-section {
        padding: 0.75rem;
    }

    .premium-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .photos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .photo-img,
    .photo-placeholder {
        height: 100px;
    }

    .profile-container {
        padding: 1.25rem;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .chat-modal .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

.modal .modal-content {
    width: calc(100% - 1.5rem);
    max-width: 420px;
}
}

.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination-bar .page-btn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(11, 27, 58, 0.92);
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
}

.pagination-bar .page-btn:hover {
    border-color: rgba(59, 130, 246, 0.35);
}

.pagination-bar .page-btn.active {
    background: linear-gradient(135deg, rgba(11, 27, 58, 0.98), rgba(29, 78, 216, 0.92));
    color: #f8fafc;
    border-color: rgba(226, 232, 240, 0.35);
}

.pagination-bar .page-btn:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}

.pagination-bar .page-ellipsis {
    color: rgba(71, 85, 105, 0.8);
    font-weight: 900;
    padding: 0 0.25rem;
}

/* Vehicle modal */
.vehicle-modal {
    width: min(860px, calc(100% - 1.5rem));
    max-width: 860px;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 18px;
}

.vehicle-modal-media {
    position: relative;
    background: rgba(2, 6, 23, 0.92);
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-modal-photo {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#vehicle-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vehicle-media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(2, 6, 23, 0.55);
    color: rgba(248, 250, 252, 0.98);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#vehicle-media-prev { left: 0.85rem; }
#vehicle-media-next { right: 0.85rem; }

.vehicle-media-counter {
    position: absolute;
    bottom: 4.7rem;
    right: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.16);
    color: rgba(248, 250, 252, 0.92);
    font-weight: 800;
    font-size: 0.85rem;
}

.vehicle-media-thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.72) 40%, rgba(2, 6, 23, 0.86) 100%);
    scrollbar-width: none;
}
.vehicle-media-thumbs::-webkit-scrollbar { display: none; }

.vehicle-media-thumb {
    flex: 0 0 auto;
    width: 54px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(15, 23, 42, 0.55);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}
.vehicle-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}
.vehicle-media-thumb.active {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.vehicle-modal-body {
    padding: 1.1rem 1.15rem 1.2rem;
    background: rgba(255, 255, 255, 0.96);
}

.vehicle-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.vehicle-modal-head h3 {
    margin: 0;
    color: #0b1b3a;
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

.vehicle-modal-sub,
.vehicle-modal-seller {
    margin: 0.25rem 0 0;
    color: rgba(51, 65, 85, 0.92);
    font-weight: 650;
}

.vehicle-modal-price {
    font-weight: 950;
    color: #1d4ed8;
    font-size: 1.1rem;
    white-space: nowrap;
}

.vehicle-modal-specs {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem 0.85rem;
}

.vehicle-spec-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.vehicle-spec-row span {
    color: rgba(51, 65, 85, 0.85);
    font-weight: 800;
}

.vehicle-spec-row strong {
    color: rgba(11, 27, 58, 0.95);
    font-weight: 900;
}

.vehicle-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .vehicle-modal-media { height: 320px; }
    .vehicle-media-counter { bottom: 4.5rem; }
    .vehicle-modal-actions { justify-content: stretch; flex-direction: column; }
}

/* Real estate modal (luxury profile card) */
.realestate-modal {
    width: min(920px, 94vw);
    max-width: 920px;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #0b1020;
    border-radius: 24px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    box-shadow: 0 35px 80px rgba(2, 6, 23, 0.28);
}

#realestate-modal .modal-close-btn {
    background: rgba(248, 250, 252, 0.92);
    color: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
}

#realestate-modal .modal-close-btn:hover {
    background: rgba(241, 245, 249, 0.98);
}

.realestate-modal-media {
    position: relative;
    height: 300px;
    background: #050814;
    display: flex;
    align-items: center;
    justify-content: center;
}

.realestate-modal-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.realestate-modal-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.04) 0%, rgba(2, 6, 23, 0.72) 100%);
}

#realestate-modal-image,
#realestate-modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#realestate-modal-video {
    background: #050814;
}

.realestate-media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(2, 6, 23, 0.55);
    color: rgba(248, 250, 252, 0.98);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

#realestate-media-prev { left: 0.85rem; }
#realestate-media-next { right: 0.85rem; }

.realestate-media-counter {
    position: absolute;
    bottom: 4.7rem;
    right: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.16);
    color: rgba(248, 250, 252, 0.92);
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 4;
}

.realestate-featured-pill {
    position: absolute;
    left: 0.95rem;
    bottom: 0.95rem;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #0b1020;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
    z-index: 4;
}

.realestate-media-thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.72) 40%, rgba(2, 6, 23, 0.86) 100%);
    scrollbar-width: none;
    z-index: 4;
}
.realestate-media-thumbs::-webkit-scrollbar { display: none; }

.realestate-media-thumb {
    flex: 0 0 auto;
    width: 58px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(15, 23, 42, 0.55);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.realestate-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.05);
}

.realestate-media-thumb.is-video {
    background: rgba(15, 23, 42, 0.75);
}

.realestate-media-thumb-icon {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(96, 165, 250, 0.95);
    font-size: 1rem;
}

.realestate-media-thumb.active {
    border-color: rgba(37, 99, 235, 0.75);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}

.realestate-modal-body {
    padding: 1.25rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
    background: #ffffff;
    color: #0b1020;
}

#realestate-modal .featured-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(29, 78, 216, 0.92);
}

.realestate-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.realestate-modal-head h3 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 850;
}

.realestate-modal-meta {
    margin: 0.35rem 0 0;
    color: rgba(71, 85, 105, 0.92);
}

.realestate-modal-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: rgba(29, 78, 216, 0.95);
    white-space: nowrap;
}

.realestate-modal-desc {
    margin: 0;
    color: rgba(15, 23, 42, 0.9);
    line-height: 1.5;
    width: 100%;
    min-height: 96px;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    white-space: pre-wrap;
}

.realestate-modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem 0.9rem;
}

.realestate-modal-detail {
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.realestate-modal-detail span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.92);
}

.realestate-modal-detail strong {
    font-size: 0.92rem;
    font-weight: 850;
    color: rgba(15, 23, 42, 0.95);
}

.realestate-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.realestate-modal-tag {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.28);
    color: rgba(15, 23, 42, 0.95);
    font-size: 0.72rem;
    font-weight: 700;
}

.realestate-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

#realestate-modal .btn-primary {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #0b1020;
    border: none;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

#realestate-modal .btn-secondary {
    background: rgba(248, 250, 252, 0.98);
    color: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(37, 99, 235, 0.22);
}

@media (max-width: 640px) {
    .realestate-modal-media { height: 230px; }
    .realestate-media-counter { bottom: 4.5rem; }
    .realestate-modal-body { padding: 1.1rem 1.2rem 1.4rem; }
    .realestate-modal-actions { justify-content: stretch; flex-direction: column; }
}

/* Service modal */
#service-modal .service-profile-modal {
    width: min(960px, 94vw);
    max-width: 960px;
    height: min(98vh, 980px);
    max-height: 98vh;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

#service-modal .service-modal-media {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #0b1b3a;
    min-height: 260px;
    max-height: 36vh;
}

#service-modal .service-modal-hero {
    position: relative;
    flex: 1;
    min-height: 0;
}

#service-modal .service-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#service-modal .service-modal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.65) 100%);
}

#service-modal .service-modal-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    z-index: 1;
}

#service-modal .service-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#service-modal .service-modal-tag {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.2);
    color: rgba(248, 250, 252, 0.95);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#service-modal .service-modal-provider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.2);
    color: rgba(248, 250, 252, 0.96);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.45);
}

#service-modal .service-modal-provider img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(226, 232, 240, 0.25);
}

#service-modal .service-modal-provider-name {
    font-weight: 800;
    font-size: 0.95rem;
}

#service-modal .service-modal-provider-role {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 0.15rem;
}

#service-modal .service-modal-provider-badge {
    margin-left: auto;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: rgba(187, 247, 208, 0.95);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#service-modal .service-modal-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    overflow-x: auto;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2) 0%, rgba(2, 6, 23, 0.75) 100%);
}

#service-modal .service-modal-thumbs::-webkit-scrollbar {
    display: none;
}

#service-modal .service-modal-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.25);
    background: rgba(15, 23, 42, 0.35);
    cursor: pointer;
    padding: 0;
}

#service-modal .service-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#service-modal .service-modal-thumb.active {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

#service-modal .service-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    background: rgba(15, 23, 42, 0.7);
    color: rgba(248, 250, 252, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

#service-modal .service-modal-prev { left: 0.85rem; }
#service-modal .service-modal-next { right: 0.85rem; }

#service-modal .service-modal-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

#service-modal .service-modal-nav:focus-visible {
    outline: 2px solid rgba(191, 219, 254, 0.85);
    outline-offset: 2px;
}

#service-modal .service-modal-body {
    padding: 1.1rem 1.2rem 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
}

#service-modal .service-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

#service-modal .service-modal-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: rgba(71, 85, 105, 0.9);
    font-weight: 700;
    margin-top: 0.35rem;
}

#service-modal .service-modal-price-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

#service-modal .service-modal-price-note {
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.8);
    font-weight: 700;
}

#service-modal .service-modal-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: #0b1b3a;
}

#service-modal .service-rating-stars i {
    color: #fbbf24;
}

#service-modal .service-rating-stars .is-off {
    color: #e2e8f0;
}

#service-modal .service-modal-section h4 {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(71, 85, 105, 0.85);
}

#service-modal .service-modal-highlights {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
    color: rgba(51, 65, 85, 0.92);
    font-weight: 650;
}

#service-modal .service-modal-highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#service-modal .service-modal-highlights i {
    color: #22c55e;
}

#service-modal .service-modal-availability {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#service-modal .service-modal-availability span {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: rgba(30, 64, 175, 0.9);
    font-weight: 800;
    font-size: 0.78rem;
}

#service-modal .service-modal-desc {
    color: rgba(30, 41, 59, 0.95);
    line-height: 1.6;
    margin: 0;
}

#service-modal .service-modal-meta {
    color: rgba(100, 116, 139, 0.9);
    margin: 0;
    font-weight: 650;
}

#service-modal .service-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#service-modal .service-modal-map {
    margin-top: 0.75rem;
    min-height: 150px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.4), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(226, 232, 240, 0.18);
    color: rgba(248, 250, 252, 0.95);
    display: flex;
    align-items: flex-end;
    padding: 0.85rem;
    font-weight: 800;
}

#service-modal .service-modal-map span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 23, 42, 0.75);
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
}

@media (max-width: 900px) {
    #service-modal .service-profile-modal {
        height: min(92vh, 740px);
        max-height: 92vh;
        overflow: hidden;
    }
    #service-modal .service-modal-media {
        height: auto;
        max-height: 30vh;
    }
    #service-modal .service-modal-body {
        overflow-y: auto;
    }
}

.app-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Auth Screens */
.auth-screen {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    z-index: 1500;
    backdrop-filter: blur(6px);
}

.auth-card {
    background: #ffffff;
    width: min(420px, 100%);
    max-height: 90vh;
    border-radius: 18px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.auth-headline h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #0f172a;
}

.auth-headline p {
    margin: 0.35rem 0 0;
    color: #4b5563;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
}

.auth-field input {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    background: #f9fafb;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding-right: 2.85rem;
}

.password-toggle {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.65);
    outline-offset: 2px;
}

.auth-field textarea {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    background: #f9fafb;
    resize: vertical;
}

.auth-field.auth-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.auth-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: rgba(15, 23, 42, 0.06);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.auth-close:hover {
    background: rgba(15, 23, 42, 0.15);
}

.auth-switch {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

.onboarding-card {
    width: min(520px, 100%);
}

.onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
}

.onboarding-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

.onboarding-dot.active {
    background: #2563eb;
}

.onboarding-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.onboarding-actions .btn-primary,
.onboarding-actions .btn-secondary {
    width: auto;
    margin: 0;
    padding: 0.75rem 1.25rem;
}

.onboarding-actions .btn-primary {
    flex: 1;
}

@media (max-width: 520px) {
    .onboarding-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .onboarding-actions .btn-primary,
    .onboarding-actions .btn-secondary {
        width: 100%;
    }
}

.btn-primary.full-width,
.btn-secondary.full-width {
    width: 100%;
    justify-content: center;
}

/* Home (Kijiji-style) */
.home-topbar {
    background: white;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.home-topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.home-logo-inline { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; color: #2563eb; }
.home-logo-inline i { font-size: 1.25rem; }
.home-logo-inline .brand-logo { height: 64px; width: auto; display: block; max-width: min(320px, 70vw); }
.home-logo-inline .brand-word {
    font-family: ui-serif, "Georgia", "Times New Roman", Times, serif;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}
.home-logo-inline.logo-loaded .brand-word { display: none; }
.home-logo-inline.logo-missing .brand-logo { display: none; }
.home-topbar-right { display: flex; align-items: center; gap: 0.5rem; }
.home-auth { display: flex; align-items: center; gap: 0.5rem; }

.home-category-nav {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.25rem 0.1rem 0.6rem;
    margin: -0.25rem 0 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.home-category-nav {
    border-radius: 18px;
}

.content-screen#home-content .home-category-nav {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    padding: 0.55rem;
}

.home-category-nav::-webkit-scrollbar {
    height: 0;
    display: none;
}

.home-category-nav {
    scrollbar-width: none;
}

.home-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(15, 23, 42, 0.92);
    font-weight: 850;
    font-size: 0.92rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    scroll-snap-align: start;
}

.home-category-chip i {
    color: rgba(37, 99, 235, 0.9);
}

.home-category-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.12);
}

.home-category-chip:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

.home-category-chip.active {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-color: rgba(37, 99, 235, 0.85);
    color: #ffffff;
}

.home-category-chip.active i {
    color: #ffffff;
}

.home-search {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.home-search-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}
.home-search-field { display: flex; flex-direction: column; gap: 0.4rem; }
.home-search-field label { font-size: 0.85rem; font-weight: 600; color: #555; }
.home-input,
.home-select,
.home-search-field input,
.home-search-field select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 2px solid #e6eaf2;
    border-radius: 12px;
    background: #fff;
    font-size: 0.95rem;
}
.home-ai-input {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.home-ai-input input {
    flex: 1;
    min-width: 0;
}
.home-ai-btn {
    border: 1px solid #1d4ed8;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: 12px;
    padding: 0.62rem 0.75rem;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
}
.home-ai-btn:hover {
    background: #1d4ed8;
}
.home-ai-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

.home-personalized {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.home-personalized-section {
    padding: 1rem;
}

.home-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
}
.home-filters {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    height: fit-content;
}
.home-filters h3 { margin-bottom: 0.75rem; color: #333; }
.filter-block { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; }
.price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; align-items: center; }
.price-row .dash { color: #999; }

.home-listings {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.home-listings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.home-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}
.home-card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f2f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-card-item:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.1); }
.home-card-img { width: 100%; height: 150px; object-fit: cover; }
.home-card-body { padding: 0.75rem; }
.home-card-title { font-weight: 700; color: #333; margin-bottom: 0.25rem; font-size: 1rem; }
.home-card-price { color: #2563eb; font-weight: 800; margin-bottom: 0.15rem; }
.home-card-loc { color: #666; font-size: 0.85rem; }

.home-footer {
    margin-top: 1rem;
    background: white;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.home-footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.home-footer-links a { color: #2563eb; text-decoration: none; font-weight: 600; }
.home-footer-copy { font-size: 0.9rem; }

.home-sponsored-break {
    margin: 1rem 0;
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border: 1px solid #eef2f7;
}

.home-sponsored-break-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-sponsored-break-copy h3 {
    margin: 0.15rem 0 0.25rem;
    color: #0f172a;
    font-size: 1.1rem;
}

.home-sponsored-break-copy p {
    margin: 0;
    color: #475569;
}

.home-sponsored-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #0b1b3a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-sponsored-label::before {
    content: "●";
    font-size: 0.85rem;
    color: #2563eb;
}

.home-sponsored-break-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.home-bottom-ad {
    margin: 1.25rem 0;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    padding: 1.2rem 1.3rem;
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.2fr);
    gap: 1.25rem;
    align-items: center;
}
.home-bottom-ad-media {
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}
.home-bottom-ad-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-bottom-ad-image-only {
    display: block;
    padding: 0;
    gap: 0;
    grid-template-columns: 1fr;
    overflow: hidden;
}

.home-bottom-ad-image-only .home-bottom-ad-media {
    position: relative;
    height: clamp(110px, 14vw, 130px);
    min-height: 110px;
    box-shadow: none;
}

.home-bottom-ad-image-only.is-placeholder .home-bottom-ad-media img {
    object-fit: contain;
}

#home-bottom-ad-image {
    object-fit: cover;
}

#dating-ad-slot.home-bottom-ad-image-only .home-bottom-ad-media img {
    object-fit: cover;
}

#nearby-ad-slot.home-bottom-ad-image-only .home-bottom-ad-media img {
    object-fit: cover;
}

.home-bottom-ad-image-only .home-bottom-ad-slot-overlay {
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.15) 0%, rgba(2, 6, 23, 0.78) 100%);
    text-shadow: 0 12px 28px rgba(2, 6, 23, 0.65);
    padding: 0.75rem;
    gap: 0.35rem;
}

.home-bottom-ad-image-only:not(.is-placeholder) .home-bottom-ad-slot-overlay {
    display: none;
}

.home-bottom-ad-image-only .home-bottom-ad-slot-chip {
    background: rgba(2, 6, 23, 0.36);
    border-color: rgba(226, 232, 240, 0.6);
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
}

.home-bottom-ad-image-only .home-bottom-ad-slot-headline {
    font-size: 1.15rem;
    font-weight: 950;
}

.home-bottom-ad-image-only .home-bottom-ad-click {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.home-bottom-ad-image-only .home-bottom-ad-click:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: -3px;
}
.home-bottom-ad-slot {
    border-style: dashed;
    border-color: rgba(37, 99, 235, 0.35);
    background:
        radial-gradient(900px circle at 15% 15%, rgba(14, 165, 233, 0.10), transparent 60%),
        radial-gradient(900px circle at 80% 0%, rgba(250, 204, 21, 0.14), transparent 60%),
        linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.96));
}

.home-bottom-ad-slot .home-bottom-ad-media {
    position: relative;
    border: 1px dashed rgba(37, 99, 235, 0.28);
    box-shadow: none;
    background:
        radial-gradient(780px circle at 10% 20%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(720px circle at 90% 10%, rgba(250, 204, 21, 0.14), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(11, 27, 58, 0.92));
}

.home-bottom-ad-slot .home-bottom-ad-media img {
    opacity: 0.18;
    filter: grayscale(0.35) saturate(0.85);
    transform: scale(1.02);
}

.home-bottom-ad-slot-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    gap: 0.55rem;
    color: rgba(248, 250, 252, 0.96);
}

.home-bottom-ad-slot-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px dashed rgba(226, 232, 240, 0.55);
    background: rgba(2, 6, 23, 0.22);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-bottom-ad-slot-headline {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.home-bottom-ad-slot-caption {
    max-width: 28ch;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.45;
}

.home-bottom-ad-content h3 {
    margin: 0.2rem 0 0.45rem;
    font-size: 1.35rem;
    color: #0f172a;
}
.home-bottom-ad-content p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}
.home-bottom-ad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.8rem 0 1rem;
}
.home-bottom-ad-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
}
.home-bottom-ad-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.home-bottom-ad-actions .btn-secondary {
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
}

@media (max-width: 900px) {
    .home-bottom-ad {
        grid-template-columns: 1fr;
    }
    .home-bottom-ad-media {
        min-height: 180px;
    }
}

@media (max-width: 720px) {
    .home-sponsored-break-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-sponsored-break-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.home-sticky-ad {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
    transform: translateX(-50%);
    width: min(var(--app-max-width), calc(100vw - 1.5rem));
    border-radius: 18px;
    padding: 0.8rem 0.85rem;
    background:
        radial-gradient(860px circle at 20% 0%, rgba(14, 165, 233, 0.14), transparent 55%),
        radial-gradient(760px circle at 85% 30%, rgba(250, 204, 21, 0.10), transparent 60%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    border: 1px solid rgba(226, 232, 240, 0.16);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.32);
    z-index: 260;
}

.home-sticky-ad-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.home-sticky-ad-copy {
    min-width: 0;
}

.home-sticky-ad-title {
    font-weight: 900;
    color: rgba(248, 250, 252, 0.96);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-sticky-ad-subtitle {
    margin-top: 0.2rem;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-sticky-ad-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.home-sticky-ad .home-sponsored-label {
    background: rgba(248, 250, 252, 0.08);
    border-color: rgba(226, 232, 240, 0.18);
    color: rgba(248, 250, 252, 0.9);
}

.home-sticky-ad .home-sponsored-label::before {
    color: rgba(250, 204, 21, 0.92);
}

/* Sticky banner is intended for smaller viewports. */
@media (min-width: 900px) {
    #home-content .home-sticky-ad {
        display: none !important;
    }
}

#home-content.sticky-ad-visible {
    padding-bottom: calc(var(--app-gutter) + 92px);
}

/* Home screen luxury theme */
#home-content {
    position: relative;
    border-radius: 24px;
    --home-accent: #1d4ed8;
    --home-accent-2: #3b82f6;
    --home-bg-a1: rgba(59, 130, 246, 0.14);
    --home-bg-a2: rgba(14, 165, 233, 0.12);
    --home-bg-base1: #f8fafc;
    --home-bg-base2: #f1f5f9;
    --home-bg-base3: #e2e8f0;
    background:
        radial-gradient(1200px circle at 10% -10%, var(--home-bg-a1), transparent 56%),
        radial-gradient(900px circle at 90% 0%, var(--home-bg-a2), transparent 54%),
        linear-gradient(180deg, var(--home-bg-base1) 0%, var(--home-bg-base2) 55%, var(--home-bg-base3) 100%);
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

#home-content .home-topbar,
#home-content .home-search,
#home-content .home-filters,
#home-content .home-listings,
#home-content .home-sponsored-break,
#home-content .home-footer {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

/* Home header strip (lux) */
#home-content .home-topbar {
    position: relative;
    overflow: visible;
    border-radius: 22px;
    padding: 0.95rem 1.15rem;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.95), rgba(14, 165, 233, 0.55)) 0 0 / 5px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.24), transparent 60%),
        radial-gradient(760px circle at 88% 16%, rgba(34, 197, 94, 0.16), transparent 58%),
        radial-gradient(720px circle at 50% 120%, rgba(59, 130, 246, 0.22), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

#home-content .home-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px) 0 0 / 260px 260px,
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0 / 310px 310px;
    pointer-events: none;
    opacity: 0.55;
}

#home-content .home-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(29, 78, 216, 0.0), rgba(29, 78, 216, 0.45), rgba(14, 165, 233, 0.35), rgba(29, 78, 216, 0.0));
    pointer-events: none;
    opacity: 0.9;
}

#home-content .home-topbar .home-logo-inline { color: rgba(248, 250, 252, 0.98); }
#home-content .home-topbar .home-logo-slogan { color: rgba(226, 232, 240, 0.82); }

#home-content .home-topbar .btn-link {
    color: rgba(248, 250, 252, 0.92);
}

#home-content .home-topbar .btn-link:hover {
    background: rgba(248, 250, 252, 0.12);
    color: #ffffff;
}

#home-content .home-topbar .brand-word {
    color: rgba(248, 250, 252, 0.98);
    text-shadow: 0 10px 24px rgba(2, 6, 23, 0.55);
}

/* Home sponsored ads (luxury) */
#home-content .home-featured-ads {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.95), rgba(14, 165, 233, 0.55)) 0 0 / 5px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.26), transparent 60%),
        radial-gradient(760px circle at 88% 16%, rgba(34, 197, 94, 0.16), transparent 58%),
        radial-gradient(720px circle at 50% 120%, rgba(59, 130, 246, 0.22), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

#home-content .home-featured-ads::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px) 0 0 / 260px 260px,
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0 / 310px 310px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

#home-content .home-featured-ads::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%, rgba(15, 23, 42, 0.30) 100%),
        radial-gradient(600px circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

#home-content .home-featured-ads > * {
    position: relative;
    z-index: 1;
}

#home-content .home-featured-ads .featured-ads-header {
    margin-bottom: 1.1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(29, 78, 216, 0.92), rgba(14, 165, 233, 0.7));
    border: 1px solid rgba(226, 232, 240, 0.2);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.2);
}

#home-content .home-featured-ads .featured-ads-header h3 {
    color: #f8fafc;
    letter-spacing: 0.02em;
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

#home-content .home-featured-ads .featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(226, 232, 240, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 252, 0.92);
}

#home-content .home-featured-ads .featured-label::before {
    content: "●";
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

#home-content #home-promote-ad.btn-luxe {
    background: rgba(248, 250, 252, 0.96);
    color: #0b1b3a;
    border: 1px solid rgba(226, 232, 240, 0.65);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
}

#home-content #home-promote-ad.btn-luxe:hover {
    filter: brightness(1.02);
    box-shadow: 0 22px 52px rgba(2, 6, 23, 0.36);
}

#home-content .home-featured-ads .featured-ad-card {
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.30);
}

#home-content .home-featured-ads .featured-ad-card::before {
    border-color: rgba(59, 130, 246, 0.18);
}

#home-content .home-featured-ads .featured-ad-card::after {
    opacity: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.18) 60%, rgba(2, 6, 23, 0.35) 100%);
}

#home-content .home-featured-ads .featured-ad-body h4 {
    color: #0b1b3a;
    letter-spacing: 0.01em;
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

#home-content .home-featured-ads .featured-ad-body p {
    color: #1d4ed8;
    font-weight: 800;
}

#home-content .home-featured-ads .featured-ad-body span {
    color: rgba(51, 65, 85, 0.92);
}

#home-content .home-featured-ads .featured-ad-tag {
    background: rgba(11, 27, 58, 0.90);
    border: 1px solid rgba(226, 232, 240, 0.75);
    color: rgba(248, 250, 252, 0.98);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}

#home-content .home-featured-ads .featured-ad-tag.tag-top {
    background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    color: #f8fafc;
    border-color: rgba(226, 232, 240, 0.70);
}

#home-content .home-featured-ads .featured-ad-tag.tag-new {
    background: rgba(248, 250, 252, 0.94);
    color: #0b1b3a;
    border-color: rgba(11, 27, 58, 0.25);
}

#home-content .home-featured-ads .featured-ad-tag.tag-premium {
    background: linear-gradient(135deg, rgba(11, 27, 58, 0.96) 0%, rgba(15, 23, 42, 0.86) 100%);
    color: rgba(248, 250, 252, 0.98);
    border-color: rgba(226, 232, 240, 0.60);
}

#home-content .home-featured-ads .carousel-btn {
    background: rgba(2, 6, 23, 0.55);
    border-color: rgba(226, 232, 240, 0.22);
    backdrop-filter: blur(6px);
    color: rgba(248, 250, 252, 0.96);
}

#home-content .home-featured-ads .carousel-btn:hover {
    background: rgba(2, 6, 23, 0.72);
    border-color: rgba(226, 232, 240, 0.3);
}

/* Home filter strip (lux) */
#home-content .home-filters {
    position: relative;
    overflow: hidden;
}

#home-content .home-filters::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(14, 165, 233, 0.10), transparent 55%);
    pointer-events: none;
}

#home-content .home-filters::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.75), rgba(14, 165, 233, 0.2));
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    pointer-events: none;
}

#home-content .home-logo-inline { color: #0f172a; }
#home-content .home-logo-inline i { color: var(--home-accent); }
#home-content .home-logo-inline .brand-logo { height: 80px; filter: drop-shadow(0 18px 34px rgba(2, 6, 23, 0.26)); }
#home-content .home-logo-slogan { color: rgba(71, 85, 105, 0.9); }

#home-content .home-hero-copy {
    margin-bottom: 0.75rem;
}

#home-content .home-hero-copy h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: #0f172a;
}

#home-content .home-hero-copy p {
    margin: 0.25rem 0 0;
    color: rgba(71, 85, 105, 0.92);
    font-weight: 650;
}

#home-content .home-search {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 1.15rem 1.15rem 1.05rem;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.95), rgba(14, 165, 233, 0.55)) 0 0 / 5px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.24), transparent 60%),
        radial-gradient(760px circle at 88% 16%, rgba(34, 197, 94, 0.16), transparent 58%),
        radial-gradient(720px circle at 50% 120%, rgba(59, 130, 246, 0.22), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

#home-content .home-search::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px) 0 0 / 260px 260px,
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0 / 310px 310px;
    pointer-events: none;
    opacity: 0.55;
}

#home-content .home-search .home-hero-copy h2 {
    color: rgba(248, 250, 252, 0.98);
    text-shadow: 0 14px 36px rgba(2, 6, 23, 0.55);
}

#home-content .home-search .home-hero-copy p {
    color: rgba(226, 232, 240, 0.86);
}

#home-content .home-search-row {
    position: relative;
    z-index: 1;
    padding: 0.6rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 16px 36px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(10px);
}

#home-content .home-search-field label {
    font-weight: 800;
    color: rgba(226, 232, 240, 0.92);
}

#home-content .home-search-field input,
#home-content .home-search-field select {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(2, 6, 23, 0.40);
    color: rgba(248, 250, 252, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#home-content .home-search-field input:focus,
#home-content .home-search-field select:focus {
    outline: 3px solid rgba(226, 232, 240, 0.22);
    outline-offset: 2px;
    border-color: rgba(226, 232, 240, 0.35);
}

#home-content #home-search-btn.btn-primary {
    min-height: 44px;
    border-radius: 14px;
    padding: 0 1.15rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

#home-content .discovery-feed {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

#home-content .home-discover-header {
    margin-bottom: 1rem;
}

#home-content .home-discover-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

#home-content .home-discover-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 0.95rem;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 999px;
    color: #2563eb;
    font-weight: 900;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

#home-content .home-discover-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

#home-content .home-discover-toggle:focus {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

#home-content .home-discover-toggle-label {
    font-size: 0.95rem;
    line-height: 1;
}

#home-content .home-discover.is-collapsed .home-discover-toggle {
    border-color: rgba(148, 163, 184, 0.65);
    color: rgba(15, 23, 42, 0.9);
}

#home-content .home-discover.is-collapsed .home-discover-toggle:hover {
    border-color: rgba(37, 99, 235, 0.45);
    color: rgba(15, 23, 42, 0.95);
}

#home-content .home-discover.is-collapsed .home-discover-toggle i {
    color: rgba(37, 99, 235, 0.95);
}

#home-content .home-discover.is-collapsed .home-discover-toggle-label {
    color: rgba(15, 23, 42, 0.9);
}

#home-content .home-discover-toggle i {
    font-size: 0.95rem;
}

@media (max-width: 520px) {
    #home-content .home-discover-toggle-label {
        display: none;
    }

    #home-content .home-discover-toggle {
        width: 44px;
        padding: 0;
        justify-content: center;
    }
}

#home-content .home-discover.is-collapsed .home-discover-header {
    margin-bottom: 1rem;
}

#home-content .home-discover.is-collapsed .home-discover-body {
    display: none;
}

/* Home discovery filter strip (lux) */
#home-content .feed-filters {
    width: 100%;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.92) 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#home-content .feed-filters::-webkit-scrollbar {
    height: 0;
}

#home-content .feed-filters .filter-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.95);
    color: rgba(15, 23, 42, 0.9);
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 16px rgba(15, 23, 42, 0.08);
}

#home-content .feed-filters .filter-btn:hover {
    background: rgba(219, 234, 254, 0.95);
    border-color: rgba(59, 130, 246, 0.45);
    color: rgba(15, 23, 42, 0.95);
}

#home-content .feed-filters .filter-btn.active {
    background: linear-gradient(135deg, var(--home-accent-2) 0%, var(--home-accent) 60%, #1e40af 100%);
    border-color: rgba(30, 64, 175, 0.2);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

#home-content .geo-filter-bar {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
}

#home-content .geo-filter-btn {
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

#home-content .geo-filter-btn.active,
#home-content .geo-filter-btn:focus {
    background: linear-gradient(135deg, var(--home-accent-2), var(--home-accent));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.20);
}

#home-content .home-search-field label,
#home-content .home-filters h3,
#home-content .home-listings-header h3,
#home-content .home-listings-header span {
    color: #0f172a;
}

#home-content .home-filters h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.82);
}

#home-content .home-filters .filter-block {
    position: relative;
    z-index: 1;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.14);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.92) 0%, rgba(239, 246, 255, 0.92) 100%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

#home-content .home-filters .filter-block label {
    font-weight: 800;
    color: rgba(15, 23, 42, 0.8);
    letter-spacing: 0.02em;
}

#home-content .home-filters .price-row .dash {
    color: rgba(71, 85, 105, 0.75);
    font-weight: 800;
}

#home-content .home-filters .home-input,
#home-content .home-filters .home-select,
#home-content .home-filters input,
#home-content .home-filters select {
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#home-content .home-filters .home-input:focus,
#home-content .home-filters .home-select:focus,
#home-content .home-filters input:focus,
#home-content .home-filters select:focus {
    outline: 3px solid rgba(59, 130, 246, 0.22);
    outline-offset: 2px;
    border-color: rgba(59, 130, 246, 0.35);
}

#home-content #home-apply-filters.btn-secondary {
    position: relative;
    z-index: 1;
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(14, 165, 233, 0.10) 100%);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #0f172a;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
}

#home-content .home-input,
#home-content .home-select,
#home-content .home-search-field input,
#home-content .home-search-field select {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #0f172a;
}

#home-content .home-search-row .home-search-field input,
#home-content .home-search-row .home-search-field select {
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 14px;
    min-height: 44px;
}

#home-content .home-search-field input::placeholder,
#home-content .home-input::placeholder {
    color: #94a3b8;
}

#home-content .btn-primary,
#home-content .btn-luxe {
    min-height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--home-accent-2) 0%, var(--home-accent) 60%, #1e40af 100%);
    border: 1px solid rgba(30, 64, 175, 0.22);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

#home-content .btn-primary:hover,
#home-content .btn-luxe:hover {
    filter: brightness(1.03);
}

#home-content .btn-primary.small,
#home-content .btn-secondary.small,
#home-content .btn-luxe.small,
#home-content .btn-link.small {
    min-height: 36px;
    border-radius: 12px;
}

#home-content #home-promote-ad.btn-luxe {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    line-height: 1;
}

#home-content .btn-secondary {
    min-height: 42px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #0f172a;
}

#home-content .home-card-item {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

#home-content .home-card-title { color: #0f172a; }
#home-content .home-card-price { color: var(--home-accent-2); }
#home-content .home-card-loc { color: rgba(71, 85, 105, 0.92); }

#home-content .featured-tag {
    background: rgba(234, 179, 8, 0.14);
    color: #fef3c7;
    border-color: rgba(250, 204, 21, 0.35);
}

#home-content .home-footer-links a { color: #1d4ed8; }
#home-content .home-footer-copy { color: rgba(71, 85, 105, 0.92); }
/* Dating Page */
.companionship-pane {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}
.companionship-filters { display: flex; flex-direction: column; gap: 0.5rem; }
.companionship-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-items: end;
}
.companionship-filter-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
.companionship-filter-actions .btn-secondary.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.companionship-note {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}
.companionship-feed-header { margin: 0.5rem 0; }
.companionship-feed-header h3 { margin: 0; color: #111827; }
.companionship-feed-header p { margin: 0.15rem 0 0; color: #6b7280; }

.hookup-plus-pane {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.hookup-plus-note {
    margin: 0 0 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.hookup-plus-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(220px, 0.9fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.hookup-plus-radius-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hookup-plus-radius-row input[type="range"] {
    flex: 1;
}

.hookup-plus-radius-row span {
    min-width: 56px;
    text-align: right;
    font-weight: 700;
    color: #111827;
}

.hookup-plus-listings {
    margin-top: 0.85rem;
}

.hookup-plus-listings-head h4 {
    margin: 0;
    color: #111827;
}

.hookup-plus-listings-head p {
    margin: 0.1rem 0 0.6rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.hookup-plus-listings-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
}

.hookup-plus-listings-strip::-webkit-scrollbar {
    height: 8px;
}

.hookup-plus-listing-card {
    flex: 0 0 260px;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.75rem;
    align-items: center;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.55rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    scroll-snap-align: start;
}

.hookup-plus-listing-card img {
    width: 84px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.hookup-plus-listing-title {
    margin: 0;
    font-weight: 900;
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.2;
}

.hookup-plus-listing-meta {
    margin: 0.15rem 0 0;
    color: rgba(71, 85, 105, 0.92);
    font-weight: 700;
    font-size: 0.86rem;
}

.hookup-plus-deck-wrap {
    margin-top: 1rem;
}

.hookup-plus-deck {
    position: relative;
    height: clamp(360px, 52vh, 520px);
}

.hookup-plus-card {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #0b1020;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.22);
    touch-action: pan-y;
    user-select: none;
}

.hookup-plus-card-media {
    position: absolute;
    inset: 0;
}

.hookup-plus-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hookup-plus-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.86) 88%),
        radial-gradient(900px circle at 15% 20%, rgba(56, 189, 248, 0.18), transparent 55%);
}

.hookup-plus-card-badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 2;
}

.hookup-plus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.35);
    color: rgba(248, 250, 252, 0.96);
    font-size: 0.78rem;
    font-weight: 900;
}

.hookup-plus-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

.hookup-plus-card-meta {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    color: rgba(248, 250, 252, 0.96);
    text-shadow: 0 16px 40px rgba(2, 6, 23, 0.75);
}

.hookup-plus-card-meta h3 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -0.01em;
}

.hookup-plus-card-meta p {
    margin: 0.25rem 0 0;
    color: rgba(226, 232, 240, 0.9);
    font-weight: 700;
    line-height: 1.35;
}

.hookup-plus-card-mini {
    margin-top: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(2, 6, 23, 0.45);
    padding: 0.65rem 0.75rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.hookup-plus-card-mini img {
    width: 58px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.hookup-plus-card-mini strong {
    display: block;
    font-size: 0.92rem;
}

.hookup-plus-card-mini span {
    display: block;
    margin-top: 0.1rem;
    color: rgba(226, 232, 240, 0.85);
    font-weight: 700;
    font-size: 0.84rem;
}

.hookup-plus-empty {
    padding: 2.25rem 1rem;
    text-align: center;
    border-radius: 22px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.96);
}

.hookup-plus-empty h4 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 950;
}

.hookup-plus-empty p {
    margin: 0;
    color: rgba(71, 85, 105, 0.92);
    font-weight: 700;
}

.hookup-plus-actions {
    margin-top: 0.95rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.hookup-plus-actions #hookup-plus-pass {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #ef4444;
}

.hookup-plus-actions #hookup-plus-like {
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.32);
    color: #16a34a;
}

.hookup-plus-actions #hookup-plus-pass:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
}

.hookup-plus-actions #hookup-plus-like:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.46);
}

.hookup-plus-actions .btn-secondary {
    min-height: 46px;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font-weight: 900;
}

#dating-content.hookup-plus-mode .category-filter-bar {
    display: none;
}

@media (max-width: 860px) {
    .hookup-plus-controls {
        grid-template-columns: 1fr;
    }
    .hookup-plus-listing-card {
        flex-basis: 240px;
    }
}

.companionship-category-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0 1.25rem;
}

.companionship-category-card {
    position: relative;
    border: 1px solid rgba(250, 204, 21, 0.22);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    border-radius: 16px;
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
    overflow: hidden;
}

.companionship-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.16), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.10), transparent 45%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.0));
    opacity: 0.9;
    pointer-events: none;
}

.companionship-category-card::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -60%;
    width: 160%;
    height: 160%;
    background: conic-gradient(from 210deg, transparent 0 70%, rgba(250, 204, 21, 0.08) 80%, transparent 90% 100%);
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.companionship-category-card:hover,
.companionship-category-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45);
    border-color: rgba(250, 204, 21, 0.45);
    outline: none;
}

.companionship-category-card.active {
    border-color: rgba(250, 204, 21, 0.7);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.52), 0 0 0 2px rgba(250, 204, 21, 0.14);
}

.companionship-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.12);
    color: #fde68a;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.companionship-category-card.active .companionship-category-icon {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
}

.companionship-category-text h4 {
    margin: 0;
    color: #f8fafc;
    font-weight: 800;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.companionship-category-text { position: relative; z-index: 1; }

.companionship-mini-filters {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.25rem 0 1.15rem;
}

.companionship-mini-search input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(250, 204, 21, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    color: #f8fafc;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

.companionship-mini-search input::placeholder { color: rgba(203, 213, 245, 0.85); }
.companionship-mini-search input:focus {
    outline: none;
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.42), 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.companionship-mini-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: center;
}

.companionship-mini-actions .filter-select,
.companionship-mini-actions .filter-input {
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    color: #f8fafc;
    border: 1px solid rgba(250, 204, 21, 0.18);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

.companionship-mini-actions .filter-select:focus,
.companionship-mini-actions .filter-input:focus {
    outline: none;
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.42), 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.companionship-mini-actions .filter-select option {
    color: #111827;
}

@media (max-width: 520px) {
    .companionship-mini-actions { grid-template-columns: 1fr; }
}

.companionship-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

/* Dating sponsored strip uses shared sponsored layout */
.companionship-featured-strip {
    margin: 1.5rem 0 2rem;
}


.companionship-featured-strip .luxury-profile-card {
    --lux-gold: #1d4ed8;
    --lux-amber: #3b82f6;
    --lux-ink: #0f172a;
    --lux-ivory: #f8f7f4;
    --lux-silver: #cbd5e1;
    background:
        radial-gradient(1px 1px at 16% 24%, rgba(255, 255, 255, 0.85), transparent 60%),
        radial-gradient(1px 1px at 82% 32%, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(1.5px 1.5px at 38% 70%, rgba(226, 232, 240, 0.9), transparent 60%),
        radial-gradient(1px 1px at 74% 78%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(180px circle at 16% 10%, rgba(255, 255, 255, 0.7) 0%, transparent 62%),
        radial-gradient(240px circle at 88% -8%, rgba(186, 230, 253, 0.35) 0%, transparent 58%),
        radial-gradient(220px circle at 50% 120%, rgba(252, 211, 140, 0.28) 0%, transparent 60%),
        linear-gradient(160deg, #ffffff 0%, #f6f7fb 45%, #eef2f7 100%);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
    color: var(--lux-ink);
    overflow: hidden;
    animation: luxuryCardIn 0.6s ease both;
}

.companionship-featured-strip .luxury-profile-card::before {
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.companionship-featured-strip .luxury-profile-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.1) 60%, rgba(148, 163, 184, 0.18) 100%);
}

.companionship-featured-strip .luxury-profile-card:nth-child(1) { animation-delay: 0.05s; }
.companionship-featured-strip .luxury-profile-card:nth-child(2) { animation-delay: 0.12s; }
.companionship-featured-strip .luxury-profile-card:nth-child(3) { animation-delay: 0.18s; }

.companionship-featured-strip .luxury-profile-card .featured-ad-tag {
    background: linear-gradient(135deg, #ffffff 0%, var(--lux-ivory) 70%);
    color: #1f2937;
    border-color: rgba(203, 213, 225, 0.9);
    text-shadow: none;
    letter-spacing: 0.12em;
}

.companionship-featured-strip .luxury-profile-media {
    position: relative;
    padding: 0.85rem 0.85rem 0;
}

.companionship-featured-strip .luxury-profile-card .image-carousel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(4, 7, 13, 0.55);
}

.companionship-featured-strip .luxury-profile-card .image-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(15, 23, 42, 0.22) 100%);
    pointer-events: none;
}

.companionship-featured-strip .luxury-profile-rating {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(7, 11, 16, 0.72);
    border: 1px solid rgba(248, 212, 138, 0.6);
    color: var(--lux-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.companionship-featured-strip .luxury-profile-status {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #0f172a;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.companionship-featured-strip .luxury-profile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.companionship-featured-strip .luxury-profile-body {
    padding: 0.95rem 1.1rem 1.2rem;
    gap: 0.6rem;
}

.companionship-featured-strip .luxury-profile-body h4 {
    font-family: "Fraunces", "Times New Roman", Times, serif;
    font-size: 1.1rem;
    color: #0f172a;
    margin: 0;
}

.companionship-featured-strip .luxury-profile-body p {
    margin: 0;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9rem;
}

.companionship-featured-strip .luxury-profile-body .luxury-profile-tagline {
    display: block;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

.companionship-featured-strip .luxury-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.companionship-featured-strip .luxury-profile-crest {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--lux-gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.companionship-featured-strip .luxury-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.companionship-featured-strip .luxury-profile-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 600;
}

.companionship-featured-strip .luxury-profile-tags i {
    color: var(--lux-gold);
}

.companionship-featured-strip .luxury-profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

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

@media (prefers-reduced-motion: reduce) {
    .companionship-featured-strip .luxury-profile-card {
        animation: none;
    }
}

@media (max-width: 640px) {
    .companionship-featured-strip .luxury-profile-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .companionship-featured-strip .luxury-profile-status {
        bottom: 0.9rem;
    }
}

#companionship-promote-ad.btn-luxe {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #f8fafc;
    border: 1px solid rgba(147, 197, 253, 0.6);
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}
#companionship-promote-ad.btn-luxe:hover {
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

#dating-content .dating-featured-ads-strip .featured-scroll-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(2, 6, 23, 0.28);
    color: rgba(248, 250, 252, 0.92);
    font-weight: 750;
    user-select: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(2, 6, 23, 0.22);
}

#dating-content .dating-featured-ads-strip .featured-scroll-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#dating-content .dating-featured-ads-strip .featured-scroll-toggle .toggle-ui {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.18);
    position: relative;
    flex: 0 0 auto;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#dating-content .dating-featured-ads-strip .featured-scroll-toggle .toggle-ui::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(248, 250, 252, 0.95);
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22);
}

#dating-content .dating-featured-ads-strip .featured-scroll-toggle input[type="checkbox"]:checked + .toggle-ui {
    background: rgba(250, 204, 21, 0.45);
    border-color: rgba(250, 204, 21, 0.55);
}

#dating-content .dating-featured-ads-strip .featured-scroll-toggle input[type="checkbox"]:checked + .toggle-ui::before {
    transform: translate(18px, -50%);
}

#dating-content .dating-featured-ads-strip .featured-scroll-toggle input[type="checkbox"]:focus-visible + .toggle-ui {
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

#dating-content .dating-featured-ads-strip .featured-scroll-toggle .toggle-text {
    letter-spacing: 0.02em;
}

#dating-content .dating-featured-ads-strip.is-scroll .featured-ads-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    -webkit-overflow-scrolling: touch;
}

#dating-content .dating-featured-ads-strip .featured-ads-carousel-wrap {
    position: relative;
}

#dating-content .dating-featured-ads-strip.is-scroll .featured-ads-carousel-wrap {
    padding: 0 2.6rem;
}

#dating-content .dating-featured-ads-strip .strip-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(2, 6, 23, 0.45);
    color: rgba(248, 250, 252, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(2, 6, 23, 0.28);
}

#dating-content .dating-featured-ads-strip .strip-nav-btn.prev { left: 0.2rem; }
#dating-content .dating-featured-ads-strip .strip-nav-btn.next { right: 0.2rem; }

#dating-content .dating-featured-ads-strip .strip-nav-btn:hover {
    background: rgba(2, 6, 23, 0.6);
    border-color: rgba(250, 204, 21, 0.35);
}

#dating-content .dating-featured-ads-strip .strip-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

#dating-content .dating-featured-ads-strip .strip-nav-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18), 0 18px 40px rgba(2, 6, 23, 0.28);
}

#dating-content .dating-featured-ads-strip.is-scroll .featured-ad-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}
.companionship-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.companionship-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.companionship-card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.companionship-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.companionship-status {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: rgba(17,24,39,0.8);
    color: #f9fafb;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
}
.companionship-status.online { background: rgba(34,197,94,0.9); }
.companionship-status.muted { background: rgba(107,114,128,0.9); }
.companionship-card-body { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; }
.companionship-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; }
.companionship-card-head h4 { margin: 0; color: #111827; font-size: 1rem; }
.companionship-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid #f59e0b;
    color: #b45309;
    background: #fef3c7;
}
.companionship-tagline { margin: 0; color: #374151; font-weight: 600; }
.companionship-location { margin: 0; color: #6b7280; font-size: 0.9rem; display: flex; align-items: center; gap: 0.35rem; }
.companionship-desc { margin: 0; color: #4b5563; font-size: 0.9rem; line-height: 1.4; }
.companionship-meta { display: flex; flex-direction: column; gap: 0.25rem; color: #4b5563; font-size: 0.85rem; }
.companionship-meta i { margin-right: 0.35rem; color: #ef4444; }
.companionship-posted {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.companionship-posted-time {
    font-weight: 700;
    color: #0f172a;
}

.companionship-date-label {
    width: fit-content;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    color: #0b1020;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#companionship-feed.dating-feed {
    max-height: none;
    overflow: visible;
}

.companionship-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-modal-posted {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}
.companionship-safety { color: #2563eb; font-weight: 600; }
.companionship-empty {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 0.85rem;
    border-radius: 12px;
    color: #475569;
}
.companionship-post {
    margin-top: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
}
.companionship-post h4 { margin: 0 0 0.5rem; color: #111827; }
.companionship-form { display: flex; flex-direction: column; gap: 0.75rem; }
.companionship-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; }
#companionship-post-modal .companionship-preview-wrap {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 14px;
    padding: 0.85rem;
}
#companionship-post-modal .companionship-preview-head h5 {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}
#companionship-post-modal .companionship-post-preview {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.75rem;
}
#companionship-post-modal .companionship-post-preview .preview-card {
    pointer-events: none;
    cursor: default;
}
#companionship-post-modal .companionship-post-preview .dating-feed-card.preview-card:hover {
    transform: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
#companionship-post-modal .companionship-post-preview .featured-ad-card.preview-card {
    max-width: 520px;
}
#companionship-description {
    min-height: 220px;
    resize: vertical;
}
.companionship-submit { display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
    .companionship-filter-actions { justify-content: flex-start; }
    .companionship-feed { grid-template-columns: 1fr; }
    .companionship-card-img-wrapper { height: 200px; }
}

@media (max-width: 640px) {
    .market-upload-buttons { grid-template-columns: 1fr; }
}
.dating-controls { margin-bottom: 1rem; }
.dating-feed-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.dating-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 480px;
    overflow-y: auto;
}
.dating-feed-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dating-feed-card.companionship-feed-card {
    position: relative;
}
.dating-feed-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.dating-feed-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

/* Green ring for profiles with a video (feed cards) */
.dating-feed-card.has-video .dating-feed-avatar {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25), 0 0 18px rgba(34, 197, 94, 0.45);
    cursor: pointer;
}

/* Ensure companionship feed avatars always show the story-video ring */
#companionship-feed .companionship-feed-card.has-video .dating-feed-avatar {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25), 0 0 18px rgba(34, 197, 94, 0.45);
}

/* Vehicles: larger, squared thumbnails (Tonaton-like list cards) */
.dating-feed-card.vehicle-feed-card {
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    padding: 0.9rem 1rem;
    align-items: start;
}

/* Real estate feed: slightly larger thumbnails than vehicles */
.dating-feed-card.realestate-feed-card {
    grid-template-columns: 196px 1fr auto;
}
.dating-feed-card.realestate-feed-card .vehicle-card-carousel {
    width: 196px;
    height: 168px;
}
.dating-feed-card.vehicle-feed-card .dating-feed-avatar,
.dating-feed-card.vehicle-feed-card .vehicle-card-carousel {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.15);
    overflow: hidden;
}
.dating-feed-card.vehicle-feed-card .vehicle-card-carousel {
    position: relative;
    background: rgba(15, 23, 42, 0.85);
}
.dating-feed-card.vehicle-feed-card .vehicle-card-carousel .carousel-btn {
    width: 28px;
    height: 28px;
    border-color: rgba(226, 232, 240, 0.22);
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(6px);
}
.dating-feed-card.vehicle-feed-card .vehicle-card-carousel .carousel-btn.prev { left: 0.35rem; }
.dating-feed-card.vehicle-feed-card .vehicle-card-carousel .carousel-btn.next { right: 0.35rem; }
.dating-feed-card.vehicle-feed-card .vehicle-card-carousel .carousel-track img { cursor: grab; }
.dating-feed-card.vehicle-feed-card .vehicle-card-carousel .carousel-track img:active { cursor: grabbing; }
.dating-feed-card.vehicle-feed-card .vehicle-card-photo-count {
    position: absolute;
    bottom: 0.4rem;
    right: 0.4rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.18);
    color: rgba(248, 250, 252, 0.92);
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}
.dating-feed-card.vehicle-feed-card .dating-feed-location {
    color: #0b1b3a;
    font-weight: 700;
}
.dating-feed-card.vehicle-feed-card .dating-feed-status {
    font-size: 0.82rem;
}

@media (max-width: 520px) {
    .dating-feed-card.vehicle-feed-card {
        grid-template-columns: 96px 1fr auto;
        padding: 0.85rem 0.9rem;
    }
    .dating-feed-card.vehicle-feed-card .dating-feed-avatar,
    .dating-feed-card.vehicle-feed-card .vehicle-card-carousel {
        width: 96px;
        height: 96px;
        border-radius: 12px;
    }

    .dating-feed-card.realestate-feed-card {
        grid-template-columns: 148px 1fr auto;
    }
    .dating-feed-card.realestate-feed-card .vehicle-card-carousel {
        width: 148px;
        height: 126px;
    }
}

/* Real estate: keep feed cards left-aligned (avoid stretched rows on wide screens) */
#realestate-grid .dating-feed {
    align-items: flex-start;
}
#realestate-grid .dating-feed-card.realestate-feed-card {
    width: 100%;
    max-width: 920px;
}

/* Real estate short-term: Airbnb-like grid cards */
#realestate-grid .realestate-airbnb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
    gap: 1.15rem;
    justify-content: start;
    align-items: start;
}

#realestate-grid .realestate-airbnb-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: #111827;
    cursor: pointer;
    user-select: none;
    transition: transform 0.18s ease, filter 0.18s ease;
}

#realestate-grid .realestate-airbnb-card:hover {
    transform: translateY(-2px);
}

#realestate-grid .realestate-airbnb-card:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 4px;
    border-radius: 18px;
}

#realestate-grid .realestate-airbnb-media {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.92);
    aspect-ratio: 3 / 2;
    min-height: 210px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.16);
}

#realestate-grid .realestate-airbnb-media .carousel-track img {
    cursor: grab;
}
#realestate-grid .realestate-airbnb-media .carousel-track img:active {
    cursor: grabbing;
}

#realestate-grid .realestate-airbnb-media .carousel-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background: rgba(248, 250, 252, 0.95);
    color: rgba(15, 23, 42, 0.92);
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#realestate-grid .realestate-airbnb-card:hover .realestate-airbnb-media .carousel-btn,
#realestate-grid .realestate-airbnb-card:focus-within .realestate-airbnb-media .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

#realestate-grid .realestate-airbnb-media .carousel-btn:hover {
    transform: translateY(-50%) scale(1.03);
}

#realestate-grid .realestate-airbnb-media .carousel-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

@media (hover: none) {
    #realestate-grid .realestate-airbnb-media .carousel-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

#realestate-grid .realestate-airbnb-save {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.95);
    color: rgba(15, 23, 42, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(2, 6, 23, 0.22);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

#realestate-grid .realestate-airbnb-save:hover {
    transform: scale(1.04);
}

#realestate-grid .realestate-airbnb-save.active {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.22);
}

#realestate-grid .realestate-airbnb-save.active i {
    color: #2563eb;
}

#realestate-grid .realestate-airbnb-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 0.1rem;
}

#realestate-grid .realestate-airbnb-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
}

#realestate-grid .realestate-airbnb-location {
    font-weight: 800;
    color: rgba(15, 23, 42, 0.95);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#realestate-grid .realestate-airbnb-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 800;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.95);
    flex-shrink: 0;
}

#realestate-grid .realestate-airbnb-rating i {
    color: #2563eb;
    font-size: 0.85rem;
}

#realestate-grid .realestate-airbnb-title {
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#realestate-grid .realestate-airbnb-sub {
    color: #64748b;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#realestate-grid .realestate-airbnb-price {
    font-weight: 900;
    color: #0b1b3a;
    letter-spacing: 0.01em;
}

@media (max-width: 560px) {
    #realestate-grid .realestate-airbnb-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    #realestate-grid .realestate-airbnb-media {
        min-height: 240px;
    }
}
.dating-feed-meta { display: flex; flex-direction: column; gap: 0.2rem; }
.dating-feed-name { font-weight: 700; color: #111827; }
.dating-feed-location { color: #6b7280; font-size: 0.9rem; }
.dating-feed-status { font-size: 0.85rem; font-weight: 600; }
.dating-feed-status.online { color: #16a34a; }
.dating-feed-status.offline { color: #9ca3af; }
.dating-feed-action { color: #2563eb; font-weight: 600; font-size: 0.9rem; }

/* Companionship feed: only the status label is green; time is red; location is black for online profiles */
#companionship-feed .companionship-feed-card .dating-feed-status.online {
    color: #111827;
}
#companionship-feed .companionship-feed-card .dating-feed-status.online .companionship-status-label {
    color: #16a34a;
}
#companionship-feed .companionship-feed-card .dating-feed-status.online .companionship-location-text {
    color: #111827;
}

/* Companionship feed: time is always red (online or offline) */
#companionship-feed .companionship-feed-card .companionship-posted-time {
    color: #ef4444;
    font-weight: 800;
}

/* Companionship feed: bottom "Post your ad" CTA card */
#companionship-feed .companionship-feed-post-card {
    border-color: rgba(37, 99, 235, 0.22);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.65) 0%, #ffffff 62%);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
}
#companionship-feed .companionship-feed-post-card:hover {
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.18);
}
#companionship-feed .companionship-feed-post-card .companionship-feed-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
}
#companionship-feed .companionship-feed-post-card .companionship-feed-cta-icon i {
    font-size: 1.15rem;
}
#companionship-feed .companionship-feed-post-card .companionship-feed-post-action {
    pointer-events: none;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}
.demo-grid {
    margin-top: 0.5rem;
}
.dating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.dating-card {
    background: #0f172a;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(250, 204, 21, 0.18);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.dating-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.45) 60%, rgba(2, 6, 23, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}
.dating-card:hover,
.dating-card:focus-within,
.dating-card:active { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(2, 6, 23, 0.5); }
.dating-card:hover::after,
.dating-card:focus-within::after,
.dating-card:active::after { opacity: 1; }
@media (hover: none) {
    .dating-card::after { opacity: 1; }
    .dating-card { transform: translateY(-2px); }
}
.dating-card-media { display: flex; flex-direction: column; gap: 0.55rem; }
.dating-card-main-photo-wrapper { position: relative; }
.dating-card-main-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.dating-card-photo-count {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: rgba(17, 24, 39, 0.75);
    color: #f9fafb;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.dating-card-premium {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: rgba(254, 243, 199, 0.95);
    color: #b45309;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 6px 14px rgba(180, 83, 9, 0.18);
}
.dating-card-premium i { color: inherit; }
.dating-card-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.35rem;
    padding: 0 0.85rem;
}
.dating-card-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}
.dating-card-video {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0.85rem 0.6rem;
    background: #0f172a;
}
.dating-card-video video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.dating-card-video .video-length {
    position: absolute;
    bottom: 0.55rem;
    right: 0.55rem;
    background: rgba(15, 23, 42, 0.8);
    color: #f9fafb;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.dating-card-body {
    padding: 0.85rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    z-index: 2;
}
.dating-card-photo { cursor: zoom-in; }
.dating-card-photo:focus { outline: 3px solid rgba(99, 102, 241, 0.6); outline-offset: 2px; }
.dating-card-name { font-weight: 700; color: #f8fafc; font-size: 1rem; display:flex;align-items:center;gap:0.4rem; }
.dating-card-tier {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}
.dating-card-tier i { color: #d97706; }
.dating-card-age { font-size: 0.9rem; color: #cbd5f5; }
.dating-card-bio { font-size: 0.75rem; color: #cbd5f5; line-height: 1.3; height: 48px; overflow: hidden; }
.dating-card-distance { font-size: 0.75rem; color: #facc15; font-weight: 600; }
.dating-card-online { width:10px; height:10px; border-radius:50%; background:#22c55e; }
.dating-empty { grid-column: 1/-1; text-align:center; padding:3rem 2rem; color:#666; }
.dating-empty h3 { margin-bottom:0.5rem; color:#333; }

@media (max-width: 640px) {
    .dating-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
    .dating-card-main-photo { height: 150px; }
    .dating-card-video video { height: 140px; }
}

@media (max-width: 1024px) {
    .home-search-row { grid-template-columns: 2fr 1fr 1fr auto; }
}

@media (max-width: 1100px) {
    .home-category-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0.55rem;
        margin: 0 0 1rem;
    }
    .home-category-chip {
        width: 100%;
        justify-content: center;
    }
}

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

@media (max-width: 640px) {
    .home-search-row { grid-template-columns: 1fr; align-items: stretch; }
    .home-topbar { flex-direction: column; align-items: stretch; }
    .home-topbar-right { justify-content: space-between; }
    .home-category-nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
    .home-category-chip {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .category-main-photo-wrapper,
    .category-thumbs,
    .category-video { width: 100%; max-width: 340px; }
    .category-main-photo { height: 170px; }
    .category-thumb { height: 58px; }
    .category-video video { height: 160px; }
}

@media (max-width: 420px) {
    .home-category-nav { grid-template-columns: 1fr; }
}

.location-btn, .settings-btn {
    background: white;
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-btn:hover, .settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Card Stack */
.card-stack {
    position: relative;
    height: 60vh;
    margin: 2rem 0;
    perspective: 1000px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: grab;
    transition: all 0.3s ease;
    background: white;
}

.card:active {
    cursor: grabbing;
}

.card-image {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem;
    color: white;
}

.card-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-info p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn.reject {
    background: #ff6b6b;
    color: white;
}

.action-btn.like {
    background: #3b82f6;
    color: white;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Matches Screen */
.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.match-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.match-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.match-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.match-item .match-info {
    padding: 1rem;
    text-align: center;
}

.match-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.match-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Location Screen */
.distance-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.nearby-header-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.nearby-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nearby-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.nearby-search i {
    color: rgba(71, 85, 105, 0.95);
}

.nearby-search .filter-input {
    border: none;
    padding: 0.35rem 0.1rem;
    background: transparent;
    min-width: 220px;
}

.nearby-search .filter-input:focus {
    outline: none;
}

.map-container.hidden {
    display: none;
}

/* Premium Services + Trip Planner */
.premium-section {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.premium-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .premium-grid { grid-template-columns: 1fr; }
}

.premium-title {
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
}

.premium-subtitle {
    color: #555;
    margin-bottom: 0.5rem;
}

.premium-features-list {
    list-style: none;
    display: grid;
    gap: 0.25rem;
    margin: 0.5rem 0 0.75rem;
}
.premium-features-list i { color: #2563eb; margin-right: 0.4rem; }

.premium-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    color: #333;
}
.price-tag .price { font-size: 1.4rem; font-weight: 800; }
.price-tag .per { color: #777; font-size: 0.95rem; }

.btn-premium {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
}

.premium-note { color: #777; display: block; margin-top: 0.5rem; }

.trip-planner h4 {
    margin: 0.25rem 0 0.75rem;
    color: #444;
}

.trip-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.75rem 1rem;
}

.trip-form .tp-field {
    display: flex;
    flex-direction: column;
}

.trip-form label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.25rem;
}

.trip-form input,
.trip-form select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
}

.trip-form .tp-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.trip-summary {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .trip-form { grid-template-columns: 1fr; }
}

.distance-filter input[type="range"] {
    width: 100px;
}

.map-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.map-container {
    height: 300px;
    background: #e0e0e0;
    border-radius: 15px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    position: relative;
    overflow: hidden;
}

.map {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.map.map-fallback {
    position: relative;
    overflow: hidden;
}

.map-fallback-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.map-fallback-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.map-fallback-pin {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid var(--pin-accent, #0f172a);
    background: #ffffff;
    overflow: hidden;
    transform: translate(-50%, -100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
    cursor: pointer;
    pointer-events: auto;
}

.map-fallback-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: var(--pin-accent, #0f172a);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

.map-fallback-pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-fallback-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    color: #e2e8f0;
    padding: 1rem;
}

.nearby-list {
    margin-top: 1rem;
}

.nearby-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    justify-content: space-between;
}

.nearby-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 240px;
}

.nearby-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.nearby-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #16a34a;
}

.nearby-status.offline {
    color: #64748b;
}

.nearby-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.nearby-status.offline .dot {
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.22);
}

.nearby-map-preview {
    width: 180px;
    height: 110px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    overflow: hidden;
    background: #f1f5f9;
}

.nearby-map-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 640px) {
    .nearby-header-controls {
        align-items: stretch;
    }

    .nearby-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .nearby-search .filter-input {
        min-width: 0;
        width: 100%;
    }

    .nearby-item {
        flex-direction: column;
        align-items: stretch;
    }

    .nearby-actions {
        align-items: stretch;
    }

    .nearby-map-preview {
        width: 100%;
        height: 160px;
    }
}

.nearby-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.nearby-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.nearby-info p {
    font-size: 0.9rem;
    color: #666;
}

/* Profile Screen */
#profile-content {
    --profile-ink: #0f172a;
    --profile-muted: #64748b;
    --profile-accent: #3b82f6;
    --profile-accent-2: #1d4ed8;
    --profile-accent-3: #10b981;
    --profile-surface: #ffffff;
    --profile-border: rgba(15, 23, 42, 0.08);
    --profile-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(700px 380px at 8% -10%, rgba(249, 115, 22, 0.2), transparent 60%),
        radial-gradient(600px 340px at 92% 0%, rgba(14, 165, 233, 0.18), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);
    border-radius: 24px;
}

#profile-content .app-header {
    margin-bottom: 1.5rem;
}

#profile-content .app-header h2 {
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: 2.15rem;
    letter-spacing: 0.01em;
    color: var(--profile-ink);
}

#profile-content .settings-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

#profile-content .settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

#profile-content .profile-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 2.5rem 2.25rem 2.25rem;
    box-shadow: var(--profile-shadow);
    border: 1px solid var(--profile-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#profile-content .profile-container::before {
    content: "";
    position: absolute;
    inset: -140px -120px auto;
    height: 260px;
    background:
        radial-gradient(closest-side, rgba(14, 165, 233, 0.22), transparent 75%),
        radial-gradient(closest-side, rgba(249, 115, 22, 0.18), transparent 75%);
    z-index: 0;
    pointer-events: none;
}

#profile-content .profile-container::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -160px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

#profile-content .profile-container > * {
    position: relative;
    z-index: 1;
}

#profile-content .profile-photo {
    position: relative;
    width: 176px;
    height: 176px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    padding: 6px;
    background: conic-gradient(from 180deg, #22c55e, #10b981, #16a34a, #22c55e);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

#profile-content .profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

#profile-content .edit-photo-btn {
    position: absolute;
    bottom: 10px;
    right: 8px;
    background: linear-gradient(135deg, #f97316, #fb7185);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

#profile-content .edit-photo-btn:hover {
    transform: translateY(-1px);
}

#profile-content .profile-info {
    text-align: left;
    display: grid;
    gap: 1.5rem;
}

#profile-content #profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--profile-ink);
    margin: 0 0 0.35rem;
    text-align: center;
    font-family: "Fraunces", "Times New Roman", serif;
}

#profile-content #profile-age {
    font-size: 1rem;
    color: var(--profile-muted);
    margin: 0;
    text-align: center;
    letter-spacing: 0.02em;
}

#profile-content .profile-privacy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--profile-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 auto;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    width: fit-content;
}

#profile-content .profile-privacy-note {
    margin: 0 auto;
    max-width: 420px;
    text-align: center;
    color: var(--profile-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

#profile-content .profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-top: 0.5rem;
}

#profile-content .profile-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#profile-content .profile-input-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--profile-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#profile-content .profile-input-group input {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    background: rgba(248, 250, 252, 0.9);
}

#profile-content .profile-input-group input:focus {
    outline: none;
    border-color: var(--profile-accent-2);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    background: #fff;
}

#profile-content .profile-map-toggle {
    background: rgba(59, 130, 246, 0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

#profile-content .map-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--profile-ink);
    font-weight: 600;
}

#profile-content .photos-section,
#profile-content .profile-video-section,
#profile-content .bio-section,
#profile-content .interests-section,
#profile-content .wallet-card,
#profile-content .my-posts-section,
#profile-content .profile-ad-section {
    text-align: left;
    margin: 0;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    padding: 1.25rem;
    border: 1px solid var(--profile-border);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
}

#profile-content .my-posts-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

#profile-content .profile-ad-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

#profile-content .profile-ad-head h4 {
    margin: 0;
    font-family: "Fraunces", "Times New Roman", serif;
    color: var(--profile-ink);
    font-size: 1.25rem;
}

#profile-content .profile-ad-subtitle {
    margin: 0.25rem 0 0;
    color: var(--profile-muted);
    font-size: 0.9rem;
}

#profile-content .profile-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}

#profile-content .profile-ad-section select,
#profile-content .profile-ad-section textarea {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    background: rgba(248, 250, 252, 0.9);
    width: 100%;
}

#profile-content .profile-ad-section select:focus,
#profile-content .profile-ad-section textarea:focus {
    outline: none;
    border-color: var(--profile-accent-2);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    background: #fff;
}

#profile-content .profile-ad-description label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--profile-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.35rem;
}

#profile-content .profile-ad-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.85rem;
}

@media (max-width: 768px) {
    #profile-content .profile-ad-grid {
        grid-template-columns: 1fr;
    }
}

#profile-content .my-posts-head h4 {
    margin: 0;
    font-family: "Fraunces", "Times New Roman", serif;
    color: var(--profile-ink);
    font-size: 1.25rem;
}

#profile-content .my-posts-subtitle {
    margin: 0.25rem 0 0;
    color: var(--profile-muted);
    font-size: 0.9rem;
}

#profile-content .my-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

#profile-content .my-posts-empty {
    padding: 0.75rem 0.25rem;
    color: var(--profile-muted);
}

#profile-content .my-posts-empty p {
    margin: 0;
}

#profile-content .my-post-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.92);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

#profile-content .my-post-thumb {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #e2e8f0;
}

#profile-content .my-post-thumb.placeholder {
    display: block;
}

#profile-content .my-post-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#profile-content .my-post-title {
    font-weight: 800;
    color: var(--profile-ink);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#profile-content .my-post-meta {
    color: var(--profile-muted);
    font-size: 0.85rem;
}

#profile-content .my-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

#profile-content .photos-label {
    display: block;
    font-weight: 700;
    color: var(--profile-ink);
    margin-bottom: 0.75rem;
    font-family: "Fraunces", "Times New Roman", serif;
}

#profile-content .photos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

#profile-content .photo-slot {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 14px;
    padding: 0.6rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

#profile-content .photo-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

#profile-content .photo-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(15, 23, 42, 0.2);
    border-radius: 10px;
    color: var(--profile-muted);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(249, 115, 22, 0.12));
}

#profile-content .photo-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

#profile-content .photo-actions button[id^="photo-change-"] {
    background: linear-gradient(135deg, var(--profile-accent) 0%, var(--profile-accent-2) 60%, #1e40af 100%);
    border-color: rgba(30, 64, 175, 0.45);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.28);
}

#profile-content .photo-actions button[id^="photo-change-"]:hover {
    background: linear-gradient(135deg, #60a5fa 0%, var(--profile-accent) 55%, var(--profile-accent-2) 100%);
    border-color: rgba(30, 64, 175, 0.6);
    color: #ffffff;
}

#profile-content .photo-status {
    margin-top: 0.5rem;
    color: var(--profile-muted);
    font-size: 0.9rem;
}

#profile-content .btn-primary {
    background: linear-gradient(135deg, var(--profile-accent) 0%, var(--profile-accent-2) 60%, #1e40af 100%);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.28);
}

#profile-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.36);
}

#profile-content .btn-secondary {
    border-color: rgba(59, 130, 246, 0.55);
    color: #1d4ed8;
    background: #fff;
}

#profile-content .btn-secondary:hover {
    background: #3b82f6;
    color: #fff;
}

#profile-content.active .profile-container {
    animation: profile-enter 0.6s ease both;
}

#profile-content.active .profile-photo {
    animation: profile-pop 0.6s ease 0.1s both;
}

@keyframes profile-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes profile-pop {
    from { transform: scale(0.96); }
    to { transform: scale(1); }
}

@media (max-width: 768px) {
    #profile-content .profile-container {
        padding: 2rem 1.5rem 1.75rem;
    }

    #profile-content .profile-photo {
        width: 150px;
        height: 150px;
    }

    #profile-content #profile-name {
        font-size: 1.8rem;
    }

    #profile-content .profile-form-grid {
        grid-template-columns: 1fr;
    }

    #profile-content .photos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #profile-content .photo-img,
    #profile-content .photo-placeholder { height: 96px; }
}

.preferences-section {
    text-align: left;
    margin: 1rem 0 1.5rem;
}

.pref-label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.pref-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pref-field label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.25rem;
}

.pref-field select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
}

.pref-note {
    display: block;
    margin-top: 0.5rem;
    color: #777;
}

#profile-content .profile-video-section {
    text-align: left;
    margin: 0;
}

/* Matches header preferences */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.matches-pref-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.matches-pref-bar select {
    appearance: none;
    padding: 0.4rem 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
}

.pref-sep {
    color: #999;
}

/* Centered, prominent preferences panel */
.matches-pref-panel {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.matches-pref-panel .pref-title {
    font-weight: 800;
    color: #333;
}

.matches-pref-panel .pref-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.matches-pref-panel .pref-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 180px;
}

.matches-pref-panel .pref-field label {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.big-select {
    padding: 0.7rem 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
}

.pref-sep-large {
    color: #2563eb;
    font-weight: 700;
}

.pref-subnote {
    color: #777;
    font-size: 0.85rem;
}

#profile-content .profile-video-section .video-label {
    display: block;
    font-weight: 700;
    color: var(--profile-ink);
    margin-bottom: 0.35rem;
    font-family: "Fraunces", "Times New Roman", serif;
}

#profile-content .profile-video-section .video-helper {
    font-size: 0.9rem;
    color: var(--profile-muted);
    margin-bottom: 0.85rem;
}

#profile-content .profile-media-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--profile-muted);
    margin-bottom: 0.75rem;
}

#profile-content .profile-media-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

#profile-content .video-record-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

#profile-content .video-preview-wrapper {
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.2);
    border-radius: 14px;
    padding: 0.75rem;
}

#profile-content .video-preview {
    width: 100%;
    max-height: 260px;
    border-radius: 12px;
    background: #000;
}

#profile-content .video-status {
    font-size: 0.9rem;
    color: var(--profile-muted);
    padding: 0.5rem 0.25rem;
}

#profile-content .video-status.error {
    color: #ef4444;
}

.btn-secondary.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-primary.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
}

#profile-content .record-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.35);
}

#profile-content .record-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.record-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

#profile-content .bio-section,
#profile-content .interests-section {
    text-align: left;
}

#profile-content .bio-section label,
#profile-content .interests-section label {
    display: block;
    font-weight: 700;
    color: var(--profile-ink);
    margin-bottom: 0.5rem;
    font-family: "Fraunces", "Times New Roman", serif;
}

#profile-content .bio-section textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    background: rgba(248, 250, 252, 0.9);
}

#profile-content .bio-section textarea:focus {
    outline: none;
    border-color: var(--profile-accent-2);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    background: #fff;
}

#profile-content .interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

#profile-content .interest-tag {
    background: #fff7ed;
    color: #9a3412;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

#profile-content .interest-tag .remove {
    cursor: pointer;
    opacity: 0.7;
}

#profile-content .interest-tag .remove:hover {
    opacity: 1;
}

#profile-content #interest-input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    font-size: 0.95rem;
}

#profile-content #interest-input:focus {
    outline: none;
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
    background: #fff;
}

#profile-content .wallet-card {
    display: grid;
    gap: 0.9rem;
}

#profile-content .wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

#profile-content .wallet-row + .wallet-row {
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

#profile-content .wallet-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--profile-muted);
}

#profile-content .wallet-value {
    margin: 0.15rem 0 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--profile-ink);
}

#profile-content .wallet-status {
    margin: 0;
    color: var(--profile-muted);
    font-size: 0.85rem;
}

#profile-content #save-profile {
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    height: 80vh;
    border-radius: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    scrollbar-gutter: stable;
}

.modal-content.safety-modal {
    max-width: 560px;
    height: auto;
    max-height: 86vh;
    padding: 1.25rem 1.25rem 1.1rem;
    gap: 0.75rem;
}

.safety-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.safety-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #0f172a;
    line-height: 1.35;
}
.safety-list li + li {
    margin-top: 0.6rem;
}
.safety-list strong {
    color: #0f172a;
}

.safety-skip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #334155;
    font-size: 0.9rem;
    user-select: none;
}

.safety-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.premium-reg-card {
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    scrollbar-gutter: stable;
}

.video-ring-content {
    max-width: min(520px, 92vw);
    height: auto;
    max-height: 92vh;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.55);
    padding: 1.25rem;
    position: relative;
    gap: 1rem;
}

.video-ring-frame {
    width: min(460px, 88vw);
    height: min(460px, 88vw);
    border-radius: 999px;
    overflow: hidden;
    border: 3px solid rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18), 0 18px 45px rgba(2, 6, 23, 0.55);
    margin: 0 auto;
    background: #0b1020;
}

#video-ring-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-ring-caption {
    color: #e2e8f0;
    text-align: center;
    font-weight: 700;
}

.story-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.92);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.story-overlay.hidden { display: none; }

.story-video {
    width: min(520px, 96vw);
    height: min(88vh, 920px);
    border-radius: 22px;
    background: #000;
    object-fit: cover;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.story-caption {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    width: min(480px, 86vw);
    padding: 0.85rem 1rem;
    border-radius: 16px;
    color: rgba(248, 250, 252, 0.96);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.0), rgba(2, 6, 23, 0.55));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

/* About modal (luxury card) */
#about-modal {
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#about-modal .modal-content.about-content {
    max-width: min(720px, 92vw);
    height: min(82vh, 760px);
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.42);
    background:
        radial-gradient(1px 1px at 14% 22%, rgba(255, 255, 255, 0.9), transparent 60%),
        radial-gradient(1px 1px at 78% 28%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 34% 72%, rgba(226, 232, 240, 0.92), transparent 60%),
        radial-gradient(1px 1px at 72% 82%, rgba(255, 255, 255, 0.75), transparent 60%),
        radial-gradient(220px circle at 14% 12%, rgba(255, 255, 255, 0.7) 0%, transparent 62%),
        radial-gradient(240px circle at 88% -8%, rgba(253, 230, 138, 0.16) 0%, transparent 58%),
        radial-gradient(220px circle at 50% 120%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
        linear-gradient(160deg, #ffffff 0%, #fbf8f1 55%, #f3efe7 100%);
    box-shadow: 0 38px 90px rgba(2, 6, 23, 0.62);
    color: #0f172a;
    overflow: hidden;
}

#about-modal:not(.hidden) .modal-content.about-content {
    animation: aboutCardIn 240ms ease both;
}

@keyframes aboutCardIn {
    from { transform: translateY(10px) scale(0.99); opacity: 0; }
    to { transform: translateY(0px) scale(1); opacity: 1; }
}

#about-modal .chat-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    color: rgba(248, 250, 252, 0.96);
}

#about-modal .close-chat {
    color: rgba(245, 215, 124, 0.95);
    transition: transform 120ms ease, filter 120ms ease;
}

#about-modal .close-chat:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

#about-modal .about-headline {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

#about-modal .about-headline i {
    color: rgba(245, 215, 124, 0.96);
}

#about-modal #about-modal-title {
    margin: 0;
    font-size: 0.95rem;
    font-family: "Fraunces", "Times New Roman", Times, serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#about-modal .about-body {
    padding: 1.15rem 1.25rem 1.35rem;
}

#about-modal .about-body::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 1.1rem;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.42) 20%, rgba(148, 163, 184, 0.35) 50%, rgba(212, 175, 55, 0.42) 80%, transparent 100%);
}

#about-modal .about-body p {
    margin: 0;
    font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.72;
    color: rgba(15, 23, 42, 0.92);
}

#about-modal .about-body p + p {
    margin-top: 0.9rem;
}

#about-modal .about-body strong {
    color: rgba(146, 108, 10, 0.98);
}

/* Terms of Use modal */
#terms-modal {
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#terms-modal .modal-content.terms-content {
    max-width: min(860px, 94vw);
    height: min(86vh, 860px);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(160deg, #ffffff 0%, #fbfbfb 55%, #f5f7fb 100%);
    box-shadow: 0 38px 90px rgba(2, 6, 23, 0.6);
    overflow: hidden;
}

#terms-modal .chat-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    color: rgba(248, 250, 252, 0.96);
}

#terms-modal .chat-header .about-headline i {
    color: rgba(245, 215, 124, 0.95);
}

#terms-modal .terms-body {
    padding: 1.15rem 1.25rem 1.35rem;
    color: rgba(15, 23, 42, 0.92);
    overflow-y: auto;
}

#terms-modal .terms-body p {
    margin: 0;
    line-height: 1.7;
}

#terms-modal .terms-body p + p {
    margin-top: 0.85rem;
}

#terms-modal .terms-body h4 {
    margin: 1.1rem 0 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 850;
    color: rgba(30, 41, 59, 0.78);
}

#terms-modal .terms-list {
    margin: 0;
    padding-left: 1.35rem;
    display: grid;
    gap: 0.55rem;
}

#terms-modal .terms-list li {
    line-height: 1.55;
}

#terms-modal .terms-list strong {
    color: rgba(15, 23, 42, 0.98);
}

/* FAQ modal */
#faq-modal {
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#faq-modal .modal-content.faq-content {
    max-width: min(820px, 94vw);
    height: min(86vh, 860px);
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    background:
        radial-gradient(240px circle at 90% -10%, rgba(253, 230, 138, 0.14) 0%, transparent 60%),
        radial-gradient(220px circle at 12% 115%, rgba(56, 189, 248, 0.1) 0%, transparent 60%),
        linear-gradient(160deg, #ffffff 0%, #fbf8f1 55%, #f3efe7 100%);
    box-shadow: 0 38px 90px rgba(2, 6, 23, 0.6);
    overflow: hidden;
}

#faq-modal .chat-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(248, 250, 252, 0.96);
}

#faq-modal .chat-header .about-headline i {
    color: rgba(245, 215, 124, 0.95);
}

#faq-modal #faq-modal-title {
    margin: 0;
    font-family: "Fraunces", "Times New Roman", Times, serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#faq-modal .faq-body {
    padding: 1.15rem 1.25rem 1.35rem;
    overflow-y: auto;
    color: rgba(15, 23, 42, 0.92);
    display: grid;
    gap: 0.75rem;
}

#faq-modal .faq-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    padding: 1rem 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

#faq-modal .faq-item:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

#faq-modal .faq-item:active {
    transform: translateY(0px);
}

#faq-modal .faq-item:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.26);
    outline-offset: 4px;
}

#faq-modal .faq-question {
    font-weight: 800;
    color: rgba(15, 23, 42, 0.95);
    letter-spacing: 0.01em;
}

#faq-modal .faq-toggle {
    color: rgba(146, 108, 10, 0.96);
    transition: transform 160ms ease;
}

#faq-modal .faq-item[aria-expanded="true"] .faq-toggle {
    transform: rotate(180deg);
}

/* Keep answers visible unless JS enables accordion mode */
#faq-modal[data-faq-ready="1"] .faq-answer {
    display: none;
}

#faq-modal[data-faq-ready="1"] .faq-answer.is-open {
    display: block;
}

#faq-modal .faq-answer {
    border-radius: 16px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-left: 3px solid rgba(212, 175, 55, 0.7);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    line-height: 1.65;
    color: rgba(15, 23, 42, 0.84);
}

#post-item-modal .modal-content {
    max-width: 1100px;
    width: min(1100px, 94vw);
    height: min(90vh, 860px);
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.55);
    overflow: hidden;
}

#companionship-post-modal .modal-content {
    max-width: 760px;
    height: 92vh;
    background: linear-gradient(135deg, #ffffff 0%, #fbfbfb 55%, #f6f6f6 100%);
    border: 1px solid rgba(245, 158, 11, 0.26);
    box-shadow: 0 34px 80px rgba(2, 6, 23, 0.45);
    position: relative;
    resize: both;
    overflow: auto;
    min-width: min(520px, 92vw);
    min-height: min(70vh, 720px);
}

#companionship-post-modal .modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 12%, rgba(2, 6, 23, 0.08), transparent 46%),
        radial-gradient(circle at 84% 14%, rgba(245, 158, 11, 0.12), transparent 46%),
        radial-gradient(circle at 30% 90%, rgba(2, 6, 23, 0.06), transparent 48%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
    opacity: 0.9;
    pointer-events: none;
}

#companionship-post-modal .chat-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.22);
    color: #0f172a;
    position: sticky;
    top: 0;
    z-index: 6;
    justify-content: center;
}

#companionship-post-modal .companionship-post-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
}

#companionship-post-modal .companionship-post-title-row i { color: #b45309; }

/* macOS-style window controls for popup forms */
.chat-header.has-mac-controls {
    position: sticky;
    top: 0;
    z-index: 6;
    justify-content: center;
}

.chat-header.has-mac-controls .mac-window-controls {
    position: absolute;
    left: 1rem;
    top: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mac-window-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mac-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(2, 6, 23, 0.16);
    cursor: pointer;
    transition: transform 120ms ease, filter 120ms ease;
}

.mac-dot i {
    display: inline-block;
    font-size: 9px;
    line-height: 1;
    color: rgba(15, 23, 42, 0.92);
}

.mac-dot:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.mac-dot:active {
    transform: translateY(0px) scale(0.98);
}

.mac-dot:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.35);
    outline-offset: 3px;
}

.mac-dot.mac-yellow { background: #fbbf24; }
.mac-dot.mac-green { background: #22c55e; }
.mac-dot.mac-red { background: #ef4444; }
.mac-dot.mac-red i { color: #ffffff; }

.modal-restore {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.92) 100%);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45);
}

.modal-restore:hover {
    filter: brightness(1.04);
}

.modal-restore:active {
    transform: translateY(1px);
}

.modal-restore i {
    color: rgba(245, 158, 11, 0.95);
}

.modal-content.is-maximized {
    width: calc(100vw - 2rem);
    max-width: 1100px;
    height: calc(100vh - 2rem);
    border-radius: 18px;
}

#quote-modal .modal-content {
    position: relative;
    width: min(720px, 94vw);
    max-width: 720px;
    height: auto;
    max-height: 90vh;
    overflow: hidden;
}

#quote-modal .quote-window-controls {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2;
}

#quote-modal .service-modal-body {
    padding: 3rem 1.5rem 1.5rem;
    overflow-y: auto;
}

#quote-modal .service-modal-head {
    margin-bottom: 1rem;
}

#quote-modal .quote-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    #quote-modal .modal-content {
        width: calc(100vw - 1.5rem);
        height: calc(100vh - 1.5rem);
        max-height: calc(100vh - 1.5rem);
        border-radius: 18px;
    }

    #quote-modal .service-modal-body {
        padding: 3rem 1.1rem 1.25rem;
    }

    #quote-modal .quote-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #quote-modal .quote-actions .btn-secondary,
    #quote-modal .quote-actions .btn-primary {
        width: 100%;
    }
}

#companionship-post-modal .post-item-form {
    padding: 1.25rem;
    overflow-y: auto;
    color: #0f172a;
    position: relative;
    z-index: 1;
}

#companionship-post-modal .companionship-submit {
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

#companionship-post-modal .companionship-form-copy {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(2, 6, 23, 0.10);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.12);
}
#companionship-post-modal .companionship-form-copy p { margin: 0; color: rgba(15, 23, 42, 0.85); font-weight: 650; }

#companionship-post-modal .input-group label {
    color: rgba(15, 23, 42, 0.85);
    font-weight: 800;
}

#companionship-post-modal .post-item-form input,
#companionship-post-modal .post-item-form select,
#companionship-post-modal .post-item-form textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(2, 6, 23, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.10);
}

#companionship-post-modal .post-item-form input::placeholder,
#companionship-post-modal .post-item-form textarea::placeholder {
    color: rgba(100, 116, 139, 0.85);
}

#companionship-post-modal .post-item-form input:focus,
#companionship-post-modal .post-item-form select:focus,
#companionship-post-modal .post-item-form textarea:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.14), 0 0 0 3px rgba(245, 158, 11, 0.18);
}

#companionship-post-modal .post-item-form select option { color: #111827; }

#companionship-post-modal .companionship-story-preview {
    width: 100%;
    max-height: 240px;
    border-radius: 16px;
    background: #0b1020;
    margin-top: 0.75rem;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
    object-fit: cover;
    display: block;
}

#companionship-post-modal .companionship-story-status {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    font-weight: 650;
    color: rgba(15, 23, 42, 0.72);
}

#companionship-post-modal .companionship-story-status.error {
    color: rgba(185, 28, 28, 0.95);
}

#companionship-post-modal .companionship-photo-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}

#companionship-post-modal .companionship-photo-slot {
    position: relative;
    border-radius: 14px;
    border: 1px dashed rgba(2, 6, 23, 0.22);
    background: rgba(248, 250, 252, 0.85);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.10);
    overflow: hidden;
    padding: 0;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

#companionship-post-modal .companionship-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#companionship-post-modal .companionship-photo-slot.is-empty {
    color: rgba(15, 23, 42, 0.55);
    font-weight: 900;
    font-size: 1.2rem;
    border-color: rgba(59, 130, 246, 0.25);
}

#companionship-post-modal .companionship-photo-slot.is-empty:hover {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 14px 34px rgba(59, 130, 246, 0.18);
}

#companionship-post-modal .companionship-photo-remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(2, 6, 23, 0.45);
    color: rgba(248, 250, 252, 0.95);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    line-height: 1;
}

#companionship-post-modal .companionship-photo-remove:hover {
    background: rgba(2, 6, 23, 0.62);
}

@media (max-width: 520px) {
    #companionship-post-modal .companionship-photo-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

#companionship-post-modal .companionship-checkout {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(2, 6, 23, 0.10);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.12);
}

#companionship-post-modal .companionship-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

#companionship-post-modal .companionship-plan {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

#companionship-post-modal .companionship-plan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#companionship-post-modal .companionship-plan:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.26);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.14);
}

#companionship-post-modal .companionship-plan input:checked ~ div .companionship-plan-name,
#companionship-post-modal .companionship-plan input:checked ~ div .companionship-plan-desc {
    color: #111827;
}

#companionship-post-modal .companionship-plan input:checked ~ div,
#companionship-post-modal .companionship-plan input:checked ~ .companionship-plan-price {
    position: relative;
    z-index: 1;
}

#companionship-post-modal .companionship-plan input:checked ~ div::before {
    content: "";
    position: absolute;
    inset: -0.65rem -0.75rem;
    background: linear-gradient(135deg, rgba(254, 243, 199, 1), rgba(253, 230, 138, 1));
    border-radius: 18px;
    z-index: -1;
}

#companionship-post-modal .companionship-plan-name { margin: 0; font-weight: 900; letter-spacing: 0.2px; }
#companionship-post-modal .companionship-plan-desc { margin: 0.2rem 0 0; font-weight: 700; font-size: 0.85rem; color: rgba(71, 85, 105, 0.9); }
#companionship-post-modal .companionship-plan-price { font-weight: 900; color: #0f172a; }
#companionship-post-modal .companionship-plan input:checked ~ .companionship-plan-price { color: #111827; }

#companionship-post-modal .companionship-total-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.6rem;
}
#companionship-post-modal .companionship-total-label { margin: 0; color: rgba(15, 23, 42, 0.85); font-weight: 900; }
#companionship-post-modal .companionship-total-note { margin: 0.25rem 0 0; color: rgba(71, 85, 105, 0.9); font-weight: 600; }
#companionship-post-modal .companionship-total { color: #0f172a; font-weight: 900; }

#companionship-post-modal .companionship-submit {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
    padding-top: 0.75rem;
    gap: 0.6rem;
}

#companionship-post-modal .btn-primary {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.96));
    color: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.55);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
}

#companionship-post-modal .btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.14);
}

#post-item-modal .chat-header {
    background: linear-gradient(135deg, #0b1020 0%, #1f2937 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

#post-item-modal .post-item-form {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

#post-ad-modal .modal-content {
    max-width: 680px;
    width: min(680px, 94vw);
    height: min(86vh, 760px);
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.55);
    overflow: hidden;
}

#post-ad-modal .chat-header {
    background: linear-gradient(135deg, #0b1020 0%, #1f2937 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.post-ad-form {
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    background: transparent;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
}

.post-ad-form .input-group {
    margin-bottom: 1.1rem;
}

.post-ad-form .input-group label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.85);
}

.post-ad-form input,
.post-ad-form select,
.post-ad-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #ffffff;
    color: #0f172a;
}

.post-ad-form textarea {
    resize: vertical;
    min-height: 160px;
}

.post-ad-form input:focus,
.post-ad-form select:focus,
.post-ad-form textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.post-ad-form .btn-primary {
    width: 100%;
}

@media (max-width: 720px) {
    #post-ad-modal .modal-content {
        width: calc(100vw - 1.5rem);
        height: calc(100vh - 1.5rem);
        max-height: calc(100vh - 1.5rem);
        border-radius: 18px;
    }
}

#post-item-modal .post-item-form .input-group {
    margin-bottom: 1.1rem;
}

#post-item-modal .post-item-form input,
#post-item-modal .post-item-form select,
#post-item-modal .post-item-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #ffffff;
}

#post-item-modal .post-item-form textarea {
    resize: vertical;
}

#post-item-modal .post-item-form input:focus,
#post-item-modal .post-item-form select:focus,
#post-item-modal .post-item-form textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.post-item-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.post-item-primary {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.post-item-preview-panel {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
    max-width: 440px;
}

.post-item-preview-header h5 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.post-item-preview-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.preview-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0 0 0.2rem;
    font-weight: 800;
}

.post-ad-preview-card {
    pointer-events: none;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

#post-item-modal .post-ad-preview-card {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.9rem;
}

#post-item-modal .post-ad-preview-card .home-bottom-ad-media {
    min-height: 160px;
    border-radius: 16px;
}

#post-item-modal .post-ad-preview-card .home-bottom-ad-content h3 {
    font-size: 1.15rem;
}

#post-item-modal .post-ad-preview-card .home-bottom-ad-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
}

#post-item-modal .post-ad-preview-card .home-bottom-ad-actions button {
    width: 100%;
}

@media (max-width: 720px) {
    #post-item-modal .modal-content {
        width: calc(100vw - 1.5rem);
        height: calc(100vh - 1.5rem);
        max-height: calc(100vh - 1.5rem);
        border-radius: 18px;
    }
}

.post-ad-preview-card .home-bottom-ad-media {
    min-height: 180px;
}

.post-ad-preview-card .home-bottom-ad-actions button {
    pointer-events: none;
}

.post-ad-preview-card .home-bottom-ad-actions .btn-primary[disabled],
.post-ad-preview-card .home-bottom-ad-actions .btn-secondary[disabled] {
    opacity: 0.85;
}

.post-ad-preview-body {
    margin: 0 0 0.65rem;
    color: #475569;
    line-height: 1.55;
}

.post-ad-preview-meta {
    margin: 0 0 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.preview-empty-tag {
    background: rgba(148, 163, 184, 0.15);
    border: 1px dashed rgba(148, 163, 184, 0.4);
}

@media (max-width: 1024px) {
    .post-item-main {
        grid-template-columns: 1fr;
    }

    .post-item-preview-panel {
        position: static;
        order: 2;
    }
}

.form-section-header {
    margin-bottom: 1rem;
}

.form-section-header h5 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #0f172a;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.form-helper {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.post-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.post-item-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.realestate-fields {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1.25rem 0;
}

#post-item-modal.jobs-mode .post-item-grid {
    grid-template-columns: 1fr;
}

.jobs-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jobs-form-section {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.jobs-form-subhead {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.75);
}

#demo-profile-modal .modal-content {
    max-width: 640px;
    height: auto;
    max-height: 90vh;
    padding: 1.5rem;
    overflow-y: auto;
    position: relative;
    gap: 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background:
        radial-gradient(120px circle at 16% 12%, rgba(59, 130, 246, 0.16), transparent 60%),
        radial-gradient(160px circle at 86% -8%, rgba(14, 165, 233, 0.18), transparent 55%),
        radial-gradient(260px circle at 80% 110%, rgba(226, 232, 240, 0.65), transparent 60%),
        linear-gradient(160deg, #ffffff 0%, #f6f7fb 45%, #eef2f7 100%);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

#demo-profile-modal .modal-close-btn {
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #0f172a;
}

#demo-profile-modal .modal-close-btn:hover {
    background: rgba(15, 23, 42, 0.14);
}

#luxury-ad-modal .luxury-ad-modal {
    background: #0b1020;
    color: #f8fafc;
    width: min(820px, 94vw);
    max-width: 820px;
    height: auto;
    max-height: 92vh;
    border-radius: 24px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    box-shadow: 0 35px 80px rgba(2, 6, 23, 0.6);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    scrollbar-gutter: stable;
}

#luxury-ad-modal .modal-close-btn {
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    border: 1px solid rgba(248, 250, 252, 0.18);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

#luxury-ad-modal .modal-close-btn:hover {
    background: rgba(15, 23, 42, 0.85);
}

#luxury-ad-modal .luxury-ad-hero {
    position: relative;
    height: 260px;
}

#luxury-ad-modal .luxury-ad-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

#luxury-ad-modal .luxury-ad-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.78) 100%);
}

#luxury-ad-modal .luxury-ad-tier {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #0b1020;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.35);
}

#luxury-ad-modal .luxury-ad-pill {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.3);
    color: #e2e8f0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#luxury-ad-modal .luxury-ad-body {
    padding: 1.3rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
}

#luxury-ad-modal .luxury-ad-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(250, 204, 21, 0.9);
}

#luxury-ad-modal .luxury-ad-body h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
}

#luxury-ad-modal .luxury-ad-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
}

#luxury-ad-modal .luxury-ad-meta {
    font-size: 0.92rem;
    color: rgba(226, 232, 240, 0.78);
}

#luxury-ad-modal .luxury-ad-summary {
    margin: 0;
    color: rgba(248, 250, 252, 0.88);
    line-height: 1.5;
    width: 100%;
    min-height: 110px;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.25);
    white-space: pre-wrap;
}

#luxury-ad-modal .luxury-ad-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem 0.9rem;
}

#luxury-ad-modal .luxury-ad-detail {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

#luxury-ad-modal .luxury-ad-detail span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.65);
}

#luxury-ad-modal .luxury-ad-detail strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
}

#luxury-ad-modal .luxury-ad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#luxury-ad-modal .luxury-ad-tag {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.14);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
}


#luxury-ad-modal .luxury-ad-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

#luxury-ad-modal .luxury-ad-thumbs::-webkit-scrollbar {
    height: 0;
    display: none;
}

#luxury-ad-modal .luxury-ad-thumb {
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 12px;
    background: transparent;
    padding: 0;
    width: 72px;
    height: 58px;
    overflow: hidden;
    cursor: pointer;
}

#luxury-ad-modal .luxury-ad-thumb.active {
    border-color: rgba(250, 204, 21, 0.75);
    box-shadow: 0 10px 24px rgba(250, 204, 21, 0.2);
}

#luxury-ad-modal .luxury-ad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#luxury-ad-modal .luxury-ad-perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
}

#luxury-ad-modal .luxury-ad-perk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-weight: 700;
    font-size: 0.85rem;
}

#luxury-ad-modal .luxury-ad-perk i {
    color: rgba(250, 204, 21, 0.9);
}

#luxury-ad-modal .luxury-ad-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

#luxury-ad-modal .btn-primary {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #0b1020;
    border: none;
    box-shadow: 0 16px 34px rgba(250, 204, 21, 0.25);
}

#luxury-ad-modal .btn-secondary {
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    border: 1px solid rgba(250, 204, 21, 0.25);
}

@media (max-width: 640px) {
    #luxury-ad-modal .luxury-ad-hero {
        height: 210px;
    }

    #luxury-ad-modal .luxury-ad-body {
        padding: 1.1rem 1.2rem 1.4rem;
    }

    #luxury-ad-modal .luxury-ad-perks {
        grid-template-columns: 1fr;
    }
}

#marketplace-item-modal .marketplace-item-modal {
    width: min(92vw, 960px);
    max-height: 92vh;
    height: auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
}

#marketplace-item-modal .marketplace-item-hero {
    position: relative;
    background: #0f172a;
}

#marketplace-item-modal .marketplace-item-carousel {
    height: 320px;
}

#marketplace-item-modal .marketplace-item-carousel .carousel-track {
    height: 100%;
}

#marketplace-item-modal .marketplace-item-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#marketplace-item-modal .marketplace-item-body {
    padding: 1.4rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow-y: auto;
}

#marketplace-item-modal .marketplace-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

#marketplace-item-modal .marketplace-item-header .featured-label {
    color: rgba(37, 99, 235, 0.8);
    letter-spacing: 0.2em;
}

#marketplace-item-modal .marketplace-item-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(29, 78, 216, 0.98);
}

#marketplace-item-modal .marketplace-item-meta {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: rgba(71, 85, 105, 0.9);
    font-weight: 600;
}

#marketplace-item-modal .marketplace-item-description {
    margin: 0;
    line-height: 1.55;
    color: #334155;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    min-height: 140px;
}

#marketplace-item-modal .marketplace-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem 0.9rem;
}

#marketplace-item-modal .marketplace-item-detail {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#marketplace-item-modal .marketplace-item-detail span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.9);
}

#marketplace-item-modal .marketplace-item-detail strong {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 800;
}

#marketplace-item-modal .marketplace-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#marketplace-item-modal .marketplace-item-tag {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.3);
    font-weight: 700;
    font-size: 0.78rem;
}

#marketplace-item-modal .marketplace-item-seller-link {
    margin-top: 0.2rem;
}

#marketplace-item-modal .marketplace-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    #marketplace-item-modal .marketplace-item-carousel {
        height: 220px;
    }

    #marketplace-item-modal .marketplace-item-body {
        padding: 1.1rem 1.2rem 1.4rem;
    }

    #marketplace-item-modal .marketplace-item-actions {
        justify-content: stretch;
    }

    #marketplace-item-modal .marketplace-item-actions .btn-primary,
    #marketplace-item-modal .marketplace-item-actions .btn-secondary {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(15, 23, 42, 0.16);
}

.demo-profile-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.demo-profile-photo {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.demo-profile-summary h3 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
    color: #0f172a;
    font-family: "Fraunces", "Times New Roman", Times, serif;
    letter-spacing: 0.01em;
}

.demo-profile-role {
    color: #1d4ed8;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.demo-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.demo-profile-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.demo-profile-status.offline {
    background: rgba(107, 114, 128, 0.15);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.35);
}

.demo-profile-status.offline::before {
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.demo-profile-distance {
    color: #475569;
    font-weight: 600;
}

.demo-profile-bio {
    color: #1f2937;
    font-size: 1.02rem;
    line-height: 1.6;
}

.demo-profile-extra {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.demo-profile-extra h4 {
    margin-bottom: 0.35rem;
    color: #0f172a;
    font-size: 1rem;
}

.demo-profile-looking {
    color: #4b5563;
}

.demo-profile-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.demo-profile-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #334155;
}

.demo-profile-highlights li i {
    color: #2563eb;
    margin-top: 0.2rem;
}

.demo-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.demo-profile-tags span {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.demo-profile-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

#demo-profile-modal .demo-profile-actions .btn-secondary {
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #0f172a;
}

#demo-profile-modal .demo-profile-actions .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.14);
}

#demo-profile-modal .demo-profile-actions .btn-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border: 1px solid rgba(59, 130, 246, 0.6);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

@media (max-width: 720px) {
    .demo-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .demo-profile-photo {
        width: 100%;
        height: 220px;
    }
    .demo-profile-extra {
        grid-template-columns: 1fr;
    }
    .demo-profile-actions {
        justify-content: center;
    }
    .modal-close-btn {
        top: 0.75rem;
        right: 0.75rem;
    }
}

.modal-content > .modal-close-btn,
.profile-modal-content > .modal-close-btn,
.premium-reg-card > .modal-close-btn,
.age-card > .modal-close-btn,
.match-content > .modal-close-btn {
    position: sticky;
    top: 1rem;
    right: auto;
    margin: 1rem 1rem -2.25rem auto;
    align-self: flex-end;
    z-index: 6;
}

.auth-card > .auth-close {
    position: sticky;
    top: 0.85rem;
    right: auto;
    margin: 0.85rem 0.85rem -2.25rem auto;
    align-self: flex-end;
    z-index: 6;
}

@media (max-width: 720px) {
    .modal-content > .modal-close-btn,
    .profile-modal-content > .modal-close-btn,
    .premium-reg-card > .modal-close-btn,
    .age-card > .modal-close-btn,
    .match-content > .modal-close-btn {
        top: 0.75rem;
        margin: 0.75rem 0.75rem -2.25rem auto;
    }

    .auth-card > .auth-close {
        top: 0.75rem;
        margin: 0.75rem 0.75rem -2.25rem auto;
    }
}

/* Profile Lightbox Modal */
#profile-modal .profile-modal-content {
    background: white;
    width: min(92vw, 820px);
    max-height: 92vh;
    border-radius: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    position: relative;
    scrollbar-gutter: stable;
}

.profile-modal-media {
    position: relative;
    background: #0f172a;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 520px;
}
.profile-modal-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 520px;
}

.profile-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.profile-photo-nav:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-50%) scale(1.02); }
.profile-photo-nav:active { transform: translateY(-50%) scale(0.98); }
.profile-photo-nav.prev { left: 1rem; }
.profile-photo-nav.next { right: 1rem; }
.profile-photo-nav:disabled { opacity: 0.45; cursor: default; }

.profile-photo-counter {
    position: absolute;
    bottom: 0.8rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

.profile-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.profile-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.profile-modal-header h3 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.profile-modal-header p {
    margin: 0;
    color: #475569;
    font-weight: 600;
}

.profile-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
    margin-top: 0.35rem;
}

.profile-status-dot.offline {
    background: #9ca3af;
    box-shadow: 0 0 0 6px rgba(156, 163, 175, 0.2);
}

.profile-modal-bio {
    color: #1f2937;
    line-height: 1.6;
    margin: 0;
}

.profile-modal-section h4 {
    margin: 0 0 0.35rem;
    color: #111827;
    font-size: 1rem;
}

.profile-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lifestyle-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
}

.lifestyle-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.85);
}

.lifestyle-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.lifestyle-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
}

.profile-modal-arrive-meta {
    margin: 0 0 0.4rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-modal-offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-offer-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.85);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.profile-offer-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
}

.profile-offer-thumb {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: #e2e8f0;
    flex: 0 0 auto;
}

.profile-offer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.profile-offer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.78rem;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.profile-offer-pill.service {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.profile-offer-price {
    font-weight: 900;
    color: #0f172a;
    font-size: 0.9rem;
}

.profile-offer-title {
    font-weight: 900;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.2;
}

.profile-offer-meta {
    margin-top: 0.25rem;
    color: #475569;
    font-weight: 650;
    font-size: 0.85rem;
}

.profile-modal-tag {
    background: #eef2ff;
    color: #4338ca;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.profile-comments-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.profile-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.profile-comments-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
}

.profile-comments-list {
    display: grid;
    gap: 0.6rem;
}

.profile-comment {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(248, 250, 252, 0.9);
    padding: 0.65rem 0.8rem;
}

.profile-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
}

.profile-comment-time {
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
}

.profile-comment-text {
    margin: 0.35rem 0 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

.profile-comment-empty {
    padding: 0.6rem 0.2rem;
    color: #64748b;
    font-size: 0.9rem;
}

.profile-comment-submit {
    width: auto;
    align-self: flex-start;
}

.profile-comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.9rem;
    resize: vertical;
}

.profile-comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#notification-center-wrap {
    position: relative;
    z-index: 30;
}

.notification-bell {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.2);
    background: rgba(15, 23, 42, 0.88);
    color: rgba(248, 250, 252, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(8px);
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.notification-bell:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.32);
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.notification-count.hidden {
    display: none;
}

.notification-center {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(360px, 92vw);
    max-height: 70vh;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.notification-center-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.9);
}

.notification-center-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.notification-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.notification-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    background: transparent;
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.08);
}

.notification-item-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.notification-item-message {
    margin: 0;
    color: #475569;
    font-size: 0.85rem;
}

.notification-item-time {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.notification-empty {
    padding: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    #notification-center-wrap {
        top: 0.85rem;
        right: 0.85rem;
    }
    .notification-center {
        top: 4rem;
        right: 0.85rem;
        width: min(92vw, 360px);
    }
}

#profile-modal-message { background: #e2e8f0; color: #111827; }
#profile-modal-message:hover { background: #cbd5e1; }

@media (max-width: 640px) {
    #profile-modal .profile-modal-content { width: 94vw; max-height: 94vh; }
    .profile-modal-media { min-height: 260px; }
    .profile-photo-nav { width: 42px; height: 42px; }
    .profile-modal-body { padding: 1rem 1.1rem 1.25rem; }
    .profile-modal-header { flex-direction: column; align-items: flex-start; }
    .profile-modal-offers { grid-template-columns: 1fr; }
}

/* Seller Profile Modal */
#seller-profile-modal .seller-profile-modal {
    background: #fff;
    width: min(94vw, 900px);
    height: min(92vh, 860px);
    max-height: 92vh;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    position: relative;
}

.seller-profile-scroll {
    padding: 1.5rem;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seller-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.seller-profile-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.seller-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(11, 27, 58, 0.96), rgba(37, 99, 235, 0.85));
    color: rgba(248, 250, 252, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 1.1rem;
    box-shadow: 0 18px 35px rgba(2, 6, 23, 0.2);
    flex: 0 0 auto;
}

.seller-profile-avatar.has-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.seller-profile-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.seller-profile-title-row h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #0f172a;
}

.seller-profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: rgba(5, 150, 105, 0.95);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.seller-profile-rating {
    margin-top: 0.25rem;
    font-weight: 800;
    color: #0f172a;
}

.seller-profile-location {
    color: #475569;
    font-weight: 600;
    margin-top: 0.15rem;
}

.seller-profile-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.seller-profile-bio {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

.seller-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.seller-profile-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.seller-profile-stat strong {
    font-size: 0.95rem;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.seller-profile-section h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.seller-profile-note {
    margin: 0 0 0.75rem;
    color: #64748b;
    font-size: 0.85rem;
}

.seller-profile-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.seller-listing-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(248, 250, 252, 0.8);
    padding: 0.6rem;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.seller-listing-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
}

.seller-listing-thumb {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    background: #e2e8f0;
    flex: 0 0 auto;
}

.seller-listing-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.seller-listing-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-listing-meta {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 600;
}

.seller-profile-reviews {
    display: grid;
    gap: 0.75rem;
}

.seller-review {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(248, 250, 252, 0.9);
    padding: 0.75rem 0.9rem;
}

.seller-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.seller-review-meta {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.seller-review p {
    margin: 0;
    color: #1f2937;
    line-height: 1.5;
}

.seller-profile-empty {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Seller profile modal: luxury theme (used by Home featured ads) */
#seller-profile-modal.luxury .seller-profile-modal {
    background: #0b1020;
    color: #f8fafc;
    border: 1px solid rgba(250, 204, 21, 0.28);
    box-shadow: 0 35px 80px rgba(2, 6, 23, 0.6);
    height: min(96vh, 900px);
    max-height: 96vh;
}

#seller-profile-modal.luxury .modal-close-btn {
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    border: 1px solid rgba(248, 250, 252, 0.18);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

#seller-profile-modal.luxury .modal-close-btn:hover {
    background: rgba(15, 23, 42, 0.85);
}

#seller-profile-modal.luxury .seller-profile-avatar {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #0b1020;
    box-shadow: 0 18px 35px rgba(250, 204, 21, 0.22);
}

#seller-profile-modal .seller-profile-luxury-hero {
    height: 340px;
    margin: -1.5rem -1.5rem 1.05rem;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.08) contrast(1.05);
    position: relative;
    overflow: hidden;
}

#seller-profile-modal.luxury .seller-profile-luxury-hero {
    cursor: pointer;
}

#seller-profile-modal.luxury .seller-profile-luxury-hero:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.55);
    outline-offset: 3px;
}

#seller-profile-modal.luxury .seller-profile-luxury-hero {
    display: block;
}

#seller-profile-modal.luxury .seller-profile-luxury-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.78) 100%);
}

#seller-profile-modal.luxury .seller-profile-luxury-tier {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #0b1020;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.35);
}

#seller-profile-modal.luxury .seller-profile-luxury-pill {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.3);
    color: #e2e8f0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#seller-profile-modal.luxury .seller-profile-luxury-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.85rem 1.1rem;
    padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom));
    margin: 0;
    background: rgba(11, 16, 32, 0.92);
    border-top: 1px solid rgba(250, 204, 21, 0.18);
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    flex: 0 0 auto;
}

#seller-profile-modal.luxury .seller-profile-luxury-thumbs::-webkit-scrollbar {
    height: 0;
    display: none;
}

#seller-profile-modal.luxury .seller-profile-luxury-thumb {
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 12px;
    background: transparent;
    padding: 0;
    width: 72px;
    height: 58px;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
}

#seller-profile-modal.luxury .seller-profile-luxury-thumb.active {
    border-color: rgba(250, 204, 21, 0.75);
    box-shadow: 0 10px 24px rgba(250, 204, 21, 0.2);
}

#seller-profile-modal.luxury .seller-profile-luxury-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    #seller-profile-modal.luxury .seller-profile-luxury-hero {
        height: 260px;
    }
}

#seller-profile-modal.luxury .seller-profile-title-row h3 {
    color: #f8fafc;
}

#seller-profile-modal.luxury .seller-profile-badge {
    background: rgba(250, 204, 21, 0.14);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: rgba(250, 204, 21, 0.95);
}

#seller-profile-modal.luxury .seller-profile-rating {
    color: rgba(248, 250, 252, 0.92);
}

#seller-profile-modal.luxury .seller-profile-location {
    color: rgba(226, 232, 240, 0.78);
}

#seller-profile-modal.luxury .seller-profile-bio {
    color: rgba(248, 250, 252, 0.88);
}

#seller-profile-modal.luxury .seller-profile-stats {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

#seller-profile-modal.luxury .seller-profile-stat {
    color: rgba(226, 232, 240, 0.65);
}

#seller-profile-modal.luxury .seller-profile-stat strong {
    color: #f8fafc;
}

#seller-profile-modal.luxury .seller-profile-section h4 {
    color: #f8fafc;
}

#seller-profile-modal.luxury .seller-profile-note,
#seller-profile-modal.luxury .seller-profile-empty {
    color: rgba(226, 232, 240, 0.7);
}

#seller-profile-modal.luxury .seller-listing-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

#seller-profile-modal.luxury .seller-listing-card:hover {
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
    border-color: rgba(250, 204, 21, 0.35);
}

#seller-profile-modal.luxury .seller-listing-title {
    color: #f8fafc;
}

#seller-profile-modal.luxury .seller-listing-meta {
    color: rgba(226, 232, 240, 0.75);
}

#seller-profile-modal.luxury .seller-review {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

#seller-profile-modal.luxury .seller-review-head {
    color: rgba(248, 250, 252, 0.92);
}

#seller-profile-modal.luxury .seller-review-meta {
    color: rgba(226, 232, 240, 0.65);
}

#seller-profile-modal.luxury .seller-review p {
    color: rgba(248, 250, 252, 0.88);
}

#seller-profile-modal.luxury .seller-profile-actions .btn-primary.small {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #0b1020;
    border: none;
    box-shadow: 0 16px 34px rgba(250, 204, 21, 0.22);
}

#seller-profile-modal.luxury .seller-profile-actions .btn-secondary.small {
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    border: 1px solid rgba(250, 204, 21, 0.25);
}

@media (max-width: 720px) {
    #seller-profile-modal .seller-profile-modal {
        padding: 0;
    }
    .seller-profile-scroll {
        padding: 1.1rem;
    }
    .seller-profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .seller-profile-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Seller Rating Modal */
#seller-rating-modal .seller-rating-modal {
    background: #fff;
    width: min(92vw, 520px);
    max-height: 90vh;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: auto;
}

.seller-rating-sub {
    margin: 0;
    color: #475569;
    font-weight: 600;
}

.seller-rating-stars {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.seller-rating-star {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.9);
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.seller-rating-star.active {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
    background: rgba(59, 130, 246, 0.1);
}

.seller-rating-value {
    font-weight: 800;
    color: #0f172a;
}

.seller-rating-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Age Gate Modal */
#age-gate-modal .age-card {
    background: white;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

#age-gate-modal .age-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

#age-gate-modal .age-text {
    color: #555;
    margin-bottom: 1rem;
}

#age-gate-modal .age-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Chat Modal */
.chat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-user-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.chat-user-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-start;
}

.message.sent {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.message > div {
    max-width: 70%;
}

.message-bubble {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    width: fit-content;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message.sent .message-bubble {
    background: #2563eb;
    color: white;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
}

.chat-input {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    outline: none;
}

.chat-input input:focus {
    border-color: #2563eb;
}

.chat-input button {
    background: #2563eb;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-modal {
    --chat-ink: #101523;
    --chat-ink-2: #1b2234;
    --chat-starlight: #eaf2ff;
    --chat-lilac: #d9e3ff;
    --chat-ice: #f7f9ff;
    --chat-blue: #4f6fff;
}

#chat-modal .modal-content {
    background: linear-gradient(180deg, #f7f9ff 0%, #eef4ff 55%, #ffffff 100%);
    border: 1px solid rgba(79, 111, 255, 0.15);
    box-shadow: 0 30px 60px rgba(20, 30, 60, 0.18);
    overflow: hidden;
}

#chat-modal .modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 12%, rgba(79, 111, 255, 0.18), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.9), transparent 35%),
        radial-gradient(circle at 20% 65%, rgba(186, 203, 255, 0.35), transparent 55%),
        repeating-linear-gradient(130deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6) 1px, transparent 1px, transparent 12px);
    opacity: 0.7;
    pointer-events: none;
}

#chat-modal .modal-content > * {
    position: relative;
    z-index: 1;
}

#chat-modal .chat-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 240, 255, 0.96) 55%, rgba(255, 255, 255, 0.98) 100%);
    border-bottom: 1px solid rgba(79, 111, 255, 0.18);
    color: var(--chat-ink);
    box-shadow: 0 16px 30px rgba(40, 55, 90, 0.12);
}

#chat-modal .chat-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.9), transparent 45%),
        linear-gradient(120deg, rgba(120, 148, 255, 0.18), transparent 40%),
        linear-gradient(300deg, rgba(188, 204, 255, 0.2), transparent 45%);
    opacity: 0.7;
    pointer-events: none;
}

#chat-modal .chat-header.has-mac-controls {
    justify-content: space-between;
    padding-left: 3.5rem;
}

#chat-modal .chat-header.has-mac-controls .mac-window-controls {
    top: 0.95rem;
}

#chat-modal .chat-header.has-mac-controls .mac-dot {
    border-color: rgba(79, 111, 255, 0.25);
    box-shadow: 0 6px 14px rgba(55, 75, 120, 0.18);
}

#chat-modal .chat-header.has-mac-controls .mac-dot i {
    color: rgba(16, 21, 35, 0.8);
}

#chat-modal .close-chat {
    color: var(--chat-ink);
    opacity: 0.85;
}

#chat-modal .chat-user-info img {
    border: 2px solid rgba(79, 111, 255, 0.25);
    box-shadow: 0 6px 16px rgba(50, 70, 120, 0.18);
}

#chat-modal .chat-user-info h4 {
    font-family: "Fraunces", "Times New Roman", serif;
    letter-spacing: 0.01em;
    color: var(--chat-ink);
    text-shadow: 0 8px 18px rgba(70, 90, 150, 0.16);
}

#chat-modal .chat-user-info span {
    color: rgba(16, 21, 35, 0.6);
}

#chat-modal #chat-user-status {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0b1224;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

#chat-modal .chat-listing-label {
    font-family: "Space Grotesk", "Fraunces", Georgia, "Times New Roman", Times, serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #4666ff;
    color: #142042;
    box-shadow: 0 10px 22px rgba(36, 56, 110, 0.2);
    white-space: nowrap;
}

#chat-modal .chat-listing-title {
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0b1224;
    text-shadow: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#chat-modal .chat-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(79, 111, 255, 0.2);
    color: var(--chat-ink);
}

#chat-modal .chat-actions .btn-secondary:hover {
    border-color: rgba(79, 111, 255, 0.35);
    box-shadow: 0 8px 18px rgba(60, 80, 140, 0.16);
}

#chat-modal .chat-messages {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

#chat-modal .message-bubble {
    background: #ffffff;
    color: #1a2133;
    border: 1px solid rgba(79, 111, 255, 0.15);
    box-shadow: 0 10px 24px rgba(30, 40, 80, 0.1);
}

#chat-modal .message.sent .message-bubble {
    background: linear-gradient(145deg, #dfe9ff 0%, #f4f7ff 100%);
    color: #1b2234;
    border-color: rgba(79, 111, 255, 0.25);
}

#chat-modal .message-time {
    color: rgba(79, 111, 255, 0.7);
}

#chat-modal .chat-input {
    background: #ffffff;
    border-top: 1px solid rgba(79, 111, 255, 0.15);
    gap: 0.75rem;
}

#chat-modal .chat-input input {
    background: linear-gradient(135deg, #ffffff 0%, #f2f6ff 100%);
    border: 1px solid rgba(79, 111, 255, 0.22);
    color: #1a2133;
    border-radius: 999px;
    padding: 0.85rem 1.1rem;
}

#chat-modal .chat-input input::placeholder {
    color: rgba(26, 33, 51, 0.5);
}

#chat-modal #send-message {
    background: linear-gradient(135deg, #4169e1 0%, #5f86ff 100%);
    color: #f8fafc;
    box-shadow: 0 10px 22px rgba(65, 105, 225, 0.35);
    border: none;
    width: auto;
    min-width: 92px;
    height: 44px;
    border-radius: 999px;
    padding: 0 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.promotion-fee-modal {
    max-width: 520px;
}
.promotion-fee-body {
    padding: 1.1rem 1.2rem 1.25rem;
}
.promotion-fee-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.wallet-card {
    background: rgba(15, 23, 42, 0.035);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
}
.wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.wallet-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}
.wallet-value {
    margin: 0.15rem 0 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}
.wallet-status {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
}
@media (max-width: 640px) {
    .promotion-fee-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Match Modal */
.match-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
    margin: 2rem;
    max-height: 90vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.match-content .modal-close-btn {
    background: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
}

.match-content .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.match-animation {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: heartbeat 1s ease-in-out infinite;
}

.match-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.match-photos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.match-photos img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}

.match-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.match-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.match-actions button {
    padding: 1rem 2rem;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* SOS floating button */
.sos-btn {
    position: fixed;
    right: 16px;
    bottom: 96px; /* above bottom nav */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #ff6b6b;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-stack {
        height: 50vh;
    }
    
    .match-photos {
        gap: 1rem;
    }
    
    .match-photos img {
        width: 80px;
        height: 80px;
    }
    
    .action-buttons {
        gap: 1rem;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.card.swipe-right {
    animation: slideOut 0.3s ease-out forwards;
    transform: rotate(20deg);
}

.card.swipe-left {
    animation: slideOut 0.3s ease-out forwards;
    transform: rotate(-20deg);
}

/* Status indicators */
.online-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.offline-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #999;
    border-radius: 50%;
    margin-left: 0.5rem;
}

/* Media Lightbox */
body.media-lightbox-open { overflow: hidden; }

.media-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 1.75rem;
    z-index: 5000;
    backdrop-filter: blur(2px);
    gap: 1rem;
}
.media-lightbox.hidden { display: none; }
.media-lightbox-frame {
    width: min(98vw, 1400px);
    height: min(94vh, 1200px);
    max-width: 1400px;
    max-height: 94vh;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.media-lightbox-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
    transition: transform 0.25s ease;
}

.media-lightbox-thumbs {
    width: min(98vw, 1400px);
    max-width: 1400px;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.1rem;
    scrollbar-width: none;
}
.media-lightbox-thumbs::-webkit-scrollbar { display: none; }
.ml-thumb {
    flex: 0 0 auto;
    width: 62px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(2, 6, 23, 0.5);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}
.ml-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.95;
}
.ml-thumb.ml-thumb-video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 250, 252, 0.92);
    font-size: 1.05rem;
    background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.22), transparent 55%),
                radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.22), transparent 60%),
                rgba(2, 6, 23, 0.55);
}
.ml-thumb.active {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.24);
}
.media-lightbox-caption {
    color: #f9fafb;
    font-size: 0.9rem;
    text-align: center;
    max-width: min(82vw, 640px);
}

.profile-modal-phone {
    margin: 0.35rem 0 0;
    color: rgba(51, 65, 85, 0.9);
    font-weight: 700;
}
.profile-modal-phone a {
    color: #1d4ed8;
    font-weight: 900;
    text-decoration: none;
}
.profile-modal-phone a:hover { text-decoration: underline; }
.media-lightbox-counter {
    color: #e2e8f0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}
.media-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.65);
    color: #f9fafb;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
    backdrop-filter: blur(4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.45);
}
.media-lightbox-nav:hover { background: rgba(15, 23, 42, 0.9); }
.media-lightbox-nav:active { transform: translateY(-50%) scale(0.96); }
.media-lightbox-nav:disabled { opacity: 0.4; cursor: default; }
.media-lightbox-nav:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}
.media-lightbox-prev { left: clamp(1rem, 4vw, 3rem); }
.media-lightbox-next { right: clamp(1rem, 4vw, 3rem); }
.media-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.65);
    color: #f9fafb;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.45);
    z-index: 2;
}
.media-lightbox-close:hover { background: rgba(15, 23, 42, 0.85); }

@media (max-width: 900px) {
    .media-lightbox { padding: 2rem 1rem 1.25rem; }
}

@media (max-width: 640px) {
    .media-lightbox { padding: 1.5rem 0.75rem 1rem; }
    .media-lightbox-close { top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; }
    .media-lightbox-frame { width: 94vw; height: 84vh; max-height: 84vh; }
    .media-lightbox-nav { width: 44px; height: 44px; font-size: 1.05rem; }
    .media-lightbox-prev { left: 1rem; }
    .media-lightbox-next { right: 1rem; }
}
#dating-content {
    --dating-bg: #ffffff;
    --dating-ink: #0f172a;
    --dating-muted: rgba(71, 85, 105, 0.92);
    --dating-surface: rgba(255, 255, 255, 0.92);
    --dating-surface-2: rgba(255, 255, 255, 0.96);
    --dating-border: rgba(148, 163, 184, 0.28);
    --dating-gold: #fbbf24;
    --dating-gold-deep: #d97706;
    --dating-amethyst: #7c3aed;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
                radial-gradient(1200px circle at 10% -10%, rgba(124, 58, 237, 0.12), transparent 56%),
                radial-gradient(980px circle at 90% 0%, rgba(234, 179, 8, 0.10), transparent 54%),
                radial-gradient(820px circle at 70% 110%, rgba(14, 165, 233, 0.08), transparent 60%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    border-radius: 24px;
    color: var(--dating-ink);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

#dating-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(15, 23, 42, 0.12) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 74% 40%, rgba(15, 23, 42, 0.08) 0 1px, transparent 2px) 0 0 / 280px 280px,
        radial-gradient(circle at 42% 78%, rgba(15, 23, 42, 0.06) 0 1px, transparent 2px) 0 0 / 360px 360px,
        radial-gradient(1200px circle at 50% -20%, rgba(251, 191, 36, 0.08), transparent 60%),
        radial-gradient(1000px circle at 10% 70%, rgba(124, 58, 237, 0.08), transparent 60%);
    pointer-events: none;
    opacity: 0.24;
    z-index: 0;
}

#dating-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 40%, rgba(15, 23, 42, 0.06) 100%),
        linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.28), transparent)
            1.35rem calc(100% - 0.75rem) / calc(100% - 2.7rem) 1px no-repeat;
    pointer-events: none;
    z-index: 0;
}

#dating-content > * {
    position: relative;
    z-index: 1;
}

#dating-content .app-header {
    position: relative;
    isolation: isolate;
    padding: 1.05rem 1.15rem 1.25rem;
    margin: 0.25rem 0 1.1rem;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.95), rgba(14, 165, 233, 0.55)) 0 0 / 5px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.22), transparent 60%),
        radial-gradient(760px circle at 88% 16%, rgba(34, 197, 94, 0.12), transparent 58%),
        radial-gradient(720px circle at 50% 120%, rgba(124, 58, 237, 0.14), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(10px);
}

#dating-content .app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px) 0 0 / 260px 260px,
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0 / 310px 310px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.52;
}

#dating-content .app-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%, rgba(15, 23, 42, 0.30) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 62%),
        linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.65), transparent)
            1.15rem calc(100% - 0.65rem) / calc(100% - 2.3rem) 1px no-repeat;
    pointer-events: none;
    z-index: 0;
}

#dating-content .app-header > * {
    position: relative;
    z-index: 1;
}

#dating-content .app-header h2 {
    margin: 0;
    color: rgba(248, 250, 252, 0.98);
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.02em;
    text-shadow: 0 18px 38px rgba(2, 6, 23, 0.45);
}

#dating-content .app-header-subtitle {
    color: rgba(226, 232, 240, 0.82);
    text-shadow: 0 10px 22px rgba(2, 6, 23, 0.45);
}

/* Keep the top header galaxy-styled even on the light Dating theme. */
#dating-content .app-header .settings-btn {
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.22);
    color: rgba(248, 250, 252, 0.95);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(10px);
}

#dating-content .app-header .settings-btn:hover {
    background: rgba(248, 250, 252, 0.12);
    border-color: rgba(226, 232, 240, 0.3);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

#dating-content .dating-section { color: rgba(15, 23, 42, 0.92); }

#dating-content .section-title {
    color: rgba(15, 23, 42, 0.96);
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.02em;
}

#dating-content.companionship-mode .app-header {
    position: relative;
    isolation: isolate;
    padding: 1.05rem 1.15rem 1.25rem;
    margin: 0.25rem 0 1.1rem;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.95), rgba(14, 165, 233, 0.55)) 0 0 / 5px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.22), transparent 60%),
        radial-gradient(760px circle at 88% 16%, rgba(34, 197, 94, 0.14), transparent 58%),
        radial-gradient(720px circle at 50% 120%, rgba(59, 130, 246, 0.18), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

#dating-content.companionship-mode .app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px) 0 0 / 260px 260px,
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0 / 310px 310px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

#dating-content.companionship-mode .app-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%, rgba(15, 23, 42, 0.30) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 62%),
        linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.75), transparent)
            1.15rem calc(100% - 0.65rem) / calc(100% - 2.3rem) 1px no-repeat;
    pointer-events: none;
    z-index: 0;
}

#dating-content.companionship-mode .app-header > * {
    position: relative;
    z-index: 1;
}

#dating-content.companionship-mode .app-header h2 {
    color: rgba(248, 250, 252, 0.98);
}

/* Companionship screen: keep arrows visible so users can return to Dating base view. */
#dating-content.companionship-mode #dating-back,
#dating-content.companionship-mode #dating-category-back {
    display: inline-flex;
}

/* Companionship featured cards: show chevrons for photo navigation. */
#dating-content.companionship-mode .companionship-featured-strip .carousel-btn {
    display: inline-flex;
}

/* Community: luxury category strip */
#community-content .community-page-chips {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1.1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.92), rgba(14, 165, 233, 0.45)) 0 0 / 4px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.18), transparent 62%),
        radial-gradient(720px circle at 86% 30%, rgba(250, 204, 21, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

#community-content .community-page-chips::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.26) 0 1px, transparent 2px) 0 0 / 260px 260px;
    pointer-events: none;
    opacity: 0.5;
}

#community-content .community-page-chips::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 40%, rgba(15, 23, 42, 0.32) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%);
    pointer-events: none;
}

#community-content .community-page-chips > * {
    position: relative;
    z-index: 1;
}

#community-content .community-chip {
    appearance: none;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(248, 250, 252, 0.08);
    color: rgba(248, 250, 252, 0.92);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-weight: 850;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 12px 28px rgba(2, 6, 23, 0.28);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(10px);
}

#community-content .community-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.95), rgba(245, 158, 11, 0.65));
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.12), 0 12px 22px rgba(250, 204, 21, 0.18);
    flex: 0 0 auto;
}

#community-content .community-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(248, 250, 252, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(2, 6, 23, 0.34);
}

#community-content .community-chip.active {
    border-color: rgba(250, 204, 21, 0.65);
    background: rgba(248, 250, 252, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 52px rgba(2, 6, 23, 0.38);
}

#community-content .community-chip:active {
    transform: translateY(0);
}

#community-content .community-chip:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.22);
    outline-offset: 3px;
    border-color: rgba(250, 204, 21, 0.55);
}

#community-content #community-promote-ad.btn-luxe {
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.34);
}

#community-content #community-promote-ad.btn-luxe:hover {
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.42);
}

@media (max-width: 640px) {
    #community-content .community-page-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    #community-content .community-page-chips::-webkit-scrollbar { display: none; }
    #community-content .community-chip { white-space: nowrap; }
}

/* Community feed */
.community-page-feed-wrap {
    margin-top: 1.35rem;
}

.community-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.community-feed-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

#community-page-date {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.community-feed-subhead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.community-feed-subhead h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.community-feed-description {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.community-feed-count {
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
}

.community-page-feed,
.community-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.community-feed-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.85rem;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.community-feed-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.22);
}

.community-feed-card:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.22);
    outline-offset: 4px;
    border-color: rgba(59, 130, 246, 0.35);
}

.community-feed-media {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.community-feed-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-feed-tag {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    background: rgba(15, 23, 42, 0.86);
    color: #f8fafc;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.community-feed-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.community-feed-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.community-feed-summary {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.45;
}

.community-feed-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.community-feed-details span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.community-feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.community-feed-tags span {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.community-feed-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .community-feed-card {
        grid-template-columns: 96px 1fr;
    }
    .community-feed-media {
        width: 96px;
        height: 96px;
        border-radius: 12px;
    }
}

/* Services: luxury category strip (match Community) */
#services-content .services-categories {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1.1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.92), rgba(14, 165, 233, 0.45)) 0 0 / 4px 100% no-repeat,
        radial-gradient(920px circle at 14% 10%, rgba(14, 165, 233, 0.18), transparent 62%),
        radial-gradient(720px circle at 86% 30%, rgba(250, 204, 21, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
}

#services-content .services-categories::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.50) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.26) 0 1px, transparent 2px) 0 0 / 260px 260px;
    pointer-events: none;
    opacity: 0.5;
}

#services-content .services-categories::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 40%, rgba(15, 23, 42, 0.32) 100%),
        radial-gradient(520px circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%);
    pointer-events: none;
}

#services-content .services-chip-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

#services-content .service-chip {
    appearance: none;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(248, 250, 252, 0.08);
    color: rgba(248, 250, 252, 0.92);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-weight: 850;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 12px 28px rgba(2, 6, 23, 0.28);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(10px);
}

#services-content .service-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.95), rgba(245, 158, 11, 0.65));
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.12), 0 12px 22px rgba(250, 204, 21, 0.18);
    flex: 0 0 auto;
}

#services-content .service-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(248, 250, 252, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(2, 6, 23, 0.34);
}

#services-content .service-chip:active {
    transform: translateY(0);
}

#services-content .service-chip.active {
    border-color: rgba(250, 204, 21, 0.65);
    background: rgba(248, 250, 252, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 52px rgba(2, 6, 23, 0.38);
}

#services-content .service-chip:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.22);
    outline-offset: 3px;
    border-color: rgba(250, 204, 21, 0.55);
}

@media (max-width: 640px) {
    #services-content .services-chip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
    }
    #services-content .services-chip-row::-webkit-scrollbar { display: none; }
    #services-content .service-chip { white-space: nowrap; }
}

#dating-content .premium-section,
#dating-content .dating-section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

/* Dating: galaxy gloss behind search filters */
#dating-content .dating-controls {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, 0.9), rgba(14, 165, 233, 0.55)) 0 0 / 5px 100% no-repeat,
        radial-gradient(900px circle at 16% 10%, rgba(124, 58, 237, 0.10), transparent 62%),
        radial-gradient(760px circle at 88% 12%, rgba(59, 130, 246, 0.12), transparent 60%),
        radial-gradient(780px circle at 50% 120%, rgba(34, 197, 94, 0.07), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.86));
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

#dating-content .dating-controls::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px) 0 0 / 170px 170px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.38) 0 1px, transparent 2px) 0 0 / 220px 220px,
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.26) 0 1px, transparent 2px) 0 0 / 260px 260px,
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px) 0 0 / 310px 310px;
    pointer-events: none;
    opacity: 0.28;
    z-index: 0;
}

#dating-content .dating-controls::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.12) 38%, rgba(2, 6, 23, 0.08) 100%),
        radial-gradient(560px circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 62%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 16%, rgba(255, 255, 255, 0.08) 34%, transparent 56%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
}

#dating-content .dating-controls > * {
    position: relative;
    z-index: 1;
}

#dating-content .dating-controls .filter-group label,
#dating-content .dating-controls .filter-group-inline .small-label {
    color: rgba(15, 23, 42, 0.82);
}

#dating-content .dating-controls .filter-input,
#dating-content .dating-controls .filter-select {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: rgba(15, 23, 42, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 26px rgba(15, 23, 42, 0.08);
}

#dating-content .dating-controls .filter-select option {
    color: #111827;
}

#dating-content .dating-controls .filter-input:focus,
#dating-content .dating-controls .filter-select:focus {
    border-color: rgba(250, 204, 21, 0.65);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14), 0 14px 30px rgba(15, 23, 42, 0.10);
}

#dating-content .dating-feed-filters label {
    color: rgba(15, 23, 42, 0.82);
}

#dating-content .dating-feed-filters select,
#dating-content .dating-feed-filters input {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: rgba(15, 23, 42, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#dating-content .dating-feed-filters select:focus,
#dating-content .dating-feed-filters input:focus {
    border-color: rgba(251, 191, 36, 0.65);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#dating-content input[type="range"] {
    accent-color: var(--dating-gold);
}

#dating-content .dating-controls .filter-input::placeholder {
    color: #94a3b8;
}

#dating-content .filter-btn {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: rgba(15, 23, 42, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 26px rgba(15, 23, 42, 0.08);
}

#dating-content .filter-btn.active,
#dating-content .filter-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0b1020;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(251, 191, 36, 0.22);
}

#dating-content #arrive-plus-schedule {
    padding: 1.15rem;
}

#dating-content .arrive-plus-hero {
    position: relative;
    overflow: hidden;
    padding: 1.05rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background:
        radial-gradient(900px circle at 10% 0%, rgba(59, 130, 246, 0.28), transparent 60%),
        radial-gradient(720px circle at 85% 10%, rgba(168, 85, 247, 0.25), transparent 62%),
        radial-gradient(680px circle at 50% 120%, rgba(34, 197, 94, 0.2), transparent 60%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.96) 0%, rgba(12, 24, 51, 0.98) 100%);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
}

#dating-content .arrive-plus-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px) 0 0 / 180px 180px,
        radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px) 0 0 / 240px 240px,
        radial-gradient(circle at 52% 78%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px) 0 0 / 300px 300px;
    opacity: 0.5;
    pointer-events: none;
}

#dating-content .arrive-plus-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%, rgba(2, 6, 23, 0.4) 100%),
        linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent)
            1.2rem calc(100% - 0.7rem) / calc(100% - 2.4rem) 1px no-repeat;
    pointer-events: none;
    opacity: 0.8;
}

#dating-content .arrive-plus-hero > * {
    position: relative;
    z-index: 1;
}

#dating-content .arrive-plus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b1020;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.95), rgba(245, 158, 11, 0.85));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 28px rgba(251, 191, 36, 0.22);
}

#dating-content .arrive-plus-badge i {
    font-size: 0.8rem;
}

#dating-content .arrive-plus-hero h3 {
    margin: 0.55rem 0 0.35rem;
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    font-size: 1.35rem;
    color: rgba(248, 250, 252, 0.98);
}

#dating-content .arrive-plus-hero p {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
    max-width: 480px;
}

#dating-content .arrive-plus-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

#dating-content .arrive-plus-step {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

#dating-content .arrive-plus-step-number {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    color: #0b1020;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.25);
    flex: 0 0 auto;
}

#dating-content .arrive-plus-step h4 {
    margin: 0;
    font-size: 0.92rem;
    color: var(--dating-ink);
}

#dating-content .arrive-plus-step p {
    margin: 0.2rem 0 0;
    color: var(--dating-muted);
    font-size: 0.84rem;
}

#dating-content .arrive-plus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
    margin: 1rem 0;
}

#dating-content .arrive-plus-card {
    padding: 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

#dating-content .arrive-plus-form-card {
    background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.18), transparent 40%) 0 0 / 5px 100% no-repeat,
        rgba(255, 255, 255, 0.96);
}

#dating-content .arrive-plus-info-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#dating-content .arrive-plus-checklist-card {
    margin: 0.9rem 0;
}

#dating-content .arrive-plus-preferences {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

#dating-content .arrive-plus-pref-group h4 {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: var(--dating-ink);
}

#dating-content .arrive-plus-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#dating-content .arrive-plus-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(15, 23, 42, 0.85);
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

#dating-content .arrive-plus-chip.is-muted {
    background: rgba(148, 163, 184, 0.16);
    color: rgba(15, 23, 42, 0.72);
}

#dating-content .arrive-plus-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.45rem;
}

#dating-content .arrive-plus-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.82);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#dating-content .arrive-plus-check input {
    accent-color: var(--dating-gold);
}

#dating-content .arrive-plus-check.checked {
    border-color: rgba(251, 191, 36, 0.65);
    background: rgba(251, 191, 36, 0.12);
    box-shadow: 0 10px 22px rgba(251, 191, 36, 0.18);
}

#dating-content .arrive-plus-check:hover {
    transform: translateY(-1px);
}

#dating-content .arrive-plus-checklist-summary {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--dating-muted);
}

#dating-content .arrive-plus-plan-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

#dating-content .arrive-plus-plan-form.is-disabled {
    opacity: 0.65;
}

#dating-content .arrive-plus-plan-note {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--dating-muted);
}

#dating-content .arrive-plus-pref-note {
    margin: 0;
    font-size: 0.78rem;
    color: var(--dating-muted);
}

#dating-content .arrive-plus-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

#dating-content .arrive-plus-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--dating-muted);
    font-size: 0.88rem;
}

#dating-content .arrive-plus-info-list i {
    color: #f59e0b;
    margin-top: 0.12rem;
}

#dating-content .arrive-plus-info-note {
    margin: 0;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.04);
    color: var(--dating-muted);
    font-size: 0.78rem;
}

#dating-content .arrive-plus-info-note strong {
    color: var(--dating-ink);
}

#dating-content .arrive-plus-preview-card {
    background:
        radial-gradient(520px circle at 10% 0%, rgba(14, 165, 233, 0.15), transparent 60%),
        radial-gradient(560px circle at 90% 10%, rgba(124, 58, 237, 0.12), transparent 62%),
        rgba(255, 255, 255, 0.96);
}

#dating-content .arrive-plus-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

#dating-content .arrive-plus-preview-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0.7rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

#dating-content .arrive-plus-preview-avatar {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

#dating-content .arrive-plus-preview-name {
    font-weight: 700;
    color: var(--dating-ink);
}

#dating-content .arrive-plus-preview-meta {
    margin-top: 0.1rem;
    font-size: 0.82rem;
    color: var(--dating-muted);
}

#dating-content .arrive-plus-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

#dating-content .arrive-plus-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.72);
}

#dating-content .arrive-plus-tag.is-online {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
}

#dating-content .arrive-plus-tag.is-offline {
    background: rgba(148, 163, 184, 0.25);
    color: #64748b;
}

#dating-content .arrive-plus-tag.is-premium {
    background: rgba(251, 191, 36, 0.22);
    color: #b45309;
}

#dating-content .arrive-plus-tag.is-shared {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

#dating-content .arrive-plus-tag.is-plan {
    background: rgba(251, 191, 36, 0.18);
    color: #92400e;
}

#dating-content .arrive-plus-preview-empty {
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.75);
    color: var(--dating-muted);
    font-size: 0.85rem;
}

#dating-content .arrive-plus-stream {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

#dating-content .arrive-plus-panel-header {
    margin-bottom: 0.65rem;
}

#dating-content .arrive-plus-panel-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dating-ink);
}

#dating-content .arrive-plus-panel-header p {
    margin: 0.25rem 0 0;
    color: var(--dating-muted);
    font-size: 0.85rem;
}

#arrive-plus-schedule .trip-alerts-panel {
    margin-top: 0;
}

#arrive-plus-schedule .dating-schedule-card,
#arrive-plus-schedule .trip-alert-card {
    align-items: flex-start;
}

#dating-content .dating-schedule-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.7);
}

#dating-content .dating-schedule-status.status-upcoming {
    background: rgba(59, 130, 246, 0.16);
    color: #1d4ed8;
}

#dating-content .dating-schedule-status.status-live {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
}

#dating-content .dating-schedule-status.status-past {
    background: rgba(148, 163, 184, 0.22);
    color: #64748b;
}

@media (max-width: 640px) {
    #dating-content #arrive-plus-schedule {
        padding: 0.9rem;
    }

    #dating-content .arrive-plus-hero {
        padding: 0.95rem;
    }

    #dating-content .arrive-plus-steps {
        grid-template-columns: 1fr;
    }
}

#dating-content .dating-schedule-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

#dating-content .dating-schedule-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--dating-ink);
}

#dating-content .dating-schedule-header p {
    margin: 0.2rem 0 0;
    color: var(--dating-muted);
}

#dating-content .dating-schedule-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

#dating-content #arrive-plus-schedule textarea.filter-input {
    min-height: 200px;
    resize: vertical;
}

#dating-content .dating-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#dating-content .dating-schedule-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--dating-surface-2);
    border: 1px solid var(--dating-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

#dating-content .dating-schedule-card h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dating-ink);
}

#dating-content .dating-schedule-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--dating-muted);
    font-size: 0.9rem;
}

#dating-content .dating-schedule-date-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

#dating-content .dating-schedule-plan-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.7);
}

#dating-content .dating-schedule-plan-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(15, 23, 42, 0.78);
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

#dating-content .dating-schedule-note {
    font-size: 0.86rem;
    color: var(--dating-muted);
    line-height: 1.4;
}

#dating-content .dating-schedule-duration {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.82);
    font-size: 0.75rem;
}

#dating-content .dating-schedule-alerts {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.7);
}

#dating-content .dating-schedule-intent {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.72);
}

#dating-content .dating-schedule-empty {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.75);
}

#dating-content .trip-alerts-panel {
    margin-top: 1.1rem;
}

#dating-content .trip-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#dating-content .trip-alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

#dating-content .trip-alert-card h4 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--dating-ink);
}

#dating-content .trip-alert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: var(--dating-muted);
}

#dating-content .trip-alert-duration {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.72);
}

#dating-content .trip-alert-intent {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.72);
}

#dating-content .trip-alert-status {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.7);
}

#dating-content .trip-alert-status.status-accepted {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

#dating-content .trip-alert-status.status-declined {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

#dating-content .trip-alert-actions {
    display: inline-flex;
    flex-direction: column;
    gap: 0.4rem;
}

#dating-content .trip-alerts-empty {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.75);
}

#dating-content .dating-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.35rem 0 0.75rem;
}

#dating-content .dating-feed-header h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dating-ink);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

#dating-content .dating-feed-count {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.78);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#dating-content .btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border: none;
    color: #0b1020;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(251, 191, 36, 0.18);
}

#dating-content #companionship-post-trigger.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

#dating-content #companionship-post-trigger.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.35);
}

#dating-content .btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: rgba(15, 23, 42, 0.88);
}

#dating-content .hookup-plus-actions #hookup-plus-pass.btn-circle {
    background: #ef4444;
    border: 1px solid #dc2626;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.22);
}

#dating-content .hookup-plus-actions #hookup-plus-like.btn-circle {
    background: #15803d;
    border: 1px solid #166534;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(21, 128, 61, 0.24);
}

#dating-content .hookup-plus-actions #hookup-plus-pass.btn-circle i,
#dating-content .hookup-plus-actions #hookup-plus-like.btn-circle i {
    color: inherit;
}

#dating-content .hookup-plus-actions #hookup-plus-pass.btn-circle:hover {
    background: #dc2626;
    border-color: #b91c1c;
}

#dating-content .hookup-plus-actions #hookup-plus-like.btn-circle:hover {
    background: #166534;
    border-color: #14532d;
}

#dating-content .dating-feed {
    padding: 0.65rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#dating-content .dating-feed-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

#dating-content .dating-feed-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

#dating-content .dating-feed-day h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.92);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

#dating-content .dating-feed-day span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.72);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

#dating-content .dating-feed-day-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#dating-content .dating-feed-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(8px);
}

#dating-content .dating-feed-card:hover {
    border-color: rgba(251, 191, 36, 0.22);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.38);
}

#dating-content .dating-feed-avatar {
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.35);
}

#dating-content .dating-feed-name { color: rgba(15, 23, 42, 0.96); }
#dating-content .dating-feed-badge {
    width: fit-content;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: rgba(30, 64, 175, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
#dating-content .dating-feed-location { color: rgba(71, 85, 105, 0.92); }
#dating-content .dating-feed-action { color: rgba(29, 78, 216, 0.92); }

#dating-content .dating-card {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

#dating-content .dating-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.0) 0%, rgba(15, 23, 42, 0.06) 70%, rgba(15, 23, 42, 0.12) 100%);
}

#dating-content .dating-card-premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.96), rgba(217, 119, 6, 0.9));
    color: #0b1020;
    border: 1px solid rgba(15, 23, 42, 0.22);
    box-shadow: 0 10px 22px rgba(251, 191, 36, 0.18);
}

#dating-content .dating-card-photo-count {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.18);
    backdrop-filter: blur(8px);
}

#dating-content .dating-card-name {
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.01em;
}

#dating-content .dating-card-name { color: rgba(15, 23, 42, 0.96); }
#dating-content .dating-card-age { color: rgba(71, 85, 105, 0.92); }
#dating-content .dating-card-bio { color: rgba(71, 85, 105, 0.92); }
#dating-content .dating-card-distance { color: rgba(180, 83, 9, 0.92); }

#dating-content .dating-card-online {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 10px 18px rgba(34, 197, 94, 0.18);
}

#dating-content .dating-empty {
    color: rgba(71, 85, 105, 0.92);
    background: rgba(255, 255, 255, 0.92);
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 16px;
}

#dating-content .dating-empty h3 {
    color: rgba(15, 23, 42, 0.96);
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.02em;
}

#dating-content .category-header-text h2 {
    color: rgba(15, 23, 42, 0.96);
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.02em;
    text-shadow: none;
}

#dating-content .category-header-text p {
    color: rgba(71, 85, 105, 0.92);
}

#dating-content .category-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

#dating-content .category-card-header h3 {
    color: rgba(15, 23, 42, 0.96);
}
