/* AquaTools – main styles. Brand: change --primary / --secondary / fonts below. */
:root {
    --bg: #F5F9F7;
    --surface: #fff;
    --surface-2: #EDF5F2;
    --primary: #0A6F69;
    --primary-2: #0F8F86;
    --primary-ink: #fff;
    --secondary: #2F9E6B;
    --mint: #DDF4EA;
    --text: #0C2523;
    /* --muted: #52706C; */
    --muted: #1a3834;
    --border: #DCE8E4;
    --gold: #B8924A;
    --gold-ink: #7A5C22;
    --ink-deep: #052B2D;
    --shadow: 0 1px 2px rgba(5, 43, 45, .05), 0 18px 40px -18px rgba(5, 43, 45, .2);
    --shadow-h: 0 2px 4px rgba(5, 43, 45, .06), 0 34px 60px -24px rgba(5, 80, 80, .38);
    --r: 24px;
    --r-sm: 14px;
    --footer: #04201F;
    --font-h: 'Fraunces', Georgia, serif;
    --font-b: 'Manrope', system-ui, sans-serif
}

[data-theme=dark] {
    --bg: #04161A;
    --surface: #082228;
    --surface-2: #0C2D34;
    --primary: #3DE0C5;
    --primary-2: #7DF0DA;
    --primary-ink: #031B1D;
    --secondary: #86D9A8;
    --mint: #0C3A3C;
    --text: #EEF6F3;
    --muted: #9DB9B4;
    --border: #163840;
    --gold: #E2C98B;
    --gold-ink: #E2C98B;
    --ink-deep: #031B1D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px -18px rgba(0, 0, 0, .65);
    --shadow-h: 0 2px 4px rgba(0, 0, 0, .4), 0 34px 60px -24px rgba(0, 0, 0, .8);
    --footer: #020F12
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-body-font-family: var(--font-b);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-b);
    line-height: 1.65;
    overflow-x: hidden
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-h);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--text)
}

a {
    color: var(--primary);
    text-decoration: none
}

a:hover {
    color: var(--primary-2)
}

img,
svg {
    max-width: 100%
}

.theme-anim,
.theme-anim * {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 8px
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 2000;
    background: var(--primary);
    color: var(--primary-ink);
    padding: .6rem 1rem;
    border-radius: 10px
}

.skip-link:focus {
    left: 12px
}

.text-muted-x {
    color: var(--muted)
}

/* Header */
.site-header {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 1030
}

.navbar {
    padding: .7rem 0
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-h);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
    transition: transform .25s ease;
}

.brand:hover {
    color: var(--text);
    text-decoration: none;
}

/* Ultra-Premium Brand Logo Frame */
.brand-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #ffffff 0%, #E8F5F1 100%);
    border: 1px solid rgba(10, 111, 105, 0.16);
    box-shadow: 0 4px 12px -2px rgba(10, 111, 105, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s ease, border-color .3s ease;
}

[data-theme="dark"] .brand-logo-frame {
    background: linear-gradient(145deg, rgba(14, 45, 52, 0.9) 0%, rgba(5, 24, 28, 0.95) 100%);
    border: 1px solid rgba(61, 224, 197, 0.28);
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.55), 0 0 14px rgba(61, 224, 197, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-footer .brand-logo-frame {
    background: linear-gradient(145deg, rgba(18, 56, 64, 0.95) 0%, rgba(4, 22, 26, 0.98) 100%);
    border: 1px solid rgba(94, 234, 212, 0.32);
    box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.7), 0 0 16px rgba(94, 234, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 2px 5px rgba(10, 111, 105, 0.18));
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), filter .35s ease;
}

[data-theme="dark"] .brand-logo,
.site-footer .brand-logo {
    filter: drop-shadow(0 2px 8px rgba(61, 224, 197, 0.35));
}

.brand:hover .brand-logo-frame {
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(61, 224, 197, 0.5);
    box-shadow: 0 8px 22px -3px rgba(10, 111, 105, 0.28), 0 0 16px rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .brand:hover .brand-logo-frame {
    box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.75), 0 0 20px rgba(61, 224, 197, 0.45);
}

.site-footer .brand:hover .brand-logo-frame {
    border-color: rgba(94, 234, 212, 0.6);
    box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.8), 0 0 22px rgba(94, 234, 212, 0.5);
}

.brand:hover .brand-logo {
    transform: scale(1.1) rotate(-3deg);
}

/* Ultra-Premium Brand Typography */
.brand-text {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-h);
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: -.035em;
    user-select: none;
}


/* =========================================
   AQUAPLANTOOLS – PREMIUM BRAND GRADIENTS
   Ocean Blue + Emerald + Deep Slate
========================================= */

/* Aqua – Deep Ocean Blue */
.brand-aqua {
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #075985 0%, #0369A1 50%, #0891B2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(3, 105, 161, 0.15));
    transition: filter .3s ease;
}

[data-theme="dark"] .brand-aqua,
.site-footer .brand-aqua {
    background: linear-gradient(135deg, #7DD3FC 0%, #38BDF8 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(56, 189, 248, 0.2));
}

.brand:hover .brand-aqua {
    filter: drop-shadow(0 2px 8px rgba(3, 105, 161, 0.3));
}

[data-theme="dark"] .brand:hover .brand-aqua,
.site-footer .brand:hover .brand-aqua {
    filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.45));
}


/* Plan – Premium Emerald Green */
.brand-plan {
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #065F46 0%, #047857 50%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(4, 120, 87, 0.15));
    transition: filter .3s ease;
}

