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

a, button, input {
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: "ALS_Sirius";
    src: url("fonts/ALS_Sirius_Regular_0.95.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ALS_Sirius";
    src: url("fonts/ALS_Sirius_Bold_0.95.otf") format("opentype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --ticket-bg: rgba(10, 15, 30, 0.88);
    --ticket-inner: rgba(7, 10, 22, 0.9);
    --ticket-border: rgba(255, 255, 255, 0.12);
    --ticket-text: rgba(238, 242, 255, 0.94);
    --ticket-muted: rgba(238, 242, 255, 0.68);
    --grad-main: linear-gradient(135deg, #00d5ff 0%, #7322ef 55%, #00942a 100%);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ticket-text);
    font-family: 'ALS_Sirius', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(900px 520px at 20% 12%, rgba(0, 213, 255, 0.14) 0%, transparent 55%),
        radial-gradient(820px 520px at 82% 18%, rgba(115, 34, 239, 0.14) 0%, transparent 60%),
        radial-gradient(720px 520px at 50% 85%, rgba(0, 148, 42, 0.11) 0%, transparent 60%),
        linear-gradient(180deg, #05060b 0%, #070a16 45%, #0b1026 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px);
    opacity: 0.16;
}

.mobile-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.mobile-blob {
    position: absolute;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    filter: blur(84px);
    opacity: 0.18;
}

.mblob-1 {
    width: 520px;
    height: 520px;
    background: #00d5ff;
    top: -180px;
    left: -120px;
}

.mblob-2 {
    width: 640px;
    height: 640px;
    background: #7322ef;
    right: -180px;
    top: 14%;
}

.mblob-3 {
    width: 520px;
    height: 520px;
    background: #00942a;
    left: 45%;
    bottom: -180px;
}

.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(var(--safe-top) + 18px)
        calc(var(--safe-right) + 14px)
        calc(var(--safe-bottom) + 22px)
        calc(var(--safe-left) + 14px);
}

.ticket-shell,
.admin-card-wrap {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.ticket-outline {
    position: relative;
    padding: 1px;
    border-radius: 30px;
    background: var(--grad-main);
    box-shadow: var(--shadow);
}

.ticket {
    position: relative;
    overflow: hidden;
    border-radius: 29px;
    background: var(--ticket-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.ticket::before,
.ticket::after {
    content: "";
    position: absolute;
    top: 58%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #070a16;
    transform: translateY(-50%);
    z-index: 4;
}

.ticket::before {
    left: -14px;
}

.ticket::after {
    right: -14px;
}

.ticket-top {
    position: relative;
    padding: 22px 20px 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 22%),
        linear-gradient(135deg, rgba(0, 213, 255, 0.22), rgba(115, 34, 239, 0.20), rgba(0, 148, 42, 0.18)),
        rgba(7, 10, 22, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 0.08em;
}

.title {
    margin: 0;
    font-size: 34px;
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.subtitle {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ticket-muted);
}

.ticket-body {
    position: relative;
    padding: 22px 18px 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
        var(--ticket-inner);
}

.ticket-glow {
    position: absolute;
    inset: auto 18px 18px 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 213, 255, 0), rgba(0, 213, 255, 0.7), rgba(115, 34, 239, 0.6), rgba(0, 213, 255, 0));
    opacity: 0.8;
}

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

.field-label {
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(238, 242, 255, 0.7);
}

.field-shell {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
        rgba(7, 10, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(0,213,255,0.08), 0 16px 30px rgba(0,0,0,0.22);
}

.field-shell:focus-within {
    border-color: rgba(0, 213, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(0,213,255,0.22), 0 0 32px rgba(0,213,255,0.12);
}

.field-shell.is-error {
    border-color: rgba(255, 102, 143, 0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(255,102,143,0.18), 0 0 24px rgba(255,102,143,0.08);
}

.field-prefix {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    line-height: 1;
    color: rgba(238, 242, 255, 0.78);
}

.phone-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ticket-text);
    font: inherit;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.phone-input::placeholder {
    color: rgba(238, 242, 255, 0.28);
}

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    border: 0;
    border-radius: 22px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: linear-gradient(135deg, #00d5ff 0%, #7322ef 50%, #00942a 100%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255,255,255,0.08), 0 0 26px rgba(0,213,255,0.12);
}

.secondary-button {
    background: linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.06));
    color: var(--ticket-text);
    border: 1px solid rgba(255,255,255,0.12);
}

.error-text {
    padding: 2px 4px 0;
    font-size: 13px;
    line-height: 1.35;
    color: #ff95b2;
}

.success-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 8px 4px;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(238, 242, 255, 0.8);
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.success-title {
    font-size: 36px;
    line-height: 0.98;
    font-weight: 900;
    text-transform: uppercase;
    text-wrap: balance;
}

.admin-page {
    align-items: center;
}

.admin-card .ticket-body {
    padding-top: 24px;
}

.admin-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.secondary-link {
    margin-top: 2px;
    color: rgba(238, 242, 255, 0.76);
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 380px) {
    .title {
        font-size: 30px;
    }

    .success-title {
        font-size: 31px;
    }

    .phone-input {
        font-size: 19px;
    }

    .field-shell {
        gap: 10px;
        padding-inline: 12px;
    }
}
