/* ============================================================
   TRIPS GRID & CARDS
   ============================================================ */
.trips-section, .cabinet-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* .hero z-index — defined in layout.css (z-index: 200 for dropdown support) */

.trips-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    justify-content: center;
    gap: 20px;
}

/* ≤1070px → 2 fixed 320px columns (card never shrinks below 320) */
@media (max-width: 1070px) {
    .trips-grid {
        grid-template-columns: repeat(2, 350px);
        justify-content: center;
    }
}

.section-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* counter badge — "124 განცხადება" */
.section-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(0,114,255,0.15);
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0;
}

.trip-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}

/* Public cards — fixed height with dynamic compression hover */
/* tc-public overflow handled in main block below */
.trip-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.2s ease;
}
.trip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,114,255,0.15);
}
.trip-card:hover::before { opacity: 1; }

/* ============================================================
   CABINET
   ============================================================ */
.cabinet-container {
    background: var(--card-bg);
    padding: 34px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 22px;
}
.cabinet-header h2 { font-size: 1.4rem; font-weight: 700; }

/* ── Logout — მშვიდი outlined, hover-ზე წითელი ── */
.btn-logout {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    transition: background var(--transition-fast), color var(--transition-fast),
                border-color var(--transition-fast), transform 0.15s ease;
}
.btn-logout:hover {
    background: rgba(214,48,49,0.06);
    color: #d63031;
    border-color: rgba(214,48,49,0.3);
    transform: translateY(-1px);
}
.btn-logout:active { transform: scale(0.96); }

/* ============================================================
   MODALS
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 15, 35, 0.55);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    padding: 34px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 460px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 26px;
    cursor: pointer;
    opacity: 0.35;
    line-height: 1;
    transition: opacity var(--transition-fast), transform var(--transition);
}
.close-btn:hover {
    opacity: 0.85;
    transform: rotate(90deg) scale(1.1);
}

/* ============================================================
   AUTH TABS & FORMS
   ============================================================ */
.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    background: var(--input-bg);
    padding: 5px;
    border-radius: var(--radius-sm);
}
.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 9px;
    border-radius: 10px;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
    background: var(--white);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.form-group input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(0,0,0,0.12);
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.form-group input::placeholder { color: var(--text-muted); font-weight: 400; }
.form-group input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
body.dark-mode .form-group input {
    border-color: rgba(255,255,255,0.12);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    margin-top: 10px;
    box-shadow: 0 6px 20px var(--accent-glow);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition-fast);
    letter-spacing: 0.2px;
}
.btn-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px var(--accent-glow);
    filter: brightness(1.08);
}
.btn-submit:active { transform: scale(0.97); }

/* ── Auth Modal — Brand header ── */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}
.auth-brand-logo {
    font-size: 26px;
    animation: planeFly 3.5s ease-in-out infinite;
    display: inline-block;
}
.auth-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

/* ── forgot link ── */
.forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}
.forgot-link:hover { opacity: 1; text-decoration: underline; }

/* ============================================================
   SOCIAL AUTH
   ============================================================ */
.social-auth {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}
.social-auth p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.social-btns { display: flex; gap: 10px; }
.btn-google, .btn-apple {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition),
                background var(--transition-fast), border-color var(--transition-fast);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
/* SVG ლოგო — fixed ზომა, flex-მა არ დაამახინჯოს */
.btn-google svg, .btn-apple svg {
    flex-shrink: 0;
    display: block;
}
.btn-google:hover {
    background: #f5f8ff;
    border-color: #4285F4;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(66,133,244,0.18);
}
/* Apple — შავი ღილაკი, Apple-ის ბრენდ სტილი */
.btn-apple {
    background: #000;
    color: #fff;
    border-color: #000;
}
.btn-apple:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
body.dark-mode .btn-google { background: var(--input-bg); border-color: rgba(255,255,255,0.12); }
body.dark-mode .btn-apple  { background: #fff; color: #000; border-color: #fff; }
body.dark-mode .btn-apple:hover { background: #e8e8e8; }

/* Dark mode dropdown — მყარი მუქი ფონი */
body.dark-mode .options-list {
    background-color: #1c2233;
}
body.dark-mode .options-list div {
    background-color: #1c2233;
    color: #e6eaf5;
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--white);
    justify-content: space-evenly;
    align-items: flex-end;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.07);
}

/* ── Nav item base ── */
.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 14px;
    transition: color var(--transition-fast), transform var(--transition);
    -webkit-tap-highlight-color: transparent;
    min-width: 52px;
}
.nav-item:active { transform: scale(0.88); }
.nav-item.active { color: var(--accent); }

/* SVG icons */
.nav-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: stroke var(--transition-fast);
}

/* label */
.nav-item span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
}

/* ── Add button — highlighted center ── */
.nav-item-add {
    color: var(--accent);
    padding: 0 12px 6px;
    gap: 3px;
}
.nav-add-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: transform var(--transition), box-shadow var(--transition);
    margin-top: -16px;
}
.nav-item-add:active .nav-add-circle {
    transform: scale(0.9);
    box-shadow: 0 2px 8px var(--accent-glow);
}
.nav-icon-add {
    stroke: white;
    width: 22px;
    height: 22px;
}
.nav-item-add span {
    color: var(--accent);
    margin-top: 1px;
}

/* ── Language badge ── */
.nav-item-lang { color: var(--text-muted); }
.nav-lang-badge {
    width: 32px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.5px;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.nav-item-lang:active .nav-lang-badge {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============================================================
   SCROLLBAR — see base.css for global theme
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    header { padding: 12px 5%; }
    .hero  { padding: 36px 16px 28px; }
    .hero h1 { font-size: 1.5rem; line-height: 1.3; }
    .hero p  { font-size: 0.9rem; margin-top: 8px; }
    .search-box { margin-top: 22px; }
    .trips-section, .cabinet-section { padding: 0 14px; margin-bottom: 90px; margin-top: 24px; }
    .section-title { font-size: 17px; margin-bottom: 14px; }
    .trips-grid .trip-card { width: auto; }
    .cabinet-container { padding: 20px 16px; border-radius: var(--radius-md); }
    .cabinet-header h2 { font-size: 1.1rem; }
    .modal-content {
        padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
        border-radius: var(--radius-md);
        max-height: 85vh;
    }
}

@media (max-width: 650px) {
    header .btn-post, header .btn-login { display: none; }
    header .lang-btn { display: none; }
    .bottom-nav { display: flex; }

    /* search-box mobile — layout.css handles this (single source of truth) */
    .btn-search {
        padding: 13px;
        border-radius: var(--radius-sm);
        margin-top: 4px;
        width: 100%;
    }

    /* ფუტერი მობილურზე იმალება */
    .site-footer { display: none; }
}

/* ============================================================
   MOBILE LEGAL SLIDE-UP PANEL
   ============================================================ */
.mobile-legal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 35, 0.4);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-legal-overlay.show {
    display: block;
    opacity: 1;
}

.mobile-legal-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
    z-index: 2000;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-legal-panel.show {
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-legal-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin: 0 auto 10px;
}

.mobile-legal-panel a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    border: 1px solid var(--border);
    transition: background var(--transition-fast), transform 0.15s ease;
}
.mobile-legal-panel a:active {
    transform: scale(0.97);
    background: var(--accent);
    color: white;
}

