:root {
    --orange-1: #ff8a3d;
    --orange-2: #FF854E;
    --navy: #17306e;
    --navy-2: #1e3d8a;
    --ink: #0F2C67;
    --muted: #8a97ad;
    --line: #e2ebf5;
    --card: #ffffff;
    --bg-1: #eaf4fd;
    --bg-2: #d6e8fa;
    --radius-lg: 26px;
    --radius-md: 16px;
    --shadow-card: 0 24px 60px rgba(38, 88, 150, 0.15);
    --shadow-soft: 0 10px 26px rgba(38, 88, 150, 0.10);

    --sds-size-depth-0: 0;
    --sds-size-depth-025: 1px;
    --sds-size-depth-100: 4px;
    --sds-color-black-100: rgba(12, 12, 13, 0.05);
    --sds-color-black-200: rgba(12, 12, 13, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    overscroll-behavior: none;
}

body {
    font-family: 'Google Sans Flex', "Be Vietnam Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background:
        url("img/bg-network.png") no-repeat left top / 60% auto,
        linear-gradient(160deg, #f2f8fe 0%, var(--bg-1) 45%, var(--bg-2) 100%);
    background-attachment: fixed, fixed;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overscroll-behavior: none;
    touch-action: pan-y;
}

.google-sans-flex-120 {
    font-family: 'Google Sans Flex', "Be Vietnam Pro", system-ui, sans-serif;
    font-size: 120pt;
    line-height: 1;
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: minmax(320px, 38%) minmax(0, 1fr);
    gap: 44px;
    align-items: stretch;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 8px 28px;
}

.hero-head {
    text-align: center;
    margin-top: 80px;
}

.hero-eyebrow {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 28px;
    color: var(--ink);
}

.hero-title {
    font-weight: 700;
    font-size: 64px;
    line-height: 1.35;
    letter-spacing: 0.5px;
    padding-top: 10px;
    background: linear-gradient(180deg, #FDA84C 0%, #FE5131 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow: visible;
}

.hero-sub {
    color: #56617a;
    font-size: 20px;
    font-weight: 400;
}

.hero-underline {
    display: block;
    width: 340px;
    max-width: 80%;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(245, 97, 11, 0) 0%, var(--orange-2) 50%, rgba(245, 97, 11, 0) 100%);
}

.hero-visual {
    width: 124%;
    max-width: 540px;
    margin-top: 18px;
    filter: drop-shadow(0 20px 40px rgba(23, 48, 110, 0.18));
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange-2);
    font-weight: 600;
    font-size: 16px;
    padding: 11px 22px;
    border: 1.5px solid #f8cba4;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.pill img {
    width: 20px;
    height: 20px;
}

.pill-home {
    position: absolute;
    top: 0;
    left: -16px;
    gap: 4px;
    padding: 6px 16px 6px 13px;
    border: 1px solid #F2DDBE;
    box-shadow:
        var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-100),
        var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-200);
}

.pill-back {
    position: absolute;
    bottom: 0;
    left: 0;
    gap: 4px;
    padding: 6px 16px 6px 13px;
    border: 1px solid #F2DDBE;
    box-shadow:
        var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-100),
        var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-200);
}

.panel {
    position: relative;
    background: var(--card);
    border-radius: 32px;
    box-shadow: var(--shadow-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 1;
}

.mobile-head {
    display: none;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.tab {
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0.5px;
    padding: 20px 12px;
    border: 1px solid #eef2f8;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 6px 16px rgba(38, 88, 150, 0.08);
    transition: 0.2s;
}

.tab.is-active {
    background: linear-gradient(180deg, #294c98 0%, #1b3572 100%);
    color: var(--orange-2);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(23, 48, 110, 0.35),
        inset 0 0 0 1.5px rgba(120, 150, 210, 0.45);
}

.tab-pre {
    display: none;
}

.grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Tab panels: only the active one shows */
.grid[data-panel] {
    display: none;
}

.grid[data-panel].is-active {
    display: grid;
}

.cat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 44.23%, #FFE2C2 100%);
    border: 1px solid #FFA45E;
    border-radius: 18px;
    padding: 12px 22px 12px 12px;
    box-shadow:
        var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) #0F2C670D,
        var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) #0F2C671A;
    transition: transform 0.15s, box-shadow 0.15s;
}

