/* QTT PWA App Shell — native-like mobile frame */
:root {
    --qtt-app-w: 480px;
    --qtt-header-h: 5.5rem;
    --qtt-header-overlap: 0.75rem;
    --qtt-nav-h: 4.75rem;
    --qtt-fab-size: 3.85rem;
    --qtt-radius-xl: 22px;
    --qtt-radius-lg: 18px;
    --qtt-radius-md: 14px;
    --qtt-shadow-sm: 0 2px 12px rgba(15, 76, 129, 0.08);
    --qtt-shadow-md: 0 8px 32px rgba(15, 76, 129, 0.14);
    --qtt-shadow-nav: 0 -10px 40px rgba(15, 76, 129, 0.12);
    --qtt-success: #059669;
    --qtt-warning: #d97706;
    --qtt-danger: #dc2626;
    --qtt-nav-inactive: #94a3b8;
}

/* ── App frame (phone shell on desktop) ── */
body.qtt-pwa-shell {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    background: #dbe4ef;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

.qtt-app-frame {
    width: 100%;
    max-width: var(--qtt-app-w);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    position: relative;
    background: var(--pi-bg);
    box-shadow: 0 0 0 1px rgba(15, 76, 129, 0.06), 0 20px 60px rgba(15, 23, 42, 0.12);
}

@media (min-width: 520px) {
    body.qtt-pwa-shell {
        padding: 1rem 0;
    }

    .qtt-app-frame {
        min-height: calc(100dvh - 2rem);
        border-radius: 24px;
        overflow: hidden;
    }
}

/* ── Fixed header ── */
.qtt-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--qtt-app-w);
    z-index: 150;
    display: grid;
    grid-template-columns: 2.85rem 1fr auto;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--qtt-header-h);
    padding: calc(0.85rem + env(safe-area-inset-top)) 1rem 1.35rem;
    background: linear-gradient(160deg, var(--pi-primary) 0%, #0a3d6b 55%, var(--pi-primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.25);
}

@media (min-width: 520px) {
    .qtt-header {
        border-radius: 24px 24px 0 0;
    }
}

.qtt-header-btn {
    width: 2.65rem;
    height: 2.65rem;
    border: none;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.15s ease, transform 0.15s ease;
    position: relative;
}

.qtt-header-btn:active {
    transform: scale(0.94);
}

.qtt-header-btn:hover,
.qtt-header-btn:focus {
    background: rgba(255, 255, 255, 0.24);
    outline: none;
}

.qtt-header-btn--bell {
    background: rgba(255, 255, 255, 0.1);
}

.qtt-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.qtt-header-logout-form {
    margin: 0;
}

.qtt-header-btn--logout {
    width: auto;
    min-width: 2.65rem;
    padding: 0 0.55rem;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.12);
}

.qtt-header-btn-text {
    display: none;
    font-size: 0.72rem;
    font-weight: 700;
}

@media (min-width: 520px) {
    .qtt-header-btn--logout {
        padding: 0 0.75rem;
    }

    .qtt-header-btn-text {
        display: inline;
    }
}

.qtt-header-badge {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #fbbf24;
    border: 2px solid var(--pi-primary);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5);
}

.qtt-header-btn--menu,
.qtt-header-actions {
    position: relative;
    z-index: 2;
}

.qtt-header-brand {
    text-align: start;
    min-width: 0;
    padding: 0 0.15rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.qtt-header-brand--text-only {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: calc(0.85rem + env(safe-area-inset-top)) 5.25rem 1.35rem;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.qtt-header-brand--text-only .qtt-header-brand-text {
    width: 100%;
    text-align: center;
}

.qtt-header-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
    background: transparent;
}

.qtt-header-brand-text {
    min-width: 0;
}

.qtt-header-brand h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.qtt-header-brand p {
    margin: 0.2rem 0 0;
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Main content — spacer reserves header height ── */
.qtt-header-spacer {
    flex-shrink: 0;
    height: var(--qtt-header-h, 5.5rem);
}

.qtt-pwa-shell .pi-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: calc(var(--qtt-nav-h) + 2rem + env(safe-area-inset-bottom));
    background: var(--pi-bg);
}

.qtt-pwa-shell .qtt-app-main {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
    margin-top: calc(-1 * var(--qtt-header-overlap, 0.75rem));
    position: relative;
    z-index: 10;
    overflow: visible;
}

.qtt-pwa-shell .qtt-app-content {
    padding: 0 0.85rem 1.25rem;
}

.qtt-pwa-shell .pi-card {
    border-radius: var(--qtt-radius-xl);
    box-shadow: var(--qtt-shadow-md);
    border: none;
    padding: 1.15rem 1rem 1.35rem;
    position: relative;
    z-index: 2;
}

.qtt-pwa-shell .pi-card + .pi-card,
.qtt-pwa-shell .pi-card + .pi-ads-section {
    margin-top: 0.85rem;
}

/* ── Plate type pills (mockup style) ── */
.qtt-pwa-shell .pi-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 1rem 0 0;
    padding: 0;
    background: transparent;
}

