/* =============================================
   RASIKH WHEEL - Premium Discount Wheel Styles
   Brand: #f27f17 (Orange) + #034f32 (Deep Green)
   ============================================= */

/* === CSS Variables === */
:root {
    --rk-primary: #034f32;
    --rk-primary-light: #056b43;
    --rk-primary-dark: #023a25;
    --rk-accent: #f27f17;
    --rk-accent-light: #f99e4c;
    --rk-accent-dark: #d96a0a;
    --rk-bg-dark: #011a0f;
    --rk-bg-medium: #022a1c;
    --rk-surface: #f8faf9;
    --rk-surface-alt: #f0f5f2;
    --rk-text: #1a2e24;
    --rk-text-muted: #6b8577;
    --rk-white: #ffffff;
    --rk-success: #10b981;
    --rk-danger: #ef4444;
    --rk-warning: #f59e0b;
    --rk-radius: 14px;
    --rk-radius-lg: 20px;
    --rk-shadow-sm: 0 2px 8px rgba(3, 79, 50, .06);
    --rk-shadow-md: 0 8px 24px rgba(3, 79, 50, .1);
    --rk-shadow-lg: 0 16px 48px rgba(3, 79, 50, .15);
    --rk-font: 'Cairo', 'Segoe UI', sans-serif;
}

/* === Reset & Base === */
.rasikh-app {
    font-family: var(--rk-font);
    color: var(--rk-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    background: var(--rk-bg-dark);
    -webkit-overflow-scrolling: touch;
}

.rasikh-app *,
.rasikh-app *::before,
.rasikh-app *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === WordPress Fullscreen Mode === */
.page-template-default .rasikh-app,
body.page .rasikh-app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--rk-bg-dark);
}

/* Hide WordPress elements on wheel page */
body.rasikh-wheel-page #masthead,
body.rasikh-wheel-page .site-header,
body.rasikh-wheel-page header,
body.rasikh-wheel-page #colophon,
body.rasikh-wheel-page .site-footer,
body.rasikh-wheel-page footer,
body.rasikh-wheel-page .sidebar,
body.rasikh-wheel-page #secondary,
body.rasikh-wheel-page .wp-site-blocks > header,
body.rasikh-wheel-page .wp-site-blocks > footer,
body.rasikh-wheel-page .admin-bar-placeholder,
body.rasikh-wheel-page #wpadminbar {
    display: none !important;
}

body.rasikh-wheel-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* === Animations === */
@keyframes rkFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rkFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rkSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rkBounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rkPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes rkGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(242, 127, 23, .2);
    }

    50% {
        box-shadow: 0 0 28px rgba(242, 127, 23, .5);
    }
}

@keyframes rkFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes rkSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rkConfettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes rkShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes rkShake {

    0%,
    100% {
        transform: translateX(0) rotate(0);
    }

    10% {
        transform: translateX(-5px) rotate(-2deg);
    }

    20% {
        transform: translateX(5px) rotate(2deg);
    }

    30% {
        transform: translateX(-3px) rotate(-1deg);
    }

    40% {
        transform: translateX(3px) rotate(1deg);
    }

    50% {
        transform: translateX(0);
    }
}

@keyframes rkStarTwinkle {

    0%,
    100% {
        opacity: .3;
    }

    50% {
        opacity: 1;
    }
}

/* === Steps Logic === */
.rasikh-step {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.rasikh-step.rasikh-active {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    animation: rkFadeUp .6s ease forwards;
}

/* Share step uses flex when active */
#rasikh-step-share.rasikh-active {
    display: flex !important;
}

/* ================================================
   HERO SECTION
   ================================================ */
.rasikh-hero {
    position: relative;
    padding: 60px 20px 30px;
    text-align: center;
    background: linear-gradient(160deg, #010d08 0%, var(--rk-primary-dark) 35%, #011a0f 70%, #0a1f12 100%);
    color: var(--rk-white);
    overflow: hidden;
}

.rasikh-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242, 127, 23, .08) 0%, transparent 70%);
    pointer-events: none;
}

