/* ===========================================================================
   ToursXplorer Support — theme built to match the provided mockups 1:1
   Brand: primary #e3bd3e / background #f5f5f0
   Font: Plus Jakarta Sans (copied from the client project)
   =========================================================================== */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-SemiBold.ttf') format('truetype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-ExtraBold.ttf') format('truetype');
    font-weight: 800; font-style: normal; font-display: swap;
}

:root {
    --tx-primary: #e3bd3e;
    --tx-primary-dark: #d4ab28;
    --tx-primary-600: #c99f1f;
    --tx-primary-soft: #fbeec3;
    --tx-primary-tint: #fdf6df;
    --tx-bg: #FDFDFD;
    --tx-surface: #ffffff;
    --tx-ink: #11151c;
    --tx-ink-2: #2b3240;
    --tx-ink-soft: #5b6373;
    --tx-muted: #9aa0ad;
    --tx-border: #ebeae3;
    --tx-border-2: #e3e2da;
    --tx-green: #1f6b46;
    --tx-green-soft: #e6f1ea;
    --tx-blue-soft: #eef1f7;
    --tx-blue-ink: #59617a;
    --tx-red-soft: #fbe9e6;
    --tx-red-ink: #c0392b;

    --tx-radius-xl: 22px;
    --tx-radius-lg: 16px;
    --tx-radius: 12px;
    --tx-radius-sm: 9px;
    --tx-shadow-sm: none;
    --tx-shadow: none;
    --tx-shadow-hover: none;
    --tx-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; max-width: 100%; }

body {
    font-family: var(--tx-font);
    background: var(--tx-bg);
    color: var(--tx-ink);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 15px;
}

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

.tx-page { display: flex; flex-direction: column; min-height: 100vh; }
.tx-main { flex: 1 0 auto; overflow-x: hidden; } /* clip full-bleed art at the viewport edge */
.container.tx-container { max-width: 1240px; }

/* ====== Brand wordmark (tours X plorer .com) =============================== */
.tx-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -.6px;
    color: var(--tx-ink);
    line-height: 1;
    user-select: none;
    white-space: nowrap;
}
.tx-wordmark .tx-x {
    color: var(--tx-primary);
    font-style: italic;
    font-weight: 800;
    transform: skewX(-6deg);
    display: inline-block;
    padding: 0 1px;
}
.tx-wordmark .tx-dot {
    font-size: .52em;
    font-weight: 800;
    color: var(--tx-ink);
    margin-left: 3px;
    align-self: flex-end;
    padding-bottom: .2em;
    letter-spacing: -.3px;
}
.tx-wordmark--sm { font-size: 1.35rem; }
.tx-wordmark--footer { font-size: 1.45rem; }

/* Brand logo image in the navbar */
.tx-brand { display: inline-flex; align-items: center; }
.tx-brand img { height: 36px; width: auto; display: block; }
@media (max-width: 767px) { .tx-brand img { height: 30px; } }