.cat:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(245, 97, 11, 0.18);
}

.cat-ico {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
}

.cat-label {
    flex: 1;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--ink);
    line-height: 1.2;
}

.cat-label .sm {
    display: none;
}

.cat-sub {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-top: 2px;
}

.cat-arrow {
    width: 8px;
    height: auto;
    flex: 0 0 auto;
    filter: brightness(0) saturate(100%) invert(13%) sepia(46%) saturate(1900%) hue-rotate(196deg) brightness(94%) contrast(96%);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-heading .line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.section-heading h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--ink);
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    padding: 22px 26px;
}

/* Bottom tools = one bordered frame wrapping both halves */
.check-card,
.backup-card {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* vertical divider between the two halves */
.backup-card {
    border-left: 1px solid var(--line);
    padding-left: 28px;
}

.contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.contact+.contact {
    border-left: 1px solid var(--line);
}

.contact img {
    width: 64px;
    height: 64px;
}

.contact-name {
    color: var(--muted);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
}

.contact-val {
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.tools {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    padding: 22px 24px;
}

.check-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.check-title img {
    width: 30px;
    height: 30px;
}

.check-title h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.check-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #9DB9FF;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0px 2px 7.2px 0px #4E92FF6E;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.check-form:focus-within {
    border-color: #0F2C67;
    box-shadow: 0 0 0 3px rgba(15, 44, 103, 0.12),
        0 7px 18px rgba(15, 44, 103, 0.2);
    transform: translateY(-1px);
}

.check-form.is-typing-pulse {
    animation: typing-border-pulse 480ms ease-out;
}

@keyframes typing-border-pulse {
    0%,
    100% {
        border-color: #0F2C67;
        box-shadow: 0 0 0 3px rgba(15, 44, 103, 0.12),
            0 7px 18px rgba(15, 44, 103, 0.2);
    }

    35% {
        border-color: #5f8fea;
        box-shadow: 0 0 0 5px rgba(66, 123, 225, 0.28),
            0 8px 24px rgba(15, 44, 103, 0.3);
    }

    68% {
        border-color: #0F2C67;
        box-shadow: 0 0 0 2px rgba(15, 44, 103, 0.1),
            0 6px 15px rgba(15, 44, 103, 0.18);
    }
}

.check-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--ink);
    min-width: 0;
    text-align: center;
    text-overflow: ellipsis;
    margin-left: 2px;
}

.check-form input::placeholder {
    color: #9fb0c6;
    transition: opacity 180ms ease;
}

.check-form input:focus::placeholder {
    opacity: 0.45;
}

.check-form button {
    background: linear-gradient(180deg, var(--navy-2), var(--navy));
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 15px;
    border-radius: 26px;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(23, 48, 110, 0.3);
}

.check-form button:disabled {
    cursor: wait;
    opacity: 0.75;
}

/* ---- Domain verification dialog ---- */
body.domain-dialog-open {
    overflow: hidden;
}

.domain-dialog {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.domain-dialog.is-open {
    display: flex;
}

.domain-dialog-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 25, 59, 0.58);
        cursor: default;
}

.domain-dialog-card {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px 26px 24px;
    border: 2px solid #0F2C67;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5fc 100%);
    box-shadow: 0 24px 70px rgba(15, 44, 103, 0.28);
    color: #0F2C67;
    text-align: center;
}

.domain-dialog-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    color: #0F2C67;
    font-size: 28px;
    line-height: 1;
}