.qtt-pwa-shell .pi-tab {
    padding: 0.7rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1.5px solid var(--pi-border);
    background: var(--pi-surface);
    color: var(--pi-muted);
    box-shadow: none;
    line-height: 1.35;
}

.qtt-pwa-shell .pi-tab.active {
    border-color: var(--pi-primary);
    color: var(--pi-primary);
    background: rgba(15, 76, 129, 0.04);
    box-shadow: 0 2px 10px rgba(15, 76, 129, 0.1);
}

/* ── Bottom navigation (native tab bar) ── */
.qtt-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--qtt-app-w);
    z-index: 200;
    pointer-events: none;
}

@media (min-width: 520px) {
    .qtt-bottom-nav {
        border-radius: 0 0 24px 24px;
        overflow: visible;
    }
}

.qtt-bottom-nav-inner {
    pointer-events: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    min-height: calc(var(--qtt-nav-h) + env(safe-area-inset-bottom));
    padding: 0.35rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--qtt-shadow-nav);
}

.qtt-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    min-height: 3.1rem;
    padding: 0.25rem 0.15rem;
    color: var(--qtt-nav-inactive);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.qtt-bottom-nav-item:active {
    transform: scale(0.94);
}

.qtt-bottom-nav-item.is-active {
    color: var(--pi-primary);
}

.qtt-bottom-nav-item.is-active .qtt-nav-svg {
    stroke-width: 2.1;
}

.qtt-bottom-nav-label {
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

@media (max-width: 519px) {
    .qtt-bottom-nav-label {
        display: none;
    }

    .qtt-bottom-nav-item {
        min-height: 2.65rem;
        gap: 0;
    }

    .qtt-bottom-nav-fab {
        gap: 0;
    }
}

.qtt-bottom-nav-item.is-active .qtt-bottom-nav-label,
.qtt-bottom-nav-fab.is-active .qtt-bottom-nav-label {
    color: var(--pi-primary);
    font-weight: 800;
}

.qtt-nav-svg {
    display: block;
    flex-shrink: 0;
}

.qtt-bottom-nav-img {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
    display: block;
}

/* Center FAB slot */
.qtt-bottom-nav-slot--fab {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-width: 0;
}

.qtt-bottom-nav-fab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--pi-primary);
    position: relative;
    padding-bottom: 0.1rem;
}

.qtt-bottom-nav-fab-circle {
    width: var(--qtt-fab-size);
    height: var(--qtt-fab-size);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--pi-primary-light) 0%, var(--pi-primary) 100%);
    box-shadow: 0 10px 28px rgba(15, 76, 129, 0.42);
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-top: -1.35rem;
}

.qtt-bottom-nav-fab:active .qtt-bottom-nav-fab-circle {
    transform: scale(0.94);
}

.qtt-bottom-nav-fab.is-active .qtt-bottom-nav-fab-circle {
    box-shadow: 0 12px 32px rgba(15, 76, 129, 0.5);
}

.qtt-bottom-nav-svg--fab {
    stroke-width: 2.25;
}

.qtt-bottom-nav-fab .qtt-bottom-nav-label {
    color: var(--pi-primary);
    font-weight: 800;
}

.qtt-bottom-nav-img--fab {
    width: 1.5rem;
    height: 1.5rem;
    filter: brightness(0) invert(1);
}

/* Hide legacy bottom nav when shell active */
.qtt-pwa-shell .pi-bottom-nav:not(.qtt-bottom-nav) {
    display: none;
}

.qtt-pwa-shell.pi-body.pi-has-bottom-nav .pi-page {
    padding-bottom: calc(var(--qtt-nav-h) + 2rem + env(safe-area-inset-bottom));
}

/* Neutralize legacy plate-inquiry layout rules inside PWA shell */
.qtt-pwa-shell .pi-main {
    margin-top: calc(-1 * var(--qtt-header-overlap, 0.75rem));
    padding: 0;
    max-width: none;
}

