/* ============================================
   ServiceHub - Main Stylesheet
   Font: Syne (headings) + DM Sans (body)
   Theme: Warm Orange + Dark Navy
============================================ */

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

:root {
    --primary: #FF6B35;
    --secondary: #1A1A2E;
    --accent: #FFD93D;
    --surface: #FFFFFF;
    --bg: #F8F6F3;
    --text: #2D2D2D;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }

a { text-decoration: none; color: inherit; }

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---- TOPBAR ---- */
.topbar {
    background: var(--secondary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left span, .topbar-right a { margin-right: 20px; opacity: 0.85; }
.topbar-left span i, .topbar-right a i { margin-right: 6px; color: var(--primary); }
.topbar-right a { color: #fff; transition: var(--transition); }
.topbar-right a:hover { opacity: 1; color: var(--primary); }
.btn-register {
    background: var(--primary);
    color: #fff !important;
    padding: 4px 14px;
    border-radius: 20px;
    opacity: 1 !important;
    font-weight: 500;
}

/* ---- HEADER ---- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.site-logo { display: flex; align-items: center; }
.logo-text { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--secondary); }
.logo-accent { color: var(--primary); }
.logo-text img { height: 48px; width: auto; }

.main-nav ul { display: flex; list-style: none; gap: 8px; align-items: center; }
.main-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}
.main-nav a:hover, .main-nav .active > a { color: var(--primary); background: var(--primary-light, #FF6B3511); }

.has-dropdown { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px;
    z-index: 999;
}
.has-dropdown:hover .dropdown { display: block; animation: fadeDown 0.2s ease; }
.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.dropdown a i { width: 20px; color: var(--primary); }
.dropdown a:hover { background: var(--bg); }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span { width: 26px; height: 2px; background: var(--secondary); border-radius: 2px; display: block; transition: var(--transition); }

/* ---- HERO ---- */
.hero {
    background: var(--secondary);
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary)33 0%, transparent 60%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4ECDC433 0%, transparent 60%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,107,53,0.2);
    border: 1px solid rgba(255,107,53,0.4);
    color: #FFB89A;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--primary); }
.hero p { font-size: 18px; opacity: 0.8; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Search Box */
.search-box {
    background: #fff;
    border-radius: 60px;
    padding: 6px;
    display: flex;
    gap: 4px;
    max-width: 700px;
    margin: 0 auto 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.search-box .field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-right: 1px solid var(--border);
}
.search-box .field:last-of-type { border-right: none; }
.search-box .field i { color: var(--primary); font-size: 16px; flex-shrink: 0; }
.search-box input, .search-box select {
    border: none;
    outline: none;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: transparent;
}
.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Syne', sans-serif;
}
.search-btn:hover { background: #e55a25; transform: scale(1.02); }
.search-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.search-tags span { font-size: 13px; opacity: 0.6; }
.search-tags a { color: #FFB89A; font-size: 13px; padding: 2px 10px; border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; transition: var(--transition); }
.search-tags a:hover { border-color: var(--primary); color: var(--primary); }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
    display: inline-block;
    background: var(--primary-light, #FF6B3511);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; color: var(--secondary); }
.section-header p { color: var(--text-light); font-size: 17px; max-width: 500px; margin: 0 auto; }

/* ---- CATEGORIES ---- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cat-color, var(--primary));
    opacity: 0;
    transition: var(--transition);
}
.category-card:hover { border-color: var(--cat-color, var(--primary)); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card:hover::before { opacity: 0.05; }
.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--cat-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
    transition: var(--transition);
}
.category-card:hover .category-icon { transform: scale(1.1) rotate(-5deg); }
.category-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.category-card span { font-size: 13px; color: var(--text-light); }

/* ---- SERVICE CARDS ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg);
}
.service-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-image img { transform: scale(1.05); }
.service-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; }
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-featured { background: var(--accent); color: #333; }
.badge-verified { background: #10B981; color: #fff; }
.badge-cat { background: rgba(0,0,0,0.6); color: #fff; backdrop-filter: blur(4px); }
.reseller-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26,26,46,0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.service-card-body { padding: 20px; }
.service-card-body h3 { font-size: 18px; margin-bottom: 6px; }
.service-card-body h3 a { color: var(--secondary); transition: var(--transition); }
.service-card-body h3 a:hover { color: var(--primary); }
.service-location { display: flex; align-items: center; gap: 6px; color: var(--text-light); font-size: 13px; margin-bottom: 12px; }
.service-location i { color: var(--primary); }
.service-desc { font-size: 14px; color: var(--text-light); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.service-distance { font-size: 12px; color: var(--primary); font-weight: 600; }
.btn-view { background: var(--primary); color: #fff; padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: var(--transition); }
.btn-view:hover { background: #e55a25; }

/* ---- FILTERS ---- */
.filter-bar {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-group { flex: 1; min-width: 180px; }
.filter-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 8px; }
.filter-group input, .filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    background: #fff;
    transition: var(--transition);
    color: var(--text);
}
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--primary); }

/* ---- SERVICE DETAIL ---- */
.service-detail { padding: 60px 0; }
.service-gallery { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.gallery-main { height: 400px; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs img { height: 80px; width: 100%; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.7; transition: var(--transition); }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; }
.service-info-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.service-info-card h1 { font-size: 2rem; margin-bottom: 8px; }
.service-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); }
.meta-item i { color: var(--primary); }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}
.contact-btn.whatsapp { background: #25D366; color: #fff; }
.contact-btn.phone { background: var(--primary); color: #fff; }
.contact-btn.website { background: #4ECDC4; color: #fff; }
.contact-btn.directions { background: var(--secondary); color: #fff; }
.contact-btn.email { background: #6B7280; color: #fff; }
.contact-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* Working Hours */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td { padding: 10px 0; font-size: 14px; }
.hours-table td:first-child { font-weight: 600; color: var(--secondary); }
.hours-table td:last-child { color: var(--text-light); text-align: right; }
.status-open { color: #10B981; font-weight: 700; }
.status-closed { color: #EF4444; font-weight: 700; }

/* Contact Form */
.contact-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Syne', sans-serif;
    width: 100%;
}
.btn-primary:hover { background: #e55a25; transform: translateY(-1px); }

/* ---- MAPS ---- */
#service-map { height: 300px; border-radius: var(--radius); overflow: hidden; margin-top: 20px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.breadcrumb-list { display: flex; gap: 8px; align-items: center; list-style: none; }
.breadcrumb-list li::after { content: '/'; color: var(--text-light); margin-left: 8px; }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: var(--primary); }

/* ---- PAGINATION ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 1.5px solid var(--border);
}
.page-btn.active, .page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.dots { background: transparent; border: none; color: var(--text-light); }

/* ---- ALERTS ---- */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid #10B981; }
.alert-error { background: #FEE2E2; color: #991B1B; border-left: 4px solid #EF4444; }
.alert-info { background: #DBEAFE; color: #1E40AF; border-left: 4px solid #3B82F6; }

/* ---- AUTH PAGES ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary)22, transparent 60%);
    border-radius: 50%;
}
.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-card h2 { text-align: center; margin-bottom: 8px; font-size: 28px; }
.auth-card .subtitle { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 32px; }
.auth-divider { text-align: center; margin: 20px 0; color: var(--text-light); font-size: 13px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-light); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ---- RESELLER PANEL ---- */
.panel-layout { display: flex; min-height: calc(100vh - 80px); }
.panel-sidebar {
    width: 260px;
    background: var(--secondary);
    color: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    transition: var(--transition);
}
.panel-sidebar .sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.panel-sidebar .sidebar-user { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-user-name { font-weight: 700; font-size: 15px; }
.sidebar-user-role { font-size: 12px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-nav { padding: 16px 12px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--transition);
}
.sidebar-nav a i { width: 20px; text-align: center; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-nav a.active { background: var(--primary); color: #fff; }
.sidebar-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); padding: 16px 16px 8px; }

.panel-content { flex: 1; padding: 32px; overflow-y: auto; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.panel-header h1 { font-size: 28px; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 80px;
    height: 80px;
    background: var(--stat-color, var(--primary));
    opacity: 0.08;
    border-radius: 50%;
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--stat-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}
.stat-info .stat-value { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; }
.stat-info .stat-label { font-size: 13px; color: var(--text-light); }

/* Tables */
.table-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.table-card-header h3 { font-size: 18px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); background: var(--bg); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-active { background: #D1FAE5; color: #065F46; }
.status-inactive { background: #F3F4F6; color: #6B7280; }
.status-pending { background: #FEF3C7; color: #92400E; }
.action-btns { display: flex; gap: 6px; }
.btn-sm {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-edit { background: #DBEAFE; color: #1D4ED8; }
.btn-delete { background: #FEE2E2; color: #DC2626; }
.btn-view-sm { background: #D1FAE5; color: #065F46; }
.btn-sm:hover { opacity: 0.8; }

/* Form Card */
.form-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    background: #fff;
    transition: var(--transition);
    color: var(--text);
}
.input-field:focus { outline: none; border-color: var(--primary); }
textarea.input-field { resize: vertical; min-height: 120px; }
.form-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; color: var(--secondary); }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-preview-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: #ef4444; color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ---- FOOTER ---- */
.site-footer { background: var(--secondary); color: rgba(255,255,255,0.8); margin-top: 80px; position: relative; }
.footer-wave { margin-bottom: -2px; }
.footer-wave svg { width: 100%; height: 60px; display: block; color: var(--secondary); }
.footer-body { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col .footer-logo { margin-bottom: 16px; }
.footer-col p { font-size: 14px; line-height: 1.8; opacity: 0.7; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 16px; color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; opacity: 0.7; transition: var(--transition); }
.footer-col ul a:hover { opacity: 1; color: var(--primary); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: rgba(255,255,255,0.7);
}
.social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
}
.footer-bottom .container { display: flex; justify-content: space-between; font-size: 13px; opacity: 0.5; }

/* ---- FEATURED BANNER ---- */
.stats-banner { background: var(--primary); color: #fff; padding: 60px 0; }
.stats-banner .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stats-banner .num { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; }
.stats-banner .label { font-size: 14px; opacity: 0.8; margin-top: 4px; }

/* ---- RESELLER ID BADGE ---- */
.reseller-info { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-top: 16px; font-size: 13px; }
.reseller-info strong { color: var(--primary); }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state i { font-size: 64px; color: var(--border); margin-bottom: 20px; }
.empty-state h3 { font-size: 22px; margin-bottom: 10px; color: var(--text-light); }
.empty-state p { color: var(--text-light); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-banner .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .main-nav { display: none; position: fixed; inset: 0; background: var(--secondary); z-index: 9999; padding: 60px 24px; flex-direction: column; }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav a { color: rgba(255,255,255,0.8); font-size: 20px; padding: 16px; }
    .dropdown { position: static; box-shadow: none; background: rgba(255,255,255,0.05); margin-top: 8px; }
    .dropdown a { color: rgba(255,255,255,0.7); }
    .mobile-menu-btn { display: flex; z-index: 10000; position: relative; }
    
    .hero { padding: 60px 0 50px; }
    .search-box { flex-direction: column; border-radius: var(--radius); padding: 16px; }
    .search-box .field { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 0; }
    .search-box .field:last-of-type { border-bottom: none; }
    .search-btn { width: 100%; }
    
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .category-card { padding: 20px 12px; }
    .category-icon { width: 52px; height: 52px; font-size: 22px; }
    
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-actions { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .panel-layout { flex-direction: column; }
    .panel-sidebar { width: 100%; height: auto; position: relative; top: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-banner .container { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Loading spinner */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Smooth animations */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Page Banner */
.page-banner { background: var(--secondary); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; right: -100px; top: -100px; width: 300px; height: 300px; background: var(--primary); opacity: 0.1; border-radius: 50%; }
.page-banner h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-banner p { opacity: 0.7; margin-top: 8px; }
