* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #315cf7 0%, #1e3a8a 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    color: #00b2ff;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Card Selection */
.card-selection {
    margin-bottom: 40px;
}

.card-selection h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.amount-btn {
    background: linear-gradient(135deg, #315cf7 0%, #1e3a8a 100%);
    border: none;
    border-radius: 15px;
    padding: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(49, 92, 247, 0.3);
}

.amount-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.amount-btn.selected {
    background: linear-gradient(135deg, #00b2ff 0%, #0099cc 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 178, 255, 0.4);
}

.amount-btn .amount {
    font-size: 1.8rem;
    font-weight: 700;
}

.amount-btn .robux {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Terminal */
.terminal-section {
    margin-bottom: 40px;
}

.terminal {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.terminal-header {
    background: #333;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.terminal-title {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
    background: #1e1e1e;
}

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
}

.prompt {
    color: #00b2ff;
    margin-right: 8px;
}

.command {
    color: #fff;
}

.success {
    color: #00ff00;
}

.error {
    color: #ff4444;
}

.warning {
    color: #ffaa00;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Generate Section */
.generate-section {
    text-align: center;
}

.generate-btn {
    background: linear-gradient(135deg, #00b2ff 0%, #0099cc 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 178, 255, 0.4);
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.generate-btn.loading {
    background: #666;
    cursor: not-allowed;
}

.generate-btn.loading i {
    animation: spin 1s linear infinite;
}

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

.info-text {
    color: #666;
    font-size: 0.9rem;
}

/* Result Section */
.result-section {
    margin-top: 40px;
}

.gift-card {
    background: linear-gradient(135deg, #315cf7 0%, #1e3a8a 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    text-align: center;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-header i {
    font-size: 2rem;
    color: #00b2ff;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.code-display {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

#generated-code {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.copy-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 8px;
    padding: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.unlock-section {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 25px;
}

.unlock-text {
    margin-bottom: 20px;
    opacity: 0.9;
}

.unlock-btn {
    background: #ff6b6b;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.unlock-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #000;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .amount-buttons {
        grid-template-columns: 1fr;
    }
    
    .terminal-body {
        padding: 15px;
        font-size: 12px;
    }
    
    #generated-code {
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .code-display {
        flex-direction: column;
        gap: 10px;
    }
}

/* Compteur de membres en ligne */
.online-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.counter-icon {
    color: #00d4ff;
    font-size: 18px;
}

.counter-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.counter-number {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.counter-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-status {
    position: relative;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    display: block;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

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