.qtt-pwa-shell .pi-card,
.qtt-pwa-shell .pi-result-card {
    scroll-margin-top: calc(var(--qtt-header-h, 5.5rem) + 0.5rem);
}

.qtt-pwa-shell .pi-result-card {
    padding-top: 1.15rem;
}

.qtt-pwa-shell .qtt-page-lead {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--pi-muted);
    line-height: 1.55;
}

@media (min-width: 481px) {
    .qtt-pwa-shell .pi-page {
        justify-content: flex-start;
        padding-top: 0;
    }
}

/* ── Drawer ── */
.qtt-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.qtt-drawer-backdrop.is-open {
    display: block;
    opacity: 1;
}

.qtt-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    z-index: 310;
    width: min(18rem, 88vw);
    max-width: 88vw;
    background: var(--pi-surface);
    box-shadow: -8px 0 40px rgba(15, 76, 129, 0.18);
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
}

.qtt-drawer.is-open {
    display: flex;
}

.qtt-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--pi-border);
}

.qtt-drawer-head strong {
    font-size: 0.95rem;
    color: var(--pi-primary);
}

.qtt-drawer-head-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--pi-primary);
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.qtt-drawer-nav {
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.qtt-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    color: var(--pi-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
}

.qtt-drawer-link:hover,
.qtt-drawer-link:focus {
    background: rgba(15, 76, 129, 0.06);
    color: var(--pi-primary);
    text-decoration: none;
    outline: none;
}

.qtt-drawer-link i {
    width: 1.25rem;
    text-align: center;
    color: var(--pi-primary-light);
}

.qtt-drawer-nav form {
    margin: 0;
    width: 100%;
}

.qtt-drawer-foot {
    margin-top: auto;
    padding: 0.65rem 1rem 0.85rem;
    border-top: 1px solid var(--pi-border);
    font-size: 0.75rem;
    color: var(--pi-muted);
    text-align: center;
}

.qtt-drawer-foot-tagline {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pi-primary);
    line-height: 1.45;
}

.qtt-drawer-enamad {
    margin: 0.55rem auto 0;
    max-width: 55px;
}

.qtt-drawer-enamad img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.qtt-drawer-foot-meta {
    margin: 0.45rem 0 0;
    font-size: 0.68rem;
    color: var(--pi-muted);
    line-height: 1.4;
}

.qtt-drawer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.06) 0%, rgba(15, 76, 129, 0.02) 100%);
    border-bottom: 1px solid var(--pi-border);
}

.qtt-drawer-user-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--pi-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.qtt-drawer-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.qtt-drawer-user-meta strong {
    font-size: 0.88rem;
    color: var(--pi-text);
}

.qtt-drawer-user-meta span {
    font-size: 0.75rem;
    color: var(--pi-muted);
}

.qtt-drawer-user-nudge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--qtt-warning);
    text-decoration: none;
    margin-top: 0.15rem;
}

.qtt-drawer-nav--user {
    flex: 0;
    padding-top: 0.25rem;
    padding-bottom: 0;
}

.qtt-drawer-divider {
    margin: 0 1rem;
    border: none;
    border-top: 1px solid var(--pi-border);
}

.qtt-drawer-link--danger {
    color: var(--qtt-danger);
}

.qtt-drawer-link--danger i {
    color: var(--qtt-danger);
}

body.qtt-drawer-open {
    overflow: hidden;
}

/* ── Inquiry / result UI ── */
.qtt-trust-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 0.78rem;
    color: #1e40af;
    margin-bottom: 0.85rem;
}

.qtt-trust-banner i {
    margin-top: 0.1rem;
}

.qtt-inquiry-card-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--pi-primary);
}

.qtt-inquiry-card-title i {
    color: #f59e0b;
}

.qtt-result-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--qtt-radius-md);
    margin-bottom: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.qtt-result-banner-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.qtt-result-banner-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.qtt-section-card {
    background: #f8fafc;
    border: 1px solid var(--pi-border);
    border-radius: var(--qtt-radius-md);
    padding: 0.85rem;
    margin-bottom: 0.85rem;
}

