@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
}

body {
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.main-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: white;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-section {
    background: linear-gradient(135deg, #20B5E8, #25F4EE);
    padding: 40px 20px 60px;
    text-align: center;
    position: relative;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin: 0 auto 15px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-section h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-section p {
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    font-weight: 500;
}

.gift-box-section {
    margin: -40px 20px 20px;
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
    animation: slideUp 1s ease 0.3s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gift-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gift-box-section h2 {
    color: #111;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gift-box-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.gift-amount {
    font-size: 48px;
    font-weight: 700;
    color: #20B5E8;
    margin: 10px 0;
}

.gift-amount span {
    font-size: 20px;
}

.progress-section {
    margin: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    animation: slideUp 1s ease 0.6s both;
}

.progress-section h3 {
    color: #111;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 20px;
    height: 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #20B5E8, #25F4EE);
    border-radius: 20px;
    transition: width 3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.wheel-section {
    margin: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    animation: slideUp 1s ease 0.9s both;
}

.wheel-section h3 {
    color: #111;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.wheel-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid #20B5E8;
    position: relative;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    transform-origin: 100% 100%;
}

.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: 30px solid #ff4444;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.spin-btn {
    margin-top: 15px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #20B5E8, #25F4EE);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
}

.spin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(32, 181, 232, 0.4);
}

.spin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.steps-section {
    margin: 20px;
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    animation: slideUp 1s ease 1.2s both;
}

.steps-section h3 {
    color: #111;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s;
}

.step:hover {
    transform: translateX(5px);
}

.step-number {
    width: 35px;
    height: 35px;
    min-width: 35px;
    background: linear-gradient(135deg, #20B5E8, #25F4EE);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-right: 15px;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #111;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
}

.step-content p {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

.claim-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #20B5E8, #25F4EE);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideUp 1s ease 1.5s both;
    font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
}

.claim-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 25px rgba(32, 181, 232, 0.5);
}

.footer {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-size: 12px;
}

.footer i {
    color: #ff4444;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.verification-modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.5s ease;
}

.verification-modal h2 {
    color: #111;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.verification-modal p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.verification-modal input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    direction: ltr;
    transition: border-color 0.3s;
    font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
}

.verification-modal input:focus {
    outline: none;
    border-color: #20B5E8;
}

.verify-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #20B5E8, #25F4EE);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
}

.verify-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(32, 181, 232, 0.4);
}

.loading-section {
    margin: 20px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #20B5E8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-section p {
    color: #888;
    font-size: 14px;
}

@media (max-width: 480px) {
    .main-container {
        max-width: 100%;
        border-radius: 0;
    }
    .header-section {
        padding: 30px 15px 50px;
    }
    .gift-box-section,
    .progress-section,
    .wheel-section,
    .steps-section {
        margin-left: 15px;
        margin-right: 15px;
    }
    .claim-btn {
        width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
    }
}
