:root {
    --tqh-primary:      #19694f;
    --tqh-primary-d:    #124e3a;
    --tqh-primary-soft: #e4efe9;
    --tqh-accent:       #c2622c;
    --tqh-accent-soft:  #f6e7d8;
    --tqh-bg:           #f6f4ee;
    --tqh-card:         #ffffff;
    --tqh-fg:           #1d2b26;
    --tqh-muted:        #6c776f;
    --tqh-line:         #e7e3d8;
    --tqh-success:      #2c8a57;
    --tqh-success-soft: #e3f2e9;
    --tqh-danger:       #c0473c;
    --tqh-danger-soft:  #f8e4e2;
    --tqh-warn:         #a9760f;
    --tqh-warn-soft:    #f6edd5;
    --tqh-radius:       14px;
    --tqh-shadow:       0 1px 2px rgba(20,40,33,.05), 0 10px 30px rgba(20,40,33,.05);
    /* Bootstrap overrides */
    --bs-body-bg:        #f6f4ee;
    --bs-body-color:     #1d2b26;
    --bs-primary:        #19694f;
    --bs-primary-rgb:    25, 105, 79;
    --bs-border-color:   #e7e3d8;
    --bs-border-radius:  14px;
    --bs-font-sans-serif: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* ================================================================
   BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background-color: var(--tqh-bg);
    color: var(--tqh-fg);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; }

/* ================================================================
   PAGE WRAPPER
   ================================================================ */
.tqh-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.tqh-navbar {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid var(--tqh-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo */
.tqh-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}
.tqh-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #19694f, #2c8a67);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(25, 105, 79, .28);
    flex-shrink: 0;
}
.tqh-logo-mark svg { width: 20px; height: 20px; }
.tqh-logo-text {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.02em;
    line-height: 1.05;
    color: var(--tqh-fg);
}
.tqh-logo-text .lq { color: var(--tqh-primary); }
.tqh-logo-text small {
    display: block;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--tqh-muted);
    margin-top: 2px;
}

/* Navbar right controls */
.tqh-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Language select */
.tqh-nav-lang {
    border: 1px solid var(--tqh-line);
    border-radius: 8px;
    padding: 5px 7px;
    font-size: 12px;
    font-family: inherit;
    background: #fff;
    color: var(--tqh-fg);
    cursor: pointer;
    min-width: 56px;
}
.tqh-nav-lang:focus {
    outline: 2px solid var(--tqh-primary);
    outline-offset: 1px;
}

/* Notification bell */
.tqh-notif-btn {
    position: relative;
    background: #fff;
    border: 1px solid var(--tqh-line);
    border-radius: 9px;
    padding: 6px 10px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
}
.tqh-notif-btn:hover { background: #f1efe7; }
.tqh-notif-dot {
    position: absolute;
    top: 3px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tqh-danger);
    border: 1.5px solid #fff;
}

/* Ghost button (Sign in) */
.tqh-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--tqh-line);
    border-radius: 9px;
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--tqh-fg);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.tqh-btn-ghost:hover {
    background: #f1efe7;
    border-color: #d8d3c6;
    color: var(--tqh-fg);
}

/* Primary button (Sign up) */
.tqh-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tqh-primary);
    border: 1px solid var(--tqh-primary);
    border-radius: 9px;
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.tqh-btn-primary:hover {
    background: var(--tqh-primary-d);
    color: #fff;
}

/* ================================================================
   FLASH MESSAGES
   ================================================================ */
