:root {
    /* Comic / Neo-Brutalism Palette */
    --bg-color: #f0f4f8;
    /* Soft blue-gray for contrast */
    --surface-color: #ffffff;

    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: #000000;
    /* High contrast always */
    --text-tertiary: #555555;
    --text-color: #000000;
    --text-muted: #555555;

    /* Borders (Hard) */
    --border-color: #000000;
    --card-bg: #ffffff;
    --border-width: 3px;

    /* Comic Colors (Vibrant) */
    --primary-color: #6366f1;
    /* Indigo */
    --primary-light: #a5b4fc;
    --accent-color: #ff6b6b;
    /* Red/Coral */
    --success-color: #34d399;
    /* Green */
    --danger-color: #ef4444;
    /* Red */
    --warning-color: #fbbf24;
    /* Yellow */
    --info-color: #60a5fa;
    /* Blue */

    /* Chart Colors (Vibrant/Solid) */
    --chart-1: #ff6b6b;
    --chart-2: #4ade80;
    --chart-3: #fbbf24;
    --chart-4: #60a5fa;
    --chart-5: #a78bfa;
    --chart-6: #f472b6;

    /* Shadows (Hard Offset) */
    --shadow-sm: 2px 2px 0 #000;
    --shadow-md: 4px 4px 0 #000;
    --shadow-lg: 6px 6px 0 #000;
    --shadow-comic: 4px 4px 0 #000;

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Dot pattern background for comic feel */
    background-image: radial-pattern(#000 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    background: var(--surface-color);
    border-bottom: var(--border-width) solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-comic);
}

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

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #fff;
    padding: 0.5rem 1rem;
    border: var(--border-width) solid #000;
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.1s;
}

.logo:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
}

.logo img {
    height: 32px;
    width: auto;
}

/* Navbar Layout */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    /* Placeholder for hover */
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    background: #fff;
    border-color: #000;
    box-shadow: 3px 3px 0 #000;
    transform: translate(-2px, -2px);
}

.nav-primary {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #fff;
    border: 2px solid #000;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 2px 2px 0 #000;
    transition: all 0.15s ease;
}

.nav-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: #000;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger Animation - X when active */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Responsive Navbar */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 3px solid #000;
        border-top: none;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 6px 0 #000;
        padding: 1rem;
        gap: 0.5rem;
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }

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

    .nav-links a {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: left;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-content {
        position: static;
        transform: none !important;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        border: 2px solid #000;
        margin-top: 0.5rem;
        min-width: 100%;
    }

    .profile-dropdown .nav-dropdown-content {
        right: auto;
        width: 100%;
    }

    .privacy-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Navbar Dropdowns */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: #fff;
    border: 2px solid #000;
    cursor: pointer;
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 2px 2px 0 #000;
    transition: all 0.15s ease;
    text-transform: uppercase;
}

.nav-dropdown-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    opacity: 1;
    /* Solid */
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface-color);
    min-width: 200px;
    box-shadow: var(--shadow-comic);
    border: var(--border-width) solid #000;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    z-index: 1000;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .nav-dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Profile Dropdown Specifics */
.profile-dropdown .nav-dropdown-content {
    left: auto;
    right: 0;
    transform: translateY(10px);
    width: 220px;
}

.profile-dropdown:hover .nav-dropdown-content {
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block;
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.15s;
    text-transform: none;
    /* Keep dropdown items normal case */
}

.nav-dropdown-content a:hover {
    background: #f0f4f8;
    border-color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 #000;
}

.dropdown-divider {
    height: 2px;
    background: #000;
    margin: 0.5rem 0;
}

.logout-link {
    color: var(--danger-color) !important;
}

.logout-link:hover {
    background: #fef2f2 !important;
    border-color: var(--danger-color) !important;
}