.rasikh-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.rasikh-hero-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--rk-accent);
    border-radius: 50%;
    animation: rkStarTwinkle 2s infinite;
}

.rasikh-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.rasikh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242, 127, 23, .12);
    border: 1px solid rgba(242, 127, 23, .3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--rk-accent-light);
    margin-bottom: 28px;
    animation: rkFadeUp .6s ease;
}

.rasikh-badge-icon {
    font-size: 20px;
    animation: rkFloat 2s ease infinite;
}

.rasikh-hero-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    animation: rkFadeUp .6s ease .1s both;
}

.rasikh-highlight {
    color: var(--rk-accent);
    position: relative;
    display: inline-block;
}

.rasikh-highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--rk-accent);
    border-radius: 3px;
    opacity: .6;
}

.rasikh-hero-desc {
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.9;
    animation: rkFadeUp .6s ease .2s both;
}

/* ================================================
   WHEEL SECTION
   ================================================ */
.rasikh-wheel-section {
    background: linear-gradient(180deg, #011a0f 0%, #010d08 100%);
    padding: 20px 20px 50px;
    display: flex;
    justify-content: center;
    position: relative;
}

.rasikh-wheel-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(242, 127, 23, .06) 0%, transparent 65%);
    pointer-events: none;
}

.rasikh-wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.rasikh-wheel-frame {
    position: relative;
    width: 340px;
    height: 340px;
    filter: drop-shadow(0 10px 40px rgba(242, 127, 23, .2));
}

.rasikh-wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 34px;
    height: 42px;
    filter: drop-shadow(0 4px 12px rgba(242, 127, 23, .6));
}

.rasikh-wheel-pointer svg {
    width: 100%;
    height: 100%;
}

#rasikh-wheel-canvas {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(242, 127, 23, .5),
        0 0 30px rgba(242, 127, 23, .15),
        0 0 60px rgba(3, 79, 50, .2);
    transition: filter .3s;
}

.rasikh-spin-btn {
    background: linear-gradient(135deg, var(--rk-accent), var(--rk-accent-dark));
    color: var(--rk-white);
    padding: 16px 48px;
    border-radius: 50px;
    border: none;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--rk-font);
    transition: all .3s;
    animation: rkGlow 2s ease infinite;
    position: relative;
    overflow: hidden;
}

.rasikh-spin-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    background-size: 200% 100%;
    animation: rkShimmer 2.5s linear infinite;
}

.rasikh-spin-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(242, 127, 23, .4);
}

.rasikh-spin-btn:disabled {
    cursor: not-allowed;
    opacity: .7;
    animation: none;
    transform: none;
}

.rasikh-spin-btn.spinning .rasikh-spin-text {
    display: inline-block;
    animation: rkPulse 1s ease infinite;
}

/* ================================================
   WIN SECTION
   ================================================ */
.rasikh-win-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(160deg, var(--rk-bg-dark), var(--rk-primary-dark), var(--rk-bg-medium));
    color: var(--rk-white);
    padding: 40px 20px;
    overflow: hidden;
}

.rasikh-confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.rasikh-confetti-container span {
    position: absolute;
    animation: rkConfettiFall linear forwards;
}

.rasikh-win-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.rasikh-win-icon {
    font-size: 64px;
    animation: rkBounceIn .6s ease;
    margin-bottom: 16px;
}

.rasikh-win-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    animation: rkFadeUp .5s ease .2s both;
}

.rasikh-win-discount {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(242, 127, 23, .15);
    border: 2px solid var(--rk-accent);
    border-radius: var(--rk-radius-lg);
    padding: 16px 40px;
    margin-bottom: 16px;
    animation: rkBounceIn .5s ease .3s both, rkPulse 2s ease 1s infinite;
}

.rasikh-discount-number {
    font-size: 56px;
    font-weight: 900;
    color: var(--rk-accent);
    line-height: 1;
}