.tqh-flash {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}
.tqh-flash-success { background: var(--tqh-success-soft); border: 1px solid #b5dfc5; color: var(--tqh-success); }
.tqh-flash-error   { background: var(--tqh-danger-soft);  border: 1px solid #f0b5b0; color: var(--tqh-danger); }
.tqh-flash-info    { background: var(--tqh-primary-soft); border: 1px solid #b0d8cc; color: var(--tqh-primary-d); }

/* ================================================================
   GUEST VIEW INFO BAR
   ================================================================ */
.tqh-guest-bar {
    background: var(--tqh-primary-soft);
    border: 1px solid #c7e4dd;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}
.tqh-guest-bar-actions { display: flex; gap: 8px; }

/* ================================================================
   AD PLACEHOLDER
   ================================================================ */
.tqh-ad {
    border: 1px solid var(--tqh-line);
    border-radius: 12px;
    background: #f1efe7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9aa49b;
    padding: 16px;
    gap: 3px;
    position: relative;
}
.tqh-ad::before {
    content: "ADVERTISEMENT";
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 8px;
    letter-spacing: .12em;
    color: #b3bbb1;
    font-weight: 700;
}
.tqh-ad b   { color: #7c867d; font-size: 11.5px; letter-spacing: .05em; }
.tqh-ad small { font-size: 10.5px; color: #a7b0a6; }

/* ================================================================
   HERO BANNER
   ================================================================ */
.tqh-hero {
    background: linear-gradient(120deg, #14564a, #1d7a60);
    background-image: url('/images/banner.svg');
    background-size: cover;
    background-position: center 40%;
    border-radius: var(--tqh-radius);
    padding: 26px;
    color: #fff;
    margin-bottom: 22px;
}

.tqh-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tqh-hero h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 7px;
}

.tqh-hero p {
    margin: 0;
    max-width: 640px;
    opacity: .92;
    font-size: 14px;
    line-height: 1.65;
}

/* Search card inside hero */
.tqh-search-card {
    background: #fff;
    border-radius: var(--tqh-radius);
    padding: 18px;
    margin-top: 16px;
    color: var(--tqh-fg);
}

/* ================================================================
   SEGMENT CONTROL (tour / homestay tabs)
   ================================================================ */
.tqh-seg {
    display: inline-flex;
    background: #eeece9;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    margin-bottom: 14px;
}
.tqh-seg button {
    border: 0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    color: var(--tqh-muted);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.tqh-seg button.on {
    background: #fff;
    color: var(--tqh-fg);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

/* ================================================================
   SEARCH FORM GRID  -- CSS Grid auto-fit (matches demo exactly)
   ================================================================ */
.tqh-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

/* Field label */
.tqh-fld {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--tqh-muted);
    margin-bottom: 4px;
}

/* Input / Select */
.tqh-input {
    width: 100%;
    border: 1px solid var(--tqh-line);
    border-radius: 9px;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    background: #faf9f5;
    color: var(--tqh-fg);
    transition: border-color .15s, box-shadow .15s;
}
.tqh-input:focus {
    outline: none;
    border-color: var(--tqh-primary);
    box-shadow: 0 0 0 3px rgba(25, 105, 79, .12);
    background: #fff;
}
.tqh-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236c776f' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 28px;
    cursor: pointer;
}

/* Green CTA inside search card */
.tqh-search-submit {
    width: 100%;
    background: var(--tqh-primary);
    color: #fff;
    border: 0;
    border-radius: 11px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.tqh-search-submit:hover { background: var(--tqh-primary-d); }

/* Full-board pill */
.tqh-fullboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tqh-success-soft);
    color: var(--tqh-success);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ================================================================
   TRUSTED STATS STRIP  -- flex row (matches demo exactly)
   ================================================================ */
.tqh-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tqh-muted);
    font-weight: 700;
    margin-bottom: 10px;
}

.tqh-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.tqh-stat-card {
    flex: 1;
    min-width: 150px;
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    box-shadow: var(--tqh-shadow);
    padding: 16px;
}
.tqh-stat-ico { font-size: 20px; line-height: 1; }
.tqh-stat-val {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}
.tqh-stat-lbl { color: var(--tqh-muted); font-size: 12.5px; }

/* ================================================================
   FEATURED SECTION HEADER
   ================================================================ */
.tqh-sect-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.tqh-sect-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.tqh-open-link  { color: var(--tqh-muted); font-size: 13px; text-decoration: none; transition: color .15s; cursor: pointer; }
.tqh-open-link:hover { color: var(--tqh-primary); }

/* ================================================================
   FEATURED CARDS  -- 4-column CSS Grid (matches demo exactly)
   ================================================================ */
.tqh-feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.tqh-feat-card {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    box-shadow: var(--tqh-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow .2s, transform .2s;
}
.tqh-feat-card:hover {
    box-shadow: 0 4px 20px rgba(20, 40, 33, .12);
    transform: translateY(-2px);
}

/* Gradient image area */
.tqh-feat-img {
    height: 120px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    overflow: hidden;
}
.tqh-feat-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, rgba(0, 0, 0, .35));
}
.tqh-feat-lbl {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.tqh-feat-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 1;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.tqh-feat-badge-green { background: var(--tqh-success-soft); color: var(--tqh-success); }
.tqh-feat-badge-amber { background: var(--tqh-accent-soft);  color: #9a4f20; }

.tqh-feat-body { padding: 12px; }
.tqh-feat-body strong { font-size: 13px; font-weight: 700; display: block; margin-bottom: 3px; }
.tqh-feat-body span   { font-size: 12px; color: var(--tqh-muted); }

/* Gradient presets (matches demo) */
.g1 { background: linear-gradient(135deg, #1f5d4c, #3f8f72); }
.g2 { background: linear-gradient(135deg, #2c6d86, #62a7bd); }
.g3 { background: linear-gradient(135deg, #b4552a, #e0a24b); }
.g4 { background: linear-gradient(135deg, #16564b, #4fae96); }

/* ================================================================
   CONTENT POLICY SECTION
   ================================================================ */
.tqh-policy-row {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    margin-bottom: 22px;
}
.tqh-card {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    box-shadow: var(--tqh-shadow);
    padding: 16px;
}
.tqh-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}
.tqh-pill-green { background: var(--tqh-success-soft); color: var(--tqh-success); }
.tqh-pill-red   { background: var(--tqh-danger-soft);  color: var(--tqh-danger); }
.tqh-pills-wrap { display: flex; flex-wrap: wrap; gap: 7px; }

/* ================================================================
   FOOTER
   ================================================================ */
.tqh-footer {
    border-top: 1px solid var(--tqh-line);
    margin-top: 28px;
    padding: 22px 0 6px;
}

.tqh-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
}

.tqh-footer-brand { max-width: 340px; }
.tqh-footer-brand p {
    color: var(--tqh-muted);
    font-size: 12.5px;
    margin: 10px 0 0;
}

.tqh-footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 46px;
}

.tqh-footer-col-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9aa49b;
    font-weight: 700;
    margin-bottom: 8px;
}

.tqh-footer-links {
    font-size: 12.5px;
    line-height: 2;
    color: var(--tqh-muted);
}
.tqh-footer-links a {
    display: block;
    color: var(--tqh-muted);
    text-decoration: none;
    transition: color .15s;
}
.tqh-footer-links a:hover { color: var(--tqh-primary); }

.tqh-footer-bottom {
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 14px 20px;
    border-top: 1px solid var(--tqh-line);
    font-size: 11.5px;
    color: var(--tqh-muted);
}

/* ================================================================
   FORM PAGES (auth / profile)
   ================================================================ */
.tqh-auth-wrap  { max-width: 500px; margin: 0 auto; padding: 40px 20px; }
.tqh-input-wrap { margin-bottom: 14px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 992px) {
    .tqh-feat-grid      { grid-template-columns: repeat(2, 1fr); }
    .tqh-policy-row     { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .tqh-navbar         { padding: 0 14px; }
    .tqh-logo-text small { display: none; }
    .tqh-content        { padding: 16px 14px; }
    .tqh-hero           { padding: 18px; }
    .tqh-hero h1        { font-size: 22px; }
    .tqh-search-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .tqh-feat-grid      { grid-template-columns: 1fr 1fr; }
    .tqh-search-grid    { grid-template-columns: 1fr; }
    .tqh-footer-cols    { gap: 24px; }
    .tqh-nav-controls .tqh-btn-ghost { display: none; }
}


/* ================================================================
   AUTH PAGES  (login, register, OTP, password reset)
   ================================================================ */
.tqh-auth-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 60px;
}

.tqh-auth-card {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    box-shadow: var(--tqh-shadow);
    padding: 24px;
    width: 100%;
    max-width: 460px;
}

.tqh-auth-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -.02em;
}
.tqh-auth-card .tqh-auth-sub {
    font-size: 13px;
    color: var(--tqh-muted);
    margin: 0 0 16px;
}
.tqh-auth-card .tqh-auth-sub a {
    color: var(--tqh-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Role selector grid */
.tqh-role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.tqh-role-card {
    border: 2px solid var(--tqh-line);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fff;
}
.tqh-role-card:hover { border-color: var(--tqh-primary); background: var(--tqh-primary-soft); }
.tqh-role-card.active { border-color: var(--tqh-primary); background: var(--tqh-primary-soft); }
.tqh-role-card .rc-ico  { font-size: 22px; margin-bottom: 6px; }
.tqh-role-card .rc-name { font-size: 13px; font-weight: 700; color: var(--tqh-fg); }
.tqh-role-card .rc-desc { font-size: 11px; color: var(--tqh-muted); margin-top: 2px; }

/* Form field group */
.tqh-field { margin-bottom: 12px; }

/* Two-column field row */
.tqh-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.tqh-field-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

/* Policy checkbox row */
.tqh-policy-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 14px 0;
    font-size: 13px;
    color: var(--tqh-fg);
}
.tqh-policy-check input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--tqh-primary);
    cursor: pointer;
}
.tqh-policy-check a {
    color: var(--tqh-primary);
    font-weight: 600;
    text-decoration: none;
}

/* Divider with text */
.tqh-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: var(--tqh-muted);
    font-size: 12px;
}
.tqh-divider::before,
.tqh-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tqh-line);
}

/* OTP digit input */
.tqh-otp-input {
    width: 100%;
    border: 1px solid var(--tqh-line);
    border-radius: 9px;
    padding: 12px 10px;
    font-size: 26px;
    font-weight: 700;
    font-family: monospace;
    text-align: center;
    letter-spacing: .35em;
    background: #faf9f5;
    color: var(--tqh-fg);
    transition: border-color .15s, box-shadow .15s;
}
.tqh-otp-input:focus {
    outline: none;
    border-color: var(--tqh-primary);
    box-shadow: 0 0 0 3px rgba(25, 105, 79, .12);
    background: #fff;
}

/* Info / hint row */
.tqh-hint {
    background: var(--tqh-primary-soft);
    border: 1px solid #c7e4dd;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 12.5px;
    color: var(--tqh-primary-d);
    margin: 12px 0;
}

/* Password strength hint */
.tqh-pw-hint {
    font-size: 11px;
    color: var(--tqh-muted);
    margin-top: 4px;
}

/* "Block" primary button for forms */
.tqh-btn-block {
    width: 100%;
    background: var(--tqh-primary);
    color: #fff;
    border: 0;
    border-radius: 11px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
    margin-top: 14px;
}
.tqh-btn-block:hover { background: var(--tqh-primary-d); }

/* Muted text link */
.tqh-link { color: var(--tqh-primary); text-decoration: none; font-weight: 600; }
.tqh-link:hover { text-decoration: underline; }
.tqh-muted-text { color: var(--tqh-muted); font-size: 13px; text-align: center; margin-top: 14px; }

@media (max-width: 480px) {
    .tqh-role-grid    { grid-template-columns: 1fr 1fr; }
    .tqh-field-row    { grid-template-columns: 1fr; }
    .tqh-field-row-3  { grid-template-columns: 1fr 1fr; }
}


/* ================================================================
   NOTIFICATION BELL DROPDOWN
   ================================================================ */
.tqh-notif-wrap {
    position: relative;
}

.tqh-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    box-shadow: 0 8px 32px rgba(20, 40, 33, .14);
    z-index: 200;
}

.tqh-notif-dropdown.open {
    display: block;
    animation: tqh-fade-in .15s ease;
}

@keyframes tqh-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tqh-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--tqh-line);
    font-size: 14px;
}

.tqh-notif-body {
    max-height: 320px;
    overflow-y: auto;
}

.tqh-notif-empty {
    padding: 28px 14px;
    text-align: center;
}

/* Individual notification item (Phase 5+) */
.tqh-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--tqh-line);
    font-size: 13px;
    cursor: pointer;
    transition: background .12s;
}
.tqh-notif-item:hover    { background: var(--tqh-primary-soft); }
.tqh-notif-item:last-child { border-bottom: 0; }
.tqh-notif-item.unread   { background: #f4faf7; }
.tqh-notif-item .ni-ico  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.tqh-notif-item .ni-msg  { color: var(--tqh-fg); line-height: 1.45; }
.tqh-notif-item .ni-time { font-size: 11px; color: var(--tqh-muted); margin-top: 2px; }


/* ================================================================
   PILL BUTTONS (navbar Sign in / Sign up -- pill shape)
   ================================================================ */
.tqh-btn-ghost {
    border-radius: 99px;
}
.tqh-btn-primary {
    border-radius: 99px;
}

/* ================================================================
   REGISTER PAGE
   ================================================================ */

/* Top pill badge */
.tqh-badge-pill {
    display: inline-flex;
    align-items: center;
    background: var(--tqh-primary-soft);
    color: var(--tqh-primary);
    border-radius: 99px;
    padding: 4px 13px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tqh-reg-intro h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 6px;
}
.tqh-reg-intro p {
    color: var(--tqh-muted);
    font-size: 13.5px;
    margin: 0 0 22px;
}

/* 3-column top role cards */
.tqh-reg-top-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.tqh-reg-top-card {
    background: var(--tqh-card);
    border: 1.5px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    padding: 18px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.tqh-reg-top-card:hover,
.tqh-reg-top-card.active {
    border-color: var(--tqh-primary);
}
.tqh-reg-top-card.active {
    background: var(--tqh-primary-soft);
}
.tqh-reg-top-card .rtc-ico  { font-size: 26px; margin-bottom: 10px; }
.tqh-reg-top-card .rtc-name { font-size: 14px; font-weight: 700; color: var(--tqh-fg); }
.tqh-reg-top-card .rtc-meta { font-size: 12px; color: var(--tqh-muted); margin-top: 2px; }
.tqh-reg-top-card.active .rtc-meta { color: var(--tqh-primary-d); }

/* Tab bar */
.tqh-reg-tabbar {
    display: inline-flex;
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: 99px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 20px;
}
.tqh-reg-tabbar button {
    border: 0;
    border-radius: 99px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    color: var(--tqh-muted);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tqh-reg-tabbar button.on {
    background: var(--tqh-primary-soft);
    color: var(--tqh-primary);
    font-weight: 600;
}

/* Two-column register content layout */
.tqh-reg-content {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 20px;
    align-items: start;
}

/* Left form panel */
.tqh-reg-form-panel {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    padding: 22px;
}

.tqh-reg-role-hdr {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.tqh-reg-role-hdr .rh-ico  { font-size: 26px; flex-shrink: 0; }
.tqh-reg-role-hdr .rh-name { font-size: 15px; font-weight: 700; color: var(--tqh-fg); }
.tqh-reg-role-hdr .rh-desc { font-size: 12.5px; color: var(--tqh-muted); margin-top: 2px; }

/* Plan selector */
.tqh-plan-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--tqh-muted);
    margin-bottom: 8px;
}
.tqh-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.tqh-plan-card {
    border: 2px solid var(--tqh-line);
    border-radius: 11px;
    padding: 13px 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fff;
}
.tqh-plan-card.on {
    border-color: var(--tqh-primary);
    background: var(--tqh-primary-soft);
}
.tqh-plan-card:hover { border-color: var(--tqh-primary); }
.tqh-plan-name { font-size: 14px; font-weight: 700; color: var(--tqh-fg); margin-bottom: 3px; }
.tqh-plan-desc { font-size: 12px; color: var(--tqh-muted); line-height: 1.5; }

/* 2x2 form grid */
.tqh-form-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Policy checkbox */
.tqh-policy-row {
    border: 1.5px solid var(--tqh-line);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
}
.tqh-policy-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 15px;
    height: 15px;
    accent-color: var(--tqh-primary);
    cursor: pointer;
}
.tqh-policy-err {
    color: var(--tqh-danger);
    font-weight: 600;
}

/* Signup note */
.tqh-signup-note {
    font-size: 12px;
    color: var(--tqh-muted);
    margin-top: 10px;
    text-align: center;
}

/* Right sidebar */
.tqh-reg-sidebar { display: flex; flex-direction: column; gap: 12px; }

.tqh-info-card {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    padding: 16px;
}
.tqh-info-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}
.tqh-info-card p, .tqh-info-card li {
    font-size: 13px;
    color: var(--tqh-muted);
    margin: 0;
    line-height: 1.6;
}
.tqh-info-card ul {
    padding-left: 16px;
    margin: 0;
}
.tqh-info-card li { margin-bottom: 4px; }

