@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --blue: #1d4ed8;
    --blue-dark: #173ea9;
    --green: #10b981;
    --text: #111827;
    --muted: #64748b;
    --soft: #f8fafc;
    --border: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow { width: min(820px, calc(100% - 32px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: visible;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: visible;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 12px 25px rgba(29, 78, 216, 0.22);
}

.brand-text { font-size: 1.28rem; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: visible;
}

.main-nav > a,
.tools-dropdown-btn {
    border: 0;
    background: transparent;
    padding: 10px 13px;
    border-radius: 12px;
    color: #374151;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-nav > a:hover,
.tools-dropdown:hover .tools-dropdown-btn,
.tools-dropdown.is-open .tools-dropdown-btn {
    background: var(--soft);
    color: var(--blue);
}

.tools-dropdown {
    position: relative;
}

.tools-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 720px;
    height: 18px;
}

.tools-dropdown-btn span {
    display: inline-block;
    font-size: .78rem;
    line-height: 1;
    transition: transform .18s ease;
}

.tools-dropdown:hover .tools-dropdown-btn span,
.tools-dropdown.is-open .tools-dropdown-btn span {
    transform: rotate(180deg);
}

.tools-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 720px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    padding: 16px;
    display: none;
    z-index: 9999;
}

.tools-dropdown:hover .tools-dropdown-menu,
.tools-dropdown:focus-within .tools-dropdown-menu,
.tools-dropdown.is-open .tools-dropdown-menu {
    display: block;
}

.tools-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tools-menu-inner a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #1f2937;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.25;
    border: 1px solid transparent;
    white-space: normal;
}

.tools-menu-inner a:hover {
    background: var(--soft);
    border-color: var(--border);
    color: var(--blue);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 18px;
    background: var(--text);
    margin: 4px auto;
}

.hero {
    padding: 82px 0 68px;
    background:
        radial-gradient(circle at top left, rgba(29, 78, 216, 0.09), transparent 34%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 36%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

h1, h2, h3 {
    line-height: 1.12;
    letter-spacing: -0.045em;
    margin: 0 0 14px;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; }

p { color: var(--muted); margin: 0 0 18px; }

.hero-copy p {
    max-width: 670px;
    font-size: 1.12rem;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 650px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
    margin: 28px 0 20px;
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px;
    font: inherit;
}

.hero-search button {
    border: 0;
    border-radius: 13px;
    padding: 0 18px;
    background: var(--soft);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.2);
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary {
    color: var(--text);
    background: #fff;
    border-color: var(--border);
}

.hero-panel {
    padding: 24px;
    border-radius: 30px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(229,231,235,0.9);
    box-shadow: var(--shadow);
}

.summary-card {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1d4ed8, #10b981);
    color: #fff;
}

.summary-card span { opacity: 0.84; font-weight: 800; }
.summary-card strong { display: block; font-size: 4.2rem; line-height: 1; margin: 12px 0; }
.summary-card p { color: rgba(255,255,255,0.84); margin: 0; }

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.mini-grid a {
    padding: 18px;
    border-radius: 18px;
    background: var(--soft);
    font-weight: 900;
    text-align: center;
}

.section { padding: 76px 0; }
.section-soft { background: var(--soft); }

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tool-card,
.category-card,
.feature-list > div,
.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(17,24,39,0.045);
}

.tool-card {
    display: block;
    padding: 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(29, 78, 216, 0.24);
    box-shadow: var(--shadow);
}

.tool-card span {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tool-card strong { color: var(--blue); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card { padding: 24px; }

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-list > div { padding: 22px; }
.feature-list strong { display: block; margin-bottom: 8px; }

.faq-wrap { max-width: 880px; }
.faq-list { display: grid; gap: 12px; }

details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
}

summary {
    cursor: pointer;
    font-weight: 900;
}

details p { margin: 12px 0 0; }

.page-hero {
    padding: 72px 0 42px;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.prose h2 { margin-top: 28px; font-size: 1.55rem; }
.prose p { font-size: 1.04rem; }

.contact-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 900;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.site-footer {
    background: #0f172a;
    color: #fff;
    padding: 56px 0 22px;
}

.site-footer p { color: #cbd5e1; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 26px;
}

.site-footer h3 {
    font-size: 1rem;
    letter-spacing: 0;
}

.site-footer a:not(.brand) {
    display: block;
    color: #cbd5e1;
    margin: 8px 0;
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 34px;
    padding-top: 18px;
}

.footer-bottom p { margin: 0; }

.tool-sidebar { position: sticky; top: 94px; }
.sidebar-card { padding: 20px; overflow: hidden; }
.sidebar-links { display: grid; gap: 8px; }
.sidebar-links a {
    padding: 10px 12px;
    background: var(--soft);
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.25;
}

/* Tool page layout */
.tool-hero {
    padding: 72px 0 42px;
    background:
        radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fafc, #ffffff);
}

.tool-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: center;
}

.tool-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.tool-hero p { max-width: 760px; font-size: 1.08rem; }

.tool-hero-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.tool-hero-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: start;
}

.tool-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.calculator-card,
.content-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(17,24,39,0.055);
    padding: 26px;
}

