/* ============================================================
   Base Reset & Variables
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:   #2563eb;
    --primary-h: #1d4ed8;
    --danger:    #dc2626;
    --success:   #16a34a;
    --text:      #1f2937;
    --muted:     #6b7280;
    --border:    #e5e7eb;
    --bg:        #f9fafb;
    --white:     #ffffff;
    --radius:    8px;
    --shadow:    0 1px 3px rgba(0,0,0,.1);
}

html { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.site-main { flex: 1; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
/* Use filter-free shadow to avoid stacking context */
.site-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 4px;
    background: linear-gradient(to bottom, rgba(0,0,0,.06), transparent);
    pointer-events: none;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    width: 100%;
    box-sizing: border-box;
}

/* Logo */
.logo {
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -.02em;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}
.logo:hover { text-decoration: none; opacity: .9; }

/* Word 1: dark text, first letter accent */
.logo-classified {
    color: #1e293b;
    font-weight: 900;
}
.logo-classified > span {
    color: var(--primary);
    font-size: 1.15em;
}

/* Word 2: pill badge style */
.logo-site {
    background: var(--primary);
    color: #fff;
    padding: 2px 7px 3px;
    border-radius: 6px;
    font-size: .82em;
    font-weight: 800;
    letter-spacing: .01em;
    margin-left: 3px;
}
.logo-site > span {
    font-size: 1.1em;
}

/* Header search bar */
.header-search {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 420px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg);
    transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 14px;
    font-size: .9rem;
    outline: none;
    color: var(--text);
}
.header-search button {
    background: var(--primary);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    color: #fff;
    font-size: .9rem;
    transition: background .15s;
}
.header-search button:hover { background: var(--primary-h); }

/* Desktop nav */
.main-nav {
    display: flex;
    align-items: center;
    margin-left: 50px;
    gap: 8px;
    flex-shrink: 0;
}
.main-nav a {
    color: var(--text);
    font-size: .875rem;
    padding: 7px 12px;
    border-radius: var(--radius);
    transition: background .15s, color .15s;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 500;
}
.main-nav a:hover      { background: var(--bg); color: var(--primary); text-decoration: none; }
.main-nav a.nav-active { color: var(--primary); font-weight: 600; }

/* Post Ad button */
.nav-post-btn {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 7px 16px !important;
    font-weight: 600 !important;
}
.nav-post-btn:hover { background: var(--primary-h) !important; opacity: 1 !important; }

/* User dropdown */
.nav-user-menu { position: relative; margin-left: 6px; }
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 12px;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    transition: border-color .15s;
}
.nav-user-btn:hover { border-color: var(--primary); }
.nav-balance {
    background: #eff6ff;
    color: var(--primary);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: .75rem;
    font-weight: 700;
}
.nav-arrow { font-size: .7rem; color: var(--muted); }

.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
    overflow: hidden;
    animation: dropIn .15s ease;
}
.nav-user-dropdown.open { display: block; }
.nav-user-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    color: var(--text);
    font-size: .875rem;
    text-decoration: none;
    transition: background .12s;
}
.nav-user-dropdown a:hover { background: var(--bg); text-decoration: none; }
.dd-balance {
    background: #eff6ff;
    color: var(--primary);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: .72rem;
    font-weight: 700;
}
.dd-divider { border-top: 1px solid var(--border); margin: 4px 0; }
.dd-logout  { color: var(--danger) !important; }
.dd-logout:hover { background: #fef2f2 !important; }

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Footer
   ============================================================ */









@media (max-width: 900px) {
    
}
@media (max-width: 540px) {
    
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .1s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary  { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-h); }
.btn-block    { display: block; width: 100%; text-align: center; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .9rem;
}
.alert p { margin-bottom: 4px; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }

/* ============================================================
   Auth Pages (login / register)
   ============================================================ */


/* ============================================================
   Hero Section (homepage)
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero p   { font-size: 1.1rem; margin-bottom: 28px; opacity: .9; }

/* ============================================================
   City Directory (homepage)
   ============================================================ */
.directory { padding: 50px 0; }
.directory h2 { font-size: 1.4rem; margin-bottom: 28px; }

.country-block { margin-bottom: 36px; }
.country-block h3 {
    font-size: 1.1rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.city-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.city-link {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .875rem;
    color: var(--text);
    transition: background .2s, border-color .2s;
}
.city-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    text-decoration: none;
}

/* ============================================================
   Ad Cards (homepage recent ads + listing page)
   ============================================================ */
.recent-ads { padding: 0 0 50px; }
.recent-ads h2 { font-size: 1.4rem; margin-bottom: 20px; }

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.ad-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: block;
    color: var(--text);
    position: relative;
    transition: box-shadow .2s, transform .2s;
}
.ad-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: translateY(-2px);
    text-decoration: none;
}
.ad-card.featured { border-color: #f59e0b; background: #fffbeb; }
.ad-card h4 { font-size: .95rem; margin-bottom: 8px; line-height: 1.4; }
.ad-meta { font-size: .8rem; color: var(--muted); }
.badge-featured {
    display: inline-block;
    background: #f59e0b;
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.5rem; }
    
    .main-nav { display: none; } /* TODO: add hamburger menu */
}

/* ============================================================
   Invoice / Add Credits Page
   ============================================================ */
.invoice-section { padding: 40px 0 60px; }

.invoice-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.invoice-main, .invoice-sidebar { }

/* Step header */
.inv-step-header { margin-bottom: 24px; }
.inv-step-header h2 { font-size: 1.4rem; margin: 0 0 6px; }
.inv-step-header p  { color: var(--muted); margin: 0; }
.inv-back { font-size: .85rem; color: var(--muted); display: inline-block; margin-bottom: 10px; }

/* Payment method options */
.pm-options { display: flex; flex-direction: column; gap: 10px; }
.pm-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pm-option:hover { border-color: var(--primary); background: #eff6ff; }
.pm-option input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.pm-option input[type="radio"]:checked + .pm-option-inner { color: var(--primary); }
.pm-option:has(input:checked) { border-color: var(--primary); background: #eff6ff; }
.pm-option-inner { display: flex; flex-direction: column; gap: 2px; }
.pm-option-inner strong { font-size: .95rem; }
.pm-option-inner small  { color: var(--muted); font-size: .78rem; }

/* Quick amounts */
.amount-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.amt-btn {
    padding: 7px 18px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
    transition: all .15s;
}
.amt-btn:hover, .amt-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* Address box — highlighted */
.inv-address-box {
    background: #eff6ff;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 18px;
    margin: 20px 0;
    position: relative;
}
.inv-address-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
}
.inv-address-value {
    font-family: monospace;
    font-size: .95rem;
    word-break: break-all;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.6;
}
.inv-copy-btn {
    margin-top: 12px;
    padding: 6px 16px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    transition: background .15s;
}
.inv-copy-btn:hover { background: var(--primary); color: #fff; }

/* How to send box */
.inv-howto-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.inv-howto-box h4 { margin: 0 0 8px; font-size: .9rem; }
.inv-howto-box p  { margin: 0; font-size: .875rem; line-height: 1.7; }

/* Amount reminder */
.inv-amount-reminder {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: .9rem;
    color: #166534;
    margin-bottom: 4px;
}

/* Screenshot upload */
.screenshot-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s;
}
.screenshot-upload-area:hover { border-color: var(--primary); }
.screenshot-placeholder {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    cursor: pointer;
    font-size: .875rem;
    line-height: 1.8;
}

/* Success box */
.inv-success-box {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.inv-success-icon { font-size: 3rem; margin-bottom: 16px; }
.inv-success-box h2 { font-size: 1.5rem; margin-bottom: 10px; }
.inv-success-box p  { color: var(--muted); }

/* Sidebar cards */
.inv-info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}
.inv-info-card h4  { font-size: .9rem; margin: 0 0 10px; }
.inv-info-card p   { font-size: .85rem; color: var(--muted); margin: 0; }
.inv-steps-list    { padding-left: 18px; margin: 0; font-size: .85rem; line-height: 2; }

.inv-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: .78rem;
    gap: 6px;
}
.inv-history-row:last-child { border-bottom: none; }

