/* DialPainter Classified — Complete Stylesheet v3.0 */
:root {
    --indigo: #4f46e5;
    --indigo-dark: #3730a3;
    --purple: #7e22ce;
    --pink: #ec4899;
    --pink-light: #f472b6;
    --pink-soft: #fbcfe8;
    --orange: #f97316;
    --bg: #fdf2f8;
    --bg-warm: #fefce8;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
    --shadow-lg: 0 12px 40px rgba(79, 70, 229, 0.14);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--indigo); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ── */
.navbar {
    background: linear-gradient(90deg, var(--indigo), var(--purple));
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
    position: relative;
}

.logo-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-brand:hover { opacity: 0.95; }

.logo-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.logo-name em { font-style: normal; color: var(--pink-soft); }

.logo-underline { width: 88%; height: 8px; display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li { list-style: none; }

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--pink-soft); }

.nav-cta {
    background: var(--pink-light) !important;
    color: #1f2937 !important;
    padding: 8px 18px !important;
    border-radius: 50px;
    font-weight: 700 !important;
}

.nav-cta:hover {
    background: var(--pink) !important;
    color: #fff !important;
}

.burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(90deg, var(--pink), var(--orange));
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--indigo);
    color: var(--indigo);
}

.btn-outline:hover {
    background: var(--indigo);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--indigo);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--pink-soft);
    color: var(--indigo-dark);
}

.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-block { width: 100%; }

/* Hero-context buttons */
.hero .btn-outline,
.hero .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background: transparent;
}

.hero .btn-outline:hover,
.hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* ── Cards ── */
.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body { padding: 24px; }

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: var(--indigo-dark);
    background: #fafbff;
}

a.card,
a.listing-card {
    color: inherit;
    text-decoration: none;
    display: block;
}

a.card:hover,
a.listing-card:hover {
    color: inherit;
}

.category-card {
    padding: 24px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.category-card i {
    font-size: 2rem;
    color: var(--pink);
    margin-bottom: 12px;
    display: block;
}

.category-card strong {
    color: var(--indigo-dark);
    font-size: 0.95rem;
}

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Listing cards ── */
.listing-card { transition: transform var(--transition), box-shadow var(--transition); }

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.listing-img {
    height: 180px;
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 2.5rem;
    overflow: hidden;
}

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

.listing-img-lg { height: 320px; }
.listing-img-md { height: 240px; }

.listing-body { padding: 16px; }

.listing-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--indigo-dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.listing-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.listing-price {
    font-weight: 800;
    color: var(--indigo);
    font-size: 1rem;
}

.listing-rating {
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
}

.stars .rating-count {
    color: var(--muted);
    font-weight: 600;
    margin-left: 6px;
    font-size: 0.78rem;
}

.review-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.breadcrumb {
    font-size: 0.88rem;
    color: var(--muted);
}

.breadcrumb a { color: var(--indigo); }

/* SEO city pages */
.seo-hero {
    background: linear-gradient(135deg, var(--indigo), var(--purple));
    color: #fff;
    padding: 48px 0 56px;
}

.seo-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.seo-hero h1 span { color: var(--pink-soft); }
.seo-hero p { opacity: 0.9; max-width: 640px; margin-bottom: 20px; }

.breadcrumb { font-size: 0.85rem; margin-bottom: 16px; opacity: 0.85; }
.breadcrumb a { color: var(--pink-soft); }

.seo-content h3 { color: var(--indigo-dark); margin-bottom: 12px; }
.seo-content p { color: var(--muted); margin-bottom: 10px; line-height: 1.7; }

/* Payment */
.payment-box .payment-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--indigo);
    margin: 16px 0;
}

.upi-box {
    background: linear-gradient(135deg, #eef2ff, #fdf2f8);
    border: 2px dashed var(--indigo);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-top: 16px;
}

.upi-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.upi-id { font-size: 1.3rem; font-weight: 800; color: var(--indigo-dark); margin: 8px 0; word-break: break-all; }
.upi-payee { color: var(--muted); font-size: 0.9rem; }

.listing-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--indigo-dark);
    margin: 12px 0 8px;
    line-height: 1.3;
}

.listing-detail-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--indigo);
    margin-bottom: 20px;
}

.listing-detail-meta {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.listing-detail-meta i { margin-right: 4px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }

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

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff;
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--pink-light);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.15);
}

.form-control:disabled {
    background: #f8fafc;
    color: var(--muted);
    cursor: not-allowed;
}

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

select.form-control {
    cursor: pointer;
    appearance: auto;
}