.calculator-head { margin-bottom: 22px; }
.calculator-head h2 { font-size: 1.85rem; margin-bottom: 8px; }

.calculator-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.calculator-form label {
    display: grid;
    gap: 8px;
    font-weight: 900;
    color: var(--text);
}

.calculator-form input {
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    color: var(--text);
    background: #fff;
    appearance: textfield;
    -moz-appearance: textfield;
}

.calculator-form input::-webkit-outer-spin-button,
.calculator-form input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-prefix,
.input-suffix {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.input-prefix:focus-within,
.input-suffix:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.input-prefix span,
.input-suffix span {
    padding: 0 13px;
    color: var(--muted);
    font-weight: 900;
    white-space: nowrap;
}

.input-prefix span { border-right: 1px solid var(--border); }
.input-suffix span { border-left: 1px solid var(--border); }

.calculator-action {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.calculate-btn {
    min-width: 220px;
    min-height: 52px;
    font-size: 1rem;
}

.calc-loading {
    display: none;
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.calc-loading.is-active { display: block; }

.calc-loading-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 900;
}

.calc-loading-top strong { color: var(--blue); }

.loading-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.loading-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--green));
    transition: width .12s linear;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.result-grid.is-hidden { display: none; }

.result-box {
    padding: 20px;
    border-radius: 18px;
    background: var(--soft);
    border: 1px solid var(--border);
    min-width: 0;
    overflow: hidden;
}

.result-box span {
    display: block;
    color: var(--muted);
    font-weight: 900;
    font-size: .86rem;
    margin-bottom: 8px;
}

.result-box strong {
    display: block;
    color: var(--text);
    font-size: clamp(1.25rem, 2.4vw, 1.72rem);
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.form-message {
    margin: 14px 0 0;
    color: #dc2626;
    font-weight: 900;
}

.formula-box {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 900;
    margin: 14px 0 18px;
    overflow-x: auto;
}

.formula-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px 18px;
    text-align: center;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    line-height: 1.2;
}

.formula-left,
.formula-equal { font-weight: 900; color: var(--text); }

.formula-fraction {
    display: inline-grid;
    align-items: center;
    min-width: min(360px, 100%);
}

.formula-top,
.formula-bottom {
    display: block;
    padding: 3px 10px;
    font-weight: 900;
    color: var(--text);
    white-space: nowrap;
}

.formula-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    margin: 3px 0;
}

.formula-visual sup {
    font-size: 0.68em;
    line-height: 0;
}

.related-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-tools a {
    padding: 14px 16px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-weight: 900;
    color: var(--blue);
}

