/* AK Services public header v4
   Isolated from the signed-in admin/user shell so dashboard styling remains unchanged. */

body.has-ak-public-header {
    --ak-public-header-height: 150px;
    padding-top: var(--ak-public-header-height) !important;
}

body.has-ak-public-header header#site-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    height: var(--ak-public-header-height) !important;
    max-height: var(--ak-public-header-height) !important;
    z-index: 1200 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #10283a !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(13, 102, 102, 0.12) !important;
    box-shadow: 0 12px 34px rgba(9, 54, 72, 0.1) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    isolation: isolate;
}

body.has-ak-public-header header#site-header::before {
    display: none !important;
}

body.has-ak-public-header header#site-header > .ak-public-header {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: var(--ak-public-header-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #10283a !important;
    overflow: visible;
}

/* Public content must remain independent from the fixed header and from any
   stale drawer/reveal state left by an older cached build. */
body.has-ak-public-header > main,
body.has-ak-public-header > section:not(.ak-footer),
body.has-ak-public-header > footer.site-footer {
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

body.has-ak-public-header > main {
    display: block !important;
    min-height: 1px !important;
}

body.has-ak-public-header > main > .service-hero,
body.has-ak-public-header > main > .service-form {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

body.has-ak-public-header .ak-public-header .header-primary {
    width: min(1480px, 100%) !important;
    min-height: 70px !important;
    margin: 0 auto !important;
    padding: 9px clamp(18px, 3.5vw, 56px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background: transparent !important;
}

body.has-ak-public-header .ak-public-header .brand {
    min-width: 0;
    display: inline-flex !important;
    align-items: center !important;
    gap: 11px !important;
    color: #10283a !important;
    text-decoration: none !important;
}

body.has-ak-public-header .ak-public-header .brand .logo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 4px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(8, 125, 119, 0.24) !important;
    background: #fff !important;
    box-shadow:
        0 9px 24px rgba(9, 78, 85, 0.13),
        0 0 0 5px rgba(21, 148, 139, 0.06) !important;
    overflow: hidden;
}

body.has-ak-public-header .ak-public-header .brand .logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    filter: none !important;
}

body.has-ak-public-header .ak-public-header .brand > span:last-child {
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

body.has-ak-public-header .ak-public-header .brand strong {
    display: block;
    line-height: 1 !important;
}

body.has-ak-public-header .ak-public-header .brand-name {
    display: inline-block !important;
    color: #10283a !important;
    -webkit-text-fill-color: #10283a !important;
    background: none !important;
    font-size: clamp(1.18rem, 1.55vw, 1.48rem) !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em !important;
    line-height: 1 !important;
    text-shadow: none !important;
    white-space: nowrap;
}

body.has-ak-public-header .ak-public-header .brand-name::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-radius: 50%;
    background: #16a394;
    box-shadow: 0 0 0 4px rgba(22, 163, 148, 0.1);
    vertical-align: 0.18em;
}

body.has-ak-public-header .ak-public-header .brand-sub {
    display: block !important;
    margin-top: 4px !important;
    color: #55717a !important;
    font-size: 0.69rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.015em !important;
    line-height: 1.1 !important;
    text-shadow: none !important;
    white-space: nowrap;
}

body.has-ak-public-header .ak-public-header .header-actions {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
}

body.has-ak-public-header .ak-public-header .header-actions .cta-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border: 1px solid rgba(7, 119, 111, 0.22) !important;
    border-radius: 14px !important;
    color: #fff !important;
    background:
        linear-gradient(135deg, #15998e 0%, #08796f 56%, #05645e 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 22px rgba(4, 105, 98, 0.2) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body.has-ak-public-header .ak-public-header .header-actions .cta-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.18) 48%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 500ms ease;
    pointer-events: none;
}

body.has-ak-public-header .ak-public-header .header-actions .cta-btn:hover,
body.has-ak-public-header .ak-public-header .header-actions .cta-btn:focus-visible {
    transform: translateY(-2px);
    filter: saturate(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 14px 30px rgba(4, 105, 98, 0.26) !important;
}

body.has-ak-public-header .ak-public-header .header-actions .cta-btn:hover::before {
    transform: translateX(120%);
}

body.has-ak-public-header .ak-public-header .header-actions .cta-icon {
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    color: #fff !important;
    background: transparent !important;
    border: 0;
}

body.has-ak-public-header .ak-public-header .header-actions .cta-icon svg {
    width: 19px !important;
    height: 19px !important;
}

body.has-ak-public-header .ak-public-header .header-actions .cta-text {
    color: #fff !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

/* Signed-in public account: real avatar, identity, wallet and compact menu. */
body.has-ak-public-header .ak-public-account {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
}

body.has-ak-public-header .ak-public-account > summary {
    min-width: 188px;
    height: 50px;
    padding: 4px 10px 4px 5px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 9px;
    color: #143246;
    background: rgba(246, 252, 252, 0.94);
    border: 1px solid rgba(var(--ak-public-accent-rgb, 19, 143, 135), 0.22);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(8, 62, 76, 0.09);
    cursor: pointer;
    list-style: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.has-ak-public-header .ak-public-account > summary::-webkit-details-marker {
    display: none;
}

body.has-ak-public-header .ak-public-account > summary:hover,
body.has-ak-public-header .ak-public-account > summary:focus-visible,
body.has-ak-public-header .ak-public-account[open] > summary {
    border-color: rgba(var(--ak-public-accent-rgb, 19, 143, 135), 0.5);
    box-shadow: inset 0 1px 0 #fff, 0 12px 28px rgba(8, 62, 76, 0.14);
    transform: translateY(-1px);
    outline: none;
}

body.has-ak-public-header .ak-public-account__avatar {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--ak-public-accent, #15998e), var(--ak-public-accent-deep, #075f5a));
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(var(--ak-public-accent-rgb, 19, 143, 135), 0.25), 0 6px 16px rgba(9, 65, 77, 0.16);
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 850;
}

body.has-ak-public-header .ak-public-account__avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    background: #fff;
}

body.has-ak-public-header .ak-public-account__copy {
    min-width: 0;
    display: block;
}

body.has-ak-public-header .ak-public-account__copy strong {
    display: block;
    overflow: hidden;
    color: #112c3d;
    font-size: 0.76rem;
    font-weight: 830;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.has-ak-public-header .ak-public-account__copy small {
    min-width: 0;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    color: var(--ak-public-accent-deep, #075f5a);
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.has-ak-public-header .ak-public-account__wallet-icon,
body.has-ak-public-header .ak-public-account__wallet-icon svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

body.has-ak-public-header .ak-public-account__chevron {
    color: #53717f;
    font-size: 1rem;
    font-weight: 900;
    transform: translateY(-2px);
    transition: transform 180ms ease;
}

body.has-ak-public-header .ak-public-account[open] .ak-public-account__chevron {
    transform: translateY(2px) rotate(180deg);
}

body.has-ak-public-header .ak-public-account__menu {
    position: absolute;
    z-index: 1300;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    padding: 9px;
    display: grid;
    gap: 4px;
    color: #183448;
    background: rgba(255, 255, 255, 0.985);
    border: 1px solid rgba(var(--ak-public-accent-rgb, 19, 143, 135), 0.2);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(7, 35, 55, 0.22), inset 0 1px 0 #fff;
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    animation: akPublicAccountReveal 180ms ease both;
}

@keyframes akPublicAccountReveal {
    from { opacity: 0; transform: translateY(-7px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

body.has-ak-public-header .ak-public-account__menu-head {
    margin-bottom: 5px;
    padding: 9px 8px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid rgba(20, 77, 91, 0.1);
}

body.has-ak-public-header .ak-public-account__menu-head > span:last-child {
    min-width: 0;
}

body.has-ak-public-header .ak-public-account__menu-head strong,
body.has-ak-public-header .ak-public-account__menu-head small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.has-ak-public-header .ak-public-account__menu-head strong {
    color: #102d3f;
    font-size: 0.8rem;
}

body.has-ak-public-header .ak-public-account__menu-head small {
    margin-top: 4px;
    color: var(--ak-public-accent-deep, #075f5a);
    font-size: 0.65rem;
    font-weight: 800;
}

body.has-ak-public-header .ak-public-account__menu > a {
    min-height: 40px;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 9px;
    color: #294454 !important;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 730;
    text-decoration: none !important;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

body.has-ak-public-header .ak-public-account__menu > a > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--ak-public-accent-deep, #075f5a);
    background: rgba(var(--ak-public-accent-rgb, 19, 143, 135), 0.09);
    border-radius: 10px;
}

body.has-ak-public-header .ak-public-account__menu > a svg {
    width: 16px;
    height: 16px;
}

body.has-ak-public-header .ak-public-account__menu > a b {
    color: #6b8491;
    font-size: 1rem;
}

body.has-ak-public-header .ak-public-account__menu > a:hover,
body.has-ak-public-header .ak-public-account__menu > a:focus-visible {
    color: var(--ak-public-accent-deep, #075f5a) !important;
    background: rgba(var(--ak-public-accent-rgb, 19, 143, 135), 0.095);
    transform: translateX(2px);
    outline: none;
}

body.has-ak-public-header .ak-public-account__menu > a.ak-public-account__logout {
    margin-top: 4px;
    color: #a13744 !important;
    border-top: 1px solid rgba(20, 77, 91, 0.08);
    border-radius: 0 0 12px 12px;
}

body.has-ak-public-header .ak-public-account__menu > a.ak-public-account__logout > span {
    color: #b83c49;
    background: rgba(214, 59, 78, 0.09);
}

body.has-ak-public-header .ak-public-admin-initials {
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
}

@media (max-width: 720px) {
    body.has-ak-public-header .ak-public-account > summary {
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 1px;
        display: grid;
        grid-template-columns: 1fr;
        place-items: center;
        border-radius: 14px;
    }

    body.has-ak-public-header .ak-public-account__avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    body.has-ak-public-header .ak-public-account__copy,
    body.has-ak-public-header .ak-public-account__chevron {
        display: none;
    }

    body.has-ak-public-header .ak-public-account__menu {
        position: fixed;
        top: 66px;
        right: 10px;
        width: min(268px, calc(100vw - 20px));
    }
}

body.has-ak-public-header .ak-public-header .support-link {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #173648 !important;
    background: rgba(241, 249, 248, 0.9) !important;
    border: 1px solid rgba(18, 113, 108, 0.15) !important;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 #fff, 0 7px 18px rgba(15, 67, 78, 0.08);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.has-ak-public-header .ak-public-header .support-link svg {
    width: 19px;
    height: 19px;
    color: #0b8379;
}

body.has-ak-public-header .ak-public-header .support-link:hover,
body.has-ak-public-header .ak-public-header .support-link:focus-visible {
    color: #075f5a !important;
    border-color: rgba(9, 130, 121, 0.32) !important;
    background: #fff !important;
    transform: translateY(-2px);
}

body.has-ak-public-header .ak-public-header .header-secondary {
    width: min(1440px, calc(100% - 36px)) !important;
    min-height: 68px;
    margin: 0 auto 11px !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(17, 126, 120, 0.15) !important;
    border-radius: 19px !important;
    color: #15364a !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(77, 214, 203, 0.1), transparent 31%),
        linear-gradient(135deg, rgba(244, 252, 251, 0.98), rgba(234, 247, 248, 0.96)) !important;
    box-shadow:
        inset 0 1px 0 #fff,
        0 9px 25px rgba(9, 66, 78, 0.09) !important;
    backdrop-filter: blur(16px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
    overflow: hidden;
}

body.has-ak-public-header .ak-public-header .category-nav {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 2px !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

body.has-ak-public-header .ak-public-header .category-nav.is-ak-nav-animating {
    scroll-snap-type: none !important;
}

body.has-ak-public-header .ak-public-header .category-nav::-webkit-scrollbar {
    display: none;
}

body.has-ak-public-header .ak-public-header .category-chip {
    position: relative;
    flex: 1 0 92px !important;
    max-width: 138px !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 5px 9px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    scroll-snap-align: center;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    color: #244655 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.has-ak-public-header .ak-public-header .category-chip::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 15px;
    width: 1px;
    height: 22px;
    background: rgba(20, 88, 99, 0.1);
}

body.has-ak-public-header .ak-public-header .category-chip:last-child::after,
body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target)::after {
    display: none;
}

body.has-ak-public-header .ak-public-header .category-chip .icon {
    flex: 0 0 auto;
    width: 37px !important;
    height: 37px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(11, 126, 118, 0.12) !important;
    border-radius: 12px !important;
    color: #0d766f !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: inset 0 1px 0 #fff, 0 5px 13px rgba(7, 77, 83, 0.08) !important;
    opacity: 1 !important;
    transform: none !important;
}

body.has-ak-public-header .ak-public-header .category-chip .icon img,
body.has-ak-public-header .ak-public-header .category-chip .icon svg {
    width: 21px !important;
    height: 21px !important;
    object-fit: contain !important;
    opacity: 0.92 !important;
    filter: brightness(0) saturate(100%) invert(33%) sepia(34%) saturate(1088%) hue-rotate(126deg) brightness(91%) contrast(93%) !important;
}

body.has-ak-public-header .ak-public-header .category-chip .chip-label {
    color: inherit !important;
    font-size: 0.72rem !important;
    font-weight: 760 !important;
    line-height: 1.05 !important;
    opacity: 1 !important;
    white-space: nowrap;
}

body.has-ak-public-header .ak-public-header .category-chip:hover,
body.has-ak-public-header .ak-public-header .category-chip:focus-visible {
    color: #076d66 !important;
    border-color: rgba(11, 132, 123, 0.16) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 8px 18px rgba(7, 83, 87, 0.09) !important;
    transform: translateY(-1px);
}

body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target) {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.2), transparent 38%),
        linear-gradient(145deg, #159c91, #087a72 62%, #075f5b) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 9px 20px rgba(4, 106, 99, 0.23) !important;
    transform: none;
}

body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target) .icon {
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target) .icon img,
body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target) .icon svg {
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important;
}

body.has-ak-public-header .ak-public-header .nav-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    padding: 0 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    border: 1px solid rgba(17, 102, 105, 0.17) !important;
    border-radius: 14px !important;
    color: #123a45 !important;
    background: rgba(245, 251, 250, 0.96) !important;
    box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(8, 60, 70, 0.09) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

body.has-ak-public-header .ak-public-header .nav-toggle span {
    width: 19px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 999px;
    background: currentColor !important;
    transition: transform 180ms ease, opacity 180ms ease;
}

body.has-ak-public-header .ak-public-header .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.has-ak-public-header .ak-public-header .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

body.has-ak-public-header .ak-public-header .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Matching premium mobile drawer for the public navigation button. */
body.has-ak-public-header .ak-public-header .mobile-menu-actions {
    width: min(360px, 90vw) !important;
    color: #173648 !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 190, 177, 0.1), transparent 220px),
        linear-gradient(180deg, #ffffff 0%, #f7fcfb 100%) !important;
    border-left: 1px solid rgba(11, 116, 110, 0.14) !important;
    box-shadow: -20px 0 56px rgba(8, 51, 67, 0.2) !important;
}

body.has-ak-public-header .ak-public-header .mobile-menu-actions .mobile-close {
    top: 14px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
    color: #173c49 !important;
    background: rgba(239, 249, 247, 0.96) !important;
    border: 1px solid rgba(10, 117, 110, 0.15) !important;
    border-radius: 13px !important;
    box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(8, 60, 70, 0.09) !important;
}

body.has-ak-public-header .ak-public-header .mobile-menu-actions .mobile-nav-inner {
    min-height: 100dvh;
    padding: 17px 14px max(14px, env(safe-area-inset-bottom)) !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-brand {
    min-height: 48px;
    padding: 0 52px 14px 0 !important;
    border-bottom: 1px solid rgba(13, 103, 101, 0.12) !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-brand-logo {
    width: 43px !important;
    height: 43px !important;
    border: 1px solid rgba(12, 130, 121, 0.18) !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(8, 73, 81, 0.1) !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-brand-copy strong {
    color: #112c3d !important;
    font-size: 1rem !important;
    font-weight: 850 !important;
    letter-spacing: -0.018em;
}

body.has-ak-public-header .ak-public-header .mobile-nav-brand-copy small {
    color: #607a83 !important;
    font-size: 0.66rem !important;
    font-weight: 650;
}

body.has-ak-public-header .ak-public-header .mobile-nav-title {
    margin: 15px 0 8px !important;
    color: #0d766f !important;
    font-size: 0.69rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.has-ak-public-header .ak-public-header .mobile-nav-group {
    margin-top: 7px !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-list,
body.has-ak-public-header .ak-public-header .mobile-nav-group.is-static .mobile-nav-list {
    padding: 5px !important;
    border: 1px solid rgba(12, 115, 109, 0.11) !important;
    border-radius: 15px !important;
    background: rgba(242, 250, 249, 0.78) !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-list li + li,
body.has-ak-public-header .ak-public-header .mobile-nav-group.is-static .mobile-nav-list li:first-child,
body.has-ak-public-header .ak-public-header .mobile-nav-group.is-collapsible .mobile-nav-list li:first-child {
    border-top: 0 !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-group-toggle {
    min-height: 38px;
    padding: 5px 7px !important;
    color: #244854 !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-group-title {
    color: #45636b !important;
    font-size: 0.67rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.1em;
}

body.has-ak-public-header .ak-public-header .mobile-nav-group-chevron {
    color: #0b7a72 !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-link {
    min-height: 45px;
    margin: 2px 0;
    padding: 7px 8px !important;
    gap: 10px !important;
    color: #173746 !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.82rem !important;
    font-weight: 750 !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-link:hover,
body.has-ak-public-header .ak-public-header .mobile-nav-link:focus-visible {
    color: #076e68 !important;
    border-color: rgba(9, 131, 122, 0.13) !important;
    background: #fff !important;
    box-shadow: 0 7px 17px rgba(7, 76, 82, 0.08) !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-link-icon {
    width: 31px !important;
    height: 31px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0a7a72 !important;
    background: rgba(218, 243, 239, 0.84) !important;
    border: 1px solid rgba(12, 132, 122, 0.09) !important;
    border-radius: 10px !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-link-icon svg {
    width: 17px !important;
    height: 17px !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-footer {
    margin-top: 16px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(13, 103, 101, 0.12) !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-link--logout {
    color: #b42335 !important;
}

body.has-ak-public-header .ak-public-header .mobile-nav-link--logout .mobile-nav-link-icon {
    color: #b42335 !important;
    background: rgba(255, 231, 234, 0.9) !important;
}

body.has-ak-public-header .ak-public-header .mobile-contact-row {
    gap: 7px !important;
}

body.has-ak-public-header .ak-public-header .mobile-contact-link {
    min-height: 64px !important;
    color: #173746 !important;
    background: rgba(241, 250, 248, 0.96) !important;
    border: 1px solid rgba(12, 117, 111, 0.12) !important;
    border-radius: 13px !important;
    box-shadow: inset 0 1px 0 #fff, 0 7px 17px rgba(7, 72, 79, 0.07) !important;
}

body.has-ak-public-header .ak-public-header .mobile-contact-icon,
body.has-ak-public-header .ak-public-header .mobile-contact-text {
    color: #0a756e !important;
}

body.has-ak-public-header .ak-public-header .mobile-menu-scrim {
    background: rgba(7, 31, 42, 0.48) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Signed-in public pages reuse the real customer sidebar as a left overlay.
   The obsolete guest/public menu drawer is no longer rendered. */
body.has-ak-public-header .user-dashboard-sidebar--public-overlay {
    z-index: 2300;
    width: min(330px, 88vw);
    transform: translateX(-105%);
    box-shadow: 22px 0 55px rgba(16, 48, 45, 0.22);
}

body.has-ak-public-header.is-user-mobile-sidebar-open {
    overflow: hidden !important;
}

body.has-ak-public-header.is-user-mobile-sidebar-open .user-dashboard-sidebar--public-overlay {
    transform: translateX(0);
}

body.has-ak-public-header .user-dashboard-sidebar--public-overlay .user-dashboard-sidebar__toggle {
    display: none !important;
}

body.has-ak-public-header .user-dashboard-sidebar--public-overlay .user-dashboard-sidebar__close {
    display: inline-flex !important;
}

body.has-ak-public-header .user-dashboard-sidebar--public-overlay + .user-dashboard-sidebar-scrim {
    z-index: 2250;
    background: rgba(8, 31, 39, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.has-ak-public-header .ak-public-header :is(a, button):focus-visible {
    outline: 3px solid rgba(29, 181, 169, 0.32) !important;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    body.has-ak-public-header {
        --ak-public-header-height: 139px;
    }

    body.has-ak-public-header .ak-public-header .header-primary {
        min-height: 64px !important;
        padding-inline: 18px !important;
    }

    body.has-ak-public-header .ak-public-header .header-actions .cta-btn,
    body.has-ak-public-header .ak-public-header .header-actions .support-link {
        display: inline-flex !important;
    }

    body.has-ak-public-header .ak-public-header .header-secondary {
        width: calc(100% - 24px) !important;
        min-height: 64px;
        margin-bottom: 10px !important;
        padding: 6px !important;
        border-radius: 16px !important;
    }

    body.has-ak-public-header .ak-public-header .category-nav {
        justify-content: flex-start !important;
        min-height: 50px;
    }

    body.has-ak-public-header .ak-public-header .category-chip {
        flex: 0 0 112px !important;
        min-height: 50px;
    }
}

@media (max-width: 720px) {
    body.has-ak-public-header {
        --ak-public-header-height: 126px;
    }

    body.has-ak-public-header header#site-header {
        box-shadow: 0 8px 25px rgba(9, 54, 72, 0.09) !important;
    }

    body.has-ak-public-header .ak-public-header .header-primary {
        min-height: 60px !important;
        padding: 7px 10px !important;
        gap: 7px !important;
    }

    body.has-ak-public-header .ak-public-header .brand {
        flex: 1 1 auto !important;
        gap: 8px !important;
        overflow: hidden;
    }

    body.has-ak-public-header .ak-public-header .brand .logo {
        width: 39px !important;
        height: 39px !important;
        min-width: 39px !important;
        padding: 3px !important;
        box-shadow: 0 6px 16px rgba(9, 78, 85, 0.11), 0 0 0 3px rgba(21, 148, 139, 0.05) !important;
    }

    body.has-ak-public-header .ak-public-header .brand-name {
        max-width: none !important;
        color: #10283a !important;
        -webkit-text-fill-color: #10283a !important;
        font-size: 1rem !important;
        text-overflow: clip !important;
        overflow: visible !important;
    }

    body.has-ak-public-header .ak-public-header .brand-name::after {
        width: 5px;
        height: 5px;
        margin-left: 4px;
        box-shadow: 0 0 0 3px rgba(22, 163, 148, 0.09);
    }

    body.has-ak-public-header .ak-public-header .brand-sub {
        max-width: 154px !important;
        margin-top: 3px !important;
        color: #627b83 !important;
        font-size: 0.51rem !important;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    body.has-ak-public-header .ak-public-header .header-actions {
        gap: 6px !important;
    }

    body.has-ak-public-header .ak-public-header .header-actions .support-link {
        display: inline-flex !important;
    }

    body.has-ak-public-header .ak-public-header .header-actions .cta-btn {
        width: 41px !important;
        min-width: 41px !important;
        height: 41px !important;
        padding: 0 !important;
        border-radius: 13px !important;
    }

    body.has-ak-public-header .ak-public-header .header-actions .support-link {
        width: 41px !important;
        min-width: 41px !important;
        height: 41px !important;
        padding: 0 !important;
        border-radius: 13px !important;
    }

    body.has-ak-public-header .ak-public-header .header-actions .cta-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px;
        border: 0;
        background: transparent !important;
    }

    body.has-ak-public-header .ak-public-header .header-actions .cta-text {
        display: none !important;
    }

    body.has-ak-public-header .ak-public-header .nav-toggle {
        display: inline-flex !important;
        width: 41px !important;
        height: 41px !important;
        min-width: 41px;
        border-radius: 13px !important;
    }

    body.has-ak-public-header .ak-public-header .header-secondary {
        width: calc(100% - 12px) !important;
        min-height: 58px;
        margin: 0 6px 8px !important;
        padding: 5px !important;
        border-radius: 14px !important;
    }

    body.has-ak-public-header .ak-public-header .category-nav {
        min-height: 48px;
        gap: 5px !important;
    }

    body.has-ak-public-header .ak-public-header .category-chip {
        flex: 0 0 78px !important;
        min-height: 48px;
        padding: 4px 6px !important;
        flex-direction: column !important;
        gap: 2px !important;
        border-radius: 11px !important;
    }

    body.has-ak-public-header .ak-public-header .category-chip::after {
        display: none;
    }

    body.has-ak-public-header .ak-public-header .category-chip .icon {
        width: 28px !important;
        height: 28px !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.has-ak-public-header .ak-public-header .category-chip .icon img,
    body.has-ak-public-header .ak-public-header .category-chip .icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    body.has-ak-public-header .ak-public-header .category-chip .chip-label {
        max-width: 100%;
        font-size: 0.59rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target) .icon {
        background: rgba(255, 255, 255, 0.13) !important;
    }
}

@media (max-width: 380px) {
    body.has-ak-public-header .ak-public-header .brand-sub {
        max-width: 116px !important;
    }

    body.has-ak-public-header .ak-public-header .brand-name {
        font-size: 0.91rem !important;
    }

    body.has-ak-public-header .ak-public-header .header-primary {
        padding-inline: 7px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.has-ak-public-header .ak-public-header *,
    body.has-ak-public-header .ak-public-header *::before,
    body.has-ak-public-header .ak-public-header *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    body.has-ak-public-header header#site-header,
    body.has-ak-public-header .ak-public-header .header-secondary,
    body.has-ak-public-header .ak-public-header .nav-toggle {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Public Appearance v1 ----------------------------------------------------
   These colours are server-selected from Admin > Public Appearance. They are
   intentionally separate from the signed-in admin/user shell theme. */
:root,
html[data-ak-public-theme="dark-sky"] {
    --ak-public-header-bg: linear-gradient(135deg, #0b78d0 0%, #075a9c 48%, #063c70 100%);
    --ak-public-header-ink: #ffffff;
    --ak-public-header-muted: rgba(255, 255, 255, 0.78);
    --ak-public-nav-surface: rgba(4, 49, 94, 0.28);
    --ak-public-nav-border: rgba(255, 255, 255, 0.22);
    --ak-public-circle-bg: rgba(4, 49, 94, 0.42);
    --ak-public-circle-border: rgba(255, 255, 255, 0.58);
    --ak-public-active: linear-gradient(145deg, #37b5ff 0%, #0c83dc 52%, #07539a 100%);
    --ak-public-focus: rgba(117, 211, 255, 0.55);
    --ak-public-icon-filter: brightness(0) invert(1);
    --ak-public-accent: #0b78d0;
    --ak-public-accent-strong: #075a9c;
    --ak-public-accent-deep: #063c70;
    --ak-public-accent-soft: #d9efff;
    --ak-public-accent-rgb: 11, 120, 208;
    --ak-public-accent-deep-rgb: 6, 60, 112;
}

html[data-ak-public-theme="azure-sky"] {
    --ak-public-header-bg: linear-gradient(135deg, #199bea 0%, #0877c9 50%, #07528f 100%);
    --ak-public-header-ink: #ffffff;
    --ak-public-header-muted: rgba(255, 255, 255, 0.82);
    --ak-public-nav-surface: rgba(4, 72, 126, 0.28);
    --ak-public-nav-border: rgba(255, 255, 255, 0.27);
    --ak-public-circle-bg: rgba(3, 80, 143, 0.34);
    --ak-public-circle-border: rgba(255, 255, 255, 0.66);
    --ak-public-active: linear-gradient(145deg, #67d4ff 0%, #159eea 48%, #0868b4 100%);
    --ak-public-focus: rgba(126, 220, 255, 0.62);
    --ak-public-icon-filter: brightness(0) invert(1);
    --ak-public-accent: #199bea;
    --ak-public-accent-strong: #0877c9;
    --ak-public-accent-deep: #07528f;
    --ak-public-accent-soft: #ddf3ff;
    --ak-public-accent-rgb: 25, 155, 234;
    --ak-public-accent-deep-rgb: 7, 82, 143;
}

html[data-ak-public-theme="aqua-sky"] {
    --ak-public-header-bg: linear-gradient(135deg, #10b9e8 0%, #078fc5 50%, #076394 100%);
    --ak-public-header-ink: #ffffff;
    --ak-public-header-muted: rgba(255, 255, 255, 0.84);
    --ak-public-nav-surface: rgba(2, 91, 132, 0.26);
    --ak-public-nav-border: rgba(255, 255, 255, 0.29);
    --ak-public-circle-bg: rgba(3, 91, 135, 0.32);
    --ak-public-circle-border: rgba(255, 255, 255, 0.68);
    --ak-public-active: linear-gradient(145deg, #67e5ff 0%, #14b7e2 50%, #087cae 100%);
    --ak-public-focus: rgba(119, 232, 255, 0.62);
    --ak-public-icon-filter: brightness(0) invert(1);
    --ak-public-accent: #10b9e8;
    --ak-public-accent-strong: #078fc5;
    --ak-public-accent-deep: #076394;
    --ak-public-accent-soft: #daf8ff;
    --ak-public-accent-rgb: 16, 185, 232;
    --ak-public-accent-deep-rgb: 7, 99, 148;
}

html[data-ak-public-theme="crystal-sky"] {
    --ak-public-header-bg: linear-gradient(135deg, rgba(242, 252, 255, 0.99) 0%, rgba(201, 239, 255, 0.97) 48%, rgba(155, 220, 248, 0.96) 100%);
    --ak-public-header-ink: #082844;
    --ak-public-header-muted: #466c82;
    --ak-public-nav-surface: rgba(255, 255, 255, 0.5);
    --ak-public-nav-border: rgba(13, 113, 174, 0.25);
    --ak-public-circle-bg: rgba(255, 255, 255, 0.76);
    --ak-public-circle-border: rgba(20, 133, 197, 0.42);
    --ak-public-active: linear-gradient(145deg, #52c8f5 0%, #1598d5 52%, #08699e 100%);
    --ak-public-focus: rgba(28, 153, 211, 0.42);
    --ak-public-icon-filter: brightness(0) saturate(100%) invert(20%) sepia(54%) saturate(1200%) hue-rotate(167deg) brightness(88%) contrast(94%);
    --ak-public-accent: #1598d5;
    --ak-public-accent-strong: #0b7eb8;
    --ak-public-accent-deep: #075b8d;
    --ak-public-accent-soft: #e1f7ff;
    --ak-public-accent-rgb: 21, 152, 213;
    --ak-public-accent-deep-rgb: 7, 91, 141;
}

html[data-ak-public-theme="royal-blue"] {
    --ak-public-header-bg: linear-gradient(135deg, #2563eb 0%, #164fb5 52%, #102f78 100%);
    --ak-public-nav-surface: rgba(16, 47, 120, 0.34);
    --ak-public-active: linear-gradient(145deg, #64b5ff 0%, #2563eb 55%, #153f9b 100%);
    --ak-public-focus: rgba(125, 195, 255, 0.58);
    --ak-public-accent: #2563eb;
    --ak-public-accent-strong: #164fb5;
    --ak-public-accent-deep: #102f78;
    --ak-public-accent-soft: #dce8ff;
    --ak-public-accent-rgb: 37, 99, 235;
    --ak-public-accent-deep-rgb: 16, 47, 120;
}

html[data-ak-public-theme="midnight"] {
    --ak-public-header-bg: linear-gradient(135deg, #12345d 0%, #0a2342 52%, #061529 100%);
    --ak-public-nav-surface: rgba(2, 14, 30, 0.34);
    --ak-public-active: linear-gradient(145deg, #228cff 0%, #1558ae 55%, #0a326b 100%);
    --ak-public-focus: rgba(73, 158, 255, 0.58);
    --ak-public-accent: #1b67ad;
    --ak-public-accent-strong: #12345d;
    --ak-public-accent-deep: #061529;
    --ak-public-accent-soft: #d8e8f7;
    --ak-public-accent-rgb: 27, 103, 173;
    --ak-public-accent-deep-rgb: 6, 21, 41;
}

html[data-ak-public-theme="teal"] {
    --ak-public-header-bg: linear-gradient(135deg, #169b91 0%, #0d766f 52%, #07524f 100%);
    --ak-public-nav-surface: rgba(5, 74, 69, 0.3);
    --ak-public-active: linear-gradient(145deg, #43d8c9 0%, #169b91 52%, #07645e 100%);
    --ak-public-focus: rgba(109, 235, 221, 0.55);
    --ak-public-accent: #169b91;
    --ak-public-accent-strong: #0d766f;
    --ak-public-accent-deep: #07524f;
    --ak-public-accent-soft: #d8f4f0;
    --ak-public-accent-rgb: 22, 155, 145;
    --ak-public-accent-deep-rgb: 7, 82, 79;
}

html[data-ak-public-theme="violet"] {
    --ak-public-header-bg: linear-gradient(135deg, #805adf 0%, #5b3bb7 52%, #38216f 100%);
    --ak-public-nav-surface: rgba(51, 28, 108, 0.3);
    --ak-public-active: linear-gradient(145deg, #b794ff 0%, #7650d8 52%, #4b2a9c 100%);
    --ak-public-focus: rgba(199, 173, 255, 0.58);
    --ak-public-accent: #805adf;
    --ak-public-accent-strong: #5b3bb7;
    --ak-public-accent-deep: #38216f;
    --ak-public-accent-soft: #ebe4ff;
    --ak-public-accent-rgb: 128, 90, 223;
    --ak-public-accent-deep-rgb: 56, 33, 111;
}

html[data-ak-public-theme="liquid-white"] {
    --ak-public-header-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(219, 246, 255, 0.95) 48%, rgba(232, 233, 255, 0.94) 100%);
    --ak-public-header-ink: #10283a;
    --ak-public-header-muted: #526f7d;
    --ak-public-nav-surface: rgba(255, 255, 255, 0.48);
    --ak-public-nav-border: rgba(37, 132, 190, 0.25);
    --ak-public-circle-bg: rgba(255, 255, 255, 0.72);
    --ak-public-circle-border: rgba(35, 137, 198, 0.4);
    --ak-public-active: linear-gradient(145deg, #48c3ed 0%, #168ac3 54%, #0b6093 100%);
    --ak-public-focus: rgba(37, 155, 210, 0.4);
    --ak-public-icon-filter: brightness(0) saturate(100%) invert(21%) sepia(69%) saturate(1190%) hue-rotate(171deg) brightness(91%) contrast(91%);
    --ak-public-accent: #168ac3;
    --ak-public-accent-strong: #0b6fa8;
    --ak-public-accent-deep: #084d79;
    --ak-public-accent-soft: #dff6ff;
    --ak-public-accent-rgb: 22, 138, 195;
    --ak-public-accent-deep-rgb: 8, 77, 121;
}

/* The public selection controls the whole customer-facing accent system.
   Admin/user shells do not receive data-ak-public-theme, so they stay separate. */
html[data-ak-public-theme] {
    --brand-primary: var(--ak-public-accent);
    --brand-primary-dark: var(--ak-public-accent-strong);
    --brand-deep: var(--ak-public-accent-deep);
    --brand-soft: var(--ak-public-accent-soft);
    --brand-surface: var(--ak-public-accent-soft);
    --brand-primary-rgb: var(--ak-public-accent-rgb);
    --brand-deep-rgb: var(--ak-public-accent-deep-rgb);
    --brand-ring: rgba(var(--ak-public-accent-rgb), 0.24);
    --brand-shadow: rgba(var(--ak-public-accent-rgb), 0.28);
    --brand-glass-border: rgba(var(--ak-public-accent-rgb), 0.18);
    --brand-button-shadow: rgba(var(--ak-public-accent-deep-rgb), 0.34);
    --brand-control-primary: linear-gradient(135deg, var(--ak-public-accent) 0%, var(--ak-public-accent-strong) 52%, var(--ak-public-accent-deep) 100%);
    --brand-control-primary-hover: linear-gradient(135deg, var(--ak-public-accent-strong) 0%, var(--ak-public-accent) 46%, var(--ak-public-accent-deep) 100%);
    --brand-control-secondary: linear-gradient(145deg, rgba(255, 255, 255, 0.96), var(--ak-public-accent-soft));
    --brand-control-secondary-hover: linear-gradient(145deg, #ffffff, var(--ak-public-accent-soft));
    --brand-control-border: rgba(var(--ak-public-accent-rgb), 0.3);
    --brand-control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(var(--ak-public-accent-deep-rgb), 0.2), 0 10px 24px rgba(var(--ak-public-accent-deep-rgb), 0.3);
    --brand-control-shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 0 rgba(var(--ak-public-accent-rgb), 0.14), 0 9px 22px rgba(var(--ak-public-accent-deep-rgb), 0.15);
}

body.has-ak-public-header .ak-public-home-hero {
    --ak-hero-teal: var(--ak-public-accent) !important;
    --ak-hero-teal-dark: var(--ak-public-accent-deep) !important;
}

body.has-ak-public-header :where(
    .ak-home-hero-cta,
    .btn.primary,
    button[type="submit"].btn:not(.ghost):not(.secondary),
    .auth-switch-btn.is-active,
    .payment-controls .btn.is-armed,
    .payment-controls .btn.is-ready,
    .utility-chat-composer-btn--send,
    .utility-receipt-card__button.primary,
    .receipt-btn
) {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    background: var(--brand-control-primary) !important;
    box-shadow: var(--brand-control-shadow) !important;
}

body.has-ak-public-header :where(
    .ak-home-hero-cta,
    .btn.primary,
    button[type="submit"].btn:not(.ghost):not(.secondary),
    .auth-switch-btn.is-active,
    .payment-controls .btn.is-armed,
    .payment-controls .btn.is-ready,
    .utility-chat-composer-btn--send,
    .utility-receipt-card__button.primary,
    .receipt-btn
):hover {
    color: #ffffff !important;
    background: var(--brand-control-primary-hover) !important;
    box-shadow: 0 15px 30px rgba(var(--ak-public-accent-deep-rgb), 0.32) !important;
}

body.has-ak-public-header :where(.btn.ghost, .btn.secondary, .auth-switch-btn:not(.is-active)) {
    border-color: var(--brand-control-border) !important;
    color: var(--ak-public-accent-deep) !important;
    background: var(--brand-control-secondary) !important;
    box-shadow: var(--brand-control-shadow-soft) !important;
}

body.has-ak-public-header :where(.btn.ghost, .btn.secondary, .auth-switch-btn:not(.is-active)):hover {
    border-color: rgba(var(--ak-public-accent-rgb), 0.46) !important;
    color: var(--ak-public-accent-deep) !important;
    background: var(--brand-control-secondary-hover) !important;
}

body.has-ak-public-header :where(
    .ak-home-hero-cta,
    .btn.primary,
    .btn.ghost,
    .btn.secondary,
    .auth-switch-btn
):focus-visible {
    outline: 3px solid rgba(var(--ak-public-accent-rgb), 0.28) !important;
    outline-offset: 3px !important;
}

/* Public typography and component accents. Keep ordinary copy dark and keep
   success/warning/error states semantic; only brand-coloured text is themed. */
body.has-ak-public-header :where(
    .section-heading h2,
    .rating-card .score,
    .info-card h2,
    .info-card h3,
    .info-card h4,
    .support-highlights strong,
    .footer-link-row a,
    .footer-brand h4,
    .footer-services-copy h4,
    .info-hero h1,
    .faq-accordion__intro h2,
    .faq-list summary,
    .faq-list summary::after,
    .link-button,
    .service-card:focus-visible h3
) {
    color: var(--ak-public-accent-deep) !important;
    -webkit-text-fill-color: var(--ak-public-accent-deep) !important;
}

body.has-ak-public-header :where(.service-hero .badge, .badge:not([class*="status"]):not([class*="kyc-"]), .badge-accent) {
    border: 1px solid rgba(var(--ak-public-accent-rgb), 0.22) !important;
    color: var(--ak-public-accent-deep) !important;
    background: var(--ak-public-accent-soft) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

body.has-ak-public-header .recharge-type-group {
    border: 1px solid rgba(var(--ak-public-accent-rgb), 0.12) !important;
    background: rgba(var(--ak-public-accent-rgb), 0.08) !important;
}

body.has-ak-public-header .toggle-pill input:checked + span {
    color: var(--ak-public-accent-deep) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(var(--ak-public-accent-rgb), 0.1), 0 7px 18px rgba(var(--ak-public-accent-deep-rgb), 0.1) !important;
}

body.has-ak-public-header :where(.plan-tags button, .check-plans-btn, .btn.ghost, .btn.secondary) {
    border-color: rgba(var(--ak-public-accent-rgb), 0.32) !important;
    color: var(--ak-public-accent-deep) !important;
}

body.has-ak-public-header :where(input, select, textarea):focus {
    border-color: rgba(var(--ak-public-accent-rgb), 0.58) !important;
    box-shadow: 0 0 0 4px rgba(var(--ak-public-accent-rgb), 0.18), 0 10px 24px rgba(var(--ak-public-accent-deep-rgb), 0.1) !important;
}

body.has-ak-public-header :where(
    .ak-home-hero-cta,
    .btn.primary,
    button[type="submit"].btn:not(.ghost):not(.secondary),
    .utility-chat-composer-btn--send,
    .utility-receipt-card__button.primary,
    .receipt-btn
):disabled,
body.has-ak-public-header :where(
    .ak-home-hero-cta,
    .btn.primary,
    button[type="submit"].btn:not(.ghost):not(.secondary),
    .utility-chat-composer-btn--send,
    .utility-receipt-card__button.primary,
    .receipt-btn
)[aria-disabled="true"] {
    color: rgba(255, 255, 255, 0.96) !important;
    background: linear-gradient(135deg, var(--ak-public-accent) 0%, var(--ak-public-accent-strong) 56%, var(--ak-public-accent-deep) 100%) !important;
    filter: saturate(0.78) !important;
    opacity: 0.66 !important;
}

body.has-ak-public-header .info-highlight {
    border-left-color: var(--ak-public-accent) !important;
}

body.has-ak-public-header :where(.service-card, .info-card, .rating-card, .ad-slot, .trust-grid article):focus-within {
    border-color: rgba(var(--ak-public-accent-rgb), 0.34) !important;
    box-shadow: 0 0 0 3px rgba(var(--ak-public-accent-rgb), 0.09), 0 18px 42px rgba(var(--ak-public-accent-deep-rgb), 0.12) !important;
}

body.has-ak-public-header header#site-header {
    color: var(--ak-public-header-ink) !important;
    background: var(--ak-public-header-bg) !important;
    border-bottom-color: var(--ak-public-nav-border) !important;
    box-shadow: 0 14px 36px rgba(4, 38, 78, 0.22) !important;
}

body.has-ak-public-header header#site-header > .ak-public-header,
body.has-ak-public-header .ak-public-header .brand,
body.has-ak-public-header .ak-public-header .brand-name,
body.has-ak-public-header .ak-public-header .category-chip,
body.has-ak-public-header .ak-public-header .category-chip .chip-label {
    color: var(--ak-public-header-ink) !important;
    -webkit-text-fill-color: var(--ak-public-header-ink) !important;
}

body.has-ak-public-header .ak-public-header .brand-sub {
    color: var(--ak-public-header-muted) !important;
}

body.has-ak-public-header .ak-public-header .brand-name::after {
    background: #55e6d0 !important;
    box-shadow: 0 0 0 4px rgba(85, 230, 208, 0.18) !important;
}

body.has-ak-public-header .ak-public-header .header-actions .cta-btn {
    color: var(--ak-public-header-ink) !important;
    border-color: var(--ak-public-circle-border) !important;
    background: var(--ak-public-circle-bg) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 9px 22px rgba(3, 31, 65, 0.22) !important;
}

body.has-ak-public-header .ak-public-header .header-actions .cta-icon,
body.has-ak-public-header .ak-public-header .header-actions .cta-icon svg {
    color: var(--ak-public-header-ink) !important;
}

body.has-ak-public-header .ak-public-header .header-secondary {
    color: var(--ak-public-header-ink) !important;
    border-color: var(--ak-public-nav-border) !important;
    background: var(--ak-public-nav-surface) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 9px 25px rgba(3, 31, 65, 0.16) !important;
}

body.has-ak-public-header .ak-public-header .category-nav {
    align-items: center !important;
}

body.has-ak-public-header .ak-public-header .category-chip {
    min-height: 54px !important;
    padding: 3px 7px !important;
    flex-direction: column !important;
    gap: 3px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.has-ak-public-header .ak-public-header .category-chip::after {
    background: rgba(255, 255, 255, 0.16) !important;
}

body.has-ak-public-header .ak-public-header .category-chip .icon {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid var(--ak-public-circle-border) !important;
    border-radius: 50% !important;
    color: var(--ak-public-header-ink) !important;
    background: var(--ak-public-circle-bg) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 5px 14px rgba(3, 31, 65, 0.2) !important;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.has-ak-public-header .ak-public-header .category-chip .icon img,
body.has-ak-public-header .ak-public-header .category-chip .icon svg {
    width: 20px !important;
    height: 20px !important;
    opacity: 1 !important;
    filter: var(--ak-public-icon-filter) !important;
}

body.has-ak-public-header .ak-public-header .category-chip .chip-label {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
}

body.has-ak-public-header .ak-public-header .category-chip:hover,
body.has-ak-public-header .ak-public-header .category-chip:focus-visible,
body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target) {
    color: var(--ak-public-header-ink) !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.has-ak-public-header .ak-public-header .category-chip:hover .icon,
body.has-ak-public-header .ak-public-header .category-chip:focus-visible .icon {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 9px 20px rgba(3, 31, 65, 0.26) !important;
}

body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target) .icon {
    border-color: rgba(255, 255, 255, 0.72) !important;
    color: #ffffff !important;
    background: var(--ak-public-active) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 3px var(--ak-public-focus), 0 9px 22px rgba(3, 31, 65, 0.3) !important;
}

body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target) .icon img,
body.has-ak-public-header .ak-public-header .category-chip:is(.active, .is-ak-nav-target) .icon svg {
    filter: brightness(0) invert(1) !important;
}

body.has-ak-public-header .ak-public-header :is(a, button):focus-visible {
    outline-color: var(--ak-public-focus) !important;
}

@media (max-width: 720px) {
    body.has-ak-public-header > header#site-header,
    body.has-ak-public-header > header#site-header > .ak-public-header {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    body.has-ak-public-header .ak-public-header .header-primary {
        width: 100vw !important;
        max-width: 100vw !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
    }

    body.has-ak-public-header .ak-public-header .brand {
        width: auto !important;
        max-width: 100% !important;
    }

    body.has-ak-public-header .ak-public-header .header-actions {
        position: fixed !important;
        top: 9px !important;
        right: 10px !important;
        z-index: 3 !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.has-ak-public-header .ak-public-header .header-actions .cta-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.has-ak-public-header .ak-public-header .brand-name {
        color: var(--ak-public-header-ink) !important;
        -webkit-text-fill-color: var(--ak-public-header-ink) !important;
    }

    body.has-ak-public-header .ak-public-header .brand-sub {
        color: var(--ak-public-header-muted) !important;
    }

    body.has-ak-public-header .ak-public-header .category-chip {
        min-height: 50px !important;
        gap: 2px !important;
    }

    body.has-ak-public-header .ak-public-header .category-chip .icon {
        width: 31px !important;
        height: 31px !important;
        border: 1px solid var(--ak-public-circle-border) !important;
        border-radius: 50% !important;
        background: var(--ak-public-circle-bg) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 4px 11px rgba(3, 31, 65, 0.18) !important;
    }

    body.has-ak-public-header .ak-public-header .category-chip .chip-label {
        font-size: 0.58rem !important;
    }
}
