/* Plate inquiry — professional mobile-first UI */
:root {
    --pi-primary: #0f4c81;
    --pi-primary-light: #1a6bb5;
    --pi-accent: #00a896;
    --pi-bg: #f0f4f8;
    --pi-surface: #ffffff;
    --pi-text: #1a2332;
    --pi-muted: #64748b;
    --pi-border: #e2e8f0;
    --pi-danger: #dc3545;
    --pi-success: #059669;
    --pi-radius: 14px;
    --pi-shadow: 0 8px 32px rgba(15, 76, 129, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.pi-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: var(--pi-bg);
    color: var(--pi-text);
    direction: rtl;
    line-height: 1.6;
}

.pi-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.pi-header {
    background: linear-gradient(135deg, var(--pi-primary) 0%, var(--pi-primary-light) 100%);
    color: #fff;
    padding: 1.75rem 1.25rem 2.5rem;
    text-align: center;
}

.pi-header h1 {
    margin: 0 0 .4rem;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pi-header p {
    margin: 0;
    font-size: clamp(.82rem, 2.8vw, .92rem);
    opacity: .9;
    max-width: 340px;
    margin-inline: auto;
}

.pi-main {
    flex: 1;
    margin-top: -1.25rem;
    padding: 0 1rem 1.5rem;
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
}

.pi-card {
    background: var(--pi-surface);
    border-radius: var(--pi-radius);
    box-shadow: var(--pi-shadow);
    padding: 1.25rem 1rem 1.5rem;
    border: 1px solid var(--pi-border);
}

.pi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(15, 76, 129, 0.08);
    color: var(--pi-primary);
    border: 1px solid var(--pi-border);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.pi-badge-stats strong { color: var(--pi-primary); }

.pi-auth-gate { margin: 0.85rem 0 0.35rem; }
.pi-auth-card {
    background: linear-gradient(180deg, rgba(15,76,129,0.04), transparent);
    border: 1px solid var(--pi-border);
    border-radius: 12px;
    padding: 1rem;
}
.pi-auth-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    color: var(--pi-primary);
}

.pi-alert {
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .85rem;
    margin-bottom: 1rem;
}
.pi-alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pi-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.pi-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: 1.25rem;
    background: var(--pi-bg);
    padding: .35rem;
    border-radius: 12px;
}

.pi-tab {
    border: none;
    background: transparent;
    padding: .65rem .5rem;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--pi-muted);
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.pi-tab.active {
    background: var(--pi-surface);
    color: var(--pi-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.pi-plate-label {
    text-align: center;
    font-size: .78rem;
    color: var(--pi-muted);
    margin-bottom: .65rem;
    letter-spacing: .05em;
}

.pi-plate-panel {
    margin-bottom: 1rem;
}

/* —— Plate form (wireframe style) —— */
.pi-plate {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 0.5rem;
    min-height: 72px;
    border: 2px solid #222;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.pi-plate-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ccc;
    padding: 4px;
    min-height: 68px;
}

.pi-plate-cell:first-child {
    border-left: none;
}

.pi-plate-input {
    width: 100%;
    height: 100%;
    min-height: 44px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: clamp(1rem, 4.5vw, 1.45rem);
    font-weight: 700;
    outline: none;
    font-family: inherit;
    padding: 0 4px;
}

.pi-plate-input::placeholder {
    color: #999;
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    font-weight: 600;
}

.pi-plate-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat center bottom 6px;
    padding-bottom: 14px !important;
}

.pi-plate-select option {
    color: #111;
}

/* Qeshm plate */
.pi-plate-qeshm-brand {
    flex: 0 0 28%;
    max-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    background: #fff;
    border-left: none;
}

.pi-plate-qeshm-logo {
    width: 100%;
    height: auto;
    max-height: 62px;
    object-fit: contain;
}

.pi-plate-qeshm-main {
    flex: 1 1 auto;
}

.pi-plate-qeshm-code {
    flex: 0 0 18%;
    max-width: 72px;
}

.pi-plate-qeshm {
    background: #fff;
}

.pi-plate-qeshm .pi-plate-cell-dark {
    background: #fff;
    border-left-color: #ccc;
}

.pi-plate-qeshm .pi-plate-cell-dark .pi-plate-input {
    color: #111;
}

.pi-plate-qeshm .pi-plate-cell-dark .pi-plate-input::placeholder {
    color: #999;
}

.pi-plate-cell-dark {
    background: #111;
    border-left-color: #333;
}

.pi-plate-cell-dark .pi-plate-input {
    color: #fff;
}

.pi-plate-cell-dark .pi-plate-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* National plate */
.pi-plate-nat-strip {
    flex: 0 0 46px;
    padding: 0;
    border-left: none;
    background: #003399;
}

.pi-plate-nat-strip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pi-plate-national .pi-plate-cell-light {
    flex: 0 0 14%;
    background: #fff;
}

.pi-plate-national .pi-plate-cell-letter {
    flex: 0 0 16%;
}

.pi-plate-national .pi-plate-cell-wide {
    flex: 1 1 auto;
}

.pi-plate-cell-side {
    flex: 0 0 18%;
    max-width: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
}

.pi-plate-iran-word {
    font-size: 0.62rem;
    font-weight: 800;
    color: #111;
    line-height: 1;
    font-family: inherit;
}

.pi-plate-input-region {
    min-height: 32px !important;
    font-size: clamp(0.95rem, 4vw, 1.25rem) !important;
}

.pi-mobile-verified {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--pi-success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 390px) {
    .pi-plate {
        min-height: 64px;
    }
    .pi-plate-nat-strip {
        flex: 0 0 38px;
    }
    .pi-plate-qeshm-brand {
        flex: 0 0 24%;
    }
    .pi-plate-qeshm-code,
    .pi-plate-cell-side {
        flex: 0 0 16%;
    }
}

.pi-plate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding: .75rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed var(--pi-border);
}

