/* ===== CSS RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== CSS VARIABLES ===== */
:root {
    --bg-grad: linear-gradient(135deg, #7865f3 0%, #6a6be9 35%, #6a58d6 65%, #8a53d6 100%);
    --card: #ffffff;
    --ink: #0f172a;
    --muted: #475569;
    --primary: #635bff;
    --primary-2: #7c3aed;
    --accent: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
    --ring: 0 10px 25px rgba(99, 91, 255, 0.25);
    --shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
    --radius: 16px;
}

/* ===== BASE TYPOGRAPHY & LAYOUT ===== */
html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background: #0b1020;
    overflow-x: hidden;
}

body.popup-open {
    overflow: hidden;
}

/* ===== LAYOUT COMPONENTS ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #1f2937;
    color: white;
    padding: 1rem;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    padding: 2rem;
    flex: 1;
}

/* ===== HEADER & NAVIGATION ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(10px);
    background: rgba(13, 18, 38, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(13, 18, 38, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.brand-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.35);
    font-size: 0.95rem;
    animation: pulse 2s infinite;
}

.nav-links {
    margin-left: auto;
    display: none;
    gap: 1rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(135deg, #ffb703, #f97316);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
}

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

.header h1 {
    color: #1f2937;
    font-size: 1.5rem;
}

/* ===== BUTTONS & CTAS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-weight: 800;
    padding: 0.9rem 1.15rem;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ffb703, #f97316);
    color: #0b1020;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.5);
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.cta {
    display: none;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: var(--ring);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.cta:hover::before {
    left: 100%;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 91, 255, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--bg-grad);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: float 20s infinite linear;
}

.hero-inner {
    max-width: 1200px;
    margin: auto;
    padding: 64px 18px 28px;
    display: grid;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    line-height: 1.1;
    margin: 0.4rem 0 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
    color: #e5e7eb;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    max-width: 52ch;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 14px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ===== DASHBOARD PREVIEW ===== */
.shot {
    margin: 4px 0 0;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: fadeIn 1s ease-out 0.8s both, float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.shot::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

.dashboard-preview {
    height: 320px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    background: rgba(30, 41, 59, 0.8);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-tab {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-tab.active {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: white;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-title {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.metric-change {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.positive {
    color: #10b981;
}

.negative {
    color: #ef4444;
}

.chart-placeholder {
    height: 80px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 4px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.chart-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

/* ===== TRUST BADGES ===== */
.trust {
    background: #0b1020;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.trust::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.03'%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");
}

.trust-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 1;
}

.kpi {
    background: #0e1530;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    color: #cbd5e1;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out both;
}

.kpi:nth-child(1) { animation-delay: 0.1s; }
.kpi:nth-child(2) { animation-delay: 0.2s; }
.kpi:nth-child(3) { animation-delay: 0.3s; }

.kpi:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.kpi b {
    display: block;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #ffb703, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi small {
    opacity: 0.75;
}

/* ===== SECTIONS ===== */
.section {
    background: #0b1020;
    padding: 48px 16px;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.section-inner {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.section h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    margin: 0 0 14px;
    letter-spacing: 0.2px;
    animation: fadeInUp 0.8s ease-out;
}

.sub {
    color: #93a3b8;
    max-width: 65ch;
    margin: 0 0 26px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== CARDS ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #eef2ff;
    animation: fadeInUp 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.15);
}

.card h3 {
    margin: 8px 0 6px;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.chip {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #60a5fa);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
}

.card:hover .chip {
    transform: scale(1.1) rotate(5deg);
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #6b7280;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-header h2 {
    color: #3b82f6;
    margin-bottom: 2rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    color: #d1d5db;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #374151;
    color: white;
}

.nav-item.active {
    background: #3b82f6;
    color: white;
}

/* ===== LEADS MANAGEMENT ===== */
.leads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 4px solid #3b82f6;
}

.lead-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.lead-name {
    font-weight: 500;
}

.lead-email {
    color: #6b7280;
    font-size: 0.875rem;
}

.lead-score {
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.score-high { background: #dcfce7; color: #166534; }
.score-medium { background: #fef3c7; color: #92400e; }
.score-low { background: #fee2e2; color: #991b1b; }

.lead-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
}

/* ===== CTA BAND ===== */
.cta-band {
    background: linear-gradient(135deg, #6a6be9 0%, #7c3aed 100%);
    color: #fff;
    padding: 40px 16px;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.cta-inner h3 {
    margin: 0;
    animation: fadeInLeft 0.8s ease-out;
}

.cta-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    animation: fadeInRight 0.8s ease-out;
}

/* ===== EXIT POPUP ===== */
.exit-popup {
    animation: fadeIn 0.3s ease-out;
}

.exit-popup button:hover {
    transform: translateY(-1px);
}

/* ===== SUCCESS STATES ===== */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.success-checkmark:before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #10b981;
    animation: scaleIn 0.3s ease-out;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.welcome-message {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.welcome-message h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: #6b7280;
}

/* ===== FOOTER ===== */
footer {
    background: #0a0f22;
    color: #cbd5e1;
    padding: 30px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.03'%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");
}

.foot-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.muted {
    color: #93a3b8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 700px) {
    .nav-links,
    .cta {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        padding: 84px 24px 40px;
    }

    .trust-inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-inner {
        grid-template-columns: 1.4fr 0.6fr;
        align-items: center;
    }

    .foot-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-ctas {
        flex-direction: column;
    }

    .lead-form .form-group {
        grid-template-columns: 1fr;
    }

    .trust-inner {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shine {
    0% { transform: rotate(30deg) translateX(-100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}/* ====== Enhanced Header Styles ====== */
.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    color: var(--primary-dark);
    transform: scale(1.1);
}

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

.user-greeting {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.mobile-nav-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    margin-top: 0.5rem;
}

.mobile-nav-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #4338ca);
    color: white;
    transform: translateY(-1px);
}

.mobile-auth-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* ====== Enhanced Footer Styles ====== */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--gray-600);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--radius);
}

.social-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-header {
        padding: 0.75rem 1rem;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    .mobile-menu {
        top: 70px;
    }
}/* App Layout Styles */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 40;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.user-role {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

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

.nav-item.active .nav-link {
    background: var(--primary);
    color: white;
    border-left-color: var(--primary-dark);
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    width: 100%;
}

.logout-btn:hover {
    background: var(--gray-50);
    color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 30;
}

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

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.header-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

.header-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-icon {
    font-size: 1.1rem;
}

.user-name {
    font-weight: 500;
    color: var(--gray-700);
}

.content-wrapper {
    flex: 1;
    padding: 2rem;
}