:root {
    --primary-color: #00E676;
    /* Bright Green */
    --primary-dark: #00C853;
    --secondary-color: #2979FF;
    /* Blue for accents */
    --bg-color: #F4F7FE;
    /* Light Blue-Grey Background */
    --surface-color: #FFFFFF;
    --text-primary: #2B3674;
    /* Dark Blue-Grey Text */
    --text-secondary: #A3AED0;
    --success-color: #05CD99;
    --danger-color: #EE5D50;
    --sidebar-bg: #FFFFFF;
    --border-radius: 20px;
    --shadow-sm: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
    --font-main: 'DM Sans', 'Inter', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Auth Pages (Login / Register) */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

.auth-card {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.auth-card .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.auth-card .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.auth-card .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.auth-error {
    color: var(--danger-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.auth-link {
    margin-top: 15px;
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Landing Pricing Section */
.pricing-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.price-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.price-card.featured {
    border-color: #25D366;
    transform: scale(1.05);
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #25D366;
    margin-bottom: 20px;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.price-features ul {
    text-align: left;
    margin-bottom: 30px;
}

.price-features li {
    margin-bottom: 10px;
    color: #555;
}

.price-features i {
    color: #25D366;
    margin-right: 10px;
}

/* Sidebar */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    padding: 30px 20px;
    position: fixed;
    height: 100vh; /* Fallback */
    height: 100dvh;
    z-index: 100;
    border-right: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar .brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar .brand span {
    color: var(--primary-color);
}

.sidebar nav {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    min-height: 0;
}

/* Esconder barra de rolagem no menu, mas manter a rolagem */
.sidebar nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar nav::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    display: block !important;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--primary-dark);
    font-weight: 700;
}

.sidebar a i {
    margin-right: 15px;
    width: 20px;
    font-size: 1.1rem;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    background: linear-gradient(135deg, #868CFF 0%, #4318FF 100%);
    border-radius: 16px;
    color: white;
    text-align: center;
}

.sidebar-footer h4 {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.sidebar-footer p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.sidebar-footer .btn-contact {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: white;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px;
    width: calc(100% - 280px);
    transition: all 0.3s;
}

.dashboard-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Mobile Toggle - Hidden by default on Desktop */
.mobile-menu-toggle {
    display: none !important;
}

/* Sidebar Overlay - Hidden by default on Desktop */
.sidebar-overlay {
    display: none;
    z-index: 999;
}

.page-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.page-title h2 {
    font-size: 2.1rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 5px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--surface-color);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00C853 0%, #B2FF59 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Increased min-width to avoid squishing */
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 25px;
    align-items: flex-start;
    margin-top: 30px;
}

.stat-card,
.card,
.report-card,
.chart-container,
.recent-transactions {
    min-width: 0;
    /* Fix for grid overflow */
    word-wrap: break-word;
    /* Prevent long text overflow */
}

.stat-card {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-info h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-info .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-receita {
    background: rgba(5, 205, 153, 0.1);
    color: var(--success-color);
}

.icon-despesa {
    background: rgba(238, 93, 80, 0.1);
    color: var(--danger-color);
}

.icon-saldo {
    background: rgba(43, 54, 116, 0.1);
    color: var(--text-primary);
}

/* Charts Section */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.chart-container {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: 400px;
    position: relative;
    box-sizing: border-box;
}

/* Transaction List */
.recent-transactions {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.note-card {
    background: var(--surface-color);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.note-card.pinned {
    border-color: rgba(0, 230, 118, 0.35);
    box-shadow: 0 4px 16px rgba(0, 230, 118, 0.15);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 10px;
}

th {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

td {
    padding: 15px;
    background: #fff;
    transition: background 0.2s ease;
}

tr td:first-child {
    border-radius: 10px 0 0 10px;
}

tr td:last-child {
    border-radius: 0 10px 10px 0;
}

tbody tr:hover td {
    background: #f8f9fb;
}

/* Compact table header for tight spaces */
.section-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-income {
    background: rgba(5, 205, 153, 0.1);
    color: var(--success-color);
}

.status-expense {
    background: rgba(238, 93, 80, 0.1);
    color: var(--danger-color);
}

.status-paid {
    background: rgba(5, 205, 153, 0.1);
    color: var(--success-color);
}

.status-pending {
    background: rgba(255, 181, 71, 0.1);
    color: #FFB547;
}

/* Responsive */
@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile/Tablet Responsive Fixes */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        height: 100vh; /* Fallback */
        height: 100dvh;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        /* Force separate content */
        width: 100% !important;
        padding: 20px 15px;
        /* Adjust padding */
    }

    .stats-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    /* Mobile Header adjustments */
    .top-bar {
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .page-title {
        flex: 1;
    }

    .page-title h2 {
        font-size: 1.5rem;
    }

    .user-profile {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
    }

    .header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    /* Mobile Menu Button */
    /* Mobile Menu Button - Visible on mobile */
    .mobile-menu-toggle {
        display: flex !important;

        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 8px;
        box-shadow: var(--shadow-sm);
        color: var(--text-primary);
        font-size: 1.2rem;
        cursor: pointer;
        border: none;
        margin-right: 15px;
    }

    /* Overlay when menu is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        background: #fff;
        padding: 10px;
    }

    table {
        min-width: 600px;
        /* Force table to maintain width and trigger scroll */
    }

    .hero-badges {
        justify-content: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .chart-container {
        height: 280px;
        padding: 20px;
    }
}

/* Forms & Cards Styling */
.card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header subtitle unificado */
.header-subtitle {
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Valores de receita/despesa em tabelas */
.value-income {
    color: var(--success-color);
    font-weight: 700;
}

.value-expense {
    color: var(--danger-color);
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    height: 48px;
    /* Match input height */
    margin-bottom: 0 !important;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    margin: 0;
}

.btn-add {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 25px;
    /* Adjust padding for fixed height */
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    height: 48px;
    /* Match inputs */
    line-height: 48px;
    /* Center text vertically */
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 230, 118, 0.2);
    display: inline-block;
}

.btn-add:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 230, 118, 0.3);
}

@media(max-width: 900px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .btn-add {
        grid-column: span 2;
        width: 100%;
        text-align: center;
    }
}

@media(max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-add {
        grid-column: span 1;
    }
}

/*
==================
LANDING PAGE STYLES
==================
*/

/* Reset & Base */
.landing-page {
    /* Adjust padding to account for fixed header (if any on landing) */
    padding-top: 80px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 800;
    margin: 0;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

header nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--primary-color);
}

/* Buttons (Generic but used in landing) */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-light {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid #e5e7eb;
}

.btn-ghost:hover {
    background-color: #f8fafc;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    color: var(--text-primary);
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

.chip.active {
    border-color: var(--primary-color);
    color: var(--primary-dark);
    background: rgba(0, 230, 118, 0.08);
}

.chip.green {
    background: rgba(0, 230, 118, 0.12);
    color: var(--primary-dark);
    border-color: rgba(0, 230, 118, 0.25);
}

.filters-bar {
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    margin-bottom: 24px;
}

.filters-bar .group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filters-bar .title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-right: 8px;
}

.date-range {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.date-range input[type="date"] {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-main);
    color: var(--text-primary);
    background: #f8f9fa;
}

.search-input {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
}

.search-input input {
    border: 0;
    outline: 0;
    font-family: var(--font-main);
    color: var(--text-primary);
    background: transparent;
    width: 240px;
}

.tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tabs .tab {
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
}

.tabs .tab.active {
    color: var(--primary-dark);
    border-color: var(--primary-color);
    background: rgba(0, 230, 118, 0.08);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-text h2 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-badges {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-badges i {
    color: var(--success-color);
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}


/* Features Section */
.features {
    padding: 100px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(0, 230, 118, 0.1);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-card img.screenshot-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.16);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}


/* Details Section */
.details {
    padding: 100px 0;
    background-color: #f9fbfd;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.detail-row.reverse .detail-text {
    order: 2;
}

.detail-row.reverse .detail-image {
    order: 1;
}

.detail-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.detail-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.detail-text ul {
    list-style: none;
    padding: 0;
}

.detail-text li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.detail-text li i {
    color: var(--success-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.detail-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* Dashboard Preview Specifics */
.dashboard-preview {
    padding: 100px 0;
    background-color: #fff;
}


/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #fff;
}


/* Footer */
footer {
    background-color: #2B3674;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    margin: 0;
    opacity: 0.8;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Admin Page */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.user-table-row:hover {
    background-color: #f8f9fa;
}

.action-btn {
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    font-size: 0.8rem;
    margin-right: 5px;
}

.btn-edit {
    background: var(--secondary-color);
}

.btn-delete {
    background: var(--danger-color);
}

.action-btn:hover {
    opacity: 0.9;
}

/* Reports Page */
.report-card {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.report-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.kpi-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.chart-container-large {
    height: 350px;
    width: 100%;
}

.top-expenses-list {
    list-style: none;
    padding: 0;
}

.top-expenses-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f5;
}

.top-expenses-list li:last-child {
    border-bottom: none;
}

.expense-name {
    font-weight: 500;
    color: var(--text-primary);
}

.expense-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.expense-amount {
    font-weight: 700;
    color: var(--danger-color);
}

.reports-grid-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .reports-grid-row {
        grid-template-columns: 1fr;
    }
}

/* Settings Page */
.settings-card {
    background: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f2f5;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

.form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.full-width {
    grid-column: span 2;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success {
    background: rgba(5, 205, 153, 0.1);
    color: var(--success-color);
}

.error {
    background: rgba(238, 93, 80, 0.1);
    color: var(--danger-color);
}

.btn-save {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
}

@media(max-width: 768px) {
    .form-section {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

/* Responsive Landing */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 10px;
    }

    header {
        height: auto;
        padding: 15px 0;
    }

    body.landing-page {
        padding-top: 140px;
    }

    .hero-content,
    .detail-row,
    .detail-row.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .detail-row.reverse .detail-image {
        order: -1;
    }

    .detail-row.reverse .detail-text {
        order: 2;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
}

/*
==================
PHONE MOCKUP STYLES
==================
*/

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 50px;
    padding: 12px;
    box-shadow:
        0 0 0 2px #333,
        0 20px 50px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    /* Maintain the 3D effect from original hero image */
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Notch simulation */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #111;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments for mockup */
@media (max-width: 768px) {
    .phone-mockup {
        width: 260px;
        height: 520px;
        transform: none;
    }

    .phone-mockup:hover {
        transform: none;
    }
}

.logo img {
    max-height: 64px;
    width: auto;
    display: block;
}

/* Ensure hero image container allows centered content */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* Ensure 3D context if needed */
}

/*
==================
BEFORE & AFTER COMPARISON
==================
*/

/* Wrapper */
.detail-image.comparison-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Base card styling */
.comparison-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    text-align: center;
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: contain;
    max-height: 400px;
    /* Prevent overly tall images */
}

/* Labels */
.bad-label,
.good-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bad-label {
    color: var(--danger-color);
}

.good-label {
    color: var(--success-color);
}

.comparison-card.before {
    border: 3px solid rgba(238, 93, 80, 0.1);
}

.comparison-card.after {
    border: 3px solid rgba(5, 205, 153, 0.1);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .detail-image.comparison-wrapper {
        align-items: center;
    }

    .comparison-card {
        width: 100%;
        max-width: 340px;
    }

    .detail-text h3 {
        text-align: center;
    }

    .detail-text ul {
        display: inline-block;
        text-align: left;
    }
}

/*
==================
MOBILE MENU STYLES
==================
*/

/* Default State (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    /* Above nav */
}

/* Mobile Responsive */
@media (max-width: 900px) {

    /* Header layout adjustments */
    header .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        /* Ensure row layout */
        padding: 0 20px;
    }

    /* Logo Sizing on Mobile */
    .logo img {
        height: 80px !important;
        /* Smaller on mobile but bigger than before */
        width: auto;
    }

    /* Toggle Button */
    .menu-toggle {
        display: block;
    }

    /* Navigation Menu */
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 80%;
        /* Takes most of screen */
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease-in-out;
        padding: 40px;
    }

    header nav.active {
        right: 0;
        /* Slide in */
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        width: 100%;
    }

    header nav a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    /* Overlay effect using pseudo element on body could be added here if desired */
}