[data-theme="dark"] .brand-plan,
.site-footer .brand-plan {
    background: linear-gradient(135deg, #6EE7B7 0%, #34D399 50%, #A7F3D0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(52, 211, 153, 0.2));
}

.brand:hover .brand-plan {
    filter: drop-shadow(0 2px 8px rgba(4, 120, 87, 0.3));
}

[data-theme="dark"] .brand:hover .brand-plan,
.site-footer .brand:hover .brand-plan {
    filter: drop-shadow(0 2px 10px rgba(52, 211, 153, 0.45));
}


/* Tools – Premium Graphite / Silver */
.brand-tools,
.brand b {
    font-weight: 800;
    font-style: normal;
    letter-spacing: -.025em;
    margin-left: 1px;
    background: linear-gradient(135deg, #1E293B 0%, #334155 50%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(30, 41, 59, 0.12));
    transition: filter .3s ease;
}

[data-theme="dark"] .brand-tools,
[data-theme="dark"] .brand b,
.site-footer .brand-tools,
.site-footer .brand b {
    background: linear-gradient(135deg, #CBD5E1 0%, #E2E8F0 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(203, 213, 225, 0.15));
}

.brand:hover .brand-tools,
.brand:hover b {
    filter: drop-shadow(0 2px 8px rgba(30, 41, 59, 0.25));
}

[data-theme="dark"] .brand:hover .brand-tools,
[data-theme="dark"] .brand:hover b,
.site-footer .brand:hover .brand-tools,
.site-footer .brand:hover b {
    filter: drop-shadow(0 2px 10px rgba(226, 232, 240, 0.3));
}


/* Multi-Color Premium Brand Dot */
.brand-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: super;
    position: relative;
    top: -2px;
    background: linear-gradient(135deg, #0284C7 0%, #10B981 100%);
    box-shadow:
        0 0 7px rgba(16, 185, 129, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow .3s ease;
}

[data-theme="dark"] .brand-dot,
.site-footer .brand-dot {
    background: linear-gradient(135deg, #38BDF8 0%, #34D399 100%);
    box-shadow:
        0 0 8px rgba(56, 189, 248, 0.5),
        0 0 12px rgba(52, 211, 153, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.brand:hover .brand-dot {
    transform: scale(1.4);
    box-shadow:
        0 0 12px rgba(56, 189, 248, 0.7),
        0 0 16px rgba(52, 211, 153, 0.5);
}

@media (max-width: 575.98px) {
    .brand-text {
        font-size: 1.25rem;
    }

    .brand-logo-frame {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .brand-dot {
        width: 5px;
        height: 5px;
    }
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--primary-2), var(--secondary));
    box-shadow: 0 8px 18px -8px var(--primary)
}

.brand-mark svg {
    width: 24px;
    height: 24px
}

.navbar .nav-link {
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
    padding: .55rem .95rem !important;
    border-radius: 999px
}

.navbar .nav-link:hover {
    color: var(--text);
    background: var(--surface-2)
}

.navbar .nav-link.active {
    color: var(--primary);
    background: var(--mint)
}

.theme-btn,
.nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    padding: 0;
    transition: transform .2s, border-color .2s
}

.theme-btn:hover,
.nav-toggle:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.nav-toggle:focus {
    box-shadow: none
}

.theme-sun {
    display: none
}

[data-theme=dark] .theme-sun {
    display: block
}

[data-theme=dark] .theme-moon {
    display: none
}

/* Buttons */
.btn-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    border-radius: 14px;
    padding: .85rem 1.4rem;
    min-height: 48px;
    border: 1px solid transparent;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s
}

.btn-x:hover {
    transform: translateY(-2px)
}

.btn-primary-x {
    background: var(--primary);
    color: var(--primary-ink);
    box-shadow: 0 12px 24px -12px var(--primary)
}

.btn-primary-x:hover {
    background: var(--primary-2);
    color: var(--primary-ink)
}

.btn-ghost-x {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border)
}

.btn-ghost-x:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.btn-light-x {
    background: #fff;
    color: #07454A
}

.btn-light-x:hover {
    background: var(--mint);
    color: #07454A
}

/* Layout helpers */
.section {
    padding: 5rem 0
}

.section-sm {
    padding: 3rem 0
}

.section-head {
    /* max-width: 840px; */
    margin-bottom: 2.6rem
}

.section-head.center {
    margin-inline: auto;
    text-align: center
}

.section-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    margin-bottom: .7rem
}

.section-head p {
    color: var(--muted);
    margin: 0
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: var(--mint);
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600
}

/* Cards */
.card-x {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
    position: relative;
    overflow: hidden
}

.card-x.lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-h);
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border))
}

.card-pad {
    padding: 1.75rem
}

.icon-tile {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--mint);
    margin-bottom: 1.2rem;
    transition: transform .3s, background .3s, color .3s
}

.lift:hover .icon-tile {
    transform: scale(1.06) rotate(-4deg);
    background: var(--primary);
    color: var(--primary-ink)
}

.card-x h3 {
    font-size: 1.15rem;
    margin-bottom: .5rem
}

.card-x p {
    color: var(--muted);
    font-size: .95rem
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .95rem
}

.link-arrow i {
    transition: transform .25s
}

.lift:hover .link-arrow i,
.link-arrow:hover i {
    transform: translateX(4px)
}

.stretch::after {
    content: "";
    position: absolute;
    inset: 0
}

/* Hero */
.hero {
    position: relative;
    padding: 4.5rem 0 5rem;
    background: radial-gradient(55% 60% at 92% 0%, var(--mint), transparent 70%), radial-gradient(40% 40% at 0% 100%, color-mix(in srgb, var(--secondary) 14%, transparent), transparent 70%)
}

.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    margin: 1.1rem 0 1.1rem
}

.hero .lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 34rem
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    margin-top: 2rem;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500
}

.hero-meta i {
    color: var(--secondary);
    margin-right: .35rem
}

.tank-frame {
    position: relative;
    padding: 12px;
    border-radius: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-h);
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) both
}

.tank-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem 1rem .65rem .7rem;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-h);
    font-size: .85rem;
    line-height: 1.25;
    z-index: 2;
}

.float-chip i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--mint);
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.float-chip small {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
}

.float-chip strong {
    display: block;
    font-family: var(--font-h);
    color: var(--text);
    font-size: .95rem;
    font-weight: 700;
}

.chip-a {
    left: -22px;
    bottom: 12%
}

.chip-b {
    right: -14px;
    top: 9%
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* Category cards */
.cat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.4rem
}

