/* ============ CART PAGE COMPLETE PREMIUM STYLES ============ */
.cart-page main.main-content {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    min-height: 100vh;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.cart-page h1 {
    color: #1e293b;
    margin-bottom: 32px;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.cart-page h1 i {
    color: #2563eb;
    font-size: 2.3rem;
}
.cart-page .cart-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(37,99,235,0.15), 0 2px 8px rgba(37,99,235,0.1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 42px 32px 32px 32px;
    margin: 0 auto 32px auto;
    max-width: 1100px;
    backdrop-filter: blur(10px);
}
/* Empty State Styling */
.cart-page .empty-state {
    text-align: center;
    padding: 80px 30px 60px 30px;
}
.cart-page .empty-state i {
    font-size: 5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}
.cart-page .empty-state h2 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}
.cart-page .empty-state p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}
.cart-page .empty-state .btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.cart-page .empty-state .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.cart-page .empty-state .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.4);
}
/* Layout Buttons */
.cart-page .btn-primary, .cart-page .btn-outline {
    font-size: 1rem;
    padding: 13px 24px;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cart-page .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37,99,235,0.25);
}
.cart-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37,99,235,0.35);
}
.cart-page .btn-primary:active {
    transform: translateY(0);
}
.cart-page .btn-outline {
    background: #f1f5f9;
    color: #2563eb;
    border: 2px solid #e2e8f0;
}
.cart-page .btn-outline:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
/* Cart Layout */
.cart-page .cart-layout {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.cart-page .cart-items-column {
    flex: 2 1 400px;
    min-width: 0;
}
/* Cart Items Styling */
#cartItems {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cart-page .cart-item {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: default;
}
.cart-page .cart-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(37,99,235,0.08);
    transform: translateY(-2px);
    background: #fff;
}
.cart-page .cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.cart-page .cart-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-page .cart-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}
.cart-page .cart-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cart-page .cart-item-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cart-page .cart-item-qty {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 8px;
}
.cart-page .cart-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
.cart-page .cart-qty-btn {
    background: #e2e8f0;
    border: none;
    color: #1e293b;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-page .cart-qty-btn:hover {
    background: #cbd5e1;
    transform: scale(1.05);
}
.cart-page .cart-qty-btn:active {
    transform: scale(0.95);
}
.cart-page .cart-remove {
    background: #fee2e2;
    border: none;
    color: #991b1b;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-left: auto;
}
.cart-page .cart-remove:hover {
    background: #fca5a5;
    transform: scale(1.02);
}
.cart-page .cart-remove:active {
    transform: scale(0.98);
}
/* Sidebar Styling */
.cart-page .cart-sidebar {
    flex: 1 1 320px;
    min-width: 280px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(37,99,235,0.08), 0 2px 8px rgba(37,99,235,0.04);
    padding: 28px 24px 24px 24px;
    align-self: flex-start;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 120px;
}
.cart-page .cart-summary-box {
    margin-bottom: 24px;
}
.cart-page .cart-summary {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8);
}
.cart-page .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #475569;
}
.cart-page .summary-row strong {
    color: #1e293b;
    font-weight: 700;
}
.cart-page .summary-row:last-child {
    margin-bottom: 0;
}
.cart-page .summary-total {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: right;
}
.cart-page .cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-page .cart-actions .btn {
    margin-bottom: 0;
}
.cart-page .alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fef5f5 100%);
    color: #7f1d1d;
    border: 2px solid #fca5a5;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.cart-page .alert-error i {
    font-size: 1.2rem;
    flex-shrink: 0;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
/* Responsive Design */
@media (max-width: 1024px) {
    .cart-page .cart-sidebar {
        position: relative;
        top: auto;
    }
}
@media (max-width: 900px) {
    .cart-page .cart-layout {
        flex-direction: column;
        gap: 24px;
    }
    .cart-page .cart-sidebar {
        align-self: stretch;
        top: auto;
    }
    .cart-page .cart-card {
        padding: 32px 24px 24px 24px;
    }
}
@media (max-width: 700px) {
    .cart-page h1 {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }
    .cart-page .cart-card {
        padding: 20px 16px 16px 16px;
        border-radius: 16px;
    }
    .cart-page .cart-item {
        padding: 14px;
        gap: 14px;
    }
    .cart-page .cart-item-img {
        width: 85px;
        height: 85px;
    }
    .cart-page .cart-item-title {
        font-size: 0.95rem;
    }
    .cart-page .cart-item-actions {
        width: 100%;
        margin-top: 10px;
    }
    .cart-page .cart-remove {
        margin-left: auto;
    }
    .cart-page .empty-state {
        padding: 60px 20px 40px 20px;
    }
    .cart-page .empty-state i {
        font-size: 4rem;
    }
    .cart-page .empty-state h2 {
        font-size: 1.6rem;
    }
}
@media (max-width: 480px) {
    .cart-page h1 {
        font-size: 1.4rem;
        gap: 8px;
    }
    .cart-page h1 i {
        font-size: 1.8rem;
    }
    .cart-page .cart-card {
        padding: 16px 12px 12px 12px;
    }
    .cart-page .btn-primary, .cart-page .btn-outline {
        font-size: 0.9rem;
        padding: 12px 18px;
    }
    .cart-page .cart-item-actions {
        gap: 6px;
    }
    .cart-page .cart-qty-btn,
    .cart-page .cart-remove {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
/* ============ MARKETPLACE PAGE ENHANCEMENTS ============ */
.marketplace-page .marketplace-hero {
    position: relative;
    background: linear-gradient(120deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    overflow: hidden;
    padding: 48px 0; /* Use container for horizontal padding */
}
.marketplace-page .featured-products-section,
.marketplace-page .categories-section,
.marketplace-page .marketplace-cta {
    padding: 48px 0;
}

.marketplace-page .featured-products-section {
    background-color: var(--light-bg);
}

.marketplace-page .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,rgba(37,99,235,0.12) 0%,rgba(30,64,175,0.18) 100%);
    z-index: 1;
}
.marketplace-page .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.marketplace-page .hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
}
.marketplace-page .hero-badge {
    background: #fff;
    color: #2563eb;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(30,64,175,0.08);
    letter-spacing: 0.04em;
    transition: background 0.2s;
}
.marketplace-page .hero-badge-accent {
    background: linear-gradient(90deg,#fbbf24 0%,#f59e0b 100%);
    color: #fff;
    font-weight: 900;
}
.marketplace-page .hero-content h1 {
    font-size: 2.7rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(30,64,175,0.13);
}
.marketplace-page .hero-content p {
    font-size: 1.25rem;
    color: #e0e7ff;
    margin-bottom: 24px;
}
.marketplace-page .marketplace-search {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.marketplace-page .search-container {
    display: flex;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(30,64,175,0.08);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}
.marketplace-page .search-input {
    border: none;
    padding: 14px 18px;
    font-size: 1.1rem;
    outline: none;
    flex: 1;
    border-radius: 999px 0 0 999px;
}
.marketplace-page .search-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0 22px;
    font-size: 1.2rem;
    border-radius: 0 999px 999px 0;
    cursor: pointer;
    transition: background 0.2s;
}
.marketplace-page .search-btn:hover {
    background: #1e40af;
}
.marketplace-page .hero-featured {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 18px;
}
.marketplace-page .hero-featured .product-card {
    min-width: 220px;
    max-width: 260px;
    box-shadow: 0 4px 18px rgba(37,99,235,0.10);
    border: 2px solid #fbbf24;
    background: #fffbe7;
    animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}
.marketplace-page .cart-fab {
    position: fixed;
    right: 32px;
    bottom: 32px;
    background: linear-gradient(120deg,#2563eb 0%,#1e40af 100%);
    color: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(37,99,235,0.18);
    z-index: 1200;
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.marketplace-page .cart-fab:hover {
    background: #fbbf24;
    color: #1e40af;
    box-shadow: 0 12px 36px rgba(251,191,36,0.18);
}
.marketplace-page .cart-fab-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fbbf24;
    color: #1e40af;
    font-weight: 900;
    border-radius: 50%;
    padding: 4px 10px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(251,191,36,0.18);
}
.marketplace-page .cart-dock {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #fff;
    color: #2563eb;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(37,99,235,0.10);
    padding: 12px 32px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1200;
    border: 2px solid #2563eb;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.marketplace-page .cart-dock:hover {
    background: #2563eb;
    color: #fff;
}
.marketplace-page .cart-dock-right {
    font-weight: 900;
    font-size: 1.1rem;
}
.marketplace-page .featured-products-section .products-grid .product-card {
    animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) both;
}
.marketplace-page .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px;
    margin-top: 18px;
}
.marketplace-page .category-card {
    background: linear-gradient(120deg,#f8fafc 0%,#e0e7ff 100%);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(30,64,175,0.08);
    padding: 32px 18px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 2px solid #e0e7ff;
    cursor: pointer;
}
.marketplace-page .category-card:hover {
    box-shadow: 0 8px 32px rgba(37,99,235,0.13);
    transform: translateY(-6px) scale(1.04);
    border-color: #2563eb;
}
.marketplace-page .category-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 8px;
}
.marketplace-page .product-count {
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
}
.marketplace-page .marketplace-cta {
    background: linear-gradient(120deg,#2563eb 0%,#1e40af 100%);
    color: #fff;
    text-align: center;
    margin-top: 48px;
    /* Padding is now handled by the generic section rule */
}
.marketplace-page .marketplace-cta h2 {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
}
.marketplace-page .marketplace-cta p {
    font-size: 1.2rem;
    color: #e0e7ff;
    margin-bottom: 24px;
}
.marketplace-page .marketplace-cta .btn {
    font-size: 1.1rem;
    padding: 14px 38px;
    border-radius: 999px;
    background: #fbbf24;
    color: #1e40af;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(251,191,36,0.18);
    border: none;
    transition: background 0.2s, color 0.2s;
}
.marketplace-page .marketplace-cta .btn:hover {
    background: #2563eb;
    color: #fff;
}
@media (max-width: 900px) {
    .marketplace-page .marketplace-hero, .marketplace-page .marketplace-cta {
        padding: 32px 10px 24px 10px;
    }
    .marketplace-page .hero-content h1 {
        font-size: 2rem;
    }
}
@media (max-width: 600px) {
    .marketplace-page .hero-featured {
        flex-direction: column;
        gap: 10px;
    }
    .marketplace-page .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --admin-bg-color: #f1f5f9;

    /* Header/Menu */
    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-border: rgba(226, 232, 240, 0.85);
    --nav-height: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* ============ NAVIGATION ============ */
.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: opacity 160ms ease, transform 160ms ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--nav-height);
    padding: 8px 16px;
    max-width: 1400px;
    width: 100%;
}