@media (max-width: 400px) {
    .hero h1 { font-size: 1.3rem; }
    .hero p { font-size: 0.85rem; }
    .cabinet-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .cabinet-header h2 { font-size: 1rem; }
    .modal-content {
        padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
        max-height: 88vh;
        width: 95%;
    }
    .auth-tabs { gap: 4px; }
    .form-group input { padding: 11px 14px; font-size: 14px; }
}

/* ============================================================
   FOOTER
   ============================================================ */

/* main იკავებს ყველა თავისუფალ სივრცეს */
main { flex: 1; }

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.footer-logo strong { color: var(--accent); }

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 340px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    transition: background var(--transition-fast), color var(--transition-fast),
                border-color var(--transition-fast), transform var(--transition);
}
.footer-links a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* მობილურზე footer-ს bottom-nav-ის სიმაღლე ემატება */
@media (max-width: 650px) {
    .site-footer { margin-bottom: 68px; }
    .footer-links { gap: 6px; }
    .footer-links a { font-size: 12px; padding: 6px 12px; }
}

/* ============================================================
   LEGAL MODAL
   ============================================================ */
.legal-modal-content {
    max-width: 600px;
    padding: 0;
    overflow: hidden;
    /* close ღილაკი footer-ზე */
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.legal-modal-content .close-btn {
    /* header-ის ფენაზე */
    z-index: 10;
    top: 16px;
    right: 20px;
    color: inherit;
}

.legal-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 5;
}

.legal-header.legal-urgent {
    background: linear-gradient(135deg, rgba(255,118,117,0.08), rgba(214,48,49,0.05));
    border-bottom-color: rgba(214,48,49,0.15);
}

.legal-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.legal-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.legal-body {
    padding: 20px 32px 28px;
    overflow-y: auto;
    flex: 1;
}

.legal-section {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    border: 1px solid var(--border);
    transition: border-color var(--transition-fast);
}

.legal-section.legal-highlight {
    background: rgba(255,118,117,0.06);
    border-color: rgba(214,48,49,0.2);
}

.legal-section h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 7px;
    letter-spacing: 0.1px;
}

.legal-section.legal-highlight h4 {
    color: #d63031;
}

.legal-section p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* dark mode adjustments */
body.dark-mode .legal-header.legal-urgent {
    background: linear-gradient(135deg, rgba(255,118,117,0.06), rgba(214,48,49,0.04));
}
body.dark-mode .legal-section.legal-highlight {
    background: rgba(255,118,117,0.04);
    border-color: rgba(214,48,49,0.25);
}
body.dark-mode .legal-section.legal-highlight h4 {
    color: #ff7675;
}

@media (max-width: 650px) {
    .legal-header { padding: 18px 16px 14px; }
    .legal-body   { padding: 14px 16px 20px; }
    .legal-header h2 { font-size: 0.95rem; }
    .legal-icon { font-size: 22px; }
    .legal-section { padding: 12px 14px; margin-bottom: 12px; }
    .legal-section h4 { font-size: 12px; }
    .legal-section p { font-size: 12.5px; line-height: 1.55; }
    .legal-modal-content { max-height: 80vh; }
}


/* ============================================================
   NOTIFICATION BELL + PANEL
   ============================================================ */
.notif-bell {
    position: relative;
    cursor: pointer;
}
.notif-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #d63031;
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-panel {
    position: fixed;
    top: 60px;
    right: 16px;
    width: 340px;
    max-height: 400px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    transform: translateY(-10px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.34,1.3,0.64,1), opacity 0.22s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.notif-panel.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 14px;
}
.notif-panel-body {
    overflow-y: auto;
    max-height: 320px;
    padding: 8px;
}
.notif-panel-body .notif-item {
    margin-bottom: 6px;
    font-size: 12px;
}

@media (max-width: 650px) {
    .notif-panel {
        right: 8px;
        left: 8px;
        width: auto;
        top: 56px;
    }
}

/* ============================================================
   SAFETY WARNING MODAL
   ============================================================ */
.safety-warning-content {
    text-align: center;
    max-width: 420px;
}
.safety-warning-icon {
    font-size: 52px;
    margin-bottom: 10px;
}
.safety-warning-content h2 {
    margin-bottom: 12px;
    color: #e17055;
    font-size: 1.15rem;
}
.safety-warning-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ============================================================
   CONTACT LOCKED
   ============================================================ */
.contact-locked {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(108,92,231,0.06);
    border: 1px solid rgba(108,92,231,0.15);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #6c5ce7;
}

/* ============================================================
   PHOTO REPORT
   ============================================================ */
/* photo-report-card border — defined below with CSS variable */
.photo-upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.photo-upload-box {
    background: var(--input-bg);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.photo-upload-box span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.photo-upload-box .file-input {
    font-size: 11px;
    padding: 8px;
}
.photo-done {
    color: #27ae60;
    font-weight: 700;
    font-size: 12px;
}

/* ============================================================
   EDIT BUTTON
   ============================================================ */
.btn-edit {
    background: linear-gradient(135deg, #636e72, #b2bec3) !important;
    font-size: 12px !important;
}
.btn-edit:hover {
    background: linear-gradient(135deg, #2d3436, #636e72) !important;
}

@media (max-width: 650px) {
    .photo-upload-row { grid-template-columns: 1fr; }
}

/* ============================================================
   BUG FIXES
   ============================================================ */

/* Post modal — scrollable when too many fields */
#postModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Calendar inside post modal — needs to overflow parent */
#postModal .modal-content .calendar-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.97);
    opacity: 0;
    pointer-events: none;
    width: 300px;
}
#postModal .modal-content .calendar-dropdown.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* bookingItemValue now uses .price-input class — no separate override needed */

/* Fix mobile modal overflow */
@media (max-width: 650px) {
    .modal-content {
        max-height: 88vh;
        overflow-y: auto;
    }
}

/* Fix admin button above bottom nav on mobile */
@media (max-width: 650px) {
    .admin-login-section {
        bottom: 78px;
        right: 8px;
    }
}

/* ============================================================
   MONETIZATION & PREMIUM
   ============================================================ */
.fee-row span { color: var(--text-muted); font-size: 12px; }
.fee-row strong { color: var(--text-muted); font-size: 12px; }

/* Boosted / TOP trip */
.trip-boosted {
    border: 2px solid #f39c12 !important;
    box-shadow: 0 5px 25px rgba(243,156,18,0.12) !important;
    position: relative;
}
.trip-boosted::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f39c12, #fdcb6e, #f39c12);
    border-radius: 32px 32px 0 0;
}
.badge-top {
    background: linear-gradient(135deg, #f39c12, #fdcb6e) !important;
    color: white !important;
}

/* Boost button */
.btn-boost {
    background: linear-gradient(135deg, #f39c12, #fdcb6e) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(243,156,18,0.25) !important;
    font-size: 12px !important;
}

/* ============================================================
   ROUTE SUBSCRIPTION
   ============================================================ */
.subscribe-row {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}
.subscribe-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.sub-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    min-width: 80px;
}
.sub-input:focus { border-color: var(--accent); }
.btn-sub {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease;
}
.btn-sub:hover { transform: translateY(-1px); }

@media (max-width: 650px) {
    .subscribe-row { flex-direction: column; align-items: stretch; }
    .subscribe-inputs { flex-wrap: wrap; }
}

/* ============================================================
   PROHIBITED ITEMS VISUAL GRID
   ============================================================ */
.prohibited-grid-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 10px;
}
.prohib-item {
    text-align: center;
    padding: 10px 6px;
    background: rgba(214,48,49,0.06);
    border: 1px solid rgba(214,48,49,0.12);
    border-radius: 10px;
    font-size: 22px;
    line-height: 1.2;
}
.prohib-item small {
    font-size: 10px;
    font-weight: 700;
    color: #d63031;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.prohibited-check {
    border-color: rgba(214,48,49,0.2) !important;
    background: rgba(214,48,49,0.04) !important;
}
.prohibited-check span {
    color: #d63031;
}

/* ============================================================
   VISUAL STATUS TIMELINE
   ============================================================ */
.timeline-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 16px 0 12px;
    padding: 8px 0;
    overflow-x: auto;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    position: relative;
    z-index: 1;
}
.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-step.done .timeline-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 10px var(--accent-glow);
}
.timeline-step.active .timeline-dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.timeline-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}
.timeline-step.done .timeline-label { color: var(--accent); }
.timeline-step.active .timeline-label { color: var(--accent); font-weight: 800; }