.cat-card .icon-tile {
    margin: 0;
    flex: none
}

.cat-card h3 {
    margin: 0;
    font-size: 1.02rem
}

.cat-card p {
    margin: 0;
    font-size: .85rem
}

.cat-card .bi-arrow-up-right {
    margin-left: auto;
    color: var(--muted);
    transition: transform .25s, color .25s
}

.cat-card:hover .bi-arrow-up-right {
    transform: translate(3px, -3px);
    color: var(--primary)
}

/* Guide cards */
.guide-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover
}

.guide-body {
    padding: 1.5rem 1.6rem 1.7rem
}

.tag {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: var(--mint);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .8rem
}

.guide-card .tag {
    position: absolute;
    left: 1rem;
    top: 1rem;
    margin: 0;
    background: var(--surface)
}

/* CTA */
.cta {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #07454A, #0B6E6E 60%, #2E9A74)
}

.cta::before,
.cta::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16)
}

.cta::before {
    width: 420px;
    height: 420px;
    left: -120px;
    top: -200px
}

.cta::after {
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -300px
}

.cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.3rem)
}

.cta p {
    color: rgba(255, 255, 255, .85);
    max-width: 34rem;
    margin: .8rem auto 1.8rem
}

.cta>* {
    position: relative
}

/* Footer */
.site-footer {
    background: var(--footer);
    color: #B9D3D0;
    padding: 4.5rem 0 1.8rem;
    margin-top: 3rem
}

.site-footer h2 {
    font-size: .95rem;
    color: #fff;
    margin-bottom: 1.1rem
}

.site-footer a {
    color: #B9D3D0
}

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



.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .6rem;
    font-size: .93rem
}

.social {
    display: flex;
    gap: .6rem;
    margin-top: 1.3rem
}

.social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .07);
    transition: background .2s, transform .2s
}

.social a:hover {
    background: #2DD4BF;
    color: #042124;
    transform: translateY(-3px)
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: .88rem
}

.to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    border: 0;
    background: var(--primary);
    color: var(--primary-ink);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-h);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s;
    z-index: 1020
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none
}

/* Page header / breadcrumb */
.page-hero {
    padding: 3.2rem 0 2.2rem;
    background: radial-gradient(50% 90% at 100% 0%, var(--mint), transparent 70%)
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.8vw, 2.7rem);
    margin-bottom: .8rem
}

.page-hero p {
    color: var(--muted);
    max-width: 42rem;
    margin: 0
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--muted);
    font-size: .88rem;
    margin-bottom: 1.2rem
}

.breadcrumb-item.active {
    color: var(--muted)
}

/* Tools page */
.search-wrap {
    position: relative
}

.search-wrap i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted)
}

.search-wrap .form-control {
    padding-left: 2.9rem
}

.filter-chip {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    border-radius: 999px;
    padding: .55rem 1.1rem;
    font-weight: 600;
    font-size: .9rem;
    min-height: 44px;
    transition: all .2s
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-ink)
}

.no-results {
    text-align: center;
    padding: 3.5rem 1.5rem
}

.no-results i {
    font-size: 2.6rem;
    color: var(--primary)
}

.tool-item[hidden] {
    display: none !important
}

/* Forms */
.form-control,
.form-select {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .8rem 1rem;
    min-height: 48px
}

.form-control:focus,
.form-select:focus {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--primary) 25%, transparent)
}

.form-label {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .4rem
}

.input-group-text {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
    font-size: .9rem
}

.input-group>.form-control {
    border-radius: var(--r-sm) 0 0 var(--r-sm) !important
}

::placeholder {
    color: var(--muted) !important;
    opacity: .7
}

/* Calculator */
.calc-card {
    padding: 2rem
}

.result-card {
    background: linear-gradient(140deg, #07454A, #0B6E6E);
    color: #fff;
    border: 0;
    padding: 1.8rem
}

.result-card .label {
    color: rgba(255, 255, 255, .75);
    font-size: .85rem
}

.result-card .big {
    font-family: var(--font-h);
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 1.1;
    color: #fff
}

.result-card .sub {
    background: rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: .8rem 1rem
}

.result-card .sub strong {
    display: block;
    font-family: var(--font-h);
    font-size: 1.15rem;
    color: #fff
}

/* Prose / Educational content */
.prose {
    color: var(--text);
    line-height: 1.8;
    font-size: 1.02rem;
}

.prose h2 {
    font-family: var(--font-h);
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .65rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-family: var(--font-h);
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -.015em;
    margin-top: 2.2rem;
    margin-bottom: .85rem;
    color: var(--text);
    padding-left: .95rem;
    border-left: 3.5px solid var(--primary);
    line-height: 1.3;
}

.prose p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.prose p strong,
.prose li strong {
    color: var(--text);
    font-weight: 600;
}

.prose ul {
    list-style: none;
    padding-left: 0;
    margin: 1.3rem 0 1.75rem;
    display: grid;
    gap: .85rem;
}

.prose ul li {
    position: relative;
    padding-left: 1.95rem;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.65;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.prose ol {
    list-style: none;
    counter-reset: prose-counter;
    padding-left: 0;
    margin: 1.3rem 0 1.75rem;
    display: grid;
    gap: .95rem;
}

.prose ol li {
    counter-increment: prose-counter;
    position: relative;
    padding-left: 2.85rem;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.65;
}

.prose ol li::before {
    content: counter(prose-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--mint);
    color: var(--primary);
    font-weight: 700;
    font-size: .85rem;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.prose .formula {
    background: linear-gradient(145deg, var(--surface-2), color-mix(in srgb, var(--mint) 25%, var(--surface-2)));
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: var(--r-sm);
    padding: 1.35rem 1.6rem;
    line-height: 1.9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .03);
}

.prose .formula strong {
    color: var(--primary);
    font-weight: 700;
    display: inline-block;
    min-width: 170px;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-sm);
    margin: 1.5rem 0;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

/* Callout cards inside prose */
.prose .callout-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1.25rem 1.4rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.prose .callout-card i {
    font-size: 1.35rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: .15rem;
}

.prose .callout-card p {
    margin-bottom: 0;
    font-size: .95rem;
}

.prose .stat-grid-duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.prose .stat-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1.15rem 1.35rem;
    transition: transform .2s ease, border-color .2s ease;
}

.prose .stat-box:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.prose .stat-box small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .25rem;
}