/* ====== Top navbar ========================================================= */
.tx-navbar {
    background: var(--tx-surface);
    border-bottom: 1px solid var(--tx-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.tx-navbar .tx-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1rem;
}
.tx-nav-right { display: flex; align-items: center; gap: .6rem; }
.tx-nav-end { display: flex; align-items: center; gap: .55rem; }
.tx-nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--tx-border-2); background: #fff; color: var(--tx-ink);
    align-items: center; justify-content: center; font-size: 1.45rem;
}
.tx-nav-toggle:hover { background: #faf9f4; }
.tx-nav-links { display: flex; align-items: center; gap: .35rem; }
.tx-nav-link {
    color: var(--tx-ink-2);
    font-weight: 500;
    font-size: .96rem;
    padding: .5rem .95rem;
    border-radius: 8px;
    white-space: nowrap;
}
.tx-nav-link:hover { color: var(--tx-ink); background: #faf9f4; }
.tx-nav-link.is-active { color: var(--tx-ink); font-weight: 600; }

.tx-nav-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--tx-primary);
    color: #1a1d24;
    font-weight: 700;
    font-size: .95rem;
    padding: .62rem 1.15rem;
    border-radius: 10px;
    border: 1px solid var(--tx-primary);
}
.tx-nav-cta:hover { background: var(--tx-primary-dark); color: #1a1d24; }

.tx-lang {
    display: inline-flex; align-items: center; gap: .45rem;
    border: 1px solid var(--tx-border-2);
    border-radius: 9px;
    padding: .5rem .8rem;
    font-weight: 500; color: var(--tx-ink-2); font-size: .92rem;
    background: #fff; cursor: pointer; white-space: nowrap;
}
.tx-lang:hover { background: #faf9f4; }
.tx-lang-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; display: inline-block; }
.tx-lang-menu { min-width: 210px; padding: 6px; border: 1px solid #eee; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.tx-lang-item { display: flex; align-items: center; gap: .55rem; border-radius: 8px; padding: .5rem .65rem; font-size: .9rem; }
.tx-lang-item.active, .tx-lang-item:active { background: var(--tx-primary-tint); color: var(--tx-ink); }
.tx-lang-item:hover { background: #faf6e8; }
.tx-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--tx-primary-soft);
    color: #8a6d05;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .92rem;
    border: 1px solid #f0e3b4;
}
.tx-avatar--plain { background: #f0eee6; color: #8b91a0; }
.tx-avatar-wrap { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.tx-avatar-wrap .bi-chevron-down { color: var(--tx-muted); font-size: .8rem; }
.tx-user-menu { border: 1px solid var(--tx-border); border-radius: 12px; padding: 6px; min-width: 220px; box-shadow: 0 10px 30px rgba(17,21,28,.10); }
.tx-user-menu .dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-size: .92rem; }
.tx-user-menu .dropdown-item:hover { background: #faf9f4; }
.tx-role-badge { display: inline-block; margin-top: 6px; padding: .12rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--tx-primary-tint); color: #8a6d05; border: 1px solid #f1e6bf; }

/* ====== Hero =============================================================== */
.tx-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fbf6e9 0%, #f6efdd 100%);
    border-bottom: 1px solid var(--tx-border);
}
/* image-banner hero (public home) */
.tx-hero--banner {
    background: #fbf6e9 url('../images/home1banner.png') no-repeat right center;
    background-size: cover;
}
/* image-banner hero (logged-in help home) */
.tx-hero--home-banner {
    background: #fbf6e9 url('../images/helphome1.png') no-repeat center 42%;
    background-size: cover;
}
.tx-hero--center { text-align: center; }
.tx-hero-inner { position: relative; z-index: 2; padding: 64px 0 70px; }
.tx-hero--compact .tx-hero-inner { padding: 40px 0 44px; }
.tx-hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--tx-ink);
    margin: 0 0 .6rem;
}
.tx-hero--center h1 { font-size: 3.1rem; }
.tx-hero--left h1 { font-size: 2.7rem; }
.tx-hero p.tx-hero-sub { color: var(--tx-ink-soft); font-size: 1.08rem; max-width: 560px; margin: 0 0 1.7rem; }
.tx-hero--center p.tx-hero-sub { margin-left: auto; margin-right: auto; }

/* faint travel illustration (balloons + dunes) approximated in SVG */
.tx-hero-art {
    position: absolute;
    right: 0; bottom: 0; top: 0;
    width: 56%;
    pointer-events: none;
    z-index: 1;
    opacity: .9;
}
.tx-hero-art svg { width: 100%; height: 100%; display: block; }
.tx-hero--center .tx-hero-art { width: 100%; opacity: .6; }

/* ====== Big search bar ===================================================== */
.tx-search {
    display: flex; align-items: center; gap: .65rem;
    width: 100%;
    background: var(--tx-surface);
    border: 1px solid var(--tx-border-2);
    border-radius: 14px;
    box-shadow: var(--tx-shadow);
    padding: .85rem 1.15rem;
}
.tx-search .bi { color: var(--tx-muted); font-size: 1.15rem; }
.tx-search input {
    border: 0; outline: 0; background: transparent; width: 100%;
    font-size: 1.02rem; color: var(--tx-ink);
}
.tx-search input::placeholder { color: var(--tx-muted); }
.tx-search--hero { max-width: 720px; }
.tx-hero--center .tx-search--hero { margin: 0 auto; }
.tx-search--sm { padding: .7rem 1rem; border-radius: 12px; }

/* ====== Section headings =================================================== */
.tx-section-title { font-weight: 700; font-size: 1.35rem; color: var(--tx-ink); margin: 0 0 1.1rem; letter-spacing: -.3px; }

/* ====== Status summary cards (logged-in home) ============================== */
.tx-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tx-stat {
    background: transparent;
    border: 2px solid var(--tx-border-2);
    border-radius: var(--tx-radius-lg);
    padding: 22px 24px;
    display: flex; align-items: center; gap: 18px;
}
.tx-stat-ico {
    width: 58px; height: 58px; border-radius: 14px; flex: 0 0 58px;
    background: var(--tx-primary-tint);
    color: var(--tx-primary-600);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.tx-stat-num { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--tx-ink); }
