* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --navy: #003580;
    --navy-dark: #001f4d;
    --navy-mid: #00469e;
    --saffron: #FF8C00;
    --saffron-light: #FFA733;
    --green-ind: #138808;
    --white: #ffffff;
    --off: #f5f7fc;
    --text: #1a1a2e;
    --muted: #5a6478;
    --border: #e0e7f3;
    --gst: #003580;
    --gst-light: #eef3ff;
    --gst-dark: #001f4d;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden
}

.tricolor {
    display: flex;
    height: 5px
}

.tricolor div {
    flex: 1
}

.ticker {
    background: var(--navy-dark);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 500
}

.ticker-inner {
    display: flex;
    animation: tick 30s linear infinite;
    white-space: nowrap
}

.ticker-item {
    padding: 0 3rem;
    display: flex;
    align-items: center;
    gap: 8px
}

.ticker-item::before {
    content: '✦';
    color: var(--saffron);
    font-size: 0.7rem
}

@keyframes tick {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 5vw
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 700
}

.logo-emblem {
    width: 36px;
    height: 36px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color .2s
}

.nav-links a:hover,
.nav-links a.active-nav {
    color: var(--navy)
}

.nav-cta {
    background: var(--saffron);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600 !important
}

.nav-phone {
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    border-radius: 8px;
    z-index: 1100
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    transform-origin: center
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0)
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    opacity: 0;
    transition: opacity .3s
}

.nav-overlay.show {
    opacity: 1
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 80%;
    max-width: 300px;
    background: var(--white);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 4px 0 32px rgba(0, 53, 128, 0.15);
    display: flex;
    flex-direction: column
}

.mobile-drawer.open {
    transform: translateX(0)
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border)
}

.drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--off);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .2s
}

.drawer-nav a:hover {
    background: var(--off);
    color: var(--navy);
    border-left-color: var(--navy)
}

.drawer-nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center
}

.drawer-cta {
    padding: 20px;
    border-top: 1px solid var(--border)
}

.drawer-cta a {
    display: block;
    text-align: center;
    background: var(--saffron);
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem
}

.drawer-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px 0;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none
}

.mobile-drawer.open .drawer-nav a {
    animation: slideInLink .3s ease forwards;
    opacity: 0
}

.mobile-drawer.open .drawer-nav a:nth-child(1) {
    animation-delay: .05s
}

.mobile-drawer.open .drawer-nav a:nth-child(2) {
    animation-delay: .10s
}

.mobile-drawer.open .drawer-nav a:nth-child(3) {
    animation-delay: .15s
}

@keyframes slideInLink {
    from {
        opacity: 0;
        transform: translateX(-18px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

/* ── HERO ── */
.tool-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
    padding: 40px 5vw 48px;
    position: relative;
    overflow: hidden
}

.tool-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
}

.tool-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%)
}

.tool-hero-inner {
    max-width: 1350px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5)
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none
}

.breadcrumb a:hover {
    color: #fff
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.25)
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px
}

.tool-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px
}

.tool-hero h1 em {
    color: #90CAF9;
    font-style: normal
}

.tool-hero-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    max-width: 520px;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 20px
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500
}

.hero-visual {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    flex-shrink: 0
}

/* ── LAYOUT ── */
.tool-layout {
    padding: 48px 5vw 72px;
    background: var(--off)
}

.tool-inner {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start
}

/* ── FINDER CARD ── */
.finder-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden
}

.finder-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 22px 28px
}

.finder-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff
}

.finder-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    margin-top: 3px
}

/* TAB SWITCHER */
.tab-row {
    display: flex;
    gap: 0;
    padding: 20px 28px 0;
    border-bottom: 2px solid var(--border)
}

.tab-btn {
    padding: 10px 22px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: 'DM Sans', sans-serif;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 7px
}

.tab-btn:hover {
    color: var(--navy)
}

.tab-btn.active {
    color: var(--navy);
    border-bottom-color: var(--navy)
}

/* ── SEARCH TAB ── */
.tab-content {
    display: none;
    padding: 24px 28px
}

.tab-content.active {
    display: block;
    animation: fadeUp .3s ease
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* SEARCH BOX */
.search-box-wrap {
    position: relative;
    margin-bottom: 12px
}

.search-box-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--muted)
}

