/**
 * HesaplaPro - Modern UI & Hesaplama Motoru Stilleri
 */

:root {
    --primary: #1e40af;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-muted: #334155;
    --light-bg: #f8fafc;
    --card-border: #e2e8f0;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.btn.google-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
    color: #30343b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn.google-auth-button .fa-google { flex-shrink: 0; color: #4285f4; font-size: 20px; }
.btn.google-auth-button:hover { background: #f7faff; border-color: #b8cdf0; color: #202124; box-shadow: 0 2px 5px rgba(0, 0, 0, .08); }
.btn.google-auth-button:focus-visible { outline: 3px solid #4285f4; outline-offset: 3px; }
.btn.google-auth-button:active { background: #edf3fc; border-color: #4285f4; color: #202124; }

.account-page { max-width: 1280px; }
.account-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--card-border); }
.account-page .btn { border-radius: 6px !important; font-size: .8125rem; padding: 9px 13px; }
.account-page .form-control, .account-page .form-select { border-radius: 6px; border-color: #dce3eb; font-size: .875rem; padding: 11px 12px; }
.account-page .form-label { font-size: .8125rem; font-weight: 600 !important; color: #475569; }
.account-page .card { border: 1px solid var(--card-border) !important; border-radius: 8px !important; box-shadow: none !important; }
.account-page h5, .account-page .h5 { font-size: 1rem; }
.account-page .card-header { padding: 20px 24px !important; border-bottom: 1px solid var(--card-border) !important; }
.account-settings-surface { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px; }
.account-settings-surface > .alert { grid-column: 1 / -1; margin-bottom: 0 !important; }
.account-avatar-form { align-self: start; padding: 24px; background: #fff; border: 1px solid var(--card-border); border-radius: 8px; }
.account-details-form { min-width: 0; }
.account-section-title { font-size: 1rem; margin-bottom: 24px; }
.account-details-form > .btn { width: auto !important; }
.account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; border-bottom: 1px solid var(--card-border); }
.account-metrics > div { padding: 4px 24px 24px; border-right: 1px solid var(--card-border); }
.account-metrics > div:first-child { padding-left: 0; }
.account-metrics > div:last-child { border-right: 0; }
.account-metrics span, .account-metrics small { display: block; font-size: .8125rem; color: #64748b; }
.account-metrics strong { display: block; font-size: 1.75rem; font-family: var(--font-heading); margin: 8px 0; }
.account-weight .table th, .account-payments .table th { background: #f8fafc; font-size: .75rem; font-weight: 600; color: #64748b; padding: 14px 16px; }
.account-weight .table td, .account-payments .table td { padding: 16px; font-size: .8125rem; border-color: #eef2f6; }
.account-weight .table td { overflow-wrap: anywhere; }
.account-weight .table .badge { border-radius: 4px; white-space: normal; }
.account-payment-form { background: #fff; border: 1px solid var(--card-border); border-radius: 8px; padding: 24px; }
.account-payments .table-responsive { background: #fff; border: 1px solid var(--card-border); border-radius: 8px; }
.account-payments .table { margin-bottom: 0; }
.account-payments td:first-child { min-width: 160px; font-weight: 600; }
.account-payments td small { font-weight: 400; margin-top: 5px; }
.account-page a:focus-visible, .account-page button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 767.98px) {
    .account-settings-surface { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .account-heading { align-items: flex-start; }
    .account-metrics > div { padding: 0 10px 20px; }
    .account-metrics strong { font-size: 1.25rem; }
    .account-metrics span, .account-metrics small { font-size: .7rem; overflow-wrap: anywhere; }
    .account-weight .table { min-width: 650px; }
    .account-payment-form { padding: 20px; }
}
.profile-workspace { max-width: 1280px; }
.profile-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.profile-page-heading .btn { border-radius: 6px; padding: 10px 14px; }
.profile-identity { padding: 24px 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.profile-identity .profile-name { font-size: 1.25rem; overflow-wrap: anywhere; }
.profile-identity .badge { border-radius: 4px !important; font-size: .65rem; }
.profile-identity .d-flex.align-items-center.gap-2 { flex-wrap: wrap; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; overflow-wrap: anywhere; }
.profile-meta span { min-width: 0; }
.profile-account-actions .btn { border-radius: 6px !important; padding: 8px 10px; font-size: .75rem; }
.profile-summary .card { border: 1px solid var(--card-border) !important; border-radius: 8px !important; box-shadow: none !important; padding: 20px !important; }
.profile-summary .text-uppercase { text-transform: none !important; font-weight: 500 !important; }
.profile-summary h2 { font-size: 1.75rem; }
.profile-summary h5 { font-size: 1.125rem; }
.profile-summary .border-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; min-height: 42px; }
.profile-summary .btn { border-radius: 5px; font-size: .75rem; padding: 8px; }
.profile-archive-link { color: var(--primary); text-decoration: none; font-size: .8125rem; font-weight: 600; }
.profile-workspace a:focus-visible, .profile-workspace button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 767.98px) {
    .profile-identity { padding: 20px 0; }
    .profile-identity .d-flex.align-items-center.gap-3 > div:last-child { min-width: 0; }
    .profile-page-heading .btn { font-size: .75rem; flex-shrink: 0; }
    .profile-summary .card { padding: 16px !important; }
    .profile-workspace .saved-category { max-width: 200px; }
}
.saved-workspace { max-width: 1280px; }
.saved-eyebrow { font-size: .7rem; font-weight: 700; color: #64748b; margin-bottom: 8px; }
.saved-heading { font-size: 1.75rem; margin-bottom: 8px; }
.saved-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px 0 24px; }
.saved-toolbar .btn { border-radius: 6px; font-size: .8125rem; padding: 10px 14px; }
.saved-toolbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.saved-toolbar-links a { display: inline-flex; align-items: center; gap: 8px; color: #475569; font-size: .8125rem; text-decoration: none; }
.saved-toolbar-links a:hover { color: var(--primary); }
.saved-toolbar-links .saved-premium { color: #94700d; }
.saved-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--card-border); margin-bottom: 24px; gap: 24px; }
.saved-tabs a { padding: 14px 4px; flex-shrink: 0; border-bottom: 2px solid transparent; font-size: .875rem; font-weight: 600; text-decoration: none; color: #64748b; }
.saved-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.saved-list { background: #fff; border: 1px solid var(--card-border); border-radius: 8px; overflow: hidden; }
.saved-list-header { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.saved-list-header h2 { font-size: 1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.saved-list-header h2 span { font-family: var(--font-body); font-size: .75rem; color: #475569; background: #edf2f7; padding: 3px 8px; border-radius: 4px; }
.saved-search { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 6px; color: #94a3b8; width: 280px; max-width: 100%; }
.saved-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.saved-search input { width: 100%; min-width: 0; border: 0; outline: 0; font-size: .8125rem; background: transparent; color: var(--dark); }
.saved-table th { background: #f8fafc; color: #64748b; font-size: .75rem; font-weight: 600; padding: 12px 20px; border-top: 1px solid var(--card-border); }
.saved-table td { padding: 20px; border-color: #eef2f6; }
.saved-table tbody tr:last-child td { border-bottom: 0; }
.saved-category { display: inline-flex; align-items: center; gap: 8px; color: #475569; font-size: .75rem; }
.saved-category i { display: grid; place-items: center; width: 30px; height: 30px; background: #edf5f3; color: #237c69; border-radius: 6px; flex-shrink: 0; }
.saved-title { font-size: .8125rem; min-width: 180px; overflow-wrap: anywhere; }
.saved-notes { max-width: 240px; overflow-wrap: anywhere; }
.saved-date { white-space: nowrap; }
.saved-date span { display: block; font-size: .7rem; color: #94a3b8; margin-top: 4px; }
.saved-actions { text-align: right; white-space: nowrap; }
.saved-action { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #64748b; text-decoration: none; font-size: .8125rem; margin-left: 3px; }
.saved-action:hover { color: var(--primary); background: var(--primary-light); border-color: #bfdbfe; }
.saved-action-primary { color: var(--primary); }
.saved-action-danger:hover { color: #dc2626; background: #fff1f2; border-color: #fecdd3; }
.saved-workspace a:focus-visible, .saved-workspace button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.saved-table tr[hidden] { display: none !important; }
@media (max-width: 767.98px) {
    .saved-heading { font-size: 1.375rem; }
    .saved-toolbar-links { gap: 16px; }
    .saved-tabs { gap: 20px; margin-bottom: 16px; }
    .saved-list-header { padding: 18px 16px; }
    .saved-search { width: 100%; }
    .saved-table thead { display: none; }
    .saved-table, .saved-table tbody { display: block; width: 100%; }
    .saved-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 16px; gap: 12px; border-top: 1px solid var(--card-border); }
    .saved-table td { padding: 0; border: 0; min-width: 0; }
    .saved-table .saved-title { grid-column: 1 / -1; grid-row: 2; }
    .saved-table .saved-notes { grid-column: 1 / -1; max-width: none; }
    .saved-table .saved-date { grid-column: 2; grid-row: 1; text-align: right; }
    .saved-table .saved-actions { grid-column: 1 / -1; text-align: right; }
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .brand-text, .fw-extrabold {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Custom Shadows & Borders */
.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-sm {
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.06) !important;
}
.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
}

/* Ticker Bar */
.market-ticker-bar {
    font-size: 0.825rem;
    background: #f1f5fa !important;
    color: #475569 !important;
    border-bottom: 1px solid #dce4ee;
}
.market-ticker-bar .text-white-50 { color: #526174 !important; }
.market-ticker-bar .text-light { color: #243247 !important; }
.market-ticker-bar .ticker-label,
.market-ticker-bar .text-info { color: var(--primary) !important; }
.site-footer {
    background: #f1f4f8;
    color: #334155;
    border-color: #dce4ee !important;
}
.site-footer .text-white-50 { color: #526174 !important; }
.site-footer .text-white { color: #243247 !important; }
.site-footer .text-warning,
.site-footer .text-success,
.site-footer .text-info { color: var(--primary) !important; }
.site-footer .brand-icon { color: #fff !important; }
.site-footer .bg-secondary { background: #e7edf5 !important; }
.site-footer .border-secondary { border-color: #cbd5e1 !important; }
.site-footer .badge { font-weight: 500; border-radius: 6px; }
.site-footer p { line-height: 1.8; overflow-wrap: anywhere; }
.site-footer a { transition: color .15s ease; }
.site-footer a:hover { color: var(--primary) !important; }
.site-footer a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.ticker-scroll {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#localInfo {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
    min-width: 0;
    overflow-wrap: anywhere;
}
#localInfo > span {
    min-width: 0;
}
@media (min-width: 1400px) {
    .market-ticker-bar:has(#localInfo) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
    }
}
.ticker-scroll::-webkit-scrollbar {
    display: none;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Navbar */
.site-navbar .navbar-nav {
    gap: 4px;
}
.site-navbar .nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.site-navbar .nav-link > i {
    width: 18px;
    font-size: 0.9375rem;
    margin-right: 0 !important;
    text-align: center;
    color: #8491a3 !important;
}
.site-navbar .nav-link.active {
    border-color: #dce6f5;
}
.site-navbar .nav-link:hover > i,
.site-navbar .nav-link.active > i,
.site-navbar .nav-link.show > i {
    color: var(--primary) !important;
}
.site-navbar .nav-link.show {
    background: var(--primary-light);
    color: var(--primary);
}
.site-navbar .nav-link:focus-visible,
.site-navbar .dropdown-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.site-navbar .dropdown-toggle::after {
    margin-left: 4px;
    opacity: 0.6;
}
.site-navbar .dropdown-menu {
    border: 1px solid var(--card-border);
    border-radius: 8px !important;
    margin-top: 10px;
}
.site-navbar .dropdown-item {
    font-size: 0.875rem;
    color: #475569;
}
.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
    background: var(--primary-light);
    color: var(--primary);
}
.site-navbar .tools-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.site-navbar .tools-dropdown-menu .dropdown-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-right: 0 !important;
    background: #edf3fc;
    border-radius: 6px;
    font-size: 0.8125rem;
}
.site-navbar .navbar-toggler {
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--card-border) !important;
    border-radius: 8px;
}
.site-navbar .navbar-toggler-icon {
    width: 22px;
    height: 22px;
}
@media (max-width: 1199.98px) {
    .site-navbar #mainNav {
        border-top: 1px solid var(--card-border);
        margin-top: 12px;
        padding-top: 12px;
    }
    .site-navbar .nav-link {
        min-height: 46px;
        white-space: normal;
    }
    .site-navbar .nav-link.dropdown-toggle::after {
        margin-left: auto;
    }
    .site-navbar .tools-dropdown-menu {
        margin: 6px 0 10px;
        box-shadow: none !important;
        background: #fafbfd;
    }
    .site-navbar #mainNav > .d-flex {
        border-top: 1px solid var(--card-border);
        padding: 14px 0 4px;
        flex-wrap: wrap;
    }
}
.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.header-action i {
    width: 16px;
    text-align: center;
    font-size: 0.875rem;
}
.header-action-premium {
    color: var(--primary);
    background-color: var(--primary-light);
    border: 1px solid #dbe5f4;
}
.header-action-premium:hover {
    color: var(--primary);
    background-color: #e2ecfa;
    border-color: #b9ccec;
}
.header-action-login {
    color: #fff;
    background-color: var(--primary);
    border: 1px solid var(--primary);
}
.header-action-login:hover {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.header-action:focus-visible {
    outline: 3px solid #93b4ef;
    outline-offset: 3px;
    box-shadow: none;
}
.mobile-auth-action {
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
}
.mobile-auth-action i {
    font-size: 1.125rem;
    width: 20px;
}
.navbar-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.nav-link {
    font-weight: 500;
    color: #475569;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.tools-dropdown-menu {
    width: 820px;
    max-width: calc(100vw - 2rem);
    max-height: min(460px, calc(100dvh - 150px));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.tools-dropdown-grid {
    column-count: 3;
    column-gap: 12px;
}
.tools-dropdown-group {
    min-width: 0;
    break-inside: avoid;
    margin-bottom: 14px;
}
.tools-dropdown-heading {
    font-size: 0.725rem;
    margin: 0 0 4px;
    text-transform: uppercase;
}
.tools-dropdown-menu .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .tools-dropdown-menu {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: 55dvh;
    }
    .tools-dropdown-grid {
        column-count: 2;
    }
}

@media (max-width: 767.98px) {
    .tools-dropdown-grid {
        column-count: 1;
    }
}

/* Hero Section */
.hero-section {
    background-color: #f2f7f7;
    background-image: linear-gradient(115deg, #eef5f8 0%, #ffffff 48%, #edf6f1 100%);
    color: var(--dark);
    padding: 3.75rem 0 0;
    border-bottom: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}
.has-header-ad .hero-section {
    padding-top: 1.5rem;
}
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 440px;
    top: 30px;
    border: 1px solid rgba(30, 64, 175, 0.08);
    transform: rotate(32deg);
    pointer-events: none;
}
.hero-section::before {
    left: -155px;
    box-shadow: 24px 0 0 -1px #eef5f8, 25px 0 0 rgba(30, 64, 175, 0.06);
}
.hero-section::after {
    right: -155px;
    border-color: rgba(21, 128, 61, 0.1);
}
.hero-section > .container {
    position: relative;
    z-index: 1;
}
.hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 2.75rem;
}
.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.hero-eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.hero-section h1 {
    font-size: 4rem;
    color: var(--primary);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 14px;
}
.hero-title-dot {
    color: var(--accent);
}
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 14px;
}
.hero-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 26px;
}
.hero-search-box {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 580px;
    min-height: 62px;
    padding: 8px 20px 8px 8px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #cbd7e5;
    border-radius: 8px;
    box-shadow: 0 12px 28px -12px rgba(30, 64, 175, 0.24), 0 2px 4px rgba(15, 23, 42, 0.03);
    text-align: left;
}
.hero-search-box:focus-within {
    border-color: var(--primary);
    outline: 3px solid #dbeafe;
    outline-offset: 2px;
}
.hero-search-box > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 1.125rem;
}
.hero-search-box input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dark);
    font-size: 0.9375rem;
}
.hero-search-box input::placeholder {
    color: #64748b;
}
.hero-search-caption {
    border-left: 1px solid var(--card-border);
    padding-left: 16px;
    color: #64748b;
    font-size: 0.75rem;
    white-space: nowrap;
}
.hero-search-box input:not(:placeholder-shown) ~ .hero-search-caption {
    color: var(--primary);
}
.hero-free-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #64748b;
    font-size: 0.8125rem;
}
.hero-free-note i {
    color: #15803d;
}
.hero-stats {
    display: flex;
    justify-content: center;
    border-top: 1px solid #dce6e9;
    padding: 22px 0;
    gap: 0;
}
.hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 42px;
    font-size: 0.8125rem;
    color: #64748b;
}
.hero-stat + .hero-stat {
    border-left: 1px solid var(--card-border);
}
.hero-stat i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: #e5edf9;
    border-radius: 8px;
    color: var(--primary);
}
.hero-stat:nth-child(2) i {
    background: #e2f1e9;
    color: #18744c;
}
.hero-stat:nth-child(3) i {
    background: #fff1d6;
    color: #97600c;
}
.hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--dark);
    font-weight: 700;
}
@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 2.25rem;
    }
    .hero-section h1 {
        font-size: 2.75rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
    }
    .hero-description {
        font-size: 0.875rem;
    }
    .hero-content {
        padding-bottom: 2rem;
    }
    .hero-search-box {
        gap: 12px;
        padding: 7px 12px 7px 7px;
        min-height: 56px;
    }
    .hero-search-box > i {
        width: 38px;
        height: 38px;
    }
    .hero-stats {
        justify-content: space-between;
        padding: 18px 0;
    }
    .hero-stat {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 7px;
        padding: 0 8px;
        font-size: 0.6875rem;
    }
    .hero-stat strong {
        display: block;
        font-size: 0.9375rem;
    }
}

/* Tool Cards */
.home-page .hero-section {
    background: #fff;
    padding-top: 2.5rem;
}
.home-page .hero-section::before,
.home-page .hero-section::after { display: none; }
.home-page .hero-content {
    max-width: 800px;
    padding-bottom: 1.75rem;
}
.home-page .hero-eyebrow { color: #52716b; margin-bottom: 12px; }
.home-page .hero-section h1 { font-size: 2.75rem; color: var(--primary); }
.home-page .hero-subtitle { font-size: 1.25rem; margin-bottom: 8px; }
.home-page .hero-description { margin-bottom: 20px; }
.home-page .hero-search-box { box-shadow: 0 3px 12px rgba(15, 23, 42, .04); }
.home-page .hero-stats { padding: 18px 0; }
.home-page .hero-stat strong { font-variant-numeric: tabular-nums; }
.home-workspace { padding: 32px 0 48px; }
.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}
.home-section-heading h2 { font-size: 1.5rem; margin-top: 6px; line-height: 1.4; }
.home-section-label { display: block; color: #347266; font-size: .75rem; font-weight: 700; margin-bottom: 12px; }
.home-tools-toolbar { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.home-tools-toolbar label { font-size: .875rem; color: #526174; }
.home-needs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.home-needs .form-label { margin: 0; }
.home-needs select { width: 100%; max-width: 320px; min-height: 44px; border-radius: 6px; }
.home-categories { display: flex; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid #d4e1de; margin-bottom: 20px; }
.home-category { border: 0; border-bottom: 3px solid transparent; background: transparent; color: #526174; padding: 12px 4px; font-weight: 600; min-height: 44px; }
.home-category.active { color: var(--primary); border-bottom-color: var(--primary); }
.home-resume { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #d4e1de; }
.home-resume-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-resume-link { display: flex; align-items: center; gap: 12px; padding: 16px 0; color: var(--text-dark); text-decoration: none; border-bottom: 1px solid #d4e1de; }
.home-resume-link span { flex: 1; min-width: 0; }
.home-resume-link small { display: block; color: #526174; margin-bottom: 6px; }
.home-resume-link strong { display: block; font-size: .875rem; overflow-wrap: anywhere; }
.home-resume-link:hover strong { color: var(--primary); }
@media (max-width: 767.98px) {
    .home-resume-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.home-tools-toolbar select { max-width: 190px; min-height: 40px; border-radius: 6px; }
.home-result-count { margin-left: auto; color: #64748b; font-size: .8125rem; white-space: nowrap; }
.home-empty-state { padding: 40px 16px; text-align: center; border: 1px dashed #b9c9c6; border-radius: 8px; background: #fff; color: #526174; }
.home-page .tool-card { border-radius: 8px; padding: 20px !important; transition: border-color .18s ease, box-shadow .18s ease; }
.home-page .tool-card:hover { transform: none; border-color: #93b2ab; box-shadow: 0 4px 16px rgba(25, 54, 47, .06); }
.home-page .tool-card .icon-wrapper { width: 42px; height: 42px; border-radius: 6px; font-size: 1.125rem; }
.home-page .tool-card:hover .icon-wrapper { transform: none; }
.home-page .tool-title { font-size: 1rem; line-height: 1.5; }
.home-page .tool-desc { line-height: 1.7; }
.home-page .tool-card .btn { border-radius: 6px; min-height: 36px; }
.home-page .tool-favorite { width: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.home-page .tool-item-col[hidden] { display: none !important; }
.home-membership { margin: 40px 0; padding: 28px 0; border-top: 1px solid #d4e1de; border-bottom: 1px solid #d4e1de; }
.home-membership h3 { font-size: 1.375rem; }
.home-membership p { line-height: 1.75; max-width: 660px; }
.home-membership .btn { border-radius: 6px; }
.home-guide-card { border: 1px solid var(--card-border); border-radius: 8px; background: #fff; box-shadow: none; }
.home-guide-card h3 { font-size: 1rem; line-height: 1.6; }
.home-payments { margin-top: 40px; padding: 28px 0; border-top: 1px solid #d4e1de; }
.home-payments + .home-guides { padding-top: 28px; border-top: 1px solid #d4e1de; }
.payment-overview-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.payment-overview { min-width: 0; padding-right: 32px; border-right: 1px solid #d4e1de; }
.payment-period { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #347266; }
.payment-period span { margin-left: auto; font-size: .8125rem; color: #526174; font-weight: 400; }
.payment-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.payment-summary-item { padding: 20px 0; border-bottom: 1px solid #d4e1de; min-width: 0; }
.payment-summary-item:first-child { grid-column: 1 / -1; }
.payment-summary-item:first-child strong { font-size: 1.75rem; }
.payment-summary-item strong { display: block; margin-top: 8px; font-size: 1.25rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.payment-progress-label { display: flex; justify-content: space-between; font-size: .8125rem; margin: 20px 0 10px; color: #526174; }
.payment-progress { width: 100%; height: 7px; display: block; border: 0; border-radius: 4px; overflow: hidden; background: #e4e9ed; accent-color: #347266; }
.payment-progress::-webkit-progress-bar { background: #e4e9ed; }
.payment-progress::-webkit-progress-value { background: #347266; }
.payment-progress::-moz-progress-bar { background: #347266; }
.payment-schedule { min-width: 0; }
.home-payment-list { max-height: 300px; overflow-y: auto; scrollbar-gutter: stable; }
.home-payment-list:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.payment-schedule-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.payment-schedule-heading > span { font-size: .8125rem; color: #526174; }
.payment-upcoming { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #e4e9ed; }
.payment-type-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #edf0f4; color: #526174; }
.payment-type-rent { background: #e8f3ee; color: #267451; }
.payment-type-bill { background: #eaf2fc; color: #336cad; }
.payment-type-loan { background: #fff1e8; color: #ad5a27; }
.payment-type-subscription { background: #f9ecf1; color: #a44367; }
.payment-entry-detail { min-width: 0; overflow-wrap: anywhere; }
.payment-entry-detail > strong { font-size: .9375rem; display: block; }
.payment-entry-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .75rem; color: #526174; margin: 4px 0; }
.payment-entry-detail > small { font-size: .75rem; }
.payment-entry-amount { text-align: right; font-variant-numeric: tabular-nums; }
.payment-entry-amount strong { display: block; font-size: .9375rem; }
.payment-entry-amount small { display: block; font-size: .75rem; color: #8a641b; margin-top: 4px; }
@media (max-width: 991.98px) {
    .payment-overview-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .payment-overview { padding-right: 0; border-right: 0; }
}
@media (max-width: 575.98px) {
    .payment-upcoming { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
    .payment-type-icon { width: 36px; height: 36px; }
    .payment-entry-amount { grid-column: 2; text-align: left; }
    .payment-entry-amount small { display: inline; }
}
.home-page a:focus-visible,
.home-page button:focus-visible { outline: 3px solid #93b4ef; outline-offset: 3px; }
@media (max-width: 575.98px) {
    .home-page .hero-section { padding-top: 24px; }
    .home-page .hero-section h1 { font-size: 2rem; overflow-wrap: anywhere; }
    .home-page .hero-subtitle { font-size: 1rem; }
    .home-page .hero-stat { padding: 0 6px; }
    .home-workspace { padding-top: 24px; }
    .home-section-heading h2 { font-size: 1.25rem; }
    .home-membership { margin: 28px 0; }
    .home-membership .btn { width: 100%; }
    .home-tools-toolbar { gap: 8px; }
    .home-tools-toolbar select { max-width: 165px; }
}

.tool-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    background: white;
    height: 100%;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}
.tool-card .icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s;
}
.tool-card:hover .icon-wrapper {
    transform: scale(1.08);
}

/* Calculator Form Cards */
.calc-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    padding: 2rem;
}
.calc-result-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.calc-result-box::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem;
}

/* Form Controls */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.975rem;
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}
.input-group-text {
    background-color: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    font-weight: 600;
    color: #475569;
}

/* BMI Meter */
.bmi-gauge {
    height: 16px;
    border-radius: 10px;
    background: linear-gradient(to right, #3b82f6 0%, #10b981 30%, #f59e0b 60%, #ef4444 85%, #991b1b 100%);
    position: relative;
    margin: 1.5rem 0 1rem;
}
.bmi-gauge-pointer {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #0f172a;
    transition: left 0.4s ease;
}

/* Quick Currency / Convert Inputs */
.currency-input-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    transition: border-color 0.2s;
}
.currency-input-card:focus-within {
    border-color: var(--primary);
    background: white;
}

/* Sticky Mobile Bottom Ad */
.mobile-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    border-top: 2px solid var(--accent);
}

/* Print Optimization */
@media print {
    .market-ticker-bar, .navbar, footer, .mobile-sticky-ad, .btn, .no-print, .ad-placeholder, .alert-warning {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .calc-card, .calc-result-box {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        background: white !important;
        color: black !important;
    }
    .stat-chip {
        border: 1px solid #ccc !important;
        color: black !important;
    }
}

