:root {
    --pk-bg: #f2f5ff;
    --pk-bg-2: #ecf7ff;
    --pk-surface: #ffffff;
    --pk-surface-soft: #f7faff;
    --pk-line: #d5e1f4;
    --pk-line-strong: #bfd0ee;
    --pk-text: #0d1b34;
    --pk-muted: #5d6f91;
    --pk-primary: #0f766e;
    --pk-primary-strong: #0a5a54;
    --pk-secondary: #1d4ed8;
    --pk-secondary-strong: #153da8;
    --pk-accent: #f5b700;
    --pk-dark: #0f172a;
    --pk-shadow-sm: 0 10px 26px rgba(12, 25, 54, 0.08);
    --pk-shadow-md: 0 22px 52px rgba(12, 25, 54, 0.13);
    --pk-shadow-lg: 0 34px 82px rgba(10, 28, 74, 0.22);
    --pk-radius-sm: 12px;
    --pk-radius-md: 18px;
    --pk-radius-lg: 28px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
    color: var(--pk-text);
    line-height: 1.65;
    background:
        radial-gradient(circle at 0% -10%, #dff4ff 0%, rgba(223, 244, 255, 0) 48%),
        radial-gradient(circle at 105% 5%, #dcfff4 0%, rgba(220, 255, 244, 0) 50%),
        linear-gradient(180deg, var(--pk-bg) 0%, #f8fbff 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    margin-top: 0;
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.02em;
    color: #0a1730;
}

a {
    color: #1e43b3;
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
    color: #142f80;
}

.text-muted {
    color: var(--pk-muted) !important;
}

.site-navbar {
    border-bottom: 1px solid rgba(186, 201, 232, 0.85);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}

.site-utility {
    border-bottom: 1px solid rgba(186, 201, 232, 0.55);
    background: linear-gradient(90deg, rgba(238, 247, 255, 0.9) 0%, rgba(242, 255, 249, 0.86) 100%);
}

.navbar-brand {
    min-width: 0;
}

.site-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.footer-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0e1b36;
}

.brand-subtitle {
    font-size: 0.73rem;
    color: #5f7398;
}

.navbar-toggler {
    border-color: #c6d5ef;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .24rem rgba(29, 78, 216, 0.15);
}

.nav-pills-wrap {
    gap: .28rem;
}

.navbar .nav-link {
    font-weight: 600;
    border-radius: 999px;
    color: #213960;
    padding: .52rem .88rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--pk-secondary) 0%, #2455e4 100%);
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
}

.site-search {
    min-width: min(420px, 100%);
}

.site-search .form-control {
    background: #fff;
}

.form-control,
.form-select,
.btn {
    border-radius: 12px;
}

.form-control,
.form-select {
    border: 1px solid var(--pk-line);
    color: var(--pk-text);
    padding: .67rem .88rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #80c0b8;
    box-shadow: 0 0 0 .25rem rgba(15, 118, 110, 0.15);
}

.btn {
    font-weight: 600;
}

.btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--pk-secondary) 0%, #2358eb 100%);
    box-shadow: 0 14px 26px rgba(35, 88, 235, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--pk-secondary-strong) 0%, #1d4cd3 100%);
}