.related-tools a:hover { background: #eef2ff; }

.content-card.prose p { line-height: 1.8; }

@media (min-width: 921px) and (max-width: 1120px) {
    .tools-dropdown-menu {
        left: 50%;
        transform: translateX(-35%);
        width: 650px;
    }

    .tools-dropdown::after {
        left: 50%;
        transform: translateX(-35%);
        width: 650px;
    }
}

@media (max-width: 1080px) {
    .tool-layout { grid-template-columns: minmax(0, 1fr); }
    .tool-sidebar { position: static; }
}

@media (max-width: 980px) {
    .tool-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
    .menu-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 74px;
        left: 16px;
        right: 16px;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 20px;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
        padding: 12px;
        z-index: 9999;
    }

    .main-nav.is-open { display: flex; }

    .main-nav > a,
    .tools-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 13px 14px;
        border-radius: 14px;
        text-align: left;
    }

    .tools-dropdown { width: 100%; }
    .tools-dropdown::after { display: none; }

    .tools-dropdown-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 4px 0 8px;
        padding: 10px;
        background: var(--soft);
        border-radius: 16px;
        box-shadow: none;
        display: none;
    }

    .tools-dropdown:hover .tools-dropdown-menu { display: none; }
    .tools-dropdown.is-open .tools-dropdown-menu { display: block; }

    .tools-menu-inner {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tools-menu-inner a {
        background: #fff;
        border-color: var(--border);
    }

    .hero-grid,
    .split-section,
    .footer-grid { grid-template-columns: 1fr; }

    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .calculator-form,
    .result-grid,
    .related-tools {
        grid-template-columns: 1fr;
    }

    .calculate-btn { width: 100%; }

    .calculator-card,
    .content-card { padding: 20px; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 22px, 1180px); }
    .header-inner { height: 66px; }
    .main-nav {
        top: 66px;
        left: 11px;
        right: 11px;
        max-height: calc(100vh - 82px);
    }
    .hero { padding: 54px 0 46px; }
    .hero-search { flex-direction: column; }
    .hero-search button { min-height: 44px; }
    .tools-grid,
    .category-grid,
    .feature-list,
    .mini-grid { grid-template-columns: 1fr; }
    .section { padding: 54px 0; }
    h1 { font-size: 2.45rem; }
}

@media (max-width: 520px) {
    .formula-visual {
        gap: 8px;
        padding: 18px 10px;
        font-size: 0.95rem;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .formula-fraction { min-width: 250px; }
}


/* Loan calculator page uses shared calculator layout */
.loan-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .loan-form {
        grid-template-columns: 1fr;
    }
}


/* Loan Calculator v2 */
.loan-v2-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loan-v2-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .loan-v2-form,
    .loan-v2-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .loan-v2-form,
    .loan-v2-results {
        grid-template-columns: 1fr;
    }
}


/* SIP Calculator */
.sip-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sip-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .sip-form,
    .sip-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sip-form,
    .sip-results {
        grid-template-columns: 1fr;
    }
}


/* FD Calculator */
.fd-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.select-field {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    outline: none;
}

.select-field:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

@media (max-width: 900px) {
    .fd-form,
    .fd-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fd-form,
    .fd-results {
        grid-template-columns: 1fr;
    }
}


/* Standard formula layout for FD compound interest */
.formula-standard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 22px 18px;
    text-align: center;
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    line-height: 1;
    overflow-x: auto;
}

.formula-standard .formula-symbol,
.formula-standard .formula-equal,
.formula-standard .formula-plus,
.formula-standard .formula-bracket {
    font-weight: 900;
    color: var(--text);
}

.formula-standard-fraction {
    display: inline-grid;
    align-items: center;
    min-width: 34px;
    font-weight: 900;
    color: var(--text);
}

.formula-standard-top,
.formula-standard-bottom {
    display: block;
    padding: 0 4px;
    line-height: 1;
}

.formula-standard-line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 999px;
    margin: 4px 0;
}

.formula-standard sup {
    align-self: flex-start;
    font-size: .62em;
    margin-left: -6px;
    margin-top: -6px;
    font-weight: 900;
}

@media (max-width: 520px) {
    .formula-standard {
        justify-content: flex-start;
        font-size: 1.15rem;
    }
}


/* FD final premium select + textbook formula */
.select-wrap {
    position: relative;
    width: 100%;
}

.select-wrap .select-field {
    width: 100%;
    min-height: 54px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 46px 0 16px;
    background:
        linear-gradient(180deg, #ffffff, #f8fafc);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    outline: none;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.035);
    cursor: pointer;
}

.select-wrap .select-field:hover {
    border-color: rgba(29, 78, 216, 0.35);
}

.select-wrap .select-field:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--blue);
    font-size: .82rem;
    font-weight: 900;
    pointer-events: none;
}

