*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg: #08111f;
    --ink: #f8fafc;
    --muted: #a8b3c7;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.14);
    --line: rgba(255, 255, 255, 0.16);
    --hot: #ff3d7f;
    --gold: #ffd166;
    --cyan: #37d5ff;
    --green: #57e389;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 14% 14%, rgba(255, 209, 102, 0.22), transparent 27%),
        radial-gradient(circle at 82% 20%, rgba(55, 213, 255, 0.2), transparent 26%),
        linear-gradient(135deg, #08111f 0%, #13213a 48%, #210b22 100%);
    overflow-x: hidden;
}

[dir="rtl"] body {
    text-align: right;
}

button,
input {
    font: inherit;
}

.giveaway-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 48px;
}

.hero {
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(310px, 0.97fr);
    gap: 34px;
    align-items: center;
}

.hero__content {
    min-width: 0;
    max-width: 680px;
}

.eyebrow,
.form-kicker {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 10ch;
    margin-bottom: 18px;
    font-size: clamp(58px, 8vw, 112px);
    line-height: 0.92;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.hero__lead {
    max-width: 58ch;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(78px, 1fr));
    max-width: 560px;
    gap: 10px;
    margin-bottom: 22px;
}

.countdown__item {
    min-height: 94px;
    display: grid;
    place-items: center;
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.countdown__item strong {
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1;
    font-weight: 900;
}

.countdown__item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.instagram-button,
.entry-form button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    color: #111827;
    background: linear-gradient(135deg, var(--gold), #ff8f3d 52%, var(--hot));
    box-shadow: 0 18px 42px rgba(255, 61, 127, 0.26);
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.instagram-button {
    padding: 0 22px;
}

.instagram-button:hover,
.entry-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(255, 61, 127, 0.34);
}

.instagram-button__icon {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 6px;
    position: relative;
}

.instagram-button__icon::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.instagram-button__icon::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.phone-stage {
    position: relative;
    min-width: 0;
    min-height: 590px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.phone-stage::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, var(--cyan), var(--hot), var(--gold), var(--green), var(--cyan));
    filter: blur(10px);
    opacity: 0.32;
}

.phone {
    position: relative;
    z-index: 2;
    width: min(300px, 72vw);
    aspect-ratio: 9 / 18.5;
    border: 12px solid #05070d;
    border-radius: 42px;
    background: #101827;
    box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    transform: rotate(7deg);
}

.phone__notch {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 4;
    width: 96px;
    height: 24px;
    border-radius: 0 0 18px 18px;
    background: #05070d;
    transform: translateX(-50%);
}

.phone__screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: grid;
    place-content: center;
    gap: 10px;
    border-radius: 29px;
    text-align: center;
    background:
        radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.35), transparent 20%),
        linear-gradient(145deg, #6ee7f9 0%, #a78bfa 42%, #fb7185 100%);
}

.phone__screen span {
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
}

.phone__screen strong {
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
}

.phone__shine {
    position: absolute;
    inset: -40% 42% 0 14%;
    width: 70px;
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(24deg);
}

.phone__camera {
    position: absolute;
    left: -78px;
    width: 46px;
    height: 46px;
    border: 9px solid #111827;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #dbeafe 0 9%, #2c3658 11% 34%, #05070d 36%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.phone__camera--one {
    top: 90px;
}

.phone__camera--two {
    top: 150px;
}

.ticket {
    position: absolute;
    z-index: 3;
    padding: 16px 24px;
    border: 1px dashed rgba(17, 24, 39, 0.28);
    border-radius: 8px;
    color: #111827;
    background: var(--gold);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    font-weight: 900;
}

.ticket--top {
    top: 58px;
    right: 24px;
    transform: rotate(10deg);
}

.ticket--bottom {
    bottom: 76px;
    left: 20px;
    background: #57e389;
    transform: rotate(-8deg);
}

.entry-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.steps,
.entry-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.steps {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 70px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.step span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #101827;
    background: var(--cyan);
    font-weight: 900;
}

.step p {
    margin: 0;
    color: #d9e2ef;
    line-height: 1.45;
    font-weight: 700;
}

.entry-form {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 24px;
    overflow: hidden;
}

.entry-form h2 {
    margin-bottom: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.02;
}

.entry-form label {
    display: grid;
    gap: 8px;
}

.entry-form label span {
    color: #dbe5f4;
    font-size: 14px;
    font-weight: 900;
}

.entry-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.09);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.entry-form input:focus {
    border-color: rgba(55, 213, 255, 0.78);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(55, 213, 255, 0.12);
}

