.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.glass-modal {
    background: white;
    border-radius: 24px;
    width: 800px;
    max-width: 100%;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .glass-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: var(--text-muted);
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-layout {
    display: flex;
    min-height: 450px;
}

.modal-main {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-sidebar {
    width: 340px;
    background: #f8fafc;
    padding: 40px 30px;
    border-left: 1px solid #e2e8f0;
}

.modal-header {
    margin-bottom: 30px;
    position: relative;
}

.back-btn {
    position: absolute;
    top: -20px;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.direct-step-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

.direct-step-title span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

.modal-step {
    display: none;
    flex: 1;
}

.modal-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item.active {
    border-color: var(--primary);
    background: #f0faff;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    margin-right: 15px;
}

.option-item.active .option-radio {
    border-color: var(--primary);
}

.option-item.active .option-radio::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.option-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.option-name { font-weight: 700; }
.option-price { font-weight: 800; font-size: 16px; }
.option-cashback {
    background: #e0e7ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: right;
    margin-top: 4px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    background: #f8fafc;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    background: white;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pay-method {
    flex: 1 1 calc(33.333% - 15px);
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    min-width: 90px;
}

.pay-method.active {
    border-color: var(--primary);
    background: #f0faff;
    color: var(--primary);
}

.legal-text {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

.legal-text a {
    color: var(--primary);
    text-decoration: underline;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    background: white;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.sidebar-img {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.sidebar-header h4 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-details ul {
    list-style: none;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.sidebar-details ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.sidebar-details ul li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .modal-layout {
        flex-direction: column;
    }
    .modal-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 30px;
    }
    .modal-main {
        padding: 30px;
    }
    .pay-method {
        flex: 1 1 100%;
    }
}

.map-glass-modal {
    width: 95vw !important;
    height: 95vh !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    background: #1a1a1a !important;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}

.map-header h3 {
    margin: 0;
    font-weight: 800;
}

.map-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#map-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

#map-canvas:active {
    cursor: grabbing;
}

.map-close {
    position: relative;
    top: auto;
    right: auto;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.map-close:hover {
    color: var(--primary);
}

.input-error {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2 !important;
}

.error-text {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-weight: 600;
}

.promo-trigger {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    transition: color 0.3s;
    text-decoration: underline;
}

.promo-trigger:hover {
    color: var(--primary);
}

.promo-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    margin-bottom: 0;
}

.promo-container.active {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 15px;
}

.info-glass-modal {
    max-width: 600px;
}

.info-modal-content {
    padding: 40px;
}

.info-modal-content h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.info-modal-content p {
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
}