/* CSS Variables for Dark Mode Premium Theme - Gaming/Boosting Vibe */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800;900&display=swap');

:root {
    /* Backgrounds based on image */
    --bg-main: #0a0c10;
    --bg-secondary: #12141a;
    --bg-card: #151821;
    
    /* Typography */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    /* Accents */
    --accent: #2dd4bf; /* Mint/Cyan */
    --accent-hover: #14b8a6;
    
    --primary: #8b5cf6; /* Purple */
    --primary-light: #c084fc;
    --primary-gradient: linear-gradient(135deg, #a855f7, #3b82f6);
    
    /* Status Colors */
    --status-dang-cay: #eab308; /* Amber/Yellow for Kazumi */
    --status-hoan-thanh: #22c55e; /* Green */
    --status-tam-dung: #f97316; /* Orange for Kazumi */
    
    --border-light: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Base class for javascript animation trigger */
.animate-on-load {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.app-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background-color: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #a78bfa, #5eead4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.3));
}

.logo-section:hover .logo-text {
    filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.6));
}

.navigation {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-hover);
}

.nav-link.scam {
    color: var(--status-tam-dung);
}
.nav-link.scam:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font-main);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(94, 234, 212, 0.2);
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 8px 25px rgba(94, 234, 212, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 20px;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.animated-heading {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 2.5rem;
    text-transform: uppercase;
    background: linear-gradient(270deg, #5eead4, #a855f7, #3b82f6, #5eead4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientCycle 4s ease infinite;
}

@keyframes gradientCycle {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.stat-card:hover {
    transform: translateY(-5px);
    background: var(--bg-secondary);
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    transition: var(--transition);
}
.stat-card:hover .stat-val {
    transform: scale(1.05);
}

/* Controls */
.controls-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    align-items: center;
    gap: 20px;
}

.search-box {
    flex: 1;
    max-width: 600px;
    position: relative;
}
.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 1.1rem;
}
.search-box input {
    width: 100%;
    background: #111216;
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    padding: 16px 20px 16px 55px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: rgba(94, 234, 212, 0.5);
    box-shadow: 0 0 20px rgba(94, 234, 212, 0.1);
    background: var(--bg-secondary);
}
.search-box input:focus + i, .search-box input:focus ~ i {
    color: var(--accent);
}

/* ------------------- ORDERS GRID ------------------- */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.order-card {
    background: #1a1b1e;
    border: none;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: var(--transition);
    cursor: default;
    display: flex;
    flex-direction: column;
}
.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #1c1d21;
}

/* Left solid line indicator (Kazumi style) */
.order-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 4px;
    background: var(--status-color, var(--primary));
    border-radius: 0 4px 4px 0;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.booster-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.booster-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.85rem;
}

.booster-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booster-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.booster-label strong {
    font-size: 0.8rem;
    text-transform: none;
}
.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.order-task-content {
    background: #141517;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 20px;
    flex: 1;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}
.status-dang_cay {
    background: rgba(245, 158, 11, 0.1);
    color: var(--status-dang-cay);
    border-color: rgba(245, 158, 11, 0.2);
}
.status-hoan_thanh {
    background: rgba(34, 197, 94, 0.1);
    color: var(--status-hoan-thanh);
    border-color: rgba(34, 197, 94, 0.2);
}
.status-tam_dung {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-tam-dung);
    border-color: rgba(239, 68, 68, 0.2);
}

.order-body {
    flex: 1;
    font-size: 0.95rem;
    color: #e2e8f0;
    margin-bottom: 25px;
    line-height: 1.5;
}

.order-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
}

.price-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.price-value.hidden {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.price-value.visible {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255,255,255,0.02);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 30px;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}
.auth-tab.active {
    color: var(--accent);
}
.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: var(--transition);
}
.auth-tab.active::after {
    background: var(--accent);
    box-shadow: 0 -2px 10px rgba(94, 234, 212, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
}
/* Premium Hero Overlay */
.hero h1 {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #a855f7, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
    letter-spacing: 2px;
    margin-bottom: 20px;
}