.prose .stat-box strong {
    display: block;
    font-family: var(--font-h);
    font-size: 1.25rem;
    color: var(--primary);
}



.steps {
    list-style: none;
    counter-reset: s;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .9rem
}

.steps li {
    counter-increment: s;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: var(--muted)
}

.steps li::before {
    content: counter(s);
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--mint);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .9rem
}

.formula {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    background: var(--surface-2);
    border: 1px dashed color-mix(in srgb, var(--primary) 50%, var(--border));
    border-radius: var(--r-sm);
    padding: 1rem 1.2rem;
    color: var(--primary);
    font-size: .95rem;
    overflow-x: auto
}

.table-x {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    margin: 0;
    font-size: .93rem
}

.table-x th {
    color: var(--muted);
    font-weight: 600;
    font-size: .82rem;
    background: var(--surface-2) !important
}

.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: auto
}

.accordion {
    --bs-accordion-bg: var(--surface);
    --bs-accordion-color: var(--text);
    --bs-accordion-border-color: var(--border);
    --bs-accordion-btn-bg: var(--surface);
    --bs-accordion-btn-color: var(--text);
    --bs-accordion-active-bg: var(--mint);
    --bs-accordion-active-color: var(--primary);
    --bs-accordion-border-radius: var(--r-sm);
    --bs-accordion-inner-border-radius: var(--r-sm);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--primary) 25%, transparent);
    display: grid;
    gap: .75rem
}

.accordion-item {
    border: 1px solid var(--border) !important;
    border-radius: var(--r-sm) !important;
    overflow: hidden
}

.accordion-button {
    font-weight: 600;
    font-family: var(--font-h);
    font-size: .98rem
}

[data-theme=dark] .accordion-button::after {
    filter: invert(1)
}

.side-sticky {
    position: sticky;
    top: 96px
}

.mini-link {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .8rem;
    border-radius: var(--r-sm);
    color: var(--text);
    transition: background .2s
}

.mini-link:hover {
    background: var(--surface-2);
    color: var(--text)
}

.mini-link .icon-tile {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin: 0;
    border-radius: 13px;
    flex: none
}

.mini-link small {
    display: block;
    color: var(--muted)
}

.contact-line {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.3rem
}

.contact-line .icon-tile {
    margin: 0;
    width: 48px;
    height: 48px;
    flex: none;
    font-size: 1.2rem
}

.contact-line p {
    margin: 0
}

/* ===== Premium layer ===== */
body {
    font-weight: 450;
    letter-spacing: .005em;
    -webkit-font-smoothing: antialiased
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 500;
    letter-spacing: -.015em
}

h1 {
    font-variation-settings: "opsz" 144;
    line-height: 1.06
}

h2,
h3 {
    font-variation-settings: "opsz" 72
}

.card-x h3 {
    font-size: 1.3rem;
    font-weight: 600
}



.brand-mark {
    background: linear-gradient(150deg, var(--ink-deep), var(--primary));
    box-shadow: 0 10px 22px -10px var(--primary), inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent)
}

.brand-mark svg path:first-child {
    fill: #fff
}

.site-header {
    background: color-mix(in srgb, var(--bg) 78%, transparent)
}

.navbar .nav-link {
    font-weight: 600;
    letter-spacing: .01em
}

.navbar .nav-link .nav-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 6px
}

.navbar .nav-link.active {
    background: transparent;
    color: var(--text);
    box-shadow: none;
    border-radius: 0
}

.navbar .nav-link.active .nav-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px
}

.navbar .nav-link.active:not(:has(.nav-text)) {
    box-shadow: inset 0 -2px 0 var(--gold)
}

/* ==========================================================================
   Navbar Categories Dropdown
   ========================================================================== */
.navbar .dropdown-toggle::after {
    vertical-align: 0.15em;
    margin-left: 0.35rem;
    transition: transform .22s ease;
}

.navbar .nav-item.dropdown:hover .dropdown-toggle::after,
.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.dropdown-menu-premium {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm, 14px);
    box-shadow: 0 16px 36px -8px rgba(5, 43, 45, 0.14), 0 4px 12px rgba(5, 43, 45, 0.05);
    padding: 0.55rem;
    min-width: 230px;
    margin-top: 0.4rem;
    transition: all .2s ease;
}

[data-theme="dark"] .dropdown-menu-premium {
    background: rgba(8, 34, 40, 0.95);
    border-color: rgba(61, 224, 197, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dropdown-menu-premium .dropdown-item {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    transition: all .18s ease;
}

.dropdown-menu-premium .dropdown-item .nav-cat-icon {
    font-size: 1rem;
    color: var(--primary);
    width: 1.25rem;
    text-align: center;
    transition: transform .2s ease, color .2s ease;
}

.dropdown-menu-premium .dropdown-item:hover {
    background: var(--surface-2);
    color: var(--primary);
    transform: translateX(3px);
}

.dropdown-menu-premium .dropdown-item:hover .nav-cat-icon {
    transform: scale(1.18);
    color: var(--primary-2);
}

.dropdown-menu-premium .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: var(--primary-ink) !important;
    font-weight: 600;
}

.dropdown-menu-premium .dropdown-item.active .nav-cat-icon {
    color: var(--primary-ink) !important;
}

[data-theme="dark"] .dropdown-menu-premium .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #031B1D !important;
}

[data-theme="dark"] .dropdown-menu-premium .dropdown-item.active .nav-cat-icon {
    color: #031B1D !important;
}

.dropdown-menu-premium .dropdown-item-subtle {
    font-size: 0.85rem;
    color: var(--muted);
}

.dropdown-menu-premium .dropdown-divider {
    border-color: var(--border);
    margin: 0.4rem 0;
    opacity: 0.7;
}

