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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #4CAF50;
    --danger: #f44336;
    --warning: #ff9800;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --border: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-btn, .nav-btn-primary {
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
}

.nav-btn-primary {
    background: var(--primary);
    color: white;
}

.nav-btn-primary:hover {
    background: var(--primary-dark);
}

.section {
    display: none;
    min-height: calc(100vh - 70px);
    padding: 40px 0;
}

.section.active {
    display: block;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    font-size: 24px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin: 60px 0 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.game-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
}

.features-section {
    margin: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-icon-large {
    font-size: 64px;
    margin-bottom: 15px;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-card h2 {
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.verification-box {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.verification-box input {
    font-size: 24px;
    letter-spacing: 5px;
    text-align: center;
    margin: 20px 0;
}

.service-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.rank-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: end;
}

.rank-arrow {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 30px;
}

.price-display {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.price-breakdown {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.price-divider {
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin: 15px 0;
}

.price-total {
    font-size: 24px;
    font-weight: bold;
}

.payment-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.payment-sidebar {
    background: white;
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary {
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 15px 0;
}

.summary-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.payment-main {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.payment-methods {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.payment-method.selected {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.method-icon {
    font-size: 36px;
}

#paymentDetails {
    margin-top: 30px;
    padding: 30px;
    background: var(--light);
    border-radius: 12px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.success-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.code-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.code {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-top: 15px;
    font-family: monospace;
}

.btn-copy {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
}

.next-steps {
    text-align: left;
    background: var(--light);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.next-steps code {
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary);
}

#ordersList,
#staffOrdersList,
#adminOrdersList {
    display: grid;
    gap: 20px;
}

.order-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.order-info h3 {
    margin-bottom: 10px;
}

.order-meta {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: end;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-pending, .status-pending_payment {
    background: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-waiting {
    background: #d1ecf1;
    color: #0c5460;
}

.status-in_progress {
    background: #cce5ff;
    color: #004085;
}

.order-code {
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.admin-sections {
    display: grid;
    gap: 30px;
}

.admin-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-card.full-width {
    grid-column: 1 / -1;
}

.admin-card h3 {
    margin-bottom: 20px;
}

#pricingContainer {
    max-height: 500px;
    overflow-y: auto;
}

.pricing-section {
    margin-bottom: 30px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.pricing-table input {
    width: 100px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.welcome {
    text-align: center;
    margin: 40px 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.action-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.action-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--dark);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
    z-index: 2000;
}

.notification.active {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--danger);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .rank-grid {
        grid-template-columns: 1fr;
    }

    .rank-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .payment-container {
        grid-template-columns: 1fr;
    }

    .admin-sections {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}