.btn-warning {
    border: 0;
    color: #332100;
    background: linear-gradient(135deg, var(--pk-accent) 0%, #ffcb2d 100%);
    box-shadow: 0 12px 24px rgba(245, 183, 0, 0.28);
}

.btn-warning:hover,
.btn-warning:focus {
    color: #2a1b00;
    background: linear-gradient(135deg, #ebae00 0%, #ffc522 100%);
}

.btn-light {
    color: #102449;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.95);
}

.btn-light:hover,
.btn-light:focus {
    color: #0d2248;
    background: #fff;
}

.btn-dark {
    border: 0;
    background: linear-gradient(135deg, #0f1a34 0%, #0b1226 100%);
}

.btn-outline-primary {
    color: #1e48bd;
    border-color: #a6bfeb;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #14337f;
    border-color: #8faee6;
    background: #eaf1ff;
}

.hero-shell {
    position: relative;
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--pk-radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 18% 88%, rgba(245, 183, 0, 0.24), rgba(245, 183, 0, 0) 34%),
        linear-gradient(128deg, #0e7e75 0%, #0f5f99 46%, #1f43bf 100%);
    box-shadow: var(--pk-shadow-lg);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.hero-lead {
    color: rgba(244, 249, 255, 0.92);
    font-size: 1.08rem;
    max-width: 50ch;
}

.hero-search .form-control {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.92);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .72rem;
    max-width: 560px;
}

.hero-metric {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: .72rem .82rem;
}

.hero-metric-value {
    display: block;
    line-height: 1.1;
    font-size: 1.26rem;
    font-weight: 800;
    color: #fff;
}

.hero-metric-label {
    display: block;
    font-size: .77rem;
    color: rgba(239, 247, 255, 0.9);
}

.hero-live {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 1.05rem;
}

.hero-live-header {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .86rem;
    font-weight: 700;
}

.hero-live-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #16f7ba;
    box-shadow: 0 0 0 6px rgba(22, 247, 186, 0.2);
}

.hero-live-list {
    display: grid;
    gap: .58rem;
}

.hero-live-item {
    display: flex;
    align-items: center;
    gap: .72rem;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    padding: .58rem;
    color: #fff;
}

.hero-live-item:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
}

.hero-live-item img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-live-item strong {
    display: block;
    font-size: .9rem;
}

.hero-live-item small {
    display: block;
    color: rgba(236, 246, 255, 0.86);
}

.hero-live-footer {
    margin-top: .95rem;
}

.quick-card {
    height: 100%;
    border-radius: 16px;
    border: 1px solid var(--pk-line);
    background: linear-gradient(180deg, #fff 0%, #f8fcff 100%);
    box-shadow: var(--pk-shadow-sm);
    padding: 1rem;
}

.quick-card strong {
    display: block;
    margin-bottom: .42rem;
}

.quick-card p {
    margin-bottom: .55rem;
    color: var(--pk-muted);
    font-size: .92rem;
}

.quick-card a {
    font-weight: 700;
}

.badge-soft {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.section-title {
    font-weight: 800;
}

.card-soft {
    border: 1px solid var(--pk-line);
    border-radius: var(--pk-radius-md);
    background: linear-gradient(180deg, #fff 0%, var(--pk-surface-soft) 100%);
    box-shadow: var(--pk-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card-soft:hover {
    transform: translateY(-5px);
    border-color: var(--pk-line-strong);
    box-shadow: var(--pk-shadow-md);
}

.card-soft .card-body {
    padding: 1.05rem 1.1rem 1.1rem;
}

.card-soft h2,
.card-soft h3 {
    margin-bottom: .52rem;
}

.card-thumb-wrap {
    display: block;
    padding: .72rem .72rem 0;
}

.card-thumb {
    width: 100%;
    height: 188px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #d7e3f6;
    background: #ebf4ff;
}

.trending-list a {
    color: inherit;
}

.trending-thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 11px;
    border: 1px solid #d2e1f7;
    background: #edf5ff;
}

.article-cover {
    border-radius: 16px;
    border: 1px solid var(--pk-line);
    overflow: hidden;
    background: #edf4ff;
}

.article-cover img {
    display: block;
    width: 100%;
    height: clamp(190px, 34vw, 368px);
    object-fit: cover;
}

.newsletter-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(29, 78, 216, 0.08), rgba(29, 78, 216, 0)),
        linear-gradient(180deg, #fff 0%, #f6fbff 100%);
}

.ad-placeholder,
.ad-slot,
.ad-demo {
    border: 2px dashed #c5d7f4;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    background: linear-gradient(135deg, #f7fbff 0%, #f2fff8 100%);
    color: #52658a;
}

.result-box {
    border-left: 5px solid var(--pk-primary);
    border-radius: 14px;
    background: #ecfbf8;
    padding: 16px;
}

.faq-accordion .accordion-item {
    border: 1px solid var(--pk-line);
    border-radius: 12px !important;
    margin-bottom: .55rem;
    overflow: hidden;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #ecf8ff;
    color: #0e2f72;
    box-shadow: none;
}

.table-of-contents {
    border-left: 4px solid #86acee;
    border-radius: 12px;
    padding: 12px;
    background: #edf4ff;
}

.table-of-contents li {
    margin-bottom: .45rem;
}

.table-of-contents li:last-child {
    margin-bottom: 0;
}

.breadcrumb {
    margin-bottom: .72rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #96a7c8;
}

.breadcrumb-item.active {
    color: #5f7397;
}

.article-content,
.calculator-content {
    line-height: 1.82;
}

.article-content .lead {
    color: #3b4f73;
    font-weight: 500;
}

.article-content h2,
.article-content h3,
.calculator-content h2,
.calculator-content h3 {
    margin-top: 1.7rem;
    margin-bottom: .7rem;
}

.article-content p,
.calculator-content p {
    margin-bottom: .9rem;
}

.article-content ul,
.calculator-content ul {
    padding-left: 1.28rem;
}

.pagination {
    gap: .22rem;
}

.page-link {
    border-radius: 10px !important;
    border-color: #c9d8f0;
    color: #1d3f95;
    font-weight: 600;
}

.page-item.active .page-link {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--pk-secondary) 0%, #2252e0 100%);
}

.footer {
    border-top: 1px solid rgba(145, 169, 209, 0.28);
    background:
        radial-gradient(circle at 0% 100%, rgba(13, 118, 110, 0.2), rgba(13, 118, 110, 0)),
        linear-gradient(180deg, #0d1a36 0%, #0a1226 100%);
    color: #d8e5ff;
}

.footer .text-muted {
    color: #9fb1d3 !important;
}

.footer a {
    color: #b4ccff;
}

.mobile-sticky-ad {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 1050;
}

[data-search-suggestions] {
    z-index: 2200;
    border-radius: 12px;
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #c8d8f0;
}

[data-search-suggestions] .list-group-item {
    border-left: 0;
    border-right: 0;
}

@media (max-width: 1199px) {
    .site-search {
        min-width: 320px;
    }
}

@media (max-width: 991px) {
    .site-utility {
        display: none !important;
    }

    .navbar .btn-dark {
        display: none !important;
    }

    .site-search {
        margin-top: .5rem;
        min-width: 100%;
    }

    .hero {
        border-radius: 20px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .hero-live {
        margin-top: .25rem;
    }

    .card-thumb {
        height: 172px;
    }

    .trending-thumb {
        width: 54px;
        height: 54px;
    }

    .footer .d-flex {
        gap: .82rem !important;
    }
}

@media (max-width: 575px) {
    .brand-subtitle {
        display: none;
    }

    .brand-title {
        font-size: .94rem;
    }

    .site-logo {
        width: 40px;
        height: 40px;
    }

    .hero .display-5 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero,
    .card-soft,
    .quick-card {
        animation: fadeRise .45s ease both;
    }

    .card-soft:nth-child(2n),
    .quick-card:nth-child(2n) {
        animation-delay: .05s;
    }

    .card-soft:nth-child(3n),
    .quick-card:nth-child(3n) {
        animation-delay: .1s;
    }

    @keyframes fadeRise {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.input-section-title {
    font-weight: 700;
    color: #0f2a59;
    padding-top: .25rem;
    margin-bottom: .1rem;
}

.calculator-form-grid .form-text {
    font-size: .78rem;
}

.calculator-result-wrap {
    border-color: #bfd5f5;
}

.calc-primary-result {
    border: 1px solid #c9d9f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #f4fbff 0%, #eff7ff 100%);
    padding: 1rem;
}

.calc-primary-value {
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.08;
    color: #0a3d97;
    margin-bottom: .25rem;
}

.calc-summary-card {
    border-radius: 14px;
    border: 1px solid #d2def0;
    background: #fff;
    padding: .72rem .78rem;
    height: 100%;
}

.calc-summary-card small {
    display: block;
    color: #4e638a;
    font-size: .76rem;
    margin-bottom: .25rem;
}

.calc-summary-card strong {
    display: block;
    line-height: 1.2;
    color: #0b1f43;
}

.calc-summary-card span {
    display: block;
    margin-top: .25rem;
    color: #6a7da1;
    font-size: .74rem;
}

.calc-tone-success {
    border-color: #b9e6d7;
    background: #effcf6;
}

.calc-tone-primary {
    border-color: #bfd5fb;
    background: #f0f6ff;
}

.calc-tone-warning {
    border-color: #ffe0a8;
    background: #fff8ea;
}

.calc-tone-dark {
    border-color: #d4dbeb;
    background: #f6f8fd;
}

.calc-result-sticky {
    border: 1px solid #d0ddf4;
    border-radius: 14px;
    background: #ffffff;
    padding: .8rem;
}

.calc-box {
    border: 1px solid #d0ddf4;
    border-radius: 14px;
    background: #fcfeff;
    padding: .86rem;
}

.calc-scenario-card {
    border: 1px dashed #bdd3f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    padding: .65rem;
    height: 100%;
}

.calc-scenario-card small {
    display: block;
    color: #5972a5;
    font-size: .76rem;
}

.calc-scenario-card strong {
    display: block;
    margin-top: .15rem;
}

.calc-scenario-card span {
    display: block;
    color: #647ba4;
    font-size: .74rem;
}

.calc-list {
    padding-left: 1.1rem;
}

.calc-list li {
    margin-bottom: .42rem;
}

.calc-list li:last-child {
    margin-bottom: 0;
}

.calc-list-tips li::marker {
    color: #0f766e;
}

#calcChart {
    min-height: 280px;
}

@media (min-width: 1200px) {
    .calc-result-sticky {
        position: sticky;
        top: 92px;
    }
}

@media (max-width: 575px) {
    .calc-primary-value {
        font-size: 1.7rem;
    }

    #calcChart {
        min-height: 220px;
    }
}