@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu-premium {
        display: block;
        margin-top: 0;
        animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

@keyframes navDropdownFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-btn,
.nav-toggle {
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    backdrop-filter: blur(8px)
}

/* Buttons */
.btn-x {
    font-weight: 700;
    letter-spacing: .01em;
    border-radius: 16px
}

.btn-primary-x {
    background: linear-gradient(180deg, var(--primary-2), var(--primary));
    box-shadow: 0 14px 28px -14px var(--primary), inset 0 1px 0 rgba(255, 255, 255, .28)
}

.btn-primary-x:hover {
    background: linear-gradient(180deg, var(--primary-2), var(--primary-2));
    box-shadow: 0 20px 36px -14px var(--primary), inset 0 1px 0 rgba(255, 255, 255, .3)
}

.btn-ghost-x {
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(8px)
}

.btn-light-x {
    font-weight: 700;
    box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .5)
}

/* Hero */
.hero {
    background: radial-gradient(60% 70% at 95% -10%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%), radial-gradient(45% 50% at -5% 110%, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg));
    overflow: hidden
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    background: repeating-linear-gradient(115deg, transparent 0 64px, color-mix(in srgb, var(--primary) 5%, transparent) 64px 65px)
}

.hero>.container {
    position: relative
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    font-weight: 450
}

.hero .lead {
    font-size: 1.1rem;
    line-height: 1.75
}

.pill {
    background: color-mix(in srgb, var(--gold) 14%, var(--surface));
    color: var(--gold-ink);
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    font-weight: 700;
    letter-spacing: .01em
}

.hero-meta i {
    color: var(--gold)
}

.tank-frame {
    padding: 14px;
    border-radius: 36px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--gold) 45%, var(--surface)), var(--surface) 30%, var(--surface) 70%, color-mix(in srgb, var(--primary) 40%, var(--surface)));
    border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border));
    box-shadow: var(--shadow-h), 0 0 90px -30px var(--primary)
}

.tank-frame img {
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2)
}

.float-chip {
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    color: var(--text);
    border-color: color-mix(in srgb, var(--gold) 35%, var(--border));
}

.float-chip i {
    background: linear-gradient(145deg, var(--ink-deep), var(--primary));
    color: #fff;
}

.float-chip small {
    color: var(--muted);
}

.float-chip strong {
    color: var(--text);
}

/* Cards */
.card-x {
    border-radius: var(--r);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 100%, #fff), var(--surface))
}

.card-x::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 70%, transparent), transparent);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none
}

.card-x.lift:hover::before {
    opacity: 1
}

.card-x.lift:hover {
    box-shadow: var(--shadow-h), 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent)
}

.icon-tile {
    background: linear-gradient(145deg, var(--mint), color-mix(in srgb, var(--mint) 55%, var(--surface)));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
    border-radius: 18px
}

.lift:hover .icon-tile {
    background: linear-gradient(145deg, var(--primary-2), var(--primary));
    color: var(--primary-ink);
    box-shadow: 0 12px 24px -10px var(--primary)
}

.tag {
    background: color-mix(in srgb, var(--gold) 13%, var(--surface));
    color: var(--gold-ink);
    border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .02em
}

.guide-card .tag {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(8px)
}

.guide-card img {
    transition: transform .8s cubic-bezier(.2, .7, .2, 1)
}

.guide-card:hover img {
    transform: scale(1.05)
}

.link-arrow {
    font-weight: 700;
    color: var(--primary)
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 450
}

.section-head.center::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin: 1.3rem auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent)
}

.section-head:not(.center)::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-top: 1.3rem;
    background: linear-gradient(90deg, var(--gold), transparent)
}

.cat-card {
    background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--mint) 35%, var(--surface)))
}

/* CTA + footer */
.cta {
    background: radial-gradient(70% 120% at 85% 0%, rgba(61, 224, 197, .28), transparent 60%), linear-gradient(135deg, #031F22, #075A5A 65%, #1B8A6A);
    box-shadow: 0 40px 80px -40px rgba(5, 90, 90, .7), inset 0 0 0 1px rgba(226, 201, 139, .35)
}

.cta h2 {
    font-weight: 450;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem)
}

.site-footer {
    background: radial-gradient(60% 80% at 50% -20%, rgba(61, 224, 197, .12), transparent 70%), var(--footer);
    border-top: 1px solid rgba(226, 201, 139, .25)
}

.site-footer h2 {
    font-family: var(--font-b);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    color: #E2C98B
}

.to-top {
    background: linear-gradient(180deg, var(--primary-2), var(--primary))
}

/* Pages */
.page-hero {
    background: radial-gradient(55% 100% at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%)
}

.page-hero h1 {
    font-weight: 450;
    font-size: clamp(2rem, 4.2vw, 3.1rem)
}

.filter-chip {
    font-weight: 700
}

.filter-chip.active {
    background: linear-gradient(180deg, var(--primary-2), var(--primary))
}

.result-card {
    background: radial-gradient(80% 120% at 100% 0%, rgba(61, 224, 197, .3), transparent 60%), linear-gradient(140deg, #031F22, #075A5A);
    box-shadow: var(--shadow-h), inset 0 0 0 1px rgba(226, 201, 139, .35)
}

.result-card .big {
    font-size: 2.8rem;
    font-weight: 450
}

.result-card .sub strong {
    font-weight: 500;
    font-size: 1.3rem
}

.steps li::before {
    background: linear-gradient(145deg, var(--ink-deep), var(--primary));
    color: #fff;
    font-family: var(--font-h)
}

.formula {
    border-color: color-mix(in srgb, var(--gold) 55%, var(--border))
}

.table-x th {
    font-weight: 700;
    letter-spacing: .02em
}

.accordion-button {
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 1.05rem
}

.form-control,
.form-select {
    border-radius: 14px
}

.form-label {
    font-weight: 700
}

/* ===== Poppins override ===== */
:root {
    --font-h: 'Poppins', system-ui, sans-serif;
    --font-b: 'Poppins', system-ui, sans-serif
}

body {
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    letter-spacing: -.025em;
    font-variation-settings: normal
}

h1 {
    line-height: 1.12
}



.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    font-weight: 600
}