.domain-dialog-image {
    width: auto;
    height: 120px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.domain-dialog-title {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    /* Màu tiêu đề để API quyết định qua titleHtml */
}

.domain-dialog-message {
    font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    /* Màu nội dung / link để API quyết định qua contentHtml */
}

.domain-dialog-message a {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.domain-dialog-note {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
    /* Màu note / link để API quyết định qua safeLinkNoteHtml */
}

.domain-dialog-note a {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.domain-dialog-image[hidden],
.domain-dialog-note[hidden] {
    display: none;
}

.domain-dialog-confirm {
    margin-top: 20px;
    padding: 10px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, var(--navy-2), var(--navy));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(23, 48, 110, 0.25);
}

/* ---- Backup links ---- */
/* padding/border inherited from the shared .check-card,.backup-card rule */

.backup-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    border-left: 5px solid var(--navy-2);
    padding-left: 12px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.backup-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.blink {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow:
        var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-100),
        var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-200);
    transition: 0.15s;
}

.blink:hover {
    border-color: #c7dcf5;
    transform: translateY(-1px);
}

.blink-top {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.blink-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #3D4F73;
    font-size: 14px;
    font-weight: 500;
}

.blink-bottom img {
    width: 6px;
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(12%) sepia(69%) saturate(1985%) hue-rotate(202deg) brightness(96%) contrast(101%);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background: #21c15e;
}

.dot.red {
    background: #f0384b;
}

.dot.blue {
    background: #3a4bd8;
}

.hotline-banner {
    display: none;
}

@keyframes ring-shake {

    0%,
    60%,
    100% {
        transform: rotate(0);
    }

    5%,
    15%,
    25% {
        transform: rotate(-15deg);
    }

    10%,
    20%,
    30% {
        transform: rotate(15deg);
    }

    35% {
        transform: rotate(0);
    }
}

