/* ==========================================================================
   ROOT VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --success: #4cc9f0;
    --warning: #f72585;
    --danger: #ef233c;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    
    /* Extended colors for specific pages */
    --income-color: #2ecc71;
    --expense-color: #e74c3c;
    --balance-color: #3498db;
    --high-priority: #f72585;
    --medium-priority: #f8961e;
    --low-priority: #43aa8b;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   DARK THEME
   ========================================================================== */
body.dark-theme,
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-theme .stat-card,
body.dark-theme .chart-card,
body.dark-theme .transactions-section,
body.dark-theme .card,
body.dark-theme .settings-card,
body.dark-theme .goal-card,
body.dark-theme .modal-content,
body.dark-mode .container {
    background: #1e1e1e;
    color: #ffffff;
}

body.dark-theme .stat-title,
body.dark-theme .chart-title,
body.dark-theme .section-title,
body.dark-theme .transactions-table th,
body.dark-mode .form-group label {
    color: #b0b0b0;
}

body.dark-theme .transactions-table td,
body.dark-mode .form-group input {
    color: #ffffff;
    border-bottom-color: #333333;
}

body.dark-theme .search-bar input,
body.dark-mode .form-group input {
    background: #2d2d2d;
    border-color: #333333;
    color: #ffffff;
}

body.dark-theme .search-bar i {
    color: #b0b0b0;
}

body.dark-theme .theme-toggle .dark {
    background: var(--primary);
    color: white;
}

body.dark-mode .social-btn {
    background: #3a3a4a;
    color: #f0f0f0;
}

body.dark-mode .social-btn:hover {
    background: #4a4a5a;
}

/* ==========================================================================
   SIDEBAR & NAVIGATION (Used in dashboard, income, reports, savings, settings, transactions)
   ========================================================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 90;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    width: 280px;
    background: white;
    height: 100vh;
    position: fixed;
    box-shadow: var(--card-shadow);
    padding: 20px 0;
    transition: var(--transition);
    z-index: 100;
    left: 0;
    /* Add these lines */
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--gray-light);
}

.sidebar-profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    margin-bottom: 10px;
}

.sidebar-initials {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sidebar-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
}

.sidebar-menu {
    padding: 20px 0;
    /* Add this line */
    flex: 1;
    overflow-y: auto;
}


.menu-title {
    padding: 0 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    padding-top: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 5px 0;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
    text-decoration: none;
}

.menu-item:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.menu-item.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.menu-item i {
    margin-right: 10px;
    font-size: 18px;
}

.menu-item span {
    font-size: 14px;
    font-weight: 500;
}

.main-content {
    margin-left: 280px;
    padding: 30px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
    }
}

.menu-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-right: 15px;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   HEADER & TOP BAR (Used in dashboard, reports, savings, transactions)
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1,
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 10px 15px 10px 40px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    width: 250px;
    font-size: 14px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.user-info p {
    font-size: 12px;
    color: var(--gray);
}

.theme-toggle {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 5px;
    display: flex;
    cursor: pointer;
}