.qtt-section-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--pi-primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.qtt-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.qtt-status-active { background: #ecfdf5; color: var(--qtt-success); }
.qtt-status-expired { background: #fef2f2; color: var(--qtt-danger); }
.qtt-status-pending { background: #fffbeb; color: var(--qtt-warning); }

.qtt-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0.85rem 0;
}

.qtt-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid var(--pi-border);
    background: var(--pi-surface);
    color: var(--pi-text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.qtt-action-btn:hover,
.qtt-action-btn.active {
    border-color: var(--pi-primary);
    background: rgba(15, 76, 129, 0.05);
    color: var(--pi-primary);
}

.qtt-disclosure-panel {
    display: none;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--pi-border);
}

.qtt-disclosure-panel.is-open {
    display: block;
}

/* Primary inquiry button — mockup style */
.qtt-pwa-shell .pi-btn-primary {
    border-radius: 14px;
    min-height: 3rem;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.28);
}

.qtt-pwa-shell .pi-btn-primary:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .qtt-pwa-shell .qtt-app-main {
        padding-inline: 1rem;
    }
}

/* ══════════════════════════════════════════
   Inquiry page — native app experience
   ══════════════════════════════════════════ */
.qtt-inquiry-app {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qtt-inquiry-card {
    padding: 1.25rem 1rem 1.15rem;
    overflow: hidden;
}

.qtt-inquiry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pi-primary-light), var(--pi-accent, #00a896));
    border-radius: var(--qtt-radius-xl) var(--qtt-radius-xl) 0 0;
}

.qtt-inquiry-head {
    margin-bottom: 1rem;
}

.qtt-inquiry-lead {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--pi-muted);
    line-height: 1.55;
}

.qtt-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.8rem;
    font-weight: 600;
}

.qtt-inquiry-alert {
    margin-bottom: 0.75rem;
}

.qtt-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qtt-plate-tabs {
    margin: 0 0 1rem !important;
}

.qtt-plate-stage {
    margin-bottom: 0;
}

.qtt-plate-panel {
    animation: qtt-fade-in 0.22s ease;
}

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

.qtt-plate-widget {
    box-shadow: 0 12px 32px rgba(15, 76, 129, 0.18);
    transform: translateZ(0);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.qtt-plate-widget:focus-within {
    box-shadow: 0 16px 40px rgba(15, 76, 129, 0.26);
    transform: scale(1.01);
}

.qtt-plate-hint {
    margin: 0.45rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--pi-muted);
}

.qtt-inquiry-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.25rem;
    margin: 4px 0 0;
    border: none;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--pi-primary-light) 0%, var(--pi-primary) 100%);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 28px rgba(15, 76, 129, 0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qtt-inquiry-cta:hover,
.qtt-inquiry-cta:focus {
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 76, 129, 0.38);
}

.qtt-inquiry-cta.is-pressed,
.qtt-inquiry-cta:active {
    transform: scale(0.97);
    box-shadow: 0 6px 18px rgba(15, 76, 129, 0.28);
}

.qtt-inquiry-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
}

.qtt-inquiry-footnote {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--pi-muted);
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 519px) {
    .qtt-inquiry-footnote {
        font-size: 0.58rem;
    }
}

@media (max-width: 380px) {
    .qtt-inquiry-footnote {
        font-size: 0.52rem;
    }
}

.qtt-inquiry-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.06);
    color: var(--pi-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.qtt-inquiry-stats strong {
    font-weight: 800;
}

.qtt-inquiry-card .qtt-trust-banner {
    margin: 0.85rem 0 0;
    margin-bottom: 0;
}

/* Auth sheet — app-style inline panel */
.qtt-auth-sheet {
    margin: 0 0 1rem;
    border-radius: var(--qtt-radius-md);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--pi-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.qtt-auth-sheet-inner {
    padding: 1rem 0.85rem;
}

.qtt-auth-title {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--pi-primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.qtt-auth-lead {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: var(--pi-muted);
}

.qtt-app-input {
    border-radius: 12px;
    min-height: 2.85rem;
    font-size: 1rem;
}

.qtt-otp-input {
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 700;
}

.qtt-auth-btn {
    width: 100%;
    margin-top: 0.35rem;
    border-radius: 12px;
    min-height: 2.75rem;
}

/* Ads card — separate module */
.qtt-ads-card {
    padding: 1rem 0.85rem 1.1rem;
}

.qtt-ads-card-title {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--pi-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.qtt-ads-card-title i {
    color: var(--pi-primary-light);
    font-size: 0.95rem;
}

.qtt-ads-grid {
    gap: 0.5rem !important;
}

.qtt-ad-tile {
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(15, 76, 129, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qtt-ad-tile:active {
    transform: scale(0.96);
}

/* Support strip — tappable row */
.qtt-support-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--qtt-radius-md);
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    color: var(--pi-primary);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qtt-support-strip:active {
    transform: scale(0.98);
}

.qtt-support-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--pi-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.qtt-support-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.qtt-support-text strong {
    font-size: 0.88rem;
    font-weight: 800;
}

.qtt-support-text small {
    font-size: 0.78rem;
    opacity: 0.85;
}

.qtt-support-chevron {
    opacity: 0.45;
    font-size: 0.75rem;
}

.qtt-enamad {
    margin-top: 0.25rem;
}

/* Plate input focus glow */
.qtt-pwa-shell .pi-plate-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
}

.qtt-pwa-shell .pi-plate-cell-light .pi-plate-input:focus {
    background: rgba(15, 76, 129, 0.06);
}

/* ── Profile nudge banner ── */
.qtt-profile-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: var(--qtt-radius-md);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    color: #9a3412;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.qtt-profile-banner:active {
    transform: scale(0.99);
}

.qtt-profile-banner-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #fb923c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qtt-profile-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.qtt-profile-banner-text strong {
    font-size: 0.82rem;
}

.qtt-profile-banner-text small {
    font-size: 0.72rem;
    opacity: 0.85;
    line-height: 1.4;
}

.qtt-profile-banner-chevron {
    opacity: 0.5;
    font-size: 0.75rem;
}

/* ── Account pages ── */
.qtt-account-card {
    margin-bottom: 0.85rem;
}

.qtt-account-hero {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.qtt-account-avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--pi-primary-light), var(--pi-primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.qtt-account-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.qtt-account-mobile {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--pi-muted);
}

.qtt-profile-nudge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--qtt-warning);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.qtt-profile-done {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--qtt-success);
}