/* "Good to know" amber card */
.tqh-info-card.amber {
    background: #fdf3ea;
    border-color: #f3d6b2;
}
.tqh-info-card.amber h4 { color: #8a4f1a; }
.tqh-info-card.amber p  { color: #7a4616; }

/* Already registered link */
.tqh-already { text-align: center; font-size: 13px; color: var(--tqh-muted); margin-top: 4px; }

/* ================================================================
   LOGIN CARD (centered, matches screenshot 4)
   ================================================================ */
.tqh-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 30px 16px 50px;
}

.tqh-login-card {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: 20px;
    box-shadow: 0 2px 40px rgba(20, 40, 33, .1);
    padding: 28px 26px;
    width: 100%;
    max-width: 490px;
}

.tqh-login-logo {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}
.tqh-login-logo .lq { color: var(--tqh-primary); }

.tqh-login-heading {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 4px;
}
.tqh-login-sub {
    text-align: center;
    font-size: 13.5px;
    color: var(--tqh-muted);
    margin: 0 0 20px;
}

/* OR divider */
.tqh-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--tqh-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
}
.tqh-or-divider::before,
.tqh-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tqh-line);
}

/* OTP input + button row */
.tqh-otp-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 10px;
}
.tqh-otp-action-btn {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: 9px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    color: var(--tqh-fg);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.tqh-otp-action-btn:hover {
    background: var(--tqh-primary-soft);
    border-color: var(--tqh-primary);
    color: var(--tqh-primary);
}

/* Phone prefix input */
.tqh-phone-wrap {
    position: relative;
}
.tqh-phone-prefix {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--tqh-fg);
    pointer-events: none;
}
.tqh-phone-input { padding-left: 38px !important; }

