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

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --secondary: #059669;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --error: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
}

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

.navbar {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    background: #111827;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle--active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle--active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle--active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links a:not(.btn) {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 0 1.1rem;
    border-right: 1px solid #d1d5db;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links .btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.5;
    color: #fff !important;
    margin-left: 1rem;
}

.nav-links .btn:hover {
    color: #fff !important;
}

.nav-pro-badge {
    border-radius: 20px !important;
    padding: 5px 12px !important;
    margin-left: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.nav-upgrade-btn {
    border-radius: 20px !important;
}

.nav-avatar-wrap {
    position: relative;
    margin-left: 1.25rem;
}

.nav-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.nav-avatar-btn:hover {
    opacity: 0.75;
}

.nav-avatar-btn svg {
    width: 36px;
    height: 36px;
}

.nav-avatar-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 160px;
    z-index: 200;
    overflow: hidden;
}

.nav-avatar-menu--open {
    display: block;
}

.nav-avatar-item {
    display: block !important;
    padding: 0.7rem 1.25rem !important;
    color: var(--dark) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-right: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: background 0.15s;
    width: 100%;
}

.nav-avatar-item:hover {
    background: #f1f5f9;
    color: var(--primary) !important;
}

.nav-avatar-logout {
    border-top: 1px solid #e2e8f0 !important;
    color: #dc2626 !important;
}

.nav-avatar-logout:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border-color: transparent;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-warning {
    background: #d97706;
    color: #fff;
    border-color: transparent;
}

.btn-warning:hover {
    background: #b45309;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
    border-color: #d1d5db;
}

.btn-success {
    background: #16a34a;
    color: #fff;
    border-color: transparent;
}

.btn-success:hover {
    background: #15803d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.btn-outline-primary {
    background: transparent;
    border: 1.5px solid #3b82f6;
    color: #1a56db;
}

.btn-outline-primary:hover {
    background: #eff6ff;
    border-color: #1a56db;
    color: #1e40af;
}

.btn-outline-danger {
    background: transparent;
    border: 1.5px solid #fca5a5;
    color: #dc2626;
}

.btn-outline-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #b91c1c;
}

.btn-outline-secondary {
    background: transparent;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
}

.btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-outline-success {
    background: transparent;
    border: 1.5px solid #86efac;
    color: #16a34a;
}

.btn-outline-success:hover {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #15803d;
}

.btn-outline-warning {
    background: transparent;
    border: 1.5px solid #fcd34d;
    color: #b45309;
}

.btn-outline-warning:hover {
    background: #fffbeb;
    border-color: #d97706;
    color: #92400e;
}

.btn-outline-info {
    background: transparent;
    border: 1.5px solid #67e8f9;
    color: #0891b2;
}

.btn-outline-info:hover {
    background: #ecfeff;
    border-color: #0891b2;
    color: #0e7490;
}

.btn-info {
    background: #0891b2;
    color: #fff;
    border-color: transparent;
}

