.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;
background: none;
border: none;
cursor: pointer;
}

.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, .promo-input-wrapper 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, .promo-input-wrapper 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;
background: none;
cursor: pointer;
}

.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: 120px;
opacity: 1;
margin-bottom: 15px;
}

.promo-input-wrapper {
display: flex;
gap: 10px;
}

.promo-input-wrapper input {
flex-grow: 1;
}

#btn-activate-promo {
background: var(--gradient);
color: white;
border: none;
border-radius: 12px;
padding: 0 20px;
font-weight: 700;
cursor: pointer;
transition: all 0.3s;
white-space: nowrap;
}

#btn-activate-promo:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 203, 255, 0.3);
}

.promo-message {
font-size: 13px;
font-weight: 600;
margin-top: 10px;
padding-left: 5px;
}

.promo-success {
color: #10b981;
}

.promo-error {
color: #ef4444;
}

.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;
}

.support-modal-content {
width: 700px;
height: 600px;
display: flex;
flex-direction: column;
padding: 0;
}
.support-header {
padding: 20px 25px;
border-bottom: 1px solid var(--glass-border);
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(255,255,255,0.3);
position: relative;
}
.support-view {
padding: 25px;
flex-grow: 1;
display: flex;
flex-direction: column;
overflow-y: auto;
}
.support-actions { margin-bottom: 20px; }
.create-ticket-btn { padding: 10px 20px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.tickets-container { display: flex; flex-direction: column; gap: 10px; }
.ticket-card {
background: rgba(255, 255, 255, 0.5);
border: 1px solid var(--glass-border);
padding: 15px;
border-radius: 16px;
cursor: pointer;
transition: all 0.2s;
display: flex;
justify-content: space-between;
align-items: center;
}
.ticket-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.8); }
.ticket-info h5 { margin-bottom: 5px; font-size: 16px; }
.ticket-info p { font-size: 12px; color: var(--text-muted); }
.chat-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.chat-messages {
flex-grow: 1;
border-radius: 16px;
padding: 15px;
display: flex;
flex-direction: column;
gap: 15px;
overflow-y: auto;
margin-bottom: 15px;
}
.chat-msg { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.4; position: relative; }
.msg-user { background: rgba(0, 203, 255, 0.15); border: 1px solid rgba(0, 203, 255, 0.3); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-agent { background: rgba(255, 255, 255, 0.8); border: 1px solid var(--glass-border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-author { font-size: 11px; font-weight: 700; margin-bottom: 4px; opacity: 0.7; }
.chat-input-area { display: flex; gap: 10px; }