/* Responsive */
@media (max-width: 768px) {
    .invoice-wrap { grid-template-columns: 1fr; }
    .invoice-sidebar { order: -1; }
    .inv-info-card { padding: 12px; }
}

/* ============================================================
   User Dashboard
   ============================================================ */
.dashboard-section { padding: 30px 0 60px; }

.dash-welcome {
    margin-bottom: 24px;
}
.dash-welcome h1 { font-size: 1.5rem; margin-bottom: 4px; }
.dash-welcome p  { color: var(--muted); font-size: .9rem; }

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

/* Dash card */
.dash-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.dash-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Dash table */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.dash-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: .75rem;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.dash-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }

/* Package info sidebar */
.package-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}
.package-info h4 { font-size: .9rem; margin-bottom: 12px; }

.account-info-list { list-style: none; padding: 0; margin: 0; }
.account-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
    gap: 8px;
}
.account-info-list li:last-child { border-bottom: none; }
.account-info-list li span { color: var(--muted); }
.account-info-list li strong { text-align: right; }

/* Quick actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quick-actions .btn { justify-content: center; }

/* My Ads section */
.my-ads-section { padding: 30px 0 60px; }

/* Status tabs */
.status-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}
.status-tab {
    padding: 8px 16px;
    font-size: .85rem;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    text-decoration: none;
    transition: color .15s;
}
.status-tab:hover { color: var(--primary); text-decoration: none; }
.status-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-count {
    display: inline-block;
    background: var(--border);
    border-radius: 20px;
    padding: 0 7px;
    font-size: .72rem;
    margin-left: 4px;
}
.status-tab.active .tab-count { background: var(--primary); color: #fff; }

/* Ad row */
.my-ad-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.my-ad-thumb {
    width: 80px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--border);
}
.my-ad-info { flex: 1; min-width: 0; }
.my-ad-title {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.my-ad-meta { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.my-ad-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Boost tag */
.boost-tag {
    display: inline-block;
    font-size: .7rem;
    background: #ede9fe;
    color: #5b21b6;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* Responsive dashboard */
@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card .stat-value { font-size: 1.4rem; }
    .my-ad-row { flex-wrap: wrap; }
    .my-ad-thumb { width: 100%; height: 120px; }
    .status-tabs { gap: 2px; }
    .status-tab { padding: 6px 10px; font-size: .78rem; }
}

/* ============================================================
   Invoice — Additional Styles
   ============================================================ */

/* Invoice number success */
.inv-invoice-number {
    display: inline-block;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 10px 20px;
    font-size: 1rem;
    margin-top: 12px;
    font-family: monospace;
}

/* Send amount — big & bold */
.inv-send-amount-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
    text-align: center;
}
.inv-send-label {
    font-size: .85rem;
    opacity: .85;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.inv-send-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}
.inv-send-note {
    display: block;
    font-size: .8rem;
    opacity: .8;
    margin-top: 6px;
    font-weight: 400;
}

/* Conversion preview */
.inv-conversion-preview {
    margin-top: 10px;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    font-size: .875rem;
    color: #1e40af;
}

/* Payment method options — 2 col mobile, 4 col desktop */
.pm-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

/* Support contacts */
.inv-support-card { border: 2px solid var(--primary) !important; }
.inv-support-card h4 { color: var(--primary); }
.support-contacts { display: flex; flex-direction: column; gap: 8px; }
.support-contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.support-contact-btn:hover {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}
.support-platform {
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: .72rem;
    white-space: nowrap;
}

/* Mobile: payment methods 2 col */
@media (max-width: 600px) {
    .pm-options { grid-template-columns: 1fr 1fr; }
    .inv-send-value { font-size: 1.5rem; }
    .amount-quick { gap: 6px; }
    .amt-btn { padding: 6px 12px; font-size: .82rem; }
}
@media (max-width: 380px) {
    .pm-options { grid-template-columns: 1fr; }
}

/* Mobile dashboard menu */
@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2,1fr); gap:10px; }
    .stat-card .stat-value { font-size:1.4rem; }
}

/* ============================================================
   Mobile Navigation
   ============================================================ */

/* Hamburger button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
    transition: background .15s;
    margin-left: auto;
}
.nav-hamburger:hover { background: var(--bg); }
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
/* Hamburger → X animation */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 280px;
    max-width: 85vw;
    background: var(--white);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0,0,0,.18);
    z-index: 9999 !important;
    padding: 0;
    transform: translate3d(100%, 0, 0);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-nav.open {
    transform: translate3d(0, 0, 0) !important;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    color: var(--text);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--bg); color: var(--primary); text-decoration: none; }

/* Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,.5);
    z-index: 9998 !important;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-overlay.open { display: block; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Show hamburger on mobile, hide desktop nav */
@media (max-width: 768px) {
    .main-nav      { display: none !important; }
    .nav-hamburger { display: flex; }
}

/* Mobile nav additions */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 2px solid var(--primary);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 56px;
}
/* Logo inside mobile nav same style as header */
.mobile-nav-header .logo {
    font-size: 1.1rem;
    text-decoration: none;
}

