/* ============================================================
   DESIGN 3 — CYBERPUNK / NEON / GLASS
   Полная свобода — максимально футуристично
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #07070d;
    --bg-gradient: linear-gradient(135deg, #07070d 0%, #0d0d1a 30%, #1a0a1a 60%, #0a0d1a 100%);
    --surface: rgba(26, 26, 46, 0.55);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(26, 26, 46, 0.8);
    --text: #f0f0f5;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --accent-cyan: #00f0ff;
    --accent-purple: #a855f7;
    --accent-pink: #ff0080;
    --accent-gradient: linear-gradient(135deg, #00f0ff, #a855f7, #ff0080);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 60px rgba(168, 85, 247, 0.1);
    --glow-pink: 0 0 20px rgba(255, 0, 128, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xl: 24px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="light"] {
    --bg: #f0f0f5;
    --bg-gradient: linear-gradient(135deg, #f0f0f5 0%, #e8e4f0 50%, #f0ece8 100%);
    --surface: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(0, 0, 0, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.9);
    --text: #0a0a14;
    --text-secondary: rgba(0, 0, 0, 0.45);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.15), 0 0 60px rgba(0, 240, 255, 0.05);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.15), 0 0 60px rgba(168, 85, 247, 0.05);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    background-image: var(--bg-gradient);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated bg grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
    animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

/* Ambient orbs */
.ambient-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.ambient-orbs::before,
.ambient-orbs::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite alternate;
}
.ambient-orbs::before {
    width: 400px;
    height: 400px;
    background: rgba(0, 240, 255, 0.08);
    top: -100px;
    right: -100px;
}
.ambient-orbs::after {
    width: 350px;
    height: 350px;
    background: rgba(168, 85, 247, 0.08);
    bottom: -80px;
    left: -80px;
    animation-delay: -4s;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

/* Glass card mixin */
.glass {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-card);
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 13, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}
.loading-overlay.show { display: flex; }

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    box-shadow: 0 0 20px rgba(0,240,255,0.3);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HEADER ===== */
.header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 20px 20px;
    gap: 12px;
}
.header-brand { min-width: 0; flex: 1; }
.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-cyan); }
    50% { opacity: 0.5; box-shadow: 0 0 20px var(--accent-cyan); }
}
.header-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-top: 6px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.title-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.user-btn {
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    background: var(--surface);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
    transition: all .25s;
    font-family: var(--font-sans);
    white-space: nowrap;
    box-shadow: var(--shadow-card);
}
.user-btn:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), var(--shadow-card);
    transform: translateY(-2px);
}

/* ===== USER GREETING ===== */
.user-greeting {
    position: relative;
    z-index: 1;
    padding: 0 20px 16px;
}
.user-greeting-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
}
.user-greeting-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.user-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-card);
}
.user-action-btn:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--glow-purple), var(--shadow-card);
    transform: translateY(-1px);
}
.admin-btn {
    border-color: rgba(250, 204, 21, 0.3) !important;
    color: #facc15 !important;
}
.admin-btn:hover {
    border-color: rgba(250, 204, 21, 0.6) !important;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.15), var(--shadow-card) !important;
}

/* ===== ROUTE CARD ===== */
.route-card {
    position: relative;
    z-index: 1;
    margin: 0 16px;
    border-radius: var(--radius-xl);
    padding: 24px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-card), 0 0 40px rgba(0, 240, 255, 0.03);
    overflow: hidden;
}
.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
    opacity: 0.5;
}
.route-inner {
    display: flex;
    gap: 16px;
    position: relative;
}
.route-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    flex-shrink: 0;
}
.route-dot {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.route-dot-from {
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
}
.route-dot-to {
    border-radius: 4px;
    background: var(--accent-pink);
    box-shadow: 0 0 12px var(--accent-pink);
}
.route-line {
    width: 2px;
    flex: 1;
    min-height: 24px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-pink) 100%);
    border-radius: 1px;
    margin: 6px 0;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.2);
}
.route-fields {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.route-field { position: relative; }
.route-field + .route-field {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--surface-border);
}
.route-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.address-card {
    cursor: pointer;
    padding: 4px;
    margin: 0 -4px;
    border-radius: 10px;
    transition: all .2s;
}
.address-card:hover {
    background: rgba(0, 240, 255, 0.06);
}
.addr-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    font-weight: 500;
}
.addr-value {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.input-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.input-row .input-group { flex: 1; }
.input-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: all .2s;
    font-family: var(--font-sans);
}
.input-row input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1), 0 0 20px rgba(0, 240, 255, 0.05);
    background: rgba(255,255,255,0.06);
}
.add-address-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    cursor: pointer;
    margin-top: 6px;
    text-decoration: none;
    transition: all .2s;
    opacity: 0.7;
}
.add-address-link:hover {
    opacity: 1;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Swap button */
.swap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: all .25s;
    box-shadow: var(--shadow-card);
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-80%);
    z-index: 2;
}
.swap-btn:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan), var(--shadow-card);
    transform: translateY(-80%) rotate(180deg);
}
.swap-btn:active {
    transform: translateY(-80%) rotate(180deg) scale(0.92);
}

