        /* Responsive Spinner Wheel Styling */
        .spin-wheel-base {
            position: relative;
            border-radius: 50%;
            transition: transform 5s cubic-bezier(0.1, 0.9, 0.3, 1);
            transform: rotate(0deg);
        }

        .css-spin-wheel {
            background: conic-gradient(
                #FF6B9D 0deg 45deg,
                #C44569 45deg 90deg,
                #6C5CE7 90deg 135deg,
                #00B894 135deg 180deg,
                #00D2D3 180deg 225deg,
                #FDCB6E 225deg 270deg,
                #FF7675 270deg 315deg,
                #A29BFE 315deg 360deg
            );
            border: 8px solid #fff;
            box-shadow: inset 0 0 0 2px #f0f0f0;
        }

        .segment-text-wrapper {
            position: absolute;
            width: 50%;
            height: 100%;
            top: 0;
            left: 50%;
            transform-origin: 0% 50%; 
            pointer-events: none;
            transform: rotate(calc(var(--angle) * 1deg));
        }

        .segment-text-label {
            position: absolute;
            top: 50%;
            left: 65%; 
            transform: translate(-50%, -50%) rotate(45deg); 
            color: #333;
            font-weight: 800;
            font-size: clamp(10px, 2vw, 14px);
            text-shadow: 1px 1px 1px rgba(255,255,255,0.7);
        }

        .spin-wheel-pointer {
            position: absolute;
            top: 60px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 15px solid transparent;
            border-right: 15px solid transparent;
            border-top: 25px solid #ffd700;
            z-index: 10;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
            animation: bounce 2s infinite;
        }
         @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-8px); }
        }
        /* Responsive Iframe styling */
        iframe {
            width: 100%;
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            background: #fff;
        }

        #contentFrame {
            height: clamp(450px, 50vh, 500px);
        }

        #examFrame {
            height: clamp(600px, 60vh, 600px);
        }

        /* Hero section responsive text */
        .hero-title {
            font-size: clamp(1.875rem, 5vw, 3.5rem);
        }

        .hero-subtitle {
            font-size: clamp(0.875rem, 2.5vw, 1.125rem);
        }
        .modal-header {
            background: linear-gradient(135deg, #008190 18%, #18cbb2 100%);
            position: relative;
            overflow: hidden;
            padding: 40px 32px 32px;
        }

        .modal-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: float 20s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0); }
            25% { transform: translate(20px, -20px); }
            50% { transform: translate(-10px, 20px); }
            75% { transform: translate(-20px, -10px); }
        }

        .modal-header-content {
            position: relative;
            z-index: 10;
        }

        .close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        .modal-title {
            font-size: 32px;
            font-weight: 800;
            color: white;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .modal-subtitle {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 16px;
            font-weight: 500;
        }

        .badge-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .modal-body {
            padding: 40px 32px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 32px;
        }

        .spin-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 20px;
        }

        .wheel-wrapper {
            position: relative;
            width: 280px;
            height: 280px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .spin-button {
            position: absolute;
            z-index: 30;
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #FF6B9D 0%, #FF4757 100%);
            border: none;
            border-radius: 50%;
            color: white;
            font-weight: 900;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
            transition: all 0.3s ease;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            line-height: 1;
        }

        .spin-button:hover:not(:disabled) {
            transform: scale(1.08);
            box-shadow: 0 15px 40px rgba(255, 71, 87, 0.5);
        }

        .spin-button:active:not(:disabled) {
            transform: scale(0.95);
        }

        .spin-button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .result-text {
            font-size: 18px;
            font-weight: 700;
            color: #667eea;
            text-align: center;
            min-height: 28px;
            transition: all 0.3s ease;
        }

        .result-text.show {
            color: #00B894;
            animation: slideIn 0.4s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
       
        #modalSpinView {
            width: 100%;
            background: white;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            pointer-events: auto;
            animation: slideUp 0.4s 
            cubic-bezier(0.34, 1.56, 0.64, 1);
            max-height: 100vh;
            overflow-y: auto;
        }
        .info-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            width: 100%;
        }

        .info-card {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 16px;
            border-radius: 16px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.5);
            transition: all 0.3s ease;
        }

        .info-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .info-icon {
            font-size: 28px;
            margin-bottom: 8px;
        }

        .info-label {
            font-size: 11px;
            font-weight: 700;
            color: #2d3748;
            letter-spacing: 0.5px;
        }

        /* Prize View */
        .prize-icon {
            font-size: 64px;
            animation: bounce 0.6s ease;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        .prize-title {
            font-size: 28px;
            font-weight: 800;
            color: #2d3748;
            margin: 16px 0;
        }

        .prize-description {
            font-size: 18px;
            font-weight: 700;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin: 12px 0 24px;
        }

        .coupon-box {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 20px;
            border-radius: 16px;
            margin: 24px 0;
            border: 2px dashed #667eea;
        }

        .coupon-label {
            font-size: 12px;
            font-weight: 700;
            color: #4a5568;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .coupon-code-group {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .coupon-code {
            flex: 1;
            padding: 12px 16px;
            background: white;
            border: 2px solid #667eea;
            border-radius: 12px;
            font-family: 'Courier New', monospace;
            font-size: 16px;
            font-weight: 700;
            color: #667eea;
            text-align: center;
            letter-spacing: 2px;
        }

        .copy-btn {
            width: 44px;
            height: 44px;
            background: #667eea;
            border: none;
            border-radius: 12px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-size: 18px;
        }

        .copy-btn:hover {
            background: #764ba2;
            transform: scale(1.05);
        }
        /*.flex {*/
        /*    display: flex;*/
        /*    justify-content: center;*/
        /*}*/
        /* Touch-friendly buttons */
        @media (max-width: 768px) {
            button {
                min-height: 44px;
            }
        }

        /* Stats grid responsive */
        .stats-grid {
            grid-template-columns: 1fr;
        }

        @media (min-width: 640px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .stats-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Modal responsive */
        @media (max-width: 640px) {
            .modal-sm {
                max-width: 90vw !important;
            }
        }
  
        .flip-container {
            perspective: 1000px;
            position: relative;
            width: 100%;
            height: 550px;
        }

        .flip-card {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }

        .flip-container.flipped .flip-card {
            transform: rotateY(180deg);
        }

        .card-face {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            display: flex;
        }

        .card-front {
            background: white;
            z-index: 2;
            border-radius: 0.5rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        .card-back {
            background: white;
            transform: rotateY(180deg);
            z-index: 1;
            border-radius: 0.5rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        .otp-box {
            width: 38px !important;
            height: 48px;
            text-align: center;
            font-size: 20px;
            font-weight: bold;
            border: 2px solid #ddd;
            border-radius: 8px;
            margin: 0 3px;
            transition: all 0.3s;
        }

        .otp-box:focus {
            border-color: #14b8a6;
            box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
            outline: none;
        }

        .otp-box.error {
            border-color: #ef4444;
            background-color: #fee2e2;
        }

        .side-info {
            width: 45%;
            background: linear-gradient(135deg, #f38e3e 0%, #f38e3e 100%);
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 1.5rem;
        }

        .side-form {
            width: 55%;
            max-height: 600px;
            overflow-y: auto;
            padding: 1.5rem;
        }

        .side-back-info {
            width: 45%;
            background: linear-gradient(135deg, #008190 0%, #008190 100%);
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 1.5rem;
        }

        .info-icon {
            font-size: 3rem;
            margin-bottom: 0.75rem;
        }

        .info-title {
            font-size: 1.25rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .info-text {
            font-size: 0.8rem;
            line-height: 1.4;
            margin-bottom: 1rem;
        }

        .info-social {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
        }

        .info-social a {
            color: white;
            font-size: 1.25rem;
            transition: transform 0.3s;
        }

        .info-social a:hover {
            transform: scale(1.1);
        }

        /* Mobile Responsive - Hide book layout, show simple forms */
        @media (max-width: 768px) {
            .flip-container {
                height: auto;
                min-height: auto;
            }

            .flip-card {
                position: static;
            }

            .card-face {
                position: static;
                backface-visibility: visible;
                flex-direction: column;
                height: auto;
                display: none;
            }

            .card-front {
                display: block !important;
                transform: none !important;*
                position: static;
                box-shadow: none;
                border-radius: 1rem;
                padding: 1.5rem;
                width: 100%;
            }

            .card-back {
                display: none !important;
                /*transform: none !important;*/
                position: static;
                box-shadow: none;
                border-radius: 1rem;
                padding: 1.5rem;
                width: 100%;
            }

            .flip-container.flipped .card-front {
                display: none !important;
            }

            .flip-container.flipped .card-back {
                display: block !important;
            }

            .side-info,
            .side-back-info {
                display: none;
            }

            .side-form {
                width: 100%;
                padding: 0;
                max-height: none;
                overflow-y: visible;
            }

            .info-icon {
                font-size: 2.5rem;
                margin-bottom: 0.5rem;
            }

            .info-title {
                font-size: 1.15rem;
                margin-bottom: 0.35rem;
            }

            .info-text {
                font-size: 0.78rem;
                margin-bottom: 0.75rem;
                line-height: 1.3;
            }

            .info-social {
                gap: 0.6rem;
            }

            .info-social a {
                font-size: 1.1rem;
            }

            .btn-flip {
                padding: 0.5rem 1rem !important;
                font-size: 0.9rem !important;
                width: 100%;
            }

            h3 {
                font-size: 1.5rem !important;
                margin-bottom: 1rem !important;
                text-align: center;
            }

            .otp-box {
                width: 40px !important;
                height: 48px;
                font-size: 20px;
                margin: 0 3px;
            }

            input[type="text"],
            input[type="email"] {
                font-size: 16px !important;
                padding: 0.7rem 0.9rem !important;
            }

            button[type="button"],
            button[type="submit"] {
                padding: 0.75rem !important;
                font-size: 1rem !important;
            }

            .space-y-4 > * + * {
                margin-top: 1rem !important;
            }

            .space-y-3 > * + * {
                margin-top: 0.75rem !important;
            }

            .relative.my-6 {
                margin-top: 1.5rem !important;
                margin-bottom: 1.5rem !important;
            }

            .mt-6 {
                margin-top: 1.5rem !important;
            }

            .mb-6 {
                margin-bottom: 1.5rem !important;
            }

            .flex.justify-center.gap-6 {
                gap: 1rem !important;
                margin-bottom: 1rem !important;
            }

            .flex.items-center.border {
                margin-bottom: 0.75rem !important;
            }

            .mt-4 {
                margin-top: 1rem !important;
            }

            .mt-3 {
                margin-top: 0.75rem !important;
            }
        }

        @media (max-width: 480px) {
            .card-front {
                padding: 1.25rem;
            }

            .card-back {
                padding: 1.25rem;
            }

            h3 {
                font-size: 1.3rem !important;
                margin-bottom: 0.9rem !important;
            }

            .otp-box {
                width: 38px !important;
                height: 45px;
                font-size: 18px;
                margin: 0 2px;
            }

            input[type="text"],
            input[type="email"] {
                font-size: 15px !important;
                padding: 0.65rem 0.8rem !important;
            }

            button[type="button"],
            button[type="submit"] {
                padding: 0.7rem !important;
                font-size: 0.95rem !important;
            }

            .flex.justify-center.gap-6 {
                gap: 0.75rem !important;
            }
        }

        /* Scrollbar styling */
        .side-form::-webkit-scrollbar {
            width: 6px;
        }

        .side-form::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .side-form::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 10px;
        }

        .side-form::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
    