.compound-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 24px 18px;
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    line-height: 1;
    overflow-x: auto;
    white-space: nowrap;
}

.compound-formula span {
    color: var(--text);
    font-weight: 900;
}

.cf-frac {
    display: inline-grid;
    grid-template-rows: auto 2px auto;
    align-items: center;
    min-width: 34px;
    text-align: center;
    margin: 0 2px;
}

.cf-num,
.cf-den {
    display: block;
    line-height: .9;
    font-size: .82em;
    padding: 0 3px;
}

.cf-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    margin: 4px 0;
}

.cf-power {
    align-self: flex-start;
    margin-left: -5px;
    margin-top: -8px;
    font-size: .58em;
    font-weight: 900;
    color: var(--text);
}

@media (max-width: 520px) {
    .compound-formula {
        justify-content: flex-start;
        padding: 20px 12px;
        font-size: 1.28rem;
    }
}


/* FD compounding radio card options */
.compound-choice-group {
    display: grid;
    gap: 8px;
}

.choice-label {
    color: var(--text);
    font-weight: 900;
}

.compound-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.compound-option {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.compound-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.compound-option span {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #374151;
    font-size: .9rem;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.035);
    transition: .18s ease;
}

.compound-option input:checked + span {
    border-color: rgba(29, 78, 216, 0.35);
    background: #eef2ff;
    color: var(--blue);
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.12);
}

.compound-option input:checked + span::before {
    content: "✓";
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    margin-right: 7px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.compound-option:hover span {
    border-color: rgba(29, 78, 216, 0.28);
}

@media (max-width: 520px) {
    .compound-options {
        grid-template-columns: 1fr;
    }
}


/* ONLY FIX: FD compounding frequency visual style */
.fd-form .compound-choice-group {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: grid !important;
    gap: 12px !important;
    padding: 18px !important;
    margin-top: 2px !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.04) !important;
}

.fd-form .choice-label {
    display: block !important;
    color: var(--text) !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.fd-form .compound-options {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.fd-form .compound-option {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.fd-form .compound-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

.fd-form .compound-option span {
    width: 100% !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #334155 !important;
    font-size: .95rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.04) !important;
    transition: all .18s ease !important;
}

.fd-form .compound-option span::before {
    content: "" !important;
    width: 19px !important;
    height: 19px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: transparent !important;
    font-size: .7rem !important;
    font-weight: 900 !important;
}

.fd-form .compound-option input[type="radio"]:checked + span {
    border-color: rgba(29, 78, 216, 0.45) !important;
    background: linear-gradient(180deg, #eef2ff, #ffffff) !important;
    color: var(--blue) !important;
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.14) !important;
}

.fd-form .compound-option input[type="radio"]:checked + span::before {
    content: "✓" !important;
    border-color: var(--blue) !important;
    background: var(--blue) !important;
    color: #fff !important;
}

.fd-form .compound-option:hover span {
    border-color: rgba(29, 78, 216, 0.35) !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
    .fd-form .compound-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .fd-form .compound-choice-group {
        padding: 14px !important;
    }

    .fd-form .compound-options {
        grid-template-columns: 1fr !important;
    }
}


/* Currency Converter */
.currency-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.currency-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.currency-actions {
    gap: 12px;
}

.premium-select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    outline: none;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.035);
}

.premium-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.comparison-card {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(17,24,39,0.045);
}

.comparison-card.is-hidden {
    display: none;
}