.timeline-line {
    flex: 1;
    height: 3px;
    background: var(--border);
    margin-top: 18px;
    min-width: 16px;
    border-radius: 2px;
    transition: background 0.3s ease;
}
.timeline-line.done {
    background: var(--accent);
}

/* Traveler controls */
.traveler-controls {
    margin-top: 10px;
}
.btn-track {
    background: linear-gradient(135deg, #0984e3, #74b9ff) !important;
    box-shadow: 0 4px 14px rgba(9,132,227,0.25) !important;
    font-size: 13px !important;
    width: 100%;
}
.btn-track:hover {
    box-shadow: 0 8px 20px rgba(9,132,227,0.35) !important;
}

/* ============================================================
   TRANSLATED CHAT MESSAGES
   ============================================================ */
.chat-text-main {
    display: block;
    word-wrap: break-word;
}
.chat-text-original {
    display: block;
    font-size: 11px;
    opacity: 0.55;
    margin-top: 4px;
    font-style: italic;
    word-wrap: break-word;
}
.chat-bubble.theirs .chat-text-original {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 4px;
}

@media (max-width: 650px) {
    .timeline-track { gap: 0; padding: 6px 0; }
    .timeline-dot { width: 30px; height: 30px; font-size: 13px; }
    .timeline-label { font-size: 8px; }
    .timeline-line { min-width: 10px; margin-top: 15px; }
}

/* New status badge colors */
.status-with_traveler {
    background: rgba(9,132,227,0.12);
    color: #0984e3;
}
.status-arrived {
    background: rgba(108,92,231,0.12);
    color: #6c5ce7;
}

/* ============================================================
   COLOR HARMONIZATION — ყველა ფერი ლურჯ პალიტრაზე
   ============================================================ */

/* Escrow/Book button — accent ლურჯი */
.btn-escrow {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    box-shadow: 0 4px 16px var(--accent-glow) !important;
}
.btn-escrow:hover {
    box-shadow: 0 8px 24px var(--accent-glow) !important;
}

/* Chat button — მუქი ლურჯი */
.btn-chat {
    background: linear-gradient(135deg, #0056cc, #0072ff) !important;
    box-shadow: 0 4px 14px rgba(0,86,204,0.22) !important;
}

/* Propose Price — medium ლურჯი */
.btn-propose {
    background: linear-gradient(135deg, #4facfe, #0072ff) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(79,172,254,0.22) !important;
}

/* Track/Advance status — ლურჯი */
.btn-track {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    box-shadow: 0 4px 14px var(--accent-glow) !important;
}

/* Confirm delivery — ლურჯი (darker shade) */
.btn-confirm {
    background: linear-gradient(135deg, #0056cc, var(--accent)) !important;
    box-shadow: 0 4px 14px rgba(0,86,204,0.25) !important;
}

/* Rate button — ლურჯი tint */
.btn-rate {
    background: linear-gradient(135deg, #4facfe, #74b9ff) !important;
    box-shadow: 0 4px 14px rgba(79,172,254,0.22) !important;
}

/* Boost button — ლურჯი accent */
.btn-boost {
    background: linear-gradient(135deg, var(--accent), #0056cc) !important;
    color: white !important;
    box-shadow: 0 4px 14px var(--accent-glow) !important;
}

/* Boosted card — ლურჯი border (ნაცვლად ოქროსი) */
.trip-boosted {
    border: 2px solid rgba(79,172,254,0.5) !important;
    box-shadow: 0 5px 25px rgba(0,114,255,0.1) !important;
}
.trip-boosted::after {
    background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
}

/* TOP badge — ლურჯი */
.badge-top {
    background: rgba(0,114,255,0.12) !important;
    color: var(--accent) !important;
}

/* Pending Balance box — ლურჯი */
.escrow-balance-box {
    background: linear-gradient(135deg, rgba(79,172,254,0.08), rgba(0,114,255,0.05)) !important;
    border: 1.5px solid rgba(0,114,255,0.15) !important;
}
.balance-amount {
    color: var(--accent) !important;
}

/* Handover box — ლურჯი */
.handover-box {
    background: linear-gradient(135deg, rgba(79,172,254,0.08), rgba(0,114,255,0.04)) !important;
    border: 1.5px solid rgba(0,114,255,0.15) !important;
}
.handover-code-display strong {
    color: var(--accent) !important;
}

/* Escrow info banner */
.escrow-info {
    background: linear-gradient(135deg, rgba(79,172,254,0.08), rgba(0,114,255,0.04)) !important;
    border: 1px solid rgba(0,114,255,0.12) !important;
    color: var(--accent) !important;
}

/* Photo report card border */
.photo-report-card {
    border-left: 4px solid var(--primary) !important;
}

/* Booking card border */
.booking-card {
    border-left: 4px solid var(--accent) !important;
}

/* Urgentი card — ლურჯი + red tint */
.badge-urgent {
    background: rgba(0,114,255,0.1) !important;
    color: var(--accent) !important;
    animation: none;
}
.trip-urgent {
    border: 1.5px solid rgba(79,172,254,0.3) !important;
    box-shadow: 0 5px 20px rgba(0,114,255,0.08) !important;
}
.trip-urgent::before {
    background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
}

/* Safety warning icon color */
/* safety-warning h2 color — defined above with correct orange color */

/* Subscribe row inside cabinet */
.subscribe-row-cabinet {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 10px;
}
.subscription-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}
.sub-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.sub-delete-btn:hover { background: #ff7675; color: white; }

/* Sub dropdown */
.sub-select-wrapper { position: relative; flex: 1; min-width: 0; }
.sub-options-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.sub-options-list.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.sub-options-list::-webkit-scrollbar       { width: 6px; }
.sub-options-list::-webkit-scrollbar-track { background: transparent; }
.sub-options-list::-webkit-scrollbar-thumb { background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50px; border: 1.5px solid transparent; background-clip: padding-box; }
.sub-options-list::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, var(--accent), var(--primary)); background-clip: padding-box; }
.sub-options-list .option-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.sub-options-list .option-item:hover {
    background: var(--accent);
    color: white;
}

/* ============================================================
   TRAVELER INFO BOX (booking card)
   ============================================================ */
.traveler-info-box {
    margin-top: 12px;
    padding: 14px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.traveler-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 15px;
}
.traveler-info-header strong {
    color: var(--text);
    font-weight: 700;
}
.traveler-phone {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 10px;
}
.traveler-phone:hover { text-decoration: underline; }

.traveler-ticket {
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.traveler-ticket span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.ticket-thumb {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}
.ticket-thumb:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   POST FORM — MULTI-STEP WIZARD
   ============================================================ */
.post-modal-redesign {
    max-width: 520px;
    padding: 28px 28px 24px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: visible;
}

/* Step 2 — phone verify — უფრო მაღალი */
#formStep2 {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Progress Steps */
.form-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    gap: 0;
}
.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}
.form-step.active, .form-step.done { opacity: 1; }
.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-step.active .step-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}
.form-step.done .step-dot {
    background: rgba(0,114,255,0.12);
    border-color: var(--accent);
    color: var(--accent);
}
.form-step span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.form-step.active span, .form-step.done span { color: var(--accent); }
.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 6px;
    margin-bottom: 18px;
    border-radius: 2px;
    transition: background 0.3s ease;
    min-width: 30px;
}
.step-connector.done { background: var(--accent); }

/* Form page */
.form-page-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.2px;
}