.tx-stat-label { font-weight: 700; color: var(--tx-ink-2); margin-top: 3px; font-size: 1rem; }
.tx-stat-sub { color: var(--tx-muted); font-size: .85rem; margin-top: 2px; }

/* ====== Category grid (logged-in home) ==================================== */
.tx-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tx-cat-card {
    background: transparent;
    border: 2px solid var(--tx-border-2);
    border-radius: var(--tx-radius-lg);
    padding: 20px;
    display: flex; align-items: flex-start; gap: 14px;
    position: relative;
}
.tx-cat-ico {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px;
    background: var(--tx-primary-tint); color: var(--tx-primary-600);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.tx-cat-body { flex: 1; min-width: 0; }
.tx-cat-title { font-weight: 700; color: var(--tx-ink); font-size: 1.02rem; margin: 2px 0 4px; }
.tx-cat-desc { color: var(--tx-ink-soft); font-size: .86rem; line-height: 1.45; margin: 0; }
.tx-cat-card .tx-chev { color: var(--tx-muted); align-self: center; font-size: 1rem; }

/* ====== Login cards (public home) ========================================= */
.tx-login-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tx-login-card {
    background: transparent;
    border: 2px solid var(--tx-border-2);
    border-radius: var(--tx-radius-lg);
    padding: 34px 28px;
    text-align: center;
}
.tx-login-ico {
    width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px;
    background: var(--tx-primary-tint); color: var(--tx-primary-600);
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.tx-login-card h3 { font-weight: 800; font-size: 1.35rem; margin: 0 0 .55rem; color: var(--tx-ink); }
.tx-login-card p { color: var(--tx-ink-soft); font-size: .92rem; line-height: 1.5; margin: 0 0 1.5rem; }

/* ====== Buttons ============================================================ */
.btn-tx {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--tx-primary); border: 1px solid var(--tx-primary);
    color: #1a1d24; font-weight: 700; border-radius: 10px;
    padding: .72rem 1.3rem; font-size: .98rem;
    white-space: nowrap;
    transition: background .15s ease, transform .05s ease;
}
.btn-tx:hover { background: var(--tx-primary-dark); border-color: var(--tx-primary-dark); color: #1a1d24; }
.btn-tx:active { transform: translateY(1px); }
.btn-tx--block { width: 100%; }
.btn-tx--lg { padding: .85rem 1.5rem; font-size: 1.02rem; }

.btn-tx-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: transparent; border: 1px solid var(--tx-primary);
    color: #9c7d0f; font-weight: 700; border-radius: 10px;
    padding: .72rem 1.3rem; font-size: .98rem;
}
.btn-tx-outline:hover { background: var(--tx-primary-tint); color: #7e640a; }

.btn-tx-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: #fff; border: 1px solid var(--tx-border-2);
    color: var(--tx-ink-2); font-weight: 600; border-radius: 10px;
    padding: .65rem 1.2rem; font-size: .95rem;
}
.btn-tx-ghost:hover { background: #faf9f4; }

.btn-tx-green {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--tx-green); border: 1px solid var(--tx-green);
    color: #fff; font-weight: 700; border-radius: 10px;
    padding: .72rem 1.4rem; font-size: .98rem;
}
.btn-tx-green:hover { background: #185637; color: #fff; }

/* ====== "Still need help" banner =========================================== */
.tx-help-banner {
    background: var(--tx-primary-tint);
    border: 1px solid #f1e6bf;
    border-radius: var(--tx-radius-lg);
    padding: 10px 30px;
    display: flex; align-items: center; gap: 22px;
}
.tx-help-banner .tx-help-illu {
    width: 175px; flex: 0 0 175px; display: flex; align-items: center; justify-content: center;
}
.tx-help-banner .tx-help-illu img { width: 100%; height: auto; }
.tx-help-banner h4 { font-weight: 800; font-size: 1.4rem; margin: 0 0 .35rem; color: var(--tx-ink); }
.tx-help-banner p { margin: 0; color: var(--tx-ink-soft); font-size: .95rem; }
.tx-help-banner .tx-help-cta { margin-left: auto; flex-shrink: 0; }

.tx-help-mini {
    background: var(--tx-primary-tint);
    border: 1px solid #f1e6bf;
    border-radius: var(--tx-radius-lg);
    padding: 22px 26px;
    display: flex; align-items: center; gap: 18px;
}
.tx-help-mini .tx-help-ico {
    width: 50px; height: 50px; border-radius: 50%; flex: 0 0 50px;
    background: #fff; color: var(--tx-primary-600);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    border: 1px solid #f0e3b4;
}
.tx-help-mini h5 { font-weight: 800; margin: 0 0 .15rem; font-size: 1.15rem; }
.tx-help-mini p { margin: 0; color: var(--tx-ink-soft); font-size: .9rem; }

/* ====== Footer ============================================================= */
.tx-footer {
    background: var(--tx-surface);
    border-top: 1px solid var(--tx-border);
    padding: 22px 0;
    margin-top: 48px;
}
.tx-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tx-footer-copy { color: var(--tx-ink-soft); font-size: .9rem; }
.tx-footer-links { display: flex; align-items: center; gap: 1.6rem; }
.tx-footer-links a { color: var(--tx-ink-2); font-size: .9rem; }
.tx-footer-links a:hover { color: var(--tx-primary-600); }

/* ====== Status pills / badges ============================================= */
.tx-badge { display: inline-flex; align-items: center; padding: .2rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.4; }
.tx-badge--open    { background: var(--tx-primary-soft); color: #8a6d05; }
.tx-badge--pending { background: var(--tx-blue-soft); color: var(--tx-blue-ink); }
.tx-badge--closed  { background: var(--tx-green-soft); color: var(--tx-green); }
.tx-badge--spam    { background: var(--tx-red-soft); color: var(--tx-red-ink); }

/* ====== Category detail layout ============================================ */
.tx-side { position: relative; }
.tx-side-nav {
    background: var(--tx-surface);
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-lg);
    box-shadow: var(--tx-shadow);
    padding: 10px;
}
.tx-side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 10px;
    color: var(--tx-ink-2); font-weight: 500; font-size: .95rem;
    position: relative;
}
.tx-side-link .bi { font-size: 1.15rem; color: var(--tx-muted); width: 22px; text-align: center; }
.tx-side-link:hover { background: #faf9f4; }
.tx-side-link.is-active { background: var(--tx-primary-tint); color: var(--tx-ink); font-weight: 700; }
.tx-side-link.is-active .bi { color: var(--tx-primary-600); }
.tx-side-link.is-active::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    background: var(--tx-primary); border-radius: 0 3px 3px 0;
}
.tx-side-help {
    background: var(--tx-surface); border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-lg); box-shadow: var(--tx-shadow);
    padding: 22px; margin-top: 20px;
}
.tx-side-help h5 { font-weight: 800; font-size: 1.05rem; margin: 0 0 .35rem; }
.tx-side-help p { color: var(--tx-ink-soft); font-size: .88rem; margin: 0 0 1rem; }

