/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Main container */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header section */
.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.logo-text {
    text-align: left;
}

.logo-section h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.logo-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.shop-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    background: #000;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
}

.shop-link:hover {
    background: #333;
    transform: translateY(-1px);
    border: 1px solid rgba(255,255,255,0.4);
}

/* Language Selector Styles */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    backdrop-filter: blur(10px);
}

.language-selector label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.language-selector select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.language-selector select:hover {
    border-color: #007bff;
}

.language-selector select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments for language selector */

/* Guarantee text with rainbow animation */
.guarantee-text {
    background: linear-gradient(90deg, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8, 
        #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 12s linear infinite;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
}

@keyframes rainbow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Tutorial alert section */
.tutorial-alert {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(255,107,107,0.3);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-content h3 {
    color: #000000;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tutorial-steps {
    margin-bottom: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: #000;
}

.step-number {
    background: rgba(255,255,255,0.2);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 1rem;
}

.tutorial-note {
    color: #000;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 0;
}

/* Form container */
.form-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-header p {
    color: #666;
    font-size: 1rem;
}

/* Input group */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.label-icon {
    font-size: 1.1rem;
}

.example-text {
    color: #888;
    font-weight: 400;
    font-size: 0.9rem;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.input-help {
    margin-top: 5px;
}

.input-help small {
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.claim-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    position: relative;
}

.claim-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.5);
}

.claim-button:active {
    transform: translateY(0);
}

.claim-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.button-icon {
    font-size: 1.2rem;
}

.button-text {
    font-size: 1rem;
}

/* Loading spinner */
.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation for results appearing */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Action buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.discord-button, .otp-button {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.discord-button {
    background: linear-gradient(135deg, #5865f2, #4f46e5);
    color: #fff;
}

.discord-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88,101,242,0.4);
}

.otp-button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.otp-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

/* Message container */
.message-container {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeInScale 0.6s ease-out;
}

.message-content {
    color: #333;
    line-height: 1.6;
    white-space: pre-line;
}

.message-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.message-content a:hover {
    text-decoration: underline;
}

/* Products section */
.products-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInScale 0.6s ease-out;
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.important-notice {
    color: #f59e0b;
    font-size: 1rem;
    margin: 0;
}

.product-cards {
    display: grid;
    gap: 20px;
}

.product-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-header h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-content {
    color: #555;
    line-height: 1.6;
    white-space: pre-line;
}

.product-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.product-content a:hover {
    text-decoration: underline;
}

/* No products section */
.no-products {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInScale 0.6s ease-out;
}

.no-products-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-products h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.no-products p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Promotional section */
.promo-section {
    margin-bottom: 30px;
}

.promo-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.promo-card a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.promo-card img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.promo-content h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
}

.footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .main-container {
        padding: 0 10px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-text {
        text-align: center;
    }
    
    .logo-section h1 {
        font-size: 2rem;
    }

    .tutorial-alert {
        flex-direction: column;
        text-align: center;
    }
    
    .form-container {
        padding: 20px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .promo-card a {
        flex-direction: column;
    text-align: center;
    }

    .language-selector {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-section h1 {
        font-size: 1.8rem;
    }

    .tutorial-alert {
        padding: 20px;
    }

    .form-container {
        padding: 15px;
    }
}