.entry-form input::placeholder {
    color: rgba(216, 226, 239, 0.55);
}

.entry-form em {
    color: #ff9dbb;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.form-lock {
    position: absolute;
    inset: 0;
    z-index: 5;
    min-height: 100%;
    display: grid;
    gap: 12px;
    place-items: center;
    align-content: center;
    padding: 24px;
    border: 0;
    border-radius: 8px;
    background: rgba(8, 17, 31, 0.42);
    backdrop-filter: blur(3px);
    text-align: center;
}

.form-lock > div,
.form-follow-button,
.form-follow-progress,
.unlock-loader,
.form-lock em {
    width: min(100%, 360px);
}

.form-lock strong {
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 16px;
    font-weight: 900;
}

.form-lock p {
    margin: 0;
    color: #d9e2ef;
    line-height: 1.55;
}

.form-follow-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 8px;
    color: #111827;
    background: linear-gradient(135deg, var(--gold), #ff8f3d 52%, var(--hot));
    box-shadow: 0 14px 32px rgba(255, 61, 127, 0.22);
    font-weight: 900;
    text-decoration: none;
    justify-self: center;
    min-width: min(100%, 260px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.form-follow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(255, 61, 127, 0.3);
}

.unlock-loader {
    display: none;
    place-items: center;
    gap: 8px;
}

.unlock-loader span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--gold);
    animation: unlockSpin 0.75s linear infinite;
}

.unlock-loader p {
    color: var(--gold);
    font-weight: 900;
}

.entry-form.is-loading .form-follow-button {
    opacity: 0.55;
    pointer-events: none;
}

.entry-form.is-loading .unlock-loader {
    display: grid;
}

.form-follow-progress {
    width: auto;
    min-width: 76px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 900;
}

@keyframes unlockSpin {
    to {
        transform: rotate(360deg);
    }
}

.entry-form.is-locked > :not(.form-lock):not(input[type="hidden"]),
.entry-form.is-loading > :not(.form-lock):not(input[type="hidden"]),
.entry-form.is-closed > :not(.form-lock):not(input[type="hidden"]) {
    filter: blur(5px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.entry-form.is-locked input:not([type="hidden"]) {
    cursor: not-allowed;
}

.entry-form.is-closed input:not([type="hidden"]) {
    cursor: not-allowed;
}

.entry-form.is-unlocked .form-lock {
    display: none;
}

.entry-form.is-unlocked .locked-field,
.entry-form.is-unlocked button[type="submit"] {
    filter: none;
    opacity: 1;
}

.entry-form button {
    width: 100%;
}

.fine-print {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.45;
}

.alert--success {
    color: #063318;
    background: #8af0ae;
}

.alert--error {
    color: #3f0618;
    background: #ff9dbb;
}

@media (max-width: 860px) {
    .giveaway-page {
        width: min(100% - 24px, 620px);
        padding-top: 18px;
    }

    .hero,
    .entry-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        gap: 8px;
        padding-top: 28px;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(42px, 15vw, 68px);
        line-height: 1.02;
    }

    .hero__lead {
        font-size: 16px;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .phone-stage {
        min-height: 430px;
    }

    .ticket--top {
        right: 0;
    }

    .ticket--bottom {
        left: 0;
        bottom: 46px;
    }
}

@media (max-width: 460px) {
    .giveaway-page {
        width: min(100% - 20px, 420px);
        padding-top: 12px;
    }

    .hero {
        padding-top: 18px;
    }

    .hero__lead {
        font-size: 15px;
        line-height: 1.65;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .countdown__item {
        min-height: 84px;
        padding: 12px 8px;
    }

    .phone {
        width: min(238px, 70vw);
        transform: rotate(5deg);
    }

    .phone__camera {
        left: -44px;
        width: 38px;
        height: 38px;
        border-width: 7px;
    }

    .ticket {
        padding: 12px 16px;
        font-size: 14px;
    }

    .ticket--top {
        top: 34px;
        right: 4px;
    }

    .ticket--bottom {
        bottom: 42px;
        left: 4px;
    }

    .entry-form,
    .steps {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: clamp(38px, 14vw, 50px);
    }

    .countdown__item strong {
        font-size: 25px;
    }

    .instagram-button {
        width: 100%;
        padding: 0 12px;
        font-size: 14px;
    }

    .phone-stage {
        min-height: 390px;
    }

    .phone {
        width: min(214px, 68vw);
    }

    .phone__screen strong {
        font-size: 38px;
    }
}
