/* Base Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top right, #0f172a, #1e293b);
    min-height: 100vh;
    color: var(--light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(90deg, #818cf8, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Inventory Styles */
.inventory {
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.live-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-message {
    font-size: 1.1rem;
}

/* Package Styles */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.package-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.package-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.package-price {
    color: #c7d2fe;
    margin-bottom: 1rem;
}

.package-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.popular {
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f59e0b;
    color: #1e293b;
    padding: 0.25rem 1rem;
    border-radius: 0 0.75rem 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Redeem Section */
.redeem-section {
    display: none;
}

.redeem-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.result-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* CTA Section */
.cta {
    text-align: center;
}

.cta-card {
    display: inline-block;
    max-width: 600px;
}

/* Payment Page Styles */
.payment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.payment-header {
    text-align: center;
    margin-bottom: 3rem;
}

.payment-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.payment-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
}

.payment-card {
    padding: 2rem;
}

.order-summary, .payment-methods, .payment-instructions {
    margin-bottom: 2rem;
}

.summary-box {
    background: rgba(30, 41, 59, 0.5);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row:last-child {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.method-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.method-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.method-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.method-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-weight: 700;
}

.method-icon.usdt {
    background: #26a17b;
    color: white;
}

.method-icon.btc {
    background: #f7931a;
    color: white;
}

.detail-group {
    margin-bottom: 1rem;
}

.detail-group label {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.detail-value {
    background: rgba(30, 41, 59, 0.5);
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-family: monospace;
    word-break: break-all;
}

.crypto-address {
    font-size: 0.875rem;
}

.qr-container {
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin-top: 1rem;
}

.instructions-box {
    background: rgba(30, 41, 59, 0.5);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}

.instruction-step {
    display: flex;
    margin-bottom: 1rem;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-actions .btn-primary,
.payment-actions .btn-secondary {
    flex: 1;
}

.payment-result {
    margin-top: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.animate-slideUp {
    animation: slideUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container, .payment-container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .package-grid, .method-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-actions {
        flex-direction: column;
    }
}