.navbar-container {
    gap: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.navbar-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

/* Center the main header menu (desktop)
   Uses grid so the menu centers relative to the whole navbar (not just the space between logo and actions). */
@media (min-width: 769px) {
    .navbar .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 12px;
    }

    .navbar-brand {
        grid-column: 1;
    }

    /* Make children of .navbar-menu become grid items (keeps markup unchanged) */
    .navbar-menu {
        display: contents;
    }

    .navbar-primary {
        grid-column: 2;
        justify-content: center;
        min-width: 0;
    }

    .navbar-actions {
        grid-column: 3;
        justify-content: flex-end;
    }
}

.navbar-primary,
.navbar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-primary {
    justify-content: center;
    flex: 1;
}

.navbar-actions {
    justify-content: flex-end;
}

@media (min-width: 992px) {
    .navbar-menu {
        gap: 22px;
    }

    .navbar-primary,
    .navbar-actions {
        gap: 18px;
    }

    .nav-link,
    .dropdown-toggle {
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* Icon links: show icon-only on desktop, label on mobile */
.nav-icon .nav-text {
    display: none;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1;
    font-size: 13px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

.nav-link.btn-primary {
    color: #fff;
    background: var(--primary-color);
    border-radius: 999px;
    padding: 10px 14px;
}

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

.unread-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.nav-dropdown {
    position: relative;
    /* Clean state: no padding hacks */
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    padding: 8px 10px;
    border-radius: 999px;
}

.dropdown-toggle:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border: 1px solid var(--border-color);
    min-width: 200px;
    padding: 10px 0;
    margin-top: 6px; /* Visual gap */
    z-index: 1000;
    transform: translateY(0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

/* Pseudo-element bridge to prevent closing when crossing the gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px; /* Bridge the gap */
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
}

.navbar-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
        gap: 0;
        z-index: 1002; /* Ensure button is on top of everything */
        position: relative; /* Needed for z-index */
        padding: 8px;
    }

    /* On mobile: hide desktop search, show mobile search */
    .navbar-actions .search-toggle {
        display: none !important;
    }

    .mobile-search-icon {
        display: inline-flex !important;
    }

    /* Ensure mobile controls have proper flex layout */
    .navbar-mobile-controls {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .navbar-toggle span {
        width: 22px;
        height: 2px;
        margin: 4px 0;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .navbar-menu {
        gap: 10px;
        position: absolute;
        top: calc(100% + 10px);
        left: 12px;
        right: 12px;
        background-color: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        z-index: 1001; /* Ensure on top */

        /* Animated collapse */
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: max-height 220ms ease, opacity 160ms ease, transform 160ms ease;
    }
    
    .navbar-menu.active {
        max-height: calc(100vh - var(--nav-height) - 24px);
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;

        /* Allow scrolling when the menu content is tall */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 12px;
        justify-content: flex-start;
    }

    .navbar-primary,
    .navbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-icon .nav-text {
        display: inline;
    }

    .navbar-actions .nav-link.btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        background-color: var(--light-bg);
        box-shadow: none;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 6px 0;
        margin-top: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #64748b;
    color: #ffffff;
}

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

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

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-page {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-page:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.btn-vote {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--gray-text);
    font-size: 13px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-vote:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============ ALERTS ============ */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ============ TOAST (JS POPUP) ============ */
.toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    max-width: min(360px, calc(100vw - 32px));
}

.toast {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.toast:hover {
    border-color: rgba(255, 255, 255, 0.26);
}

.toast-title {
    font-weight: 800;
    font-size: 14px;
    margin: 0;
}

.toast-body {
    margin: 6px 0 0 0;
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .toast-stack {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-dismissible {
    justify-content: space-between;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============ JOB CHAT (Jobs module) ============ */
.job-chat-shell {
    max-width: 1100px;
    margin: 90px auto 40px auto;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

/* ============ BUSINESS TOOLS (Owners/Admin) ============ */
.page-business-tools {
    background: var(--admin-bg-color);
}

.page-business-tools .main-content {
    background: transparent;
    padding-top: 86px;
    padding-bottom: 40px;
}

.page-business-tools .page-header {
    margin-top: 8px;
    padding: 18px 18px;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.92));
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
}

.page-business-tools .page-header h1,
.page-business-tools .page-header p {
    color: #ffffff;
}

.page-business-tools .page-header h1 {
    font-weight: 900;
}

.page-business-tools .page-header p {
    opacity: 0.92;
}

.page-business-tools .page-header i {
    color: #ffffff;
}

.page-business-tools .tools-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    margin-top: 22px;
    align-items: start;
}

.page-business-tools .tools-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: calc(var(--nav-height) + 16px);
}

.page-business-tools .sidebar-section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-business-tools .sidebar-section h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-business-tools .businesses-list-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-business-tools .business-item-compact {
    position: relative;
    padding: 12px 12px 12px 56px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-business-tools .business-item-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}

.page-business-tools .business-item-compact.active {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.page-business-tools .business-item-compact__avatar {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-bg);
    border: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
}

.page-business-tools .business-item-compact__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-business-tools .business-item-compact .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

.page-business-tools .business-item-compact .item-header strong {
    flex: 1;
    min-width: 0;
    color: var(--dark-text);
    word-break: break-word;
}

.page-business-tools .business-item-compact .status-badge {
    flex: 0 0 auto;
}

.page-business-tools .business-item-compact strong {
    font-size: 13px;
    line-height: 1.2;
}

.page-business-tools .business-item-compact small {
    display: block;
    color: var(--gray-text);
    font-size: 12px;
}

.page-business-tools .business-item-compact .biz-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.page-business-tools .business-item-compact .biz-location i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
}

.page-business-tools .owner-info {
    margin-top: 4px;
    opacity: 0.85;
}

.page-business-tools .tools-sidebar .stats-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.page-business-tools .tools-sidebar .stat {
    padding: 12px;
    background: var(--light-bg);
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.page-business-tools .tools-sidebar .stat .value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.page-business-tools .tools-sidebar .stat .label {
    display: block;
    font-size: 11px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.page-business-tools .tools-main {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-business-tools .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.page-business-tools .header-content h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--dark-text);
}

.page-business-tools .business-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-text);
}

.page-business-tools .business-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.page-business-tools .header-logo {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--light-bg);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.page-business-tools .header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-business-tools .tabs-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 14px 0;
}

.page-business-tools .tab-btn {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-text);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.page-business-tools .tab-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    color: var(--dark-text);
}