.comparison-card h3 {
    margin-bottom: 16px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.comparison-item {
    padding: 14px;
    border-radius: 16px;
    background: var(--soft);
    border: 1px solid var(--border);
}

.comparison-item span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.comparison-item strong {
    display: block;
    color: var(--text);
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.formula-symbol {
    font-weight: 900;
    color: var(--text);
}

@media (max-width: 900px) {
    .currency-form,
    .currency-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comparison-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .currency-form,
    .currency-results,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .currency-actions {
        flex-direction: column;
    }

    .currency-actions .btn {
        width: 100%;
    }
}


/* Currency Converter layout + premium dropdown final fix */
.currency-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: end !important;
}

.currency-form label {
    min-width: 0 !important;
}

.currency-form .input-prefix,
.currency-form .input-suffix,
.currency-form .premium-select-wrap {
    min-height: 54px !important;
}

.premium-select-wrap {
    position: relative;
    width: 100%;
}

.premium-select-wrap .premium-select {
    width: 100% !important;
    min-height: 54px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 0 48px 0 16px !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    color: var(--text) !important;
    font: inherit !important;
    font-weight: 850 !important;
    outline: none !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04) !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
}

.premium-select-wrap .premium-select:hover {
    border-color: rgba(29, 78, 216, 0.35) !important;
}

.premium-select-wrap .premium-select:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08) !important;
}

.select-chevron {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--blue);
    font-size: .82rem;
    font-weight: 900;
    pointer-events: none;
}

.currency-actions {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 2px !important;
}

.currency-actions .btn-secondary {
    min-width: 92px;
    min-height: 52px;
    background: #fff;
    border-color: var(--border);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.currency-actions .calculate-btn {
    min-width: 230px;
}

.comparison-card {
    margin-top: 24px !important;
    padding: 22px !important;
    border: 1px solid var(--border) !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(17,24,39,0.045) !important;
}

.comparison-card.is-hidden {
    display: none !important;
}

.comparison-card h3 {
    margin: 0 0 16px !important;
    font-size: 1.25rem !important;
}

.comparison-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.comparison-item {
    padding: 14px !important;
    border-radius: 16px !important;
    background: var(--soft) !important;
    border: 1px solid var(--border) !important;
}

.comparison-item span {
    display: block !important;
    color: var(--muted) !important;
    font-size: .82rem !important;
    font-weight: 900 !important;
    margin-bottom: 5px !important;
}

.comparison-item strong {
    display: block !important;
    color: var(--text) !important;
    font-size: 1.08rem !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 980px) {
    .currency-form,
    .currency-results {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .comparison-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .currency-form,
    .currency-results,
    .comparison-grid {
        grid-template-columns: 1fr !important;
    }

    .currency-actions {
        flex-direction: column !important;
    }

    .currency-actions .btn {
        width: 100% !important;
    }
}


/* Currency Converter button + comparison heading alignment fix only */
.currency-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 10px !important;
    margin-bottom: 0 !important;
}

.currency-actions + .calc-loading,
.currency-actions + .calc-loading + .result-grid,
.currency-actions + .calc-loading + .result-grid + .comparison-card {
    margin-top: 18px !important;
}

#comparisonCard {
    margin-top: 26px !important;
    clear: both !important;
}

#comparisonCard h3 {
    margin: 0 0 16px !important;
    padding: 0 !important;
    text-align: left !important;
}

@media (max-width: 680px) {
    .currency-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .currency-actions .btn {
        width: 100% !important;
    }
}


/* GST Calculator */
.gst-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gst-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gst-mode-box,
.gst-rate-box {
    grid-column: 1 / -1;
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.04);
}

.gst-mode-box {
    margin-bottom: 2px;
}

.gst-mode-options,
.gst-rate-options {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.gst-mode-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gst-rate-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gst-mode-option,
.gst-rate-option {
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.04);
    transition: all .18s ease;
}

.gst-mode-option .tick {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    color: transparent;
    background: #ffffff;
    font-size: .7rem;
    line-height: 1;
}

.gst-mode-option:hover,
.gst-rate-option:hover {
    border-color: rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}

.gst-mode-option.is-active,
.gst-rate-option.is-active {
    border-color: rgba(29, 78, 216, 0.45);
    background: linear-gradient(180deg, #eef2ff, #ffffff);
    color: var(--blue);
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.14);
}

.gst-mode-option.is-active .tick {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.gst-rate-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
}

.gst-rate-head span {
    color: var(--text);
    font-weight: 900;
    font-size: 1rem;
}

.gst-rate-head small {
    color: var(--muted);
    font-weight: 750;
}