.search-box {
    width: 100%;
    padding: 14px 48px 14px 46px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.97rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    outline: none;
    transition: all .2s;
    background: var(--white)
}

.search-box:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.08)
}

.search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--muted);
    cursor: pointer;
    display: none;
    background: none;
    border: none;
    padding: 4px
}

.search-clear:hover {
    color: var(--text)
}

/* SEARCH TYPE TOGGLE */
.search-type-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px
}

.stype-btn {
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--white);
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    transition: all .2s
}

.stype-btn:hover {
    border-color: var(--navy);
    color: var(--navy)
}

.stype-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy)
}

/* SEARCH RESULTS */
.search-results-wrap {
    min-height: 200px
}

.search-placeholder {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted)
}

.search-placeholder-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    opacity: 0.5
}

.search-placeholder p {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6
}

.results-count-bar {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 400
}

.results-count-bar strong {
    color: var(--text);
    font-weight: 600
}

.result-item {
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 10px;
    transition: all .25s;
    cursor: pointer;
    background: var(--white)
}

.result-item:hover {
    border-color: var(--navy);
    box-shadow: 0 4px 16px rgba(0, 53, 128, 0.08);
    transform: translateY(-1px)
}

.result-item.expanded {
    border-color: var(--navy);
    background: var(--gst-light)
}

.result-top {
    display: flex;
    align-items: flex-start;
    gap: 14px
}

.result-code-badge {
    min-width: 90px;
    padding: 8px 12px;
    background: var(--navy);
    color: #fff;
    border-radius: 10px;
    text-align: center;
    flex-shrink: 0
}

.result-code-badge .code-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 800
}

.result-code-badge .code-type {
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.7;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px
}

.result-info {
    flex: 1
}

.result-desc {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.gst-rate-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px
}

.gst-rate-pill.r0 {
    background: #e8f5e9;
    color: #1b5e20
}

.gst-rate-pill.r5 {
    background: #e3f2fd;
    color: #0d47a1
}

.gst-rate-pill.r12 {
    background: #fff8e1;
    color: #e65100
}

.gst-rate-pill.r18 {
    background: #fce4ec;
    color: #c62828
}

.gst-rate-pill.r28 {
    background: #f3e5f5;
    color: #6a1b9a
}

.gst-rate-pill.r3 {
    background: #e0f4f5;
    color: #006d77
}

.category-pill {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--off);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--border)
}

.result-chevron {
    font-size: 0.75rem;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform .25s;
    margin-top: 2px
}

.result-item.expanded .result-chevron {
    transform: rotate(180deg)
}

/* EXPANDED DETAIL */
.result-detail {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border)
}

.result-item.expanded .result-detail {
    display: block;
    animation: fadeUp .25s ease
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px
}

.detail-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px
}

.detail-box-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px
}

.detail-box-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text)
}

.detail-box-sub {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 300;
    margin-top: 2px
}

.detail-note {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 12px
}

.detail-actions {
    display: flex;
    gap: 8px
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    transition: all .2s
}

.detail-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--gst-light)
}

.detail-btn.primary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy)
}

.detail-btn.primary:hover {
    background: var(--navy-dark)
}

/* NO RESULTS */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted)
}

.no-results-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.5
}

.no-results h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px
}

.no-results p {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.6
}

/* ── BROWSE TAB ── */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px
}

.cat-card {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all .25s;
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-family: 'DM Sans', sans-serif
}

.cat-card:hover {
    border-color: var(--navy);
    background: var(--gst-light);
    transform: translateY(-1px)
}

.cat-card.active-cat {
    border-color: var(--navy);
    background: var(--gst-light)
}

.cat-emoji {
    font-size: 1.4rem;
    flex-shrink: 0
}

.cat-info {
    flex: 1
}

.cat-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text)
}

.cat-count {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 300
}

.cat-arrow {
    font-size: 0.72rem;
    color: var(--muted)
}

.browse-results {
    display: none
}

.browse-results.show {
    display: block;
    animation: fadeUp .3s ease
}

.browse-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    margin-bottom: 16px;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    transition: opacity .2s
}

.browse-back:hover {
    opacity: 0.7
}

.browse-cat-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px
}

.browse-cat-sub {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 16px
}

/* ── DIRECT LOOKUP TAB ── */
.direct-wrap {
    margin-bottom: 20px
}

