/* ========================================
   POWERPREDICT — DESIGN SYSTEM
   ======================================== */

:root {
    --primary: #00A86B;
    --primary-dark: #008f5a;
    --primary-light: #e6f8f1;
    --secondary: #1E3A8A;
    --secondary-light: #2563EB;
    --background: #F4F6F9;
    --surface: #FFFFFF;
    --surface-2: #F9FAFB;
    --text: #1F2937;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --accent: #F59E0B;
    --warning: #EF4444;
    --success: #10B981;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 1px 6px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
    --radius: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: 0.18s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'Roboto Mono', monospace; }

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

/* ========================================
   NAVIGATION
   ======================================== */

.header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: white;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    padding-left: 14px;
    border-left: 1px solid var(--border);
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.logout-link {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.admin-link { color: var(--accent) !important; font-weight: 600; }

/* ========================================
   LAYOUT
   ======================================== */

.main { flex: 1; padding: 32px 0 48px; }

.messages { margin-bottom: 24px; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.alert-success { background: #D1FAE5; color: #065F46; border-left: 3px solid #10B981; }
.alert-error { background: #FEE2E2; color: #991B1B; border-left: 3px solid #EF4444; }

.alert-close {
    background: none; border: none;
    font-size: 1.25rem; cursor: pointer; opacity: 0.6;
}
.alert-close:hover { opacity: 1; }

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: -0.1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0,168,107,0.30);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #00ba78 0%, var(--primary) 100%);
    box-shadow: 0 4px 14px rgba(0,168,107,0.40);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(30,58,138,0.20);
}
.btn-secondary:hover {
    background: #1a3280;
    box-shadow: 0 4px 14px rgba(30,58,138,0.30);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--surface-2); }

.btn-outline-light {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.25); }

/* Hero buttons */
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: white;
    color: var(--secondary);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.20); }

.btn-hero-secondary {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.35);
    transition: all var(--transition);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); }

.btn-banner {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all var(--transition);
    flex-shrink: 0;
}
.btn-banner:hover { background: rgba(255,255,255,0.30); }

.btn-sm { padding: 6px 14px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: pointer; transition: all var(--transition);
    text-decoration: none;
}
.btn-icon:hover { background: var(--secondary); color: white; }
.btn-icon.btn-danger:hover { background: var(--warning); color: white; }
.btn-icon svg { width: 15px; height: 15px; }

.delete-form { display: inline; }

/* ========================================
   PANELS & CARDS
   ======================================== */

.panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-2);
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
}

.panel-body { padding: 20px; }

.badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ========================================
   FORMS
   ======================================== */

.page-header { margin-bottom: 28px; }

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.subtitle { color: var(--text-muted); margin-top: 4px; }

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,168,107,0.12);
}

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

.inline-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.inline-form .form-group { flex: 1; margin-bottom: 0; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }

.has-error .form-input { border-color: var(--warning); }
.field-error { display: block; color: var(--warning); font-size: 0.8125rem; margin-top: 4px; }

.error-list { margin: 8px 0 0 16px; font-size: 0.875rem; }
.error-list li { margin-bottom: 4px; }

/* ========================================
   TABLES
   ======================================== */

.table-wrapper { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--surface-2);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.data-table tbody tr:hover { background: var(--surface-2); }

.text-right { text-align: right; }
.text-center { text-align: center; }

.spec-badge {
    display: inline-block;
    background: var(--border-light);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 6px;
}

.highlight-cell { color: var(--primary); font-weight: 600; }
.cost-cell { color: var(--secondary); font-weight: 600; }

.actions-cell {
    display: flex; gap: 6px; justify-content: center;
}

.totals-row { background: var(--surface-2); }
.totals-row td { border-bottom: none; font-weight: 600; }

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-muted);
}

