/* RESET & CƠ BẢN */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

/* VIDEO NỀN */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* KHUNG CHỨA */
.card {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* TIÊU ĐỀ */
h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
}

h1 span {
    color: #ff3333;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
}

/* BƯỚC */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DANH SÁCH RÚT TIỀN */
.ticker-box {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    height: 100px;
    overflow: hidden;
    margin-bottom: 20px;
    text-align: left;
    padding: 5px 10px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.ticker-content {
    animation: scrollUp 15s linear infinite;
}

.ticker-item {
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.ticker-item strong {
    color: #66b3ff;
    display: block;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-item .green-text {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-300px);
    }
}

/* NÚT BẤM */
.btn-submit {
    background: #0066cc;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-submit:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CHECKBOX */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 20px;
    font-size: 14px;
    padding: 0 10px;
    font-weight: 700;
}

.checkbox-group label {
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    min-width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066cc;
}

/* BƯỚC 2 */
.hourglass {
    font-size: 50px;
    display: inline-block;
    margin-bottom: 10px;
    animation: spinSand 2.5s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

@keyframes spinSand {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.badge {
    background: rgba(0, 102, 204, 0.7);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 2px #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.reward-box {
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.reward-item {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.5);
}

.reward-item:last-child {
    margin-bottom: 0;
}

.text-blue {
    color: #33ccff;
    font-weight: 900;
    text-shadow: 0 0 5px rgba(51, 204, 255, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.shine-text {
    background: linear-gradient(120deg, #fff 0%, #fff 40%, #66b3ff 50%, #fff 60%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 2.5s linear infinite;
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 10px 0;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.9));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* PROGRESS BAR */
.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.progress-bar-striped {
    width: 0%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.25) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    background-color: #00e676;
    transition: width 5s linear;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    from {
        background-position: 1rem 0;
    }

    to {
        background-position: 0 0;
    }
}

/* NÚT ÂM THANH */
.sound-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    font-weight: 700;
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 2px #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* FOOTER */
.footer-text {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 3px #000;
}

/* AUTO REDIRECT AREA */
.auto-redirect-area {
    display: none;
    text-align: center;
    margin-top: 15px;
}

.auto-redirect-area .status-label {
    color: #00e676;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.auto-redirect-area .status-label input {
    margin: 0;
    width: 16px;
    height: 16px;
    filter: grayscale(100%) brightness(200%);
}

.countdown-text {
    color: #00e676;
    font-size: 24px;
    font-weight: 900;
    margin-top: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 255, 0, 0.4);
}

.status-text {
    color: #e2e8f0;
    font-size: 13px;
    margin-top: 10px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.icon-gift {
    font-size: 40px;
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.icon-gift img {
    width: 64px;
    height: 64px;
}

.sub-text {
    color: #66b3ff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.action-area-center {
    justify-content: center;
    text-align: center;
}