.page-business-tools .tab-btn.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--primary-color);
}

.page-business-tools .tab-content {
    display: none;
}

.page-business-tools .tab-content.active {
    display: block;
}

.page-business-tools .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.page-business-tools .info-card {
    background: rgba(15, 23, 42, 0.03);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.page-business-tools .info-card h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-business-tools .rating-value {
    font-size: 30px;
    font-weight: 900;
    color: var(--dark-text);
}

.page-business-tools .rating-stars {
    color: #f59e0b;
}

.page-business-tools .rating-stars i.empty {
    color: rgba(148, 163, 184, 0.55);
}

.page-business-tools .stat-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-color);
    margin: 10px 0 6px 0;
}

.page-business-tools .stat-pending {
    color: #b45309;
    font-size: 12px;
    margin-top: 6px;
}

.page-business-tools .business-description,
.page-business-tools .business-contact {
    background: rgba(15, 23, 42, 0.03);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    margin-bottom: 12px;
}

.page-business-tools .business-description h4,
.page-business-tools .business-contact h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-business-tools .contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.page-business-tools .contact-items > div {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.page-business-tools .contact-items i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.page-business-tools .analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.page-business-tools .chart-card,
.page-business-tools .analytics-grid .stats-card {
    background: rgba(15, 23, 42, 0.03);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.page-business-tools .chart-card h4,
.page-business-tools .analytics-grid .stats-card h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-text);
}

.page-business-tools .rating-bar {
    height: 14px;
    background: rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    overflow: hidden;
}

.page-business-tools .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
}

.page-business-tools .reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-business-tools .review-item {
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.page-business-tools .review-item h5 {
    margin: 8px 0 6px 0;
}

.page-business-tools .review-rating i {
    color: #f59e0b;
}

.page-business-tools .review-rating i.empty {
    color: rgba(148, 163, 184, 0.55);
}

.page-business-tools .admin-controls {
    display: grid;
    gap: 12px;
}

.page-business-tools .control-section {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 14px;
}

.page-business-tools .control-section h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-text);
}

.page-business-tools .inline-form {
    display: inline;
}

.page-business-tools .status-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(15, 23, 42, 0.04);
    color: var(--gray-text);
    white-space: nowrap;
}

.page-business-tools .status-badge.status-pending { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.page-business-tools .status-badge.status-active { background: #dcfce7; color: #166534; border-color: #86efac; }
.page-business-tools .status-badge.status-inactive { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.page-business-tools .status-badge.status-approved { background: #dcfce7; color: #166534; border-color: #86efac; }
.page-business-tools .status-badge.status-rejected { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

.page-business-tools .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(15, 23, 42, 0.04);
}

.page-business-tools .badge-success { background: #dcfce7; color: #166534; border-color: #86efac; }
.page-business-tools .badge-warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }

.page-business-tools .no-data {
    text-align: center;
    padding: 14px 10px;
    color: var(--gray-text);
}

.page-business-tools .form-row {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 900px) {
    .page-business-tools .tools-layout {
        grid-template-columns: 1fr;
    }

    .page-business-tools .tools-sidebar {
        position: static;
    }

    .page-business-tools .detail-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .page-business-tools .main-content {
        padding-top: 74px;
        padding-bottom: 28px;
    }

    .page-business-tools .page-header {
        padding: 14px;
        border-radius: 14px;
    }

    .page-business-tools .tools-main {
        padding: 14px;
        border-radius: 14px;
    }

    /* Sidebar: compact cards and easy scrolling */
    .page-business-tools .sidebar-section {
        padding: 14px;
        border-radius: 14px;
    }

    .page-business-tools .businesses-list-compact {
        gap: 8px;
    }

    /* Tabs: single-row scroll for mobile */
    .page-business-tools .tabs-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }

    .page-business-tools .tabs-navigation::-webkit-scrollbar {
        height: 6px;
    }

    .page-business-tools .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Remove two buttons on mobile: Analytics + Reviews */
    .page-business-tools .tab-btn[data-tab="analytics"],
    .page-business-tools .tab-btn[data-tab="reviews"] {
        display: none;
    }

    .page-business-tools .business-meta {
        gap: 8px;
    }

    .page-business-tools .business-meta > span {
        font-size: 12px;
        padding: 6px 10px;
    }

    .page-business-tools .header-logo {
        width: 74px;
        height: 74px;
    }
}

.job-chat-header {
    background: #9a3412;
    color: #fff;
    padding: 18px 22px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.job-chat-title {
    font-weight: 800;
    font-size: 1.05rem;
}

.job-chat-subtitle {
    opacity: 0.9;
    margin-top: 4px;
}

.job-chat-header__right {
    display: flex;
    gap: 10px;
}

.job-chat-back {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.job-chat-back:hover {
    background: rgba(255,255,255,0.26);
    color: #fff;
}

.job-chat-messages {
    flex: 1;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-chat-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.job-chat-message.own {
    align-items: flex-end;
}

.job-chat-bubble {
    max-width: 70%;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 10px 12px;
    border-radius: 14px;
}

.job-chat-message.own .job-chat-bubble {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.25);
}

.job-chat-text {
    font-size: 0.9rem;
    color: var(--dark-text);
    white-space: pre-wrap;
}

.job-chat-meta {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-top: 4px;
}

.job-chat-input {
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    padding: 12px;
}

.job-chat-form {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .job-chat-shell {
        margin: 80px auto 24px auto;
        height: calc(100vh - 120px);
    }

    .job-chat-bubble {
        max-width: 92%;
    }
}

.form-group-inline label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group-inline label input {
    margin: 0;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ============ STAR RATING ============ */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    margin: 0;
    font-size: 32px;
    cursor: pointer;
    color: #ddd;
    transition: var(--transition);
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #fbbf24;
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* ============ FORUM ============ */
.forum-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 18px;
}

.forum-title {
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-subtitle {
    margin-top: 6px;
    color: var(--gray-text);
    font-weight: 500;
}

.forum-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-section {
    margin-top: 18px;
}

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

.forum-section-header h2 {
    font-size: 18px;
    font-weight: 800;
}

.forum-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.forum-category-card {
    display: block;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.forum-category-name {
    font-weight: 900;
    margin-bottom: 6px;
}

.forum-category-meta {
    color: var(--gray-text);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.forum-category-desc {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.5;
}

.forum-post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.forum-post-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.forum-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.forum-post-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.forum-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.forum-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary-color);
    font-weight: 800;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.forum-muted {
    color: var(--gray-text);
    font-weight: 700;
}

.forum-post-stats {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--gray-text);
    font-weight: 800;
    white-space: nowrap;
}

.forum-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.forum-empty {
    background: var(--light-bg);
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 14px;
    padding: 18px;
    color: var(--gray-text);
    font-weight: 700;
}

.forum-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 14px 0;
    font-weight: 800;
}

.forum-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.forum-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.forum-filter {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 12px;
}

/* TinyMCE base styling */
.tox.tox-tinymce {
    border-radius: 12px;
    border-color: rgba(226, 232, 240, 0.95) !important;
}

/* Quill editor (used for business tools rich text) */
.quill-wrap {
    display: block;
}

/* Quill: make text larger + editor easier to click/tap */
.quill-wrap .ql-container.ql-snow {
    font-size: 16px;
}

.quill-wrap .ql-editor {
    font-size: 16px;
    line-height: 1.65;
    padding: 14px 14px;
}

.quill-wrap .ql-editor p,
.quill-wrap .ql-editor li {
    margin: 0 0 0.6em 0;
}

.quill-wrap .ql-toolbar.ql-snow {
    padding: 10px 10px;
}

.quill-wrap .ql-toolbar.ql-snow .ql-formats {
    margin-right: 10px;
}

.quill-wrap .ql-toolbar.ql-snow button {
    width: 34px;
    height: 34px;
    padding: 6px;
}

.quill-wrap .ql-toolbar.ql-snow .ql-picker {
    font-size: 14px;
}

.quill-wrap .ql-toolbar.ql-snow .ql-picker-label {
    padding: 6px 10px;
}

.quill-wrap .ql-toolbar.ql-snow {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-color: rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.9);
}

.quill-wrap .ql-container.ql-snow {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-color: rgba(226, 232, 240, 0.95);
    min-height: 150px;
}

@media (max-width: 640px) {
    .quill-wrap .ql-container.ql-snow {
        min-height: 120px;
    }

    .quill-wrap .ql-container.ql-snow,
    .quill-wrap .ql-editor {
        font-size: 16px;
    }

    .quill-wrap .ql-toolbar.ql-snow button {
        width: 38px;
        height: 38px;
    }
}

.forum-post-view {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.forum-post-view-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-post-view-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.forum-post-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Smaller buttons inside forum post view (keeps global buttons unchanged) */
.forum-post-view .btn,
.forum-post-view .nav-link,
.forum-comments .btn {
    padding: 8px 12px;
    font-size: 13px;
}

.forum-post-view .btn {
    border-radius: 10px;
}

.forum-post-view .btn i,
.forum-comments .btn i {
    font-size: 0.95em;
}

.forum-post-body {
    margin-top: 16px;
    line-height: 1.75;
    font-size: 15px;
}

.forum-post-body h1,
.forum-post-body h2,
.forum-post-body h3 {
    margin: 12px 0 10px 0;
    line-height: 1.25;
}

.forum-post-body p {
    margin: 10px 0;
}

.forum-post-body blockquote {
    border-left: 4px solid rgba(37, 99, 235, 0.35);
    padding-left: 12px;
    color: var(--gray-text);
    font-weight: 600;
    margin: 12px 0;
}

.forum-post-body pre {
    background: #0b1220;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    overflow-x: auto;
}

.forum-post-body a {
    color: var(--primary-color);
}

.forum-attachments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.forum-attachment {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: var(--light-bg);
}

.forum-attachment img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.forum-attachment video {
    width: 100%;
    height: 180px;
    display: block;
    background: #000;
}

.forum-attachment-manage {
    position: relative;
    cursor: pointer;
    display: block;
}

.forum-attachment-manage input {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 18px;
    height: 18px;
    z-index: 2;
}

.forum-attachment-remove {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
}

.forum-form-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.forum-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.forum-editor {
    background: #fff;
    border-radius: 12px;
}

.forum-editor .ql-container {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    min-height: 320px;
}

.forum-editor .ql-toolbar {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.forum-editor-lite {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    overflow: hidden;
}

.forum-editor-lite-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.forum-editor-lite-toolbar .btn {
    padding: 8px 10px;
    line-height: 1;
}

.forum-editor-lite-area {
    min-height: 320px;
    padding: 12px;
    outline: none;
}

textarea#body_text.form-control {
    min-height: 320px;
}

.forum-attachments-upload {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 14px;
}

.forum-attachments-upload label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    margin-bottom: 10px;
}

.forum-attachments-upload label i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.forum-attachments-upload .form-control[type="file"] {
    background: #fff;
}

.forum-attachments-upload .forum-muted {
    font-weight: 600;
}

.forum-post-thumb {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.9);
}

.forum-post-excerpt {
    margin-top: 8px;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

.forum-comments {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.forum-comment-form {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 14px;
}

.forum-comment-form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.forum-comment-list {
    margin-top: 14px;
}

.forum-comments-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-comment {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 12px;
    margin-top: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

/* Reply thread cue: subtle left rail for nested comments */
.forum-comment[style*="margin-left"] {
    border-left: 3px solid rgba(37, 99, 235, 0.18);
}

.forum-comment-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.forum-comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.forum-action-menu {
    position: relative;
    flex: 0 0 auto;
}

.forum-action-trigger {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.forum-action-trigger:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--primary-color);
}

.forum-action-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    display: none;
    z-index: 20;
}

.forum-action-menu.open .forum-action-dropdown {
    display: block;
}

.forum-action-dropdown form {
    margin: 0;
}

.forum-action-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    background: transparent;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.forum-action-item:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary-color);
}

.forum-action-item.danger {
    color: #ef4444;
}

.forum-action-item.danger:hover {
    background: rgba(239, 68, 68, 0.10);
    color: #ef4444;
}

.forum-comment-body {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.forum-comment-body p {
    margin: 8px 0;
}

.forum-comment-body a {
    color: var(--primary-color);
}

.forum-comment-body blockquote {
    border-left: 3px solid rgba(37, 99, 235, 0.25);
    padding-left: 10px;
    color: var(--gray-text);
    font-weight: 600;
    margin: 10px 0;
}

.forum-comment-body pre {
    background: #0b1220;
    color: #e2e8f0;
    padding: 10px;
    border-radius: 12px;
    overflow-x: auto;
    margin-top: 10px;
}

.forum-comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.forum-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
}

.forum-like-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    font-weight: 900;
    line-height: 1.4;
    font-size: 12px;
}

.forum-like-btn.is-liked {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--primary-color);
}