.theme-toggle span {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.theme-toggle .light {
    background: white;
    color: var(--primary);
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */
/* Cards */
.stat-card,
.card,
.chart-card,
.transactions-section,
.settings-card,
.goal-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-card:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ef233c;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    margin-right: 10px;
}

.toast-notification.success {
    background: #4cc9f0;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
}

.btn-outline {
    background: none;
    border: 1px solid #dee2e6;
}

.btn-outline:hover {
    background-color: #f8f9fa;
}

.btn-secondary {
    background-color: #e9ecef;
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #dee2e6;
}

.btn-danger {
    background: rgba(239, 35, 60, 0.1);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 35, 60, 0.2);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 35px;
    cursor: pointer;
    color: #777;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    cursor: pointer;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3,
.modal-title {
    font-size: 20px;
    color: var(--dark);
}

.close-modal,
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close-modal:hover,
.modal-close:hover {
    color: var(--dark);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid var(--gray-light);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* ==========================================================================
   DASHBOARD SPECIFIC STYLES
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-title {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.income {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
}

.stat-icon.expense {
    background: linear-gradient(135deg, #f72585, #ef233c);
}

.stat-icon.savings {
    background: linear-gradient(135deg, #3a86ff, #3f37c9);
}

.stat-icon.investments {
    background: linear-gradient(135deg, #4895ef, #4cc9f0);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    font-size: 14px;
    color: var(--gray);
}

.chart-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
}

.chart-period {
    display: flex;
    gap: 10px;
}

.period-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: var(--gray-light);
    color: var(--gray);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.period-btn.active {
    background: var(--primary);
    color: white;
}

.chart-container {
    height: 300px;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
}

.view-all {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    text-align: left;
    padding: 12px 15px;
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-light);
}

.transactions-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.transaction-icon.shopping {
    background: linear-gradient(135deg, #f72585, #ef233c);
}

.transaction-icon.food {
    background: linear-gradient(135deg, #f8961e, #f3722c);
}

.transaction-icon.transport {
    background: linear-gradient(135deg, #577590, #4a7c59);
}

.transaction-icon.salary {
    background: linear-gradient(135deg, #43aa8b, #90be6d);
}

.transaction-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.transaction-info p {
    font-size: 12px;
    color: var(--gray);
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.income {
    color: var(--success);
}

.transaction-amount.expense {
    color: var(--danger);
}

.income {
    color: var(--success);
}

.expense {
    color: var(--danger);
}

.transaction-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.transaction-status.completed {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.transaction-status.pending {
    background: rgba(247, 37, 133, 0.1);
    color: var(--warning);
}

/* ==========================================================================
   AUTH PAGES (Index, Signup, Forgot Password)
   ========================================================================== */
.auth-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    text-align: center;
}

.auth-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
}

.form-container {
    padding: 20px 30px;
}

.links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.links a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.links a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 10px;
    color: #777;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #e0e0e0;
}

.error-message {
    color: #ff3333;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.success-message {
    color: #4bb543;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

/* ==========================================================================
   INCOME PAGE SPECIFIC STYLES
   ========================================================================== */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-change {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.change-up {
    color: var(--success);
}

.change-down {
    color: var(--danger);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-header .amount {
    color: #4cc9f0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    font-weight: 600;
    color: #495057;
}

.income-source {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.source-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.salary { background-color: #4cc9f0; }
.freelance { background-color: #f72585; }
.investment { background-color: #7209b7; }
.business { background-color: #3a0ca3; }
.other { background-color: #4361ee; }

.amount {
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background-color: #fff3bf;
    color: #f59f00;
}

.delete-btn {
    background-color: #ffe3e3;
    color: #fa5252;
}

.action-btn:hover {
    opacity: 0.8;
}

/* Logout button styling */
.sidebar-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid var(--gray-light);
}

.logout-form {
    width: 100%;
}

#logoutBtn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    color: var(--danger);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

#logoutBtn:hover {
    background-color: rgba(239, 35, 60, 0.1);
    color: var(--danger);
}

#logoutBtn i {
    margin-right: 10px;
    font-size: 16px;
}
/* Make sure sidebar-menu is flex column */

/* ========== lplate (public site) ========== */
.fv-body {
    font-family: "DM Sans", system-ui, sans-serif;
    background: linear-gradient(165deg, #f4f7f0 0%, #eef6f3 40%, #faf8f3 100%);
    color: #1c2b21;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fv-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(28, 43, 33, 0.08);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
}

.fv-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.fv-brand {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1c5c3a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.fv-brand-mark { font-size: 1.35rem; }

.fv-nav-toggle {
    display: none;
    border: 1px solid #c5d4c8;
    background: #fff;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    cursor: pointer;
}

.fv-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    font-size: 0.92rem;
}

.fv-nav a {
    color: #2d4a38;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.fv-nav a:hover {
    background: rgba(28, 92, 58, 0.08);
    color: #145232;
}

.fv-nav-divider {
    width: 1px;
    height: 1.1rem;
    background: #c5d4c8;
    margin: 0 0.25rem;
}

.fv-nav-user {
    font-size: 0.85rem;
    color: #5a6b5f;
}

.fv-main {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.fv-footer {
    border-top: 1px solid rgba(28, 43, 33, 0.08);
    background: rgba(255, 255, 255, 0.7);
    padding: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
    color: #4a5c50;
}

.fv-footer-tagline {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2d4a38;
}

.fv-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    font-size: 0.9rem;
}

.fv-footer-nav a {
    color: #1c7c4c;
    text-decoration: none;
    font-weight: 600;
}

.fv-footer-nav a:hover {
    text-decoration: underline;
}

.fv-legal h2 {
    font-size: 1.1rem;
    color: #1c5c3a;
    margin: 1.35rem 0 0.5rem;
}

.fv-legal p,
.fv-legal ul {
    margin-bottom: 0.65rem;
    line-height: 1.55;
    color: #2d3a33;
}

.fv-account-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fv-account-trigger {
    gap: 0.35rem;
}

.fv-account-chevron {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-left: 0.15rem;
}

.fv-account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 12rem;
    background: #fff;
    border: 1px solid #e0e8e2;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 0.35rem 0;
    z-index: 60;
}

.fv-account-dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    color: #2d4a38;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.fv-account-dropdown a:hover {
    background: #f0f6f2;
}

.fv-account-dropdown-logout {
    color: #9b2335 !important;
    border-top: 1px solid #eef2ef;
    margin-top: 0.25rem;
    padding-top: 0.65rem !important;
}

.fv-input-disabled,
input.fv-input-disabled:disabled {
    opacity: 0.9;
    background: #eef2ef;
    cursor: not-allowed;
    color: #4a5c50;
}

@media (max-width: 820px) {
    .fv-nav .fv-account-wrap {
        width: 100%;
        justify-content: flex-start;
    }
    .fv-account-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }
}

.fv-flash-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem 0;
}

.fv-flash {
    padding: 0.65rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.fv-flash-success { background: #d8f3e0; color: #145232; }
.fv-flash-warning { background: #fff3cd; color: #664d03; }
.fv-flash-danger { background: #fde2e4; color: #842029; }
.fv-flash-info { background: #e7f1ff; color: #084298; }

.fv-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.fv-hero-text {
    max-width: 36rem;
}

@media (max-width: 820px) {
    .fv-hero { grid-template-columns: 1fr; }
    .fv-nav-toggle { display: inline-block; }
    .fv-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid #e0e8e2;
        padding: 0.75rem 1.25rem 1rem;
        box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    }
    .fv-nav.is-open { display: flex; }
    .fv-header-inner { position: relative; }
    .fv-nav-divider { display: none; }
}

.fv-hero h1 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    color: #12402a;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.fv-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #3d5345;
    margin-bottom: 1.25rem;
}

.fv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.fv-hero-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(28, 92, 58, 0.12);
    box-shadow: 0 8px 30px rgba(20, 60, 40, 0.06);
}

.fv-hero-card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: #1c5c3a;
}

.fv-hero-card--illustration {
    padding: 0;
    overflow: hidden;
    align-self: center;
    width: 100%;
    max-width: min(100%, 28rem);
}

.fv-hero-illustration {
    display: block;
    width: 100%;
    height: auto;
}

.fv-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    margin-bottom: 0.25rem;
}

@media (max-width: 560px) {
    .fv-tool-grid {
        grid-template-columns: 1fr;
    }
}

.fv-tool-form select {
    width: 100%;
}

.fv-cta-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 720px) {
    .fv-cta-strip {
        grid-template-columns: 1fr;
    }
}

.fv-cta-card {
    background: #fff;
    border: 1px solid rgba(28, 92, 58, 0.12);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 6px 24px rgba(20, 60, 40, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fv-cta-card-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
    color: #12402a;
    margin-bottom: 0.5rem;
}

.fv-cta-card-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #3d5345;
    margin-bottom: 1.1rem;
    flex: 1;
}

.fv-list {
    padding-left: 1.2rem;
    line-height: 1.55;
    color: #3d5345;
}

.fv-list li { margin-bottom: 0.45rem; }

.fv-page h1 {
    font-family: "Fraunces", Georgia, serif;
    color: #12402a;
    margin-bottom: 0.75rem;
}

.fv-narrow { max-width: 520px; }

.fv-muted {
    color: #5a6b5f;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.fv-btn {
    display: inline-block;
    background: #1c7c4c;
    color: #fff !important;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.fv-btn:hover { background: #145c38; }

.fv-btn-outline {
    background: transparent;
    color: #1c5c3a !important;
    border: 2px solid #1c7c4c;
}

.fv-btn-outline:hover {
    background: rgba(28, 124, 76, 0.08);
}

.fv-btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.fv-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin: 0.75rem 0 0.35rem;
    color: #2d4a38;
}

.fv-form input[type="text"],
.fv-form input[type="email"],
.fv-form input[type="password"],
.fv-form input[type="number"],
.fv-form input[type="file"],
.fv-form textarea,
.fv-input {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #c5d4c8;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.fv-form textarea { resize: vertical; }

.fv-form .fv-btn { margin-top: 1rem; }

.fv-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e8e2;
}

.fv-table th,
.fv-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eef2ef;
}

.fv-table th {
    background: #f0f6f2;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #3d5345;
}

.fv-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.fv-alert-warn {
    background: #fff3cd;
    color: #664d03;
}

.fv-resource-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fv-resource-card {
    background: #fff;
    border: 1px solid #e0e8e2;
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.fv-resource-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.fv-resource-head h2 {
    font-size: 1.1rem;
    color: #12402a;
    margin: 0;
}

.fv-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.fv-badge-free { background: #d8f3e0; color: #145232; }
.fv-badge-paid { background: #fde2e4; color: #842029; }

.fv-price-note {
    font-size: 0.9rem;
    color: #664d03;
    margin-top: 0.35rem;
}

.fv-link { color: #1c7c4c; font-weight: 600; }

.fv-chat-page .fv-chat-log {
    min-height: 200px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e8e2;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.fv-chat-bubble {
    max-width: 92%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    line-height: 1.45;
    font-size: 0.92rem;
}

.fv-chat-user {
    margin-left: auto;
    background: #e3f2ec;
    color: #1c2b21;
}

.fv-chat-bot {
    background: #f4f7f5;
    border: 1px solid #e0e8e2;
}

.fv-chat-bot.fv-chat-unknown {
    border-color: #f5c2c7;
    background: #fff5f5;
}

.fv-chat-form textarea {
    width: 100%;
    border: 1px solid #c5d4c8;
    border-radius: 10px;
    padding: 0.65rem;
    font: inherit;
    margin-bottom: 0.5rem;
}

.fv-panel {
    background: #fff;
    border: 1px solid #e0e8e2;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.fv-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.fv-small { font-size: 0.85rem; color: #6a7d70; }

.fv-inbox { list-style: none; padding: 0; }
.fv-inbox-item {
    background: #fff;
    border: 1px solid #e0e8e2;
    border-radius: 10px;
    padding: 0.85rem;
    margin-bottom: 0.65rem;
}
.fv-inbox-meta { font-size: 0.82rem; color: #5a6b5f; margin-bottom: 0.35rem; }
.fv-inbox-body { white-space: pre-wrap; font-size: 0.92rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}