.direct-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 6px
}

.direct-inp {
    flex: 1;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.97rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    outline: none;
    transition: all .2s;
    letter-spacing: 0.06em;
    font-weight: 600
}

.direct-inp:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.08)
}

.direct-search-btn {
    padding: 13px 22px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all .2s;
    white-space: nowrap
}

.direct-search-btn:hover {
    background: var(--navy-dark)
}

.direct-hint {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 300
}

.direct-result {
    display: none;
    margin-top: 16px;
    animation: fadeUp .3s ease
}

.direct-result.show {
    display: block
}

.direct-result-card {
    background: var(--gst-light);
    border: 1.5px solid var(--navy);
    border-radius: 14px;
    padding: 20px
}

.direct-code-display {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.1em;
    margin-bottom: 8px
}

.direct-desc {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4
}

.direct-meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px
}

.direct-not-found {
    background: #fff5f5;
    border: 1.5px solid #e53935;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    color: #b71c1c;
    font-size: 0.88rem
}

/* SIDEBAR */
.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px
}

.info-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px
}

.info-card-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border)
}

.rate-pill-row {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.rate-pill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--off);
    border: 1px solid var(--border)
}

.rate-pill-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text)
}

.rate-pill-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px
}

.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 300
}

.fact-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gst-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0
}

.related-tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--off);
    text-decoration: none;
    transition: opacity .2s
}

.related-tool-link:last-child {
    border-bottom: none
}

.related-tool-link:hover {
    opacity: 0.75
}

.related-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0
}

.related-text {
    flex: 1
}

.related-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text)
}

.related-cat {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 300
}

.related-arrow {
    font-size: 0.75rem;
    color: var(--muted)
}

.service-cta-card {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
    border-radius: 16px;
    padding: 22px
}

.service-cta-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px
}

.service-cta-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    line-height: 1.55;
    margin-bottom: 16px
}

.service-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--saffron);
    color: #fff;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background .2s
}

.service-cta-btn:hover {
    background: var(--saffron-light)
}

/* INFO SECTIONS */
.info-sections {
    margin-top: 28px
}

.info-sec {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 18px
}

.info-sec h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px
}

.info-sec p {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 10px
}

.info-sec p:last-child {
    margin-bottom: 0
}

.info-sec p strong {
    color: var(--text);
    font-weight: 600
}

.info-sec h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 8px;
    padding-left: 10px;
    border-left: 3px solid var(--navy)
}

.box {
    border-radius: 10px;
    padding: 13px 16px;
    margin: 12px 0;
    font-size: 0.84rem;
    line-height: 1.65;
    font-weight: 400
}

.box.blue {
    background: var(--gst-light);
    border-left: 3px solid var(--navy);
    color: var(--navy-dark)
}

.box.amber {
    background: #fff8e1;
    border-left: 3px solid #f9a825;
    color: #5d4037
}

/* FOOTER */
footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 5vw 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08)
}

.footer-grid {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1)
}

.footer-brand .logo {
    color: #fff;
    display: inline-flex
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 280px;
    font-weight: 300;
    margin-top: 12px
}

.footer-col h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px
}

.footer-col ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color .2s;
    font-weight: 300
}

.footer-col ul li a:hover {
    color: #fff
}

.footer-bottom {
    max-width: 1350px;
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: 10px
}

.fbl {
    display: flex;
    gap: 18px
}

.fbl a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none
}

.fbl a:hover {
    color: #fff
}

.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    background: #25D366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.6rem;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
    transition: all .2s
}

.wa-float:hover {
    transform: scale(1.1)
}

.wa-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    border: 1px solid var(--border)
}

.wa-float:hover .wa-tooltip {
    opacity: 1
}

.toast {
    position: fixed;
    bottom: 100px;
    right: 28px;
    background: var(--text);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    transition: all .3s;
    pointer-events: none
}

.toast.show {
    opacity: 1;
    transform: translateY(0)
}

@media(max-width:900px) {
    .tool-inner {
        grid-template-columns: 1fr
    }

    .tool-sidebar {
        position: static
    }

    .tool-hero-inner {
        grid-template-columns: 1fr
    }

    .hero-visual {
        display: none
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    .category-grid {
        grid-template-columns: 1fr
    }

    .detail-grid {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 0.8rem
    }
}