.pi-plate-row input,
.pi-plate-row select {
    font-size: 1rem;
    padding: .55rem .4rem;
    border: 2px solid var(--pi-border);
    border-radius: 8px;
    text-align: center;
    background: #fff;
    transition: border-color .2s;
    font-family: inherit;
    min-height: 44px;
}

.pi-plate-row input:focus,
.pi-plate-row select:focus {
    outline: none;
    border-color: var(--pi-primary-light);
}

.pi-plate-iran {
    font-size: .75rem;
    font-weight: 700;
    color: var(--pi-primary);
    white-space: nowrap;
}

.pi-field { margin-bottom: 1rem; }

.pi-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--pi-text);
    margin-bottom: .4rem;
}

.pi-input {
    width: 100%;
    font-size: 1rem;
    padding: .7rem 1rem;
    border: 2px solid var(--pi-border);
    border-radius: 10px;
    min-height: 48px;
    transition: border-color .2s;
    font-family: inherit;
}

.pi-input:focus {
    outline: none;
    border-color: var(--pi-primary-light);
    box-shadow: 0 0 0 3px rgba(26, 107, 181, .15);
}

.ltrnum { direction: ltr; text-align: center; }

.pi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    min-height: 48px;
    padding: .75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s, box-shadow .15s;
    margin-top: .5rem;
}

.pi-btn:active { transform: scale(.98); }

.pi-btn-primary {
    background: linear-gradient(135deg, var(--pi-primary) 0%, var(--pi-primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 76, 129, .35);
}

.pi-btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.pi-btn-outline {
    background: #fff;
    color: var(--pi-primary);
    border: 2px solid var(--pi-primary);
}

.pi-hint {
    text-align: center;
    font-size: .75rem;
    color: var(--pi-muted);
    margin-top: .75rem;
}

.pi-plate-part { min-width: 48px; max-width: 100px; flex: 0 1 auto; }
.pi-plate-main { flex: 1 1 120px; max-width: 140px; }
.pi-plate-sep { color: var(--pi-muted); padding: 0 2px; }

.pi-driver-photo {
    display: flex;
    justify-content: center;
    margin: 1rem 0 1.25rem;
}

.pi-driver-photo-portrait {
    margin: 0;
    flex-shrink: 0;
}

.pi-driver-photo-portrait img,
.pi-driver-photo-portrait .pi-driver-photo-placeholder {
    width: 108px;
    aspect-ratio: 3 / 4;
    height: auto;
}

.pi-driver-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid var(--pi-border);
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.12);
    background: #fff;
}

.pi-driver-photo-portrait img {
    width: 108px;
    height: auto;
    min-height: 144px;
    object-fit: cover;
    border-radius: 12px;
}

.pi-driver-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    border: 3px dashed var(--pi-border);
    background: #f8fafc;
    color: var(--pi-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.pi-result-card { padding-top: 1rem; }

.pi-result-hero {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pi-border);
}