.qtt-account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.qtt-stat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.75rem 0.35rem;
    border-radius: var(--qtt-radius-md);
    background: rgba(15, 76, 129, 0.04);
    border: 1px solid var(--pi-border);
    text-align: center;
}

.qtt-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--pi-primary);
    line-height: 1.2;
}

.qtt-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--pi-muted);
}

.qtt-account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.qtt-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--qtt-radius-md);
    border: 1.5px solid var(--pi-border);
    background: var(--pi-surface);
    color: var(--pi-text);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

.qtt-action-btn-primary {
    background: var(--pi-primary);
    border-color: var(--pi-primary);
    color: #fff;
}

.qtt-section-title {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--pi-primary);
}

.qtt-inquiry-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qtt-inquiry-history-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--pi-border);
    font-size: 0.82rem;
}

.qtt-inquiry-history-item:last-child {
    border-bottom: none;
}

.qtt-inquiry-history-meta {
    font-size: 0.72rem;
    color: var(--pi-muted);
}

.qtt-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.qtt-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid var(--pi-border);
    background: var(--pi-surface);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.qtt-radio-pill:has(input:checked) {
    border-color: var(--pi-primary);
    background: rgba(15, 76, 129, 0.06);
    color: var(--pi-primary);
}

.qtt-back-link {
    display: block;
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pi-muted);
    text-decoration: none;
}

/* ══════════════════════════════════════════
   Result page — native app experience
   ══════════════════════════════════════════ */
.qtt-result-app {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qtt-result-card-main {
    padding: 1.15rem 1rem 1.25rem;
    overflow: hidden;
}

.qtt-result-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pi-primary-light), var(--pi-accent, #00a896));
    border-radius: var(--qtt-radius-xl) var(--qtt-radius-xl) 0 0;
}

.qtt-result-plate-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    border-radius: var(--qtt-radius-md);
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.08) 0%, rgba(15, 76, 129, 0.03) 100%);
    border: 1px solid rgba(15, 76, 129, 0.12);
}

.qtt-result-plate-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--pi-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.qtt-result-plate-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.qtt-result-plate-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pi-muted);
}

.qtt-result-plate-meta strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pi-primary);
    letter-spacing: 0.02em;
}

.qtt-result-notfound-hint {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--pi-muted);
    line-height: 1.6;
}

.qtt-section-card--driver {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.qtt-driver-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.qtt-driver-photo {
    flex-shrink: 0;
}

.qtt-driver-body {
    flex: 1;
    min-width: 0;
}

.qtt-driver-meta {
    margin-top: 0.35rem;
}

.qtt-vehicle-strip {
    margin-top: 0.15rem;
}

.qtt-vehicle-summary {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.08) 0%, rgba(15, 76, 129, 0.03) 100%);
    border: 1px solid rgba(15, 76, 129, 0.1);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pi-primary);
    text-align: center;
    line-height: 1.5;
}