.chat-widget {
    position: absolute;
    right: 1px;
    top: 397px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-close {
    align-self: flex-end;
    background: transparent;
    line-height: 0;
    margin-bottom: 2px;
    margin-right: 2px;
}

.chat-close img {
    width: 22px;
    height: 22px;
    opacity: 0.6;
}

.chat-bubble {
    width: 104px;
    align-self: center;
    margin-bottom: -14px;
    animation: bob 2.2s ease-in-out infinite;
}

.chat-bot {
    width: 92px;
    align-self: center;
    filter: drop-shadow(0 10px 18px rgba(23, 48, 110, 0.28));
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.box-iframe {
    display: none;
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 5;
    min-height: 0;
}

.box-iframe.is-open {
    display: block;
}

body.iframe-open .hero {
    display: none;
}

.box-iframe-backdrop {
    display: none;
}

#show-iframe-open {
    position: relative;
    height: 100%;
    min-height: 465px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.code-iframe {
    display: none;
    position: absolute;
    inset: 0;
}

.code-iframe.active {
    display: block;
}

.chat-dialog {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    touch-action: auto;
    pointer-events: auto;
}

body.iframe-open {
    touch-action: auto;
}

.bi-bar {
    display: contents;
}

.bi-btn {
    position: absolute;
    right: -18px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(180deg, #ff9a17 0%, #ff7b27 48%, #ff3849 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s;
}

.bi-btn:hover {
    transform: scale(1.06);
}

.bi-close {
    top: 6px;
}

.bi-reload {
    top: 54px;
}

/* Desktop hẹp (iPad ngang / laptop nhỏ): gom gọn 2 cột, tránh lửng lửng */
@media (min-width: 1025px) and (max-width: 1280px) {
    .page {
        padding: 24px;
        gap: 22px;
    }

    .hero {
        justify-content: center;
        padding: 4px 4px 20px;
    }

    .hero-head {
        margin-top: 20px;
    }

    .hero-eyebrow {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-visual {
        max-width: 420px;
        margin-top: 14px;
    }

    .panel {
        padding: 20px;
    }

    .tab {
        font-size: 15px;
        padding: 15px 8px;
    }

    .cat {
        gap: 10px;
        padding: 10px 20px 10px 10px;
    }

    .cat-ico {
        width: 52px;
        height: 52px;
    }

    .cat-label {
        font-size: 13.5px;
    }

    .tools {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .backup-card {
        padding-left: 14px;
    }

    .backup-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .blink {
        padding: 10px 6px;
    }

    .blink-top {
        font-size: 12px;
        gap: 4px;
    }

    .blink-bottom {
        font-size: 10.5px;
    }
}

@media (max-width: 1024px) {
    body {
        background:
            url("img/bg-network.png") no-repeat left top / 100% auto,
            linear-gradient(160deg, #f2f8fe 0%, var(--bg-1) 45%, var(--bg-2) 100%);
    }

    .page {
        grid-template-columns: 1fr;
        padding: 6px 8px 40px;
        gap: 18px;
    }

    .hero {
        display: none;
    }

    /* box-iframe: modal full màn trên mobile */
    body.iframe-open {
        overflow: hidden;
    }

    /* position:fixed: bám viewport, miễn nhiễm scroll (absolute + body overflow:hidden trên iOS khiến scrollTo(0,0) bị chặn -> modal lệch = mức đã cuộn -> chạm trượt). Bug offset thật là do BAR đẩy iframe, đã xử bằng iframe top:0. */
    .box-iframe {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        z-index: 1000;
        grid-column: auto;
        grid-row: auto;
    }

    .box-iframe.is-open {
        display: block;
    }

    .box-iframe-backdrop {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 0;
        /* chỉ trang trí, KHÔNG bắt touch */
        pointer-events: none;
        background: rgba(15, 44, 103, 0.6);
    }

    /* iframe PHỦ FULL box (top:0). BẮT BUỘC: nếu đẩy iframe xuống (top:52) thì hit-test chạm bị lệch đúng =chiều cao bar -> nút nửa dưới bấm trượt. */
    #show-iframe-open {
        position: absolute;
        inset: 0;
        height: auto;
        min-height: 0;
        z-index: 1;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }

    /* bar cam overlay absolute LÊN TRÊN iframe (che ~52px header trên của chat, chấp nhận được) */
    .bi-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        height: calc(env(safe-area-inset-top, 0px) + 52px);
        padding: env(safe-area-inset-top, 0px) 16px 0;
        background: linear-gradient(180deg, #FDA84C 0%, #FE5131 100%);
    }

    .bi-bar .bi-btn {
        position: static;
        width: 36px;
        height: 36px;
        background: #fff;
        color: #FE5131;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .panel {
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 10px;
    }

    .mobile-head {
        display: block;
        position: relative;
        padding-top: 4px;
    }

    .mobile-head .pill-back {
        position: absolute;
        left: 0;
        top: 50%;
        bottom: 8px;
        transform: translateY(-50%);
        gap: 4px;
        padding: 6px 8px 6px 5px;
        font-size: 10px;
        border: 1px solid #f6a15f;
        border-radius: 999px;
        box-shadow:
            var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-100),
            var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-200);
    }

    .mobile-head .pill-back img {
        width: 12px;
        height: 12px;
    }

    .mobile-head-title {
        text-align: center;
    }

    .mobile-head .hero-eyebrow {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .mobile-head .hero-title {
        font-family: 'Google Sans Flex', "Be Vietnam Pro", sans-serif;
        font-weight: 700;
        font-optical-sizing: none;
        font-variation-settings: 'opsz' 120, 'wght' 700;
        font-size: 24px;
        line-height: 1;
        letter-spacing: 0.5px;
        text-align: center;
        padding-top: 6px;
        background: linear-gradient(180deg, #FDA84C 0%, #FE5131 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .mobile-head .hero-underline {
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }

    .tabs-and-grid {
        background: linear-gradient(180deg, #e9f2fd, #dfedfb);
        border-radius: 22px;
        padding: 4px 8px 2px 8px;
    }

    .tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 13px;
        letter-spacing: 0.3px;
        line-height: 1.2;
        padding: 12px 8px;
        border-radius: 16px 16px 4px 16px;
        text-align: center;
    }

    .tab-pre {
        display: block;
        font-size: 13px;
        font-weight: 600;
    }

    .tab-main {
        font-size: 14px;
        font-weight: 700;
    }

    .tab.is-active .tab-pre {
        color: #fff;
    }

    .tab.is-active .tab-main {
        color: var(--orange-2);
    }

    .grid {
        gap: 8px;
        margin-top: 12px;
    }

    .cat {
        display: flex;
        align-items: center;
        gap: 2px;
        padding: 8px 10px 8px 6px;
        border-radius: 16px;
    }

    .cat-ico {
        width: 52px;
        height: 52px;
    }

    .cat-label {
        font-size: 13px;
        line-height: 1.2;
    }

    .cat-arrow {
        width: 6px;
        opacity: 0.9;
    }

    .cat-label .lg {
        display: none;
    }

    .cat-label .sm {
        display: inline;
    }

    .hotline-banner {
        display: flex;
        align-items: center;
        margin-top: 14px;
        gap: 12px;
        width: 100%;
        padding: 12px 16px;
        border-radius: 14px;
        background: linear-gradient(180deg, #2a4c93 0%, #172c5f 100%);
        border: 1px solid rgba(120, 150, 210, 0.35);
        box-shadow: 0 8px 20px rgba(23, 48, 110, 0.28);
    }

    .hotline-phone {
        width: 56px;
        height: 56px;
        flex: 0 0 auto;
        transform-origin: 50% 50%;
        animation: ring-shake 1.4s ease-in-out infinite;
    }

    .hotline-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.15;
    }

    .hotline-label {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.4px;
    }

    .hotline-number {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 2px;
        margin: 2px 0;
        background: linear-gradient(180deg, #FDA84C 0%, #FE5131 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    .hotline-sub {
        color: #c4d2ec;
        font-size: 10px;
        font-weight: 500;
    }

    .hotline-stars {
        width: 86px;
        height: auto;
        flex: 0 0 auto;
    }

    .contact-card {
        padding: 8px 14px;
    }

    .section-heading {
        margin-bottom: 14px;
    }

    .section-heading h2 {
        font-family: 'Google Sans Flex', "Be Vietnam Pro", sans-serif;
        font-weight: 600;
        font-size: 12px;
        line-height: 1;
        letter-spacing: 0;
        text-align: center;
    }

    .contacts {
        grid-template-columns: 1fr 1fr;
    }

    .contact:first-child {
        display: none;
    }

    .contact+.contact {
        border-left: none;
    }

    .contact:last-child {
        border-left: 1px solid var(--line);
    }

    .contact img {
        width: 40px;
        height: 40px;
    }

    .contact-name {
        display: none;
    }

    .contact-val {
        font-weight: 600;
        font-size: 13px;
        line-height: 1.2;
        letter-spacing: 0;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }

    .contact {
        gap: 10px;
    }

    .tools {
        grid-template-columns: 1fr;
        gap: 12px;
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .check-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow-soft);
        padding: 8px;
    }

    .backup-card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    /* Reduce check-form height on mobile */
    .check-form {
        padding: 6px 8px; /* smaller vertical padding to reduce total height */
        gap: 6px;
        border-radius: 22px;
    }

    .check-form input {
        font-size: 12px;
        padding: 6px 8px 6px 4px;
    }

    .check-form button {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 20px;
        background: linear-gradient(180deg, #6081B2 0%, #00306F 100%);
        box-shadow: 1px 3px 2px 0px #7090BA inset, 0px -1px 2px 0px #00224F inset;
        color: #fff;
        border: none;
    }

    .backup-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .blink {
        padding: 12px 10px;
        gap: 10px;
    }

    .blink-top {
        font-size: 14px;
        gap: 6px;
        color: var(--ink);
    }

    .blink-bottom {
        font-size: 13px;
    }

    .chat-widget {
        right: -8px;
        bottom: auto;
        top: 449px;
    }

    .chat-bubble {
        width: 82px;
    }

    .chat-bot {
        width: 80px;
    }
}

@media (max-width: 400px) {
    .mobile-head .hero-eyebrow {
        font-size: 14px;
    }

    .cat-label {
        font-size: 12px;
    }

    .hotline-stars {
        width: 75px;
    }
}