:root {
    --primary: #8B1A2B;
    --primary-light: #A82040;
    --primary-dark: #6B1020;
    --accent: #FF4D6A;
    --bg: #0A0A0F;
    --bg-card: #13131A;
    --bg-card-hover: #1A1A24;
    --bg-selected: #1E1020;
    --border: #222230;
    --border-selected: #8B1A2B;
    --text: #F0F0F5;
    --text-dim: #8888A0;
    --text-muted: #555568;
    --success: #22C55E;
    --radius: 16px;
    --radius-sm: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-glow { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.bg-glow-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(139,26,43,0.15), transparent 70%); top: -200px; right: -100px; }
.bg-glow-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(168,32,64,0.1), transparent 70%); bottom: -100px; left: -150px; }

/* Header */
.header {
    position: relative; z-index: 10;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    background: rgba(10,10,15,0.8);
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon { width: 44px; height: 44px; color: var(--accent); }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.logo-domain { font-size: 22px; font-weight: 800; color: var(--accent); }
.logo-sub { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin-top: 2px; }

/* Main */
.main { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 24px 180px; }

/* Hero */
.hero { text-align: center; padding: 60px 0 48px; }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent), #FF8FA3, var(--accent));
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sub { font-size: 18px; color: var(--text-dim); }

/* Steps */
.step { margin-bottom: 40px; }
.step-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.step-num {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    font-size: 16px; font-weight: 700; color: white;
}
.step h2 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.step-hint { font-size: 14px; color: var(--text-dim); margin-top: 2px; }

/* Option cards */
.options { display: grid; gap: 12px; }
.options-3 { grid-template-columns: repeat(3, 1fr); }
.options-5 { grid-template-columns: repeat(5, 1fr); }

.option-card { position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-body {
    background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-sm);
    padding: 20px 16px; text-align: center; transition: all 0.25s ease;
}
.option-card:hover .option-body { border-color: #444; background: var(--bg-card-hover); }
.option-card input:checked ~ .option-body {
    border-color: var(--accent); background: var(--bg-selected);
    box-shadow: 0 0 24px rgba(255,77,106,0.12);
}
.option-emoji { font-size: 28px; margin-bottom: 8px; }
.option-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.option-price { font-size: 15px; color: var(--accent); font-weight: 600; }
.option-price span { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.option-desc { font-size: 12px; color: var(--text-dim); line-height: 1.3; }
.option-sm .option-body { padding: 16px 10px; }

/* Regions list */
.regions-list {
    display: flex; flex-direction: column; gap: 8px;
}

.region-row {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: all 0.25s;
}

.region-row.active {
    border-color: var(--accent);
    background: var(--bg-selected);
}

.region-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.region-emoji { font-size: 24px; }
.region-name { font-size: 15px; font-weight: 600; }
.region-price-hint { font-size: 12px; color: var(--text-dim); }

.region-counter { display: flex; align-items: center; gap: 4px; }

.counter-btn {
    width: 36px; height: 36px;
    border: 2px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--text);
    font-size: 18px; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.counter-btn:hover { border-color: var(--accent); color: var(--accent); }
.counter-btn:active { transform: scale(0.92); }

.counter-input {
    width: 52px; height: 36px;
    background: var(--bg); border: 2px solid var(--border); border-radius: 10px;
    color: var(--text); font-size: 16px; font-weight: 700; font-family: 'Inter', sans-serif;
    text-align: center; outline: none; transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.counter-input:focus { border-color: var(--accent); }

.region-subtotal {
    min-width: 100px; text-align: right;
    font-size: 14px; font-weight: 600; color: var(--text-dim);
    transition: color 0.2s;
}
.region-subtotal.has-value { color: var(--accent); }

.regions-total {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px; padding: 0 4px;
    font-size: 15px; color: var(--text-dim);
}
.regions-total strong { color: var(--text); font-size: 18px; }

.discount-badge {
    background: linear-gradient(135deg, #1a3a1a, #0f2a0f);
    border: 1px solid #2a5a2a; color: var(--success);
    font-size: 14px; font-weight: 600;
    padding: 8px 16px; border-radius: 10px; white-space: nowrap;
    transition: all 0.3s;
}
.discount-badge.hidden { opacity: 0; transform: scale(0.8); pointer-events: none; }

/* Result panel */
.result-panel {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: rgba(13,13,20,0.95); backdrop-filter: blur(24px);
    border-top: 1px solid var(--border); padding: 16px 24px;
}

.result-inner {
    max-width: 800px; margin: 0 auto;
    display: flex; align-items: center; gap: 24px;
}

.result-breakdown { flex: 1; }
.result-line {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--text-dim); padding: 2px 0;
}
.result-line span:last-child { font-weight: 600; color: var(--text); }
.discount-text { color: var(--success) !important; }

.result-total-wrap { text-align: center; }
.result-total { display: flex; align-items: baseline; gap: 10px; }
.result-label { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.result-price {
    font-size: 34px; font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.result-currency { font-size: 16px; font-weight: 600; color: var(--text-dim); }
.result-min {
    background: rgba(255,180,0,0.1); border: 1px solid rgba(255,180,0,0.3);
    color: #FFB400; font-size: 12px; font-weight: 500;
    padding: 6px 12px; border-radius: 8px; margin-top: 6px; white-space: nowrap;
}

.cta-button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif;
    border: none; border-radius: 12px; cursor: pointer; text-decoration: none;
    transition: all 0.25s; white-space: nowrap;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,77,106,0.3); }

/* Footer */
.footer {
    position: relative; z-index: 1; text-align: center;
    padding: 32px 24px 200px; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .options-5 { grid-template-columns: repeat(3, 1fr); }
    .region-row { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
    .region-subtotal { min-width: auto; }
    .result-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .result-total { justify-content: center; }
    .cta-button { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .options-3 { grid-template-columns: repeat(3, 1fr); }
    .options-5 { grid-template-columns: repeat(2, 1fr); }
}
