/* =========================================
   GLOBAL RESET
========================================= */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: #0f172a;
    color: #f8fafc;

    /* iPhone safe-area support */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* =========================================
   LAYOUT (iOS + Android Stable)
========================================= */

.page,
.success-bg {
    min-height: 100vh;
    min-height: 100dvh; /* Modern mobile fix */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* =========================================
   PREMIUM CARD
========================================= */

.card-ui {
    width: 400px;
    max-width: 420px;
    padding: 48px 40px;

    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(18px);

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    text-align: center;
}

/* =========================================
   BRAND
========================================= */

.brand-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #facc15;
    position: relative;
}

.brand-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(to right, #d4af37, #facc15);
}

/* =========================================
   INPUT
========================================= */

input#phone {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 14px;
    font-size: 16px; /* Prevents iOS zoom */
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
}

input#phone::placeholder {
    color: rgba(255,255,255,0.5);
}

input#phone:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250,204,21,0.2);
}

/* =========================================
   BUTTON
========================================= */

.btn-primary-ui {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #d4af37, #facc15);
    color: #0f172a;

    transition: all 0.25s ease;
}

.btn-primary-ui:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(250,204,21,0.3);
}

/* =========================================
   ERROR
========================================= */

.error-text {
    margin-top: 14px;
    color: #f87171;
    font-size: 0.9rem;
}

/* =========================================
   SUCCESS PAGE
========================================= */

#fireworks {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
}

/* =========================================
   SUCCESS HEADING
========================================= */

.ebook {
    font-size: 38px;
    margin-bottom: 10px;
    color: #facc15;
}

.counter {
    font-size: clamp(70px, 10vw, 120px);
    font-weight: 800;
    color: #ffffff;
    margin: 10px 0 30px;
}

/* =========================================
   BOTTOM TEXT
========================================= */

#bottom {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-top: 30px;
}

/* =========================================
   ARC TITLE
========================================= */

/* .congrats-text {
    font-weight: 700;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: 2px;
    fill: #facc15;
    text-transform: uppercase;
    filter: drop-shadow(0 4px 12px rgba(250,204,21,0.25));
} */
/* =========================================
   ARC TITLE FIX (Mobile Safe)
========================================= */

svg {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
}

.congrats-text {
    font-weight: 700;
    font-size: clamp(22px, 6vw, 46px); /* smaller minimum */
    letter-spacing: 1px; /* reduce spacing */
    fill: #facc15;
    text-transform: uppercase;
    filter: drop-shadow(0 4px 12px rgba(250,204,21,0.25));
}

/* Extra tightening for small iPhones */
@media (max-width: 480px) {
    .congrats-text {
        font-size: 40px;
        letter-spacing: 0.5px;
    }
}
/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {

    .card-ui {
        max-width: 400px;
        width: 400px;
        padding: 28px 20px;
        border-radius: 14px;
    }

    .brand-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .ebook {
        font-size: 26px;
    }

    #bottom {
        font-size: 1rem;
    }
}