/* Hint box */
.tqh-hint-amber {
    background: #fffbf0;
    border: 1px solid #f5e4b0;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 12.5px;
    color: #7a5a10;
    margin-top: 14px;
}

.tqh-login-footer {
    text-align: center;
    font-size: 13px;
    color: var(--tqh-muted);
    margin-top: 16px;
}

/* Register page responsive */
@media (max-width: 900px) {
    .tqh-reg-content { grid-template-columns: 1fr; }
    .tqh-reg-sidebar { display: none; }
}
@media (max-width: 600px) {
    .tqh-reg-top-cards { grid-template-columns: 1fr; }
    .tqh-form-2col     { grid-template-columns: 1fr; }
    .tqh-plan-grid     { grid-template-columns: 1fr; }
    .tqh-reg-tabbar    { flex-wrap: wrap; border-radius: 12px; }
}


/* ================================================================
   PHASE 2 -- BIDDING FEED & COMPARE
   ================================================================ */

/* Feed 3-column layout (left sidebar 180px + center + right 260px) */
.tqh-feedcols {
    display: grid;
    grid-template-columns: 180px 1fr 260px;
    gap: 18px;
    margin-top: 14px;
    align-items: start;
}

/* Category tab bar */
.tqh-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}
.tqh-cat-tabs a {
    border: 1px solid var(--tqh-line);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--tqh-muted);
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}
.tqh-cat-tabs a:hover { border-color: var(--tqh-primary); color: var(--tqh-primary); }
.tqh-cat-tabs a.on {
    background: var(--tqh-primary-soft);
    border-color: var(--tqh-primary);
    color: var(--tqh-primary);
    font-weight: 600;
}