/* ===== OPTIONS GRID ===== */
.options-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 16px;
}
.option-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-card);
    transition: all .3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.option-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(168, 85, 247, 0.03));
    opacity: 0;
    transition: opacity .3s;
}
.option-tile:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.05);
}
.option-tile:hover::before { opacity: 1; }
.option-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.option-icon svg { width: 14px; height: 14px; }
.option-info {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}
.option-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}
.option-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hidden param summary */
#paramSummary { display: none; }

/* ===== NOTE SECTION ===== */
.note-section {
    position: relative;
    z-index: 1;
    margin: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-card);
}
.note-section svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
    opacity: 0.5;
}
.note-section input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text);
    outline: none;
    font-family: var(--font-sans);
}
.note-section input::placeholder { color: var(--text-secondary); opacity: 0.5; }

/* ===== BOTTOM BAR ===== */
.bottom-bar {
    position: relative;
    z-index: 1;
    margin: 10px 16px 24px;
}
.bottom-bar-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 20px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-card), 0 0 40px rgba(168, 85, 247, 0.03);
    position: relative;
    overflow: hidden;
}
.bottom-bar-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
    opacity: 0.4;
}
.price-block { flex: 1; min-width: 0; position: relative; }
.price-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.price-amount {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}
.price-currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 2px;
}
.price-note {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    opacity: 0.5;
}
.tips-link { cursor: pointer; text-decoration: none; }
.tips-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--accent-cyan);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.1);
}
.order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 4px 24px rgba(0, 240, 255, 0.25), 0 0 60px rgba(0, 240, 255, 0.05);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.order-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    opacity: 0;
    transition: opacity .3s;
    border-radius: inherit;
}
.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.35), 0 0 80px rgba(0, 240, 255, 0.08);
}
.order-btn:hover::before { opacity: 1; }
.order-btn:active { transform: scale(0.97); }
.order-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.order-btn svg, .order-btn span { position: relative; z-index: 1; }
.order-btn > * { position: relative; z-index: 1; }

/* ===== MODALS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 640px) {
    .modal-overlay { align-items: center; padding: 16px; }
}
.modal-overlay.open { display: flex; }
.modal-overlay.map-modal .modal-content {
    max-height: 90vh;
    border-radius: var(--radius-xl);
    margin: 0;
}
.modal-overlay.map-modal { padding: 16px; }

.modal-content {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow-y: auto;
    padding: 28px 20px;
    animation: modalSlideUp .35s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--surface-border);
    border-bottom: none;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.02);
}
@media (min-width: 640px) {
    .modal-content { border-radius: var(--radius-xl); border: 1px solid var(--surface-border); margin: 0; }
}
@keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

input, textarea, select { font-size: 16px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-header h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--surface-border);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
    border-color: rgba(0, 240, 255, 0.2);
}

/* Address search */
#addressModal .modal-content { padding: 20px; }
#addressModal .search-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    font-size: 16px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    outline: none;
    margin-bottom: 12px;
    font-family: var(--font-sans);
    transition: all .2s;
}
#addressModal .search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08), 0 0 20px rgba(0, 240, 255, 0.03);
    background: rgba(255,255,255,0.06);
}
#map-container {
    height: 170px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-card);
    transition: height .2s;
}
@media (max-width: 480px) { #map-container { height: 120px; } }
.search-results {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.search-results .result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--surface-border);
    font-size: 13px;
    transition: background .15s;
}
.search-results .result-item:last-child { border-bottom: none; }
.search-results .result-item:hover { background: rgba(0, 240, 255, 0.06); }
.search-results .result-item.obj { color: var(--accent-cyan); }
.address-search-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.address-search-actions input {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    outline: none;
    font-family: var(--font-sans);
}
.address-search-actions input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
    background: rgba(255,255,255,0.06);
}
.btn-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.btn-row button {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s;
    border: 1px solid var(--surface-border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-family: var(--font-sans);
}
.btn-row button:hover {
    border-color: rgba(0, 240, 255, 0.2);
    background: rgba(255,255,255,0.06);
}
.btn-row button.primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.2);
}
.btn-row button.primary:hover {
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.3);
    transform: translateY(-1px);
}
.btn-row button.primary:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }

/* Telegram login button */
.telegram-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--surface-border, rgba(255,255,255,.12));
    background: var(--card-bg, rgba(26,26,46,.55));
    color: var(--text-primary, #f0f0f5);
    font-family: var(--font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.telegram-login-btn:hover {
    background: var(--accent, #00f0ff);
    color: #000;
    border-color: var(--accent, #00f0ff);
    box-shadow: 0 0 20px rgba(0,240,255,.3);
    transform: translateY(-1px);
}
.telegram-login-btn svg {
    flex-shrink: 0;
}

/* Params modal */
.params-section-grid { margin-bottom: 16px; }
.params-section-grid h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.time-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.time-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    transition: all .2s;
    background: rgba(255,255,255,0.03);
}
.time-options label:has(input:checked) {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.05);
}
.car-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.car-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    padding: 10px 14px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    transition: all .2s;
    background: rgba(255,255,255,0.03);
}
.car-options label:has(input:checked) {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.06);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.05);
}
.option-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.option-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    transition: background .2s;
}
.option-checkboxes label:has(input:checked) {
    background: rgba(0, 240, 255, 0.06);
}
.option-checkboxes input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--accent-cyan);
}
#datetimeRow { margin-top: 8px !important; }
#pickupTime {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    font-size: 14px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    outline: none;
    font-family: var(--font-sans);
}
#pickupTime:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

/* Auth forms */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    font-size: 16px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    outline: none;
    font-family: var(--font-sans);
    transition: all .2s;
}
.form-group input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08), 0 0 20px rgba(0, 240, 255, 0.03);
    background: rgba(255,255,255,0.06);
}
.form-error, .restore-error {
    color: var(--accent-pink);
    font-size: 13px;
    display: none;
    margin-bottom: 8px;
}
.form-success {
    color: var(--accent-cyan);
    font-size: 13px;
    display: none;
    margin-bottom: 8px;
}
.form-link {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    transition: color .2s;
}
.form-link:hover { color: var(--accent-cyan); }
.step { display: none; }
.step.active { display: block; }

/* Restore modal */
.restore-modal-overlay {
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.restore-card {
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 24px;
}
.restore-card .modal-header {
    text-align: center;
    justify-content: center;
}
.restore-card .modal-header h2 {
    font-size: 1.3rem;
}
.restore-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}
.restore-card .form-group {
    text-align: left;
    margin-bottom: 12px;
}
.restore-card .form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.restore-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    font-family: var(--font-sans);
    text-align: center;
}
.restore-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.08);
}
.restore-btn-sec {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all .2s;
    text-align: center;
}
.restore-btn-sec:hover {
    border-color: var(--accent-purple);
    color: var(--text);
}

/* Order cards */
.order-item {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: all .25s;
}
.order-item:hover {
    box-shadow: var(--shadow-card), 0 0 30px rgba(0, 240, 255, 0.03);
    border-color: rgba(0, 240, 255, 0.15);
}
.order-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}
.order-item.status-executed::before { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.order-item.status-canceled::before { background: var(--accent-pink); box-shadow: 0 0 8px var(--accent-pink); }
.order-item.status-default::before { background: var(--text-secondary); }
.order-item .oi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
}
.order-item .oi-datetime { display: flex; flex-direction: column; gap: 2px; }
.order-item .oi-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
.order-item .oi-date-icon, .order-item .oi-time-icon { font-size: 13px; opacity: 0.5; }
.order-item .oi-date-text { font-weight: 500; }
.order-item .oi-time-text { font-weight: 600; font-feature-settings: 'tnum'; }
.order-item .oi-status {
    font-weight: 600;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
.order-item .oi-status.status-Executed {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
}
.order-item .oi-status.status-Canceled {
    background: rgba(255, 0, 128, 0.1);
    color: var(--accent-pink);
}
.order-item .oi-status.status-default {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
}
.order-item .oi-route {
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.order-item .oi-route-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}
.order-item .oi-route-from { margin-bottom: 4px; }
.order-item .oi-route-dot {
    flex-shrink: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    z-index: 1;
}
.order-item .oi-route-dot.from-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}
.order-item .oi-route-dot.to-dot {
    background: var(--accent-pink);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--accent-pink);
}
.order-item .oi-route-line {
    width: 2px;
    margin-left: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-pink) 100%);
    border-radius: 1px;
    position: relative;
    left: 4px;
}
.order-item .oi-route-addr { font-size: 14px; line-height: 1.5; word-break: break-word; }
.order-item .oi-route-addr .oi-addr-hint {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1px;
    opacity: 0.5;
}
.order-item .oi-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.order-item .oi-cost {
    font-weight: 700;
    font-size: 16px;
    background: rgba(0, 240, 255, 0.08);
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--accent-cyan);
}
.order-item .oi-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.order-item .oi-actions .repeat-btn {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-sans);
}
.order-item .oi-actions .repeat-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.1);
}
.order-item .oi-actions button {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--surface-border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    transition: all .2s;
    font-family: var(--font-sans);
}
.order-item .oi-actions button:hover {
    border-color: rgba(0, 240, 255, 0.2);
    background: rgba(255,255,255,0.06);
}
.order-item .oi-actions .cancel-btn {
    color: var(--accent-pink);
    border-color: rgba(255, 0, 128, 0.15);
}
.order-item .oi-actions .cancel-btn:hover {
    background: rgba(255, 0, 128, 0.1);
    border-color: var(--accent-pink);
}

.empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.5;
}

/* Order status screen */
#orderStatusScreen {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 32px;
    position: relative;
    z-index: 1;
}
.status-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.status-section {
    padding: 16px;
    border-bottom: 1px solid var(--surface-border);
}
.status-section:last-child { border-bottom: none; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.status-badge.searching { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); }
.status-badge.found { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); }
.status-badge.running { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.status-badge.done { background: rgba(0, 240, 255, 0.08); color: var(--accent-cyan); }
.status-badge.error { background: rgba(255, 0, 128, 0.1); color: var(--accent-pink); }

.car-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
}
.car-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.car-details { flex: 1; }
.car-model { font-size: 16px; font-weight: 600; }
.car-plate, .car-color { font-size: 13px; color: var(--text-secondary); opacity: 0.7; }
.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s;
    margin-top: 8px;
    font-family: var(--font-sans);
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.2);
}
.call-btn:hover {
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.3);
    transform: translateY(-1px);
}
.status-route { font-size: 15px; line-height: 1.6; }
.status-route .route-point {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.status-route .route-dot {
    width: 10px; height: 10px;
    margin-top: 5px; flex-shrink: 0;
}
.status-route .route-dot.from {
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}
.status-route .route-dot.to {
    border-radius: 3px;
    background: var(--accent-pink);
    box-shadow: 0 0 8px var(--accent-pink);
}
.status-route .route-line {
    width: 2px; height: 20px;
    background: var(--surface-border); margin-left: 4px;
}
.status-field-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.car-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}
.car-info-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.car-info-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.car-phone-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent-cyan);
    text-decoration: none;
}
.car-phone-link:hover {
    text-decoration: underline;
}
.status-price {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 700;
    text-align: center; padding: 8px 0;
    letter-spacing: -0.03em;
}
.cancel-status-btn {
    display: block; width: 100%; padding: 14px;
    background: rgba(255, 0, 128, 0.15);
    color: var(--accent-pink);
    border: 1px solid rgba(255, 0, 128, 0.2);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s;
    font-family: var(--font-sans);
}
.cancel-status-btn:hover {
    background: rgba(255, 0, 128, 0.2);
    border-color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.1);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.status-pulse { animation: pulse 1.5s ease-in-out infinite; }

@media (max-width: 480px) {
    .header { padding: 24px 16px 16px; }
    .header-title { font-size: 28px; }
    .route-card { margin: 0 12px; padding: 18px; }
    .options-grid { margin: 8px 12px; gap: 6px; }
    .option-tile { padding: 8px 10px; gap: 8px; }
    .note-section { margin: 0 12px; padding: 10px 14px; }
    .bottom-bar { margin: 8px 12px 20px; }
    .bottom-bar-content { padding: 10px 10px 10px 16px; }
    .price-amount { font-size: 20px; }
    .order-btn { height: 46px; padding: 0 18px; font-size: 14px; }
    .car-options, .option-checkboxes { grid-template-columns: 1fr; }
}

/* Input group (house/entrance fields) */
.input-group {
    margin-bottom: 8px;
}
.input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all .2s;
    font-family: var(--font-sans);
}
.input-group input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08), 0 0 16px rgba(0, 240, 255, 0.04);
    background: rgba(255,255,255,0.06);
}
.input-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Minimal mode */
.mode-minimal .note-section { display: none !important; }
.mode-minimal .options-grid { display: none !important; }
.mode-minimal #paramSummary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 18px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow-card);
    margin: 10px 16px;
    position: relative;
    z-index: 1;
}