/* 2-column row */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Price input */
.price-input-wrapper {
    position: relative;
}
.price-symbol {
    position: absolute;
    right: 13px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}
.price-input {
    width: 100%;
    padding: 13px 34px 13px 16px;  /* 34px right = symbol(14px) + gap(20px) */
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.price-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Nav buttons */
.step-nav-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.btn-next { flex: 1; }
.btn-back {
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); }

/* File input redesign */
.file-input-hidden {
    display: none;
}
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--input-bg);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.file-upload-label:hover {
    border-color: var(--accent);
    background: rgba(0,114,255,0.04);
}
.file-upload-icon { font-size: 22px; }
.file-upload-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.file-chosen-name {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    word-break: break-all;
}

@media (max-width: 650px) {
    .post-modal-redesign { padding: 20px 16px; }
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }
    .step-connector { min-width: 16px; }
    .form-step span { display: none; }
}

/* ============================================================
   REDESIGNED TRIP CARDS
   ============================================================ */

/* === PUBLIC CARD === */
.tc-public {
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}
/* ============================================================
   TRIP CARD v2 — Glassmorphism (matches design spec)
   ============================================================ */

/* Base card override */
.trip-card.tc-public {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0;
    min-height: 340px;
    box-shadow: var(--shadow-sm);
    overflow: visible;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}
.trip-card.tc-public:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* ── Header: badges + price ── */
.tc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 18px 0;
    gap: 8px;
    transition: padding 0.2s ease, max-height 0.2s ease;
    max-height: 40px;
    overflow: hidden;
}
.tc-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.tc-rating  { flex-shrink: 0; }

/* ── Route row ── */
.tc-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 4px;
    gap: 8px;
    min-height: 64px;
}
.tc-city {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.tc-city:last-child { text-align: right; align-items: flex-end; }
.tc-city-ka {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    transform-origin: left center;
}
.tc-city-en {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.1;
    transform-origin: left center;
}
.tc-city:last-child .tc-city-ka,
.tc-city:last-child .tc-city-en {
    transform-origin: right center;
}

/* Hover — no scale on city names */
.trip-card.tc-public:hover .tc-city-ka,
.trip-card.tc-public.tap-open .tc-city-ka,
.trip-card.tc-public:hover .tc-city-en,
.trip-card.tc-public.tap-open .tc-city-en {
    transform: none;
}
.tc-arrow {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 16px;
}
.tc-arrow-line {
    width: 10px;
    height: 1.5px;
    background: var(--border);
}

/* ── Price row ── */
.tc-price-row {
    text-align: center;
    padding: 2px 20px 10px;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    transform-origin: center center;
    transition: transform 0.2s ease, padding 0.2s ease;
    /* subtle glow behind price */
    text-shadow: 0 2px 16px rgba(0,114,255,0.18);
}
/* ₾ სიმბოლო — პატარა და elevated */
.tc-price-row .tc-lari,
.tc-price-sym {
    font-size: 0.62em;
    font-weight: 700;
    vertical-align: 0.18em;
    letter-spacing: 0;
    opacity: 0.8;
}

/* ── Info boxes ── */
.tc-info-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0 14px 14px;
    box-sizing: border-box;
    width: 100%;
}
.tc-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 0;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.tc-info-box:hover {
    background: var(--accent-glow);
    border-color: var(--primary);
}
.tc-info-icon {
    display: none;
}
.tc-info-icon svg { display: none; }
.tc-info-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.tc-info-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

/* ── Trust bar ── */
.tc-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    margin: 0 0 14px;
}
.tc-trust-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-right: 1px solid var(--border);
}
.tc-trust-seg:last-child { border-right: none; }
.tc-trust-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.tc-trust-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 3px;
}
.tc-trust-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.tc-trust-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.tc-verified-badge {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #00b894, #00cec9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tc-verified-badge svg { width: 10px; height: 10px; stroke: white; fill: none; stroke-width: 2.5; }

/* ── Actions ── */
.tc-actions {
    padding: 0 16px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tc-btn-primary {
    flex: 1;
    padding: 13px 16px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px var(--accent-glow);
    text-transform: uppercase;
}
.tc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,114,255,0.45);
}
.tc-btn-primary:active { transform: scale(0.97); }

.tc-actions-secondary { display: flex; gap: 6px; }
.tc-btn-icon {
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(180,200,255,0.5);
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.tc-btn-icon:hover {
    border-color: rgba(0,114,255,0.5);
    background: rgba(0,114,255,0.06);
    transform: scale(1.08);
}

/* chips kept for backwards compat (my trips, bookings) */
.tc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 18px 14px;
}
.tc-chip {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(180,200,255,0.4);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #8a9bb5;
    white-space: nowrap;
}
.tc-price {
    background: rgba(0,114,255,0.07);
    border-color: rgba(0,114,255,0.15);
    color: #0072ff;
}











@media (max-width: 748px) {
    /* ═══════════════════════════════════════════════════════
       SCALING APPROACH — desktop layout preserved pixel-perfect
       Grid: fixed 720px (2×350px), centered, scaled to viewport
       No reflow, no stacking, no horizontal scroll.
       ═══════════════════════════════════════════════════════ */
    .trips-section {
        overflow-x: hidden; /* clip scaled content, prevent h-scroll */
    }
    .trips-grid {
        /* ── Preserve exact desktop structure ── */
        display: grid;
        grid-template-columns: repeat(2, 350px);
        gap: 20px;
        width: 720px;

        /* ── Center + scale ── */
        position: relative;
        left: 50%;
        /* transform set per-breakpoint below; origin always top center */
        transform-origin: top center;

        /* ── Clamp: safety floor for readability at extreme widths ── */
    }

    /* ── Font/spacing clamp — proportional to scale, with readability floor ── */
    .tc-city-ka  { font-size: clamp(14px, 5vw, 18px); }
    .tc-city-en  { font-size: clamp(11px, 3.5vw, 13px); }
    .tc-info-label { font-size: clamp(8px, 2.2vw, 10px); }
    .tc-info-value { font-size: clamp(9px, 2.6vw, 12px); }
    .tc-chip     { font-size: clamp(9px, 2.4vw, 12px); }
    .card-badge  { font-size: clamp(9px, 2.2vw, 11px); }

    /* ── Hover: card translateY is a CHILD transform — composes automatically ──
       Grid: transform = translateX(-50%) scale(X)  [on .trips-grid]
       Card: transform = translateY(-4px)            [on .trip-card:hover]
       These are on separate elements → NO conflict.
       Visual hover movement = 4px × scaleX (proportionally correct). ── */
}