.pi-result-hero-body { flex: 1; min-width: 0; }

.pi-driver-name {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pi-text);
    line-height: 1.35;
}

.pi-company-name {
    margin: 0 0 .65rem;
    font-size: .82rem;
    color: var(--pi-muted);
}

.pi-company-name i { margin-left: .25rem; color: var(--pi-primary-light); }

.pi-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.pi-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    font-weight: 600;
    color: var(--pi-primary);
    background: #eff6ff;
    padding: .28rem .55rem;
    border-radius: 999px;
}

.pi-meta-chip small { font-weight: 500; opacity: .85; }

.pi-meta-rating { background: #fffbeb; color: #b45309; }

.pi-vehicle-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
    background: transparent;
    border: none;
    padding: 0;
}

.pi-vehicle-cell {
    flex: 1 1 0;
    min-width: 58px;
    max-width: 84px;
    min-height: 72px;
    aspect-ratio: 1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
    border: none;
    padding: 0.5rem 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pi-vehicle-cell-year {
    aspect-ratio: auto;
    min-height: 84px;
    max-width: 96px;
    flex: 1.15 1 0;
}

.pi-year-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.pi-year-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.pi-year-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--pi-muted);
    line-height: 1.1;
}

.pi-year-val {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pi-text);
    line-height: 1.15;
}

.pi-vehicle-cell-icon {
    max-width: 44px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pi-vehicle-cell-fa {
    font-size: 1.75rem;
    color: var(--pi-primary);
}

.pi-vehicle-cell-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pi-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pi-vehicle-cell-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pi-text);
    line-height: 1.35;
    word-break: break-word;
}

.pi-vehicle-cell-empty {
    color: var(--pi-muted);
    font-size: 1rem;
}

@media (max-width: 390px) {
    .pi-vehicle-strip {
        gap: 0.5rem;
    }
    .pi-vehicle-cell {
        min-width: 50px;
        max-width: 68px;
        min-height: 58px;
        border-radius: 12px;
        padding: 0.4rem 0.2rem;
    }
    .pi-vehicle-cell-year {
        min-height: 74px;
        max-width: 76px;
    }
    .pi-year-label {
        font-size: 0.58rem;
    }
    .pi-year-val {
        font-size: 0.72rem;
    }
    .pi-vehicle-cell-icon {
        max-width: 32px;
        max-height: 32px;
    }
    .pi-vehicle-cell-fa {
        font-size: 1.35rem;
    }
    .pi-vehicle-cell-text {
        font-size: 0.72rem;
    }
}

.pi-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    border: 1px solid var(--pi-border);
    border-radius: 10px;
    padding: .25rem .55rem .25rem .35rem;
    font-size: .82rem;
}

.pi-brand-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.pi-brand-initial {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pi-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pi-model-name {
    font-weight: 600;
    color: var(--pi-text);
    font-size: .82rem;
}

.pi-result-grid {
    border: 1px solid var(--pi-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 1rem;
}

.pi-result-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    border-bottom: 1px solid var(--pi-border);
}

.pi-result-row:last-child { border-bottom: none; }

.pi-result-row > div {
    padding: .65rem .75rem;
    font-size: .88rem;
    text-align: center;
}

.pi-result-row .lbl {
    background: #f1f5f9;
    font-weight: 600;
    color: var(--pi-muted);
    font-size: .8rem;
}

.pi-result-row .lbl i { margin-left: .25rem; opacity: .75; }

.pi-status-active { color: var(--pi-success); font-weight: 700; }
.pi-status-expired { color: var(--pi-danger); font-weight: 700; }
.pi-date-expired { color: var(--pi-danger) !important; font-weight: 700; }

.pi-rating-block {
    text-align: center;
    padding: .85rem 0 1rem;
    border-top: 1px dashed var(--pi-border);
    margin-bottom: .5rem;
}

.pi-rating-label {
    margin: 0 0 .55rem;
    font-size: .82rem;
    color: var(--pi-muted);
    font-weight: 600;
}

.pi-stars {
    display: flex;
    justify-content: center;
    gap: .35rem;
    direction: ltr;
}

.pi-star-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 1.65rem;
    cursor: pointer;
    padding: .15rem;
    line-height: 1;
    transition: color .15s, transform .15s;
}