@media (max-width: 900px) {
    .gst-form,
    .gst-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gst-rate-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .gst-form,
    .gst-results,
    .gst-mode-options,
    .gst-rate-options {
        grid-template-columns: 1fr;
    }

    .gst-mode-box,
    .gst-rate-box {
        padding: 14px;
    }

    .gst-rate-head {
        display: grid;
        gap: 4px;
    }
}


/* Premium Home Hero Upgrade */
.premium-home-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 78px;
    background:
        radial-gradient(circle at 12% 16%, rgba(29, 78, 216, 0.16), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(16, 185, 129, 0.15), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 72%, #eef6ff 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: .72;
    pointer-events: none;
}

.hero-orb-one {
    width: 240px;
    height: 240px;
    left: -90px;
    top: 80px;
    background: rgba(29, 78, 216, 0.12);
}

.hero-orb-two {
    width: 280px;
    height: 280px;
    right: -110px;
    top: 90px;
    background: rgba(16, 185, 129, 0.14);
}

.premium-hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 58px;
}

.premium-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(2.85rem, 6.2vw, 5.45rem);
    line-height: .98;
    letter-spacing: -0.065em;
    margin-bottom: 22px;
}

.premium-hero-copy p {
    max-width: 690px;
    font-size: 1.16rem;
    line-height: 1.75;
    color: #52637a;
}

.premium-eyebrow {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--blue);
    border: 1px solid rgba(29, 78, 216, 0.12);
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}

.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--border);
    color: #334155;
    font-size: .9rem;
    font-weight: 850;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.premium-hero-search {
    position: relative;
    max-width: 700px;
    margin-top: 28px;
    padding: 9px;
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
}

.search-icon {
    display: grid;
    place-items: center;
    width: 38px;
    color: var(--blue);
    font-size: 1.25rem;
    font-weight: 900;
}

.premium-hero-search input {
    padding-left: 2px;
}

.premium-hero-search button {
    min-width: 86px;
    background: #eef2ff;
    color: var(--blue);
}

.premium-hero-actions {
    margin-top: 4px;
}

.premium-hero-actions .btn {
    min-height: 50px;
    padding-inline: 20px;
}

.premium-hero-visual {
    position: relative;
    min-height: 438px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-dashboard-card {
    width: 100%;
    padding: 24px;
    border-radius: 34px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(18px);
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.28), transparent 34%),
        linear-gradient(135deg, #1d4ed8, #0ea5e9 48%, #10b981);
    color: #fff;
}

.dashboard-label {
    display: block;
    color: rgba(255,255,255,.84);
    font-weight: 900;
    font-size: .86rem;
    margin-bottom: 12px;
}

.dashboard-top strong {
    display: block;
    font-size: 4.8rem;
    line-height: .9;
    letter-spacing: -0.08em;
}

.dashboard-top p {
    max-width: 280px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.86);
    font-weight: 650;
}

.dashboard-badge {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    font-weight: 900;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.dashboard-metrics a {
    min-height: 88px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 16px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.045);
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-metrics a:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 78, 216, 0.3);
    box-shadow: 0 18px 38px rgba(29, 78, 216, 0.1);
}

.dashboard-metrics span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dashboard-metrics strong {
    color: var(--text);
    font-size: 1rem;
}

.hero-progress-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.hero-progress-card span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.hero-progress-card strong {
    display: block;
    color: var(--text);
    font-size: .98rem;
    margin-bottom: 12px;
}

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

