/* ═══════════════════════════════════════
   CEVIO – Starten Modal
   Full responsive: mobile → ultrawide
   ═══════════════════════════════════════ */

/* ═══════════ BACKDROP ═══════════ */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(3, 3, 12, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; overscroll-behavior: none; }

/* ═══════════ MODAL ═══════════ */
.modal {
    position: relative;
    width: 95vw; max-width: 720px; max-height: 92vh;
    overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, #111827 0%, #0d1117 100%);
    border-radius: 1.8em;
    border: 1px solid rgba(255,255,255,0.05);
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 2em 6em rgba(0,0,0,0.6), 0 0 120px rgba(124, 58, 237, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
    transform: translateY(2em) scale(0.96);
    transition: transform 0.45s cubic-bezier(.22,1,.36,1);
}
.modal-backdrop.active .modal { transform: translateY(0) scale(1); }
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* Noise */
.modal::before {
    content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px; pointer-events: none; border-radius: inherit;
}

/* Top glow */
.modal-glow {
    position: absolute; top: 0; left: 0; right: 0; height: 250px; z-index: 0;
    pointer-events: none; border-radius: 1.8em 1.8em 0 0;
    transition: background 0.6s ease;
    background: radial-gradient(ellipse at 50% -30%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.modal-close {
    position: absolute; top: 1.2em; right: 0.5em; z-index: 20;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.6em; width: 2.2em; height: 2.2em;
    display: grid; place-items: center; cursor: pointer;
    color: rgba(255,255,255,0.3); font-size: 1em; transition: all 0.2s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }

.modal-body { position: relative; z-index: 1; padding: 2.6em 2.4em 2em; }

/* ═══════════ PROGRESS ═══════════ */
.progress-wrap { margin-bottom: 2em; }
.progress-steps { display: flex; justify-content: space-between; margin-bottom: 0.6em; padding-right: 2em; }
.progress-step-label {
    font-size: 0.65em; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: rgba(255,255,255,0.15); transition: color 0.4s ease;
}
.progress-step-label.active { color: rgba(255,255,255,0.6); }
.progress-step-label.done { color: rgba(124, 58, 237, 0.5); }
.progress-bar-track { width: 100%; height: 3px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.progress-bar-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
    transition: width 0.5s cubic-bezier(.22,1,.36,1); width: 0%;
}

/* ═══════════ HEADER ═══════════ */
.modal-header { margin-bottom: 1.8em; }
.modal-title { font-family: "Inter", system-ui, sans-serif; font-size: 1.55em; font-weight: 800; color: #fff; margin-bottom: 0.25em; letter-spacing: -0.02em; }
.modal-subtitle { font-size: 0.88em; color: rgba(255,255,255,0.35); }

/* ═══════════ STEP TRANSITIONS ═══════════ */
.step-container { position: relative; min-height: 180px; }
.modal-step { display: none; opacity: 0; }
.modal-step.active { display: block; animation: stepIn 0.4s cubic-bezier(.22,1,.36,1) forwards; }
.modal-step.exit-left { display: block; animation: stepOutLeft 0.25s ease forwards; }
.modal-step.exit-right { display: block; animation: stepOutRight 0.25s ease forwards; }
@keyframes stepIn { from { opacity: 0; transform: translateX(2em); } to { opacity: 1; transform: translateX(0); } }
@keyframes stepInReverse { from { opacity: 0; transform: translateX(-2em); } to { opacity: 1; transform: translateX(0); } }
@keyframes stepOutLeft { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-2em); } }
@keyframes stepOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(2em); } }

/* ═══════════ OPTION CARDS ═══════════ */
.option-grid { display: grid; gap: 0.65em; }
.option-grid.two-col { grid-template-columns: 1fr 1fr; }

