/* ============================================================
   Top Solar Services – Main Stylesheet
   ============================================================ */
:root {
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-light:  #EFF6FF;
  --secondary:      #16A34A;
  --secondary-light:#F0FDF4;
  --accent:         #F59E0B;
  --accent-light:   #FFFBEB;
  --red:            #DC2626;
  --red-light:      #FEF2F2;
  --text:           #111827;
  --text-2:         #374151;
  --text-3:         #6B7280;
  --text-4:         #9CA3AF;
  --border:         #E5E7EB;
  --border-dark:    #D1D5DB;
  --bg:             #FFFFFF;
  --bg-2:           #F9FAFB;
  --bg-3:           #F3F4F6;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow:         0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 24px rgba(0,0,0,.12);
  --radius-sm:      4px;
  --radius:         8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --font:           'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* === Utility === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--secondary-light); color: var(--secondary); }
.badge-blue  { background: var(--primary-light);   color: var(--primary); }
.badge-gold  { background: var(--accent-light);    color: #B45309; }
.badge-gray  { background: var(--bg-3);            color: var(--text-3); }
.badge-red   { background: var(--red-light);       color: var(--red); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: all .18s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); text-decoration: none; }
.btn-green { background: var(--secondary); color: #fff; }
.btn-green:hover { background: #15803D; text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #B91C1C; text-decoration: none; color: #fff; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: var(--radius-sm); }

/* === Card === */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* === Header / Nav === */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-logo { font-size: 20px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo span { color: var(--primary); }
.nav-logo svg, .nav-logo .logo-icon { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; font-weight: 500; transition: background .15s; }
.nav-links a:hover { background: var(--bg-2); text-decoration: none; color: var(--text); }
.nav-links a.active { background: var(--primary-light); color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu { display: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: .2s; }

/* === Hero === */
.hero { background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 40%, #2563EB 70%, #0EA5E9 100%); padding: 72px 0 80px; color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.9); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 20px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; line-height: 1.15; margin-bottom: 18px; letter-spacing: -.02em; }
.hero p { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.hero-search { background: #fff; border-radius: var(--radius-lg); padding: 8px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); max-width: 640px; margin: 0 auto; }
.hero-search input { flex: 1; border: none; outline: none; padding: 10px 14px; font-size: 15px; color: var(--text); background: transparent; }
.hero-search select { border: none; outline: none; padding: 10px 8px; font-size: 14px; color: var(--text-3); background: transparent; border-left: 1px solid var(--border); cursor: pointer; }
.hero-search .btn { padding: 11px 24px; border-radius: var(--radius-sm); flex-shrink: 0; }
.hero-stats { display: flex; justify-content: center; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }
.hero-states { margin-top: 20px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-states a { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9); padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; transition: background .15s; }
.hero-states a:hover { background: rgba(255,255,255,.25); text-decoration: none; }

/* === Section headings === */
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.section-header p { color: var(--text-3); margin-top: 8px; font-size: 16px; }
.section-header .view-all { font-size: 14px; font-weight: 600; color: var(--primary); }

/* === Company Card === */
.company-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.company-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.company-card-header { display: flex; align-items: flex-start; gap: 16px; padding: 20px 20px 16px; }
.company-logo { width: 64px; height: 64px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--primary); flex-shrink: 0; overflow: hidden; }
.company-logo img { width: 100%; height: 100%; object-fit: cover; }
.company-card-info { flex: 1; min-width: 0; }
.company-name { font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-name:hover { color: var(--primary); text-decoration: none; }
.company-location { font-size: 13px; color: var(--text-3); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.company-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.company-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.rating-num { font-size: 15px; font-weight: 700; color: var(--text); }
.rating-count { font-size: 13px; color: var(--text-3); }
.company-card-body { padding: 0 20px 16px; flex: 1; }
.company-desc { font-size: 14px; color: var(--text-3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.company-services { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.service-tag { font-size: 12px; color: var(--text-2); background: var(--bg-3); padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border); }
.company-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--bg-2); }

/* === Top Ranked Card === */
.ranked-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.ranked-card:hover { box-shadow: var(--shadow); }
.rank-badge { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.rank-1 { background: #FEF3C7; color: #92400E; }
.rank-2 { background: #F1F5F9; color: #475569; }
.rank-3 { background: #FEF2F2; color: #991B1B; }
.ranked-info { flex: 1; min-width: 0; }
.ranked-name { font-size: 15px; font-weight: 700; }
.ranked-meta { font-size: 13px; color: var(--text-3); margin-top: 3px; }

/* === Stars === */
.stars { display: inline-flex; gap: 2px; font-size: 15px; }
.star.full  { color: var(--accent); }
.star.half  { color: var(--accent); }
.star.empty { color: #D1D5DB; }
.stars-interactive .star-input { color: #D1D5DB; cursor: pointer; font-size: 28px; transition: color .1s; }
.stars-interactive .star-input.active,
.stars-interactive .star-input:hover ~ .star-input { color: var(--accent); }
.stars-interactive:hover .star-input { color: var(--accent); }
.stars-interactive .star-input:hover ~ .star-input { color: #D1D5DB; }

/* === Search Bar === */
.search-bar { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 4px 4px 16px; box-shadow: var(--shadow-sm); }
.search-bar input { flex: 1; border: none; outline: none; font-size: 14px; color: var(--text); background: transparent; padding: 8px 0; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.filter-select { padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2); background: var(--bg); cursor: pointer; outline: none; }
.filter-select:focus { border-color: var(--primary); }

/* === Services Grid === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); cursor: pointer; transition: all .2s; gap: 12px; }
.service-card:hover { border-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow); text-decoration: none; }
.service-card .service-icon { font-size: 36px; }
.service-card .service-name { font-size: 14px; font-weight: 600; color: var(--text-2); }
.service-card .service-count { font-size: 12px; color: var(--text-3); }
.service-card:hover .service-name { color: var(--primary); }

/* === Stats Bar === */
.stats-bar { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { display: flex; align-items: center; justify-content: center; gap: 48px; padding: 20px 0; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-lbl { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* === State Tabs === */
.state-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.state-tab { padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; border: 2px solid var(--border); background: var(--bg); color: var(--text-2); cursor: pointer; transition: all .15s; }
.state-tab:hover, .state-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }

/* === Company Detail Page === */
.company-detail-header { background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); padding: 40px 0; }
.detail-top { display: flex; align-items: flex-start; gap: 24px; }
.detail-logo { width: 96px; height: 96px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: var(--primary); flex-shrink: 0; box-shadow: var(--shadow); overflow: hidden; }
.detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.detail-rating-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.detail-rating-big { font-size: 22px; font-weight: 800; color: var(--text); }
.detail-stars { font-size: 18px; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.company-sidebar .card-body > * + * { margin-top: 16px; }
.sidebar-info-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.sidebar-info-row .icon { width: 18px; text-align: center; color: var(--text-3); flex-shrink: 0; margin-top: 2px; }
.company-main-content > * + * { margin-top: 28px; }

/* === Reviews === */
.review-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.review-card + .review-card { margin-top: 12px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: var(--primary); flex-shrink: 0; }
.reviewer-name { font-weight: 600; font-size: 15px; }
.review-date { font-size: 12px; color: var(--text-3); }
.review-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.review-content { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.rating-breakdown { display: flex; flex-direction: column; gap: 8px; }
.rating-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rating-label { width: 40px; text-align: right; color: var(--text-3); font-weight: 600; }
.rating-bar-wrap { flex: 1; height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.rating-bar { height: 100%; background: var(--accent); border-radius: 4px; }
.rating-count-lbl { width: 24px; text-align: right; color: var(--text-3); font-size: 12px; }

/* === Form === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: var(--bg); transition: border-color .15s; outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.form-check input { width: 16px; height: 16px; cursor: pointer; }

/* === Alert === */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: var(--secondary-light); color: #166534; border: 1px solid #86EFAC; }
.alert-error   { background: var(--red-light);       color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: var(--primary-light);   color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning { background: var(--accent-light);    color: #92400E; border: 1px solid #FDE68A; }

/* === Admin Layout === */
.admin-wrapper { display: flex; min-height: 100vh; background: var(--bg-2); }
.admin-sidebar { width: 240px; background: #1E293B; flex-shrink: 0; display: flex; flex-direction: column; }
.admin-sidebar-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-logo a { color: #fff; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.admin-nav { padding: 16px 0; flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: #94A3B8; font-size: 14px; font-weight: 500; transition: all .15s; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.admin-nav a.active { color: #fff; background: rgba(37,99,235,.3); border-right: 3px solid var(--primary); }
.admin-nav .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.admin-content { flex: 1; padding: 24px; overflow-y: auto; }
.admin-page-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--text); margin-top: 4px; }
.stat-card .stat-change { font-size: 13px; color: var(--secondary); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-2); }
.table-wrap { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* === Footer === */
.site-footer { background: #0F172A; color: #94A3B8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { }
.footer-brand .logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: #64748B; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #64748B; font-size: 14px; transition: color .15s; }
.footer-col ul a:hover { color: #CBD5E1; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); margin-top: 48px; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #475569; }

/* === Pagination === */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; }
.page-btn { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2); background: var(--bg); transition: all .15s; }
.page-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-dots { color: var(--text-3); padding: 0 4px; }

/* === Toast / Flash === */
.flash { position: fixed; top: 20px; right: 20px; z-index: 9999; max-width: 360px; }
.flash .alert { box-shadow: var(--shadow-lg); }

/* === Breadcrumb === */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-dark); }

/* === Responsive === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.open, .nav-actions.open { display: flex; flex-direction: column; }
  .nav-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--border); background: #fff; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--text-2); }
  .hero { padding: 48px 0 56px; }
  .hero-search { flex-direction: column; gap: 0; padding: 4px; }
  .hero-search input, .hero-search select { width: 100%; border: none; }
  .hero-stats { gap: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .detail-top { flex-direction: column; align-items: center; text-align: center; }
  .detail-actions { justify-content: center; }
  .stats-inner { gap: 24px; }
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
}

/* === Loading states === */
.skeleton { background: linear-gradient(90deg, var(--bg-3) 25%, var(--border) 50%, var(--bg-3) 75%); background-size: 200% 100%; animation: skeleton 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === Misc === */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text-2); margin-bottom: 8px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