.forum-comment-actions .btn {
    padding: 8px 10px;
    line-height: 1;
}

@media (max-width: 640px) {
    .forum-post-card {
        align-items: flex-start;
    }

    .forum-post-thumb {
        width: 64px;
        height: 64px;
    }

    .forum-comment {
        padding: 12px;
    }
}

@media (max-width: 900px) {
    .forum-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .forum-attachments {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .forum-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-category-header {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-categories {
        grid-template-columns: 1fr;
    }

    .forum-attachments {
        grid-template-columns: 1fr;
    }

    .forum-attachment img,
    .forum-attachment video {
        height: 220px;
    }
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.hero-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.hero-search button {
    padding: 15px 30px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-search {
        flex-direction: column;
    }
}

/* ============ STATS SECTION ============ */
.stats-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--gray-text);
    font-size: 16px;
    margin-top: 10px;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    flex-grow: 1;
    padding: 40px 0;
}

.admin-content {
    background-color: var(--admin-bg-color);
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: var(--gray-text);
}

/* ============ BUSINESSES GRID ============ */
.search-filters {
    margin-bottom: 40px;
}

/* Page-scoped tweaks for Businesses listing */
.page-businesses .business-card > a {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}



.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
    gap: 15px;
}

/* Collapsible Businesses Filters (click to show) */
.businesses-filters-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 28px;
}

.businesses-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.businesses-filters-toggle {
    appearance: none;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--dark-text);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.businesses-filters-toggle:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.businesses-clear {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 600;
}

.businesses-clear:hover {
    color: var(--primary-color);
}

.businesses-filters-body {
    display: none;
    margin-top: 12px;
}

.businesses-filters-card.is-open .businesses-filters-body {
    display: block;
}

.businesses-filters-body .search-filters {
    margin-bottom: 0;
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.business-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-bg);
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #cbd5e1;
    background-color: var(--light-bg);
}

.badge-featured,
.badge-verified {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fbbf24;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.badge-verified-large {
    background-color: var(--success-color);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.category {
    color: var(--gray-text);
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
    font-size: 14px;
}

.stars i {
    color: #fbbf24;
}

.rating-value {
    font-weight: 600;
    color: var(--dark-text);
}

.review-count {
    color: var(--gray-text);
    font-size: 12px;
}

.location {
    color: var(--gray-text);
    font-size: 13px;
    margin-top: auto;
}

.location i {
    margin-right: 5px;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-info {
    color: var(--gray-text);
    font-size: 14px;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.empty-state p {
    color: var(--gray-text);
}

/* ============ AUTH PAGES ============ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 0;
}

.auth-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 400px;
    width: 100%;
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-card .subtitle {
    color: var(--gray-text);
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.login-prompt {
    text-align: center;
    color: var(--gray-text);
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 6px;
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* ============ BUSINESS DETAILS ============ */
.business-theme {
    --biz-primary: var(--primary-color);
    --biz-accent: var(--primary-color);
}

.business-theme .business-header {
    border-top: 4px solid var(--biz-primary);
}

.business-theme .business-header-image {
    position: relative;
}

.business-theme .business-header-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
}

@supports (background: color-mix(in srgb, red 10%, white)) {
    .business-theme .business-header-image::after {
        background: linear-gradient(
            135deg,
            color-mix(in srgb, var(--biz-primary) 18%, transparent) 0%,
            rgba(0,0,0,0.35) 100%
        );
    }
}

.business-header {
    background: #ffffff;
    border-radius: 16px;
    overflow: visible;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.business-header-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--light-bg);
    position: relative;
    border-radius: 16px 16px 0 0;
}

.business-header-image img,
.placeholder-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #cbd5e1;
}

.business-header-content {
    padding: 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: start;
}

.business-logo {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
    flex-shrink: 0;
    margin-top: -90px;
    border: 4px solid rgba(255, 255, 255, 0.98);
}

.business-logo img,
.placeholder-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #cbd5e1;
}