/* Profile Button */
.profile-btn {
    padding: 6px;
    border-radius: 50%;
    /* Circle profile ? Or Square comic? Keep circle but with border */
    color: var(--text-primary);
    background: #fff;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn:hover {
    background: var(--primary-light);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.btn-login,
.btn-logout {
    padding: 0.6rem 1.2rem;
    border: 2px solid #000;
    background: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 2px 2px 0 #000;
    transition: all 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.btn-login:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
    background: var(--success-color);
}

/* Dashboard Summary */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Budget Page Main Grid */
.budget-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .budget-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Balance Card - tooltip friendly, no overflow hidden */
/* Uses .summary-card.hero-balance-card for higher specificity */
.summary-card.hero-balance-card {
    background: linear-gradient(135deg, var(--primary-color), #1e293b);
    color: white;
    border: none;
    padding: 2rem;
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-comic);
}

.hero-balance-card .hero-content {
    position: relative;
    z-index: 2;
}

.hero-balance-card .hero-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.hero-balance-card .hero-value {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.hero-balance-card .hero-details {
    display: flex;
    gap: 2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.hero-balance-card .hero-detail-label {
    font-size: 0.8rem;
    display: block;
    opacity: 0.7;
}

.hero-balance-card .hero-detail-value {
    font-weight: 500;
}

.hero-balance-card .decorative-circle {
    position: absolute;
    right: -20px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 600px) {
    .hero-balance-card .hero-value {
        font-size: 2rem;
    }

    .hero-balance-card .hero-details {
        flex-direction: column;
        gap: 1rem;
    }
}

.summary-card {
    padding: 1.5rem;
    background: #fff;
    border: var(--border-width) solid #000;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-comic);
    transition: transform 0.2s;
}

.summary-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.summary-card h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.summary-card .value {
    font-size: 1.8rem;
    font-weight: 900;
    margin-top: 0.5rem;
}

/* Bank Groups */
.bank-group {
    margin-bottom: 3rem;
    background: #fff;
    border: var(--border-width) solid #000;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-comic);
    padding: 1.5rem;
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
}

.bank-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--bank-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}

.bank-name {
    font-size: 1.4rem;
    font-weight: 800;
}

.bank-consolidated {
    margin-left: auto;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--primary-light);
    padding: 0.2rem 0.6rem;
    border: 2px solid #000;
    border-radius: 4px;
    font-weight: 700;
}

/* Item List (Accounts & Cards) */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-card {
    padding: 1.25rem;
    background-color: #fff;
    /* White cards inside white group? create contrast */
    background: #f8fafc;
    border: 2px solid #000;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.1s;
}

.item-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
    background: #fff;
}

.item-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.item-info .subtext {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
    font-weight: 600;
}

.item-value {
    font-weight: 800;
    text-align: right;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    /* Thicker */
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 4px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-right: 2px solid #000;
}

/* Footer */
.footer {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: var(--border-width) solid #000;
    text-align: center;
    background: #fff;
    box-shadow: 0 -4px 0 0 #000 inset;
    /* Bottom accent? or just top border */
}

.footer p {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 450px;
    background: #fff;
    border: 3px solid #000;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: 6px 6px 0 #000;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2));
}

.toast-content {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.toast-close {
    background: #000;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    transform: scale(1.1);
    background: var(--danger-color);
}

/* Toast Categories */
.toast-success {
    border-left: 8px solid var(--success-color);
}

.toast-error {
    border-left: 8px solid var(--danger-color);
}

.toast-warning {
    border-left: 8px solid var(--warning-color);
}

.toast-info {
    border-left: 8px solid var(--info-color);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid #000;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 3px 3px 0 #000;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    /* White text on accent */
    text-shadow: 1px 1px 0 #000;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: #fff;
    color: var(--text-primary);
    border: 2px solid #000;
}

.btn-secondary:hover {
    background-color: #f0f4f8;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid #000;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    box-shadow: 2px 2px 0 #000;
}

.btn-outline:hover {
    background-color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    box-shadow: 2px 2px 0 #000;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #e2e8f0;
    box-shadow: none;
    transform: none !important;
}

/* Header Actions */
.page-header {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border: 2px solid #000;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-comic);
}

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

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

.text-muted {
    color: var(--text-muted);
    font-weight: 500;
}

/* Header Mobile Responsiveness */
@media (max-width: 600px) {
    .page-header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #fff;
    border-radius: 12px;
    border: 3px dashed #000;
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

/* Privacy Mode - Blur sensitive data */
.privacy-mode .sensitive {
    filter: blur(8px);
    user-select: none;
    transition: filter 0.3s ease;
    cursor: default;
    /* Optional: Add a 'Redacted' bar look? Blur is fine */
}

.privacy-mode .sensitive:hover {
    filter: blur(4px);
}

.privacy-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-left: 0.5rem;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 #000;
}

.privacy-toggle:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000;
}

