/* Budgie - Personal Finance App Styles */

:root {
    --primary-color: #8d2b5c;
    --primary-hover: #f252a1;
    --secondary-color: #BACCD8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #FAF8F5;
    --white: #ffffff;
    --gray-100: #f7f5f2;
    --gray-200: #eae4de;
    --gray-300: #d6cfc5;
    --gray-400: #BACCD8;
    --gray-500: #8E9BA5;
    --gray-600: #717F89;
    --gray-700: #573E4D;
    --gray-800: #3E2935;
    --gray-900: #25121E;
    --border-radius: 12px;
    --shadow: 0 4px 10px rgba(141, 43, 92, 0.04), 0 2px 4px rgba(141, 43, 92, 0.02);
    --shadow-lg: 0 12px 30px rgba(141, 43, 92, 0.08), 0 4px 12px rgba(141, 43, 92, 0.03);
    /* Aliases */
    --text-muted: var(--gray-500);
    --gray-50: #fdfcfb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light-bg);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    width: 250px;
    overflow-y: auto;
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
    width: 100%;
}

/* Auth Layout */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAF8F5 0%, #BACCD8 35%, #f252a1 75%, #8d2b5c 100%);
}

.auth-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

/* Navigation */
.nav-brand {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(141, 43, 92, 0.25);
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h2 {
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(141, 43, 92, 0.15);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.text-muted {
    color: var(--gray-600);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-input {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

/* Charts */
.chart-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

/* Subscription Plans */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
}

.plan-features li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        transition: left 0.28s cubic-bezier(.4,0,.2,1);
        z-index: 1000;
        box-shadow: none;
    }
    
    .sidebar.open {
        left: 0;
        box-shadow: 4px 0 24px rgba(141,43,92,.18);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .plan-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: none;
    }
}

/* Mobile menu button — hidden on desktop, visible on mobile */
.mobile-menu-btn {
    display: none;
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 999;
}
.sidebar-overlay.active { display: block; }

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-muted { color: var(--gray-500); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Alert / Flash messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Empty state */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--gray-500);
}

/* ==========================================================================
   Clean & Modern Light Landing Page Styles
   ========================================================================== */

/* Navigation Bar */
.public-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.public-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.public-brand .brand-logo {
    font-size: 1.75rem;
}

.public-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.public-nav-links {
    display: flex;
    gap: 2.25rem;
}