.business-info-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-featured-large {
    background-color: #fbbf24;
    color: #111827;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.business-theme .badge-featured-large {
    background-color: color-mix(in srgb, var(--biz-primary) 14%, #fbbf24);
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.business-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: var(--gray-text);
    font-weight: 600;
    font-size: 14px;
}

.business-meta-row .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.business-meta-row i {
    color: var(--primary-color);
}

.business-theme .business-meta-row i {
    color: var(--biz-primary);
}

.stars-large {
    display: flex;
    gap: 3px;
    font-size: 20px;
}

.stars-large i {
    color: #fbbf24;
}

.rating-value-large {
    font-weight: 700;
    font-size: 18px;
}

.review-count-large {
    color: var(--gray-text);
    font-size: 14px;
}

.category-badge {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.business-theme .category-badge {
    color: var(--biz-primary);
    border: 1px solid color-mix(in srgb, var(--biz-primary) 25%, transparent);
}

.business-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.business-contact .btn {
    justify-content: center;
}

/* Indeed-style company tabs */
.company-tabs {
    position: sticky;
    top: calc(var(--nav-height) + 8px);
    z-index: 900;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 8px;
    margin: -18px 0 22px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.company-tabs-brand {
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 800;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.company-tabs-brand:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.10);
}

.company-tabs-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.company-tabs-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-tabs-brand-name {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-tabs-links {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* Business detail: promote tabs to main header (desktop) */
@media (min-width: 769px) {
    body.biz-promote-tabs .navbar {
        opacity: 0;
        transform: translateY(-110%);
        pointer-events: none;
    }

    body.biz-promote-tabs .company-tabs {
        top: 0;
        z-index: 1001;

        /* Match default header styling */
        background: var(--nav-bg);
        border: none;
        border-bottom: 1px solid var(--nav-border);
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        border-radius: 0;
        padding: 10px 20px;
        margin-top: 0;
        margin-bottom: 22px;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    body.biz-promote-tabs .company-tabs-links {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        justify-content: center;
        flex: 0 1 auto;
    }

    body.biz-promote-tabs .company-tabs-brand {
        display: inline-flex;
    }

    body.biz-promote-tabs .company-tabs-brand-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .company-tabs-links {
        width: 100%;
    }
}

.company-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 13px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.company-tab:hover {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary-color);
}

.company-tab.active {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary-color);
}

.business-theme .company-tab:hover {
    border-color: color-mix(in srgb, var(--biz-primary) 25%, transparent);
    background: color-mix(in srgb, var(--biz-primary) 8%, white);
    color: var(--biz-primary);
}

.business-theme .company-tab.active {
    border-color: color-mix(in srgb, var(--biz-primary) 35%, transparent);
    background: color-mix(in srgb, var(--biz-primary) 12%, white);
    color: var(--biz-primary);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
}

.business-theme .tab-count {
    background: color-mix(in srgb, var(--biz-primary) 12%, white);
    color: var(--biz-primary);
}

/* Offset anchors for sticky navbar + tabs */
#snapshot,
#whyJoinUs,
#reviews,
#salaries,
#jobs,
#qa,
#interviews {
    scroll-margin-top: calc(var(--nav-height) + 90px);
}

.company-jobs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.company-job {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    transition: var(--transition);
}

.company-job:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.company-job-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.company-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--gray-text);
    font-weight: 600;
    font-size: 13px;
}

.company-job-meta i {
    margin-right: 6px;
}

/* Business sub-pages */
.biz-richtext {
    color: var(--dark-text);
    line-height: 1.75;
}

.biz-richtext p {
    margin: 10px 0;
}

.biz-richtext ul,
.biz-richtext ol {
    padding-left: 18px;
    margin: 10px 0;
}

.biz-richtext blockquote {
    border-left: 3px solid rgba(37, 99, 235, 0.25);
    padding-left: 12px;
    margin: 12px 0;
    color: var(--gray-text);
    font-weight: 600;
}

.biz-hours {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.biz-hours td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    font-size: 14px;
}

.biz-hours tr:last-child td {
    border-bottom: none;
}

.biz-hours td:first-child {
    font-weight: 800;
    color: var(--dark-text);
    width: 45%;
}

.biz-hours td:last-child {
    color: var(--gray-text);
    font-weight: 700;
}