.btn-info:hover {
    background: #0e7490;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}


.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.main-content {
    flex: 1;
}

.landing-hero {
    background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(96,165,250,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.landing-headline {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.landing-subheadline {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.88;
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.landing-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.landing-btn-primary {
    display: inline-block;
    background: #fff;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.85rem 2.2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.landing-btn-primary:hover {
    background: #f0f6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

.landing-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.85rem 2.2rem;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.35);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.landing-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.55);
}

.landing-trust-line {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.88rem;
    opacity: 0.75;
}

.landing-trust-line span {
    white-space: nowrap;
}

.landing-value-section {
    background: #fff;
    padding: 5rem 2rem;
}

.landing-value-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.landing-section-title {
    text-align: center;
    font-size: 1.85rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.landing-section-intro {
    text-align: center;
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

.landing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.landing-card {
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 2.25rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.25s, transform 0.2s;
}

.landing-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.landing-card-icon {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.6rem;
}

.landing-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.65;
}

.landing-calm-statement {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--light);
}

.landing-calm-statement p {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: -0.01em;
    max-width: 600px;
    margin: 0 auto;
}

.landing-footer-tagline {
    padding: 2.5rem 2rem;
    text-align: center;
    background: #1f2937;
    color: rgba(255,255,255,0.7);
}

.landing-footer-tagline p {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.auth-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

.success-card {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.error {
    color: var(--error);
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-social:hover:not(.btn-disabled) {
    background: var(--light);
    border-color: #9ca3af;
}

.btn-social.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #9ca3af;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #9ca3af;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1d5db;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.flash-messages {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 360px;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash {
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    border-radius: 10px;
    margin: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    font-size: 0.95rem;
    position: relative;
    line-height: 1.4;
}

.flash-close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    color: inherit;
}

.flash-close:hover {
    opacity: 1;
}

.flash-success {
    background: #dcfce7;
    color: var(--success);
}

.flash-error {
    background: #fee2e2;
    color: var(--error);
}

.flash-info {
    background: #dbeafe;
    color: var(--primary);
}

@media (max-width: 480px) {
    .flash-messages {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
        gap: 0;
    }
    .flash {
        border-radius: 0;
        border-top: 1px solid rgba(0,0,0,0.06);
    }
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.dashboard-top-row .dashboard-header {
    margin-bottom: 0;
}

.todo-section-inline {
    min-width: 0;
}

@media (max-width: 768px) {
    .dashboard-top-row {
        grid-template-columns: 1fr;
    }
}

.dashboard-header {
    margin-bottom: 2rem;
}

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

.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-header h1 {
    color: var(--dark);
    font-size: 2rem;
}

.user-email {
    color: #6b7280;
    font-size: 0.9rem;
}

.login-methods {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.company-name {
    color: #6b7280;
    font-size: 1.1rem;
}

.dashboard-4col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card-saldo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-col .dashboard-card {
    flex: 1;
}

@media (max-width: 900px) {
    .dashboard-4col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-4col {
        grid-template-columns: 1fr;
    }
}

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

.dashboard-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-card h3 {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.card-subtitle {
    color: #9ca3af;
    font-size: 0.85rem;
}

.dashboard-card-clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.dashboard-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.dashboard-card-clickable:hover .card-action {
    opacity: 1;
}

.card-action {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dashboard-welcome {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-welcome h2 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

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

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content p {
    opacity: 0.8;
}

.footer-links {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-separator {
    margin: 0 0.5rem;
}

.legal-page {
    padding: 3rem 1rem;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.legal-container {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.legal-container h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.legal-updated {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0f0f0;
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-section ul {
    color: #4b5563;
    line-height: 1.7;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section li {
    margin-bottom: 0.25rem;
}

.legal-section a {
    color: #2563eb;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 1.5rem 1.25rem;
    }

    .legal-container h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .landing-headline {
        font-size: 2rem;
    }
    
    .landing-subheadline {
        font-size: 1rem;
    }

    .landing-hero {
        padding: 4rem 1.5rem 3.5rem;
    }

    .landing-cards {
        grid-template-columns: 1fr;
    }

    .landing-trust-line {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .landing-calm-statement p {
        font-size: 1.15rem;
    }

}

@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e2e8f0;
        z-index: 105;
    }

    .nav-links--open {
        display: flex;
    }

    .nav-links a:not(.nav-avatar-item),
    .nav-links .btn,
    .nav-links .badge {
        padding: 0.75rem 2rem;
        border-radius: 0;
        text-align: left;
        width: 100%;
        display: block;
        border-right: none;
    }

    .nav-links a:not(.btn):not(.nav-avatar-item):hover {
        background: #f1f5f9;
    }

    .nav-links .btn {
        margin: 0.25rem 1.5rem;
        width: auto;
        text-align: center;
        border-radius: 10px;
    }

    .nav-links .badge {
        margin: 0.25rem 1.5rem;
        width: fit-content;
    }

    .nav-avatar-wrap {
        margin-left: 0;
        width: 100%;
        border-top: 1px solid #e2e8f0;
    }

    .nav-avatar-btn {
        display: none;
    }

    .nav-avatar-menu {
        display: block !important;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: unset;
    }

    .nav-avatar-item {
        padding: 0.75rem 2rem !important;
        border-radius: 0;
    }

    .nav-avatar-logout {
        border-top: 1px solid #e2e8f0 !important;
    }

    .navbar {
        position: sticky;
    }
}

.btn-paid-toggle .paid-hover {
    display: none;
}

.btn-paid-toggle .paid-default {
    display: inline;
}

.btn-paid-toggle:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

.btn-paid-toggle:hover .paid-default {
    display: none;
}

.btn-paid-toggle:hover .paid-hover {
    display: inline;
}

.balance-page {
    background: #f5f7fa;
    min-height: calc(100vh - 160px);
    padding: 2.5rem 1.5rem 3rem;
}

.balance-page .balance-inner {
    max-width: 960px;
    margin: 0 auto;
}

.balance-header {
    margin-bottom: 2rem;
}

.balance-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.balance-header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.balance-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.balance-card {
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.balance-card--primary {
    background: linear-gradient(135deg, #1a56db 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.25);
}

.balance-card--positive {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.balance-card--negative {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.balance-card--neutral {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(107, 114, 128, 0.18);
}

.balance-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.balance-card__meta {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.balance-card__meta a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.9;
}

.balance-bank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

.balance-sections-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.balance-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
}

.balance-section__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-section__header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.balance-section__body {
    padding: 1.5rem;
}

.balance-form .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.4rem;
}

.balance-form .form-control {
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
}

.balance-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.balance-form .input-group-text {
    border: 1.5px solid #e5e7eb;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.balance-form .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.balance-form .form-text {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.4rem;
}

.balance-form .btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
}

.balance-bank-connect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.balance-bank-connect a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a56db;
    text-decoration: none;
    transition: color 0.2s;
}

.balance-bank-connect a:hover {
    color: #1e40af;
}

.balance-bank-connect .form-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0.25rem 0 0;
}

.balance-bank-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #d1fae5;
    overflow: hidden;
}

.balance-bank-section .balance-section__header {
    background: #f0fdf4;
}

.balance-bank-section .balance-section__header h2 {
    color: #059669;
}

.balance-table {
    width: 100%;
    border-collapse: collapse;
}

.balance-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.balance-table tbody td {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f5f5f5;
}

.balance-table tbody td:first-child {
    white-space: nowrap;
}

.balance-table tbody tr:last-child td {
    border-bottom: none;
}

.balance-table tbody tr:hover {
    background: #f9fafb;
}

.balance-table .balance-table__amount {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.balance-table .balance-table__note {
    color: #9ca3af;
    font-size: 0.85rem;
}

.balance-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}


.balance-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.balance-modal .modal-header {
    background: #f9fafb;
    border-bottom: 1px solid #f0f0f0;
    padding: 1.25rem 1.5rem;
}

.balance-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.balance-modal .modal-body {
    padding: 1.5rem;
}

.balance-modal .invoice-list {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
}

.balance-modal .invoice-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    transition: background 0.15s;
}

.balance-modal .invoice-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.balance-modal .invoice-item:hover {
    background: #f9fafb;
}

.balance-modal .invoice-item label {
    cursor: pointer;
    flex-grow: 1;
    margin: 0;
}

.balance-modal .form-check-input {
    min-width: 18px;
    min-height: 18px;
    border-radius: 4px;
    border: 1.5px solid #d1d5db;
}

.balance-modal .form-check-input:checked {
    background-color: #1a56db;
    border-color: #1a56db;
}

@media (max-width: 768px) {
    .balance-page {
        padding: 1.5rem 1rem 2rem;
    }

    .balance-cards-row {
        grid-template-columns: 1fr;
    }

    .balance-sections-row {
        grid-template-columns: 1fr;
    }

    .balance-amount {
        font-size: 1.75rem;
    }

    .balance-header h1 {
        font-size: 1.5rem;
    }
}

.fv-page {
    background: #f5f7fa;
    min-height: calc(100vh - 160px);
    padding: 2.5rem 1.5rem 3rem;
}

.fv-page .fv-inner {
    max-width: 1060px;
    margin: 0 auto;
}

.fv-page .fv-inner--narrow {
    max-width: 860px;
}

.fv-header {
    margin-bottom: 2rem;
}

.fv-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.fv-header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.fv-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.fv-cards-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.fv-cards-row--2 {
    grid-template-columns: 1fr 1fr;
}

.fv-cards-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.fv-cards-row--4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.fv-stat-card {
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.fv-stat-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-bottom: 0.4rem;
}

.fv-stat-card__value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.fv-stat-card__meta {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-top: 0.35rem;
}

.fv-stat-card--blue {
    background: linear-gradient(135deg, #1a56db 0%, #3b82f6 100%);
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.2);
}

.fv-stat-card--green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
}

.fv-stat-card--amber {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.fv-stat-card--red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.2);
}

.fv-stat-card--slate {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    box-shadow: 0 4px 14px rgba(71, 85, 105, 0.2);
}

.fv-stat-card--light {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.fv-stat-card--light .fv-stat-card__label {
    color: #6b7280;
    opacity: 1;
}

.fv-stat-card--light .fv-stat-card__meta {
    color: #9ca3af;
    opacity: 1;
}

.fv-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.fv-section__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fv-section__header h2,
.fv-section__header h3,
.fv-section__header h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.fv-section__body {
    padding: 1.5rem;
}

.fv-table {
    width: 100%;
    border-collapse: collapse;
}

.fv-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.fv-table thead th.text-end {
    text-align: right;
}

.fv-table thead th.text-center {
    text-align: center;
}

.fv-table tbody td {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.fv-table tbody td.text-end {
    text-align: right;
}

.fv-table tbody td.text-center {
    text-align: center;
}

.fv-table tbody tr:last-child td {
    border-bottom: none;
}

.fv-table tbody tr:hover {
    background: #f9fafb;
}

.fv-table tfoot td {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}

.fv-table tfoot td.text-end {
    text-align: right;
}

.fv-table .fv-amount {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.fv-table .fv-nowrap {
    white-space: nowrap;
}

.fv-table .fv-muted {
    color: #9ca3af;
    font-size: 0.85rem;
}

.fv-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.fv-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.evt-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.evt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.evt-table thead th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    white-space: nowrap;
}

.evt-table thead th.text-end {
    text-align: right;
}

.evt-table tbody td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f9fafb;
    vertical-align: middle;
}

.evt-table tbody td.text-end {
    text-align: right;
}

.evt-table tbody tr {
    transition: background-color 0.15s ease;
}

.evt-table tbody tr:hover {
    background-color: #f8fafc;
}

.evt-table tbody tr:last-child td {
    border-bottom: none;
}

.evt-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.evt-time {
    display: block;
    font-size: 0.75rem;
    color: #c0c5cc;
    margin-top: 0.125rem;
}

.evt-title {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.9rem;
}

.evt-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.evt-badge--primary,
.evt-badge--info {
    background: #eff6ff;
    color: #2563eb;
}

.evt-badge--success {
    background: #ecfdf5;
    color: #059669;
}

.evt-badge--warning {
    background: #fffbeb;
    color: #d97706;
}

.evt-badge--danger {
    background: #fef2f2;
    color: #dc2626;
}

.evt-badge--secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.evt-badge--dark {
    background: #f1f5f9;
    color: #475569;
}

.evt-amount {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.evt-amount--positive {
    color: #059669;
}

.evt-amount--negative {
    color: #dc2626;
}

.evt-note {
    font-size: 0.82rem;
    color: #9ca3af;
    max-width: 180px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evt-undo-btn {
    font-size: 0.78rem;
    font-weight: 500;
    color: #dc2626;
    background: none;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.evt-undo-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.evt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #f3f4f6;
}

.evt-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.evt-pagination__btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.evt-pagination__btn--disabled {
    color: #d1d5db;
    pointer-events: none;
}

.evt-pagination__pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.evt-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.evt-pagination__page:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.evt-pagination__page--active {
    background: #1a56db;
    color: #fff;
    pointer-events: none;
}

.evt-pagination__ellipsis {
    width: 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: #d1d5db;
}

@media (max-width: 576px) {
    .evt-table thead th,
    .evt-table tbody td {
        padding: 0.75rem 0.75rem;
        font-size: 0.82rem;
    }

    .evt-amount {
        font-size: 0.9rem;
    }

    .evt-pagination {
        flex-wrap: wrap;
    }
}

.fv-back {
    text-align: center;
    margin-top: 1.5rem;
}

.fv-back a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.fv-back a:hover {
    color: #1a56db;
}

.fv-back-inline {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.fv-back-inline:hover {
    color: #1a56db;
}

.fv-form .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.4rem;
}

.fv-form .form-control,
.fv-form .form-select {
    padding: 0.65rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
}

.fv-form .form-control:focus,
.fv-form .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.fv-form .input-group-text {
    border: 1.5px solid #e5e7eb;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 500;
}

.fv-form .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.fv-form .form-text {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.35rem;
}

.fv-form .btn-primary {
    border-radius: 10px;
    font-weight: 600;
    border: none;
}

.fv-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.fv-modal .modal-header {
    background: #f9fafb;
    border-bottom: 1px solid #f0f0f0;
    padding: 1.25rem 1.5rem;
}

.fv-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.fv-modal .modal-body {
    padding: 1.5rem;
}

.fv-modal .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.5rem;
}

.fv-modal .form-control,
.fv-modal .form-select {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    background: #fafbfc;
}

.fv-modal .form-control:focus,
.fv-modal .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.fv-modal .input-group-text {
    border: 1.5px solid #e5e7eb;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: #f9fafb;
    color: #6b7280;
}

.fv-modal .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.fv-modal .form-check-input {
    min-width: 18px;
    min-height: 18px;
    border-radius: 4px;
    border: 1.5px solid #d1d5db;
}

.fv-modal .form-check-input:checked {
    background-color: #1a56db;
    border-color: #1a56db;
}

.fv-modal .btn {
    border-radius: 10px;
}

.fv-alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.fv-alert--warning {
    background: #fef3c7;
    color: #92400e;
}

.fv-alert--danger {
    background: #fee2e2;
    color: #991b1b;
}

.fv-alert--info {
    background: #dbeafe;
    color: #1e40af;
}

.fv-alert--success {
    background: #dcfce7;
    color: #166534;
}

.fv-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fv-badge--green {
    background: #dcfce7;
    color: #166534;
}

.fv-badge--red {
    background: #fee2e2;
    color: #991b1b;
}

.fv-badge--amber {
    background: #fef3c7;
    color: #92400e;
}

.fv-badge--blue {
    background: #dbeafe;
    color: #1e40af;
}

.fv-badge--slate {
    background: #f1f5f9;
    color: #475569;
}

.fv-btn-ghost {
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.fv-btn-ghost:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.fv-progress {
    height: 10px;
    border-radius: 5px;
    background: #e5e7eb;
    overflow: hidden;
}

.fv-progress__bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.fv-progress__bar--green {
    background: linear-gradient(90deg, #059669, #10b981);
}

.fv-progress__bar--amber {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.fv-progress__bar--red {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

@media (max-width: 768px) {
    .fv-page {
        padding: 1.5rem 1rem 2rem;
    }

    .fv-cards-row--2,
    .fv-cards-row--3,
    .fv-cards-row--4 {
        grid-template-columns: 1fr;
    }

    .fv-header h1 {
        font-size: 1.5rem;
    }

    .fv-header-row {
        flex-direction: column;
    }

    .fv-stat-card__value {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .fv-table thead th,
    .fv-table tbody td {
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
    }
}

.docs-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    background: #f0f4f8;
}

.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 10;
}

.docs-sidebar__inner {
    padding: 2rem 1.25rem;
}

.docs-sidebar__header {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.docs-sidebar__search {
    position: relative;
    margin-bottom: 1.5rem;
}

.docs-sidebar__search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.docs-sidebar__search input {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    background: #f8fafc;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.docs-sidebar__search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
    background: #fff;
}

.docs-sidebar__clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}

.docs-sidebar__clear:hover {
    color: #475569;
}

.docs-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.docs-sidebar__link:hover {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
}

.docs-sidebar__link.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

.docs-sidebar__link.active .docs-sidebar__num {
    background: var(--primary);
    color: #fff;
}

.docs-sidebar__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.docs-sidebar__results {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    padding: 0 0.75rem;
}

.docs-main {
    flex: 1;
    min-width: 0;
    padding: 2.5rem 3rem 4rem;
}

.docs-main__inner {
    max-width: 760px;
    margin: 0 auto;
}

.docs-hero {
    margin-bottom: 3rem;
}

.docs-hero__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.docs-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.docs-section {
    margin-bottom: 3rem;
    scroll-margin-top: 80px;
}

.docs-section__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.docs-section__heading h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.docs-section__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.docs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.docs-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.docs-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.docs-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.docs-card p + p {
    margin-top: 0.5rem;
}

.docs-card ul,
.docs-card ol {
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.7;
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.docs-card li {
    margin-bottom: 0.25rem;
}

.docs-card strong {
    color: #1e293b;
    font-weight: 600;
}

.docs-no-results {
    text-align: center;
    padding: 4rem 1rem;
}

.docs-no-results i {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.docs-no-results p {
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.docs-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 20;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
    cursor: pointer;
    transition: transform 0.15s;
}

.docs-mobile-toggle:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        box-shadow: none;
    }

    .docs-sidebar--open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .docs-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .docs-main {
        padding: 2rem 1.5rem 5rem;
    }
}

@media (max-width: 576px) {
    .docs-main {
        padding: 1.5rem 1rem 5rem;
    }

    .docs-hero__title {
        font-size: 1.6rem;
    }

    .docs-hero__subtitle {
        font-size: 0.95rem;
    }

    .docs-section__heading h2 {
        font-size: 1.2rem;
    }

    .docs-card {
        padding: 1rem 1.1rem;
    }
}

.bank-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bank-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: bankModalIn 0.2s ease-out;
}

@keyframes bankModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.bank-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.bank-modal-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.bank-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.bank-modal-close:hover {
    color: #374151;
}

.bank-modal-search {
    padding: 0.75rem 1.5rem;
}

.bank-modal-search input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.bank-modal-search input:focus {
    border-color: #4f7cff;
    box-shadow: 0 0 0 3px rgba(79,124,255,0.1);
    background: #fff;
}

.bank-provider-list {
    overflow-y: auto;
    max-height: 45vh;
    padding: 0 1rem;
}

.bank-provider-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.12s;
    margin-bottom: 2px;
}

.bank-provider-item:hover {
    background: #f3f4f6;
}

.bank-provider-item input[type="radio"] {
    display: none;
}

.bank-provider-item input[type="radio"]:checked ~ .bank-provider-check {
    background: #4f7cff;
    border-color: #4f7cff;
}

.bank-provider-item input[type="radio"]:checked ~ .bank-provider-check::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.bank-provider-item input[type="radio"]:checked ~ .bank-provider-info .bank-provider-name {
    color: #4f7cff;
    font-weight: 600;
}

.bank-provider-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.bank-provider-info .bank-provider-logo + .bank-provider-name,
.bank-provider-info .bank-provider-icon + .bank-provider-name {
    padding-left: 1rem;
    border-left: 1.5px solid #d1d5db;
}

.bank-provider-logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
    border-radius: 8px;
}

.bank-provider-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.bank-provider-name {
    font-size: 0.92rem;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-provider-check {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.bank-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.fv-tooltip-wrap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.fv-tooltip-box {
    display: none;
    position: fixed;
    background: #1e293b;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    width: 260px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

.help-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 2rem 0 0.75rem 0;
}

.help-content h3:first-child {
    margin-top: 1rem;
}

.help-content p {
    margin-bottom: 1rem;
    color: #374151;
}