.hero .lead {
    font-size: 1.05rem
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 600
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.8vw, 2.7rem);
    font-weight: 600
}

.cta h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 600
}

.card-x h3 {
    font-size: 1.12rem;
    font-weight: 600
}

.result-card .big {
    font-size: 2.8rem;
    font-weight: 600
}

.result-card .sub strong {
    font-weight: 600;
    font-size: 1.25rem
}

.accordion-button {
    font-family: var(--font-b);
    font-weight: 500;
    font-size: 1rem
}

.steps li::before {
    font-family: var(--font-b)
}

.site-footer h2 {
    font-weight: 600
}

.btn-x,
.link-arrow,
.filter-chip,
.form-label,
.tag,
.pill {
    font-weight: 600
}

.btn-x {
    font-size: .95rem
}

.calc-card {
    padding: 2.2rem
}

.result-card {
    padding: 2rem 2.2rem
}

.card-x.result-card {
    height: auto
}

/* ===== Section cards with premium headers ===== */
.sec-card {
    height: auto;
    padding: 0;
    overflow: hidden
}

.sec-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.6rem 1.15rem 1.9rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(100deg, color-mix(in srgb, var(--mint) 75%, var(--surface)), var(--surface) 72%)
}

.sec-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold), var(--primary))
}

.sec-ico {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(145deg, #053B3F, var(--primary-2));
    box-shadow: 0 10px 20px -10px var(--primary), inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent)
}

.sec-head h2 {
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.3
}

.sec-head p {
    margin: .15rem 0 0;
    font-size: .84rem;
    color: var(--muted)
}

.sec-body {
    padding: 1.7rem 1.9rem
}

.sec-body .accordion {
    margin: 0
}

/* ===== Ultra-premium hero (home + inner pages) ===== */
.hero,
.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(60% 120% at 92% 0%, rgba(61, 224, 197, .34), transparent 62%), radial-gradient(50% 90% at 0% 100%, rgba(47, 158, 107, .3), transparent 65%), linear-gradient(135deg, #021A1D, #054446 58%, #0A6F69);
    border-bottom: 1px solid rgba(226, 201, 139, .4)
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    background: repeating-linear-gradient(115deg, transparent 0 72px, rgba(255, 255, 255, .035) 72px 73px)
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='40'%3E%3Cpath d='M0 20 Q60 0 120 20 T240 20' fill='none' stroke='white' stroke-opacity='.1' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 10px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='40'%3E%3Cpath d='M0 20 Q60 40 120 20 T240 20' fill='none' stroke='%23E2C98B' stroke-opacity='.18' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x 70px 50px
}

.hero>.container,
.page-hero>.container {
    position: relative;
    z-index: 1
}

.hero h1,
.page-hero h1 {
    color: #fff
}

.hero .float-chip,
.hero .float-chip strong {
    color: var(--text) !important;
}

.hero .float-chip small {
    color: var(--muted) !important;
}

.hero .lead,
.page-hero p {
    color: rgba(255, 255, 255, .8)
}

.hero .pill,
.page-hero .pill {
    background: rgba(255, 255, 255, .08);
    color: #E8D29B;
    border: 1px solid rgba(226, 201, 139, .5);
    backdrop-filter: blur(8px)
}

.hero-meta,
.hero-meta i {
    color: rgba(255, 255, 255, .78)
}

.hero-meta i {
    color: #E2C98B
}

.hero .btn-primary-x {
    background: linear-gradient(180deg, #8CF3DF, #3DE0C5);
    color: #031B1D;
    box-shadow: 0 18px 36px -14px rgba(61, 224, 197, .7), inset 0 1px 0 rgba(255, 255, 255, .5)
}

.hero .btn-primary-x:hover {
    background: linear-gradient(180deg, #A6F7E8, #5EEAD4);
    color: #031B1D
}

.hero .btn-ghost-x {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .28)
}

.hero .btn-ghost-x:hover {
    background: rgba(255, 255, 255, .16);
    border-color: #E2C98B;
    color: #fff
}

.hero {
    padding: 5rem 0 6rem
}

.page-hero {
    padding: 3.4rem 0 4.6rem
}

.page-hero h1 {
    margin: 1.1rem 0 1rem;
    max-width: 20ch;
    font-size: clamp(2rem, 4.2vw, 3.1rem)
}

.page-hero p {
    max-width: 40rem
}

.page-hero .breadcrumb {
    margin-bottom: 1.6rem;
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5)
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, .75)
}

.page-hero .breadcrumb a:hover {
    color: #fff
}

.page-hero .breadcrumb-item.active {
    color: #E8D29B
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    font-size: .85rem;
    font-weight: 500;
    color: #fff
}

.hero-chip i {
    color: #5EEAD4
}

.hero-chip a {
    color: #fff;
    text-decoration: underline;
    transition: color .2s
}

.hero-chip a:hover {
    color: #5EEAD4
}

.hero-orb {
    position: relative;
    width: min(290px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
    display: grid;
    place-items: center
}

.hero-orb::before,
.hero-orb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(226, 201, 139, .38)
}

.hero-orb::before {
    inset: 0;
    background: radial-gradient(circle, rgba(61, 224, 197, .2), transparent 68%)
}

.hero-orb::after {
    inset: 15%;
    border-style: dashed;
    border-color: rgba(255, 255, 255, .25)
}

.orb-core {
    position: relative;
    width: 44%;
    aspect-ratio: 1;
    border-radius: 32%;
    display: grid;
    place-items: center;
    font-size: 3rem;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .32);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .45)
}

.orb-dot {
    position: absolute;
    inset: 0;
    animation: spin 20s linear infinite
}

.orb-dot::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 13px;
    height: 13px;
    margin-left: -6px;
    border-radius: 50%;
    background: #E2C98B;
    box-shadow: 0 0 18px 2px #E2C98B
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