/* ── Scaling breakpoints: translateX(-50%) centers 720px grid, scale(X) shrinks to viewport ── */
@media (max-width: 745px) { .trips-grid { transform: translateX(-50%) scale(0.9958); } }
@media (max-width: 740px) { .trips-grid { transform: translateX(-50%) scale(0.9889); } }
@media (max-width: 735px) { .trips-grid { transform: translateX(-50%) scale(0.9819); } }
@media (max-width: 730px) { .trips-grid { transform: translateX(-50%) scale(0.975); } }
@media (max-width: 725px) { .trips-grid { transform: translateX(-50%) scale(0.9681); } }
@media (max-width: 720px) { .trips-grid { transform: translateX(-50%) scale(0.9611); } }
@media (max-width: 715px) { .trips-grid { transform: translateX(-50%) scale(0.9542); } }
@media (max-width: 710px) { .trips-grid { transform: translateX(-50%) scale(0.9472); } }
@media (max-width: 705px) { .trips-grid { transform: translateX(-50%) scale(0.9403); } }
@media (max-width: 700px) { .trips-grid { transform: translateX(-50%) scale(0.9333); } }
@media (max-width: 695px) { .trips-grid { transform: translateX(-50%) scale(0.9264); } }
@media (max-width: 690px) { .trips-grid { transform: translateX(-50%) scale(0.9194); } }
@media (max-width: 685px) { .trips-grid { transform: translateX(-50%) scale(0.9125); } }
@media (max-width: 680px) { .trips-grid { transform: translateX(-50%) scale(0.9056); } }
@media (max-width: 675px) { .trips-grid { transform: translateX(-50%) scale(0.8986); } }
@media (max-width: 670px) { .trips-grid { transform: translateX(-50%) scale(0.8917); } }
@media (max-width: 665px) { .trips-grid { transform: translateX(-50%) scale(0.8847); } }
@media (max-width: 660px) { .trips-grid { transform: translateX(-50%) scale(0.8778); } }
@media (max-width: 655px) { .trips-grid { transform: translateX(-50%) scale(0.8708); } }
@media (max-width: 650px) { .trips-grid { transform: translateX(-50%) scale(0.8639); } }
@media (max-width: 645px) { .trips-grid { transform: translateX(-50%) scale(0.8569); } }
@media (max-width: 640px) { .trips-grid { transform: translateX(-50%) scale(0.85); } }
@media (max-width: 635px) { .trips-grid { transform: translateX(-50%) scale(0.8431); } }
@media (max-width: 630px) { .trips-grid { transform: translateX(-50%) scale(0.8361); } }
@media (max-width: 625px) { .trips-grid { transform: translateX(-50%) scale(0.8292); } }
@media (max-width: 620px) { .trips-grid { transform: translateX(-50%) scale(0.8222); } }
@media (max-width: 615px) { .trips-grid { transform: translateX(-50%) scale(0.8153); } }
@media (max-width: 610px) { .trips-grid { transform: translateX(-50%) scale(0.8083); } }
@media (max-width: 605px) { .trips-grid { transform: translateX(-50%) scale(0.8014); } }
@media (max-width: 600px) { .trips-grid { transform: translateX(-50%) scale(0.7944); } }
@media (max-width: 595px) { .trips-grid { transform: translateX(-50%) scale(0.7875); } }
@media (max-width: 590px) { .trips-grid { transform: translateX(-50%) scale(0.7806); } }
@media (max-width: 585px) { .trips-grid { transform: translateX(-50%) scale(0.7736); } }
@media (max-width: 580px) { .trips-grid { transform: translateX(-50%) scale(0.7667); } }
@media (max-width: 575px) { .trips-grid { transform: translateX(-50%) scale(0.7597); } }
@media (max-width: 570px) { .trips-grid { transform: translateX(-50%) scale(0.7528); } }
@media (max-width: 565px) { .trips-grid { transform: translateX(-50%) scale(0.7458); } }
@media (max-width: 560px) { .trips-grid { transform: translateX(-50%) scale(0.7389); } }
@media (max-width: 555px) { .trips-grid { transform: translateX(-50%) scale(0.7319); } }
@media (max-width: 550px) { .trips-grid { transform: translateX(-50%) scale(0.725); } }
@media (max-width: 545px) { .trips-grid { transform: translateX(-50%) scale(0.7181); } }
@media (max-width: 540px) { .trips-grid { transform: translateX(-50%) scale(0.7111); } }
@media (max-width: 535px) { .trips-grid { transform: translateX(-50%) scale(0.7042); } }
@media (max-width: 530px) { .trips-grid { transform: translateX(-50%) scale(0.6972); } }
@media (max-width: 525px) { .trips-grid { transform: translateX(-50%) scale(0.6903); } }
@media (max-width: 520px) { .trips-grid { transform: translateX(-50%) scale(0.6833); } }
@media (max-width: 515px) { .trips-grid { transform: translateX(-50%) scale(0.6764); } }
@media (max-width: 510px) { .trips-grid { transform: translateX(-50%) scale(0.6694); } }
@media (max-width: 505px) { .trips-grid { transform: translateX(-50%) scale(0.6625); } }
@media (max-width: 500px) { .trips-grid { transform: translateX(-50%) scale(0.6556); } }
@media (max-width: 495px) { .trips-grid { transform: translateX(-50%) scale(0.6486); } }
@media (max-width: 490px) { .trips-grid { transform: translateX(-50%) scale(0.6417); } }
@media (max-width: 485px) { .trips-grid { transform: translateX(-50%) scale(0.6347); } }
@media (max-width: 480px) { .trips-grid { transform: translateX(-50%) scale(0.6278); } }
@media (max-width: 475px) { .trips-grid { transform: translateX(-50%) scale(0.6208); } }
@media (max-width: 470px) { .trips-grid { transform: translateX(-50%) scale(0.6139); } }
@media (max-width: 465px) { .trips-grid { transform: translateX(-50%) scale(0.6069); } }
@media (max-width: 460px) { .trips-grid { transform: translateX(-50%) scale(0.6); } }
@media (max-width: 455px) { .trips-grid { transform: translateX(-50%) scale(0.5931); } }
@media (max-width: 450px) { .trips-grid { transform: translateX(-50%) scale(0.5861); } }
@media (max-width: 445px) { .trips-grid { transform: translateX(-50%) scale(0.5792); } }
@media (max-width: 440px) { .trips-grid { transform: translateX(-50%) scale(0.5722); } }
@media (max-width: 435px) { .trips-grid { transform: translateX(-50%) scale(0.5653); } }
@media (max-width: 430px) { .trips-grid { transform: translateX(-50%) scale(0.5583); } }
@media (max-width: 425px) { .trips-grid { transform: translateX(-50%) scale(0.5514); } }
@media (max-width: 420px) { .trips-grid { transform: translateX(-50%) scale(0.5444); } }
@media (max-width: 415px) { .trips-grid { transform: translateX(-50%) scale(0.5375); } }
@media (max-width: 410px) { .trips-grid { transform: translateX(-50%) scale(0.5306); } }
@media (max-width: 405px) { .trips-grid { transform: translateX(-50%) scale(0.5236); } }
@media (max-width: 400px) { .trips-grid { transform: translateX(-50%) scale(0.5167); } }
@media (max-width: 395px) { .trips-grid { transform: translateX(-50%) scale(0.5097); } }
@media (max-width: 390px) { .trips-grid { transform: translateX(-50%) scale(0.5028); } }
@media (max-width: 385px) { .trips-grid { transform: translateX(-50%) scale(0.4958); } }
@media (max-width: 380px) { .trips-grid { transform: translateX(-50%) scale(0.4889); } }
@media (max-width: 375px) { .trips-grid { transform: translateX(-50%) scale(0.4819); } }
@media (max-width: 370px) { .trips-grid { transform: translateX(-50%) scale(0.475); } }
@media (max-width: 365px) { .trips-grid { transform: translateX(-50%) scale(0.4681); } }
@media (max-width: 360px) { .trips-grid { transform: translateX(-50%) scale(0.4611); } }
@media (max-width: 355px) { .trips-grid { transform: translateX(-50%) scale(0.4542); } }
@media (max-width: 350px) { .trips-grid { transform: translateX(-50%) scale(0.4472); } }
@media (max-width: 345px) { .trips-grid { transform: translateX(-50%) scale(0.4403); } }
@media (max-width: 340px) { .trips-grid { transform: translateX(-50%) scale(0.4333); } }
@media (max-width: 335px) { .trips-grid { transform: translateX(-50%) scale(0.4264); } }
@media (max-width: 330px) { .trips-grid { transform: translateX(-50%) scale(0.4194); } }
@media (max-width: 325px) { .trips-grid { transform: translateX(-50%) scale(0.4125); } }
@media (max-width: 320px) { .trips-grid { transform: translateX(-50%) scale(0.4056); } }
@media (max-width: 315px) { .trips-grid { transform: translateX(-50%) scale(0.3986); } }
@media (max-width: 310px) { .trips-grid { transform: translateX(-50%) scale(0.3917); } }
@media (max-width: 305px) { .trips-grid { transform: translateX(-50%) scale(0.3847); } }
@media (max-width: 300px) { .trips-grid { transform: translateX(-50%) scale(0.3778); } }
@media (max-width: 295px) { .trips-grid { transform: translateX(-50%) scale(0.3708); } }
@media (max-width: 290px) { .trips-grid { transform: translateX(-50%) scale(0.3639); } }
@media (max-width: 285px) { .trips-grid { transform: translateX(-50%) scale(0.3569); } }
@media (max-width: 280px) { .trips-grid { transform: translateX(-50%) scale(0.35); } }
@media (max-width: 275px) { .trips-grid { transform: translateX(-50%) scale(0.3431); } }
@media (max-width: 270px) { .trips-grid { transform: translateX(-50%) scale(0.3361); } }
@media (max-width: 265px) { .trips-grid { transform: translateX(-50%) scale(0.3292); } }
@media (max-width: 260px) { .trips-grid { transform: translateX(-50%) scale(0.3222); } }
@media (max-width: 255px) { .trips-grid { transform: translateX(-50%) scale(0.3153); } }
@media (max-width: 250px) { .trips-grid { transform: translateX(-50%) scale(0.3083); } }