.option-card {
    position: relative; padding: 1.15em 1.2em; border-radius: 1em;
    background: rgba(255,255,255,0.02); border: 1.5px solid rgba(255,255,255,0.05);
    cursor: pointer; transition: all 0.3s cubic-bezier(.22,1,.36,1); overflow: hidden;
}
.option-card:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.035); transform: translateY(-1px); }
.option-card.selected { border-color: rgba(124, 58, 237, 0.45); background: rgba(124, 58, 237, 0.06); }
.option-card.selected::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a855f7); z-index: 2;
}
.option-icon { font-size: 1.4em; margin-bottom: 0.35em; }
.option-name { font-size: 0.92em; font-weight: 700; color: #fff; margin-bottom: 0.1em; }
.option-desc { font-size: 0.73em; color: rgba(255,255,255,0.3); line-height: 1.4; }
.option-price { font-size: 0.78em; font-weight: 700; color: #a855f7; margin-top: 0.45em; }

.option-check {
    position: absolute; top: 0.7em; right: 0.7em; width: 1.3em; height: 1.3em;
    border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.1);
    display: grid; place-items: center; transition: all 0.25s ease;
}
.option-check svg { width: 0.65em; height: 0.65em; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transition: opacity 0.2s; }
.option-card.selected .option-check { background: #7c3aed; border-color: #7c3aed; }
.option-card.selected .option-check svg { opacity: 1; }

/* ═══════════ DISABLED PRODUCT CARD ═══════════ */
.option-card.disabled {
    opacity: 0.3; cursor: not-allowed; pointer-events: none;
    user-select: none; filter: grayscale(0.5);
}
.option-card.disabled:hover {
    border-color: rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); transform: none;
}
.option-card.disabled .option-check { display: none; }

.option-badge-soon {
    position: absolute; top: 0.65em; right: 0.65em;
    font-size: 0.55em; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 0.3em 0.65em; border-radius: 0.5em;
    color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

/* ═══════════ TIER COLORS ═══════════ */
.pkg-simple.selected { border-color: rgba(99,102,241,0.45); background: rgba(99,102,241,0.06); }
.pkg-simple.selected::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.pkg-simple.selected .option-check { background: #6366f1; border-color: #6366f1; }
.pkg-simple .option-price { color: #818cf8; }
.pkg-normal.selected { border-color: rgba(16,185,129,0.45); background: rgba(16,185,129,0.06); }
.pkg-normal.selected::before { background: linear-gradient(90deg, #10b981, #34d399); }
.pkg-normal.selected .option-check { background: #10b981; border-color: #10b981; }
.pkg-normal .option-price { color: #34d399; }
.pkg-premium.selected { border-color: rgba(245,158,11,0.45); background: rgba(245,158,11,0.06); }
.pkg-premium.selected::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pkg-premium.selected .option-check { background: #f59e0b; border-color: #f59e0b; }
.pkg-premium .option-price { color: #fbbf24; }
.pkg-custom.selected { border-color: rgba(168,85,247,0.45); background: rgba(168,85,247,0.06); }
.pkg-custom.selected::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }

.badge-popular {
    position: absolute; top: -1px; right: 1.2em;
    font-size: 0.55em; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.35em 0.7em; border-radius: 0 0 0.5em 0.5em;
    color: #fff; background: linear-gradient(135deg, #10b981, #059669);
}

/* ═══════════ FORMS ═══════════ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.form-group { margin-bottom: 0.85em; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
    display: block; font-size: 0.72em; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.45em;
}
.form-label .required { color: #a855f7; }
.form-input {
    width: 100%; padding: 0.8em 1em; font-size: 0.88em; font-family: inherit;
    color: #fff; background: rgba(255,255,255,0.03); border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 0.75em; outline: none; transition: all 0.25s ease;
    box-sizing: border-box;
}
.form-input::placeholder { color: rgba(255,255,255,0.15); }
.form-input:focus { border-color: rgba(124,58,237,0.35); background: rgba(124,58,237,0.03); box-shadow: 0 0 0 3px rgba(124,58,237,0.06); }
textarea.form-input { resize: none; min-height: 4.5em; }

/* ═══════════ FILE UPLOAD ═══════════ */
.file-upload {
    position: relative; border: 1.5px dashed rgba(255,255,255,0.08); border-radius: 0.75em;
    padding: 1.2em; text-align: center; cursor: pointer; transition: all 0.3s ease; background: rgba(255,255,255,0.015);
}
.file-upload:hover { border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.02); }
.file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-icon { font-size: 1.3em; margin-bottom: 0.2em; opacity: 0.4; }
.file-upload-text { font-size: 0.76em; color: rgba(255,255,255,0.3); }
.file-upload-text span { color: #a855f7; font-weight: 600; }
.file-list { margin-top: 0.5em; display: flex; flex-wrap: wrap; gap: 0.4em; }
.file-tag {
    font-size: 0.7em; font-weight: 600; padding: 0.3em 0.7em; border-radius: 0.5em;
    background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); color: #c084fc;
    display: flex; align-items: center; gap: 0.4em;
}
.file-tag-remove { cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.file-tag-remove:hover { opacity: 1; }

/* ═══════════ BUDGET ═══════════ */
.budget-display { text-align: center; margin-bottom: 0.6em; }
.budget-value { font-size: 1.8em; font-weight: 800; color: #fff; }
.budget-slider {
    width: 100%; -webkit-appearance: none; appearance: none; height: 4px;
    border-radius: 4px; background: rgba(255,255,255,0.06); outline: none;
}
.budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 0 12px rgba(124,58,237,0.4); cursor: pointer; border: 2px solid #1a1a2e;
}
.budget-slider::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 0 12px rgba(124,58,237,0.4); cursor: pointer; border: 2px solid #1a1a2e;
}
.budget-labels { display: flex; justify-content: space-between; margin-top: 0.4em; }
.budget-labels span { font-size: 0.65em; color: rgba(255,255,255,0.2); }

/* ═══════════ CHIPS ═══════════ */
.chip-options { display: flex; gap: 0.5em; flex-wrap: wrap; }
.chip {
    padding: 0.55em 1.1em; border-radius: 999px; font-size: 0.78em; font-weight: 600;
    font-family: inherit; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.06); cursor: pointer; transition: all 0.25s ease;
}
.chip:hover { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }
.chip.selected { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.08); color: #c084fc; }

/* ═══════════ STEAM IDLER EXTRAS ═══════════ */
.steam-info-box {
    padding: 1em 1.2em; border-radius: 0.8em;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 1em;
}
.steam-info-box p { font-size: 0.8em; color: rgba(255,255,255,0.35); line-height: 1.5; }
.steam-info-box p + p { margin-top: 0.5em; }

/* ═══════════ AGB ═══════════ */
.agb-wrap { display: flex; align-items: flex-start; gap: 0.7em; margin-top: 1.4em; }
.agb-checkbox {
    flex-shrink: 0; width: 1.3em; height: 1.3em; border-radius: 0.35em;
    border: 1.5px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
    display: grid; place-items: center; cursor: pointer; transition: all 0.25s ease; margin-top: 0.1em;
}
.agb-checkbox svg { width: 0.7em; height: 0.7em; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transition: opacity 0.2s; }
.agb-checkbox.checked { background: #7c3aed; border-color: #7c3aed; }
.agb-checkbox.checked svg { opacity: 1; }
.agb-checkbox.error { border-color: rgba(239,68,68,0.45); box-shadow: 0 0 0 2px rgba(239,68,68,0.08); }
.agb-text { font-size: 0.76em; color: rgba(255,255,255,0.3); line-height: 1.5; }
.agb-text a { color: #a855f7; text-decoration: none; }
.agb-text a:hover { text-decoration: underline; }

/* ═══════════ SUMMARY ═══════════ */
.summary-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1em; padding: 1.2em;
}
.summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.65em 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.summary-row:last-child { border-bottom: none; }
.summary-label { font-size: 0.78em; color: rgba(255,255,255,0.3); }
.summary-value { font-size: 0.88em; color: #fff; font-weight: 600; text-align: right; max-width: 60%; }
.summary-msg {
    padding: 0.65em 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.summary-msg .summary-label { margin-bottom: 0.25em; }
.summary-msg .summary-value { text-align: left; font-weight: 500; color: rgba(255,255,255,0.5); font-size: 0.82em; max-width: 100%; }

.summary-total {
    display: flex; justify-content: space-between; align-items: center; margin-top: 1em;
    padding: 1em 1.2em; border-radius: 0.8em;
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(168,85,247,0.05));
    border: 1px solid rgba(124,58,237,0.2);
}
.summary-total-label { font-size: 0.85em; font-weight: 600; color: rgba(255,255,255,0.5); }
.summary-total-value { font-size: 1.3em; font-weight: 800; color: #c084fc; }

/* ═══════════ FOOTER ═══════════ */
.modal-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1.8em; gap: 1em; position: relative;
}
.btn-back {
    padding: 0.7em 1.4em; font-size: 0.83em; font-weight: 600; font-family: inherit;
    color: rgba(255,255,255,0.35); background: transparent; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.7em; cursor: pointer; transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-back:hover { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.12); }
.btn-back.hidden { visibility: hidden; }

.live-price {
    display: flex; align-items: center; gap: 0.6em; opacity: 0;
    transition: all 0.4s ease; pointer-events: none;
    position: absolute; left: 50%; transform: translateX(-50%);
    white-space: nowrap;
}
.live-price.visible { opacity: 1; }
.live-price-label { font-size: 0.65em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.2); }
.live-price-value {
    font-size: 1em; font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #c084fc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn-next {
    padding: 0.75em 2.2em; font-size: 0.88em; font-weight: 700; font-family: inherit;
    color: #fff; border: none; border-radius: 0.7em; cursor: pointer;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 0.4em 1.4em rgba(124,58,237,0.25);
    transition: all 0.3s cubic-bezier(.22,1,.36,1); position: relative; overflow: hidden;
    white-space: nowrap;
}
.btn-next::after {
    content: ""; position: absolute; inset: 0; opacity: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    background-size: 200% 100%; animation: btnShimmer 3s ease-in-out infinite; pointer-events: none;
}
@keyframes btnShimmer { 0%, 100% { background-position: 200% 0; } 50% { background-position: -200% 0; } }
.btn-next:hover { transform: translateY(-1px); box-shadow: 0 0.7em 2em rgba(124,58,237,0.35); }
.btn-next:hover::after { opacity: 1; }
.btn-next:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-next:disabled::after { opacity: 0; }

/* ═══════════ SUCCESS ═══════════ */
.success-state { text-align: center; padding: 1.5em 0 1em; }
.success-icon-wrap { position: relative; width: 4.5em; height: 4.5em; margin: 0 auto 1.4em; }
.success-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(16,185,129,0.15); animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.15); opacity: 0; } }
.success-icon {
    position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.08));
    border: 1.5px solid rgba(16,185,129,0.25);
    display: grid; place-items: center; animation: successPop 0.5s cubic-bezier(.22,1,.36,1);
}
.success-icon svg { width: 1.8em; height: 1.8em; stroke: #34d399; stroke-width: 2.5; fill: none; }
@keyframes successPop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.success-title { font-size: 1.3em; font-weight: 800; color: #fff; margin-bottom: 0.35em; }
.success-text { font-size: 0.88em; color: rgba(255,255,255,0.35); line-height: 1.6; }

/* ═══════════ VALIDATION ═══════════ */
.form-input.error { border-color: rgba(239,68,68,0.45); background: rgba(239,68,68,0.04); box-shadow: 0 0 0 2px rgba(239,68,68,0.06); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.form-input.error::placeholder { color: rgba(239,68,68,0.25); }
.form-error {
    font-size: 0.7em; color: #f87171; margin-top: 0.3em;
    opacity: 0; max-height: 0; overflow: hidden; transition: all 0.25s ease;
}
.form-error.show { opacity: 1; max-height: 2em; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease; }

.chip.error { border-color: rgba(239,68,68,0.4); }
.option-card.error:not(.disabled) { border-color: rgba(239,68,68,0.35); }
.option-card.error:not(.disabled) .option-check { border-color: rgba(239,68,68,0.3); }

/* ═══════════ LOADING SPINNER ═══════════ */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 1.2em; height: 1.2em;
    margin: -0.6em 0 0 -0.6em;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════ HONEYPOT ═══════════ */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ═══════════ COMPACT FILE UPLOAD ═══════════ */
.file-upload.compact { padding: 0.75em 0.8em; }
.file-upload.compact .file-upload-icon { font-size: 1em; margin-bottom: 0; display: inline; margin-right: 0.3em; }
.file-upload.compact .file-upload-text { display: inline; font-size: 0.72em; }

.form-hint-inline {
    font-weight: 400; color: rgba(255,255,255,0.15);
    text-transform: none; letter-spacing: 0;
}


/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════ */

/* ─── ULTRAWIDE / 4K (1920px+) ─── */
@media (min-width: 1920px) {
    .modal {
        max-width: 800px;
        border-radius: 2em;
    }
    .modal-body { padding: 3em 3em 2.4em; }
    .modal-glow { height: 300px; border-radius: 2em 2em 0 0; }
    .modal-title { font-size: 1.75em; }
    .modal-subtitle { font-size: 0.95em; }
    .option-card { padding: 1.3em 1.4em; }
    .option-name { font-size: 1em; }
    .option-desc { font-size: 0.8em; }
    .option-price { font-size: 0.85em; }
    .form-input { padding: 0.9em 1.1em; font-size: 0.92em; }
    .chip { padding: 0.6em 1.2em; font-size: 0.82em; }
    .btn-next { padding: 0.85em 2.6em; font-size: 0.95em; }
    .btn-back { padding: 0.8em 1.6em; font-size: 0.88em; }
    .summary-total-value { font-size: 1.5em; }
    .success-icon-wrap { width: 5.5em; height: 5.5em; }
    .success-title { font-size: 1.5em; }
    .success-text { font-size: 0.95em; }
}

/* ─── LARGE DESKTOP (1440px–1919px) ─── */
@media (min-width: 1440px) and (max-width: 1919px) {
    .modal { max-width: 760px; }
    .modal-body { padding: 2.8em 2.8em 2.2em; }
    .modal-title { font-size: 1.65em; }
    .option-card { padding: 1.2em 1.3em; }
    .btn-next { padding: 0.8em 2.4em; font-size: 0.92em; }
}

/* ─── MACBOOK / LAPTOP (1024px–1439px) ─── */
@media (min-width: 1024px) and (max-width: 1439px) {
    .modal { max-width: 700px; max-height: 90vh; }
    .modal-body { padding: 2.4em 2.2em 1.8em; }
}

/* ─── TABLET LANDSCAPE (768px–1023px) ─── */
@media (min-width: 768px) and (max-width: 1023px) {
    .modal { max-width: 640px; max-height: 88vh; width: 92vw; }
    .modal-body { padding: 2.2em 2em 1.6em; }
    .modal-title { font-size: 1.4em; }
    .modal-subtitle { font-size: 0.84em; }
    .option-card { padding: 1em 1.1em; }
    .option-name { font-size: 0.88em; }
    .option-desc { font-size: 0.7em; }
    .progress-step-label { font-size: 0.6em; }
    .btn-next { padding: 0.75em 2em; }
    .modal-footer { margin-top: 1.6em; }
}

/* ─── TABLET PORTRAIT / LARGE PHONE (541px–767px) ─── */
@media (min-width: 541px) and (max-width: 767px) {
    .modal {
        max-width: 540px; width: 94vw; max-height: 90vh;
        border-radius: 1.4em;
    }
    .modal-glow { border-radius: 1.4em 1.4em 0 0; }
    .modal-body { padding: 2em 1.6em 1.4em; }
    .modal-title { font-size: 1.3em; }
    .modal-subtitle { font-size: 0.82em; }
    .modal-header { margin-bottom: 1.4em; }
    .progress-wrap { margin-bottom: 1.6em; }
    .progress-step-label { font-size: 0.58em; }
    .option-grid.two-col { grid-template-columns: 1fr 1fr; }
    .option-card { padding: 1em 1.1em; }
    .option-name { font-size: 0.88em; }
    .option-desc { font-size: 0.7em; }
    .form-row { grid-template-columns: 1fr 1fr; gap: 0.7em; }
    .chip { padding: 0.5em 1em; font-size: 0.75em; }
    .btn-next { padding: 0.75em 1.8em; font-size: 0.85em; }
    .btn-back { padding: 0.65em 1.2em; font-size: 0.8em; }
    .modal-footer { margin-top: 1.4em; }
    .live-price-value { font-size: 0.9em; }
    .budget-value { font-size: 1.5em; }
    .summary-total-value { font-size: 1.15em; }
}

/* ─── MOBILE (max-width: 540px) ─── */
@media (max-width: 540px) {
    .modal {
        width: 100vw; max-width: 100vw; max-height: 100vh;
        height: 100vh; height: 100dvh;
        border-radius: 0;
        box-shadow: none; border: none;
    }
    .modal-glow {
        border-radius: 0; height: 180px;
    }
    .modal-backdrop.active .modal {
        transform: translateY(0) scale(1);
    }
    .modal-body {
        padding: 1.6em 1.2em 1.4em;
        min-height: calc(100vh - 2em);
        min-height: calc(100dvh - 2em);
        display: flex; flex-direction: column;
    }
    .step-container { flex: 1; }
    .modal-close {
        top: 0.8em; right: 0.8em;
        width: 2.4em; height: 2.4em;
        font-size: 1.05em;
    }
    .modal-title { font-size: 1.25em; }
    .modal-subtitle { font-size: 0.8em; }
    .modal-header { margin-bottom: 1.2em; }
    .progress-wrap { margin-bottom: 1.2em; }
    .progress-steps { padding-right: 2.5em; }
    .progress-step-label { font-size: 0.55em; letter-spacing: 0.04em; }
    .option-grid.two-col { grid-template-columns: 1fr; }
    .option-grid { gap: 0.55em; }
    .option-card { padding: 0.95em 1em; border-radius: 0.8em; }
    .option-name { font-size: 0.88em; }
    .option-desc { font-size: 0.72em; }
    .option-price { font-size: 0.76em; margin-top: 0.35em; }
    .option-check { top: 0.6em; right: 0.6em; width: 1.2em; height: 1.2em; }
    .badge-popular { font-size: 0.5em; right: 0.8em; padding: 0.3em 0.6em; }
    .option-badge-soon { font-size: 0.5em; }
    .form-row { grid-template-columns: 1fr; gap: 0.6em; }
    .form-group { margin-bottom: 0.7em; }
    .form-label { font-size: 0.68em; letter-spacing: 0.06em; margin-bottom: 0.35em; }
    .form-input { padding: 0.75em 0.9em; font-size: 0.85em; border-radius: 0.65em; }
    textarea.form-input { min-height: 4em; }
    .chip-options { gap: 0.4em; }
    .chip { padding: 0.55em 0.9em; font-size: 0.74em; }
    .file-upload { padding: 1em; border-radius: 0.65em; }
    .file-upload-icon { font-size: 1.1em; }
    .file-upload-text { font-size: 0.72em; }
    .file-upload.compact { padding: 0.65em 0.7em; }
    .budget-value { font-size: 1.5em; }
    .budget-slider::-webkit-slider-thumb { width: 22px; height: 22px; }
    .budget-slider::-moz-range-thumb { width: 22px; height: 22px; }
    .agb-wrap { margin-top: 1em; gap: 0.6em; }
    .agb-checkbox { width: 1.4em; height: 1.4em; }
    .agb-text { font-size: 0.72em; }
    .summary-card { padding: 1em; border-radius: 0.8em; }
    .summary-row { padding: 0.55em 0; }
    .summary-label { font-size: 0.72em; }
    .summary-value { font-size: 0.82em; max-width: 55%; word-break: break-word; }
    .summary-msg .summary-value { font-size: 0.78em; }
    .summary-total { padding: 0.85em 1em; border-radius: 0.7em; margin-top: 0.8em; }
    .summary-total-label { font-size: 0.78em; }
    .summary-total-value { font-size: 1.1em; }
    .modal-footer {
        margin-top: 1.2em; gap: 0.6em;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .live-price { display: none; }
    .btn-next {
        padding: 0.8em 1.4em; width: auto; min-width: 120px;
        font-size: 0.84em;
    }
    .btn-back { padding: 0.7em 1em; font-size: 0.8em; }
    .success-icon-wrap { width: 4em; height: 4em; margin-bottom: 1.2em; }
    .success-title { font-size: 1.15em; }
    .success-text { font-size: 0.82em; }
    .success-state { padding: 1em 0 0.5em; }
    .steam-info-box { padding: 0.85em 1em; }
    .steam-info-box p { font-size: 0.76em; }
}

/* ─── SMALL MOBILE (max-width: 380px) ─── */
@media (max-width: 380px) {
    .modal-body { padding: 1.4em 1em 1.2em; }
    .modal-title { font-size: 1.1em; }
    .modal-subtitle { font-size: 0.75em; }
    .progress-step-label { font-size: 0.5em; }
    .option-card { padding: 0.85em 0.9em; }
    .option-name { font-size: 0.82em; }
    .option-desc { font-size: 0.68em; }
    .chip-options { gap: 0.3em; }
    .chip { padding: 0.45em 0.7em; font-size: 0.7em; }
    .form-input { padding: 0.7em 0.8em; font-size: 0.82em; }
    .form-label { font-size: 0.65em; }
    .btn-next { padding: 0.75em 1.2em; font-size: 0.8em; min-width: 100px; }
    .btn-back { padding: 0.6em 0.8em; font-size: 0.76em; }
    .agb-text { font-size: 0.68em; }
    .budget-value { font-size: 1.3em; }
    .summary-value { max-width: 50%; }
    .summary-total-value { font-size: 1em; }
}

/* ─── VERY SMALL MOBILE (max-width: 320px) ─── */
@media (max-width: 320px) {
    .modal-body { padding: 1.2em 0.8em 1em; }
    .modal-close { top: 0.6em; right: 0.6em; width: 2em; height: 2em; font-size: 0.9em; }
    .modal-title { font-size: 1em; }
    .progress-steps { gap: 0.15em; }
    .progress-step-label { font-size: 0.45em; }
    .option-card { padding: 0.75em 0.8em; border-radius: 0.7em; }
    .chip { padding: 0.4em 0.6em; font-size: 0.68em; }
    .btn-next { padding: 0.7em 1em; font-size: 0.78em; min-width: 90px; }
    .btn-back { padding: 0.55em 0.7em; font-size: 0.72em; }
    .modal-footer { gap: 0.4em; }
}

/* ─── LANDSCAPE on small devices ─── */
@media (max-height: 500px) and (orientation: landscape) {
    .modal {
        max-height: 100vh; max-height: 100dvh;
        height: 100vh; height: 100dvh;
        border-radius: 0;
    }
    .modal-glow { height: 120px; border-radius: 0; }
    .modal-body { padding: 1em 1.6em 0.8em; }
    .modal-header { margin-bottom: 0.8em; }
    .modal-title { font-size: 1.1em; }
    .modal-subtitle { font-size: 0.75em; }
    .progress-wrap { margin-bottom: 0.8em; }
    .step-container { min-height: 100px; }
    .option-grid.two-col { grid-template-columns: 1fr 1fr 1fr; }
    .option-grid { gap: 0.4em; }
    .option-card { padding: 0.7em 0.8em; }
    .option-name { font-size: 0.78em; }
    .option-desc { font-size: 0.65em; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .form-group { margin-bottom: 0.5em; }
    .form-input { padding: 0.55em 0.8em; font-size: 0.8em; }
    textarea.form-input { min-height: 3em; }
    .chip { padding: 0.4em 0.8em; font-size: 0.7em; }
    .agb-wrap { margin-top: 0.8em; }
    .modal-footer { margin-top: 0.8em; }
    .summary-card { padding: 0.8em; }
    .summary-row { padding: 0.4em 0; }
    .success-state { padding: 0.5em 0; }
    .success-icon-wrap { width: 3em; height: 3em; margin-bottom: 0.8em; }
    .success-title { font-size: 1em; }
}

/* ─── TABLET LANDSCAPE (height constraint) ─── */
@media (min-width: 768px) and (max-height: 700px) {
    .modal { max-height: 95vh; }
    .modal-body { padding: 1.8em 2em 1.4em; }
    .modal-header { margin-bottom: 1.2em; }
    .progress-wrap { margin-bottom: 1.2em; }
    .modal-footer { margin-top: 1.2em; }
}

/* ═══════════ TOUCH DEVICES ═══════════ */
@media (hover: none) {
    .option-card { -webkit-tap-highlight-color: transparent; }
    .option-card:hover { transform: none; border-color: rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); }
    .option-card.selected:hover { border-color: rgba(124, 58, 237, 0.45); background: rgba(124, 58, 237, 0.06); }
    .option-card:active { transform: scale(0.98); transition-duration: 0.1s; }
    .chip:hover { border-color: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
    .chip.selected:hover { border-color: rgba(124,58,237,0.4); color: #c084fc; }
    .chip:active { transform: scale(0.96); }
    .btn-next:hover { transform: none; box-shadow: 0 0.4em 1.4em rgba(124,58,237,0.25); }
    .btn-next:active:not(:disabled) { transform: scale(0.97); }
    .btn-back:hover { color: rgba(255,255,255,0.35); border-color: rgba(255,255,255,0.06); }
    .btn-back:active { transform: scale(0.97); }
    .modal-close:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.3); }
    .modal-close:active { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
    .file-upload:hover { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.015); }
    /* Larger touch targets */
    .agb-checkbox { width: 1.5em; height: 1.5em; }
    .budget-slider::-webkit-slider-thumb { width: 24px; height: 24px; }
    .budget-slider::-moz-range-thumb { width: 24px; height: 24px; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
    .modal { transition: none; }
    .modal-step.active { animation: none; opacity: 1; }
    .modal-step.exit-left,
    .modal-step.exit-right { animation: none; }
    .progress-bar-fill { transition: none; }
    .success-ring { animation: none; }
    .success-icon { animation: none; }
    .btn-next::after { animation: none; }
    .shake { animation: none; }
}

/* ═══════════ HIGH CONTRAST ═══════════ */
@media (prefers-contrast: high) {
    .modal { border: 2px solid rgba(255,255,255,0.2); }
    .option-card { border-width: 2px; }
    .option-card.selected { border-width: 2px; }
    .form-input { border-width: 2px; }
    .chip { border-width: 2px; }
    .option-name { color: #fff; }
    .option-desc { color: rgba(255,255,255,0.5); }
    .form-label { color: rgba(255,255,255,0.5); }
    .modal-subtitle { color: rgba(255,255,255,0.5); }
}