.rasikh-discount-symbol {
    font-size: 28px;
    font-weight: 800;
    color: var(--rk-accent-light);
}

.rasikh-win-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 28px;
    animation: rkFadeUp .5s ease .4s both;
}

/* ================================================
   PRIMARY BUTTON
   ================================================ */
.rasikh-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--rk-accent), var(--rk-accent-dark));
    color: var(--rk-white);
    padding: 14px 36px;
    border-radius: var(--rk-radius);
    border: none;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--rk-font);
    transition: all .3s;
    animation: rkFadeUp .5s ease .5s both;
}

.rasikh-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 127, 23, .35);
}

.rasikh-primary-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.rasikh-icon {
    font-style: normal;
}

/* ================================================
   SHARE SECTION
   ================================================ */
#rasikh-step-share {
    background: linear-gradient(180deg, #010d08 0%, var(--rk-primary-dark) 50%, #011a0f 100%);
    min-height: 100vh;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.rasikh-share-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rasikh-share-header {
    text-align: center;
    margin-bottom: 30px;
}

.rasikh-share-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: rkFloat 3s ease infinite;
}

.rasikh-share-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--rk-white);
    margin-bottom: 8px;
}

.rasikh-share-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.8;
}

.rasikh-share-header strong {
    color: var(--rk-accent);
    font-size: 18px;
}

/* Share Link Box */
.rasikh-share-link-box {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--rk-radius);
    padding: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.rasikh-share-link-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 8px;
}

.rasikh-share-link-row {
    display: flex;
    gap: 8px;
}

.rasikh-share-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    font-family: var(--rk-font);
    font-size: 13px;
    color: var(--rk-white);
    font-weight: 600;
    background: rgba(255, 255, 255, .08);
    direction: ltr;
    text-align: right;
}

.rasikh-copy-btn {
    background: var(--rk-accent);
    color: var(--rk-white);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--rk-font);
    transition: all .3s;
    white-space: nowrap;
}

.rasikh-copy-btn:hover {
    background: var(--rk-accent-dark);
    transform: translateY(-1px);
}

/* Share Buttons */
.rasikh-share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.rasikh-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--rk-white);
    transition: all .3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .1);
}

.rasikh-share-btn:hover {
    transform: translateY(-2px);
}

.rasikh-share-whatsapp {
    background: rgba(37, 211, 102, .85);
}

.rasikh-share-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, .3);
    background: #25d366;
}

.rasikh-share-telegram {
    background: rgba(0, 136, 204, .85);
}

.rasikh-share-telegram:hover {
    box-shadow: 0 6px 20px rgba(0, 136, 204, .3);
    background: #0088cc;
}

.rasikh-share-facebook {
    background: rgba(24, 119, 242, .85);
}

.rasikh-share-facebook:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, .3);
    background: #1877f2;
}

.rasikh-share-twitter {
    background: rgba(29, 161, 242, .85);
}

.rasikh-share-twitter:hover {
    box-shadow: 0 6px 20px rgba(29, 161, 242, .3);
    background: #1da1f2;
}

/* Upload Area */
.rasikh-upload-area {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--rk-radius);
    padding: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.rasikh-upload-header {
    margin-bottom: 14px;
}

.rasikh-upload-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--rk-white);
    margin-bottom: 4px;
}

.rasikh-upload-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
}