/* === CABINET CARD === */
.tc-mine {
    padding: 18px;
    position: relative;
    border-left: 3px solid var(--accent) !important;
}
.tc-delete-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity var(--transition-fast), transform 0.15s ease;
    padding: 4px;
    border-radius: 6px;
}
.tc-delete-btn:hover { opacity: 1; transform: scale(1.1); }

.tc-route-compact {
    padding: 10px 0 8px;
    justify-content: flex-start;
    gap: 10px;
}
.tc-city-sm {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.tc-arrow-sm { font-size: 14px; }

.tc-sender-info {
    padding: 8px 12px;
    background: var(--input-bg);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 8px;
}
.tc-btn-secondary {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.tc-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.tc-btn-boost {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    border: 1px solid rgba(0,114,255,0.2);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,114,255,0.1), rgba(79,172,254,0.08));
    color: var(--accent);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.tc-btn-boost:hover { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; border-color: transparent; }
.tc-btn-rate {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4facfe, #74b9ff);
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 650px) {
    .tc-city { font-size: 13px; }
    .tc-arrow-line { width: 14px; }
    .tc-chips { gap: 4px; }
    .tc-chip { font-size: 11px; padding: 3px 8px; }
}

/* ============================================================
   NOTIFICATION IMPROVEMENTS
   ============================================================ */
.notif-unread {
    border-left: 3px solid var(--accent) !important;
    background: rgba(0,114,255,0.04) !important;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    border: 1px solid var(--border);
}
.notif-item-content {
    flex: 1;
    font-size: 12.5px;
    line-height: 1.5;
}
.notif-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background var(--transition-fast), color var(--transition-fast);
    line-height: 1;
}
.notif-delete-btn:hover { background: #ff7675; color: white; }
.notif-clear-all {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.notif-clear-all:hover { border-color: #ff7675; color: #d63031; }
/* ============================================================
   TOAST NOTIFICATION SYSTEM
   ============================================================ */
.toast-container {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
    width: calc(100vw - 40px);
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn 0.32s cubic-bezier(0.34, 1.3, 0.64, 1) both;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.toast.removing { animation: toastOut 0.26s ease forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(110%); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0);    max-height: 100px; margin-bottom: 0; }
    to   { opacity: 0; transform: translateX(110%); max-height: 0;     margin-bottom: -10px; }
}
.toast::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}
.toast-success::before { background: #27ae60; }
.toast-error::before   { background: #d63031; }
.toast-warning::before { background: #f39c12; }
.toast-info::before    { background: var(--accent); }
.toast-icon { font-size: 20px; flex-shrink: 0; line-height: 1.3; }
.toast-body { flex: 1; min-width: 0; }
.toast-msg  { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.45; word-break: break-word; }
.toast-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 16px; line-height: 1;
    padding: 0 2px; flex-shrink: 0; opacity: 0.5;
    transition: opacity var(--transition-fast); align-self: flex-start;
}
.toast-close:hover { opacity: 1; }
.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    animation: toastProgress linear forwards;
    transform-origin: left;
}
.toast-success .toast-progress { background: #27ae60; }
.toast-error   .toast-progress { background: #d63031; }
.toast-warning .toast-progress { background: #f39c12; }
.toast-info    .toast-progress { background: var(--accent); }
@keyframes toastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
@media (max-width: 650px) {
    .toast-container {
        top: auto;
        bottom: calc(72px + env(safe-area-inset-bottom));
        right: 12px; left: 12px;
        width: auto; max-width: none;
    }
    @keyframes toastIn {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes toastOut {
        from { opacity: 1; transform: translateY(0);    max-height: 100px; }
        to   { opacity: 0; transform: translateY(20px); max-height: 0; margin-bottom: -10px; }
    }
}

/* ============================================================
   CHAT FAB — floating action button (unread messages)
   ============================================================ */
.chat-fab {
    position: fixed;
    bottom: calc(84px + env(safe-area-inset-bottom));
    right: 20px;
    z-index: 1400;
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(108,92,231,0.4);
    animation: fabBounceIn 0.4s cubic-bezier(0.34,1.4,0.64,1) both;
    transition: transform var(--transition), box-shadow var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(108,92,231,0.5); }
.chat-fab:active { transform: scale(0.93); }
@keyframes fabBounceIn {
    from { opacity: 0; transform: scale(0.5) translateY(20px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.chat-fab-icon { font-size: 22px; line-height: 1; }
.chat-fab-badge {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 20px; height: 20px;
    background: #d63031; color: white;
    font-size: 11px; font-weight: 800;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg);
}
@media (min-width: 651px) {
    .chat-fab { bottom: 28px; right: 28px; }
}

/* ============================================================
   PROFILE EDIT FIELDS
   ============================================================ */
.profile-edit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.profile-edit-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    width: 30px; height: 30px;
    font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    color: var(--text-muted);
}
.profile-edit-btn:hover {
    border-color: var(--accent);
    background: rgba(0,114,255,0.06);
    color: var(--accent);
}
.profile-edit-form { margin-top: 10px; }
.profile-name-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 10px;
}
.profile-input {
    width: 100%;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit; font-size: 14px; outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.profile-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.profile-edit-hint { font-size: 12px; color: var(--text-muted); margin: 6px 0 8px; line-height: 1.4; }
.profile-edit-actions { display: flex; gap: 8px; margin-top: 10px; }
.profile-save-btn {
    flex: 1; padding: 9px 16px; border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; font-family: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 3px 10px var(--accent-glow);
}
.profile-save-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--accent-glow); }
.profile-save-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.profile-cancel-btn {
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px; background: none;
    color: var(--text-muted); font-family: inherit;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.profile-cancel-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 650px) {
    .profile-name-inputs { grid-template-columns: 1fr; }
    .profile-modal-content { padding: 20px 16px; }
}

/* ============================================================
   PHONE COUNTRY CODE SELECTOR
   ============================================================ */
.phone-input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    overflow: visible;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.phone-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Country selector trigger */
.phone-country-select {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px 0 13px;
    cursor: pointer;
    border-right: 1.5px solid var(--border);
    position: relative;
    user-select: none;
    flex-shrink: 0;
    transition: background var(--transition-fast);
    border-radius: calc(var(--radius-sm) - 2px) 0 0 calc(var(--radius-sm) - 2px);
}
.phone-country-select:hover {
    background: rgba(0,114,255,0.05);
}
.phone-country-flag { font-size: 18px; line-height: 1; }
.phone-country-code { font-size: 13px; font-weight: 700; color: var(--text); min-width: 34px; }
.phone-country-arrow { font-size: 10px; color: var(--text-muted); }

/* Dropdown */
.phone-country-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    max-height: 260px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    padding: 6px;
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.34,1.2,0.64,1);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.phone-country-dropdown.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.phone-country-dropdown::-webkit-scrollbar       { width: 6px; }
.phone-country-dropdown::-webkit-scrollbar-track { background: transparent; }
.phone-country-dropdown::-webkit-scrollbar-thumb { background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50px; border: 1.5px solid transparent; background-clip: padding-box; }
.phone-country-dropdown::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, var(--accent), var(--primary)); background-clip: padding-box; }

.phone-country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.phone-country-item:hover {
    background: var(--accent);
    color: white;
}
.pci-name { flex: 1; font-weight: 500; }
.pci-code { font-weight: 700; color: var(--text-muted); font-size: 12px; }
.phone-country-item:hover .pci-code { color: rgba(255,255,255,0.8); }

/* Number input */
.phone-number-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 12px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-width: 0;
}
.phone-number-input::placeholder { color: var(--text-muted); font-weight: 400; letter-spacing: 0; }

/* Send code button — inside the wrap */
.phone-input-wrap .btn-send-code {
    border-radius: 0 calc(var(--radius-sm) - 2px) calc(var(--radius-sm) - 2px) 0;
    flex-shrink: 0;
}

@media (max-width: 650px) {
    .phone-country-dropdown { width: 220px; }
    .phone-country-code { min-width: 28px; }
}
/* ============================================================
   GLASSMORPHISM TYPE TOGGLE — Travelers / Packages
   ============================================================ */
.type-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.type-toggle-pill {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 5px;
    gap: 0;
    box-shadow: var(--shadow-sm);
}

/* sliding background indicator */
.type-toggle-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--primary, #0072ff), var(--accent, #00c6fb));
    border-radius: 50px;
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-sm);
    z-index: 0;
}