.qtt-vehicle-strip--labeled .pi-vehicle-cell-labeled {
    flex-direction: column;
    gap: 0.3rem;
    padding-bottom: 0.4rem;
}

.qtt-vehicle-strip--labeled .pi-vehicle-cell-caption {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--pi-muted);
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.qtt-section-card--vehicle {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, #fff 100%);
}

.qtt-cert-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qtt-cert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--pi-border);
    font-size: 0.84rem;
}

.qtt-cert-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.qtt-cert-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--pi-muted);
    font-weight: 600;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.qtt-cert-value {
    text-align: left;
    font-weight: 700;
}

.qtt-result-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0.85rem 0 0.35rem;
}

.qtt-result-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    border: 1.5px solid var(--pi-border);
    background: var(--pi-surface);
    color: var(--pi-text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.qtt-result-action-btn:active {
    transform: scale(0.98);
}

.qtt-result-action-btn:hover,
.qtt-result-action-btn.active {
    border-color: var(--pi-primary);
    background: rgba(15, 76, 129, 0.05);
    color: var(--pi-primary);
}

.qtt-result-action-btn-primary {
    background: linear-gradient(145deg, var(--pi-primary-light), var(--pi-primary));
    border-color: var(--pi-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 76, 129, 0.22);
}

.qtt-result-action-btn-primary:hover,
.qtt-result-action-btn-primary.active {
    background: linear-gradient(145deg, var(--pi-primary), #0a3d6b);
    color: #fff;
}

.qtt-result-footer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--pi-border);
}

.qtt-result-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qtt-result-quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 0.85rem;
}

.qtt-result-quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pi-muted);
    text-decoration: none;
}

.qtt-result-quick-links a:hover {
    color: var(--pi-primary);
}

.qtt-result-app .qtt-disclosure-panel {
    background: #f8fafc;
    border: 1px solid var(--pi-border);
    border-radius: var(--qtt-radius-md);
    padding: 0.85rem;
    margin-top: 0.65rem;
    border-top: 1px solid var(--pi-border);
}

.qtt-result-app .pi-rating-block {
    text-align: center;
}

.qtt-result-app .pi-stars {
    justify-content: center;
}

.qtt-result-app .pi-star-btn {
    font-size: 1.65rem;
}

.qtt-result-app .pi-violation-block .pi-check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

@media (min-width: 400px) {
    .qtt-result-app .pi-violation-block .pi-check-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Header notifications (bell) ── */
.qtt-header-badge--count {
    width: auto;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    top: 0.35rem;
    left: 0.35rem;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
    background: #fbbf24;
    border: 2px solid var(--pi-primary);
}

.qtt-notify-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(15, 23, 42, 0.35);
}

.qtt-notify-backdrop.is-open {
    display: block;
}

.qtt-notify-panel {
    display: none;
    position: fixed;
    top: calc(var(--qtt-header-h, 5.5rem) + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 410;
    width: min(19rem, calc(var(--qtt-app-w, 480px) - 1.25rem));
    max-height: min(24rem, calc(100dvh - var(--qtt-header-h, 5.5rem) - 6rem));
    overflow: hidden;
    background: #fff;
    border-radius: var(--qtt-radius-md);
    box-shadow: 0 16px 48px rgba(15, 76, 129, 0.28);
    border: 1px solid var(--pi-border);
    flex-direction: column;
}

.qtt-notify-panel.is-open {
    display: flex;
}

.qtt-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--pi-border);
    background: #f8fafc;
}

.qtt-notify-head strong {
    font-size: 0.88rem;
    color: var(--pi-primary);
}

.qtt-notify-close {
    width: 1.85rem;
    height: 1.85rem;
    border: none;
    border-radius: 8px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--pi-primary);
    cursor: pointer;
}

.qtt-notify-list {
    overflow-y: auto;
    padding: 0.35rem 0;
}

.qtt-notify-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    text-decoration: none;
    color: var(--pi-text);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: background 0.15s ease;
}

.qtt-notify-item:last-child {
    border-bottom: none;
}

.qtt-notify-item:hover {
    background: rgba(15, 76, 129, 0.04);
    text-decoration: none;
    color: var(--pi-text);
}

.qtt-notify-item.is-unread {
    background: rgba(251, 191, 36, 0.08);
}