.tx-breadcrumb { display: flex; align-items: center; gap: .5rem; color: var(--tx-muted); font-size: .9rem; margin-bottom: 1rem; }
.tx-breadcrumb a { color: var(--tx-ink-soft); }
.tx-breadcrumb a:hover { color: var(--tx-primary-600); }
.tx-breadcrumb .bi { font-size: .75rem; }
.tx-breadcrumb .is-current { color: var(--tx-ink); font-weight: 600; }

/* balloon landscape behind the header + search (fades left into the page, no box) */
.tx-cat-hero { position: relative; margin-bottom: 2rem; }
.tx-cat-hero::after {
    content: ""; position: absolute; top: -90px; bottom: -8px;
    left: 36%; right: min(0px, calc(620px - 50vw)); /* bleed to the right viewport edge */
    background: url('../images/helphome1.png') no-repeat right center;
    background-size: cover;
    /* fade on the left (into the page) and at the bottom (finish before the articles card) */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%), linear-gradient(180deg, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 50%), linear-gradient(180deg, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
    pointer-events: none; z-index: 0;
}
.tx-cat-hero > * { position: relative; z-index: 1; }
.tx-cat-hero .tx-cat-head { margin-bottom: 1.1rem; }
/* search stays narrow (left) so the landscape shows to its right, like the design */
.tx-cat-hero .tx-search { max-width: 62%; }
.tx-cat-head { display: flex; align-items: center; gap: 18px; margin-bottom: 1.3rem; }
.tx-cat-head-ico {
    width: 64px; height: 64px; border-radius: 16px; flex: 0 0 64px;
    background: var(--tx-primary-tint); color: var(--tx-primary-600);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.tx-cat-head h1 { font-weight: 800; font-size: 2.1rem; margin: 0 0 .25rem; letter-spacing: -.5px; }
.tx-cat-head p { color: var(--tx-ink-soft); margin: 0; font-size: 1rem; }

.tx-article-card {
    background: var(--tx-surface); border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-lg); box-shadow: var(--tx-shadow);
    overflow: hidden;
}
.tx-article-card .tx-article-card-head { padding: 22px 24px 6px; }
.tx-article-card .tx-article-card-head h4 { font-weight: 700; font-size: 1.2rem; margin: 0; }
.tx-article-row {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 24px; border-top: 1px solid var(--tx-border);
}
.tx-article-row:hover { background: #fcfbf6; }
.tx-article-ico {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px;
    background: var(--tx-primary-tint); color: var(--tx-primary-600);
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.tx-article-body { flex: 1; min-width: 0; }
.tx-article-body .tx-article-title { font-weight: 700; color: var(--tx-ink); font-size: 1rem; margin: 0 0 2px; }
.tx-article-body .tx-article-sub { color: var(--tx-ink-soft); font-size: .88rem; margin: 0; }
.tx-article-row .tx-chev { color: var(--tx-muted); }
.tx-article-foot { padding: 16px; text-align: center; border-top: 1px solid var(--tx-border); }
.tx-link-gold { color: var(--tx-primary-600); font-weight: 700; }
.tx-link-gold:hover { color: #a9850c; }

/* ====== Article reading page ============================================== */
.tx-article-h1 { font-weight: 800; font-size: 1.95rem; letter-spacing: -.4px; margin: 0 0 .5rem; color: var(--tx-ink); }
.tx-article-meta { color: var(--tx-muted); font-size: .9rem; margin: 0 0 1.5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tx-article-meta .bi { font-size: .9rem; }
.tx-article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--tx-muted); display: inline-block; }

.tx-prose { color: var(--tx-ink-2); font-size: 1rem; line-height: 1.7; }
.tx-prose p { margin: 0 0 1rem; }
.tx-prose h2 { font-size: 1.2rem; font-weight: 800; color: var(--tx-ink); margin: 1.7rem 0 .7rem; }
.tx-prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.tx-prose ul li { margin-bottom: .5rem; }
.tx-prose ol.tx-steps { counter-reset: step; list-style: none; padding-left: 0; margin: 0 0 1rem; }
.tx-prose ol.tx-steps li { position: relative; padding-left: 2.5rem; margin-bottom: .85rem; }
.tx-prose ol.tx-steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: -2px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--tx-primary-tint); color: var(--tx-primary-600);
    font-weight: 700; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
}

