/* ===== Virtual Farmer - Main Stylesheet ===== */
:root {
    --primary: #27ae60;
    --primary-dark: #1e8449;
    --primary-light: #a9dfbf;
    --secondary: #e67e22;
    --secondary-dark: #ca6f1e;
    --accent: #3498db;
    --accent-dark: #2980b9;
    --danger: #e74c3c;
    --warning: #f39c12;
    --purple: #8e44ad;
    --dark: #1a252f;
    --dark-2: #2c3e50;
    --gray: #7f8c8d;
    --gray-light: #ecf0f1;
    --white: #ffffff;
    --bg: #f0f4f1;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,.15);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: all .25s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--dark-2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVBAR ===== */
.vf-navbar {
    background: linear-gradient(135deg, #1a3a2a 0%, #1e5f3a 50%, #1a3a2a 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
    padding: 10px 0;
    z-index: 1000;
}

.vf-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.brand-highlight { color: #f39c12; }

.vf-navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vf-navbar .nav-link:hover, .vf-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}

.vf-navbar .nav-link [data-lucide] {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.btn-post-listing {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 7px 18px !important;
    font-weight: 600 !important;
}

.btn-post-listing:hover {
    background: linear-gradient(135deg, var(--secondary-dark), #a04000) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230,126,34,.4) !important;
}

/* Search */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.search-input {
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    color: #fff !important;
    border-radius: 24px !important;
    padding: 8px 16px 8px 38px !important;
    width: 240px;
    transition: var(--transition);
}

.search-input::placeholder { color: rgba(255,255,255,.55) !important; }
.search-input:focus {
    background: rgba(255,255,255,.18) !important;
    border-color: rgba(255,255,255,.4) !important;
    box-shadow: none !important;
    outline: none !important;
    width: 280px;
}

/* Notification Bell */
.notif-bell { position: relative; }
.notif-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--danger);
    color: #fff;
    font-size: .65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.notif-panel {
    width: 320px !important;
    padding: 0 !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-hover) !important;
    overflow: hidden;
}

.notif-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-count {
    background: #fff;
    color: var(--primary);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: .75rem;
}

.notif-empty {
    padding: 24px;
    text-align: center;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.notif-item {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--gray-light);
}

.notif-msg { display: block; font-size: .9rem; color: var(--dark-2); }
.notif-time { display: block; font-size: .75rem; color: var(--gray); margin-top: 2px; }
.notif-all { text-align: center !important; color: var(--primary) !important; font-weight: 600; padding: 12px !important; }

/* User Panel */
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.4);
}

.user-name { font-weight: 500; font-size: .9rem; }
.premium-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    font-size: .65rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
}

.user-panel {
    width: 260px !important;
    padding: 0 !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-hover) !important;
    overflow: hidden;
}

.user-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-light);
}

.user-panel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-panel .dropdown-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    transition: var(--transition);
}

.user-panel .dropdown-item [data-lucide] { width: 16px; height: 16px; }

.dropdown-menu-categories {
    column-count: 2;
    min-width: 340px !important;
    padding: 8px !important;
    border-radius: var(--radius) !important;
}

.dropdown-menu-categories .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 8px 12px;
    break-inside: avoid;
}

.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn-vf-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    border: none;
    border-radius: 24px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-vf-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #196f3d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,.35);
}

.btn-vf-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #fff !important;
    border: none;
    border-radius: 24px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-vf-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), #a04000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,126,34,.35);
}

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

.btn-outline-vf:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; }

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, #0d2818 0%, #1a5631 40%, #0e3320 70%, #1a3a2a 100%);
    min-height: 620px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(39,174,96,.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230,126,34,.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 2; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39,174,96,.2);
    border: 1px solid rgba(39,174,96,.4);
    color: #7dcea0;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255,255,255,.75);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.hero-stat-item { text-align: center; }
.hero-stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #f39c12;
}

.hero-stat-label { color: rgba(255,255,255,.6); font-size: .85rem; }