/* Query status card */
.tqh-query-status {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    padding: 14px;
    margin-bottom: 12px;
}

/* Locked premium banner */
.tqh-locked-banner {
    background: #fdf3ea;
    border: 1px solid #f0dcb6;
    border-radius: var(--tqh-radius);
    padding: 14px;
    margin-bottom: 12px;
    font-size: 13px;
}
.tqh-locked-banner strong { display: block; margin-bottom: 4px; font-size: 13px; }

/* Requirement card */
.tqh-req-card {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    box-shadow: var(--tqh-shadow);
    padding: 16px;
    margin-bottom: 12px;
}
.tqh-req-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.tqh-req-title { font-size: 14px; font-weight: 700; margin: 4px 0 3px; }
.tqh-req-meta  { font-size: 12.5px; color: var(--tqh-muted); }
.tqh-req-foot  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--tqh-line);
    padding-top: 10px;
    margin-top: 10px;
}

/* Rank badge (initials circle) */
.tqh-rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    margin-right: 10px;
}
.rb-g1 { background: linear-gradient(135deg, #19694f, #2c8a67); }
.rb-g2 { background: linear-gradient(135deg, #2c6d86, #62a7bd); }
.rb-g3 { background: linear-gradient(135deg, #b4552a, #e0a24b); }
.rb-g4 { background: linear-gradient(135deg, #5a3d99, #9b6cd1); }
.rb-g5 { background: linear-gradient(135deg, #1a5c48, #4fae96); }
.rb-g6 { background: linear-gradient(135deg, #8a3030, #d46b5a); }

/* Badges */
.tqh-badge-small-job {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--tqh-success-soft);
    color: var(--tqh-success);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
}
.tqh-badge-tour-type {
    display: inline-flex;
    background: var(--tqh-primary-soft);
    color: var(--tqh-primary);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
}
.tqh-badge-premium {
    background: var(--tqh-accent-soft);
    color: var(--tqh-accent);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
}

/* Bid form inside req card */
.tqh-bid-form {
    border-top: 1px solid var(--tqh-line);
    margin-top: 12px;
    padding-top: 12px;
}
.tqh-bid-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

/* Left sidebar nav */
.tqh-feed-sidenav { display: flex; flex-direction: column; gap: 4px; }
.tqh-feed-sidenav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--tqh-fg);
    text-decoration: none;
    transition: background .12s;
}
.tqh-feed-sidenav a:hover { background: var(--tqh-primary-soft); color: var(--tqh-primary); }

/* ================================================================
   COMPARE & RANK PAGE
   ================================================================ */
.tqh-compare-header {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    padding: 16px;
    margin-bottom: 16px;
}
.tqh-gst-info {
    background: var(--tqh-primary-soft);
    border: 1px solid #b0d8cc;
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 12.5px;
    color: var(--tqh-primary-d);
    margin: 12px 0 16px;
}

/* Bid cards grid (2 columns) */
.tqh-bids-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}
.tqh-bid-card {
    background: var(--tqh-card);
    border: 1.5px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    padding: 16px;
    position: relative;
}
.tqh-bid-card.best-price {
    border-color: var(--tqh-primary);
    box-shadow: 0 0 0 3px rgba(25, 105, 79, .12);
}
.tqh-bid-card .best-badge {
    position: absolute;
    top: -10px;
    left: 14px;
    background: var(--tqh-primary);
    color: #fff;
    border-radius: 99px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
}
.tqh-bid-price-row {
    margin: 10px 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.tqh-gst-breakdown {
    font-size: 11.5px;
    color: var(--tqh-muted);
    margin-top: 3px;
}
.tqh-bid-accept-btn {
    width: 100%;
    background: var(--tqh-primary);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
    margin-top: 12px;
}
.tqh-bid-accept-btn:hover { background: var(--tqh-primary-d); }

/* Trip creation form */
.tqh-trip-create-card {
    max-width: 720px;
    margin: 0 auto;
}

/* Empty state */
.tqh-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--tqh-muted);
    font-size: 13.5px;
    background: var(--tqh-card);
    border: 1px dashed var(--tqh-line);
    border-radius: var(--tqh-radius);
}

/* Responsive Phase 2 */
@media (max-width: 1000px) {
    .tqh-feedcols { grid-template-columns: 1fr; }
    .tqh-feed-sidenav { display: none; }
}
@media (max-width: 700px) {
    .tqh-bids-grid   { grid-template-columns: 1fr; }
    .tqh-bid-form-row { grid-template-columns: 1fr; }
}


/* ================================================================
   COMPARE & RANK -- RANKED BID CARDS (screenshot 3 style)
   ================================================================ */

.tqh-compare-trip-card {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    padding: 16px;
    margin: 14px 0 12px;
}
.tqh-compare-tip {
    background: #f7f6f1;
    border: 1px solid var(--tqh-line);
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 12.5px;
    color: var(--tqh-muted);
    margin-top: 10px;
}
.tqh-coupon-tip {
    background: #fdf3ea;
    border: 1px solid #f0dcb6;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 12.5px;
    color: #8a4f1a;
    margin: 10px 0 14px;
}
.tqh-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.tqh-seg {
    display: inline-flex;
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: 99px;
    padding: 3px;
    gap: 2px;
}
.tqh-seg button {
    border: 0;
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    color: var(--tqh-muted);
    cursor: pointer;
    transition: all .15s;
}
.tqh-seg button.on {
    background: var(--tqh-primary-soft);
    color: var(--tqh-primary);
    font-weight: 600;
}

/* Ranked bid cards grid */
.tqh-quotes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.tqh-quote-card {
    background: var(--tqh-card);
    border: 1.5px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    padding: 16px;
    position: relative;
}
.tqh-quote-card.best-match {
    border-color: var(--tqh-primary);
    box-shadow: 0 0 0 3px rgba(25,105,79,.1);
}
.tqh-rank-num {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    margin-right: 10px;
}
.tqh-rank-num.r1 { background: var(--tqh-primary); }
.tqh-rank-num.r2 { background: #5a3d99; }
.tqh-rank-num.r3 { background: var(--tqh-accent); }
.tqh-rank-num.rx { background: #888; }

.tqh-vendor-name { font-size: 14px; font-weight: 700; color: var(--tqh-primary-d); cursor: pointer; }
.tqh-vendor-type { font-size: 12px; color: var(--tqh-muted); margin-top: 2px; }

.tqh-bid-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #f7faf9;
    border-radius: 10px;
    padding: 10px 0;
    margin: 12px 0;
    text-align: center;
}
.tqh-bid-stat + .tqh-bid-stat {
    border-left: 1px solid var(--tqh-line);
}
.tqh-bid-stat-label { font-size: 11px; color: var(--tqh-muted); margin-bottom: 4px; }
.tqh-bid-stat-val   { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.tqh-bid-stat-sub   { font-size: 10px; color: var(--tqh-muted); margin-top: 2px; }

.tqh-bid-inclusions { font-size: 12px; color: var(--tqh-muted); margin-bottom: 10px; }

.tqh-offer-row {
    background: #fdf3ea;
    border: 1px solid #f0dcb6;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 10px;
}
.tqh-coupon-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #e8c88a;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #8a4f1a;
    margin-top: 5px;
}

.tqh-accept-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    border: 1.5px solid var(--tqh-line);
    background: #fff;
    color: var(--tqh-fg);
    margin-top: 10px;
}
.tqh-accept-btn.primary {
    background: var(--tqh-primary);
    color: #fff;
    border-color: var(--tqh-primary);
}
.tqh-accept-btn:hover { border-color: var(--tqh-primary); }
.tqh-accept-btn.primary:hover { background: var(--tqh-primary-d); }

/* ================================================================
   CHAT & BOOKING PAGE (screenshot 4 style)
   ================================================================ */

.tqh-chat-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 14px;
}
.tqh-chat-panel, .tqh-booking-panel {
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: var(--tqh-radius);
    padding: 18px;
}
.tqh-vendor-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.tqh-vendor-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    margin-right: 10px;
}
.tqh-chat-thread {
    min-height: 180px;
    max-height: 320px;
    overflow-y: auto;
    background: #f7f9fb;
    border: 1px solid var(--tqh-line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tqh-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.tqh-bubble.them {
    background: #fff;
    border: 1px solid var(--tqh-line);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}
.tqh-bubble.me {
    background: var(--tqh-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}
.tqh-bubble .tqh-flag {
    display: block;
    background: #f7e3df;
    border: 1px solid #e6b3a8;
    color: #9a3b2c;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 11px;
    margin-top: 6px;
}
.tqh-chat-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.tqh-chat-input-row input { flex: 1; }
.tqh-chat-warn {
    background: #f7e3df;
    border: 1px solid #e6b3a8;
    color: #9a3b2c;
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    margin-bottom: 8px;
    display: none;
}
.tqh-chat-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0;
    align-items: center;
}
.tqh-protection-card {
    background: var(--tqh-primary-soft);
    border: 1px solid #c7e4dd;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
    font-size: 12.5px;
}
.tqh-negotiate-card {
    background: #f7f6f1;
    border: 1px solid var(--tqh-line);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
}
.tqh-negotiate-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.tqh-negotiate-row input { flex: 1; }
.tqh-neg-status { margin-top: 10px; }
.tqh-agent-demo-card {
    border: 1px dashed var(--tqh-line);
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
}
.tqh-demo-controls {
    margin-bottom: 8px;
}
.tqh-demo-controls-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--tqh-muted);
    margin-bottom: 6px;
}
.tqh-contact-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tqh-card);
    border: 1px solid var(--tqh-line);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    margin-top: 6px;
}
.tqh-contact-chip.unlocked {
    background: var(--tqh-success-soft);
    border-color: #b0dfc4;
    color: var(--tqh-success);
}
.tqh-pay-breakdown {
    background: #f7faf9;
    border: 1px solid var(--tqh-line);
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    font-size: 12.5px;
}
.tqh-pay-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}
.tqh-pay-breakdown-row.total {
    border-top: 1px solid var(--tqh-line);
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 13.5px;
}
.tqh-pay-btn {
    width: 100%;
    background: var(--tqh-accent);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.tqh-pay-btn:hover { background: var(--tqh-accent-d, #a0511f); }

/* ================================================================
   FEED PAGE v2 -- matching screenshot 1
   ================================================================ */

/* Traveller name avatar */
.tqh-trav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    margin-right: 8px;
}
/* Offer chips in amber card */
.tqh-offer-chip {
    display: inline-flex;
    background: #fff;
    color: #9a4f20;
    border: 1px solid #f0dcb6;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
}
/* Left sidebar nav chip style */
.tqh-navmini a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--tqh-fg);
    text-decoration: none;
    margin-bottom: 3px;
    border: 1px solid transparent;
    transition: all .12s;
}
.tqh-navmini a:hover {
    background: var(--tqh-primary-soft);
    border-color: var(--tqh-primary);
    color: var(--tqh-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .tqh-chat-layout   { grid-template-columns: 1fr; }
    .tqh-booking-panel { display: none; }
    .tqh-quotes-grid   { grid-template-columns: 1fr; }
}