[data-theme=dark] .sec-ico {
    background: linear-gradient(145deg, #0A6F69, #14A08F)
}

@media (max-width:991.98px) {
    .hero {
        padding: 3.2rem 0 4.6rem
    }

    .page-hero {
        padding: 2.6rem 0 4rem
    }

    .sec-body {
        padding: 1.4rem
    }

    .sec-head {
        padding: 1rem 1.2rem 1rem 1.5rem
    }
}

@media (max-width:575.98px) {
    .sec-head h2 {
        font-size: 1rem
    }

    .sec-ico {
        width: 40px;
        height: 40px
    }

    .page-hero h1 {
        max-width: none
    }
}

/* Trust & Features Bar */
.trust-bar {
    position: relative;
    z-index: 10;
    margin-top: -1.75rem;
    margin-bottom: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-h);
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.trust-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.28rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--mint), color-mix(in srgb, var(--mint) 40%, var(--surface)));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.trust-item:hover .trust-item-icon {
    transform: scale(1.08) rotate(-4deg);
    background: var(--primary);
    color: var(--primary-ink);
}

.trust-item strong {
    display: block;
    font-family: var(--font-h);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: .2rem;
}

.trust-item span {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .trust-bar {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .trust-item {
        padding: .9rem 1rem;
        gap: .75rem;
    }

    .trust-item-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 11px;
    }

    .trust-item strong {
        font-size: .9rem;
    }

    .trust-item span {
        font-size: .76rem;
    }
}

/* ==========================================================================
   Advanced Aquarium Calculator Styles
   ========================================================================== */
.calc-mode-nav {
    display: flex;
    gap: .5rem;
    padding: .35rem;
    background: var(--surface-2);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.calc-mode-btn {
    flex: 1 1 0;
    width: 50%;
    min-width: 0;
    padding: .65rem .85rem;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: all .2s ease;
    cursor: pointer;
    text-align: center;
    line-height: 1.25;
}

.calc-mode-btn:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.calc-mode-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

[data-theme=dark] .calc-mode-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

@media (max-width: 575.98px) {
    .calc-mode-nav {
        flex-direction: column;
        gap: .35rem;
        padding: .4rem;
    }

    .calc-mode-btn {
        width: 100%;
        flex: none;
        padding: .65rem .75rem;
        font-size: .88rem;
    }
}


/* Shape Grid Selector */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.shape-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem .6rem .85rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--muted);
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    font-size: .84rem;
    font-weight: 600;
}

.shape-btn svg {
    width: 44px;
    height: 44px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease, stroke .25s ease;
}

.shape-btn:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
    color: var(--text);
    transform: translateY(-2px);
}

.shape-btn.active {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--mint) 35%, var(--surface));
    color: var(--primary);
    box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--primary) 40%, transparent);
}

.shape-btn.active svg {
    stroke: var(--primary);
    transform: scale(1.08);
}

/* Unit & Dimension Pill Toggles */
.btn-toggle-group {
    display: inline-flex;
    padding: 3px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    gap: 3px;
}

.btn-toggle-option {
    border: 0;
    background: transparent;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s ease;
}

.btn-toggle-option:hover {
    color: var(--text);
}

.btn-toggle-option.active {
    background: var(--primary);
    color: var(--primary-ink);
    box-shadow: 0 2px 6px -2px var(--primary);
}

/* Sump & Displacement collapsible panels */
.sub-panel {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1.25rem;
    margin-top: 1rem;
}

.sub-panel-title {
    font-size: .98rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .85rem;
}

/* Collapsible Advance Options Toggle */
.adv-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .85rem 1.15rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .25s ease;
    margin-top: 1.25rem;
}

.adv-toggle-btn:hover {
    background: color-mix(in srgb, var(--mint) 30%, var(--surface-2));
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    color: var(--primary);
}

.adv-toggle-btn .adv-chevron {
    transition: transform .3s ease;
    font-size: 1.1rem;
    color: var(--muted);
}

.adv-toggle-btn[aria-expanded="true"] .adv-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.adv-collapse-body {
    padding-top: .5rem;
}


/* Substrate Visual Preview Card */
.substrate-preview-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.substrate-tank-cutout {
    width: 100%;
    height: 140px;
    border: 3px solid var(--primary);
    border-top: 1px dashed color-mix(in srgb, var(--primary) 35%, transparent);
    border-radius: 4px 4px 10px 10px;
    position: relative;
    background: rgba(255, 255, 255, .04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.substrate-svg-preview {
    width: 100%;
    height: 100%;
    display: block;
}

.substrate-layer-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .85rem 1rem;
    margin-bottom: .65rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    transition: all .2s ease;
}

.substrate-layer-row:hover {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.substrate-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--surface-2);
}

.zone-grid-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .85rem 1rem;
    margin-bottom: .65rem;
}

.tank-visual-wrap {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.tank-glass-cutout {
    width: 140px;
    height: 120px;
    border: 4px solid var(--primary);
    border-top: 2px dashed color-mix(in srgb, var(--primary) 40%, transparent);
    border-radius: 4px 4px 10px 10px;
    position: relative;
    background: rgba(255, 255, 255, .05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tank-water-fill {
    width: 100%;
    background: linear-gradient(180deg, rgba(61, 224, 197, .55), rgba(10, 111, 105, .85));
    border-top: 2px solid var(--primary-2);
    transition: height .35s ease;
    position: relative;
}

.tank-water-fill::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255, 255, 255, .4);
    border-radius: 50%;
    opacity: .7;
}

.tank-substrate-fill {
    width: 100%;
    background: #6E5336;
    border-top: 2px solid #8C6D4A;
    transition: height .35s ease;
}

/* Preset Cards */
.preset-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.preset-badge-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--mint);
    transform: translateY(-1px);
}

.preset-badge-btn i {
    color: var(--primary);
}

/* Breakdown table */
.breakdown-list {
    display: grid;
    gap: .5rem;
    font-size: .92rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px dashed var(--border);
}