.mobile-nav-close {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
}
.mobile-nav-close:hover { background: #fee2e2; color: var(--danger); border-color: #fecaca; }

.mobile-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.mobile-search form {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
}
.mobile-search input {
    flex: 1;
    border: none;
    padding: 8px 14px;
    font-size: .9rem;
    outline: none;
    background: transparent;
}
.mobile-search button {
    background: var(--primary);
    border: none;
    padding: 8px 14px;
    color: #fff;
    cursor: pointer;
}
.mobile-nav-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: .875rem;
    font-weight: 600;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.mobile-logout {
    font-size: .82rem;
    color: var(--danger) !important;
    padding: 4px 10px;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    text-decoration: none !important;
}

/* Responsive header */
@media (max-width: 900px) {
    .header-search { max-width: 260px; }
}
@media (max-width: 768px) {
    .header-search { display: none; }
    .main-nav      { display: none !important; }
    .nav-hamburger { display: flex; }
    .site-header .container { height: 54px; }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE
═══════════════════════════════════════════════════════════════ */

/* Hero */
.hp-hero {
    position: relative;
    background: #0f172a;
    color: #fff;
    padding: 72px 0 80px;
    overflow: hidden;
}
.hp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% -10%, rgba(37,99,235,.45), transparent),
        radial-gradient(ellipse 50% 50% at 10% 110%, rgba(16,185,129,.2), transparent);
    pointer-events: none;
}
.hp-hero-body { position: relative; max-width: 640px; }

.hp-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -.03em;
}
.hp-hero-accent {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hp-hero-sub {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 28px;
}

/* Hero search */
.hp-search {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
    margin-bottom: 24px;
}
.hp-search input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    min-width: 0;
}
.hp-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.hp-search button:hover { background: var(--primary-h); }

.hp-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(16,185,129,.4);
}
.hp-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,.5);
    color: #fff;
    text-decoration: none;
}

