/* ═══════════════════════════════════════════════════
   Dr Business — Complete Stylesheet
   Mobile-first • Premium Medical Theme • Clean & Modern
   ═══════════════════════════════════════════════════ */

/* ── Imports ───────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --primary-deeper: #064e3b;
    --accent: #f43f5e;
    --accent-light: #fb7185;
    --accent-glow: rgba(244, 63, 94, 0.25);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafb;
    --bg-warm: #fefefe;
    --card-bg: #ffffff;
    --glass: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #f1f5f9;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 4px 20px rgba(244, 63, 94, 0.2);
    --shadow-primary: 0 4px 20px rgba(13, 148, 136, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 64px;
}

/* ── Reset & Base ──────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
    /* Fix for fixed header */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
}

/* ── Container ─────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Navigation ────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
    white-space: nowrap;
}

.nav-logo img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.nav-logo span {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary);
}

.nav-links a.btn-nav {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.nav-links a.btn-nav:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    background: #f1f5f9;
    border-radius: var(--radius-xs);
    padding: 2px;
}

.lang-switcher a {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
    opacity: 0.7;
}

.lang-switcher a.active-lang {
    background: var(--primary) !important;
    color: #fff !important;
    opacity: 1;
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Mobile Nav ────────────────────────────────── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid #e2e8f0;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        color: var(--text);
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }
}

/* ── Hero Section ──────────────────────────────── */
.hero {
    margin-top: var(--nav-height);
    background: linear-gradient(160deg, #f0fdfa 0%, #ccfbf1 30%, #99f6e4 60%, #5eead4 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 10%, rgba(244, 63, 94, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 90%, rgba(13, 148, 136, 0.12) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--primary-deeper);
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--primary-dark);
    margin-bottom: 32px;
    font-weight: 400;
    opacity: 0.8;
}

/* ── Search Bar ────────────────────────────────── */
.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.15);
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 1rem;
    background: transparent;
    color: var(--text);
}

.search-bar input::placeholder {
    color: var(--text-light);
}

.search-bar button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 16px 28px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.search-bar button:hover {
    background: var(--primary-light);
}

@media (max-width: 480px) {
    .search-bar {
        border-radius: var(--radius);
        flex-direction: column;
    }

    .search-bar input {
        padding: 14px 16px;
    }

    .search-bar button {
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 14px;
    }
}

/* ── Section Headers ───────────────────────────── */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.view-all-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    color: var(--primary-light);
    gap: 8px;
}

/* ── Category Grid ─────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(13, 148, 136, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
}

.category-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.3;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px 8px;
    }

    .category-icon {
        font-size: 1.8rem;
    }

    .category-name {
        font-size: 0.75rem;
    }
}

/* ── Business Cards ────────────────────────────── */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.business-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.business-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-light);
}

.business-card-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.business-card-body {
    padding: 14px;
    flex: 1;
}