.pi-star-btn:hover,
.pi-star-btn.hover,
.pi-star-btn.active { color: #f59e0b; }

.pi-star-btn:active { transform: scale(1.1); }

.pi-star-btn:disabled { cursor: default; }

.pi-rating-msg {
    margin: .55rem 0 0;
    font-size: .78rem;
    color: var(--pi-success);
    font-weight: 600;
}

.pi-complaint {
    margin-top: .75rem;
    padding: 1rem;
    border: 1px solid var(--pi-border);
    border-radius: 12px;
    background: #fafbfc;
}

.pi-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .4rem 0;
    font-size: .88rem;
    cursor: pointer;
}

.pi-check input { width: 18px; height: 18px; flex-shrink: 0; }

#toggleComplaintBtn.active {
    background: #fef2f2;
    border-color: var(--pi-danger);
    color: var(--pi-danger);
}

@media (max-width: 390px) {
    .pi-header { padding: 1.25rem 1rem 2rem; }
    .pi-main { padding: 0 .75rem 1.25rem; }
    .pi-card { padding: 1rem .85rem 1.25rem; }
    .pi-plate-row input { max-width: 72px; }
}

@media (min-width: 481px) {
    .pi-page { justify-content: center; padding-top: 2rem; }
    .pi-header { border-radius: var(--pi-radius) var(--pi-radius) 0 0; max-width: 480px; margin-inline: auto; width: 100%; }
}

.pi-welcome-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.pi-logout-form { margin: 0; }

.pi-logout-btn {
    border: none;
    background: transparent;
    color: #b45309;
    font-weight: 700;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    font-size: 0.85rem;
}

.pi-ads-section {
    max-width: 480px;
    margin: 0.85rem auto 0;
    width: 100%;
}

.pi-ads-section-inform {
    max-width: none;
    margin: 1rem 0 0.85rem;
    padding-top: 0.25rem;
}

.pi-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.pi-ad-item,
.pi-ad-item-static {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: block;
}

.pi-ad-item img,
.pi-ad-item-static img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pi-btn-inquiry {
    margin-top: 0.15rem;
}

@media (max-width: 390px) {
    .pi-ads-grid {
        gap: 0.35rem;
    }
    .pi-ad-item,
    .pi-ad-item-static {
        border-radius: 6px;
    }
}

.pi-ads-page-link { color: var(--pi-primary); font-weight: 700; font-size: 0.88rem; }
.pi-ads-intro { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; color: var(--pi-text); }
.pi-ads-section-title { font-size: 1rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.pi-tariff-list { padding-right: 1.1rem; margin-bottom: 1rem; font-size: 0.88rem; }

/* Fixed bottom navigation */
.pi-body.pi-has-bottom-nav .pi-page {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

.pi-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
    background: var(--pi-surface);
    border-top: 1px solid var(--pi-border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 24px rgba(15, 76, 129, 0.1);
}

.pi-bottom-nav-form {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.pi-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
    padding: 0.4rem 0.2rem 0.45rem;
    color: var(--pi-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    border: none;
    background: none;
    cursor: pointer;
    min-height: 3.6rem;
    transition: color 0.15s ease;
}

.pi-bottom-nav-item:hover,
.pi-bottom-nav-item:focus {
    color: var(--pi-primary-light);
    text-decoration: none;
    outline: none;
}

.pi-bottom-nav-item.active {
    color: var(--pi-primary);
}

.pi-bottom-nav-item i {
    font-size: 1.1rem;
    line-height: 1;
}

.pi-bottom-nav-icon-img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    display: block;
}

.pi-bottom-nav-item span {
    line-height: 1.2;
    white-space: nowrap;
}

/* Route tariffs — public */
.pi-route-search-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.pi-route-search-wrap i {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pi-muted);
    pointer-events: none;
}

.pi-route-search-wrap .pi-input {
    padding-right: 2.35rem;
}

.pi-route-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.pi-route-stat {
    flex: 1;
    min-width: 5.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid var(--pi-border);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    text-align: center;
}

.pi-route-stat strong {
    display: block;
    font-size: 1.05rem;
    color: var(--pi-primary);
    line-height: 1.2;
}

.pi-route-stat span {
    font-size: 0.72rem;
    color: var(--pi-muted);
}

.pi-route-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pi-route-card {
    background: #fff;
    border: 1px solid var(--pi-border);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.06);
}

.pi-route-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.pi-route-path {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pi-text);
    flex: 1;
    min-width: 0;
}