.rasikh-upload-zone {
    border: 2px dashed rgba(255, 255, 255, .2);
    border-radius: var(--rk-radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    background: rgba(255, 255, 255, .03);
    position: relative;
}

.rasikh-upload-zone:hover,
.rasikh-upload-zone.drag-over {
    border-color: var(--rk-accent);
    background: rgba(242, 127, 23, .06);
}

.rasikh-upload-icon {
    font-size: 40px;
    margin-bottom: 8px;
    animation: rkFloat 3s ease infinite;
}

.rasikh-upload-placeholder p {
    font-size: 14px;
    font-weight: 700;
    color: var(--rk-white);
    margin-bottom: 4px;
}

.rasikh-upload-placeholder span {
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
}

.rasikh-upload-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.rasikh-upload-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.rasikh-remove-preview {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, .9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.rasikh-remove-preview:hover {
    background: var(--rk-danger);
    transform: scale(1.1);
}

/* Progress Bar */
.rasikh-upload-progress {
    margin-top: 12px;
}

.rasikh-progress-bar {
    height: 6px;
    background: #e5ece8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.rasikh-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--rk-primary), var(--rk-accent));
    border-radius: 6px;
    transition: width .3s;
}

#uploadStatus {
    font-size: 11px;
    color: var(--rk-text-muted);
    font-weight: 600;
}

/* ================================================
   COURSES SECTION
   ================================================ */
.rasikh-courses-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rasikh-courses-header {
    text-align: center;
    margin-bottom: 30px;
}

.rasikh-courses-header h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--rk-primary);
    margin-bottom: 8px;
}

.rasikh-badge-discount {
    display: inline-block;
    background: linear-gradient(135deg, var(--rk-accent), var(--rk-accent-dark));
    color: var(--rk-white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 800;
    animation: rkPulse 2s ease infinite;
}

.rasikh-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Course Card */
.rasikh-course-card {
    background: var(--rk-white);
    border-radius: var(--rk-radius);
    border: 1px solid #e5ece8;
    overflow: hidden;
    transition: all .4s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.rasikh-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rk-shadow-lg);
    border-color: var(--rk-accent);
}

.rasikh-course-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e5ece8;
}

.rasikh-course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.rasikh-course-card:hover .rasikh-course-img img {
    transform: scale(1.08);
}

.rasikh-course-img .rasikh-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 79, 50, .5), transparent 60%);
}

.rasikh-course-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 50px;
    color: var(--rk-primary);
}

.rasikh-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--rk-accent);
    color: var(--rk-white);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    animation: rkPulse 2s ease infinite;
}

.rasikh-course-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rasikh-course-body h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--rk-primary);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rasikh-course-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    margin-top: auto;
}

.rasikh-course-new-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--rk-accent);
}

.rasikh-course-old-price {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}

.rasikh-course-currency {
    font-size: 11px;
    color: var(--rk-text-muted);
}

.rasikh-select-course-btn {
    width: 100%;
    background: var(--rk-primary);
    color: var(--rk-white);
    border: none;
    padding: 11px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--rk-font);
    transition: all .3s;
}

.rasikh-select-course-btn:hover {
    background: var(--rk-accent);
    transform: translateY(-1px);
}

/* ================================================
   PAYMENT MODAL
   ================================================ */
.rasikh-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none !important;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    visibility: hidden;
}

.rasikh-modal-overlay.active {
    display: flex !important;
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.rasikh-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(1, 26, 15, .8);
    backdrop-filter: blur(6px);
}

.rasikh-modal-panel {
    position: relative;
    z-index: 10;
    background: var(--rk-white);
    width: 100%;
    max-width: 440px;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.22, .68, 0, 1.02);
    max-height: 92vh;
    overflow-y: auto;
}

.rasikh-modal-overlay.active .rasikh-modal-panel {
    transform: translateY(0);
}

@media (min-width: 769px) {
    .rasikh-modal-overlay {
        align-items: center;
        padding: 20px;
    }

    .rasikh-modal-panel {
        border-radius: var(--rk-radius-lg);
        transform: translateY(30px) scale(.96);
    }

    .rasikh-modal-overlay.active .rasikh-modal-panel {
        transform: translateY(0) scale(1);
    }
}

.rasikh-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(to left, var(--rk-surface), var(--rk-white));
}

.rasikh-modal-head h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--rk-primary);
}

.rasikh-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    transition: all .3s;
}

.rasikh-close-btn:hover {
    background: #fee2e2;
    color: var(--rk-danger);
}

.rasikh-modal-body {
    padding: 20px;
}