.qtt-notify-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.qtt-notify-item--warn .qtt-notify-icon { background: #fff7ed; color: #ea580c; }
.qtt-notify-item--danger .qtt-notify-icon { background: #fef2f2; color: #dc2626; }
.qtt-notify-item--info .qtt-notify-icon { background: #eff6ff; color: #2563eb; }
.qtt-notify-item--neutral .qtt-notify-icon { background: #f1f5f9; color: var(--pi-primary); }

.qtt-notify-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.qtt-notify-body strong {
    font-size: 0.82rem;
    line-height: 1.35;
}

.qtt-notify-body small {
    font-size: 0.72rem;
    color: var(--pi-muted);
    line-height: 1.45;
}

.qtt-notify-empty {
    padding: 1.25rem 0.85rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--pi-muted);
}

/* ── FAQ page ── */
.qtt-page-app {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qtt-page-card {
    padding: 1.15rem 1rem 1.25rem;
    overflow: hidden;
}

.qtt-page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pi-primary-light), var(--pi-accent, #00a896));
    border-radius: var(--qtt-radius-xl) var(--qtt-radius-xl) 0 0;
}

.qtt-page-section {
    margin-top: 1rem;
}

.qtt-page-section:first-of-type {
    margin-top: 0.85rem;
}

.qtt-page-section-title {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--pi-primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.qtt-page-section-lead {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: var(--pi-muted);
}

.qtt-search-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--qtt-radius-md);
    border: 1.5px solid var(--pi-border);
    background: #f8fafc;
}

.qtt-search-bar i {
    color: var(--pi-muted);
    font-size: 0.85rem;
}

.qtt-search-bar .pi-input {
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    min-height: 2rem;
}

.qtt-search-bar .pi-input:focus {
    outline: none;
    box-shadow: none;
}

.qtt-tariff-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    color: var(--pi-muted);
}

.qtt-tariff-notes {
    margin-bottom: 0.75rem;
}

.qtt-tariff-notes p {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    color: var(--pi-muted);
    line-height: 1.5;
}

.qtt-route-list {
    margin-top: 0.35rem;
}

.qtt-route-card {
    border-radius: var(--qtt-radius-md);
}

.qtt-tariff-app .qtt-price-grid-3,
.qtt-tariff-app .pi-price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.qtt-tariff-app .pi-price-chip {
    padding: 0.45rem 0.25rem;
}

.qtt-tariff-app .pi-price-chip-label {
    font-size: 0.62rem;
    line-height: 1.25;
}

.qtt-tariff-app .pi-price-chip-value {
    font-size: 0.74rem;
    font-weight: 800;
}

.pi-price-chip-sedan {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.pi-price-chip-minibus {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.qtt-form-stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.qtt-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qtt-timeline-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--pi-border);
    font-size: 0.82rem;
}

.qtt-timeline-item:last-child {
    border-bottom: none;
}

.qtt-timeline-date {
    display: block;
    font-size: 0.72rem;
    color: var(--pi-muted);
    margin-bottom: 0.15rem;
}

.qtt-timeline-item p {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: var(--pi-muted);
}

.qtt-complaint-details {
    margin: 0.85rem 0;
}

.qtt-page-featured,
.qtt-static-page-app .qtt-page-featured {
    width: 100%;
    border-radius: var(--qtt-radius-md);
    max-height: 220px;
    object-fit: cover;
    margin: 0.75rem 0 1rem;
}

.qtt-content-body {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--pi-text);
}

.qtt-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.qtt-contact-line {
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
}

.qtt-contact-line i {
    margin-left: 0.35rem;
    color: var(--pi-primary-light);
}

.qtt-ads-app .pi-ads-intro {
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--pi-muted);
    margin-bottom: 1rem;
}

.qtt-ads-app .pi-tariff-block,
.qtt-ads-app .pi-plan-table-wrap {
    border-radius: var(--qtt-radius-md);
    overflow: hidden;
}

.qtt-ads-app .pi-btn-primary,
.qtt-complaint-app .pi-btn-primary {
    border-radius: 14px;
    min-height: 3rem;
    font-weight: 800;
}

.qtt-faq-intro {
    font-size: 0.84rem;
    color: var(--pi-muted);
    line-height: 1.65;
    margin-bottom: 0.85rem;
}

/* ── FAQ page (professional help center) ── */
.qtt-faq-app {
    gap: 10px;
}

.qtt-faq-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.65rem 0.85rem;
    padding: 1.15rem 1rem;
    border-radius: var(--qtt-radius-xl);
    background: linear-gradient(145deg, #0f4c81 0%, #0a3d6b 48%, #1565a8 100%);
    color: #fff;
    box-shadow: 0 12px 36px rgba(15, 76, 129, 0.28);
    overflow: hidden;
}