.public-nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.public-nav-links a:hover {
    color: var(--primary-hover);
}

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hero Section */
.hero-section {
    padding: 6rem 1.5rem 7rem;
    background: linear-gradient(135deg, #FAF8F5 0%, #F5EFF6 45%, #E9DEEC 100%);
    border-bottom: 1px solid var(--gray-200);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(141, 43, 92, 0.06);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.12;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 2.25rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.hero-highlights {
    display: flex;
    gap: 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Hero Preview Mockup Card */
.preview-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(141, 43, 92, 0.12), 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(141, 43, 92, 0.18);
}

.preview-header {
    background: #FAF8F5;
    padding: 1.1rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dot.green { background: #10b981; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.red { background: #ef4444; }

.preview-title-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.preview-body {
    padding: 1.75rem;
}

.preview-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preview-stat-card {
    background: var(--light-bg);
    border: 1px solid var(--gray-200);
    padding: 1.1rem;
    border-radius: 12px;
    text-align: center;
}

.preview-stat-card .stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.preview-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.preview-account-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    background: var(--light-bg);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.account-preview-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.account-preview-info small {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.account-preview-amount {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--gray-900);
}

/* Features Section */
.features-section {
    padding: 6rem 1.5rem;
    background: var(--white);
}

.section-header {
    max-width: 720px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--light-bg);
    border: 1px solid var(--gray-200);
    padding: 2.25rem;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-hover);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    background: rgba(141, 43, 92, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Security Banner Section */
.security-section {
    padding: 4rem 1.5rem;
    background: var(--white);
}

.security-banner-card {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 3.5rem;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.security-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.security-content p {
    color: var(--gray-300);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.security-bullets {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.5rem;
    font-weight: 500;
    color: var(--white);
}

.security-badge-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.25rem;
    text-align: center;
}

.security-badge-box .shield-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
}

.security-badge-box strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
}

.security-badge-box small {
    color: var(--gray-300);
    font-size: 0.875rem;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 1.5rem;
    background: var(--light-bg);
    border-top: 1px solid var(--gray-200);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
    gap: 2.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-hover);
    box-shadow: 0 16px 35px rgba(242, 82, 161, 0.15);
}

.pricing-featured-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-card-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pricing-amount span {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-600);
}

.pricing-card-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.pricing-features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* Public Footer */
.public-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 5rem 1.5rem 2.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-brand h2 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .security-banner-card {
        grid-template-columns: 1fr;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .public-nav-links {
        display: none;
    }
}/* ==========================================================================
   Dark Mode — [data-theme="dark"]
   ========================================================================== */

[data-theme="dark"] {
    --primary-color: #f252a1;
    --primary-hover: #ff79c6;
    --secondary-color: #44475a;
    --success-color: #50fa7b;
    --warning-color: #ffb86c;
    --danger-color: #ff5555;
    --light-bg: #1a1a2e;
    --white: #16213e;
    --gray-50: #1e2140;
    --gray-100: #252845;
    --gray-200: #30344e;
    --gray-300: #44475a;
    --gray-400: #6272a4;
    --gray-500: #7b8ab4;
    --gray-600: #9aa5ce;
    --gray-700: #c8d0f0;
    --gray-800: #e2e8ff;
    --gray-900: #f8f8f2;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    --text-muted: var(--gray-500);
}

/* Body & layout */
[data-theme="dark"] body {
    color: var(--gray-800);
    background-color: var(--light-bg);
}

/* Sidebar */
[data-theme="dark"] .sidebar {
    background: var(--white);
    border-right-color: var(--gray-200);
}

[data-theme="dark"] .nav-brand {
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

/* Header */
[data-theme="dark"] .header {
    background: var(--white);
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .header h2 {
    color: var(--gray-800);
}

/* Cards */
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .chart-container {
    background: var(--white);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .card-header {
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .card-title {
    color: var(--gray-800);
}

/* Tables */
[data-theme="dark"] .table-container {
    background: var(--white);
}

[data-theme="dark"] .table th {
    background: var(--gray-100);
    color: var(--gray-700);
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    border-bottom-color: var(--gray-200);
    color: var(--gray-800);
}

[data-theme="dark"] .table tbody tr:hover {
    background: var(--gray-50);
}

/* Forms */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .filter-input {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(242, 82, 161, 0.2);
}

[data-theme="dark"] .form-label {
    color: var(--gray-700);
}

/* Buttons */
[data-theme="dark"] .btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

/* Modals */
[data-theme="dark"] .modal-content {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .modal-title {
    color: var(--gray-800);
}

/* Auth pages */
[data-theme="dark"] .auth-container {
    background: var(--white);
}

[data-theme="dark"] .auth-layout {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #7b1fa2 75%, #6a0f5a 100%);
}

/* Alert messages */
[data-theme="dark"] .alert-success {
    background: #065f46;
    color: #6ee7b7;
    border-color: #10b981;
}

[data-theme="dark"] .alert-danger {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #ef4444;
}

[data-theme="dark"] .alert-warning {
    background: #78350f;
    color: #fde68a;
    border-color: #f59e0b;
}

[data-theme="dark"] .alert-info {
    background: #1e3a5f;
    color: #93c5fd;
    border-color: #3b82f6;
}

/* Subscription plan cards */
[data-theme="dark"] .plan-card,
[data-theme="dark"] .pricing-card {
    background: var(--white);
    border-color: var(--gray-200);
}

/* Landing page */
[data-theme="dark"] .public-navbar {
    background: rgba(22, 33, 62, 0.96);
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .public-nav-links a {
    color: var(--gray-600);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #1e213d 45%, #2a1040 100%);
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .hero-badge {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .features-section {
    background: var(--white);
}

[data-theme="dark"] .feature-card {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

[data-theme="dark"] .security-section {
    background: var(--white);
}

[data-theme="dark"] .pricing-section {
    background: var(--light-bg);
    border-top-color: var(--gray-200);
}

[data-theme="dark"] .pricing-features-list li {
    border-bottom-color: var(--gray-200);
    color: var(--gray-700);
}

[data-theme="dark"] .preview-card {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .preview-header {
    background: var(--gray-200);
    border-bottom-color: var(--gray-300);
}

[data-theme="dark"] .preview-stat-card,
[data-theme="dark"] .account-preview-item {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

/* Dark mode toggle button */
.dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dark-mode-toggle:hover {
    background: var(--gray-100);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

[data-theme="dark"] .dark-mode-toggle {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-800);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: var(--gray-200);
    color: var(--primary-color);
}