.type-toggle-slider.slide-right {
    transform: translateX(100%);
}

.type-toggle-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
    min-width: 130px;
    justify-content: center;
}

.type-toggle-btn.active {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.ttb-icon {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.type-toggle-btn.active .ttb-icon {
    transform: scale(1.15);
}

/* fade animation for grid */
.trips-grid {
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.trips-grid.fading {
    opacity: 0;
    transform: translateY(6px);
}

/* mobile */
@media (max-width: 480px) {
    .type-toggle-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-width: 110px;
    }
}

/* ============================================================
   LISTING DECISION GATEWAY — Glassmorphism
   ============================================================ */
.listing-decision {
    padding: 8px 0 4px;
}

.decision-header {
    text-align: center;
    margin-bottom: 28px;
}

.decision-icon {
    font-size: 36px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.decision-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary, #0072ff), var(--accent, #00c6fb));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.decision-subtitle {
    font-size: 13px;
    color: var(--text-muted, #888);
    margin: 0;
}

.decision-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.decision-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 22px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.decision-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,114,255,0.4);
    box-shadow: var(--shadow-md);
}

.decision-card:active {
    transform: scale(0.98);
}

/* animated glow blob */
.dc-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,114,255,0.25) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.4s ease;
}
.dc-glow-sender {
    background: radial-gradient(circle, rgba(240,147,251,0.25) 0%, transparent 70%);
}
.decision-card:hover .dc-glow {
    transform: scale(1.4);
}

.dc-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}

.dc-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1a1a2e);
}