.tx-helpful { display: flex; align-items: center; gap: 12px; padding-top: 1.3rem; border-top: 1px solid var(--tx-border); margin-top: 1.7rem; }
.tx-helpful .tx-helpful-q { font-weight: 700; color: var(--tx-ink-2); margin-right: .3rem; }
.tx-thumb { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--tx-border-2); background: #fff; border-radius: 10px; padding: .5rem 1.1rem; font-weight: 600; color: var(--tx-ink-2); }
.tx-thumb:hover { background: #faf9f4; }
.tx-thumb.is-on { border-color: var(--tx-primary); background: var(--tx-primary-tint); color: #8a6d05; }

.tx-related-title { font-weight: 800; font-size: 1.15rem; margin: 1.8rem 0 1rem; color: var(--tx-ink); }

/* ====== Big "can't find" banner =========================================== */
.tx-cta-banner {
    background: var(--tx-primary-tint); border: 1px solid #f1e6bf;
    border-radius: var(--tx-radius-lg); padding: 10px 30px;
    display: flex; align-items: center; gap: 24px;
}
.tx-cta-banner .tx-cta-illu { width: 150px; flex: 0 0 150px; display: flex; align-items: center; justify-content: center; }
.tx-cta-banner .tx-cta-illu img { width: 100%; height: auto; }
.tx-cta-banner h4 { font-weight: 800; font-size: 1.3rem; margin: 0 0 .35rem; }
.tx-cta-banner p { margin: 0; color: var(--tx-ink-soft); font-size: .94rem; }
.tx-cta-banner .tx-cta-action { margin-left: auto; flex-shrink: 0; }

/* ====== Create ticket ===================================================== */
.tx-back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--tx-ink-2); font-weight: 600; margin-bottom: 1rem; }
.tx-back-link .tx-back-ico {
    width: 38px; height: 38px; border-radius: 10px; background: var(--tx-primary-tint);
    color: var(--tx-ink); display: inline-flex; align-items: center; justify-content: center;
}
.tx-page-h1 { font-weight: 800; font-size: 2.2rem; letter-spacing: -.6px; margin: 0 0 .4rem; }
.tx-page-lead { color: var(--tx-ink-soft); font-size: 1rem; margin: 0 0 1.8rem; }

