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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-image: url('/static/mb8/img/bg3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.popup,
.step,
.result {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.popup h5 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.popup .navbtn {
    display: inline-block;
    padding: 12px 40px;
    margin: 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.popup .navbtn:hover,
.btn:hover,
.icon-button:hover {
    transform: scale(1.05);
}

.step,
.result {
    margin-bottom: 20px;
    display: none;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.step.active,
.result.show {
    display: block;
}

.step_header {
    margin-bottom: 20px;
}

.step_header h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 12px;
}

.step_header ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.step_header li {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.step_header li.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.step_content p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.step_content p.notice,
.result p.notice {
    color: #999;
    font-size: 14px;
}

.button_block {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn_ok,
.btn_next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn_yes {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.btn_no {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
}

.checkbox_wrap,
.checkbox_item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.option {
    padding: 8px 20px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.9);
}

.option.checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.result h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 28px;
}

.result p {
    color: #333;
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.8;
}

.icon-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.icon-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.3);
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.icon-button img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.radar_scanner {
    text-align: center;
    display: none;
    padding: 40px;
}

.radar_scanner.show {
    display: block;
}

.radar_title {
    color: white;
    font-size: 24px;
    margin-bottom: 30px;
}

.radar {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.radar img {
    width: 200px;
    height: 200px;
}

@media (max-width: 480px) {
    body { padding: 15px; }
    .popup, .step, .result { padding: 20px; }
    .popup h5 { font-size: 16px; }
    .step_header h3 { font-size: 18px; }
    .btn { padding: 10px 25px; font-size: 14px; }
    .radar, .radar img { width: 160px; height: 160px; }
    .icon-button { padding: 12px 25px; font-size: 14px; }
}
