/* ========== Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    background-color: #0d1b2a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
body { min-height: 100vh; }

a { color: #2ba9d7; text-decoration: underline; }
a:hover { color: #80d0c7; }

/* ========== Header ========== */
.header {
    background-color: #152739;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    gap: 10px;
}
.brand-name {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
    background: linear-gradient(100deg, #2ba9d7, #80d0c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-divider { color: #3a4a5a; }
.whatsapp-icon { color: #25d366; font-size: 20px; }

/* ========== Container ========== */
.container {
    background-color: #1c3651;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 20px 30px;
    min-height: 100vh;
}

/* ========== Hero ========== */
.hero-section {
    position: relative;
    margin-bottom: 20px;
}
.hero-image {
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, #0a2540, #1c3651);
    padding: 60px 20px;
    text-align: center;
    border: 1px solid rgba(43, 169, 215, 0.3);
}
.hero-emoji {
    font-size: 72px;
    animation: float 3s infinite ease-in-out;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========== Earning section ========== */
.earning-section {
    text-align: center;
    margin-bottom: 40px;
}
.title-text {
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 15px;
    color: #fff;
}
.earning-text {
    font-size: 16px;
    margin-bottom: 10px;
    color: #e1e8ef;
}
.highlight { color: #FFD700; font-weight: bold; }
.highlight-purple { color: #a87aff; font-weight: bold; }

.btn-gradient {
    background-image: linear-gradient(100deg, #2ba9d7 0, #80d0c7 95%);
    background-size: 130% auto;
    color: #fff !important;
    border: 0;
    padding: 15px 50px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(43, 169, 215, 0.4);
    transition: transform 0.2s;
}
.btn-gradient:hover { transform: translateY(-2px); }
.btn-gradient:active { transform: translateY(0); }

/* ========== Title wrapper with background watermark ========== */
.title-wrapper {
    position: relative;
    margin-bottom: 20px;
    margin-top: 30px;
}
.title-bg {
    position: absolute;
    top: -8px;
    left: -5px;
    font-size: 45px;
    color: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    filter: blur(0.5px);
    user-select: none;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}
.title-bg.about {
    font-size: 60px;
}
.title-wrapper h2 {
    position: relative;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    z-index: 1;
}

/* ========== Steps ========== */
.steps-section { margin-bottom: 30px; }
.step-item {
    background-color: #001F3F;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
}
.step-number {
    background: linear-gradient(to bottom, #2ba9d7, #2dbbab);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}
.step-text {
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    flex: 1;
}

/* ========== About ========== */
.about-section { margin-bottom: 30px; }
.about-section p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #e1e8ef;
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    font-size: 13px;
    color: #7a8a9a;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
}
.footer .small { font-size: 11px; color: #616161; margin-top: 5px; }
.footer .disclaimer { margin-top: 10px; font-style: italic; }

/* ========== Loading overlay ========== */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
}
.loading-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(43, 169, 215, 0.2);
    border-top-color: #2ba9d7;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
#loading-text { margin-top: 10px; color: #fff; }

/* ========== Toast ========== */
#custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(255, 77, 77, 0.95);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}
#custom-toast.show {
    transform: translateX(-50%) translateY(0);
}
#custom-toast.success {
    background: rgba(76, 175, 80, 0.95);
}

/* ========== Main popup (phone input) ========== */
.main-container {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
}
.popup-header {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}
.popup-header h2 { font-size: 22px; margin-bottom: 8px; }
.popup-header p { color: #80d0c7; font-size: 14px; }

.login-box {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(3, 44, 54, 0.85), rgba(60, 209, 209, 0.3));
    border: 2px solid rgba(11, 61, 85, 0.6);
    border-radius: 16px;
    padding: 25px 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}
.login-box.error-shake {
    border-color: #ff4d4d;
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
.input-label {
    font-size: 1.1rem;
    color: #fff;
    display: block;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}
#phone {
    width: 100%;
    height: 50px;
    background: transparent;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    padding-left: 100px !important;
    border: 2px solid rgba(191, 149, 247, 0.3);
    outline: none;
}
.iti { display: block; }
.iti__country-list {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #2ba9d7 !important;
    max-width: 85vw !important;
}
.iti__country.iti__highlight {
    background-color: rgba(43, 169, 215, 0.2) !important;
}

.continue-btn {
    width: 100%;
    max-width: 500px;
    height: 55px;
    background: linear-gradient(100deg, #2ba9d7 0, #80d0c7 95%);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(43, 169, 215, 0.4);
}
.close-link {
    margin-top: 15px;
    font-size: 12px;
    color: #888;
    text-align: center;
    cursor: pointer;
}

/* ========== Modal ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal {
    width: 90%;
    max-width: 380px;
    background: rgba(20, 20, 20, 0.95);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(11, 61, 85, 0.6);
    position: relative;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.modal-title {
    color: #2ba9d7;
    font-size: 1.4rem;
    margin: 0;
}
.modal-title.gold { color: #FFD700; }
.modal-sub {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.5;
}
.modal-sub.primary { color: #2ba9d7; font-weight: bold; }

/* Code display */
.code-display-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.code-char {
    width: 32px;
    height: 42px;
    border: 1px solid #2ba9d7;
    border-radius: 6px;
    background: rgba(9, 38, 65, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
}

.copy-btn {
    width: 100%;
    max-width: 300px;
    height: 50px;
    background: linear-gradient(135deg, #2ba9d7, #1dbfdb);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(43, 169, 215, 0.3);
}
.retry-btn {
    width: 100%;
    background: linear-gradient(135deg, #2ba9d7, #1dbfdb);
    border: none;
    color: #fff;
    padding: 12px 0;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tip steps */
.tip-steps {
    text-align: left;
    background: rgba(43, 169, 215, 0.08);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}
.tip-steps p {
    color: #e1e8ef;
    font-size: 0.85rem;
    margin: 5px 0;
}
.verification-box {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}
.verification-box .label {
    color: #888;
    font-size: 0.8rem;
    margin-right: 5px;
}
.verification-box .code-value {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Success ok circle */
.ok-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #80d0c7);
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
}