.dc-desc {
    font-size: 12px;
    color: var(--text-muted, #888);
    line-height: 1.5;
}

.dc-arrow {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--primary, #0072ff);
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.decision-card:hover .dc-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

/* fade-in for form after decision */
#tripForm,
#senderListingForm {
    animation: decisionFadeIn 0.35s ease both;
}

@keyframes decisionFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* back-to-decision link */
.back-to-decision {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #888);
    cursor: pointer;
    margin-bottom: 16px;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}
.back-to-decision:hover { color: var(--primary, #0072ff); }

/* mobile */
@media (max-width: 480px) {
    .decision-card { padding: 18px 18px; }
    .dc-label { font-size: 15px; }
}

/* ============================================================
   TRIP CARD — HOVER EXPANDED OVERLAY (3rd card design)
   ============================================================ */
.trip-card.tc-public {
    position: relative;
}

/* ============================================================
   HOVER REVEAL — Dynamic Compression (flexbox, fixed card)
   ============================================================ */

/* Card is a fixed-size flex container */
.trip-card.tc-public {
    display: flex;
    flex-direction: column;
    height: 340px;
    overflow: hidden;
}

/* Static top section — takes all space by default */
.tc-card-inner {
    flex: 1 1 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px 12px;
    transition: flex 0.2s ease, padding 0.2s ease;
}

/* Hidden bottom section — collapsed by default */
.tc-hover-overlay {
    flex: 0 0 0%;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: flex 0.2s ease,
                height 0.2s ease,
                opacity 0.15s ease;
}

/* On hover — top compresses, bottom expands */
.trip-card.tc-public:hover .tc-card-inner,
.trip-card.tc-public.tap-open .tc-card-inner {
    flex: 0 0 56%;
    padding: 8px 16px 4px;
}
.trip-card.tc-public:hover .tc-hover-overlay,
.trip-card.tc-public.tap-open .tc-hover-overlay {
    flex: 0 0 44%;
    height: auto;
    opacity: 1;
}

/* Inner content of the bottom section */
.tc-hover-inner {
    padding: 8px 16px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    gap: 6px;
}

/* Hide info-box icons when card is hovered (compressed state) — smooth fade */
/* ── chip icon transition on hover (chips fade out as overlay appears) ── */
.tc-info-boxes {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.tc-info-icon {
    transition: none;
}

/* ── Trust row: Rating / Ticket / Passport ── */
.tc-hover-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.tc-hover-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 2px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.tc-hover-trust-item.tc-hover-verified {
    background: rgba(39, 174, 96, 0.08);
    border-color: rgba(39, 174, 96, 0.3);
}

/* Trust icon — hidden */
.tc-hover-trust-icon {
    display: none;
}
.tc-hover-trust-icon svg {
    display: none;
}
.tc-hover-verified .tc-hover-trust-icon {
    display: none;
}

/* Rating big number */
.tc-hover-rating-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}
.tc-hover-rating-star {
    font-size: 12px;
    color: #f39c12;
}

/* Trust label */
.tc-hover-trust-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
    white-space: pre-line;
}
.tc-hover-trust-item.tc-hover-verified .tc-hover-trust-label {
    color: var(--text);
    font-weight: 700;
    font-size: 12px;
}
/* Verified check circle */
.tc-hover-check-circle {
    width: 14px;
    height: 14px;
    background: rgba(39, 174, 96, 0.12);
    border: 1.5px solid rgba(39, 174, 96, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #27ae60;
}
.tc-hover-check-circle svg {
    width: 8px;
    height: 8px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

/* Unverified dash */
.tc-hover-trust-val {
    font-size: 10px;
    font-weight: 700;
    color: var(--border);
    text-align: center;
}

/* ── CTA Buttons ── */
.tc-hover-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.tc-hover-btn {
    flex: 1;
    padding: 9px 10px !important;
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px var(--accent-glow) !important;
    border: none;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.tc-hover-btn:hover {
    box-shadow: 0 6px 20px var(--accent-glow) !important;
    transform: translateY(-1px) !important;
}

.tc-hover-btn-secondary {
    flex: 1;
    padding: 9px 10px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--input-bg);
    color: var(--accent);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.tc-hover-btn-secondary:hover {
    background: rgba(0, 114, 255, 0.08);
    border-color: rgba(0, 114, 255, 0.4);
    transform: translateY(-1px);
}
.tc-hover-btn-secondary:active { transform: scale(0.97); }

/* Mobile/touch secondary button in tc-actions */
.tc-btn-secondary-action {
    padding: 13px 14px;
    border: 1.5px solid rgba(0,114,255,0.3);
    border-radius: 50px;
    background: rgba(0,114,255,0.06);
    color: #0072ff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.tc-btn-secondary-action:hover {
    background: rgba(0,114,255,0.12);
    border-color: rgba(0,114,255,0.5);
    transform: translateY(-1px);
}
.tc-btn-secondary-action:active { transform: scale(0.97); }

/* Mobile touch: same logic via .tap-open class */
@media (hover: none) {
    /* Smoother transitions for tap-open (touch devices) */
    .tc-card-inner,
    .tc-hover-overlay {
        transition: flex 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease 0.05s;
    }

    /* ── Neutralize sticky :hover on touch — but NOT when .tap-open is active ── */
    .trip-card.tc-public:hover:not(.tap-open) {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
        border-color: var(--border) !important;
    }
    .trip-card.tc-public:hover:not(.tap-open) .tc-card-inner {
        flex: 1 !important;
        padding: inherit !important;
    }
    .trip-card.tc-public:hover:not(.tap-open) .tc-hover-overlay {
        flex: 0 0 0% !important;
        height: 0 !important;
        opacity: 0 !important;
    }
    .trip-card.tc-public:hover:not(.tap-open) .tc-price-row {
        transform: none !important;
        padding: 0 20px 14px !important;
    }
    .trip-card.tc-public:hover:not(.tap-open) .tc-header {
        max-height: 40px !important;
        padding: 10px 18px 0 !important;
    }
    .trip-card.tc-public:hover:not(.tap-open) .tc-route {
        padding: 14px 20px 4px !important;
    }

    /* Simple press feedback instead */
    .trip-card.tc-public:active:not(.tap-open) {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
}

/* ============================================================
   CARD TYPE DIFFERENTIATION — Sender vs Traveler
   ============================================================ */

/* Inner content wrapper — static section fills the card */
.tc-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Both card types — outer shell */
.trip-card.tc-public.tc-sender,
.trip-card.tc-public.tc-traveler {
    padding: 0;
}

.trip-card.tc-public.tc-sender .tc-route,
.trip-card.tc-public.tc-traveler .tc-route {
    padding: 0 0 4px;
    transition: padding 0.2s ease;
}
.trip-card.tc-public:hover .tc-route,
.trip-card.tc-public.tap-open .tc-route {
    padding: 0 0 2px;
}
.trip-card.tc-public:hover .tc-price-row,
.trip-card.tc-public.tap-open .tc-price-row {
    transform: scale(0.615);
    padding: 2px 20px 4px !important;
}
.trip-card.tc-public:hover .tc-header,
.trip-card.tc-public.tap-open .tc-header {
    padding: 4px 18px 0;
    max-height: 20px;
    overflow: hidden;
}

.trip-card.tc-public.tc-sender .tc-price-row,
.trip-card.tc-public.tc-traveler .tc-price-row {
    padding: 6px 20px;
}

.trip-card.tc-public.tc-sender .tc-info-boxes,
.trip-card.tc-public.tc-traveler .tc-info-boxes {
    padding: 0 12px 16px;
}
/* traveler card — ლურჯი top accent */
.trip-card.tc-public.tc-traveler::before {
    display: block;
    opacity: 0.6;
}
/* sender card — purple/violet accent */
.trip-card.tc-public.tc-sender::before {
    display: block;
    opacity: 0.6;
    background: linear-gradient(90deg, #a29bfe, #6c5ce7);
}
.trip-card.tc-public.tc-sender {
    border-color: rgba(108,92,231,0.12);
}
.trip-card.tc-public.tc-sender:hover {
    border-color: rgba(108,92,231,0.25);
}

/* Hover overlay verified items — show full label text */
.tc-hover-trust-item.tc-hover-verified .tc-hover-trust-label {
    color: #00cec9;
    font-size: 10px;
    letter-spacing: 0.3px;
}

/* Price row — GEL lari symbol sizing */
.tc-price-row .tc-lari {
    font-size: 0.78em;
    vertical-align: 0.05em;
    letter-spacing: 0;
}

/* ============================================================
   EMPTY STATE — CTA
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
}
.empty-state-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 4px;
    animation: float 3s ease-in-out infinite;
}
.empty-state-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.empty-state-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.empty-state-btn {
    margin-top: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.empty-state-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px var(--accent-glow);
    filter: brightness(1.08);
}
.empty-state-btn:active { transform: scale(0.97); }

/* ============================================================
   SKELETON LOADING CARDS
   ============================================================ */
.skeleton-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
    pointer-events: none;
    overflow: hidden;
}
.skeleton-badge  { width: 80px;  height: 22px; border-radius: 50px; }
.skeleton-route  { width: 85%;   height: 28px; border-radius: 10px; }
.skeleton-price  { width: 50%;   height: 32px; border-radius: 10px; }
.skeleton-chips  { display: flex; gap: 8px; margin-top: 4px; }
.skeleton-chip   { flex: 1; height: 36px; border-radius: 12px; }

/* ============================================================
   CLEAR ALL — notification header button
   ============================================================ */
.notif-clear-all-header {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: border-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}
.notif-clear-all-header:hover { border-color: #ff7675; color: #d63031; }

/* nav-item.active — defined in bottom-nav section above */