.pi-route-path .pi-route-from,
.pi-route-path .pi-route-to {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pi-route-arrow {
    color: var(--pi-primary-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pi-route-code {
    font-size: 0.72rem;
    color: var(--pi-muted);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    white-space: nowrap;
}

.pi-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.pi-price-chip {
    border-radius: 10px;
    padding: 0.5rem 0.35rem;
    text-align: center;
    border: 1px solid transparent;
}

.pi-price-chip-day {
    background: #fffbeb;
    border-color: #fde68a;
}

.pi-price-chip-night {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.pi-price-chip-charter {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.pi-price-chip-label {
    display: block;
    font-size: 0.68rem;
    color: var(--pi-muted);
    margin-bottom: 0.15rem;
}

.pi-price-chip-label i {
    margin-left: 0.15rem;
}

.pi-price-chip-value {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pi-text);
    line-height: 1.3;
}

.pi-route-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--pi-muted);
}

.pi-route-empty i {
    font-size: 2rem;
    opacity: 0.45;
    margin-bottom: 0.5rem;
    display: block;
}

@media (max-width: 390px) {
    .pi-price-grid {
        grid-template-columns: 1fr;
    }
    .pi-route-card-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.pi-tariff-block { margin: 0 0 1.25rem; }
.pi-tariff-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}
.pi-tariff-unit { font-size: 0.75rem; color: var(--pi-muted); }
.pi-plan-table-wrap,
.pi-select-table-wrap {
    overflow: hidden;
    margin-bottom: 0.35rem;
    border: 1px solid var(--pi-border);
    border-radius: 12px;
    background: var(--pi-surface);
    box-shadow: 0 2px 10px rgba(15, 76, 129, 0.05);
}
.pi-plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.pi-plan-table th,
.pi-plan-table td {
    padding: 0.78rem 0.9rem;
    border-bottom: 1px solid var(--pi-border);
    text-align: right;
    vertical-align: middle;
}
.pi-plan-table thead th {
    background: linear-gradient(180deg, rgba(15,76,129,0.09), rgba(15,76,129,0.04));
    color: var(--pi-primary);
    font-weight: 700;
    font-size: 0.8rem;
}
.pi-plan-table tbody tr:last-child td { border-bottom: none; }
.pi-plan-table tbody tr:nth-child(even) { background: rgba(15, 76, 129, 0.025); }
.pi-plan-table .pi-col-num {
    width: 2.4rem;
    color: var(--pi-muted);
    font-size: 0.8rem;
}
.pi-plan-table .pi-col-price {
    width: 42%;
    white-space: nowrap;
    font-weight: 700;
    color: var(--pi-text);
    font-variant-numeric: tabular-nums;
}
.pi-muted { color: var(--pi-muted); font-size: 0.78rem; font-weight: 500; }
.pi-tag {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    vertical-align: middle;
}
.pi-tag-suggest { background: #ecfdf5; color: #047857; }
.pi-tag-hot { background: #fff7ed; color: #c2410c; }

.pi-plan-modes { display: flex; flex-direction: column; gap: 0.45rem; }
.pi-plan-mode {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--pi-border);
    border-radius: 10px;
    background: var(--pi-surface);
    cursor: pointer;
    font-size: 0.88rem;
}
.pi-plan-mode:has(input:checked) {
    border-color: var(--pi-primary);
    background: rgba(15, 76, 129, 0.05);
}

.pi-select-table { margin: 0.75rem 0 0.25rem; }
.pi-selectable-row { cursor: pointer; transition: background 0.15s ease; }
.pi-selectable-row:hover { background: rgba(15, 76, 129, 0.05) !important; }
.pi-selectable-row.is-selected {
    background: rgba(15, 76, 129, 0.08) !important;
    box-shadow: inset 3px 0 0 var(--pi-primary);
}
.pi-selectable-row.is-featured.is-selected {
    background: rgba(5, 150, 105, 0.08) !important;
    box-shadow: inset 3px 0 0 #059669;
}
.pi-selectable-row input[type=radio] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--pi-primary);
    cursor: pointer;
}

.pi-price-box {
    background: linear-gradient(135deg, rgba(15,76,129,0.08), rgba(15,76,129,0.03));
    border: 1px solid var(--pi-border);
    border-radius: 12px;
    padding: 0.85rem;
    text-align: center;
    font-weight: 700;
    margin: 0.85rem 0;
    color: var(--pi-primary);
    font-size: 1rem;
}
.pi-enamad { text-align: center; margin-top: 1rem; }
.pi-feedback { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--pi-border); }
