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

/* HTML + BODY */
html, body {
    height: 100%;
    background: #000;
}

/* BODY */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: white;

    overflow-y: auto;

    padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom);

    position: relative;
}

/* 🔥 BACKGROUND */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../img/bg.png') center/cover no-repeat;
    z-index: 0;
}

/* 🔥 OVERLAY */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.5), rgba(0,0,0,0.85));
    z-index: 1;
}

/* CONTENT WRAPPER */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
}

/* CARD */
.card {
    position: relative;
    width: 100%;
    padding: 40px 28px;

    background: linear-gradient(180deg, #0b0b0b, #151515);
    border-radius: 18px;

    border: 1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 0 60px rgba(10,132,255,0.12),
        0 20px 60px rgba(0,0,0,0.8);

    text-align: center;
}

.card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(10,132,255,0.25), transparent 70%);
    z-index: -1;
}

/* TITLE */
.title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.subtitle {
    color: #0A84FF;
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 2px;
}

/* TEXT */
.text {
    margin-top: 18px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* HIGHLIGHT */
.highlight {
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 999px;

    background: rgba(10,132,255,0.12);
    color: #0A84FF;

    font-size: 12px;
    letter-spacing: 1px;

    box-shadow: 0 0 10px rgba(10,132,255,0.2);
}

/* COUNTER */
.counter {
    margin-top: 10px;
    font-size: 12px;
    color: #30D0C7;
}

/* FORM */
.form-wrapper {
    margin-top: 22px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* INPUT */
input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);

    color: white;

    transition: 0.2s;
}

input:focus {
    outline: none;
    border-color: #0A84FF;
    box-shadow: 0 0 10px rgba(10,132,255,0.3);
}

/* BUTTON */
button {
    width: 100%;
    padding: 16px;

    border-radius: 12px;
    border: none;

    background: linear-gradient(135deg, #0A84FF, #30D0C7);
    color: #000;

    font-weight: bold;
    letter-spacing: 1px;

    cursor: pointer;

    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(48,208,199,0.4);
}

/* CHECKBOX */
.checkbox {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
    text-align: left;
}

/* STATUS */
.success {
    margin-top: 14px;
    color: #30D0C7;
}

.error {
    margin-top: 14px;
    color: #ff4d4d;
}

/* 🔥 FOOTER FIX */
.footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #888;
    z-index: 2;
}

/* 📱 MOBILE FIX */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding-top: 40px;
    }
}

/* CHECKBOX WRAPPER */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
}

/* HIDE DEFAULT */
.checkbox-wrapper input {
    display: none;
}

/* CUSTOM BOX */
.checkmark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    transition: all 0.2s ease;
}

/* HOVER */
.checkbox-wrapper:hover .checkmark {
    border-color: #0A84FF;
}

/* CHECKED */
.checkbox-wrapper input:checked + .checkmark {
    background: #0A84FF;
    border-color: #0A84FF;
    box-shadow: 0 0 10px rgba(10,132,255,0.6);
}

/* CHECK ICON */
.checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* SHOW CHECK */
.checkbox-wrapper input:checked + .checkmark::after {
    opacity: 1;
}

/* TEXT */
.label-text {
    flex: 1;
}

/* MODAL BACKGROUND */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* MODAL CONTENT */
.modal-content {
    background: rgba(20,20,20,0.9);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 80vh;
    overflow-y: auto;
}

/* CLOSE BUTTON */
.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #fff;
}

/* LINKS */
.modal-content h2 {
    margin-bottom: 10px;
}

.modal-content h3 {
    margin-top: 16px;
    font-size: 14px;
    color: #0A84FF;
}

.modal-content p,
.modal-content li {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}
.privacy-section {
    margin-top: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.privacy-section:last-child {
    border-bottom: none;
}


/* BACKGROUND */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* CARD */
.modal-card {
    position: relative;
    width: 90%;
    max-width: 420px;
    padding: 50px 35px;

    background: linear-gradient(180deg, #0b0b0b, #151515);
    border-radius: 18px;

    text-align: center;

    border: 1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 0 80px rgba(10,132,255,0.15),
        0 20px 80px rgba(0,0,0,0.9);

    animation: modalIn 0.35s ease;
}

/* GLOW EFFECT */
.modal-glow {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(10,132,255,0.3), transparent 70%);
    z-index: -1;
}

/* ICON */
.modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;

    border-radius: 50%;
    background: rgba(10,132,255,0.15);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    color: #0A84FF;

    box-shadow:
        0 0 25px rgba(10,132,255,0.6),
        inset 0 0 10px rgba(10,132,255,0.3);
}

/* TITLE */
.modal-card h2 {
    color: #ffffff;
    letter-spacing: 3px;
    font-size: 20px;
    margin-bottom: 15px;
}

/* TEXT */
.modal-text {
    color: #dddddd;
    font-size: 16px;
    margin-bottom: 10px;
}

.modal-sub {
    color: #888;
    font-size: 13px;
    margin-bottom: 30px;
}

/* BUTTON */
.modal-btn {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #0A84FF, #30D0C7);
    color: #000;
    font-weight: bold;
    letter-spacing: 1px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(48,208,199,0.4);
}

/* ANIMATION */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}