/* Общие стили для всех страниц */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #222124;
}

body {
    background: #eeecfc;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 160, 220, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(180, 120, 200, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    color: #ffffff;
    font-weight: 700;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    font-weight: 500;
}

/* Emoji background waterfall */
.emoji-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.emoji-bg span {
    position: absolute;
    opacity: 0.1;
    user-select: none;
    animation: emojiFall linear infinite;
}

@media (max-width: 768px) {
    .emoji-bg {
        display: none;
    }
}

@keyframes emojiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
    }

    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
    }
}

/* Header section for spin-wheel pages */
.header-section {
    margin-bottom: 10px;
    text-align: center;
}

.header-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2fe079, #19bb62);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 50px;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(39, 221, 115, 0.4);
    animation: badgePulse 1s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.header-section h1 {
    animation: none;
    text-shadow: none;
    font-size: 3.2rem;
    font-weight: 1000;
    color: var(--primary-color);
    margin-bottom: 4px;
    letter-spacing: 2px;
    line-height: 1.1;
}

.header-section h1 .highlight {
    color: #7700ff;
    paint-order: stroke fill;
    font-size: 100%;
    font-weight: 1000;
}

.header-sub {
    font-family: 'Lilita One', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.header-hint {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    overflow: visible;
}

.wheel {
    width: 100%;
    height: auto;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.21, 0.99);
    transform-origin: center;
    border-radius: 50%;
}

.wheel-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: auto;
    z-index: 5;
    opacity: 1;
    animation: slowSpin 60s linear infinite;
    display: none;
}

@keyframes slowSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 10;
    width: 130px;
    height: 130px;
    padding: 10px;
    background: #6C3BFF;
    color: #ffffff;
    border-radius: 50%;
    border: 5px solid #ffffff;
    font-weight: 1000;
    box-shadow: rgb(50 50 93 / 82%) 0px 50px 100px -20px, rgb(0 0 0 / 37%) 0px 30px 60px -30px, rgb(10 37 64 / 78%) 0px -2px 6px 0px inset;
    cursor: pointer;
}

.pointer {
    position: absolute;
    top: 7px;
    left: 51%;
    transform: translateX(-51%);
    width: 25px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 4px 8px #0000003d);
}

.pointer img {
    width: 100%;
    height: 100%;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    color: var(--primary-color);
}

.footer-text-icon {
    width: 25px;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--primary-color)88;
}

.footer-terms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: var(--primary-color);
}

.footer-link {
    color: inherit;
    text-decoration: none;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: #cfcfcfcc;
    /* 20% transparency */
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    color: #333;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.popup-subtitle {
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: bold;
}

/* Timer Styles - Desktop Clock Design */
.timer-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-digit-group {
    display: flex;
    gap: 5px;
}

.timer-digit {
    background: linear-gradient(135deg, #3498db, #1594e9);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    padding: 15px;
    border-radius: 12px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.timer-digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    border-radius: 12px 12px 0 0;
}

.timer-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-colon {
    color: #3498db;
    font-size: 2.5rem;
    font-weight: bold;
    align-self: center;
    margin: 0 5px;
}

.phone-form {
    margin: 20px 0;
}

.phone-input-container {
    position: relative;
    width: 100%;
}

.phone-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 2;
}

.phone-input {
    width: 100%;
    padding: 15px 15px 15px 40px;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: left;
    transition: all 0.3s ease;
    background: white;
}

.phone-input:focus {
    outline: none;
    border-color: #249beb;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.phone-input.valid {
    border-color: #27ae60;
    background-color: #f8fff9;
}

.phone-input.error {
    border-color: #e74c3c;
    background-color: #fff8f8;
}

.phone-hint {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 5px;
    text-align: left;
}