.progress-fill {
    height: 100%;
    width: 78%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.floating-card {
    position: absolute;
    display: grid;
    gap: 3px;
    padding: 15px 17px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.floating-card span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}

.floating-card strong {
    color: var(--text);
    font-size: 1.18rem;
    letter-spacing: -0.04em;
}

.floating-card-one {
    left: -8px;
    bottom: 44px;
}

.floating-card-two {
    right: -12px;
    top: 38px;
}

@media (max-width: 980px) {
    .premium-hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .premium-hero-visual {
        min-height: auto;
    }

    .floating-card-one {
        left: 18px;
        bottom: -18px;
    }

    .floating-card-two {
        right: 18px;
        top: -18px;
    }
}

@media (max-width: 720px) {
    .premium-home-hero {
        padding: 58px 0 58px;
    }

    .premium-hero-copy h1 {
        font-size: clamp(2.45rem, 13vw, 3.65rem);
    }

    .premium-hero-search {
        flex-direction: column;
    }

    .search-icon {
        display: none;
    }

    .premium-hero-search button {
        min-height: 44px;
    }

    .dashboard-top {
        padding: 22px;
    }

    .dashboard-top strong {
        font-size: 3.65rem;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .floating-card {
        position: static;
        margin-top: 12px;
    }
}


/* Clean Premium Home Hero - no right dashboard */
.clean-premium-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 82px;
    background:
        radial-gradient(circle at 18% 18%, rgba(29, 78, 216, 0.18), transparent 32%),
        radial-gradient(circle at 76% 12%, rgba(16, 185, 129, 0.16), transparent 34%),
        radial-gradient(circle at 52% 86%, rgba(14, 165, 233, 0.12), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 68%, #eef6ff 100%);
}

.clean-premium-hero::before {
    content: "";
    position: absolute;
    inset: 34px auto auto 50%;
    transform: translateX(-50%);
    width: min(980px, 90vw);
    height: 420px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(29,78,216,.13), rgba(16,185,129,.12));
    filter: blur(58px);
    opacity: .8;
    pointer-events: none;
}

.clean-premium-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(29,78,216,.18), rgba(16,185,129,.18), transparent);
}

.hero-orb-three {
    width: 170px;
    height: 170px;
    left: 54%;
    bottom: 46px;
    background: rgba(14, 165, 233, 0.12);
}

.clean-hero-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
}

.clean-hero-copy {
    width: min(960px, 100%);
    text-align: center;
    display: grid;
    justify-items: center;
}

.clean-hero-copy h1 {
    max-width: 920px;
    margin-bottom: 24px;
    font-size: clamp(3.1rem, 7vw, 6rem);
    line-height: .96;
    letter-spacing: -0.075em;
    color: #0f172a;
    text-wrap: balance;
}

.clean-hero-copy p {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 1.18rem;
    line-height: 1.75;
    color: #52637a;
}

.clean-trust-row {
    justify-content: center;
    margin-top: 24px;
}

.clean-trust-row span {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.055);
}

.clean-hero-search {
    width: min(760px, 100%);
    margin: 30px auto 18px;
    border-color: rgba(226,232,240,.95);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.10),
        0 0 0 8px rgba(255,255,255,.44);
}

.clean-hero-search:focus-within {
    border-color: rgba(29, 78, 216, 0.35);
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.12),
        0 0 0 6px rgba(29, 78, 216, 0.08);
}

.clean-hero-actions {
    justify-content: center;
    margin-top: 2px;
}

.clean-hero-actions .btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow:
        0 18px 38px rgba(29, 78, 216, 0.24),
        0 0 0 1px rgba(255,255,255,.28) inset;
}

.clean-hero-actions .btn-secondary {
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.clean-hero-stats {
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.clean-hero-stats div {
    padding: 18px 16px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 22px;
    background: rgba(255,255,255,.76);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.clean-hero-stats strong {
    display: block;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 7px;
}

.clean-hero-stats span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 850;
}

@media (max-width: 720px) {
    .clean-premium-hero {
        padding: 62px 0 58px;
    }

    .clean-hero-copy {
        text-align: left;
        justify-items: start;
    }

    .clean-hero-copy h1 {
        font-size: clamp(2.55rem, 13vw, 3.9rem);
    }

    .clean-trust-row,
    .clean-hero-actions {
        justify-content: flex-start;
    }

    .clean-hero-search {
        width: 100%;
    }

    .clean-hero-stats {
        grid-template-columns: 1fr;
    }
}


/* Centered premium hero layout */
.centered-premium-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 78px;
    background:
        radial-gradient(circle at 50% 10%, rgba(29, 78, 216, 0.13), transparent 34%),
        radial-gradient(circle at 58% 18%, rgba(16, 185, 129, 0.10), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 74%, #eef6ff 100%);
}

.centered-premium-hero::before {
    content: "";
    position: absolute;
    top: 86px;
    left: 50%;
    transform: translateX(-50%);
    width: min(740px, 82vw);
    height: 170px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(29,78,216,.22), rgba(16,185,129,.18));
    filter: blur(52px);
    opacity: .9;
    pointer-events: none;
}

.centered-premium-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(29,78,216,.18), rgba(16,185,129,.18), transparent);
}