.breakdown-row:last-child {
    border-bottom: 0;
    padding-top: .75rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.breakdown-label {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.breakdown-val {
    font-family: var(--font-h);
    color: var(--text);
    font-weight: 600;
}

/* Filter Flow Visualization & Multi-Filter Styles */
.flow-vis-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.flow-bar-row {
    margin-bottom: 1.1rem;
}

.flow-bar-row:last-child {
    margin-bottom: 0;
}

.flow-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.flow-bar-track {
    height: 12px;
    background: rgba(255, 255, 255, .08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.flow-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

.flow-bar-target {
    background: linear-gradient(90deg, #3DE0C5, #22c55e);
}

.flow-bar-rated {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.flow-bar-actual {
    background: linear-gradient(90deg, #f59e0b, #10b981);
}

.filter-row-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .85rem 1rem;
    margin-bottom: .65rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    transition: all .2s ease;
}

.filter-row-item:hover {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.flow-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    padding: .3rem .75rem;
    border-radius: 50px;
}

.flow-status-optimal {
    background: rgba(46, 213, 115, .15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, .3);
}

.flow-status-low {
    background: rgba(255, 171, 0, .15);
    color: #ffab00;
    border: 1px solid rgba(255, 171, 0, .3);
}

.flow-status-high {
    background: rgba(56, 189, 248, .15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, .3);
}

/* ==========================================================================
   Premium Filter Section (Tools & Guides)
   ========================================================================== */
.filter-card-premium {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: 0 4px 20px -4px rgba(5, 43, 45, 0.06), 0 1px 3px rgba(5, 43, 45, 0.04);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

[data-theme="dark"] .filter-card-premium {
    background: linear-gradient(180deg, rgba(12, 45, 52, 0.65) 0%, rgba(8, 34, 40, 0.85) 100%);
    border-color: rgba(61, 224, 197, 0.16);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.filter-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 4%;
    right: 4%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 111, 105, 0.3), transparent);
    pointer-events: none;
}

[data-theme="dark"] .filter-card-premium::before {
    background: linear-gradient(90deg, transparent, rgba(61, 224, 197, 0.35), transparent);
}

.search-wrap-premium {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-wrap-premium .search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.05rem;
    pointer-events: none;
    transition: transform .2s ease, color .2s ease;
}

.search-wrap-premium:focus-within .search-icon {
    transform: translateY(-50%) scale(1.1);
    color: var(--primary-2);
}

.search-wrap-premium .form-control-premium {
    width: 100%;
    height: 50px;
    padding: 0 5rem 0 3.1rem;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: all .25s ease;
}

.search-wrap-premium .form-control-premium::placeholder {
    color: var(--muted);
    opacity: .75;
}

.search-wrap-premium .form-control-premium:hover {
    border-color: rgba(10, 111, 105, 0.35);
}

.search-wrap-premium .form-control-premium:focus {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 111, 105, 0.12), 0 4px 12px rgba(10, 111, 105, 0.08);
}

[data-theme="dark"] .search-wrap-premium .form-control-premium {
    background: rgba(4, 22, 26, 0.55);
    border-color: var(--border);
}

[data-theme="dark"] .search-wrap-premium .form-control-premium:focus {
    background: rgba(4, 22, 26, 0.9);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(61, 224, 197, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.search-actions-box {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.search-kbd-hint {
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    line-height: 1;
}

[data-theme="dark"] .search-kbd-hint {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

.search-clear-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.35rem;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border-radius: 50%;
    transition: color .2s ease, transform .2s ease;
}

.search-clear-btn:hover {
    color: var(--primary);
    transform: scale(1.15);
}

.filter-chips-wrapper {
    position: relative;
    width: 100%;
}

.filter-scroll-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

@media (max-width: 991.98px) {
    .filter-scroll-premium {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.45rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }

    .filter-scroll-premium::-webkit-scrollbar {
        height: 4px;
    }

    .filter-scroll-premium::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }
}

.filter-chip-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    outline: none;
}

.filter-chip-premium:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(5, 43, 45, 0.08);
}

.filter-chip-premium:active {
    transform: translateY(0);
}

.filter-chip-premium .chip-icon {
    font-size: 0.95rem;
    color: var(--primary);
    transition: transform .2s ease;
}

.filter-chip-premium:hover .chip-icon {
    transform: scale(1.15);
}

.filter-chip-premium .chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(10, 111, 105, 0.1);
    color: var(--primary);
    transition: all .2s ease;
}

[data-theme="dark"] .filter-chip-premium {
    background: rgba(12, 45, 52, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

[data-theme="dark"] .filter-chip-premium .chip-count {
    background: rgba(61, 224, 197, 0.15);
    color: var(--primary-2);
}

.filter-chip-premium.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    border-color: transparent;
    color: var(--primary-ink) !important;
    box-shadow: 0 4px 16px rgba(10, 111, 105, 0.35);
    transform: translateY(-1px);
}

.filter-chip-premium.active .chip-icon {
    color: var(--primary-ink) !important;
}

.filter-chip-premium.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--primary-ink) !important;
}

[data-theme="dark"] .filter-chip-premium.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #031B1D !important;
    box-shadow: 0 4px 18px rgba(61, 224, 197, 0.3);
}

[data-theme="dark"] .filter-chip-premium.active .chip-icon,
[data-theme="dark"] .filter-chip-premium.active .chip-count {
    color: #031B1D !important;
}

[data-theme="dark"] .filter-chip-premium.active .chip-count {
    background: rgba(3, 27, 29, 0.25);
}

.filter-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-size: 0.85rem;
}

.filter-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-weight: 500;
}

.filter-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 3px rgba(47, 158, 107, 0.2);
    display: inline-block;
    animation: filterPulse 2.5s infinite;
}

@keyframes filterPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(47, 158, 107, 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(47, 158, 107, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(47, 158, 107, 0);
    }
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    transition: all .2s ease;
}

.btn-clear-filters:hover {
    background: rgba(10, 111, 105, 0.08);
    color: var(--primary-2);
}

.btn-clear-filters i {
    font-size: 0.9rem;
    transition: transform .25s ease;
}

.btn-clear-filters:hover i {
    transform: rotate(-45deg);
}