.privacy-toggle .privacy-icon {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.privacy-toggle .privacy-icon svg {
    width: 100%;
    height: 100%;
}

.privacy-mode .privacy-toggle {
    background: var(--primary-color);
    border-color: #000;
}

.privacy-mode .privacy-toggle .privacy-icon {
    color: #fff;
}

/* Settings Page */
.settings-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: #fff;
    border: 2px solid #000;
    box-shadow: var(--shadow-comic);
    border-radius: var(--radius-lg);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #000;
}

.setting-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-info label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
}

.setting-info label svg {
    color: var(--primary-color);
    filter: drop-shadow(1px 1px 0 #000);
}

.setting-description {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.setting-control {
    flex-shrink: 0;
}

/* Toggle switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-tertiary);
    /* Dark gray for off */
    transition: 0.3s;
    border-radius: 32px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    border: 2px solid #000;
}

.toggle input:checked+.toggle-slider {
    background-color: var(--success-color);
    /* Green for ON */
}

.toggle input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* Settings footer */
.settings-footer {
    padding: 1.5rem;
    border-top: 3px solid #000;
    display: flex;
    justify-content: flex-end;
    background: #f8fafc;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

/* Actions group */
.actions-group {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #fff;
    border: 2px solid #000;
    box-shadow: var(--shadow-comic);
    border-radius: var(--radius-lg);
}

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #000;
}

.action-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.action-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.action-info p {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Info box */
.info-box .info-content {
    padding: 1.5rem;
}

.info-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-content li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #000;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.info-content li:last-child {
    border-bottom: none;
}

.info-content li strong {
    color: var(--text-primary);
    font-weight: 800;
}

/* Section box (shared component) */
.section-box {
    background: #fff;
    border: 2px solid #000;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-comic);
}

.section-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #000;
    background: #f8fafc;
    /* Slight contrast header */
    border-top-left-radius: calc(var(--radius-md) - 2px);
    border-top-right-radius: calc(var(--radius-md) - 2px);
}

.section-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Responsive settings */
@media (max-width: 600px) {

    .setting-item,
    .action-item {
        flex-direction: column;
        gap: 1rem;
    }

    .setting-control,
    .action-form {
        align-self: flex-start;
    }
}

/* ===========================================
   Tag Styles - Global (Comic/HQ)
   =========================================== */
.tag-base {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: transform 0.1s, box-shadow 0.1s;
}

.tag-base:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000;
}

/* Bank Tag - Primary accent color */
.bank-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: var(--primary-light);
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: transform 0.1s, box-shadow 0.1s;
}

.bank-tag:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000;
}

/* Date Tag - Neutral/Info style */
.date-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: #f8fafc;
    color: #000;
    letter-spacing: 0.02em;
    transition: transform 0.1s, box-shadow 0.1s;
}

.date-tag:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000;
}

/* Status Tags - Success, Warning, Danger */
.status-tag-success {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: var(--success-color);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-tag-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: var(--warning-color);
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-tag-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: var(--danger-color);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Category/Type Tags - Softer accent */
.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 1px 1px 0 #000;
    background: #fef3c7;
    color: #000;
    transition: transform 0.1s, box-shadow 0.1s;
}

.category-tag:hover {
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 #000;
}

/* ===========================================
   Info Icon & Tooltip - Global Styles (Comic)
   =========================================== */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #000;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 900;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 6px;
    box-shadow: 1px 1px 0 #000;
}