.empty-icon {
    width: 72px; height: 72px;
    background: var(--border-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 1.125rem; font-weight: 600;
    margin-bottom: 6px; color: var(--text);
}

.empty-state.wide { grid-column: 1 / -1; }

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer a { color: var(--primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ========================================
   MISC LAYOUT
   ======================================== */

.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); text-decoration: none;
    margin-bottom: 20px; font-size: 0.9rem;
    transition: color var(--transition);
}
.back-link:hover { color: var(--primary); }
.back-link svg { width: 18px; height: 18px; }

.edit-page .page-header { margin-bottom: 24px; }
.edit-panel { max-width: 620px; }

.current-rate {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem; color: var(--text-muted);
}
.current-rate strong { color: var(--primary); font-size: 1.05rem; }

.main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* ========================================
   AUTH PAGES
   ======================================== */

.auth-page {
    display: flex; justify-content: center;
    align-items: flex-start; padding: 48px 20px;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    width: 100%; max-width: 420px;
    padding: 40px;
}

.auth-header { text-align: center; margin-bottom: 32px; }

.auth-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(0,168,107,0.35);
}

.auth-icon svg { width: 28px; height: 28px; color: white; }

.auth-header h1 {
    font-size: 1.5rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 6px;
}

.auth-header p { color: var(--text-muted); font-size: 0.9rem; }

.auth-form .form-group:last-of-type { margin-bottom: 24px; }

.auth-footer {
    text-align: center; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.9rem;
}
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ========================================
   LANDING PAGE
   ======================================== */

.landing-page { overflow: hidden; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #162d7a 40%, #0f4c3a 100%);
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content { max-width: 560px; padding-left: 40px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,168,107,0.2);
    color: #4ade80;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(74,222,128,0.25);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero-accent {
    background: linear-gradient(90deg, #4ade80, #00A86B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

/* Hero visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
}

.hero-card-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 300px;
}

.hero-stat-card {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
}

.hero-stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.hero-stat-icon.green { background: rgba(0,168,107,0.3); color: #4ade80; }
.hero-stat-icon.blue { background: rgba(37,99,235,0.3); color: #93c5fd; }
.hero-stat-icon.amber { background: rgba(245,158,11,0.3); color: #fcd34d; }

.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.hero-stat-value { font-size: 1.1rem; font-weight: 700; }

.hero-stat-badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-stat-badge.down { background: rgba(74,222,128,0.2); color: #4ade80; }
.hero-stat-badge.up { background: rgba(74,222,128,0.2); color: #4ade80; }

/* Stats bar */
.stats-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    padding: 0 40px;
}

.stat-number {
    font-size: 1.75rem; font-weight: 800;
    color: var(--primary); letter-spacing: -1px;
}

.stat-desc { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }

.stat-divider {
    width: 1px; height: 40px;
    background: var(--border);
}

/* Features */
.features-section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}

