/* ============================================================
   Snapplay - new homepage stylesheet
   shared across: main_homepage / main_login / main_signup_email
                  / main_signup_cust / main_temp_pwd
   ============================================================ */


   
/* ============ Design tokens ============ */
:root {
    --brand-primary: #FF6B1A;
    --brand-primary-light: #FF8C42;
    --brand-primary-dark: #E55A0F;
    --brand-secondary: #5B21B6;
    --brand-accent: #06B6D4;
    --dark-1: #0A0E27;
    --dark-2: #151B3D;
}

/* ============ Reset & base ============ */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body {
    margin: 0; padding: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: #0A0E27;
    color: #fff;
}

/* ============ Body variants ============ */
body.page-temp-pwd {
    background:
        radial-gradient(ellipse at top left, rgba(91, 33, 182, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 107, 26, 0.3) 0%, transparent 55%),
        linear-gradient(180deg, #0A0E27 0%, #151B3D 100%);
    position: relative;
    overflow-x: hidden;
}
body.page-homepage { overflow-x: hidden; }

/* ============ Shared atoms ============ */
.gradient-text { color: #FF6B1A; }

.grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.5;
    pointer-events: none;
}
.blob.orange { background: #FF6B1A; }
.blob.purple { background: #5B21B6; }

/* page-temp-pwd uses fixed blobs */
body.page-temp-pwd > .grid-pattern { position: fixed; z-index: 0; }
body.page-temp-pwd > .blob { position: fixed; z-index: 0; opacity: 0.4; }
body.page-temp-pwd > .blob.orange { width: 500px; height: 500px; top: -150px; right: -150px; }
body.page-temp-pwd > .blob.purple { width: 600px; height: 600px; bottom: -200px; left: -200px; }

/* ============ Brand logo ============ */
.brand-logo { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; text-decoration: none; color: inherit; cursor: pointer; }
.brand-logo .mark {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF6B1A, #E55A0F);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: white; font-size: 22px;
    box-shadow: 0 10px 30px rgba(255, 107, 26, 0.4);
}
.brand-logo .name { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }

.top-logo { display: none; align-items: center; gap: 10px; justify-content: center; margin-bottom: 24px; text-decoration: none; color: inherit; cursor: pointer; }
@media (max-width: 1023px) { .top-logo { display: flex; } }
.top-logo .mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF6B1A, #E55A0F);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: white;
}
.top-logo .name { font-size: 20px; font-weight: 900; color: #111; letter-spacing: -0.02em; }

/* ============ Two-column auth layout
              (used by login / signup_email / signup_cust) ============ */
.page-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .page-wrap { grid-template-columns: 1.1fr 1fr; }
}

.brand-side {
    display: none; position: relative;
    padding: 60px;
    overflow: hidden;
}
.brand-side.bg-tl {
    background:
        radial-gradient(ellipse at top left, rgba(91, 33, 182, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 107, 26, 0.35) 0%, transparent 55%),
        linear-gradient(180deg, #0A0E27 0%, #151B3D 100%);
}
.brand-side.bg-tr {
    background:
        radial-gradient(ellipse at top right, rgba(91, 33, 182, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(255, 107, 26, 0.35) 0%, transparent 55%),
        linear-gradient(180deg, #0A0E27 0%, #151B3D 100%);
}
@media (min-width: 1024px) {
    .brand-side { display: flex; flex-direction: column; justify-content: space-between; }
}

.brand-side .blob.orange { width: 400px; height: 400px; }
.brand-side .blob.purple { width: 500px; height: 500px; }
.brand-side.bg-tl .blob.orange { top: -100px; right: -100px; }
.brand-side.bg-tl .blob.purple { bottom: -150px; left: -150px; }
.brand-side.bg-tr .blob.orange { bottom: -100px; right: -100px; }
.brand-side.bg-tr .blob.purple { top: -150px; left: -150px; }

.brand-hero { position: relative; z-index: 2; }
.brand-hero h1 {
    font-size: 48px; font-weight: 900; line-height: 1.1;
    letter-spacing: -0.02em; margin: 0 0 24px 0;
}
.brand-hero.compact h1 { font-size: 44px; line-height: 1.15; margin-bottom: 20px; }
.brand-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 17px; line-height: 1.6;
    margin: 0 0 32px 0; max-width: 460px;
}
.brand-hero.compact p { font-size: 16px; }

.brand-bottom { position: relative; z-index: 2; color: rgba(255,255,255,0.4); font-size: 12px; }

/* ============ Brand features (login - 2x2 grid) ============ */
.brand-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    position: relative; z-index: 2;
}
.feat {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
}
.feat .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    font-size: 16px;
}
.feat .title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.feat .desc { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ============ Brand benefits (signup_email - vertical list) ============ */
.benefit-list { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; }
.benefit {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px 20px;
}
.benefit .check {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.benefit .text { font-weight: 600; font-size: 14px; }
.benefit .text small {
    display: block; color: rgba(255,255,255,0.5);
    font-size: 12px; font-weight: 400; margin-top: 2px;
}

/* ============ Info cards (signup_cust) ============ */
.info-card {
    position: relative; z-index: 2;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}
.info-card .title {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.info-card .title i { color: #FFA855; }
.info-card .body { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; }
.info-card code {
    background: rgba(255,255,255,0.08);
    padding: 2px 8px; border-radius: 6px;
    font-size: 12px; color: #FFA855;
}

/* ============ Form side ============ */
.form-side {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px; background: #fff; color: #1f2937;
    position: relative;
}
.form-card { width: 100%; max-width: 420px; }
.form-card.wide { max-width: 460px; }

.form-card h2 {
    font-size: 32px; font-weight: 800;
    color: #111; margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}
.form-card.wide h2 { font-size: 28px; }
.form-card .subtitle { color: #6b7280; margin: 0 0 32px 0; font-size: 15px; }
.form-card.wide .subtitle { margin-bottom: 28px; }

/* ============ Stepper (signup pages) ============ */
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 8px; }
.step .num {
    width: 28px; height: 28px; border-radius: 50%;
    background: #FF6B1A; color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.step.done .num { background: #22c55e; }
.step.inactive .num { background: #e5e7eb; color: #9ca3af; }
.step .label { font-size: 13px; font-weight: 600; color: #111; }
.step.inactive .label { color: #9ca3af; }
.step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 4px; }
.step-line.done { background: #22c55e; }

/* ============ Form fields ============ */
.field-group { margin-bottom: 18px; }
.form-card.wide .field-group { margin-bottom: 16px; }
.field-label {
    display: block; font-size: 13px;
    font-weight: 600; color: #374151;
    margin-bottom: 8px;
}
.field-wrap { position: relative; }
.field-wrap .field-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

/* form-card inputs (light) */
.form-card .field-wrap input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    background: #fafafa;
    transition: all 0.2s ease;
    outline: none;
    line-height: 1.4;
}
.form-card.wide .field-wrap input { padding: 13px 16px 13px 44px; }
.form-card .field-wrap input:focus {
    border-color: #FF6B1A;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.1);
}
.form-card .field-wrap.error input,
.form-card .field-wrap input.error {
    border-color: #ef4444;
    background: #fef2f2;
}
.form-card .field-wrap .field-icon { color: #9ca3af; font-size: 15px; }
.form-card.wide .field-wrap .field-icon { font-size: 14px; }
.form-card .field-wrap input:focus ~ .field-icon { color: #FF6B1A; }

/* ============ Custom checkbox ============ */
.check-row {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 0; font-size: 14px; color: #374151;
}
.check-row .link {
    color: #FF6B1A;
    text-decoration: underline;
    cursor: pointer;
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
}
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.checkbox input { display: none; }
.checkbox .box {
    width: 18px; height: 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.checkbox .box::after {
    content: '';
    width: 5px; height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    margin-top: -2px;
}
.checkbox input:checked + .box {
    background: #FF6B1A;
    border-color: #FF6B1A;
}
.checkbox input:checked + .box::after { transform: rotate(45deg) scale(1); }

/* ============ Primary buttons ============ */
.submit-btn, .login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF6B1A 0%, #FF8C42 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}
.submit-btn:hover, .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(255, 107, 26, 0.5);
}
.submit-btn:disabled, .login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.submit-btn.loading, .login-btn.loading { color: transparent; }
.submit-btn.loading::after, .login-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Form footer / divider ============ */
.form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}
.form-footer a {
    color: #FF6B1A;
    font-weight: 600;
    text-decoration: none;
}
.form-footer a:hover { text-decoration: underline; }

.divider {
    display: flex; align-items: center; text-align: center;
    color: #9ca3af; margin: 24px 0; font-size: 12px;
}
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid #e5e7eb; }
.divider::before { margin-right: 12px; }
.divider::after { margin-left: 12px; }

/* ============ Hint / info boxes ============ */
.hint-box {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
    display: flex; gap: 10px;
}
.hint-box i { color: #f97316; margin-top: 2px; }
.hint-box a { color: #c2410c; font-weight: 700; text-decoration: underline; }

/* ============ Toast ============ */
.toast-container {
    position: fixed; top: 24px; right: 24px;
    z-index: 1100;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    padding: 14px 18px;
    background: #1f2937; color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    font-size: 14px; font-weight: 500;
    min-width: 240px; max-width: 360px;
    pointer-events: auto;
    transform: translateX(20px); opacity: 0;
    transition: all 0.25s ease;
    display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.error { background: #dc2626; }
.toast.success { background: #059669; }

/* ============ Agreement modal (signup_email) ============ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: #fff;
    color: #111;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.modal-overlay .modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: space-between;
}
.modal-close {
    background: none; border: none;
    font-size: 24px; line-height: 1;
    color: #6b7280; cursor: pointer;
    padding: 0; width: 32px; height: 32px;
    border-radius: 8px;
}
.modal-close:hover { background: #f3f4f6; color: #111; }
.modal-overlay .modal-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.modal-overlay .modal-body iframe { flex: 1; width: 100%; border: none; min-height: 400px; }
.modal-agree {
    padding: 14px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex; align-items: center;
}
.modal-overlay .modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}
.modal-overlay .modal-footer button {
    padding: 10px 24px;
    background: linear-gradient(135deg, #FF6B1A, #FF8C42);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700; font-family: inherit; cursor: pointer;
}

/* ============ Temp_pwd page ============ */
.nav {
    position: relative; z-index: 10;
    padding: 24px 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav .brand-logo { display: flex; align-items: center; gap: 10px; }
.nav .brand-logo .mark {
    width: 36px; height: 36px; border-radius: 10px;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(255, 107, 26, 0.4);
}
.nav .brand-logo .name { font-size: 20px; color: #fff; }
.nav .back-link {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    transition: color 0.2s;
}
.nav .back-link:hover { color: #fff; }

.page-content {
    position: relative; z-index: 1;
    min-height: calc(100vh - 96px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

.icon-wrap {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.2), rgba(255, 140, 66, 0.2));
    border: 1px solid rgba(255, 107, 26, 0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px auto;
    position: relative;
}
.icon-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.3), transparent);
    filter: blur(20px);
    z-index: -1;
}
.icon-wrap i { font-size: 28px; color: #FFA855; }

.card h2 {
    text-align: center;
    font-size: 28px; font-weight: 800;
    color: #fff; margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}
.card .subtitle {
    text-align: center;
    color: rgba(255,255,255,0.6);
    margin: 0 0 32px 0;
    font-size: 15px; line-height: 1.6;
}

/* card inputs (dark) */
.card .field-group { margin-bottom: 20px; }
.card .field-label {
    display: block; font-size: 13px;
    font-weight: 600; color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}
.card .field-wrap input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #fff;
    background: rgba(255,255,255,0.05);
    transition: all 0.2s ease;
    outline: none;
    line-height: 1.4;
}
.card .field-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.card .field-wrap input:focus {
    border-color: #FF6B1A;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.15);
}
.card .field-wrap.error input { border-color: #ef4444; background: rgba(239,68,68,0.1); }
.card .field-wrap .field-icon { color: rgba(255,255,255,0.4); font-size: 15px; }
.card .field-wrap input:focus ~ .field-icon { color: #FFA855; }

.info-tip {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    display: flex; gap: 10px; line-height: 1.5;
}
.info-tip i { color: #FFA855; margin-top: 2px; }

.footer-link {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}
.footer-link a {
    color: #FFA855;
    font-weight: 600;
    text-decoration: none;
}
.footer-link a:hover { text-decoration: underline; }

/* ============================================================
   Homepage-specific styles (main_homepage)
   ============================================================ */
.hero-bg {
    background:
        radial-gradient(ellipse at top left, rgba(91, 33, 182, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(255, 107, 26, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(6, 182, 212, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, #0A0E27 0%, #151B3D 100%);
}
.glow-orange { box-shadow: 0 0 40px rgba(255, 107, 26, 0.4), 0 0 80px rgba(255, 107, 26, 0.2); }
.glow-purple { box-shadow: 0 0 60px rgba(91, 33, 182, 0.5); }

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-light {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.float { animation: float 6s ease-in-out infinite; }
.float-delay-1 { animation-delay: 1s; }
.float-delay-2 { animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* homepage page uses animated blobs */
body.page-homepage .blob { animation: blob 12s infinite ease-in-out; }
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 3rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee__group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 3rem;
    min-width: 100%;
    animation: scroll 30s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 3rem)); }
}

.feature-card { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 26, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.phone-shadow {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 30px 60px -15px rgba(0,0,0,0.6),
        0 0 100px -20px rgba(255, 107, 26, 0.3);
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 107, 26, 0.4);
    animation: pulseRing 2s infinite;
}

.stat-num {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6B1A 0%, #FF8C42 100%);
    transition: all 0.3s ease;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(255, 107, 26, 0.5);
}
.btn-primary:hover::after { left: 100%; }

.item-pulse { animation: itemPulse 2.4s infinite ease-in-out; }
@keyframes itemPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.92; }
}

/* Phone mockup hover scale (triggered by right product list) */
.mockup {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}
.mockup.is-active {
    transform: scale(1.15);
    z-index: 10;
}

/* Mockup popup overlay (used in mockup-3 - betting result)
   - Default: hidden (opacity 0, instant)
   - On .is-active: fade in with delay so scale-up plays first
   - On mouseleave: rule no longer applies -> snaps back instantly
*/
.mockup-popup {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0s;
}
.mockup-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.mockup-popup-card {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 14px 10px 10px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    transform: scale(0.85);
}
.mockup.is-active .mockup-popup {
    opacity: 1;
    transition: opacity 0.3s ease 0.4s;
}
.mockup.is-active .mockup-popup-card {
    animation: mockup-popup-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
@keyframes mockup-popup-pop {
    from { transform: scale(0.85); }
    to   { transform: scale(1); }
}

/* Mockup vertical scroll image (used in mockup-0)
   - Default: image at top (translateY 0), only top portion visible
   - On hover (.is-active): scroll down until image bottom aligns with container bottom
   - mockup container 22rem with p-2 -> inner content height ≈ 21rem
*/
.mockup-scroll-img {
    transform: translateY(0);
}
.mockup.is-active .mockup-scroll-img {
    animation: mockup-scroll 10s linear forwards;
}
@keyframes mockup-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(calc(-100% + 21rem)); }
}

/* Mockup carousel */
.mockup-carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.mockup-carousel-track {
    display: flex;
    height: 100%;
    align-items: flex-start;
    transform: translateX(0);
}
.mockup-carousel-track > img {
    height: auto;
    display: block;
    flex-shrink: 0;
}
.mockup-carousel-track > .mockup-slide {
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}
/* 4-image carousel (3 images + duplicate first) */
.mockup-carousel-track--4 { width: 400%; }
.mockup-carousel-track--4 > img,
.mockup-carousel-track--4 > .mockup-slide { width: 25%; }
.mockup.is-active .mockup-carousel-track--4 {
    animation: mockup-carousel-4 6s ease-in-out forwards;
}
@keyframes mockup-carousel-4 {
    0%   { transform: translateX(0); }
    18%  { transform: translateX(0); }
    25%  { transform: translateX(-25%); }
    43%  { transform: translateX(-25%); }
    50%  { transform: translateX(-50%); }
    68%  { transform: translateX(-50%); }
    75%  { transform: translateX(-75%); }
    100% { transform: translateX(-75%); }
}
/* 5-image carousel (4 images + duplicate first) */
.mockup-carousel-track--5 { width: 500%; }
.mockup-carousel-track--5 > img,
.mockup-carousel-track--5 > .mockup-slide { width: 20%; }
.mockup.is-active .mockup-carousel-track--5 {
    animation: mockup-carousel-5 6s ease-in-out forwards;
}
@keyframes mockup-carousel-5 {
    0%   { transform: translateX(0); }
    8%   { transform: translateX(0); }
    20%  { transform: translateX(-20%); }
    28%  { transform: translateX(-20%); }
    40%  { transform: translateX(-40%); }
    48%  { transform: translateX(-40%); }
    60%  { transform: translateX(-60%); }
    68%  { transform: translateX(-60%); }
    80%  { transform: translateX(-80%); }
    100% { transform: translateX(-80%); }
}
/* 7-image looping carousel (7 originals + 7 duplicates = 14 items)
   Random initial position via --carousel-start CSS variable (set by JS at page load).
   On hover, advance by 7 image widths (50% of 1400% track) so we end visually at the
   starting image regardless of where we began. */
.mockup-carousel-track--7 { width: 1400%; transform: translateX(var(--carousel-start, 0%)); }
.mockup-carousel-track--7 > img,
.mockup-carousel-track--7 > .mockup-slide { width: 7.142857%; }
.mockup.is-active .mockup-carousel-track--7 {
    animation: mockup-carousel-7 8s ease-in-out forwards;
}
@keyframes mockup-carousel-7 {
    0%   { transform: translateX(var(--carousel-start, 0%)); }
    5%   { transform: translateX(var(--carousel-start, 0%)); }
    12%  { transform: translateX(calc(var(--carousel-start, 0%) - 7.142857%)); }
    17%  { transform: translateX(calc(var(--carousel-start, 0%) - 7.142857%)); }
    24%  { transform: translateX(calc(var(--carousel-start, 0%) - 14.285714%)); }
    29%  { transform: translateX(calc(var(--carousel-start, 0%) - 14.285714%)); }
    36%  { transform: translateX(calc(var(--carousel-start, 0%) - 21.428571%)); }
    41%  { transform: translateX(calc(var(--carousel-start, 0%) - 21.428571%)); }
    48%  { transform: translateX(calc(var(--carousel-start, 0%) - 28.571429%)); }
    53%  { transform: translateX(calc(var(--carousel-start, 0%) - 28.571429%)); }
    60%  { transform: translateX(calc(var(--carousel-start, 0%) - 35.714286%)); }
    65%  { transform: translateX(calc(var(--carousel-start, 0%) - 35.714286%)); }
    72%  { transform: translateX(calc(var(--carousel-start, 0%) - 42.857143%)); }
    77%  { transform: translateX(calc(var(--carousel-start, 0%) - 42.857143%)); }
    84%  { transform: translateX(calc(var(--carousel-start, 0%) - 50%)); }
    100% { transform: translateX(calc(var(--carousel-start, 0%) - 50%)); }
}

/* homepage agreement modal (.modal / .modal-content) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(8px);
}
.modal-content {
    background-color: #fefefe;
    color: #111;
    margin: 4% auto;
    width: 90%;
    max-width: 860px;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 88vh;
    overflow: hidden;
}
.modal .modal-body { flex-grow: 1; overflow: hidden; }
.modal .modal-body iframe { width: 100%; height: 100%; border: none; }
.modal .modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #f9fafb;
}
#closeModalButton {
    padding: 10px 24px;
    border: none;
    background: linear-gradient(135deg, #FF6B1A 0%, #FF8C42 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}
#closeModalButton:hover { transform: translateY(-1px); }

/* homepage scrollbar */
body.page-homepage::-webkit-scrollbar { width: 10px; }
body.page-homepage::-webkit-scrollbar-track { background: #0A0E27; }
body.page-homepage::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 5px; }
body.page-homepage::-webkit-scrollbar-thumb:hover { background: #6b7280; }
