* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #36393f;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #5865f2, #7289da, #5865f2);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    padding: 20px;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reward-section {
    background: rgba(47, 49, 54, 0.95);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nitro-selection h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
}

.nitro-selection h3 i {
    color: #5865f2;
    margin-right: 10px;
}

.nitro-options {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.nitro-card {
    flex: 1;
    background: rgba(64, 68, 75, 0.8);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nitro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.3);
}

.nitro-card.active {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.2);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.nitro-icon {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    overflow: hidden;
}

.nitro-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.nitro-card h4 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.nitro-card p {
    color: #b9bbbe;
    font-size: 1rem;
    line-height: 1.4;
}

.generation-area {
    text-align: center;
}

.generate-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
    width: 100%;
    max-width: 400px;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.6);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.generate-btn i {
    margin-right: 12px;
}

.progress-container {
    display: none;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(64, 68, 75, 0.8);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5865f2, #7289da);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    color: #b9bbbe;
    font-size: 1rem;
    font-weight: 500;
}

.result-container {
    display: none;
}

.code-display {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#codeInput {
    flex: 1;
    background: rgba(64, 68, 75, 0.8);
    border: 2px solid #72767d;
    border-radius: 10px;
    padding: 18px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
}

.copy-btn {
    background: #43b581;
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.copy-btn:hover {
    background: #369968;
    transform: translateY(-2px);
}

.code-info {
    color: #b9bbbe;
    font-size: 1rem;
    margin-top: 10px;
}

/* Reward Categories Styles */
.reward-categories {
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    background: rgba(64, 68, 75, 0.8);
    color: #b9bbbe;
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    max-width: 200px;
}

.tab-btn:hover {
    background: rgba(72, 76, 83, 0.9);
    color: #ffffff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    border-color: #5865f2;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.tab-btn.active[data-category="roblox"] {
    background: linear-gradient(135deg, #00b2ff, #0088cc);
    border-color: #00b2ff;
    box-shadow: 0 5px 15px rgba(0, 178, 255, 0.4);
}

.reward-content {
    position: relative;
}

.reward-category {
    display: none;
    animation: fadeIn 0.4s ease;
}

.reward-category.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Robux Specific Styles */
.nitro-card[data-category="roblox"] {
    border-color: transparent;
}

.nitro-card[data-category="roblox"]:hover {
    box-shadow: 0 15px 35px rgba(0, 178, 255, 0.3);
}

.nitro-card[data-category="roblox"].active {
    border-color: #00b2ff;
    background: rgba(0, 178, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 178, 255, 0.4);
}

.nitro-icon.robux {
    background: transparent;
}

.nitro-card[data-category="roblox"] h4 {
    color: #00b2ff;
}

/* Three column layout for Robux */
.reward-category[data-category="roblox"] .nitro-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.reward-category[data-category="roblox"] .nitro-card {
    flex: 0 1 calc(33.333% - 20px);
    min-width: 180px;
    max-width: 220px;
    padding: 30px 20px;
}

.reward-category[data-category="roblox"] .nitro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.reward-category[data-category="roblox"] .nitro-card h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.reward-category[data-category="roblox"] .nitro-card p {
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .reward-section {
        padding: 25px 15px;
        margin: 0 auto;
        border-radius: 15px;
        width: 100%;
        max-width: 450px;
        box-sizing: border-box;
    }
    
    .nitro-selection h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .nitro-options {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .nitro-card {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .nitro-card h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .nitro-card p {
        font-size: 0.9rem;
    }

    .nitro-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
    
    .code-display {
        flex-direction: column;
        gap: 12px;
    }
    
    .generate-btn {
        padding: 16px 30px;
        font-size: 1.1rem;
        border-radius: 25px;
        margin-bottom: 25px;
    }

    #codeInput {
        padding: 15px;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .copy-btn {
        padding: 15px 20px;
        font-size: 0.95rem;
        border-radius: 8px;
        width: 100%;
    }

    .progress-container {
        margin-bottom: 25px;
    }

    .progress-bar {
        height: 8px;
        margin-bottom: 12px;
    }

    .progress-text {
        font-size: 0.9rem;
    }

    .code-info {
        font-size: 0.85rem;
        margin-top: 8px;
        line-height: 1.4;
    }

    .category-tabs {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .tab-btn {
        max-width: 100%;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .reward-category[data-category="roblox"] .nitro-options {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .reward-category[data-category="roblox"] .nitro-card {
        flex: none;
        width: 100%;
        max-width: 350px;
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    body {
        align-items: center;
        justify-content: center;
    }

    .container {
        padding: 0 5px;
    }

    .reward-section {
        padding: 20px 12px;
        margin: 0 auto;
        max-width: 100%;
        width: calc(100% - 10px);
    }

    .nitro-selection h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .nitro-card {
        padding: 18px 12px;
    }

    .nitro-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 12px;
    }

    .generate-btn {
        padding: 14px 25px;
        font-size: 1rem;
        margin-bottom: 20px;
    }

    #codeInput {
        padding: 12px;
        font-size: 1rem;
    }

    .copy-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .code-info {
        font-size: 0.8rem;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .reward-category[data-category="roblox"] .nitro-card {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .reward-category[data-category="roblox"] .nitro-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 15px;
    }
    
    .reward-category[data-category="roblox"] .nitro-card h4 {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-container.show {
    display: block;
    animation: slideIn 0.6s ease;
}

.progress-container.show {
    display: block;
    animation: slideIn 0.4s ease;
}

/* Success Page Styles */
.success-section {
    background: rgba(47, 49, 54, 0.95);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.success-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.success-header {
    margin-bottom: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #43b581, #57c185);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPulse 2s ease-in-out infinite;
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-header h1 {
    font-size: 2.2rem;
    color: #43b581;
    margin-bottom: 10px;
    font-weight: 700;
}

.success-subtitle {
    color: #b9bbbe;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.nitro-reward {
    margin-bottom: 40px;
}

.nitro-display {
    background: rgba(88, 101, 242, 0.1);
    border: 2px solid #5865f2;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.nitro-display .nitro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.nitro-display h3 {
    color: #5865f2;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.nitro-display p {
    color: #b9bbbe;
    font-size: 1rem;
}

.code-section {
    margin-bottom: 30px;
}

.code-section .code-display {
    margin-bottom: 15px;
}

.code-section #nitroCode {
    background: rgba(64, 68, 75, 0.9);
    border: 2px solid #5865f2;
    color: #5865f2;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.code-section .copy-btn {
    background: #5865f2;
    font-size: 0.9rem;
    padding: 18px 20px;
}

.code-section .copy-btn:hover {
    background: #4752c4;
}

.code-section .code-info {
    color: #b9bbbe;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.redeem-btn, .generate-another-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.redeem-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

.generate-another-btn {
    background: rgba(64, 68, 75, 0.8);
    color: #b9bbbe;
    border: 2px solid #72767d;
}

.generate-another-btn:hover {
    background: rgba(72, 76, 83, 0.9);
    color: #ffffff;
    border-color: #b9bbbe;
    transform: translateY(-2px);
}

.success-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.timer {
    background: rgba(64, 68, 75, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffa500;
    font-weight: 600;
}

.timer i {
    color: #ffa500;
}

#countdown {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
}

.disclaimer {
    color: #72767d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .success-section {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .redeem-btn, .generate-another-btn {
        min-width: 100%;
    }
    
    .success-header h1 {
        font-size: 1.8rem;
    }
    
    .code-section .code-display {
        flex-direction: column;
    }
} 