/* Order Summary */
.rasikh-order-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--rk-surface);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5ece8;
    margin-bottom: 16px;
}

.rasikh-order-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #e5ece8;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.rasikh-order-label {
    font-size: 10px;
    color: var(--rk-text-muted);
    font-weight: 700;
}

.rasikh-order-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--rk-primary);
}

.rasikh-order-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rasikh-final-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--rk-accent);
}

.rasikh-original-price {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
}

.rasikh-discount-tag {
    display: inline-block;
    background: rgba(242, 127, 23, .1);
    color: var(--rk-accent);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

/* Coupon Box */
.rasikh-coupon-box {
    background: linear-gradient(135deg, rgba(3, 79, 50, .04), rgba(3, 79, 50, .08));
    border: 1px dashed var(--rk-primary);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.rasikh-coupon-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--rk-text-muted);
    margin-bottom: 6px;
}

.rasikh-coupon-code {
    font-size: 22px;
    font-weight: 900;
    color: var(--rk-primary);
    letter-spacing: 3px;
    direction: ltr;
}

/* Payment Section */
.rasikh-pay-section {
    background: linear-gradient(135deg, rgba(242, 127, 23, .04), rgba(242, 127, 23, .08));
    border: 1px solid rgba(242, 127, 23, .15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.rasikh-pay-label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
}

.rasikh-account-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--rk-white);
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed var(--rk-accent);
}

.rasikh-pay-number {
    font-size: 22px;
    font-weight: 900;
    color: var(--rk-primary);
    letter-spacing: 3px;
    direction: ltr;
}

.rasikh-copy-payment-btn {
    background: var(--rk-accent);
    color: var(--rk-white);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--rk-font);
    transition: all .3s;
}

.rasikh-copy-payment-btn:hover {
    background: var(--rk-accent-dark);
}

/* Form */
.rasikh-form-group {
    margin-bottom: 14px;
}

.rasikh-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    display: block;
    margin-bottom: 6px;
}

.rasikh-input-wrap {
    position: relative;
}

.rasikh-input-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 16px;
    font-style: normal;
}

.rasikh-input-wrap input {
    width: 100%;
    padding: 13px 44px 13px 14px;
    border: 2px solid #e5ece8;
    border-radius: 12px;
    font-family: var(--rk-font);
    font-size: 14px;
    font-weight: 600;
    background: var(--rk-surface);
    transition: all .3s;
    outline: none;
    color: var(--rk-text);
}

.rasikh-input-wrap input:focus {
    border-color: var(--rk-primary);
    box-shadow: 0 0 0 3px rgba(3, 79, 50, .1);
}

.rasikh-phone-feedback {
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
    min-height: 16px;
    transition: all .3s;
}

.rasikh-phone-feedback.error {
    color: var(--rk-danger);
}

.rasikh-phone-feedback.success {
    color: var(--rk-success);
}

.rasikh-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--rk-primary), var(--rk-primary-light));
    color: var(--rk-white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--rk-font);
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rasikh-submit-btn:hover {
    background: linear-gradient(135deg, var(--rk-primary-light), var(--rk-accent));
    transform: translateY(-2px);
    box-shadow: var(--rk-shadow-md);
}

.rasikh-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ================================================
   THANK YOU OVERLAY
   ================================================ */
.rasikh-thankyou-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(160deg, var(--rk-bg-dark), var(--rk-primary-dark), var(--rk-bg-medium));
    display: none !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--rk-white);
    padding: 20px;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.rasikh-thankyou-overlay.active {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
}

.rasikh-ty-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.rasikh-ty-confetti span {
    position: absolute;
    animation: rkConfettiFall linear forwards;
}

.rasikh-ty-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.rasikh-ty-check {
    font-size: 60px;
    animation: rkBounceIn .6s ease;
    margin-bottom: 12px;
}

.rasikh-ty-emoji {
    font-size: 44px;
    animation: rkBounceIn .5s ease .2s both;
    margin-bottom: 12px;
}