.biz-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.biz-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.biz-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.biz-product-img {
    height: 160px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.biz-product-body {
    padding: 12px;
}

.biz-product-title {
    font-weight: 800;
    margin: 0 0 8px 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.biz-product-price {
    font-weight: 900;
    color: #10b981;
    margin-bottom: 8px;
}

.biz-product-stock {
    color: var(--gray-text);
    font-weight: 700;
    font-size: 12px;
}

.business-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.business-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.business-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    color: var(--gray-text);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-item .value {
    color: var(--dark-text);
    font-size: 16px;
}

.star-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    gap: 15px;
    align-items: center;
}

.stars-small {
    display: flex;
    gap: 2px;
    font-size: 12px;
}

.stars-small i {
    color: #fbbf24;
}

.progress-bar {
    height: 8px;
    background-color: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #fbbf24;
    transition: width 0.3s ease;
}

.business-theme .progress-fill {
    background-color: var(--biz-primary);
}

.breakdown-row .count {
    text-align: right;
    color: var(--gray-text);
    font-size: 14px;
}

/* ============ REVIEW FORM ============ */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-form .form-group label {
    font-weight: 600;
}

@media (max-width: 1024px) {
    .business-details-grid {
        grid-template-columns: 1fr;
    }
    
    .business-header-content {
        grid-template-columns: 1fr;
    }
    
    .business-contact {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .business-header-content {
        padding: 20px;
    }

    .business-logo {
        width: 120px;
        height: 120px;
        margin-top: -70px;
        border-radius: 14px;
    }
    
    .business-info-header h1 {
        font-size: 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ REVIEWS SECTION ============ */
.reviews-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.reviews-section h2 {
    font-size: 22px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

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

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

.reviewer-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.stars-review {
    display: flex;
    gap: 2px;
    font-size: 13px;
    margin-bottom: 5px;
}

.stars-review i {
    color: #fbbf24;
}

.review-date {
    color: var(--gray-text);
    font-size: 13px;
}

.review-title {
    font-size: 16px;
    margin: 10px 0;
    color: var(--dark-text);
}

.review-text {
    color: var(--dark-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-footer {
    display: flex;
    gap: 10px;
}

.vote-form {
    display: flex;
    gap: 10px;
}

/* ============ FEATURED SECTION ============ */
.featured-section,
.top-rated-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-section h2,
.top-rated-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 60px 0;
    text-align: left;
}

/* Home page CTA: use a distinct palette */
.cta-section-home {
    background: linear-gradient(135deg, #f97316 0%, #7c2d12 100%);
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 44px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.cta-text {
    flex: 1;
    min-width: 0;
}

.cta-text h2 {
    line-height: 1.15;
}

.cta-text p {
    max-width: 52ch;
}

.cta-media {
    flex: 0 0 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-media img {
    width: 100%;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}

.cta-section .cta-buttons {
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .cta-section {
        text-align: center;
    }

    .cta-card {
        flex-direction: column-reverse;
        padding: 30px 22px;
        gap: 22px;
    }

    .cta-section .cta-buttons {
        justify-content: center;
    }

    .cta-media {
        flex: 0 0 auto;
    }

    .cta-text p {
        max-width: none;
    }
}

/* ============ FOOTER ============ */
.footer {
    background-color: #1f2937;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section p {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #d1d5db;
    font-size: 14px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .businesses-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .business-card {
        min-height: auto;
    }
    
    .card-image {
        height: 150px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-content h3 {
        font-size: 15px;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }

    /* Businesses: prioritize readability over tiny columns */
    .page-businesses .businesses-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    
    .auth-card {
        padding: 30px 20px;
    }
    
    .business-section {
        padding: 20px;
    }
    
    .review-form .form-group {
        margin-bottom: 15px;
    }
    
    .stats-grid {
        gap: 20px;
    }

    .admin-content .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============ UTILITY CLASSES ============ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-text);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.rounded {
    border-radius: 6px;
}

.shadow {
    box-shadow: var(--shadow);
}
/* ============ PRODUCTS GRID ============ */
.products-category-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.products-category-section:nth-child(even) {
    background-color: var(--light-bg);
}

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

.section-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-subtitle {
    margin: 8px 0 0 0;
    color: var(--gray-text);
    font-size: 0.95rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    width: 100%;
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

/* Product Card */
.product-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow);
}

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

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 1px solid #e5e7eb;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    padding: 10px;
    width: auto;
    height: auto;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--gray-text);
    font-size: 2.5rem;
}

/* Badges */
.badge {
    position: absolute;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.badge-featured {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-featured i {
    font-size: 0.7rem;
}

.badge-discount {
    top: 12px;
    right: 12px;
    background-color: var(--danger-color);
}

.badge-stock {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    font-size: 0.85rem;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-text);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
}

.product-rating .stars i {
    font-size: 0.85rem;
    color: #f59e0b;
}

.product-rating .stars .far {
    color: var(--border-color);
}

.rating-value {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.review-count {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.product-price {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-original {
    text-decoration: line-through;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-stats {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.product-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-text);
}

.product-stats .stat i {
    color: var(--primary-color);
}

/* Empty State */
.empty-products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h2 {
    color: var(--dark-text);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray-text);
    font-size: 1.05rem;
}

/* CTA Section Updates */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1833a0;
}

/* Detail Header */
.detail-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
}

.header-content .subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Detail Card */
.detail-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.card-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Business Image */
.business-image-container {
    width: 100%;
    height: 300px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-large {
    text-align: center;
    color: #9ca3af;
}

.placeholder-large i {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
}

.placeholder-large p {
    margin: 0;
    font-size: 14px;
}

/* Info Group */
.info-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.info-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.info-value {
    color: #1f2937;
    font-weight: 600;
    max-width: 60%;
    text-align: right;
}

.info-value a {
    color: #2563eb;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Status Section */
.status-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-badge-wrapper {
    display: flex;
    justify-content: center;
}

.badge-lg {
    padding: 12px 24px !important;
    font-size: 14px !important;
}

.status-info {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
}

.status-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #1f2937;
}

.text-success {
    color: #22c55e !important;
}

.text-danger {
    color: #ef4444 !important;
}

.action-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Stats Grid */
.admin-content .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.stat-value.text-sm {
    font-size: 14px;
}

.rating-number {
    display: block;
    margin-bottom: 8px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    font-size: 14px;
    color: #fbbf24;
}

/* Seller Card */
.seller-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    border-color: #2563eb;
}

.seller-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #1f2937;
}

/* Description */
.description-text {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

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

.review-item {
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

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

.review-header h4 {
    margin: 0;
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.review-rating i {
    color: #fbbf24;
}

.rating-value {
    color: #6b7280;
    font-weight: 600;
}

.review-title {
    margin: 8px 0;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.review-text {
    margin: 8px 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

.review-date {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-content .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-header {
        padding: 24px;
    }
    
    .detail-header h1 {
        font-size: 24px;
    }
}

.admin-content .btn-block {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
}

.transition {
    transition: var(--transition);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1833a0;
}

/* ============ PAGE HEADER ============ */
.page-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header h1 i {
    color: var(--primary-color);
}

.page-header .subtitle {
    color: var(--gray-text);
    font-size: 1.1rem;
}

/* ============ CONTENT SECTION ============ */
.content-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* ============ POLICY PAGES (Privacy Policy, Terms of Service) ============ */
.policy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section h3 {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
}

.policy-section p {
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 15px;
}

.policy-section ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.policy-section li {
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 8px;
}

.policy-section li strong {
    color: var(--dark-text);
}

/* ============ FAQ PAGE ============ */
.faq-categories {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.faq-categories h3 {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--gray-text);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.category-list a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.category-list a i {
    font-size: 0.8rem;
}

.faq-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h3,
.faq-item h4 {
    color: var(--dark-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item h3 i,
.faq-item h4 i {
    color: var(--primary-color);
}

.faq-item p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 10px;
}

.faq-item ul {
    margin-left: 25px;
    margin-top: 10px;
}

.faq-item li {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 8px;
}

.faq-item li strong {
    color: var(--dark-text);
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: underline;
}

.faq-footer {
    margin-top: 40px;
}

/* ============ CONTACT SUPPORT PAGE ============ */
.support-info {
    padding: 10px 0;
}

.support-info h4 {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-info h4 i {
    color: var(--primary-color);
}

.support-info p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 10px;
}

.support-info a {
    color: var(--primary-color);
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--gray-text);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.quick-links a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.quick-links a i {
    font-size: 0.8rem;
}

/* ============ JOIN US PAGE ============ */
.join-options {
    margin: 40px 0;
}

.join-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

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

.join-card.featured {
    border-color: var(--success-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.join-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.join-card.featured .join-icon {
    color: var(--success-color);
}

.join-card h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.join-description {
    color: var(--gray-text);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.join-features {
    text-align: left;
    margin: 25px 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.join-features h4 {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.join-features ul {
    list-style: none;
    padding: 0;
}

.join-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-text);
}

.join-features li i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.join-price {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    color: white;
}

.join-card.featured .join-price {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.join-price .price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.join-price .price-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.comparison-section {
    margin: 60px 0;
}

.comparison-section h2 {
    margin-bottom: 30px;
    color: var(--dark-text);
}

.comparison-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table thead {
    background: var(--primary-color);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background-color: var(--light-bg);
}

.comparison-table i.fa-check {
    color: var(--success-color);
    font-size: 1.2rem;
}

.comparison-table i.fa-times {
    color: var(--danger-color);
    font-size: 1.2rem;
}

.join-faq {
    margin: 60px 0;
}

.join-faq h2 {
    margin-bottom: 30px;
    color: var(--dark-text);
}

.join-cta {
    margin: 60px 0;
}

.join-cta h2 {
    color: var(--dark-text);
    margin-bottom: 15px;
}

.join-cta p {
    color: var(--gray-text);
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1rem;
}

/* ============ CONTACT US PAGE ============ */
.contact-info {
    padding: 10px 0;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray-text);
    line-height: 1.6;
    margin: 0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.social-link.facebook {
    background-color: #1877f2;
    color: white;
}

.social-link.twitter {
    background-color: #1da1f2;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-link.linkedin {
    background-color: #0077b5;
    color: white;
}

.social-link:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.map-section {
    margin: 60px 0;
}

.map-section h2 {
    margin-bottom: 30px;
    color: var(--dark-text);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    background: var(--light-bg);
    padding: 100px;
    text-align: center;
    color: var(--gray-text);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ============ RESPONSIVE DESIGN FOR NEW PAGES ============ */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .faq-categories {
        position: static;
        margin-bottom: 20px;
    }
    
    .join-card {
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 5px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .map-placeholder {
        padding: 50px 20px;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
}

/* ============ MY BUSINESSES PAGE ============ */
.page-header.page-header-split {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.inline-form {
    display: inline;
}

/* ============ SELLER PRODUCTS THUMBNAILS ============ */
.seller-product-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    display: block;
}

.seller-product-thumb-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px dashed var(--border-color);
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
}

.page-header.page-header-split h1 {
    justify-content: flex-start;
    margin: 0;
}

.businesses-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.business-list-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 100px 1fr 150px auto;
    gap: 20px;
    align-items: center;
}

.business-list-item:hover {
    box-shadow: var(--shadow-lg);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
}

.item-image img,
.item-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content h3 {
    font-size: 18px;
    margin: 0 0 6px 0;
    color: var(--dark-text);
}

.item-content .category {
    color: var(--gray-text);
    font-size: 13px;
    margin: 0 0 8px 0;
}

.item-content .location {
    color: var(--gray-text);
    font-size: 13px;
    margin: 0;
}

.item-stats {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.item-stats .stat {
    text-align: center;
    min-width: 60px;
}

.item-stats .value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.item-stats .label {
    display: block;
    font-size: 12px;
    color: var(--gray-text);
}

.item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.item-actions .btn,
.item-actions button.btn {
    justify-content: center;
}

/* Modal (used by register business form) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.55);
}

.modal-content {
    background-color: #ffffff;
    margin: 60px auto;
    padding: 28px;
    border-radius: 14px;
    width: 100%;
    max-width: 650px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-content h2 {
    margin: 0 0 18px 0;
    color: var(--dark-text);
}

.close {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--dark-text);
}

@media (max-width: 768px) {
    .page-header.page-header-split {
        flex-direction: column;
        align-items: flex-start;
    }

    .business-list-item {
        grid-template-columns: 80px 1fr;
    }

    .item-stats,
    .item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .modal-content {
        margin: 20px auto;
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .page-header.page-header-split {
        align-items: center;
        text-align: center;
    }

    .page-header.page-header-split .btn {
        width: 100%;
    }

    .businesses-list {
        gap: 14px;
        margin-bottom: 24px;
    }

    .business-list-item {
        padding: 14px;
        gap: 14px;
        border-radius: 14px;
        grid-template-columns: 64px 1fr;
    }

    .item-image {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }

    .item-content h3 {
        font-size: 16px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .item-content .category,
    .item-content .location {
        font-size: 12px;
    }

    .item-stats {
        justify-content: flex-start;
        gap: 14px;
    }

    .item-stats .value {
        font-size: 16px;
    }

    .item-stats .label {
        font-size: 11px;
    }

    .item-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        justify-content: stretch;
    }

    .inline-form {
        display: block;
    }

    .item-actions .btn,
    .item-actions button.btn,
    .item-actions form {
        width: 100%;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        margin: 12px auto;
        max-height: calc(100vh - 24px);
        overflow: auto;
        position: relative;
        border-radius: 16px;
    }

    .modal-content .close {
        position: absolute;
        top: 12px;
        right: 12px;
        float: none;
    }

    .modal-content h2 {
        padding-right: 44px;
    }
}
/* ============ ADMIN STYLES ============ */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.admin-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.admin-section:hover {
    box-shadow: var(--shadow-lg);
}

.admin-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.admin-section h2 i {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 8px;
    border-radius: 8px;
    font-size: 18px;
}

.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background-color: var(--light-bg);
    color: var(--gray-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 16px;
    text-align: left;
}

.admin-table td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--dark-text);
}

.admin-table tr:hover td {
    background-color: #f8fafc;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}


/* ============ ADMIN BUSINESS CARDS ============ */
.business-card-admin {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.business-card-admin:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.business-card-admin .card-image {
    height: 160px;
    background-color: var(--light-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.business-card-admin .card-image .placeholder {
    font-size: 48px;
    color: var(--gray-text);
    opacity: 0.5;
}

.business-card-admin .card-badges {
    position: absolute;
    inset: 12px;
    pointer-events: none;
}

.business-card-admin .card-badges .badge {
    position: absolute;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Status: Bottom Left (match Verified size) */
.business-card-admin .card-badges .badge-active,
.business-card-admin .card-badges .badge-pending,
.business-card-admin .card-badges .badge-inactive {
    top: auto;
    right: auto;
    bottom: 4px;
    left: 4px;
    font-size: 10px;
    padding: 3px 6px;
    line-height: 1;
    border-radius: 4px;
}

/* Featured: Top Right */
.business-card-admin .card-badges .badge-featured {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
}

/* Verified: Bottom Right (or Top Right under featured if featured exists) */
/* Ideally Verified is Top Right, but if Featured exists, we need to handle overlap */
.business-card-admin .card-badges .badge-verified {
    top: auto;
    left: auto;
    bottom: 4px;
    right: 4px; /* Added some spacing from edge */
    font-size: 10px; /* Smaller font */
    padding: 3px 6px; /* Smaller padding */
    line-height: 1;
    border-radius: 4px;
}

.business-card-admin .card-content {
    padding: 20px;
    flex-grow: 1;
}

.business-card-admin .card-content h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: var(--dark-text);
}

.business-card-admin .owner-name {
    color: var(--gray-text);
    font-size: 13px;
    margin-bottom: 16px;
}

.business-card-admin .card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.business-card-admin .detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.business-card-admin .detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.business-card-admin .detail-item .label {
    color: var(--gray-text);
}

.business-card-admin .detail-item .value {
    color: var(--dark-text);
    font-weight: 500;
}

.business-card-admin .card-actions {
    padding: 16px 20px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 24px;
    margin: 0;
    color: var(--dark-text);
}

.stat-info p {
    margin: 4px 0 0 0;
    color: var(--gray-text);
    font-size: 14px;
}

.admin-filter-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.admin-filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-filter-form .filter-group {
    flex: 1;
    min-width: 200px;
}

/* Badge colors */
.badge-featured {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-verified {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-pending {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-active {
    background-color: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background-color: #f3f4f6;
    color: #374151;
}

/* ============ JOBS PAGE (MOBILE FIRST) ============ */
.jobs-container {
    padding: 16px 16px;
}

.jobs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.jobs-title {
    margin: 0 0 6px 0;
}

.jobs-subtitle {
    margin: 0;
    color: var(--gray-text);
}

.jobs-filters-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-top: 12px;
}

.jobs-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.jobs-filters-toggle {
    appearance: none;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--dark-text);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.jobs-filters-toggle:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.jobs-clear {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 600;
}

.jobs-clear:hover {
    color: var(--primary-color);
}

.jobs-filters-body {
    display: none;
}

.jobs-filters-card.is-open .jobs-filters-body {
    display: block;
}

.jobs-filter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: end;
}

.jobs-form-group {
    margin: 0;
}

.jobs-search-btn {
    width: 100%;
}

.jobs-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (max-width: 639px) {
    .jobs-header {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .jobs-header > div {
        width: 100%;
    }

    .jobs-title {
        margin-bottom: 4px;
    }
}

.jobs-empty {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 16px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.jobs-empty i {
    font-size: 2.5rem;
    color: var(--border-color);
}

.jobs-empty h2 {
    margin-top: 12px;
}

.jobs-empty p {
    color: var(--gray-text);
}

.jobs-job-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: var(--transition);
}

.jobs-job-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.job-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    line-height: 1.25;
}

.job-company {
    color: var(--gray-text);
    font-weight: 600;
    font-size: 14px;
}

.jobs-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.job-meta {
    margin-top: 10px;
    color: var(--gray-text);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
}

.job-meta i {
    margin-right: 6px;
}

.job-desc {
    margin: 12px 0 0 0;
    color: var(--gray-text);
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.job-time {
    color: var(--gray-text);
    font-size: 0.9rem;
}


.jobs-view-cta {
    pointer-events: none;
}

@media (min-width: 640px) {
    .jobs-container {
        padding: 32px 20px;
    }

    .jobs-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .jobs-search-btn {
        grid-column: 1 / -1;
        width: auto;
        justify-self: start;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .jobs-filters-bar {
        display: none;
    }

    .jobs-filters-body {
        display: block;
    }

    .jobs-filter-form {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    }

    .jobs-search-btn {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }

    .jobs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }

    .job-title {
        font-size: 18px;
    }
}

/* ============ MOBILE APP SHELL STYLES ============ */

/* Hide mobile-specific elements by default on desktop */
.mobile-nav {
    display: none;
}

/* Show search and other controls on desktop */
.navbar-mobile-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 3;
}

/* Hide mobile search icon on desktop (only on desktop) */
@media (min-width: 769px) {
    .mobile-search-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* --- Hide original footer on mobile --- */
    .footer {
        display: none !important;
    }

    /* --- Sticky bottom navigation --- */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--nav-bg, #fff);
        border-top: 1px solid var(--nav-border, #e2e8f0);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.07);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-around;
        z-index: 999;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        text-decoration: none;
        color: var(--gray-text);
        font-size: 11px;
        font-weight: 600;
        padding-top: 6px;
        transition: color 0.2s ease, transform 0.1s ease;
    }

    .mobile-nav-item:active {
        transform: scale(0.95);
    }

    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 4px;
        width: 28px;
        text-align: center;
    }

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

    /* --- Add padding to body to prevent overlap --- */
    body {
        padding-bottom: 60px; /* Same as .mobile-nav height */
    }

    /* --- Header mobile controls --- */
    .navbar-mobile-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 3; /* Push to the far right */
    }

    .mobile-search-icon {
        display: inline-flex;
        color: var(--dark-text);
        font-size: 18px;
        padding: 8px;
        border-radius: 8px;
        text-decoration: none;
        line-height: 1;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-search-icon:hover {
        background: rgba(15, 23, 42, 0.06);
    }
    
    /* Re-order controls */
    .navbar-brand { order: 1; }
    .navbar-menu { order: 2; }
    .navbar-mobile-controls { order: 3; }
    
    /* Ensure the container uses the full width for ordering */
    .navbar .container {
        justify-content: space-between;
    }
}

/* ============ SEARCH MODAL STYLES ============ */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

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

.search-modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    width: 90%;
    max-width: 700px;
    padding: 40px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-search-modal {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
}

.close-search-modal:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.close-search-modal:active {
    transform: translateY(-50%) scale(0.95);
}

/* Search Form Styles */
.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    padding-right: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.search-input:focus {
    border-color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-button {
    padding: 16px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-button:active {
    transform: translateY(0);
}

.search-button i {
    font-size: 18px;
}

/* Search Suggestions */
.search-suggestions {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.search-suggestions p {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.search-suggestions ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-suggestions li {
    margin: 0;
}

.search-suggestions a {
    display: inline-block;
    padding: 10px 16px;
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.search-suggestions a:hover {
    background: #e0e7ff;
    color: #1e40af;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.search-suggestions a:active {
    transform: translateY(0);
}

/* Search Results Loading State */
.search-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.search-loading.active {
    display: block;
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Mobile Responsive Search Modal */
@media (max-width: 768px) {
    .search-modal.active {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .search-modal-content {
        width: 95%;
        padding: 28px 20px;
        border-radius: 16px;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input {
        padding: 14px 16px;
        padding-right: 45px;
        font-size: 16px;
        width: 100%;
    }

    .close-search-modal {
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    }

    .search-button {
        padding: 14px 24px;
        width: 100%;
    }

    .search-suggestions ul {
        gap: 8px;
    }

    .search-suggestions a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Keyboard Navigation Enhancement */
.search-suggestions a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Search History (if implemented) */
.search-history {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.search-history h3 {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.search-history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-history-item {
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-history-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.search-history-item .remove-history {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.search-history-item .remove-history:hover {
    color: #ef4444;
}

/* Search Toggle Button Enhancements */
.search-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--dark-text, #1e293b);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 18px;
}

.search-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.search-toggle:active {
    transform: scale(0.95);
}

/* Optional: Keyboard shortcut tooltip */
.search-toggle::after {
    content: 'Ctrl+K';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 999;
}

.search-toggle:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -32px;
}

/* Adjust for macOS users */
@supports (-webkit-app-region: drag) {
    .search-toggle::after {
        content: '⌘K';
    }
}

/* ============ CHECKOUT PAGE MOBILE RESPONSIVE STYLES ============ */

/* Desktop layout - side by side */
@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1.5fr 0.8fr !important;
    }
}

/* Tablet and mobile - single column */
@media (max-width: 1023px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile optimizations - small screens */
@media (max-width: 768px) {
    main.main-content {
        padding-top: 80px !important;
        padding-bottom: 30px !important;
    }

    .container {
        padding: 0 12px !important;
    }

    /* Heading adjustments */
    main.main-content > .container > div:first-child h1 {
        font-size: 1.5rem !important;
        margin-bottom: 6px !important;
    }

    main.main-content > .container > div:first-child p {
        font-size: 13px !important;
    }

    /* Order Summary Card Mobile */
    main.main-content > .container > div:nth-child(n+3) {
        padding: 16px !important;
    }

    /* Forms and inputs */
    .form-control {
        font-size: 16px !important;
        padding: 12px 10px !important;
        border-radius: 8px !important;
    }

    /* Button sizing */
    .btn {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .btn-primary {
        width: 100% !important;
    }

    /* Grid items in order summary */
    div[style*="display: flex; justify-content: space-between; align-items: center; padding: 10px"] {
        flex-direction: column;
        align-items: flex-start !important;
    }

    /* Seller payment options */
    div[style*="display:flex; gap: 10px; align-items: start; padding: 10px"] {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Order summary grid for items */
    div[style*="display: grid; gap: 10px;"] {
        gap: 8px !important;
    }

    /* Quick action buttons - stack properly on mobile */
    div[style*="grid-template-columns: 1fr 1fr; gap: 10px"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    /* Payment method labels - better touch targets */
    label[style*="display:flex"] {
        padding: 12px !important;
        gap: 12px !important;
    }

    /* Seller info section */
    div[style*="display:flex; justify-content: space-between; gap: 12px"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Sticky positioning - disable on mobile */
    div[style*="position: sticky"] {
        position: relative !important;
    }

    /* Text sizing */
    h2[style*="color: #1e3a8a; font-size: 18px"] {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    h3[style*="font-size: 15px"] {
        font-size: 14px !important;
    }

    /* Summary item layout */
    div[style*="display: flex; justify-content: space-between"] {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Input field spacing */
    div[style*="margin-bottom: 16px"] {
        margin-bottom: 12px !important;
    }

    div[style*="margin-bottom: 18px"] {
        margin-bottom: 14px !important;
    }

    /* Alert messages */
    .alert {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    /* Textarea adjustments */
    textarea.form-control {
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* Extra small screens - phones in portrait */
@media (max-width: 480px) {
    main.main-content > .container > div:first-child h1 {
        font-size: 1.25rem !important;
    }

    main.main-content > .container > div:first-child p {
        font-size: 12px !important;
    }

    .container {
        padding: 0 8px !important;
    }

    /* Card padding reduced */
    div[style*="background: white; border-radius: 12px; padding: 22px"] {
        padding: 14px !important;
    }

    /* Better spacing for lists */
    div[style*="display: grid; gap: 10px;"] {
        gap: 6px !important;
    }

    /* Two column grids become single column */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Button text wrapping */
    .btn {
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Typography scaling */
    h2 {
        font-size: 15px !important;
    }

    h3 {
        font-size: 13px !important;
    }

    /* Reduced icon sizes */
    i[style*="font-size: 46px"] {
        font-size: 32px !important;
    }

    /* Summary price text */
    div[style*="color: #10b981; font-size: 14px"] {
        font-size: 13px !important;
    }

    div[style*="color: #10b981; font-size: 16px"] {
        font-size: 14px !important;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 14px 16px !important;
        min-height: 44px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Larger touch targets for radio buttons */
    input[type="radio"],
    input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        cursor: pointer;
    }

    label {
        cursor: pointer;
    }
}

/* ============ CHECKOUT ITEM CARDS - INTERACTIVE ============ */

.checkout-item-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.checkout-item-card:hover {
    border-color: #2563eb !important;
    background-color: #f0f4f8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
    transform: translateY(-2px);
}

.checkout-item-card:active {
    transform: translateY(0);
}

/* Responsive adjustments for item cards on mobile */
@media (max-width: 768px) {
    .checkout-item-card {
        padding: 10px !important;
    }

    .checkout-item-card div[style*="display: flex; flex-direction: column"] {
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .checkout-item-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .checkout-item-card > div:last-child {
        width: 100% !important;
        text-align: left !important;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e5e7eb;
    }
}

/* ============ PRODUCT DETAILS PAGE - RESPONSIVE GRID ============ */

/* Desktop: 2 columns */
@media (min-width: 1024px) {
    .product-details-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
}

/* Tablet: 2 columns, reduced gap */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-details-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
}

/* Mobile: Single column layout */
@media (max-width: 767px) {
    .product-details-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 30px !important;
    }
}