.center-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(28px);
    opacity: .7;
    pointer-events: none;
}

.center-hero-glow-one {
    width: 220px;
    height: 220px;
    left: 10%;
    top: 90px;
    background: rgba(29, 78, 216, 0.10);
}

.center-hero-glow-two {
    width: 260px;
    height: 260px;
    right: 10%;
    top: 70px;
    background: rgba(16, 185, 129, 0.10);
}

.center-hero-container {
    position: relative;
    z-index: 1;
}

.center-hero-content {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
    display: grid;
    justify-items: center;
}

.center-hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(238, 242, 255, 0.92);
    border: 1px solid rgba(29, 78, 216, 0.13);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.08);
    margin-bottom: 22px;
}

.center-hero-content h1 {
    max-width: 880px;
    margin: 0 auto 22px;
    color: #0f172a;
    font-size: clamp(3.1rem, 6.8vw, 5.8rem);
    line-height: .96;
    letter-spacing: -0.075em;
    text-align: center;
    text-wrap: balance;
}

.center-hero-content p {
    max-width: 690px;
    margin: 0 auto;
    color: #52637a;
    font-size: 1.15rem;
    line-height: 1.75;
    text-align: center;
}

.center-hero-search {
    width: min(620px, 100%);
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 30px auto 18px;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, .96);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.10),
        0 0 0 8px rgba(255,255,255,.44);
}

.center-hero-search:focus-within {
    border-color: rgba(29, 78, 216, .36);
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.12),
        0 0 0 6px rgba(29, 78, 216, 0.08);
}

.center-hero-search .search-icon {
    width: 34px;
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 1.22rem;
    font-weight: 900;
}

.center-hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 4px;
    font: inherit;
    color: var(--text);
}

.center-hero-search button {
    min-height: 46px;
    border: 0;
    border-radius: 15px;
    padding: 0 18px;
    background: #eef2ff;
    color: var(--blue);
    font-weight: 900;
    cursor: pointer;
}

.center-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.center-hero-actions .btn {
    min-height: 50px;
    padding-inline: 20px;
}

.center-hero-actions .btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow:
        0 18px 38px rgba(29, 78, 216, 0.24),
        0 0 0 1px rgba(255,255,255,.28) inset;
}

.center-hero-actions .btn-secondary {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.center-hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px auto 0;
}

.center-hero-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(226,232,240,.96);
    backdrop-filter: blur(14px);
    color: #334155;
    font-size: .9rem;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.center-hero-stats {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px auto 0;
}

.center-hero-stats div {
    padding: 18px 16px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.center-hero-stats strong {
    display: block;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 7px;
}

.center-hero-stats span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 850;
}

@media (max-width: 720px) {
    .centered-premium-hero {
        padding: 62px 0 58px;
    }

    .center-hero-content h1 {
        font-size: clamp(2.55rem, 13vw, 3.9rem);
    }

    .center-hero-content p {
        font-size: 1.02rem;
    }

    .center-hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .center-hero-search .search-icon {
        display: none;
    }

    .center-hero-search button {
        width: 100%;
    }

    .center-hero-stats {
        grid-template-columns: 1fr;
    }

    .center-hero-actions .btn {
        width: 100%;
    }
}


/* Hero text refinement */
.center-hero-content h1 {
    max-width: 760px !important;
    font-size: clamp(2.75rem, 5.8vw, 5rem) !important;
    line-height: 1.02 !important;
}

.center-hero-content p {
    max-width: 620px !important;
    font-size: 1.08rem !important;
}

@media (max-width: 720px) {
    .center-hero-content h1 {
        font-size: clamp(2.35rem, 11vw, 3.45rem) !important;
    }
}