.feature-icon-wrap.purple { background: #EDE9FE; color: #7C3AED; }
.feature-icon-wrap.green { background: #D1FAE5; color: #059669; }
.feature-icon-wrap.blue { background: #DBEAFE; color: #2563EB; }
.feature-icon-wrap.amber { background: #FEF3C7; color: #D97706; }
.feature-icon-wrap.teal { background: #CCFBF1; color: #0F766E; }
.feature-icon-wrap.red { background: #FEE2E2; color: #DC2626; }

.feature-card h3 {
    font-size: 1.05rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted); font-size: 0.9rem; line-height: 1.65;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #162d7a 60%, #0f4c3a 100%);
    margin: 0;
    padding: 72px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-inner { position: relative; z-index: 1; }

.cta-icon {
    width: 64px; height: 64px;
    background: rgba(0,168,107,0.25);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: #4ade80;
}

.cta-section h2 {
    font-size: 2rem; font-weight: 800;
    color: white; margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-section p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 32px; font-size: 1.05rem;
}

.cta-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ========================================
   DASHBOARD
   ======================================== */

.dashboard {}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #004d35 100%);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,168,107,0.30);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    right: 60px; bottom: -80px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.welcome-text { position: relative; z-index: 1; }

.welcome-text h1 {
    font-size: 1.5rem; font-weight: 700;
    color: white; margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.welcome-name { color: #a7f3d0; }

.welcome-text p {
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.summary-card.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border: none;
    box-shadow: 0 4px 16px rgba(0,168,107,0.35);
}

.summary-card.highlight .card-label { color: rgba(255,255,255,0.8); }

.card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.appliances-icon { background: #EDE9FE; color: #7C3AED; }
.kwh-icon { background: #D1FAE5; color: var(--primary-dark); }
.cost-icon { background: rgba(255,255,255,0.2); color: white; }
.yearly-icon { background: #DBEAFE; color: var(--secondary-light); }

.card-content { display: flex; flex-direction: column; }
.card-label { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.card-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.quick-action-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.quick-action-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-link .feature-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.quick-action-link .feature-info { flex: 1; }
.quick-action-link .feature-info h3 { font-size: 0.875rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.quick-action-link .feature-info p { font-size: 0.775rem; color: var(--text-muted); margin: 0; }

.action-arrow { color: var(--text-light); flex-shrink: 0; }

.quick-action-link.highlight-action {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(0,168,107,0.30);
}
.quick-action-link.highlight-action .feature-info h3,
.quick-action-link.highlight-action .feature-info p { color: white; }
.quick-action-link.highlight-action .action-arrow { color: rgba(255,255,255,0.6); }

/* Section header */
.section-header-row {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}

.section-heading {
    font-size: 1.125rem; font-weight: 700;
    color: var(--text);
}

/* Add location panel */
.add-location-panel { margin-bottom: 20px; }

/* Location Cards */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.location-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.location-card-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 4px 0 0 4px;
}

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

.location-name-wrap {
    display: flex; align-items: center; gap: 12px;
}

.location-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 0.95rem;
    flex-shrink: 0;
}

.location-header h3 {
    font-size: 1.05rem; font-weight: 700;
    color: var(--secondary);
}

.location-actions { display: flex; gap: 6px; }

.location-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.stat.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border-color: transparent;
}

.stat-value {
    display: block;
    font-size: 1.1rem; font-weight: 800;
    margin-bottom: 3px; letter-spacing: -0.3px;
}

.stat-label {
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600;
}

.stat.highlight .stat-label { color: rgba(255,255,255,0.75); }

.location-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 16px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.rate-label { color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; }
.rate-value { color: var(--primary); font-weight: 700; font-size: 0.9375rem; }

/* Feature links (used elsewhere) */
.feature-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.feature-link {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.feature-link .feature-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); flex-shrink: 0;
}

.feature-link.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border-color: transparent;
    box-shadow: 0 3px 12px rgba(0,168,107,0.30);
}

.feature-link.highlight .feature-icon { background: rgba(255,255,255,0.2); color: white; }
.feature-link.highlight h3, .feature-link.highlight p { color: white; }
.feature-link.highlight p { opacity: 0.85; }

.feature-info h3 { font-size: 0.9375rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.feature-info p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }

/* ========================================
   DEALS PAGE
   ======================================== */

.deal-image { border-radius: var(--radius); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .summary-cards { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; padding-left: 0; }
    .hero-visual { display: none; }
    .hero-actions { justify-content: center; }
    .hero-badge { display: inline-flex; margin: 0 auto 20px; }
}

@media (max-width: 768px) {
    .main { padding: 20px 0 32px; }
    .welcome-banner { flex-direction: column; align-items: flex-start; }
    .summary-cards { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .main-grid { grid-template-columns: 1fr; }
    .stat-item { padding: 0 20px; }
    .stat-divider { display: none; }
    .stats-bar { gap: 16px; }
}

@media (max-width: 600px) {
    .hero { padding: 48px 20px 56px; }
    .hero h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .auth-card { padding: 28px 20px; }
    .inline-form { flex-direction: column; }
    .location-stats { grid-template-columns: 1fr 1fr 1fr; }
    .user-menu { display: none; }
    .feature-links { grid-template-columns: 1fr; }
    .summary-cards { grid-template-columns: 1fr 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 1.5rem; }
    .section-title { font-size: 1.5rem; }
    .features-section { padding: 48px 20px; }
}