input[type="file"].form-control {
    padding: 9px 12px;
    cursor: pointer;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-form .form-group {
    flex: 1;
    min-width: 140px;
    margin: 0;
}

.filter-form .form-group.flex-2 { flex: 2; min-width: 180px; }

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-right: 4px;
    margin-bottom: 4px;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-muted { background: #f1f5f9; color: #64748b; }
.badge-featured { background: linear-gradient(90deg, var(--pink), var(--orange)); color: #fff; }

.main-content { flex: 1; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 55%, #6d28d9 100%);
    color: #fff;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(244,114,182,.25), transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(251,146,60,.15), transparent 40%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-content-block { max-width: 720px; }

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #fff;
}

.hero h1 em { font-style: normal; color: var(--pink-soft); }

.hero p {
    opacity: 0.9;
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-search {
    background: #fff;
    border-radius: 50px;
    padding: 6px;
    display: flex;
    gap: 8px;
    max-width: 680px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    align-items: center;
}

.hero-search input,
.hero-search select {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    color: var(--text);
}

.hero-search .btn {
    border-radius: 50px;
    flex-shrink: 0;
    margin: 0;
}

/* ── Stats ── */
.stat-card {
    text-align: center;
    padding: 22px 16px;
    transition: transform var(--transition);
}

.stat-card:hover { transform: translateY(-2px); }

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--indigo);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Dashboard ── */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    padding: 32px 0 48px;
    align-items: start;
}

.dashboard-layout main {
    min-width: 0;
}

.sidebar {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 84px;
    box-shadow: var(--shadow);
}

.sidebar-nav { list-style: none; margin: 0; padding: 0; }

.sidebar-nav li { list-style: none; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #eef2ff;
    color: var(--indigo);
}

.sidebar-nav i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    padding: 8px 14px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.sidebar-user-info strong {
    display: block;
    color: var(--indigo-dark);
    font-size: 0.9rem;
}

.sidebar-user-info span {
    font-size: 0.78rem;
    color: var(--muted);
    word-break: break-all;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--indigo-dark);
}

.dash-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Tables ── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    font-weight: 700;
    color: var(--indigo-dark);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:hover td { background: #fafafa; }

.actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 40px 24px;
    color: var(--muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 16px;
    display: block;
}

/* ── Cities ── */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.city-chip {
    background: linear-gradient(90deg, var(--pink), var(--pink-light));
    color: #fff;
    padding: 11px 14px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    display: block;
}

.city-chip:hover {
    transform: scale(1.03);
    color: #fff;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}

.city-chip.service {
    background: linear-gradient(90deg, var(--indigo), var(--purple));
}

/* ── Sections ── */
.section { padding: 48px 0; }
.section-tight { padding: 32px 0; }
.section-white { background: #fff; }
.section-narrow { max-width: 900px; margin: 0 auto; }

.section-title {
    font-size: clamp(1.35rem, 3vw, 1.6rem);
    font-weight: 800;
    color: var(--indigo-dark);
    margin-bottom: 8px;
}

.section-sub {
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.step-card {
    text-align: center;
}

.step-card .step-icon {
    font-size: 2.5rem;
    color: var(--pink);
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--indigo-dark);
    margin-bottom: 8px;
}

.step-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-20 { margin-bottom: 20px; }
.mb-16 { margin-bottom: 16px; }

/* ── Pagination ── */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--indigo);
    color: #fff;
    border-color: var(--indigo);
}

.pagination .active {
    background: var(--indigo);
    color: #fff;
    border-color: var(--indigo);
}

/* ── CTA ── */
.cta-section { padding-bottom: 64px; }

.cta-box {
    background: linear-gradient(135deg, var(--indigo), var(--purple));
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ── */
.footer {
    background: linear-gradient(90deg, var(--indigo), var(--purple));
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 20px;
    margin-top: auto;
}

.footer .logo-name,
.footer-brand .logo-name {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 12px;
    display: block;
}

.footer-brand .logo-name em { color: var(--pink-soft); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.85;
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
}

.footer-links a:hover { color: var(--pink-soft); }

.footer-contact li {
    font-size: 0.88rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i { width: 18px; text-align: center; color: var(--pink-soft); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    text-align: center;
    font-size: 0.82rem;
}

/* ── Auth pages ── */
.auth-section {
    padding: 48px 0 64px;
}

.auth-section .card {
    box-shadow: var(--shadow-lg);
}

/* ── Flash banner ── */
.flash-banner {
    padding-top: 16px;
    padding-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .form-row, .grid-2 { grid-template-columns: 1fr; }
    .burger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: linear-gradient(90deg, var(--indigo), var(--purple));
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 20px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 var(--radius) var(--radius);
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
    }
    .nav-links a:hover { background: rgba(255, 255, 255, 0.1); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
    }
    .hero-search .btn { width: 100%; }
    .dash-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 40px 0 48px; }
    .section { padding: 36px 0; }
    .card-body { padding: 18px; }
    th, td { padding: 10px 12px; font-size: 0.82rem; }
}