.rasikh-ty-content h2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 10px;
    animation: rkFadeUp .5s ease .2s both;
}

.rasikh-ty-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.9;
    margin-bottom: 16px;
    animation: rkFadeUp .5s ease .3s both;
}

.rasikh-ty-details {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--rk-radius);
    padding: 16px;
    margin-bottom: 16px;
    animation: rkFadeUp .5s ease .35s both;
}

.rasikh-ty-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.rasikh-ty-detail-row:last-child {
    border-bottom: none;
}

.rasikh-ty-detail-row span {
    color: rgba(255, 255, 255, .5);
}

.rasikh-ty-detail-row strong {
    color: var(--rk-accent-light);
}

.rasikh-ty-alert {
    background: rgba(242, 127, 23, .15);
    border: 1px solid rgba(242, 127, 23, .3);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rk-accent-light);
    margin-bottom: 20px;
    animation: rkFadeUp .5s ease .4s both;
}

.rasikh-ty-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: var(--rk-white);
    padding: 14px 32px;
    border-radius: var(--rk-radius);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: all .3s;
    animation: rkBounceIn .5s ease .5s both, rkShake 2s ease 2s infinite;
}

.rasikh-ty-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
}

.rasikh-ty-countdown {
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
    margin-top: 16px;
    animation: rkFadeUp .5s ease .6s both;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 640px) {
    .rasikh-hero {
        padding: 40px 16px 20px;
    }

    .rasikh-hero-title {
        font-size: 24px;
    }

    .rasikh-hero-desc {
        font-size: 13px;
        padding: 0 10px;
    }

    .rasikh-wheel-section {
        padding: 10px 16px 40px;
    }

    .rasikh-wheel-frame {
        width: 280px;
        height: 280px;
    }

    #rasikh-wheel-canvas {
        width: 280px;
        height: 280px;
    }

    .rasikh-spin-btn {
        padding: 14px 36px;
        font-size: 16px;
    }

    .rasikh-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rasikh-share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .rasikh-win-section {
        min-height: auto;
        padding: 60px 20px;
    }

    .rasikh-win-discount {
        padding: 12px 28px;
    }

    .rasikh-discount-number {
        font-size: 44px;
    }

    .rasikh-win-title {
        font-size: 26px;
    }

    #rasikh-step-share {
        min-height: auto;
        padding: 40px 0;
    }

    .rasikh-share-section {
        padding: 30px 16px;
    }

    .rasikh-share-header h2 {
        font-size: 20px;
    }

    /* Touch targets */
    .rasikh-share-btn {
        padding: 14px 8px;
        font-size: 13px;
    }

    .rasikh-copy-btn,
    .rasikh-share-input {
        min-height: 44px;
    }

    .rasikh-primary-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }

    /* Modal */
    .rasikh-modal-panel {
        margin: 10px;
        max-height: 95vh;
    }

    .rasikh-form-group input {
        min-height: 44px;
    }

    .rasikh-submit-btn {
        min-height: 48px;
    }

    /* Thank you */
    .rasikh-ty-content {
        padding: 30px 16px;
    }
}

@media (max-width: 400px) {
    .rasikh-hero-title {
        font-size: 22px;
    }

    .rasikh-courses-grid {
        grid-template-columns: 1fr;
    }

    .rasikh-wheel-frame {
        width: 240px;
        height: 240px;
    }

    #rasikh-wheel-canvas {
        width: 240px;
        height: 240px;
    }

    .rasikh-hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .rasikh-share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .rasikh-upload-zone {
        padding: 20px 14px;
    }
}

@media (min-width: 769px) {
    .rasikh-courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ================================================
   SCROLLBAR
   ================================================ */
.rasikh-app ::-webkit-scrollbar {
    width: 6px;
}

.rasikh-app ::-webkit-scrollbar-track {
    background: var(--rk-surface);
}

.rasikh-app ::-webkit-scrollbar-thumb {
    background: var(--rk-primary);
    border-radius: 6px;
}