:root {
  --primary-green: #398100;
  --light-green: #7fba23;
  --dark-green: #2a5f00;
  --gold: #d4af37;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --bg-overlay: rgba(0, 0, 0, 0.75);
  --white: #ffffff;
}


        /* Popup Overlay */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-overlay);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            animation: fadeIn 0.3s ease forwards;
            padding: 20px;
        }

        @keyframes fadeIn {
            to { opacity: 1; }
        }

        /* Popup Container */
        .popup-container {
            background: var(--white);
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 600px;
            width: 100%;
            position: relative;
            overflow: hidden;
            transform: scale(0.9);
            animation: scaleIn 0.4s ease 0.2s forwards;
        }

        @keyframes scaleIn {
            to { transform: scale(1); }
        }

        /* Close Button */
        .close-button {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 36px;
            height: 36px;
            border: none;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: var(--text-medium);
            transition: all 0.2s ease;
            z-index: 10;
        }

        .close-button:hover {
            background: rgba(0, 0, 0, 0.1);
            transform: rotate(90deg);
        }

        /* Header Section */
        .popup-header {
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
            padding: 40px 30px 30px;
            text-align: center;
            position: relative;
        }

        .popup-title {
            font-family: 'Outfit', sans-serif;
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 10px;
            letter-spacing: -0.5px;
        }

        .popup-subtitle {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.95);
            font-weight: 500;
            line-height: 1.5;
        }

        /* Content Area */
        .popup-content {
            padding: 50px 30px 40px;
            text-align: center;
        }

        /* Wheel Container */
        .wheel-container {
            position: relative;
            width: 320px;
            height: 320px;
            margin: 0 auto 30px;
        }

        .wheel-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
        }

        /* Wheel Canvas */
        #wheelCanvas {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 8px 24px rgba(57, 129, 0, 0.15));
        }

        /* Center Button */
        .spin-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90px;
            height: 90px;
            border-radius: 50%;
            border: none;
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
            color: var(--white);
            font-family: 'Outfit', sans-serif;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(57, 129, 0, 0.3);
            transition: all 0.3s ease;
            z-index: 10;
        }

        .spin-button:hover:not(:disabled) {
            transform: translate(-50%, -50%) scale(1.05);
            box-shadow: 0 8px 28px rgba(57, 129, 0, 0.4);
        }

        .spin-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* Pointer */
        .wheel-pointer {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 15px solid transparent;
            border-right: 15px solid transparent;
            border-top: 25px solid var(--gold);
            filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
            z-index: 5;
        }

        /* Email Form */
        .email-form {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .email-form.active {
            display: block;
        }

        .prize-announcement {
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
            color: var(--white);
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 25px;
            font-size: 18px;
            font-weight: 600;
            line-height: 1.5;
        }

        .prize-amount {
            font-size: 32px;
            font-weight: 700;
            display: block;
            margin: 8px 0;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            text-align: left;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .form-input {
            width: 100%;
            padding: 14px 18px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-green);
            box-shadow: 0 0 0 3px rgba(57, 129, 0, 0.1);
        }

        .submit-button {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
            color: var(--white);
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(57, 129, 0, 0.3);
            box-sizing: border-box;
        }

        .submit-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(57, 129, 0, 0.4);
        }

        .privacy-text {
            font-size: 12px;
            color: var(--text-medium);
            margin-top: 15px;
            line-height: 1.5;
        }

        /* Success State */
        .success-message {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .success-message.active {
            display: block;
        }

        .success-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: var(--primary-green);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 40px;
        }

        .success-title {
            font-family: 'Outfit', sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 12px;
        }

        .success-text {
            font-size: 16px;
            color: var(--text-medium);
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .voucher-code {
            background: #f8f9fa;
            border: 2px dashed var(--primary-green);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 25px;
        }

        .voucher-label {
            font-size: 13px;
            color: var(--text-medium);
            margin-bottom: 8px;
            font-weight: 600;
        }

        .voucher-value {
            font-family: 'Outfit', sans-serif;
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-green);
            letter-spacing: 2px;
        }

        .shop-button {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
            color: var(--white);
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(57, 129, 0, 0.3);
            box-sizing: border-box;
        }

        .shop-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(57, 129, 0, 0.4);
        }

        /* Responsive */
        @media (max-width: 640px) {
            .popup-container {
                margin: 20px;
            }

            .popup-title {
                font-size: 24px;
            }

            .popup-subtitle {
                font-size: 14px;
            }

            .wheel-container {
                width: 280px;
                height: 280px;
            }

            .spin-button {
                width: 80px;
                height: 80px;
                font-size: 14px;
            }

            .prize-amount {
                font-size: 28px;
            }
        }

        /* Hidden by default - show with JS */
        .popup-overlay.hidden {
            display: none;
        }