.qtt-faq-hero::after {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.qtt-faq-hero-icon {
    grid-row: span 2;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.qtt-faq-hero-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    align-self: end;
}

.qtt-faq-hero-lead {
    margin: 0;
    grid-column: 2;
    font-size: 0.78rem;
    line-height: 1.6;
    opacity: 0.92;
}

.qtt-faq-hero-badge {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
}

.qtt-faq-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--qtt-radius-lg);
    background: #fff;
    border: 1.5px solid var(--pi-border);
    box-shadow: var(--qtt-shadow-sm);
}

.qtt-faq-search > i {
    color: var(--pi-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.qtt-faq-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pi-text);
    min-width: 0;
    padding: 0;
}

.qtt-faq-search-input:focus {
    outline: none;
}

.qtt-faq-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.qtt-faq-search-clear {
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--pi-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.72rem;
}

.qtt-faq-panel {
    background: #fff;
    border-radius: var(--qtt-radius-xl);
    box-shadow: var(--qtt-shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
}

.qtt-faq-list {
    display: flex;
    flex-direction: column;
}

.qtt-faq-item {
    border-bottom: 1px solid var(--pi-border);
    background: #fff;
    transition: background 0.2s ease;
}

.qtt-faq-item:last-child {
    border-bottom: none;
}

.qtt-faq-item.is-open {
    background: linear-gradient(90deg, rgba(15, 76, 129, 0.04) 0%, #fff 12%);
}

.qtt-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 1rem 0.85rem;
    border: none;
    background: transparent;
    text-align: right;
    cursor: pointer;
    font-family: inherit;
}

.qtt-faq-num {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--pi-primary);
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.qtt-faq-item.is-open .qtt-faq-num {
    background: var(--pi-primary);
    color: #fff;
}

.qtt-faq-q-text {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pi-text);
    line-height: 1.55;
    text-align: right;
}

.qtt-faq-item.is-open .qtt-faq-q-text {
    color: var(--pi-primary);
}

.qtt-faq-toggle {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--pi-border);
    color: var(--pi-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.72rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.qtt-faq-item.is-open .qtt-faq-toggle {
    transform: rotate(45deg);
    background: rgba(15, 76, 129, 0.08);
    border-color: rgba(15, 76, 129, 0.2);
    color: var(--pi-primary);
}

.qtt-faq-body {
    padding: 0 1rem 1rem 3.6rem;
    animation: qttFaqReveal 0.22s ease;
}

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

.qtt-faq-answer {
    padding: 0.85rem 0.95rem;
    border-radius: var(--qtt-radius-md);
    background: #f8fafc;
    border: 1px solid var(--pi-border);
    font-size: 0.84rem;
    color: var(--pi-text);
    line-height: 1.75;
}

.qtt-faq-empty,
.qtt-faq-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--pi-muted);
}

.qtt-faq-empty i,
.qtt-faq-empty-state i {
    font-size: 2rem;
    opacity: 0.4;
    margin-bottom: 0.5rem;
    display: block;
}

.qtt-faq-empty-state {
    background: #fff;
    border-radius: var(--qtt-radius-xl);
    box-shadow: var(--qtt-shadow-sm);
}

.qtt-faq-help {
    padding: 0.15rem 0 0.25rem;
}

.qtt-faq-help-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--pi-muted);
    text-align: center;
}

.qtt-faq-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.qtt-faq-help-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.85rem 0.35rem;
    border-radius: var(--qtt-radius-md);
    background: #fff;
    border: 1.5px solid var(--pi-border);
    box-shadow: var(--qtt-shadow-sm);
    text-decoration: none;
    color: var(--pi-text);
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.qtt-faq-help-tile:active {
    transform: scale(0.98);
}

.qtt-faq-help-tile--primary {
    background: linear-gradient(145deg, rgba(15, 76, 129, 0.06), rgba(15, 76, 129, 0.02));
    border-color: rgba(15, 76, 129, 0.18);
}

.qtt-faq-help-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--pi-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.qtt-faq-help-tile--primary .qtt-faq-help-icon {
    background: var(--pi-primary);
    color: #fff;
}

.qtt-faq-help-label {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;
}

.qtt-faq-help-tile small {
    font-size: 0.62rem;
    color: var(--pi-muted);
    line-height: 1.2;
}

@media (max-width: 360px) {
    .qtt-faq-help-grid {
        grid-template-columns: 1fr;
    }

    .qtt-faq-body {
        padding-left: 1rem;
        padding-right: 0.85rem;
    }
}