.tx-form-label { font-weight: 700; color: var(--tx-ink); font-size: .96rem; margin-bottom: .5rem; display: block; }
.tx-form-label .tx-req { color: #e0432c; margin-left: 3px; }
.tx-input, .tx-select, .tx-textarea {
    width: 100%; background: #fff; border: 1px solid var(--tx-border-2);
    border-radius: 12px; padding: .85rem 1.05rem; font-size: 1rem; color: var(--tx-ink);
    outline: none; transition: border-color .12s ease, box-shadow .12s ease;
}
.tx-input::placeholder, .tx-textarea::placeholder { color: var(--tx-muted); }
.tx-input:focus, .tx-select:focus, .tx-textarea:focus {
    border-color: var(--tx-primary); box-shadow: 0 0 0 3px rgba(227,189,62,.18);
}
.tx-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%239aa0ad' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 5.5l4.8 4.8 4.8-4.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.6rem; }
.tx-textarea { min-height: 190px; resize: vertical; line-height: 1.55; }

.tx-dropzone {
    border: 1.5px dashed var(--tx-border-2);
    border-radius: 12px; background: #fff;
    padding: 30px; text-align: center; cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}
.tx-dropzone:hover { border-color: var(--tx-primary); background: #fffdf5; }
.tx-dropzone .tx-dz-ico { color: var(--tx-primary-600); font-size: 1.8rem; }
.tx-dropzone .tx-dz-main { font-weight: 700; color: var(--tx-ink); margin: .5rem 0 .2rem; }
.tx-dropzone .tx-dz-sub { color: var(--tx-muted); font-size: .86rem; }

.tx-note {
    display: flex; align-items: center; gap: 12px;
    background: var(--tx-primary-tint); border: 1px solid #f1e6bf;
    border-radius: 12px; padding: 14px 18px; color: #6e6a57; font-size: .92rem;
}
.tx-note .bi { color: var(--tx-primary-600); font-size: 1.15rem; }

.tx-card {
    background: var(--tx-surface); border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-lg); box-shadow: var(--tx-shadow);
}
.tx-card-pad { padding: 30px 32px; }

/* help side card on create-ticket */
.tx-helpcard {
    position: relative;
    border-radius: var(--tx-radius-lg); border: 1px solid #f0e6c6;
    background: #fcf6e6 url('../images/create_ticket_side.png') no-repeat center bottom;
    background-size: cover;
    padding: 26px 26px 90px; overflow: hidden;
}
.tx-helpcard-illu { text-align: center; margin: 6px 0 16px; }
.tx-helpcard-illu img { max-width: 82%; height: auto; mix-blend-mode: multiply; }
.tx-helpcard h4 { font-weight: 800; font-size: 1.3rem; margin: 0 0 .4rem; }
.tx-helpcard > p { color: var(--tx-ink-soft); font-size: .92rem; margin: 0 0 1.3rem; }
.tx-feature { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 1.1rem; }
.tx-feature-ico {
    width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
    background: rgba(255,255,255,.75); color: var(--tx-primary-600);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    border: 1px solid #f0e3b4;
}
.tx-feature h6 { font-weight: 700; margin: 0 0 2px; font-size: .98rem; }
.tx-feature p { margin: 0; color: var(--tx-ink-soft); font-size: .85rem; line-height: 1.45; }

/* ====== Conversation / My Tickets ========================================= */
/* fixed-height two-pane: each side scrolls independently */
.tx-convo { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 77px); overflow: hidden; }
.tx-ticketlist {
    border-right: 1px solid var(--tx-border);
    background: #fbfbf8;
    padding: 24px 18px;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.tx-ticketlist h2 { font-weight: 800; font-size: 1.5rem; margin: 0 0 1.1rem; }
.tx-ticket-item {
    background: #fff; border: 1px solid var(--tx-border);
    border-radius: 14px; padding: 15px 16px; margin-bottom: 14px;
    cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease;
}
.tx-ticket-item:hover { box-shadow: var(--tx-shadow); }
.tx-ticket-item.is-active { background: var(--tx-primary-tint); border-color: #f0e3b4; box-shadow: inset 3px 0 0 var(--tx-primary); }
.tx-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tx-ticket-id { font-weight: 800; color: var(--tx-ink); font-size: .95rem; }
.tx-ticket-title { font-weight: 700; color: var(--tx-ink-2); font-size: .95rem; margin: 0 0 4px; }
.tx-ticket-preview { color: var(--tx-ink-soft); font-size: .86rem; margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-ticket-time { color: var(--tx-muted); font-size: .8rem; text-align: right; }

.tx-convo-main { display: flex; flex-direction: column; background: #fff; min-height: 0; overflow: hidden; }
.tx-convo-head {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 22px 28px; border-bottom: 1px solid var(--tx-border);
}
.tx-convo-head .tx-convo-ico {
    width: 52px; height: 52px; border-radius: 14px; flex: 0 0 52px;
    background: var(--tx-primary-tint); color: var(--tx-primary-600);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.tx-convo-head .tx-convo-meta { flex: 1; min-width: 0; }
.tx-convo-head .tx-convo-id { display: flex; align-items: center; gap: 10px; }
.tx-convo-head .tx-convo-id strong { font-weight: 800; font-size: 1.15rem; }
.tx-convo-head h3 { font-weight: 700; font-size: 1.1rem; margin: 4px 0 3px; }
.tx-convo-head .tx-convo-created { color: var(--tx-muted); font-size: .85rem; }
.tx-convo-head .tx-convo-actions { display: flex; align-items: center; gap: 10px; }
.tx-kebab { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--tx-border-2); background: #fff; color: var(--tx-ink-soft); display: inline-flex; align-items: center; justify-content: center; }
.tx-mobile-back { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--tx-border-2); background: #fff; color: var(--tx-ink); align-items: center; justify-content: center; font-size: 1.25rem; flex: 0 0 40px; }

.tx-back-mini { display: inline-flex; align-items: center; gap: 8px; color: var(--tx-ink-2); font-weight: 600; padding: 16px 28px 0; }

.tx-thread {
    flex: 1; min-height: 0; overflow-y: auto; padding: 24px 28px;
    display: flex; flex-direction: column; gap: 18px;
    background-color: #fff;
    background-image: url("../images/chat-doodle.svg");
    background-repeat: repeat;
    background-size: 180px 180px;
}
.tx-msg { display: flex; align-items: flex-end; gap: 12px; }
.tx-msg--agent { flex-direction: row; justify-content: flex-start; }
.tx-msg--you   { flex-direction: row-reverse; justify-content: flex-start; }
.tx-msg-ava {
    width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.tx-msg--agent .tx-msg-ava { background: var(--tx-primary); color: #2a2300; }
.tx-msg--you   .tx-msg-ava { background: #e9eaec; color: #828794; }
.tx-bubble { max-width: 60%; border-radius: 16px; padding: 14px 18px; }
.tx-msg--you   .tx-bubble { background: #fdf3d6; }
.tx-msg--agent .tx-bubble { background: #f2f4f6; }
.tx-bubble .tx-msg-author { font-weight: 700; font-size: .95rem; margin-bottom: 5px; color: var(--tx-ink); }
.tx-bubble p { margin: 0 0 2px; color: var(--tx-ink-2); font-size: .96rem; line-height: 1.55; }
.tx-msg-meta { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--tx-muted); margin-top: 8px; }
.tx-msg--you   .tx-msg-meta { justify-content: flex-end; }
.tx-msg--agent .tx-msg-meta { justify-content: flex-start; }
.tx-msg-meta .bi-check2-all { color: #dd6a4e; font-size: .95rem; }

.tx-composer { border-top: 1px solid var(--tx-border); padding: 16px 28px; background: #fff; }
.tx-composer-form { display: flex; align-items: center; gap: 10px; }
.tx-composer-input {
    flex: 1; min-width: 0; border: 1px solid var(--tx-border-2); border-radius: 12px;
    padding: .85rem 1.1rem; font-size: 1rem; outline: none;
}
.tx-composer-input:focus { border-color: var(--tx-primary); box-shadow: 0 0 0 3px rgba(227,189,62,.16); }
.tx-composer-tools { display: flex; align-items: center; gap: 8px; }
.tx-tool { width: 42px; height: 42px; border-radius: 10px; border: none; background: transparent; color: var(--tx-ink-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.tx-tool:hover { background: #f4f4f2; color: var(--tx-ink); }
.tx-composer-note { color: var(--tx-muted); font-size: .82rem; margin: 8px 2px 0; }

/* ====== Responsive ======================================================== */
@media (max-width: 1100px) {
    .tx-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .tx-cat-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* collapse the nav into a hamburger when the links no longer fit */
@media (max-width: 860px) {
    .tx-nav-toggle { display: inline-flex; }
    .tx-nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--tx-border);
        box-shadow: 0 14px 28px rgba(17,21,28,.08);
        padding: 10px 18px 16px; gap: 4px;
        display: none; z-index: 1030;
    }
    .tx-nav-links.is-open { display: flex; }
    .tx-nav-links .tx-nav-link { padding: .7rem .5rem; }
    .tx-nav-links .tx-nav-cta { justify-content: center; width: 100%; }
}

@media (max-width: 991px) {
    .tx-login-grid { grid-template-columns: 1fr; }
    .tx-hero-art { display: none; }
    .tx-bubble { max-width: 78%; }

    /* mobile chat-app pattern: ticket list by default; tap opens the conversation */
    .tx-convo { grid-template-columns: 1fr; height: auto; overflow: visible; }
    .tx-ticketlist { border-right: 0; overflow-y: visible; height: auto; }
    .tx-convo-main { display: none; }

    .tx-convo.show-chat .tx-ticketlist { display: none; }
    .tx-convo.show-chat .tx-convo-main {
        display: flex; height: calc(100vh - 77px); overflow: hidden; min-height: 0;
    }
    .tx-convo.show-chat .tx-thread { overflow-y: auto; min-height: 0; }
    .tx-mobile-back { display: inline-flex; }
}

@media (max-width: 767px) {
    body { font-size: 14.5px; }
    .container.tx-container { padding-left: 1rem; padding-right: 1rem; }
    .tx-hero--center h1 { font-size: 2.1rem; }
    .tx-hero--left h1   { font-size: 1.9rem; }
    .tx-hero-inner, .tx-hero--compact .tx-hero-inner { padding: 36px 0 40px; }

    .tx-stat-grid { grid-template-columns: 1fr; }
    .tx-cat-grid  { grid-template-columns: 1fr; }

    /* category header: search full width, art kept subtle */
    .tx-cat-hero .tx-search { max-width: 100%; }
    .tx-cat-head h1 { font-size: 1.7rem; }
    .tx-cat-head-ico { width: 52px; height: 52px; flex: 0 0 52px; font-size: 1.4rem; }
    .tx-page-h1 { font-size: 1.8rem; }

    .tx-help-banner, .tx-cta-banner { flex-direction: column; text-align: center; align-items: center; }
    .tx-help-banner .tx-help-cta, .tx-cta-banner .tx-cta-action { margin-left: 0; }
    .tx-footer-inner { flex-direction: column; text-align: center; }

    .tx-convo-head { padding: 12px 14px; gap: 10px; align-items: center; flex-wrap: nowrap; }
    .tx-convo-head .tx-convo-ico { display: none; }
    .tx-convo-head .tx-convo-meta { flex: 1; min-width: 0; }
    .tx-convo-head .tx-convo-id { gap: 8px; }
    .tx-convo-head .tx-convo-id strong { white-space: nowrap; font-size: 1.05rem; }
    .tx-convo-head .tx-convo-created { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tx-convo-head .tx-convo-actions { flex: 0 0 auto; }
    .tx-bubble { max-width: 84%; }
    .tx-thread { padding: 18px 16px; }
    .tx-composer { padding: 14px 16px; }
}

@media (max-width: 575px) {
    .tx-hero--center h1 { font-size: 1.8rem; }
    .tx-cat-hero::after { opacity: .5; } /* keep header art from competing with the title */
    .tx-lang .tx-lang-label { display: none; }
    .tx-cta-banner .tx-cta-illu { width: 110px; flex: 0 0 110px; }
}

/* ====== Error pages (404 / 403 / 419 / 429 / 500 / 503) ==================== */
.tx-error {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 48px 20px 64px;
    background: #fff;
}
.tx-error-inner { position: relative; max-width: 580px; }
.tx-error-badge {
    width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--tx-primary-tint); color: var(--tx-primary-600);
    display: flex; align-items: center; justify-content: center; font-size: 2.1rem;
    box-shadow: 0 0 0 8px rgba(227, 189, 62, .12);
}
.tx-error-code {
    font-weight: 800; letter-spacing: -4px; line-height: .95;
    font-size: clamp(5rem, 17vw, 8.5rem);
    color: var(--tx-primary);
    margin: 0 0 .35rem;
    text-shadow: 0 2px 0 rgba(212, 171, 40, .18);
}
.tx-error-title {
    font-weight: 800; letter-spacing: -.5px; color: var(--tx-ink);
    font-size: 1.95rem; margin: 0 0 .7rem;
}
.tx-error-msg {
    color: var(--tx-ink-soft); font-size: 1.05rem; line-height: 1.6;
    margin: 0 auto 2.1rem; max-width: 470px;
}
.tx-error-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tx-error-actions .btn-tx-ghost { cursor: pointer; }
@media (max-width: 575px) {
    .tx-error-title { font-size: 1.55rem; }
    .tx-error-actions { flex-direction: column; }
    .tx-error-actions .btn-tx,
    .tx-error-actions .btn-tx-ghost { width: 100%; }
}