.business-card-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    margin-bottom: 10px;
    line-height: 1;
    background: #f0fdf4 !important;
    /* Extremely light green/teal */
    color: #0f766e !important;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.business-card h3 {
    font-size: 1.3rem !important;
    /* Larger and Important */
    font-weight: 800;
    margin-bottom: 6px;
    color: #000000 !important;
    /* PITCH BLACK - FORCE VISIBILITY */
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.business-card-area {
    font-size: 0.95rem !important;
    color: #111111 !important;
    /* Almost Black - FORCE VISIBILITY */
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.business-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Premium Rating Badge */
.rating-badge {
    background: #fffbeb;
    color: #b45309;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Card Action Buttons (Circular Icons) */
.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.btn-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--text);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-card-icon:hover {
    transform: scale(1.1);
}

.btn-card-icon.call {
    color: var(--primary);
}

.btn-card-icon.whatsapp {
    color: #25d366;
}

.btn-card-icon.like {
    color: #ef4444;
}

/* Hide old styles */
.business-rating,
.business-views {
    display: none;
}

.business-card-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Category-specific placeholder gradients */
.business-card-img.placeholder[data-cat="food"] {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.business-card-img.placeholder[data-cat="retail"] {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.business-card-img.placeholder[data-cat="home"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.business-card-img.placeholder[data-cat="beauty"] {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.business-card-img.placeholder[data-cat="education"] {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.business-card-img.placeholder[data-cat="health"] {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.business-card-img.placeholder[data-cat="automobile"] {
    background: linear-gradient(135deg, #fc4a1a, #f7b733);
}

.business-card-img.placeholder[data-cat="realestate"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.business-card-img.placeholder[data-cat="it"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.business-card-img.placeholder[data-cat="professional"] {
    background: linear-gradient(135deg, #1e3a5f, #4a90d9);
}

.business-card-img.placeholder[data-cat="transport"] {
    background: linear-gradient(135deg, #f2994a, #f2c94c);
}

.business-card-img.placeholder[data-cat="events"] {
    background: linear-gradient(135deg, #ee0979, #ff6a00);
}

.business-card-img.placeholder[data-cat="manufacturing"] {
    background: linear-gradient(135deg, #536976, #292e49);
}

.business-card-img.placeholder[data-cat="agriculture"] {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.business-card-body {
    padding: 16px;
}

.business-card-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(13, 148, 136, 0.08);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 8px;
}

.business-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
    line-height: 1.3;
}

.business-card-area {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.business-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

.business-rating {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--warning);
}

.business-views {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Card Action Buttons (Call + WhatsApp) */
.card-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.card-actions a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.card-actions .btn-card-call {
    background: var(--primary);
    color: #fff;
}

.card-actions .btn-card-call:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.card-actions .btn-card-wa {
    background: #25d366;
    color: #fff;
}

.card-actions .btn-card-wa:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 20;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-featured {
    background: rgba(245, 158, 11, 0.95);
    /* Glassy Amber */
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.badge-verified {
    background: var(--success);
}

.badge-new {
    background: var(--primary);
}

.badge-new-listing {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Hide category count */
.category-count {
    display: none;
}

@media (max-width: 480px) {
    .business-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .business-card-img {
        height: 160px;
    }

    .card-actions a {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
}

/* ── Business Profile Page ─────────────────────── */
.profile-hero {
    margin-top: var(--nav-height);
    height: 280px;
    background: linear-gradient(135deg, var(--primary-deeper), var(--primary));
    position: relative;
    overflow: hidden;
}

.profile-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.profile-info {
    max-width: 1200px;
    margin: -80px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
}

.profile-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    background: var(--bg);
}

.profile-details h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-details .tagline {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-call {
    background: var(--primary);
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-directions {
    background: var(--text);
    color: #fff;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (max-width: 600px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .contact-buttons {
        justify-content: center;
    }

    .profile-hero {
        height: 200px;
    }
}

/* ── Gallery ───────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

/* ── Reviews ───────────────────────────────────── */
.review-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-stars {
    color: var(--warning);
    margin-bottom: 6px;
}

.review-reply {
    background: rgba(13, 148, 136, 0.04);
    border-left: 3px solid var(--primary);
    padding: 10px;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ── Forms ─────────────────────────────────────── */
.form-page {
    margin-top: calc(var(--nav-height) + 24px);
    padding-bottom: 40px;
}

.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.form-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    color: var(--primary-dark);
}

.form-card .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 50px;
    background: #f1f5f9;
    transition: var(--transition);
}

.wizard-step.active {
    background: var(--primary);
    color: #fff;
}

.wizard-step.done {
    background: var(--success);
    color: #fff;
}

.wizard-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
}

.wizard-step.active .step-num {
    background: rgba(255, 255, 255, 0.2);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.form-group label .optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fafbfc;
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: #fff;
}

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

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

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

    .form-card {
        padding: 20px 16px;
        margin: 0 8px;
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(244, 63, 94, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ── Jobs ──────────────────────────────────────── */
.job-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.job-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: #fff;
}

.job-info {
    flex: 1;
}

.job-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.job-info .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.job-info .job-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.job-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .job-card {
        flex-direction: column;
    }

    .job-actions {
        width: 100%;
    }

    .job-actions .btn {
        flex: 1;
        text-align: center;
    }
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Virtual Market Teaser ─────────────────────── */
.virtual-market-teaser {
    background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin: 16px 0;
}

.virtual-market-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.virtual-market-teaser h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
}

.virtual-market-teaser p {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 20px;
    position: relative;
}

.badge-coming-soon {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(244, 63, 94, 0);
    }
}

/* ── Filters Bar ───────────────────────────────── */
.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: center;
    border: 1px solid #e2e8f0;
}

.filters-bar select,
.filters-bar input {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    background: #fafbfc;
    min-width: 140px;
}

.filters-bar select:focus,
.filters-bar input:focus {
    border-color: var(--primary);
    outline: none;
}

/* ── Dashboard ─────────────────────────────────── */
.dashboard-page {
    margin-top: calc(var(--nav-height) + 24px);
    padding-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary);
    border-top: none;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ── Admin Table ───────────────────────────────── */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th {
    background: var(--primary);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(13, 148, 136, 0.03);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-closed {
    background: #e2e8f0;
    color: #475569;
}

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

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid #e2e8f0;
}

.pagination a {
    background: var(--card-bg);
    color: var(--text);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* ── Photo Upload ──────────────────────────────── */
.photo-upload {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafbfc;
}

.photo-upload:hover {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.03);
}

.photo-upload input[type="file"] {
    display: none;
}

.photo-upload .upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.photo-upload p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.photo-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.photo-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    border: 2px solid #e2e8f0;
}

/* ── Footer ────────────────────────────────────── */
/* ── Trust Strip (above footer) ───────────────── */
.trust-strip {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    padding: 32px 0;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

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

.trust-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.trust-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

@media (max-width: 600px) {
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }

    .trust-num {
        font-size: 1.4rem;
    }
}

.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
    margin-top: 48px;
}

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

.footer h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 6px;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ── Messages ──────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: #e0f2fe;
    color: #0c4a6e;
    border-left: 4px solid #0ea5e9;
}

/* ── Empty State ───────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text);
}

.empty-state p {
    font-size: 0.95rem;
}

/* ── Utility ───────────────────────────────────── */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.text-primary {
    color: var(--primary);
}

.text-light {
    color: var(--text-light);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.flex {
    display: flex;
}

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

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

/* ── Login Page ────────────────────────────────── */
.login-page {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #f0fdfa 0%, #ccfbf1 40%, #99f6e4 100%);
    padding: 24px;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    border: 1px solid #e2e8f0;
}

.login-card h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.login-card .logo-area {
    text-align: center;
    margin-bottom: 24px;
}

.login-card .logo-area img {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    border-radius: 12px;
}

/* ── Responsive Overflow Table ─────────────────── */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
}

/* ── Animations ────────────────────────────────── */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: slideUp 0.5s ease forwards;
}

/* Staggered animation for grids */
.business-grid .business-card,
.categories-grid .category-card {
    opacity: 0;
    animation: slideUp 0.4s ease forwards;
}

.business-grid .business-card:nth-child(1),
.categories-grid .category-card:nth-child(1) {
    animation-delay: 0.05s;
}

.business-grid .business-card:nth-child(2),
.categories-grid .category-card:nth-child(2) {
    animation-delay: 0.1s;
}

.business-grid .business-card:nth-child(3),
.categories-grid .category-card:nth-child(3) {
    animation-delay: 0.15s;
}

.business-grid .business-card:nth-child(4),
.categories-grid .category-card:nth-child(4) {
    animation-delay: 0.2s;
}

.business-grid .business-card:nth-child(5),
.categories-grid .category-card:nth-child(5) {
    animation-delay: 0.25s;
}

.business-grid .business-card:nth-child(6),
.categories-grid .category-card:nth-child(6) {
    animation-delay: 0.3s;
}

.business-grid .business-card:nth-child(n+7),
.categories-grid .category-card:nth-child(n+7) {
    animation-delay: 0.35s;
}

/* ── Phone Input Group (+91) ──────────────────── */
.phone-input-group {
    display: flex;
    align-items: stretch;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    background: #fafbfc;
}

.phone-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: #fff;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
    user-select: none;
}

.phone-input-group input {
    flex: 1;
    border: none !important;
    outline: none;
    padding: 12px 14px;
    font-size: 0.95rem;
    background: transparent !important;
    color: var(--text);
    box-shadow: none !important;
    letter-spacing: 1px;
    font-weight: 600;
}

.phone-input-group input::placeholder {
    letter-spacing: 0;
    font-weight: 400;
    color: var(--text-light);
}

.phone-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.phone-error.show {
    display: block;
}

/* ── Smart Image Uploader ─────────────────────── */
.dr-uploader {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafbfc;
    position: relative;
}

.dr-uploader:hover,
.dr-uploader.dragover {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.03);
    border-style: solid;
}

.dr-uploader.dragover {
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.dr-uploader .upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.dr-uploader .upload-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.dr-uploader .upload-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.dr-uploader .upload-hint {
    font-size: 0.78rem;
    color: #94a3b8;
}

.dr-uploader .upload-hint .optimize-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
}

/* Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: var(--transition);
    aspect-ratio: 1;
}

.image-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

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

.image-card .image-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: var(--transition);
}

.image-card:hover .image-actions {
    opacity: 1;
}

.image-card .image-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
}

.image-card .image-actions button:hover {
    transform: scale(1.15);
}

.image-card .image-actions .btn-delete {
    background: var(--accent);
    color: #fff;
}

.image-card .image-actions .btn-rotate {
    background: var(--primary);
    color: #fff;
}

/* Optimize Progress */
.image-card .optimize-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
}

.image-card .optimize-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 0 2px 2px 0;
}

/* Size Badge */
.image-card .size-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.image-card .optimized-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--success);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Rotation animation */
.image-card img.rotating {
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .image-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .image-card .image-actions {
        opacity: 1;
        background: rgba(0, 0, 0, 0.35);
    }

    .image-card .image-actions button {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* ── Utilities ─────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    position: relative;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

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

@media (max-width: 900px) {
    .grid-2-1 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.text-light {
    color: var(--text-light);
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

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

/* Form Enhancements */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafb;
}

.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

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

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 18px;
    }
}

/* ── Idea Pitcher Pages ────────────────────────── */
.page-header {
    background: var(--card-bg);
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    margin-bottom: 40px;
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.idea-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    position: relative;
    transition: var(--transition);
}

.idea-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.idea-card .card-body {
    padding: 24px;
}

.idea-card .card-footer {
    padding: 12px 24px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.stat-box {
    text-align: center;
    padding: 10px;
    background: #f8fafb;
    border-radius: var(--radius-sm);
    flex: 1;
}

/* ── PWA Mobile Responsive Fixes ──────────────── */
@media (max-width: 768px) {

    /* Safe area for notched phones */
    body {
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    /* 2-column business grid on tablet/mobile */
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Hero responsive */
    .hero {
        padding: 40px 0 60px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    /* Full-width search */
    .search-bar {
        max-width: 100%;
    }

    /* Touch targets — minimum 48px */
    .btn,
    button,
    a.btn-card-call,
    a.btn-card-wa,
    .btn-contact {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Category grid 3-col */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px 8px;
    }

    /* Section spacing */
    .section {
        padding: 32px 0;
    }

    .container {
        padding: 0 12px;
    }
}

@media (max-width: 380px) {

    /* Single col business grid on very small screens */
    .business-grid {
        grid-template-columns: 1fr;
    }

    /* 2-col categories on tiny screens */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Standalone PWA mode fixes */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top, 0);
    }

    .header {
        padding-top: env(safe-area-inset-top, 0);
    }

    .footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
    }
}

/* ═══════════════════════════════════════════════════
   Phase 3A — Unified Architecture Styles
   ═══════════════════════════════════════════════════ */

/* ── Bottom Navigation ─────────────────────────── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    body {
        padding-bottom: 72px;
    }

    .footer {
        padding-bottom: 80px;
    }
}

.bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px 6px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
    min-width: 0;
    position: relative;
}

.bnav-item.active {
    color: var(--primary);
}

.bnav-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.bnav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bnav-item.bnav-plus {
    position: relative;
}

.bnav-icon-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    font-size: 1.1rem;
    margin-top: -18px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
    transition: var(--transition);
}

.bnav-item.bnav-plus:hover .bnav-icon-plus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.bnav-item.bnav-plus .bnav-label {
    color: var(--primary);
    font-weight: 600;
}

/* ── Account Page ──────────────────────────────── */
.account-page {
    /* padding: 20px 0 40px; Replaced with safer spacing */
    padding: calc(var(--nav-height) + 20px) 0 40px;
    min-height: 70vh;
}

.account-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    position: relative;
    /* Contain absolute elements */
}

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

.card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.profile-header {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar img,
.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-info h2 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.profile-phone,
.profile-area {
    font-size: 0.85rem;
    opacity: 0.9;
}

.profile-info .badge {
    position: static;
    transform: none;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    box-shadow: none;
}

.badge-owner {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.badge-user {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.profile-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.profile-actions .btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.profile-actions .btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Quick Stats Row */
.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.quick-stat {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.qs-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.qs-label {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Business Section */
.biz-info-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.biz-mini-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.biz-info-row h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.biz-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.biz-stat {
    text-align: center;
    padding: 10px 4px;
    background: var(--bg);
    border-radius: var(--radius-xs);
}

.biz-stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.biz-stat-label {
    font-size: 0.65rem;
    color: var(--text-light);
}

.biz-status-bar {
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 10px;
    border-top: 1px solid var(--bg);
}

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-rejected {
    background: #fecdd3;
    color: #9f1239;
}

/* CTA Register */
.cta-register {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 2px dashed var(--primary-light);
    text-align: center;
}

.cta-content {
    padding: 20px 0;
}

.cta-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
}

.cta-content h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.cta-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* Saved List */
.saved-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.saved-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.saved-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    flex: 1;
    min-width: 0;
}

.saved-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.saved-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    font-size: 1.2rem;
    flex-shrink: 0;
}

.saved-info {
    min-width: 0;
}

.saved-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-info p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.btn-unsave {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    opacity: 0.7;
    transition: var(--transition);
}

.btn-unsave:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Reviews in Account */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-item {
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-biz-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

.review-rating {
    font-size: 0.75rem;
}

.review-text {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 4px;
}

.review-date {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Jobs in Account */
.job-item {
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

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

.job-head h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.job-status {
    font-size: 0.7rem;
    font-weight: 600;
}

.job-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.btn-xs {
    padding: 3px 10px;
    font-size: 0.7rem;
    border-radius: var(--radius-xs);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ── Save Button on Business Cards ─────────────── */
.save-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 5;
}

.save-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.save-btn.saved {
    background: var(--accent);
    color: white;
}

/* Make business cards position:relative for save button */
.business-card {
    position: relative;
}

/* ── Job Filter Chips ──────────────────────────── */
.filter-chips-container {
    margin-bottom: 20px;
}

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    flex-shrink: 0;
}

.filter-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
    font-weight: 600;
}

.area-filter-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.area-filter-inline input[type="text"] {
    flex: 1;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    background: var(--card-bg);
}

/* ── Category Color Badge ──────────────────────── */
.business-card-category[style] {
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-block;
}

/* ── Nearby Section ────────────────────────────── */
.nearby-section {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.03), rgba(6, 182, 212, 0.03));
}

.nearby-badge {
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}