.terms-text {
    font-size: 0.75rem;
    color: #7f8c8d;
    line-height: 1.4;
    margin: 20px 0;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Checkbox Styles */
.checkbox-group {
    margin: 15px 0;
    text-align: left;
}

.checkbox-item {
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    min-width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.checkbox-label {
    font-size: 0.75rem;
    color: #2c3e50;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label a {
    color: #3498db;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.continue-button {
    background: linear-gradient(to bottom, #21a3fa, #2980b9);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 18px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px #2c9ce766;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.continue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(52, 152, 219, 0.6);
}

.continue-button:active {
    transform: translateY(0);
}

.continue-button:disabled {
    background: linear-gradient(to bottom, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Insurance Type Popup Styles */
.insurance-type-popup {
    text-align: center;
}

.insurance-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.insurance-button {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.insurance-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

/* Question Popup Styles */
.question-popup {
    text-align: center;
}

.question-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.question-subtitle {
    font-size: 0.9rem;
    color: #242929;
    margin-bottom: 30px;
    line-height: 1.4;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.question-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.question-button {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.yes-button {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    color: white;
}

.no-button {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    color: white;
}

.question-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.call-now-popup {
    text-align: center;
}

.call-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
}

.call-number {
    font-size: 1.8rem;
    color: #e74c3c;
    font-weight: bold;
    margin: 20px 0;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px dashed #e74c3c;
}

.call-button {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 250px;
}

.call-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(46, 204, 113, 0.6);
}

.spin-link {
    display: block;
    margin-top: 15px;
    color: rgba(52, 152, 219, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.spin-link:hover {
    color: rgba(52, 152, 219, 1);
    text-decoration: underline;
}

.hidden {
    display: none;
}

.result-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.78);
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
    backdrop-filter: blur(2px);
}

.result-container.show {
    display: flex;
}

.result-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 30px;
    box-sizing: border-box;
}

.prize-image {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    cursor: pointer;
    flex: 1;
}

.try-again-button {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(231, 76, 60, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 100%;
    max-width: 400px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    margin-top: 20px;
    margin-bottom: 10px;
    flex-shrink: 0;
    z-index: 101;
}

.try-again-button:focus {
    outline: none;
}

.try-again-button:hover {
    transform: scale(1.05);
    box-shadow: 0 7px 30px rgba(231, 76, 60, 0.8);
}

.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 20px;
    background: #ffd700;
    top: 0;
    opacity: 0;
}

.confetti-piece:nth-child(odd) {
    background: #ff8c00;
}

.confetti-piece:nth-child(even) {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.confetti-piece:nth-child(3n) {
    background: #ff4081;
}

.confetti-piece:nth-child(4n) {
    background: #3f51b5;
}

.confetti-piece:nth-child(5n) {
    background: #4caf50;
}

/* Стили для текста согласия с инлайн-чекбоксами */
.consent-text {
    font-size: 0.7rem;
    color: #7f8c8d;
    line-height: 1.3;
    margin: 20px 0 0 0;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Стили для инлайн-чекбоксов */
.inline-checkbox {
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
    cursor: pointer;
    vertical-align: middle;
}

.inline-checkbox input[type="checkbox"] {
    margin: 0;
    width: 12px;
    height: 12px;
    accent-color: #3498db;
    cursor: pointer;
}

.checkmark {
    display: none;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .popup-content {
        padding: 20px;
        margin: 10px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .timer-digit {
        font-size: 2rem;
        padding: 12px;
        min-width: 50px;
    }

    .timer-colon {
        font-size: 2rem;
    }

    .insurance-button {
        font-size: 1rem;
        padding: 14px 15px;
    }

    .question-buttons {
        flex-direction: column;
    }

    .result-container {
        padding: 15px;
    }

    .prize-image {
        max-width: 100vw;
        max-height: calc(100vh - 100px);
    }

    .try-again-button {
        font-size: 1.3rem;
        padding: 18px 50px;
        max-width: 350px;
        margin-bottom: 10px;
    }

    .consent-text {
        font-size: 0.65rem;
        max-height: 150px;
    }

    .inline-checkbox input[type="checkbox"] {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .popup-content {
        padding: 15px;
    }

    .popup-title {
        font-size: 1.3rem;
    }

    .timer-digit {
        font-size: 1.5rem;
        padding: 10px;
        min-width: 40px;
    }

    .timer-colon {
        font-size: 1.5rem;
    }

    .insurance-button {
        font-size: 0.9rem;
        padding: 12px 10px;
    }

    .result-container {
        padding: 10px;
    }

    .prize-image {
        max-height: calc(100vh - 90px);
    }

    .try-again-button {
        font-size: 1.1rem;
        padding: 16px 40px;
        max-width: 300px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 2rem;
    }

    .timer-digit {
        font-size: 1.2rem;
        padding: 8px;
        min-width: 35px;
    }

    .insurance-button {
        font-size: 0.8rem;
        padding: 10px 8px;
    }

    .result-container {
        padding: 5px;
    }

    .prize-image {
        max-height: calc(100vh - 80px);
    }

    .try-again-button {
        font-size: 1rem;
        padding: 14px 35px;
        max-width: 250px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .result-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    .prize-image {
        max-width: 70vw;
        max-height: 90vh;
        flex: 0 1 auto;
    }

    .try-again-button {
        margin-top: 0;
        margin-left: 20px;
        max-width: 200px;
        height: fit-content;
    }
}

/* V3 related */
.call-subtitle {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

.question-popup .continue-button {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.question-popup .continue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(46, 204, 113, 0.6);
}

@media (max-width: 768px) {
    .call-subtitle {
        font-size: 1rem;
    }

    .question-popup .continue-button {
        font-size: 1.1rem;
        padding: 16px 30px;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .call-subtitle {
        font-size: 0.9rem;
    }

    .question-popup .continue-button {
        font-size: 1rem;
        padding: 14px 25px;
        max-width: 200px;
    }
}

.result-container.show {
    display: flex !important;
    z-index: 10000 !important;
}

.prize-image {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.result-content {
    pointer-events: auto !important;
}

/* ЕБАНЫЕ СТИЛИ КОТОРЫЕ РАБОТАЮТ */
body.spin-wheel-page .container {
    min-height: calc(100vh - 100px);
    min-height: calc(var(--vh,100vh) - 100px);
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: visible;
}

body.spin-wheel-page h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

body.spin-wheel-page .wheel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 0;
}

@media (max-width: 768px) {
    body.spin-wheel-page h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .header-section h1 {
        font-size: 3rem;
    }

    .header-sub {
        font-size: 1.7rem;
    }

    .header-badge {
        font-size: 0.95rem;
        padding: 9px 22px;
    }

    .header-hint {
        font-size: 1.1rem;
    }

    body.spin-wheel-page .wheel-container {
        max-width: 400px;
        margin-bottom: 15px;
    }

    .spin-button {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    body.spin-wheel-page h1 {
        font-size: 2rem;
    }

    .header-section h1 {
        font-size: 1.8rem;
    }

    .header-sub {
        font-size: 1.4rem;
    }

    .header-badge {
        font-size: 1.1rem;
        padding: 10px 24px;
    }

    .header-hint {
        font-size: 1rem;
    }

    body.spin-wheel-page .wheel-container {
        max-width: 320px;
    }

    .spin-button {
        width: 90px;
        height: 90px;
    }
}

@keyframes v12PopUp {
    0% {
        transform: scale(0.82);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes v12BadgeSheen {

    0%,
    100% {
        left: -100%;
    }

    30% {
        left: 160%;
    }
}

@keyframes v12Sweep {

    0%,
    100% {
        left: -120%;
    }

    35% {
        left: 140%;
    }
}

@keyframes v12CardShimmer {

    0%,
    100% {
        transform: translate(-15%, -15%);
    }

    50% {
        transform: translate(15%, 15%);
    }
}

@keyframes v12StepPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(251, 191, 36, 0);
    }
}

.v16-page .result-content {
    padding: 0;
}

.v12-success-card {
    width: 420px;
    max-width: 96vw;
    max-height: 96dvh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 28px;
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.12);
    animation: v12PopUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.v12-confetti-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, #f43f5e 0px, #f43f5e 15px, #fbbf24 15px, #fbbf24 30px, #3b82f6 30px, #3b82f6 45px, #10b981 45px, #10b981 60px, #8b5cf6 60px, #8b5cf6 75px);
    border-radius: 28px 28px 0 0;
}

.v12-congrats-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fda102, #f08000);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 8px 24px;
    border-radius: 30px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.v12-congrats-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: v12BadgeSheen 3s 1s infinite;
}

.v12-won-title {
    font-family: 'Lilita One', cursive;
    font-size: 36px;
    color: #1c1917;
    line-height: 1.0;
    margin-bottom: 4px;
}

.v12-won-subtitle {
    font-size: 14px;
    color: #a8a29e;
    margin-bottom: 20px;
}

.v12-gift-card {
    width: 100%;
    max-width: 285px;
    height: 172px;
    margin: 0 auto 18px;
    border-radius: 18px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.v12-gift-card.gas {
    background: linear-gradient(145deg, #15803d, #166534, #14532d);
}

.v12-gift-card.groceries {
    background: linear-gradient(145deg, #1244eb, #1d4ed8, #1b40a7);
}

.v12-gift-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 75% 15%, rgba(255, 255, 255, 0.12), transparent 55%);
}

.v12-gift-card::after {
    content: '';
    position: absolute;
    top: -80%;
    left: -80%;
    width: 260%;
    height: 260%;
    background: linear-gradient(45deg, transparent 43%, rgba(255, 255, 255, 0.05) 48%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.05) 52%, transparent 57%);
    animation: v12CardShimmer 4s ease-in-out infinite;
}

.v12-gc-type {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.v12-gc-amount {
    font-family: 'Nunito', sans-serif;
    font-size: 50px;
    font-weight: 900;
    color: #fff;
    text-align: left;
    line-height: 1;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.v12-gc-amount span {
    font-size: 26px;
    vertical-align: top;
    line-height: 1.6;
    color: #fdb809;
}

.v12-gc-row-bottom {
    position: absolute;
    bottom: 16px;
    left: 22px;
    right: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.v12-gc-number {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    font-family: monospace;
}

.v12-gc-brand {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

.v12-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.v12-step {
    display: flex;
    align-items: center;
    gap: 5px;
}

.v12-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.v12-step-dot.done {
    background: #12cd57;
    color: #fff;
}

.v12-step-dot.active {
    background: #ffbc12;
    color: #1c1917;
    animation: v12StepPulse 1.5s ease-in-out infinite;
}

.v12-step-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
}

.v12-step-line {
    width: 22px;
    height: 2px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.v12-step-line.done {
    background: #12cd57;
}

.v12-btn-claim {
    width: 100%;
    padding: 17px 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #19df62 0%, #0ec250 50%, #119b44 100%);
    box-shadow: 0 6px 0 #166534, 0 8px 20px rgba(22, 163, 74, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
}

.v12-btn-claim:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #166534, 0 4px 12px rgba(22, 163, 74, 0.25);
}

.v12-btn-claim::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.15) 40%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.15) 60%, transparent 80%);
    animation: v12Sweep 3s 1s infinite;
}

.v12-countdown {
    background: #fffbeb;
    border: 1.5px solid #fb9e02;
    border-radius: 12px;
    padding: 12px 16px 10px;
    margin-bottom: 16px;
    text-align: center;
}

.v12-countdown-time {
    font-family: 'Nunito', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #fb9e02;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.v12-countdown-label {
    font-size: 12px;
    color: #fb9e02;
    font-weight: 600;
}

.v12-countdown-expired {
    font-size: 14px;
    color: #fb9e02;
    font-weight: 700;
    padding: 4px 0;
}

.v12-social-proof {
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    text-align: center;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.v12-sp-check {
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}

.v12-microcopy {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;

    background: #fff;
    color: #222;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.modal-content h2 {
    margin-bottom: 16px;
    color: #222;
}

.modal-content p {
    margin-bottom: 14px;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;

    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

@media (max-height: 700px) {
    .v12-success-card {
        padding: 20px 18px 16px;
    }

    .v12-won-title {
        font-size: 28px;
    }

    .v12-gift-card {
        height: 148px;
        max-width: 268px;
    }

    .v12-gc-amount {
        font-size: 40px;
    }

    .v12-gc-amount span {
        font-size: 21px;
    }

    .v12-won-subtitle {
        margin-bottom: 10px;
    }

    .v12-steps {
        margin-bottom: 10px;
    }

    .v12-countdown {
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    .v12-countdown-time {
        font-size: 30px;
    }
}

@media (max-height: 580px) {
    .v12-gift-card {
        height: 130px;
    }

    .v12-gc-amount {
        font-size: 34px;
    }

    .v12-countdown-time {
        font-size: 24px;
    }

    .v12-social-proof {
        display: none;
    }
}