/* Sections */
.hp-section { padding: 56px 0; }
.hp-section-alt { background: var(--bg); }
.hp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}
.hp-section-head h2 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.hp-see-all {
    font-size: .85rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.hp-see-all:hover { text-decoration: underline; }

/* Categories grid */
.hp-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.hp-cat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 12px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all .18s;
    position: relative;
    overflow: hidden;
}
.hp-cat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37,99,235,.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--primary);
}
.hp-cat-icon { font-size: 1.8rem; margin-bottom: 8px; line-height: 1; }
.hp-cat-name { font-size: .82rem; font-weight: 600; }
.hp-cat-count {
    display: inline-block;
    margin-top: 6px;
    font-size: .7rem;
    background: #eff6ff;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* Ads grid */
.hp-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.hp-ad-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all .18s;
    display: flex;
    flex-direction: column;
}
.hp-ad-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text);
}
.hp-ad-img {
    position: relative;
    height: 160px;
    background: #f1f5f9;
    overflow: hidden;
}
.hp-ad-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.hp-ad-card:hover .hp-ad-img img { transform: scale(1.04); }
.hp-ad-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #cbd5e1;
}
.hp-ad-featured {
    position: absolute;
    top: 8px; left: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.hp-ad-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hp-ad-title {
    font-size: .9rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.hp-ad-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-ad-price { color: #059669; font-weight: 700; font-size: .9rem; }
.hp-ad-loc { color: var(--muted); font-size: .78rem; }
.hp-ad-info {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--muted);
    margin-top: auto;
}


.hp-city-cnt {
    font-size: .7rem;
    background: var(--bg);
    color: var(--muted);
    padding: 1px 6px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* CTA strip */
.hp-cta {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    padding: 48px 0;
    color: #fff;
}
.hp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.hp-cta-text h2 { font-size: 1.5rem; margin: 0 0 6px; color: #fff; }
.hp-cta-text p  { margin: 0; color: #bfdbfe; }
.hp-cta-btn {
    background: #fff;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 24px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.hp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    text-decoration: none;
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   POST AD PAGE
═══════════════════════════════════════════════════════════════ */
.pa-section { padding: 32px 0 64px; }

.pa-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.pa-header h1 { font-size: 1.6rem; margin: 0 0 4px; }
.pa-sub { color: var(--muted); margin: 0; font-size: .9rem; }
.pa-quota {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 20px;
    flex-shrink: 0;
}
.pa-quota-num   { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.pa-quota-label { font-size: .72rem; color: var(--muted); }

/* Layout */
.pa-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* Cards */
.pa-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: opacity .2s;
}
.pa-card-locked {
    opacity: .5;
    pointer-events: none;
    filter: grayscale(.3);
}
.pa-card-locked::after {
    content: '🔒 Complete previous step';
    display: block;
    text-align: center;
    font-size: .78rem;
    color: var(--muted);
    padding: 8px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.pa-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}
.pa-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pa-card-head h3 { margin: 0; font-size: 1rem; }
.pa-card-body { padding: 20px; }

/* Fields */
.pa-field { margin-bottom: 18px; }
.pa-field:last-child { margin-bottom: 0; }
.pa-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.pa-field input[type="text"],
.pa-field input[type="number"],
.pa-field textarea,
.pa-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    font-family: inherit;
}
.pa-field input:focus,
.pa-field textarea:focus,
.pa-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.pa-field textarea { resize: vertical; min-height: 140px; }
.pa-field-hint { font-size: .75rem; color: var(--muted); margin-top: 5px; }

/* Select wrap with chevron */
.pa-select-wrap { position: relative; }
.pa-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
    font-size: .85rem;
}
.pa-select-wrap select { appearance: none; padding-right: 32px; cursor: pointer; }

/* Price field */
.pa-price-wrap { position: relative; }
.pa-price-sign {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 600;
}
.pa-price-wrap input { padding-left: 28px; }

/* Upload area */
.pa-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pa-upload-area:hover { border-color: var(--primary); background: #f0f7ff; }
#uploadPlaceholder { text-align: center; padding: 24px; color: var(--muted); pointer-events: none; }

.pa-img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
}
.pa-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
}
.pa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pa-thumb-num {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: .65rem;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Credit box */
.pa-credit-box {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
}
.pa-credit-free { background: #f0fdf4; border: 1px solid #bbf7d0; }
.pa-credit-paid { background: #fffbeb; border: 1px solid #fde68a; }
.pa-credit-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: .875rem;
    flex-wrap: wrap;
}

/* Breadcrumb */
.pa-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
}
.pa-bc-sep { color: var(--muted); margin: 0 2px; }

/* Submit btn */
.pa-submit { padding: 14px; font-size: 1rem; margin-top: 4px; }

/* ── Live preview ── */
.pa-preview-sticky {
    position: sticky;
    top: 76px;
}
.pa-preview-head {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
}
.pa-preview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}
.pa-lp-imgs img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.pa-lp-body { padding: 14px; }
.pa-lp-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.pa-lp-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.pa-lp-desc {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pa-tips { display: flex; flex-direction: column; gap: 8px; }
.pa-tip {
    font-size: .78rem;
    color: #374151;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 8px 12px;
}

/* Responsive */
@media (max-width: 1024px) { .pa-layout { grid-template-columns: 1fr; } .pa-preview-col { display: none; } }
@media (max-width: 768px)  {
    .hp-ads-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-cats-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-states-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-cta-inner { flex-direction: column; text-align: center; }
    .pa-img-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px)  {
    .hp-ads-grid  { grid-template-columns: 1fr; }
    .hp-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-hero { padding: 48px 0 56px; }
    .pa-img-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════
   GENDER ICONS
════════════════════════════════════════════════════ */
.ybp-gender,.adp-gender { font-size:.85rem; font-weight:700; margin-left:3px; font-family:'Segoe UI Symbol','Apple Color Emoji',sans-serif; }
.g-male,.ybp-male   { color:#2563eb; }
.g-female,.ybp-female { color:#db2777; }



/* ════════════════════════════════════════════════════
   CITY PAGE — YESBACKPAGE STYLE
════════════════════════════════════════════════════ */
.citypage-wrap { background:#fff; padding:16px 0 40px; }
.citypage-header { display:flex; align-items:baseline; gap:12px; margin:8px 0 18px; padding-bottom:10px; border-bottom:2px solid #3b6eb5; }
.citypage-header h1 { font-size:1.3rem; font-weight:700; color:#1a1a1a; margin:0; }
.citypage-header h1 span { font-weight:400; font-size:1rem; color:#555; }
.citypage-total { font-size:.8rem; color:#888; }
.citypage-cats {
  columns: 5 190px;
  column-gap: 24px;
  orphans: 1;
  widows: 1;
}
.citypage-cat-block {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 22px;
}
.citypage-cat-name {
  font-size: .82rem;
  font-weight: 700;
  color: #1a4fa0;
  text-decoration: none;
  display: block;
  line-height: 1.4;
  padding-bottom: 5px;
  margin-bottom: 4px;
  border-bottom: 1.5px solid #dce8f8;
  transition: color .15s;
}
.citypage-cat-name:hover { color: #0f2d6b; text-decoration: none; }
.citypage-cat-cnt { font-size:.72rem; color:#888; font-weight:400; flex-shrink:0; }
.citypage-subcats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.citypage-subcats li a {
  font-size: .775rem;
  color: #444;
  text-decoration: none;
  display: block;
  padding: 2px 0;
  border-left: 2px solid transparent;
  line-height: 1.55;
  transition: color .12s, border-color .12s, padding-left .12s;
}
.citypage-subcats li a:hover {
  color: #1a4fa0;
  border-left-color: #1a4fa0;
  padding-left: 4px;
}
.citypage-sub-cnt { font-size:.68rem; color:#aaa; flex-shrink:0; }
@media(max-width:600px){.citypage-cats{columns:2 160px;column-gap:12px;}}

/* State cities grid */
.state-cities-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; margin-top:20px; }
.state-city-card { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; border:1px solid var(--border); border-radius:var(--radius); text-decoration:none; color:var(--text); transition:border-color .15s,background .15s; }
.state-city-card:hover { border-color:var(--primary); background:#f0f7ff; }
.state-city-name { font-size:.88rem; font-weight:600; }
.state-city-cnt { font-size:.75rem; color:var(--muted); }

/* ════════════════════════════════════════════════════
   LISTING PAGE — TEXT-ONLY YESBACKPAGE STYLE
════════════════════════════════════════════════════ */
.ybp-listing-wrap { background:#fff; padding:14px 0 40px; }
.ybp-listing-header { display:flex; align-items:baseline; gap:10px; margin:8px 0 14px; padding-bottom:8px; border-bottom:2px solid #3b6eb5; }
.ybp-listing-header h1 { font-size:1.2rem; font-weight:700; color:#1a1a1a; margin:0; }
.ybp-lh-city { font-size:.95rem; font-weight:400; color:#555; }
.ybp-lh-count { font-size:.78rem; color:#888; white-space:nowrap; }
.ybp-no-ads { color:#888; font-size:.9rem; padding:20px 0; }
.ybp-ads-list { list-style:none; padding:0; margin:0; }
.ybp-ad-item { display:flex; align-items:baseline; gap:8px; padding:5px 0; border-bottom:1px solid #f0f0f0; flex-wrap:wrap; }
.ybp-ad-item.ybp-featured { background:#fffdf0; }
.ybp-feat-star { color:#f59e0b; font-size:.8rem; flex-shrink:0; }
.ybp-ad-link { font-size:.85rem; color:#1a4fa0; text-decoration:none; display:flex; align-items:baseline; gap:4px; }
.ybp-ad-link:hover { text-decoration:underline; }
.ybp-ad-title { color:#1a4fa0; }
.ybp-ad-meta { font-size:.75rem; color:#888; white-space:nowrap; }
.ybp-ad-price { font-weight:600; color:#16a34a; }
.ybp-pagination { display:flex; gap:6px; margin-top:20px; flex-wrap:wrap; }
.ybp-page-btn { padding:5px 12px; border:1px solid #d1d5db; border-radius:4px; font-size:.82rem; color:#374151; text-decoration:none; background:#fff; }
.ybp-page-btn:hover { background:#f3f4f6; }
.ybp-page-active { background:#3b6eb5!important; color:#fff!important; border-color:#3b6eb5!important; }

/* ════════════════════════════════════════════════════
   AD PAGE — YESBACKPAGE EXACT STYLE
════════════════════════════════════════════════════ */
.adp-wrap { background:#fff; padding:10px 0 50px; }
.adp-container { max-width:960px; }
.adp-toprow { display:flex; align-items:center; justify-content:space-between; font-size:.82rem; margin-bottom:6px; flex-wrap:wrap; gap:6px; }
.adp-postnum { color:#555; font-size:.8rem; }
.adp-toplinks { display:flex; align-items:center; gap:8px; font-size:.82rem; flex-wrap:wrap; }
.adp-toplinks a { color:#1a4fa0; text-decoration:none; }
.adp-toplinks a:hover { text-decoration:underline; }

.adp-breadcrumb { font-size:.82rem; margin-bottom:8px; color:#333; }
.adp-breadcrumb a { color:#1a4fa0; text-decoration:none; }
.adp-breadcrumb a:hover { text-decoration:underline; }
.adp-hr { border:none; border-top:1px solid #ddd; margin:8px 0; }
.adp-title { font-size:1.5rem; font-weight:700; color:#111; margin:12px 0 4px; line-height:1.3; }
.adp-gender { font-size:1.1rem; font-weight:700; }
.adp-location { font-size:.9rem; color:#444; margin:0 0 14px; }
.adp-info-block { display:block; overflow:hidden; margin-bottom:16px; }
/* Image float right */
.adp-img-float { float:right; margin:0 0 12px 20px; max-width:220px; }
.adp-img-float>img { width:100%; max-width:220px; height:auto; border:1px solid #ddd; border-radius:4px; cursor:zoom-in; display:block; }
.adp-img-more { font-size:.72rem; color:#888; text-align:center; margin-top:4px; }
.adp-thumbstrip { display:flex; gap:4px; margin-top:6px; flex-wrap:wrap; justify-content:center; }
.adp-thumb { width:46px; height:46px; object-fit:cover; border:2px solid #ddd; border-radius:3px; cursor:pointer; transition:border-color .15s; }
.adp-thumb.active,.adp-thumb:hover { border-color:#3b6eb5; }
/* Meta table */
.adp-meta-table { border-collapse:collapse; font-size:.85rem; margin-bottom:12px; }
.adp-meta-table td { padding:3px 12px 3px 0; vertical-align:top; }
.adp-meta-label { font-weight:700; color:#333; white-space:nowrap; }
.adp-feat-tag { color:#d97706; font-weight:700; font-size:.82rem; }
/* Safety warning */
.adp-safety { border:2px dashed #22c55e; border-radius:4px; padding:10px 18px; text-align:center; color:#dc2626; font-weight:700; font-size:.85rem; margin:16px 0; background:#fff; clear:both; }
/* Ad body */
.adp-body { font-size:.9rem; line-height:1.75; color:#222; margin-bottom:20px; word-break:break-word; clear:both; }
.adp-body p { margin:.4em 0; }
/* Admin ad code boxes */
.adp-adcode { margin:16px 0; text-align:center; }
.adp-adcode-empty { display:none; }

/* Lightbox */
.adp-lightbox { display:none; position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:9999; align-items:center; justify-content:center; flex-direction:column; }
.adp-lightbox.open { display:flex; }
.adp-lightbox>img { max-width:92vw; max-height:88vh; object-fit:contain; border-radius:4px; }
.adp-lb-close { position:fixed; top:14px; right:18px; background:rgba(255,255,255,.15); border:none; color:#fff; font-size:1.6rem; cursor:pointer; border-radius:50%; width:38px; height:38px; line-height:1; }
.adp-lb-nav { position:fixed; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.15); border:none; color:#fff; font-size:2.2rem; padding:8px 16px; cursor:pointer; border-radius:4px; transition:background .15s; }
.adp-lb-nav:hover { background:rgba(255,255,255,.3); }
.adp-lb-prev { left:10px; }
.adp-lb-next { right:10px; }
.adp-lb-counter { color:rgba(255,255,255,.65); font-size:.8rem; margin-top:10px; }
@media(max-width:600px){.adp-img-float{float:none;max-width:100%;margin:0 0 14px}.adp-title{font-size:1.15rem}}

/* ════════════════════════════════════════════════════
   MY ADS — THUMBNAIL LEFT STYLE
════════════════════════════════════════════════════ */
.my-ads-list { display:flex; flex-direction:column; gap:0; margin-top:16px; }
.my-ad-row { display:flex; align-items:center; gap:14px; padding:10px 12px; border-bottom:1px solid #f0f0f0; background:#fff; transition:background .12s; }
.my-ad-row:hover { background:#f8faff; }
.my-ad-thumb { width:64px; height:64px; flex-shrink:0; border-radius:5px; overflow:hidden; border:1px solid #e5e7eb; background:#f3f4f6; display:flex; align-items:center; justify-content:center; }
.my-ad-thumb img { width:64px; height:64px; object-fit:cover; display:block; }
.no-img-sm { font-size:.62rem; color:#aaa; text-align:center; padding:4px; }
.my-ad-info { flex:1; min-width:0; }
.my-ad-title { font-size:.9rem; font-weight:700; color:#1a4fa0; text-decoration:none; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:4px; }
.my-ad-title:hover { text-decoration:underline; }
.my-ad-meta { display:flex; flex-wrap:wrap; gap:4px 10px; font-size:.72rem; color:#888; align-items:center; }
.my-ad-actions { display:flex; gap:6px; flex-shrink:0; }

/* ════════════════════════════════════════════════════
   POST AD — MULTI-STEP
════════════════════════════════════════════════════ */
.ms-section{padding:32px 0 60px}
.ms-stepper{display:flex;align-items:center;margin-bottom:28px}
.ms-step{display:flex;flex-direction:column;align-items:center;gap:6px;flex-shrink:0}
.ms-step-circle{width:36px;height:36px;border-radius:50%;background:#e2e8f0;color:#94a3b8;font-size:.85rem;font-weight:700;display:flex;align-items:center;justify-content:center;transition:all .2s}
.ms-step.ms-active .ms-step-circle{background:var(--primary);color:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.15)}
.ms-step.ms-done .ms-step-circle{background:#10b981;color:#fff}
.ms-step-label{font-size:.75rem;font-weight:600;color:#94a3b8;white-space:nowrap}
.ms-step.ms-active .ms-step-label,.ms-step.ms-done .ms-step-label{color:var(--text)}
.ms-connector{flex:1;height:2px;background:#e2e8f0;margin:0 8px 22px;transition:background .2s}
.ms-connector.ms-done{background:#10b981}
.ms-card{background:var(--white);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:20px}
.ms-card-head{display:flex;align-items:flex-start;gap:14px;padding:18px 22px;border-bottom:1px solid var(--border);background:#f8fafc}
.ms-num{width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff;font-size:.85rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.ms-card-head h2{margin:0 0 4px;font-size:1.1rem}
.ms-sub{margin:0;font-size:.83rem;color:var(--muted)}
.ms-card-body{padding:22px}
.ms-field{margin-bottom:16px}
.ms-field label{display:block;font-size:.85rem;font-weight:600;margin-bottom:6px}
.ms-field input[type=text],.ms-field input[type=number],.ms-field textarea,.ms-field select{width:100%;padding:10px 14px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:.95rem;color:var(--text);background:var(--white);outline:none;font-family:inherit;transition:border-color .15s;box-sizing:border-box}
.ms-field input:focus,.ms-field textarea:focus,.ms-field select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.ms-field textarea{resize:vertical;min-height:160px}
.ms-hint{font-size:.75rem;color:var(--muted);margin-top:4px}
.ms-sel-wrap{position:relative}
.ms-sel-wrap::after{content:"▾";position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted)}
.ms-sel-wrap select{appearance:none;padding-right:32px;cursor:pointer}
.ms-field-group{margin-bottom:24px}
.ms-group-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:0 0 12px;display:block}
.ms-field-group-locked{opacity:.5;pointer-events:none}
.ms-field-group-locked .ms-group-label::after{content:" 🔒"}
.ms-credit-hint{padding:8px 12px;border-radius:var(--radius);font-size:.8rem;font-weight:600;margin-top:10px;display:none}
.ms-credit-free{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}
.ms-credit-paid{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
.ms-summary{background:#f0f7ff;border:1px solid #bfdbfe;border-radius:var(--radius);padding:10px 14px;margin-top:12px;display:none}
.ms-summary-inner{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:.82rem;font-weight:600;color:var(--primary)}
.bc-sep{color:var(--muted);margin:0 1px}
.ms-step1-actions{margin-top:20px}
.ms-next-btn{width:100%;padding:13px;font-size:1rem}
.ms-next-btn:disabled{opacity:.4;cursor:not-allowed}
.ms-step2-layout{display:grid;grid-template-columns:1fr 300px;gap:20px;align-items:start}
.ms-price-wrap{position:relative}
.ms-price-sym{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:600;pointer-events:none}
.ms-price-wrap input{padding-left:28px!important}
.ms-upload{border:2px dashed var(--border);border-radius:var(--radius);min-height:110px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .15s,background .15s}
.ms-upload:hover{border-color:var(--primary);background:#f0f7ff}
#msUploadPh{text-align:center;padding:20px;pointer-events:none}
.ms-credit-box{padding:10px 14px;border-radius:var(--radius);font-size:.85rem;margin-bottom:16px}
.ms-step2-btns{display:flex;gap:12px;margin-top:6px}
.ms-step2-btns .btn{flex:1;padding:12px;text-align:center}
.ms-preview-sticky{position:sticky;top:76px}
.ms-preview-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:var(--muted);margin-bottom:8px}
.ms-preview-card{background:var(--white);border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-bottom:14px}
.ms-lp-body{padding:12px 14px}
.ms-lp-title{font-size:.95rem;font-weight:700;margin-bottom:7px}
.ms-lp-meta{display:flex;flex-direction:column;gap:3px;font-size:.75rem;color:var(--muted);margin-bottom:7px}
.ms-lp-desc{font-size:.8rem;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.ms-tips{display:flex;flex-direction:column;gap:7px}
.ms-tip{font-size:.77rem;background:#f0fdf4;border:1px solid #bbf7d0;padding:7px 11px;border-radius:var(--radius);color:#374151}
.ms-safety{background:#fffbeb;border:1px solid #fde68a;color:#92400e;padding:10px 14px;border-radius:var(--radius);font-size:.82rem;margin-bottom:18px}
.ms-ad-preview{border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-bottom:28px}
.ms-preview-images{display:flex;gap:6px;padding:10px;background:#f8fafc;overflow-x:auto}
.ms-preview-images img{height:120px;width:auto;border-radius:6px;object-fit:cover;flex-shrink:0}
.ms-preview-content{padding:16px 18px}
.ms-preview-content h3{margin:0 0 10px;font-size:1.15rem}
.ms-preview-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:.82rem;color:var(--muted);margin-bottom:12px}
.ms-preview-body{font-size:.88rem;color:var(--text);line-height:1.7;max-height:200px;overflow-y:auto}
.ms-boost-section{border-top:1px solid var(--border);padding-top:22px}
.ms-boost-title{margin:0 0 6px;font-size:1.05rem}
.ms-boost-opts{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.ms-boost-card{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1.5px solid var(--border);border-radius:10px;cursor:pointer;transition:all .15s;background:#fff;position:relative;overflow:visible}
.ms-boost-card input[type=radio]{display:none}
.ms-boost-card:hover{border-color:#93c5fd;background:#f8faff}
.ms-boost-selected{border-color:var(--primary)!important;background:#eff6ff!important}
.ms-bc-icon{font-size:1.4rem;flex-shrink:0;width:32px;text-align:center}
.ms-bc-info{flex:1;min-width:0}
.ms-bc-name{font-size:.88rem;font-weight:700;color:#111827}
.ms-bc-desc{font-size:.73rem;color:var(--muted);margin-top:1px}
.ms-bc-price{font-size:.82rem;font-weight:700;color:#dc2626;white-space:nowrap;flex-shrink:0}
.ms-bc-price-wrap{flex-shrink:0;text-align:right;min-width:60px}
.ms-bc-price-main{font-size:.95rem;font-weight:800;color:#111827;line-height:1}
.ms-bc-price-orig{font-size:.7rem;text-decoration:line-through;color:#94a3b8;margin-top:1px}
.ms-bc-price-free{font-size:.95rem;font-weight:800;color:#16a34a;line-height:1}
.ms-bc-free{color:#059669!important}
.ms-boost-balance{font-size:.82rem;color:var(--muted);margin-bottom:18px;padding:9px 14px;background:var(--bg);border-radius:var(--radius);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ms-step3-btns{display:flex;gap:12px}
.ms-step3-btns .btn-outline{padding:12px 20px}
.pa-img-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:8px}
.pa-thumb{position:relative;aspect-ratio:1;border-radius:6px;overflow:hidden;background:#f1f5f9}
.pa-thumb img{width:100%;height:100%;object-fit:cover}
.pa-thumb-num{position:absolute;top:4px;left:4px;background:rgba(0,0,0,.6);color:#fff;font-size:.7rem;padding:1px 5px;border-radius:4px}
.drag-handle{cursor:grab;color:#94a3b8;font-size:1.1rem;user-select:none;padding:0 8px}
.drag-handle:active{cursor:grabbing}
/* Responsive */
@media(max-width:1024px){.ms-step2-layout{grid-template-columns:1fr}.ms-preview-col{display:none}.ms-boost-opts{flex-direction:column}}
@media(max-width:480px){.ms-stepper{gap:0}.ms-step-label{display:none}.ms-step3-btns{flex-direction:column}.pa-img-grid{grid-template-columns:repeat(2,1fr)}}

/* ════════════════════════════════════════════════════
   EDITOR TOOLBAR (post-ad body)
════════════════════════════════════════════════════ */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 5px 8px;
    flex-wrap: wrap;
}
.editor-toolbar button {
    padding: 3px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: .85rem;
    color: #374151;
    transition: background .12s;
    min-width: 30px;
}
.editor-toolbar button:hover { background: #e5e7eb; }
.editor-hint { font-size: .72rem; color: #9ca3af; margin-left: 6px; }
/* Textarea directly after toolbar loses top radius */
.editor-toolbar + textarea {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* ════════════════════════════════════════════════════
   AD PAGE IMAGE GRID (5+ images)
════════════════════════════════════════════════════ */
.adp-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
    border-radius: 5px;
    overflow: hidden;
    max-width: 220px;
}
.adp-img-grid-cell {
    position: relative;
    cursor: zoom-in;
    aspect-ratio: 1;
    overflow: hidden;
    background: #111;
}
.adp-img-grid-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}
.adp-img-grid-cell:hover img { transform: scale(1.04); }
/* First image spans 2 columns */
.adp-img-grid-main {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}
.adp-img-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}
.adp-all-photos-btn {
    text-align: center;
    font-size: .75rem;
    color: #1a4fa0;
    cursor: pointer;
    margin-top: 5px;
    padding: 4px;
}
.adp-all-photos-btn:hover { text-decoration: underline; }

/* Single / 2-4 image styles */
.adp-main-solo {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: zoom-in;
}
.adp-thumbstrip {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.adp-thumb {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color .15s;
}
.adp-thumb.active, .adp-thumb:hover { border-color: #3b6eb5; }

/* Sponsored listing items */
.ybp-sponsored { background: #f0f7ff !important; }
.ybp-sponsored-tag {
    font-size: .62rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 7px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ybp-img-count {
    font-size: .72rem;
    color: #888;
}
/* ============================================================
   NEW / IMPROVED STYLES — All fixes & design improvements
   ============================================================ */

/* Alert persistent — no auto-dismiss */
.alert-persistent { }

/* Preview banner for pending ads */
.adp-preview-banner {
    background: #fffbeb;
    border: 1.5px dashed #f59e0b;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 16px;
    font-size: .88rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.adp-preview-banner a { color: #b45309; font-weight: 600; margin-left: auto; }

/* ── Listing: Filter Bar ── */
.ybp-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ybp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}
.ybp-filter-group label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ybp-filter-group select,
.ybp-filter-group input {
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: .85rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color .15s;
}
.ybp-filter-group select:focus,
.ybp-filter-group input:focus { border-color: var(--primary); }
.ybp-filter-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-end;
    transition: background .15s;
}
.ybp-filter-btn:hover { background: var(--primary-h); }
.ybp-filter-clear {
    color: var(--danger);
    font-size: .82rem;
    align-self: flex-end;
    padding: 8px 4px;
    text-decoration: none;
}
.ybp-filter-clear:hover { text-decoration: underline; }
@media(max-width:540px) {
    .ybp-filter-bar { gap: 8px; }
    .ybp-filter-group { min-width: calc(50% - 10px); }
    .ybp-filter-btn { width: 100%; }
}

/* Listing footer spacer — prevent footer from rising */
.ybp-footer-spacer { min-height: 120px; }

/* ── Ad Page: Image Strip (5+ images) ── */
.adp-img-strip-wrap {
    max-width: 380px;
    width: 100%;
}
.adp-img-strip {
    display: flex;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    padding-bottom: 4px;
}
.adp-img-strip::-webkit-scrollbar { height: 4px; }
.adp-img-strip::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.adp-img-strip::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
.adp-strip-cell {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    scroll-snap-align: start;
    position: relative;
    border: 2px solid transparent;
    transition: border-color .15s;
}
.adp-strip-cell:hover { border-color: var(--primary); }
.adp-strip-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}
.adp-strip-cell:hover img { transform: scale(1.05); }
.adp-strip-main {
    width: 180px;
    height: 140px;
}
@media(max-width:768px) {
    .adp-img-strip-wrap { max-width: 100%; }
    .adp-strip-main { width: 160px; height: 120px; }
    .adp-strip-cell { width: 90px; height: 90px; }
}

/* ── Ad Page: Better Float for mobile ── */
@media(max-width:640px) {
    .adp-img-float { float: none; max-width: 100%; margin: 0 0 14px; }
    .adp-img-strip-wrap { max-width: 100%; }
    .adp-main-solo { max-width: 100%; }
    .adp-img-grid { max-width: 100%; }
}

/* ── Homepage: Better design ── */
.hp-wrap { padding: 28px 0 10px; }
.hp-country { margin-bottom: 28px; }
.hp-country-bar {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--white);
    background: var(--primary);
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    display: inline-block;
}
.hp-states {
    columns: 5;
    column-gap: 20px;
}
.hp-state { break-inside: avoid; margin-bottom: 16px; }
.hp-state-name {
    font-weight: 700;
    font-size: .88rem;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
    cursor: default;
}
.hp-state-name:hover { text-decoration: underline; }
.hp-cities { list-style: none; padding: 0; margin: 0; }
.hp-cities li { margin-bottom: 2px; }
.hp-cities a {
    font-size: .83rem;
    color: var(--text);
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}
.hp-cities a:hover { color: var(--primary); text-decoration: none; }
.hp-cnt {
    font-size: .7rem;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 10px;
    padding: 0 5px;
    font-weight: 600;
    line-height: 1.6;
}
.hp-seo {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    margin-bottom: 0;
}
.hp-seo p { font-size: .83rem; color: var(--muted); line-height: 1.7; }
@media(max-width:1200px){.hp-states{columns:4}}
@media(max-width:900px){.hp-states{columns:3}}
@media(max-width:600px){.hp-states{columns:2}}
@media(max-width:380px){.hp-states{columns:1}}

/* ── Register: Better auth box ── */

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}
.form-group input,
.form-group select {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 13px;
    font-size: .9rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.btn-block { width: 100%; padding: 12px; font-size: 1rem; margin-top: 6px; }

@media(max-width:480px) {
    
}

/* ── Listing: Better header ── */
.ybp-listing-wrap { padding: 20px 0 0; min-height: 60vh; }
.ybp-listing-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ybp-listing-header h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}
.ybp-lh-city { font-size: .85rem; color: var(--muted); font-weight: 500; }
.ybp-lh-count {
    font-size: .8rem;
    background: #eff6ff;
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
}
.ybp-no-ads {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 1rem;
}

/* ── Listing ad items: cleaner style ── */
.ybp-ads-list { list-style: none; padding: 0; margin: 0; }
.ybp-ad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    transition: background .12s;
    gap: 8px;
}
.ybp-ad-item:first-child { border-top: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.ybp-ad-item:last-child { border-radius: 0 0 8px 8px; }
.ybp-ad-item:hover { background: #f0f7ff; }
.ybp-ad-link {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--text);
}
.ybp-ad-link:hover { text-decoration: none; }
.ybp-ad-title {
    font-size: .88rem;
    color: #1a4fa0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ybp-ad-item:hover .ybp-ad-title { text-decoration: underline; }
.ybp-ad-meta {
    font-size: .75rem;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.ybp-ad-price { color: #16a34a; font-weight: 700; }
.ybp-gender { font-size: .85rem; }
.ybp-male { color: #3b82f6; }
.ybp-female { color: #ec4899; }
.ybp-featured { background: #fffdf0 !important; }
.ybp-feat-star { color: #d97706; font-size: .85rem; flex-shrink: 0; }
@media(max-width:480px) {
    .ybp-ad-item { padding: 9px 10px; }
    .ybp-ad-title { font-size: .83rem; }
    .ybp-ad-meta { font-size: .7rem; }
}

/* ── Ad page: wrap ── */
.adp-wrap { padding: 20px 0 40px; }
.adp-container { max-width: 900px; }
.adp-breadcrumb { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.adp-breadcrumb a { color: var(--muted); text-decoration: none; }
.adp-breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.adp-hr { border: none; border-top: 1px solid var(--border); margin: 10px 0 14px; }

/* ── Pagination ── */
.ybp-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 24px 0;
    flex-wrap: wrap;
}
.ybp-page-btn {
    display: inline-block;
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: .85rem;
    color: var(--text);
    background: var(--white);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.ybp-page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.ybp-page-active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }

/* ── Breadcrumb general ── */
.breadcrumb { font-size: .78rem; color: var(--muted); margin-bottom: 12px; padding: 8px 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }

/* ── Mobile nav improvements ── */
@media(max-width:768px) {
    .site-header .container { height: 56px; gap: 10px; }
    .header-search { max-width: none; flex: 1; }
    .main-nav { display: none !important; }
    .nav-hamburger { display: flex !important; }
}






@media(max-width:768px) {
    
}
@media(max-width:480px) {
    
}

/* ── Ad page bottom row (report/email) ── */
.adp-bottomrow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: .82rem;
}
.adp-bottomrow a { color: #1a4fa0; text-decoration: none; }
.adp-bottomrow a:hover { text-decoration: underline; }
.adp-sep { color: var(--border); }
.adp-report-inline summary {
    cursor: pointer;
    color: #1a4fa0;
    font-size: .82rem;
    list-style: none;
}
.adp-report-inline summary::-webkit-details-marker { display: none; }
.adp-report-form {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}
.adp-report-form select {
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 5px 8px;
    font-size: .8rem;
}
.adp-report-form button {
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: .8rem;
    cursor: pointer;
}
.adp-report-ok { color: var(--success); font-size: .82rem; }

/* Preview page publish actions */
.adp-preview-publish { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.adp-preview-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

/* ms-credit-box */
.ms-credit-box {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-credit-free { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ms-credit-paid { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── Hamburger always on right side ── */
@media(max-width:768px) {
    .site-header .container {
        display: flex;
        align-items: center;
    }
    .logo { flex-shrink: 0; }
    .header-search { flex: 1; min-width: 0; }
    .main-nav { display: none !important; }
    .nav-hamburger {
        display: flex !important;
            flex-shrink: 0;
        order: 99;
    }
}

/* ── Ad action bar (Report + Email) ── */
.adp-action-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.adp-action-item { position: relative; }
.adp-action-divider {
    width: 1px; height: 20px;
    background: var(--border);
    margin: 0 12px;
}
.adp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
    border: none;
    background: none;
    color: #555;
    list-style: none;
}
.adp-action-btn:hover { background: #f3f4f6; color: #111; }
.adp-btn-report { color: #b91c1c; }
.adp-btn-report:hover { background: #fff1f2; color: #b91c1c; }
.adp-btn-share { color: #1a4fa0; }
.adp-btn-share:hover { background: #eff6ff; color: #1a4fa0; }
.adp-action-done { font-size: .82rem; color: var(--success); padding: 7px 14px; }

/* Report dropdown */
.adp-report-details summary { list-style: none; }
.adp-report-details summary::-webkit-details-marker { display: none; }
.adp-report-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    padding: 16px 18px;
    min-width: 240px;
    font-size: .85rem;
}
.adp-report-title { font-weight: 700; color: #111; margin: 0 0 10px; font-size: .85rem; }
.adp-report-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.adp-report-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #374151;
    padding: 5px 8px;
    border-radius: 5px;
    transition: background .1s;
}
.adp-report-options label:hover { background: #f9fafb; }
.adp-report-options input[type="radio"] { accent-color: #dc2626; }
.adp-report-submit {
    width: 100%;
    padding: 8px 0;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.adp-report-submit:hover { background: #b91c1c; }

@media (max-width: 480px) {
    .adp-report-dropdown { left: auto; right: 0; min-width: 200px; }
    .adp-action-bar { gap: 2px; }
}

/* ── hp-state-name as plain text (not link) ── */
.hp-state-name {
    font-weight: 700;
    font-size: .88rem;
    color: var(--text);
    display: block;
    margin-bottom: 5px;
    line-height: 1.3;
    cursor: default;
    text-decoration: none !important;
}

@media (max-width: 480px) {
    
}

/* ── Schema / SEO: breadcrumb compact ── */
.breadcrumb { font-size: .82rem; color: #6b7280; margin-bottom: 10px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }



/* ============================================================
   AUTH — Login & Register Pages
   ============================================================ */

.auth-wrap {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: #f8fafc;
}

.auth-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 40px 32px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.08);
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    text-decoration: none;
    font-size: 1.25rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 0 0 4px;
}

.auth-sub {
    text-align: center;
    color: #64748b;
    font-size: .875rem;
    margin: 0 0 24px;
}

/* Error alert */
.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    color: #b91c1c;
    font-size: .84rem;
}
.auth-error p { margin: 0; line-height: 1.6; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-field { display: flex; flex-direction: column; gap: 4px; }

.auth-field label {
    font-size: .81rem;
    font-weight: 600;
    color: #334155;
}

.auth-hint {
    font-size: .75rem;
    color: #94a3b8;
}

/* Input with icon */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap input,
.auth-input-wrap select {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: .9rem;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-input-wrap input:focus,
.auth-input-wrap select:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.auth-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
    z-index: 1;
}

/* Password toggle */
.auth-eye {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    opacity: .6;
    transition: opacity .15s;
    z-index: 1;
}
.auth-eye:hover { opacity: 1; }
.auth-eye svg { width: 16px; height: 16px; }

/* Two column row */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Terms & Conditions checkbox */
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-top: 2px;
}

.auth-terms input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-width: 17px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1px;
    accent-color: #3b82f6;
}

.auth-terms-text {
    font-size: .83rem;
    color: #475569;
    line-height: 1.5;
}
.auth-terms-text a {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Submit button */
.auth-submit {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: 6px;
    letter-spacing: .01em;
}
.auth-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.auth-submit:active { transform: translateY(0); }

.auth-switch {
    text-align: center;
    font-size: .84rem;
    color: #64748b;
    margin-top: 18px;
}
.auth-switch a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* Success state */
.auth-success {
    text-align: center;
    padding: 8px 0;
}
.auth-success-icon {
    width: 56px;
    height: 56px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-weight: 800;
}
.auth-success h2 { font-size: 1.2rem; color: #0f172a; margin: 0 0 6px; }
.auth-success p  { color: #64748b; font-size: .88rem; margin: 0; }
.auth-success .auth-submit { margin-top: 20px; text-decoration: none; display: block; text-align: center; }

@media (max-width: 500px) {
    .auth-card { padding: 28px 18px 24px; }
    .auth-row  { grid-template-columns: 1fr; }
}






/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 24px 0 0;
}

.footer-menu-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 20px;
    padding: 8px 0 20px;
    border-bottom: 1px solid #1f2937;
    text-align: center;
}

.footer-menu-row a {
    color: #6b7280;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
    letter-spacing: .01em;
}
.footer-menu-row a:hover { color: #d1d5db; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
    font-size: .8rem;
    font-weight: 500;
    color: #6b7280;
}
.footer-bottom p { margin: 0; }
.footer-bottom strong { color: #9ca3af; }

.footer-links {
    display: flex;
    gap: 16px;
}
.footer-links a {
    color: #6b7280;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
    letter-spacing: .01em;
}
.footer-links a:hover { color: #d1d5db; }

@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
    .footer-links  { justify-content: center; }
}

/* -- Nav auth buttons (Login/Register grouped right) -- */
.nav-auth-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-login-btn {
    color: var(--text) !important;
    font-size: .875rem;
    padding: 7px 14px;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
    border: 1.5px solid var(--border);
}
.nav-login-btn:hover { background: var(--bg); color: var(--primary) !important; text-decoration: none; }

/* My Ads — action buttons */
.mad-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
    line-height: 1;
}
.mad-btn:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.mad-edit   { background: #eff6ff; color: #2563eb; }
.mad-boost  { background: #fffbeb; color: #b45309; }
.mad-delete { background: #fef2f2; color: #dc2626; }