/* RezoningLeads.com – Global Styles */
:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #1a202c;
    --text-secondary: #4a5568;
    --muted: #94a3b8;
    --primary: #1e40af;
    --primary-hover: #1e3a8a;
    --primary-light: #dbeafe;
    --accent: #059669;
    --accent-light: #d1fae5;
    --danger: #dc2626;
    --warning: #d97706;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

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

/* Navbar */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; color: var(--text); font-weight: 400; }
.logo:hover { text-decoration: none; }
.logo strong { font-weight: 800; }
.logo-icon { color: var(--primary); font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--text-secondary); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all .15s; text-decoration: none !important; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #047857; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { font-size: 18px; font-weight: 700; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); transition: border-color .15s; background: var(--surface); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-size: 14px; }
.alert-success { background: var(--accent-light); color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: var(--primary-light); color: #1e3a5f; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: #f8fafc; }
tr:hover td { background: #f8fafc; }

/* Pagination */
.pagination { display: flex; gap: 4px; margin-top: 20px; justify-content: center; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-secondary); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Hero Section */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .subtitle { font-size: 19px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badge { display: inline-block; background: var(--accent-light); color: var(--accent); padding: 4px 14px; border-radius: 9999px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }

/* Features */
.features { padding: 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature-card { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.feature-card .icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* Pricing */
.pricing { padding: 60px 0; background: #f1f5f9; }
.pricing-card { max-width: 480px; margin: 40px auto 0; padding: 40px; border: 2px solid var(--primary); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.pricing-card .price { font-size: 52px; font-weight: 800; margin: 16px 0 8px; }
.pricing-card .price span { font-size: 18px; font-weight: 400; color: var(--muted); }
.pricing-card ul { list-style: none; text-align: left; margin: 24px 0; }
.pricing-card li { padding: 8px 0; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pricing-card li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-card .number { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* Lead card */
.lead-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: var(--surface); margin-bottom: 12px; transition: box-shadow .15s; }
.lead-card:hover { box-shadow: var(--shadow-lg); }
.lead-card .lead-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 10px; }
.lead-card h3 { font-size: 16px; margin-bottom: 2px; }
.lead-card .lead-meta { font-size: 13px; color: var(--muted); }
.lead-card .lead-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; font-size: 13px; }
.lead-card .lead-details dt { color: var(--muted); font-weight: 500; }
.lead-card .lead-details dd { font-weight: 600; }
.lead-blurred { filter: blur(5px); user-select: none; pointer-events: none; }
.lead-upgrade { text-align: center; padding: 20px; background: var(--primary-light); border-radius: var(--radius); margin-top: 8px; }

/* Dashboard layout */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 32px 0; min-height: calc(100vh - 200px); }
.dash-sidebar { display: flex; flex-direction: column; gap: 4px; }
.dash-sidebar a { padding: 10px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.dash-sidebar a:hover, .dash-sidebar a.active { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.dash-content { min-width: 0; }

/* Footer */
.footer { background: var(--text); color: #cbd5e1; padding: 60px 0 30px; margin-top: 60px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer a { color: #94a3b8; font-size: 14px; display: block; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #334155; text-align: center; font-size: 13px; }

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .gap-2 { gap: 16px; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }

/* Section titles */
.section-title { text-align: center; margin-bottom: 8px; font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--text-secondary); max-width: 520px; margin: 0 auto; font-size: 16px; }

/* Auth pages */
.auth-wrap { max-width: 440px; margin: 60px auto; }
.auth-wrap h1 { font-size: 28px; margin-bottom: 8px; }
.auth-wrap .subtitle { color: var(--text-secondary); margin-bottom: 24px; }

/* Admin */
.admin-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.admin-tabs a { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.admin-tabs a:hover, .admin-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { flex-direction: row; overflow-x: auto; }
    .form-row { grid-template-columns: 1fr; }
    .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); gap: 12px; }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: block; }
}
