/* Хедер — тёмная тема */
.header {
    background: var(--surface);
    color: var(--text);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    min-height: 52px;
}

.header h1 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--text);
}

.header-logo {
    transition: all 0.3s ease;
    position: relative;
}

.header-logo:hover {
    color: var(--primary-light);
}

.header-logo:active {
    transform: scale(0.98);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
}

/* Кнопка выбора точки выдачи */
.pickup-point-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text);
    max-width: 160px;
    min-width: 0;
}

.pickup-point-btn:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
    box-shadow: 0 0 16px rgba(var(--primary-rgb, 147, 51, 234), 0.2);
}

.pickup-point-btn:active {
    transform: scale(0.97);
}

.pickup-point-btn-static {
    cursor: default;
    pointer-events: none;
}

.pickup-point-btn-static:hover,
.pickup-point-btn-static:active {
    transform: none;
    border-color: var(--border);
    background: var(--surface-elevated);
    box-shadow: none;
}

.pickup-point-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.pickup-point-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.15;
}

.pickup-point-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pickup-point-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.pickup-point-chevron {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    opacity: 0.7;
}

/* Модалка выбора точки — premium */
.pickup-modal.active {
    align-items: center;
    justify-content: center;
    padding: 10px 8px 16px;
}

.pickup-modal .pickup-modal-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--background);
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.35);
    border-radius: 22px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 80px rgba(0, 0, 0, 0.65),
        0 0 50px rgba(var(--primary-rgb, 147, 51, 234), 0.12);
    margin: 0;
}

.pickup-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pickup-modal-close svg {
    width: 16px;
    height: 16px;
}

.pickup-modal-hero {
    position: relative;
    padding: 28px 20px 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.pickup-modal-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 15% 0%, rgba(0, 120, 201, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(var(--primary-rgb, 147, 51, 234), 0.35) 0%, transparent 50%),
        linear-gradient(180deg, #0f1a2e 0%, var(--background) 100%);
}

.pickup-modal-hero-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0078C9 0%, #00A651 100%);
    color: white;
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 6px 20px rgba(0, 120, 201, 0.4);
}

.pickup-modal-hero-title {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.pickup-modal-hero-sub {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

.pickup-modal-body {
    padding: 4px 14px 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pickup-selected-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.1);
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.28);
    margin-bottom: 14px;
    flex-shrink: 0;
}

.pickup-selected-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.pickup-selected-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pickup-selected-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    flex-shrink: 0;
    animation: pickupDotPulse 2s ease-in-out infinite;
}

@keyframes pickupDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
}

.pickup-selected-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.pickup-search-wrap {
    position: relative;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.pickup-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

.pickup-search-input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.pickup-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 147, 51, 234), 0.15);
}

.pickup-search-input::placeholder {
    color: var(--text-secondary);
}

.pickup-points-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 2px 4px 0;
    -webkit-overflow-scrolling: touch;
}

.pickup-points-list::-webkit-scrollbar {
    width: 4px;
}

.pickup-points-list::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.35);
    border-radius: 4px;
}

.pickup-station-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 68px;
    padding: 14px 16px 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-elevated);
    cursor: pointer;
    text-align: left;
    color: var(--text);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.pickup-station-card:active {
    transform: scale(0.98);
}

.pickup-station-card.active {
    border-color: rgba(var(--primary-rgb, 147, 51, 234), 0.5);
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.12);
    box-shadow: 0 0 20px rgba(var(--primary-rgb, 147, 51, 234), 0.15);
}

.pickup-station-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--line-color, var(--primary));
    border-radius: 14px 0 0 14px;
}

.pickup-station-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 6px;
}

.pickup-station-icon svg {
    width: 18px;
    height: 18px;
}

.pickup-station-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pickup-station-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.pickup-station-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.pickup-station-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.2);
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.35);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.pickup-station-check svg {
    width: 14px;
    height: 14px;
}

.pickup-station-card.active .pickup-station-check {
    opacity: 1;
    transform: scale(1);
}

.pickup-station-card-vostok {
    border-color: rgba(0, 120, 201, 0.35);
    background: linear-gradient(135deg, rgba(0, 120, 201, 0.14), rgba(0, 0, 0, 0.2));
    margin-bottom: 10px;
}

.pickup-station-card-vostok:active {
    transform: scale(0.98);
}

.pickup-station-line-vostok {
    background: linear-gradient(180deg, #38bdf8, #0078c9) !important;
}

.pickup-station-icon-vostok {
    background: rgba(0, 120, 201, 0.18);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

.pickup-station-meta-vostok {
    color: #7dd3fc;
    font-weight: 600;
}

.pickup-station-external {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pickup-station-external svg {
    width: 14px;
    height: 14px;
}

.pickup-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.pickup-step-header[hidden],
.pickup-search-wrap[hidden] {
    display: none !important;
}

.pickup-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px 8px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-elevated);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pickup-back-btn svg {
    width: 16px;
    height: 16px;
}

.pickup-back-btn:active {
    transform: scale(0.97);
}

.pickup-step-title {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.pickup-line-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-elevated);
    cursor: pointer;
    text-align: left;
    color: var(--text);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pickup-line-card:active {
    transform: scale(0.98);
}

.pickup-line-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--line-color);
    color: var(--line-color);
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pickup-line-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pickup-line-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.pickup-line-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.pickup-line-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pickup-line-arrow svg {
    width: 14px;
    height: 14px;
}