.hero-visual {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-cards-float {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    transform: rotate(3deg);
}

.hero-card-mini {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    transition: var(--transition);
}

.hero-card-mini:hover { transform: scale(1.05); background: rgba(255,255,255,.15); }
.hero-card-mini .hcm-icon { font-size: 2rem; margin-bottom: 8px; }
.hero-card-mini .hcm-title { font-weight: 600; font-size: .9rem; }
.hero-card-mini .hcm-price { color: #f39c12; font-weight: 700; font-size: 1rem; }

/* ===== SEARCH BAR HERO ===== */
.hero-search {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius);
    padding: 8px;
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin-bottom: 24px;
}

.hero-search input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 16px !important;
    flex: 1;
}

.hero-search input::placeholder { color: rgba(255,255,255,.55) !important; }
.hero-search input:focus { box-shadow: none !important; outline: none !important; }

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 36px;
}

.section-header { margin-bottom: 36px; }
.section-header .section-title { margin-bottom: 4px; }

/* ===== CARDS ===== */
.vf-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    height: 100%;
}

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

/* ===== LISTING CARD ===== */
.listing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.listing-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.listing-card:hover .listing-card-img img { transform: scale(1.05); }

.listing-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.listing-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.listing-type-badge {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-sell { background: #d5f5e3; color: #1e8449; }
.badge-buy { background: #d6eaf8; color: #2471a3; }
.badge-featured { background: linear-gradient(135deg, #f39c12, #e67e22); color: #fff; border-radius: 20px; padding: 4px 10px; font-size: .7rem; font-weight: 700; }
.badge-premium { background: linear-gradient(135deg, #8e44ad, #6c3483); color: #fff; border-radius: 20px; padding: 4px 10px; font-size: .7rem; font-weight: 700; }
.badge-new { background: linear-gradient(135deg, #3498db, #2980b9); color: #fff; border-radius: 20px; padding: 4px 10px; font-size: .7rem; font-weight: 700; }

.listing-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.listing-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-title a { text-decoration: none; color: inherit; }
.listing-title a:hover { color: var(--primary); }

.listing-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.listing-price .per-unit { font-size: .8rem; color: var(--gray); font-weight: 400; font-family: 'Inter', sans-serif; }

.listing-meta {
    display: flex;
    gap: 12px;
    font-size: .8rem;
    color: var(--gray);
    margin-top: auto;
    flex-wrap: wrap;
}

.listing-meta span { display: flex; align-items: center; gap: 4px; }
.listing-meta [data-lucide] { width: 13px; height: 13px; }

.listing-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-light);
    background: #fafafa;
}

.listing-seller img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.listing-seller-name { font-size: .8rem; font-weight: 600; color: var(--dark-2); text-decoration: none; }
.listing-seller-name:hover { color: var(--primary); }

/* ===== CATEGORY CARDS ===== */
.category-card {
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    color: inherit;
    border-color: currentColor;
}

.cat-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.cat-icon-emoji { font-size: 1.8rem; }
.category-name { font-weight: 700; font-size: .95rem; }
.category-count { font-size: .8rem; color: var(--gray); margin-top: 4px; }

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    padding: 60px 0;
}

.stat-card {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { color: rgba(255,255,255,.7); margin-top: 4px; }

/* ===== HOW IT WORKS ===== */
.how-step {
    text-align: center;
    padding: 30px 20px;
}

.how-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(39,174,96,.35);
}

.how-step-icon { font-size: 2.5rem; margin-bottom: 12px; }
.how-step h5 { font-weight: 700; margin-bottom: 8px; }
.how-step p { color: var(--gray); font-size: .9rem; }

/* ===== SUBSCRIPTION CARDS ===== */
.sub-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.sub-card:hover { transform: translateY(-6px); }
.sub-card.featured { border-color: var(--secondary); }

.sub-card-header {
    padding: 28px;
    text-align: center;
}

.sub-card.free .sub-card-header { background: linear-gradient(135deg, #ecf0f1, #bdc3c7); }
.sub-card.monthly .sub-card-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.sub-card.yearly .sub-card-header { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); color: #fff; }

.sub-plan-name { font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.sub-price { font-family: 'Poppins', sans-serif; font-size: 2.8rem; font-weight: 800; }
.sub-period { font-size: .9rem; opacity: .8; }
.sub-card-body { padding: 24px 28px; }

.sub-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: .9rem;
}

.sub-feature:last-child { border-bottom: none; }
.sub-feature [data-lucide] { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.sub-feature.inactive [data-lucide] { color: var(--gray); }
.sub-feature.inactive span { color: var(--gray); }

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin: 16px auto;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-weight: 500;
}

.alert [data-lucide] { width: 18px; height: 18px; flex-shrink: 0; }
.alert-success { background: #d5f5e3; color: #1e8449; }
.alert-error { background: #fde8e8; color: #c0392b; }
.alert-info { background: #d6eaf8; color: #2471a3; }
.alert-warning { background: #fef9e7; color: #9a7d0a; }

/* ===== FORMS ===== */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
    border: 1px solid rgba(0,0,0,.06);
}

.form-label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--dark-2);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border-radius: var(--radius-sm) !important;
    border: 1.5px solid #d5d8dc !important;
    padding: 10px 14px !important;
    font-size: .9rem !important;
    transition: var(--transition) !important;
    background: #fafafa !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(39,174,96,.12) !important;
    background: #fff !important;
}

.input-group-icon {
    position: relative;
}

.input-group-icon [data-lucide] {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray);
    z-index: 5;
}

.input-group-icon .form-control { padding-left: 38px !important; }

.auth-card {
    max-width: 480px;
    margin: 60px auto;
}

.auth-card .form-card { padding: 44px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.6rem; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--gray); font-size: .9rem; margin-bottom: 28px; }

/* ===== DASHBOARD ===== */
.dashboard-page { padding: 30px 0 60px; }

.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 28px;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '🌾';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    opacity: .15;
}

.welcome-name { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.welcome-sub { opacity: .85; }

.dash-stat-card {
    border-radius: var(--radius);
    padding: 22px;
    color: #fff;
    transition: var(--transition);
}

.dash-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.dash-stat-card.green { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.dash-stat-card.orange { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }
.dash-stat-card.blue { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.dash-stat-card.purple { background: linear-gradient(135deg, #8e44ad, #6c3483); }

.dash-stat-num { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 800; }
.dash-stat-label { opacity: .85; font-size: .9rem; }
.dash-stat-icon { font-size: 2.2rem; opacity: .3; }

.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-card-header {
    padding: 16px 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
}

.sidebar-card-header [data-lucide] { width: 16px; height: 16px; color: var(--primary); }

/* ===== PROFILE ===== */
.profile-header {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    border-radius: var(--radius);
    padding: 36px;
    color: #fff;
    margin-bottom: 28px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.3);
    margin-bottom: 16px;
}

.profile-name { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.profile-location { opacity: .75; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.profile-bio { opacity: .8; font-size: .95rem; }

.profile-stats {
    display: flex;
    gap: 28px;
    margin-top: 20px;
}

.profile-stat-num { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; color: #f39c12; }
.profile-stat-label { font-size: .8rem; opacity: .7; }

/* ===== LISTING DETAIL ===== */
.listing-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    max-height: 480px;
}

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

.listing-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.listing-thumb:hover, .listing-thumb.active { border-color: var(--primary); }

/* ===== ADMIN PANEL ===== */
.admin-sidebar {
    background: linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    transition: var(--transition);
}

.admin-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.admin-brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.admin-brand-sub { font-size: .75rem; color: rgba(255,255,255,.5); display: block; }

.admin-nav { padding: 16px 0; }
.admin-nav-section { padding: 8px 20px 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.35); }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: .9rem;
    position: relative;
}

.admin-nav-link [data-lucide] { width: 18px; height: 18px; }

.admin-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.admin-nav-link.active {
    color: #fff;
    background: rgba(39,174,96,.2);
    border-right: 3px solid var(--primary);
}

.admin-nav-link .nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background: #f4f6f8;
}

.admin-topbar {
    background: #fff;
    padding: 14px 28px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.admin-page-title { font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.admin-content { padding: 28px; }

.admin-stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.admin-stat-card.green { border-left-color: var(--primary); }
.admin-stat-card.orange { border-left-color: var(--secondary); }
.admin-stat-card.blue { border-left-color: var(--accent); }
.admin-stat-card.red { border-left-color: var(--danger); }
.admin-stat-card.purple { border-left-color: var(--purple); }

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-stat-icon.green { background: #d5f5e3; }
.admin-stat-icon.orange { background: #fdebd0; }
.admin-stat-icon.blue { background: #d6eaf8; }
.admin-stat-icon.red { background: #fde8e8; }
.admin-stat-icon.purple { background: #e8daef; }

.admin-stat-num { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.admin-stat-label { color: var(--gray); font-size: .85rem; }

.admin-table-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-table-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-table-title { font-weight: 700; font-size: 1rem; }

.admin-table { margin: 0; }
.admin-table th { background: #f8f9fa; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); border-bottom: 2px solid #e0e0e0; padding: 14px 16px; }
.admin-table td { padding: 14px 16px; vertical-align: middle; font-size: .9rem; border-bottom: 1px solid #f0f0f0; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fffe; }

/* ===== MATCH CARD ===== */
.match-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
    transition: var(--transition);
}

.match-card:hover { box-shadow: var(--shadow-hover); }

.match-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 12px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-score {
    background: rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: .8rem;
    font-weight: 700;
}

.match-body { padding: 16px; }
.match-side { padding: 12px; background: var(--bg); border-radius: 8px; }
.match-side-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.match-side.buyer .match-side-label { color: var(--accent); }
.match-side.seller .match-side-label { color: var(--primary); }
.match-arrow { display: flex; align-items: center; justify-content: center; padding: 8px; }

/* ===== STAR RATING ===== */
.star-rating [data-lucide] { width: 16px; height: 16px; }
.star-rating .filled { color: #f39c12; fill: #f39c12; }
.star-rating .half { color: #f39c12; fill: #f39c12; }
.star-rating .empty { color: #ddd; }

/* ===== BADGES ===== */
.badge { border-radius: 20px !important; font-weight: 600 !important; }
.badge-status-active { background: #d5f5e3; color: #1e8449; }
.badge-status-inactive { background: #fde8e8; color: #c0392b; }
.badge-status-pending { background: #fef9e7; color: #9a7d0a; }
.badge-status-confirmed { background: #d5f5e3; color: #1e8449; }
.badge-status-sold { background: #eaecee; color: #5d6d7e; }

/* ===== FILTERS ===== */
.filter-bar {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.filter-btn {
    background: transparent;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    color: var(--primary);
    border-color: #dee2e6;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== FOLLOW BTN ===== */
.btn-follow {
    border-radius: 20px;
    padding: 7px 20px;
    font-weight: 600;
    font-size: .85rem;
    transition: var(--transition);
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

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

/* ===== FOOTER ===== */
.vf-footer {
    background: linear-gradient(135deg, #0d1f15, #1a2e1e, #0d1f15);
    color: rgba(255,255,255,.75);
    padding: 60px 0 0;
    margin-top: auto;
}

.footer-desc { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.6); margin-top: 12px; }
.footer-heading { font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 6px; }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-social [data-lucide] { width: 16px; height: 16px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    margin-top: 40px;
    font-size: .85rem;
    color: rgba(255,255,255,.4);
}

.footer-note { color: rgba(255,255,255,.5); }

/* ===== UTILITIES ===== */
.text-primary-vf { color: var(--primary) !important; }
.text-secondary-vf { color: var(--secondary) !important; }
.bg-vf { background: var(--bg) !important; }

.section-pad { padding: 70px 0; }
.section-pad-sm { padding: 48px 0; }

.divider-line {
    height: 3px;
    width: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 12px 0 20px;
}

/* ===== FONT-WEIGHT UTILITIES ===== */
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

/* ===== LAYOUT UTILITIES ===== */
.flex-1 { flex: 1 1 0% !important; min-width: 0; }
.cursor-pointer { cursor: pointer !important; }

/* ===== BTN XS ===== */
.btn-xs {
    padding: 3px 10px !important;
    font-size: .72rem !important;
    line-height: 1.4 !important;
    border-radius: 20px !important;
}

/* ===== NAVBAR TOGGLER (white icon on dark bg) ===== */
.vf-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.3);
    padding: 6px 10px;
}
.vf-navbar .navbar-toggler:focus { box-shadow: none; }
.vf-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== ADMIN SIDEBAR OVERLAY ===== */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
    cursor: pointer;
}
.admin-sidebar-overlay.active { display: block; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(39,174,96,.4);
    z-index: 999;
    transition: var(--transition);
}

.scroll-top:hover { transform: translateY(-3px); }
.scroll-top [data-lucide] { width: 20px; height: 20px; }

/* ===== RESPONSIVE: TABLET & BELOW (< 992px) ===== */
@media (max-width: 991.98px) {
    /* Admin sidebar slides off-screen */
    .admin-sidebar {
        transform: translateX(-260px);
        z-index: 999;
        transition: transform .28s ease;
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.35);
    }
    .admin-main { margin-left: 0 !important; }
    .admin-content { padding: 16px; }
    .admin-topbar { padding: 12px 16px; }

    /* Navbar search full-width inside collapsed menu */
    .navbar-search { width: 100%; margin: 8px 0; order: -1; }
    .search-input { width: 100% !important; }
    .search-input:focus { width: 100% !important; }

    /* Dropdowns full-width friendly */
    .notif-panel { width: min(320px, calc(100vw - 24px)) !important; }
    .user-panel { width: min(260px, calc(100vw - 24px)) !important; }
    .dropdown-menu-categories { column-count: 1 !important; min-width: 220px !important; }

    /* Navbar collapsed state */
    .vf-navbar .navbar-collapse {
        border-top: 1px solid rgba(255,255,255,.12);
        margin-top: 8px;
        padding: 10px 0;
    }
    .vf-navbar .navbar-nav .nav-link { border-radius: 8px; }
    .btn-post-listing { display: inline-flex; width: auto; }
}

/* ===== RESPONSIVE: MOBILE (< 768px) ===== */
@media (max-width: 767.98px) {
    /* Hero */
    .hero-section { min-height: auto; padding: 40px 0 36px; }
    .hero-title { font-size: 2rem; line-height: 1.2; }
    .hero-subtitle { font-size: .93rem; margin-bottom: 24px; }
    .hero-tag { font-size: .8rem; }
    .hero-stats { gap: 16px; margin-top: 24px; }
    .hero-stat-num { font-size: 1.4rem; }
    .hero-search { max-width: 100%; }

    /* Sections */
    .section-title { font-size: 1.65rem; }
    .section-pad { padding: 44px 0; }
    .section-pad-sm { padding: 28px 0; }
    .section-header { margin-bottom: 24px; }

    /* Global stat numbers */
    .stat-number { font-size: 2rem; }

    /* Category cards */
    .category-card { padding: 16px 10px; }
    .cat-icon-wrap { width: 46px; height: 46px; margin-bottom: 8px; }
    .cat-icon-emoji { font-size: 1.4rem; }
    .category-name { font-size: .82rem; }

    /* Dashboard */
    .dashboard-page { padding: 16px 0 40px; }
    .welcome-banner { padding: 20px; }
    .welcome-banner::after { font-size: 3rem; right: 14px; }
    .welcome-name { font-size: 1.25rem; }
    .dash-stat-card { padding: 14px 16px; }
    .dash-stat-num { font-size: 1.7rem; }
    .dash-stat-icon { font-size: 1.7rem; }

    /* Forms & auth */
    .form-card { padding: 20px; }
    .auth-card { margin: 16px auto; }
    .auth-card .form-card { padding: 22px 18px; }
    .auth-title { font-size: 1.4rem; }

    /* Profile */
    .profile-header { padding: 20px; }
    .profile-avatar { width: 72px; height: 72px; }
    .profile-name { font-size: 1.2rem; }
    .profile-stats { gap: 16px; flex-wrap: wrap; }
    .profile-stat-num { font-size: 1.2rem; }

    /* Listing detail thumbnails */
    .listing-thumb { width: 56px; height: 44px; }

    /* Subscription */
    .sub-price { font-size: 2.2rem; }
    .sub-card-header { padding: 20px; }
    .sub-card-body { padding: 18px 20px; }

    /* Filter bar */
    .filter-bar { padding: 14px; }

    /* Footer */
    .vf-footer { padding: 40px 0 0; }
    .footer-bottom { text-align: center; }

    /* Admin */
    .admin-stat-num { font-size: 1.35rem; }
    .admin-page-title { font-size: 1rem; }
    .admin-content { padding: 12px; }
    .admin-topbar { padding: 10px 14px; }

    /* Alerts */
    .alert { margin: 10px 12px; }

    /* Advert images on mobile */
    .advert-type-banner .advert-img,
    .advert-type-flier  .advert-img { max-height: 140px; }
}

/* ===== RESPONSIVE: SMALL MOBILE (< 576px) ===== */
@media (max-width: 575.98px) {
    .hero-title { font-size: 1.7rem; }
    .hero-stats { flex-wrap: wrap; justify-content: center; gap: 20px 28px; }
    .section-title { font-size: 1.4rem; }

    /* Listing card images shorter */
    .listing-card-img { height: 160px; }

    /* Category cards tighter */
    .category-card { padding: 12px 8px; }
    .cat-icon-wrap { width: 38px; height: 38px; }
    .cat-icon-emoji { font-size: 1.1rem; }

    /* Hide welcome banner emoji to avoid overflow */
    .welcome-banner::after { display: none; }

    /* Admin tables scroll horizontally */
    .table-responsive { -webkit-overflow-scrolling: touch; }

    /* Subscription cards stacked */
    .sub-price { font-size: 2rem; }

    /* Profile stats row */
    .profile-stats { gap: 12px 20px; }

    /* Notif panel */
    .notif-panel { width: calc(100vw - 16px) !important; right: 8px !important; left: auto !important; }
    .user-panel  { width: calc(100vw - 16px) !important; right: 8px !important; left: auto !important; }
}

/* ===== ADVERTS ===== */
.advert-wrap {
    position: relative;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.advert-wrap:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); }

/* Banner / Flier */
.advert-type-banner .advert-link,
.advert-type-flier  .advert-link  { display: block; }

.advert-type-banner .advert-img,
.advert-type-flier  .advert-img  {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.advert-type-flier .advert-img { max-height: 320px; }

.advert-caption {
    padding: 8px 14px;
    font-size: .85rem;
    color: var(--muted);
    background: var(--bg);
    border-radius: 0 0 12px 12px;
}

/* Text ad */
.advert-text-body {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border: 1px solid #ffeaa0;
    border-radius: 12px;
    padding: 18px 20px;
}

.advert-text-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}

.advert-text-content {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.advert-cta {
    display: inline-block;
    background: var(--secondary);
    color: #fff !important;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.advert-cta:hover { background: var(--secondary-dark); transform: translateY(-1px); }

/* Link ad */
.advert-link-body {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f3);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 14px 18px;
}

.advert-link-anchor {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-wrap: wrap;
}

.advert-link-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--dark);
    flex: 1;
}

.advert-link-sub {
    font-size: .82rem;
    color: var(--muted);
    flex-basis: 100%;
}

.advert-link-cta {
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.advert-link-anchor:hover .advert-link-title { color: var(--primary); }

/* Sponsored label */
.advert-label {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: .04em;
    pointer-events: none;
}

/* Full-width top banner strip */
.advert-pos-top.advert-type-banner .advert-img,
.advert-pos-top.advert-type-flier  .advert-img { max-height: 120px; border-radius: 10px; }

/* Sidebar position */
.advert-pos-sidebar { margin: 0 0 16px; }
.advert-pos-sidebar .advert-type-banner .advert-img,
.advert-pos-sidebar .advert-type-flier  .advert-img { max-height: 220px; }

/* Section-level advert strip */
.advert-section {
    padding: 0 0 4px;
}
.advert-section .advert-wrap { margin: 0; }