/* Light variant for dark backgrounds */
.info-icon.light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.info-icon.light.small {
    width: 14px;
    height: 14px;
    font-size: 9px;
}

.info-icon.small {
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #000;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    min-width: 220px;
    max-width: 300px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 99999;
    box-shadow: 4px 4px 0 #000;
    pointer-events: none;
}

.info-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

/* Responsive tooltip positioning */
@media (max-width: 768px) {
    .info-icon::after {
        left: auto;
        right: 0;
        transform: none;
    }

    .info-icon:hover::after {
        transform: translateY(-2px);
    }
}


/* ===========================================
   ONBOARDING TUTORIAL STYLES
   =========================================== */

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.onboarding-overlay.hidden {
    display: none;
}

.onboarding-modal {
    background: #fff;
    border: 4px solid #000;
    border-radius: var(--radius-lg);
    box-shadow: 8px 8px 0 #000;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.onboarding-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 2px 2px 0 #000;
    transition: all 0.15s;
}

.onboarding-close:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
    background: var(--danger-color);
    color: #fff;
}

/* Steps Container */
.onboarding-steps-container {
    padding: 2.5rem 2rem 1.5rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.onboarding-step {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.onboarding-step.active {
    display: flex;
}

/* Step Illustration */
.step-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.julius-avatar-big {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 4px 4px 0 #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.julius-avatar-big img {
    width: 150%;
    height: 150%;
    object-fit: cover;
    object-position: center 20%;
}

.step-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
}

.icon-connect {
    background: #a5b4fc;
}

.icon-income {
    background: #6ee7b7;
}

.icon-expense {
    background: #fca5a5;
}

.icon-fixed-income {
    background: #86efac;
}

.icon-fixed-expense {
    background: #fdba74;
}

.icon-chat {
    background: #c4b5fd;
}

.icon-invest {
    background: #93c5fd;
}

.icon-loans {
    background: #fcd34d;
}

/* Speech Bubbles */
.speech-bubble {
    position: absolute;
    background: #fff;
    border: 3px solid #000;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 3px 3px 0 #000;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #000;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #fff;
    z-index: 1;
}

.welcome-bubble {
    top: -15px;
    right: -30px;
    background: var(--success-color);
    color: #fff;
}

.warning-bubble {
    top: -10px;
    right: -40px;
    background: var(--warning-color);
    color: #000;
}

/* Step Content */
.step-content {
    max-width: 450px;
}

.step-content h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.step-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.step-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

/* Progress Dots */
.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 2px solid #eee;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.2s;
}

.progress-dot:hover {
    background: #cbd5e1;
    transform: scale(1.1);
}

.progress-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.progress-dot.completed {
    background: var(--success-color);
}

/* Actions */
.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem 1.5rem;
    border-top: 3px solid #000;
    background: #f8fafc;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-skip {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-skip:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.btn-prev,
.btn-next,
.btn-finish {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: 3px solid #000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 3px 3px 0 #000;
}

.btn-prev {
    background: #fff;
    color: var(--text-primary);
}

.btn-prev:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
}

.btn-next {
    background: var(--primary-color);
    color: #fff;
}

.btn-next:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
    filter: brightness(1.1);
}

.btn-finish {
    background: var(--success-color);
    color: #fff;
}

.btn-finish:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
    filter: brightness(1.1);
}

.onboarding-actions .hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .onboarding-modal {
        max-height: 95vh;
        border-radius: var(--radius-md);
    }

    .onboarding-steps-container {
        padding: 2rem 1.5rem 1rem;
        min-height: 300px;
    }

    .step-content h2 {
        font-size: 1.3rem;
    }

    .step-content p {
        font-size: 0.95rem;
    }

    .julius-avatar-big {
        width: 100px;
        height: 100px;
    }

    .step-icon {
        width: 80px;
        height: 80px;
    }

    .step-icon svg {
        width: 48px;
        height: 48px;
    }

    .onboarding-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-skip {
        order: 2;
    }

    .speech-bubble {
        display: none;
    }
}