/* ========================================
   GLOBAL STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER / NAVBAR
======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-link {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.navbar-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-link.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.navbar-link.btn-primary:hover {
    background: white;
}

/* User Info in Navbar */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.user-wallet {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 1;
}

/* ========================================
   CARDS
======================================== */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    margin: 20px auto;
}

.card-header {
    background: linear-gradient(135deg, #0078d7 0%, #0061b8 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.card-header p {
    opacity: 0.9;
}

.card-body {
    padding: 30px;
}

/* ========================================
   FORMS
======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0078d7;
    box-shadow: 0 0 0 3px rgba(0,120,215,0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16,185,129,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59,130,246,0.4);
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* ========================================
   ALERTS
======================================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* ========================================
   WALLET INFO
======================================== */
.wallet-info {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
}

.wallet-info h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.wallet-balance {
    font-size: 36px;
    font-weight: bold;
}

/* ========================================
   PRICE INFO
======================================== */
.price-info {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
}

/* ========================================
   RESULTS
======================================== */
.unlock-code-result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #d1fae5;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.unlock-code-result h3 {
    color: #065f46;
    margin-bottom: 10px;
}

.unlock-code {
    font-size: 24px;
    font-weight: bold;
    color: #047857;
    letter-spacing: 2px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    text-align: center;
    margin: 10px 0;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-link {
        width: 100%;
        text-align: center;
    }
    
    .card {
        margin: 10px;
    }
    
    .card-header h1 {
        font-size: 22px;
    }
    
    .wallet-balance {
        font-size: 28px;
    }
}