/* === VIBE-MASTER DESIGN SYSTEM (REPAIRED) === */
:root {
    --bg-void: #050505;
    --bg-surface: #121413;
    --bg-overlay: rgba(18, 20, 19, 0.85);
    --brand-primary: #d4ff00;
    --brand-secondary: #5c7c28;
    --status-danger: #ff4444;
    --status-success: #00e676;
    --text-main: #f0f0f0;
    --text-muted: #8c9e8c;
    --text-inverse: #050505;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 3rem;
    --font-stack: 'Courier New', Courier, monospace;
    --text-h1: clamp(1.8rem, 4vw + 1rem, 3.5rem);
    --text-sm: 0.875rem;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-void);
    background-image: radial-gradient(circle at 50% 0%, #1a2218 0%, var(--bg-void) 80%);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
}

/* Scanline Suave (5% Opacidad) */
body::after {
    content: " ";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px;
    pointer-events: none; z-index: 999;
}

.container {
    width: 100%; max-width: 1200px;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    border: var(--border-subtle);
    border-top: 2px solid var(--brand-secondary);
    padding: var(--space-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin-top: var(--space-xl);
}

h1 {
    font-size: var(--text-h1); color: var(--brand-primary);
    text-transform: uppercase; letter-spacing: 2px;
    text-align: center; margin-bottom: var(--space-sm);
    text-shadow: 0 0 10px rgba(212, 255, 0, 0.3);
}

.subtitle {
    text-align: center; color: var(--text-muted);
    font-size: var(--text-sm); margin-bottom: var(--space-xl);
    border-bottom: 1px dashed var(--brand-secondary);
    padding-bottom: var(--space-md);
}

a { color: var(--text-muted); transition: color 0.3s; }
a:hover { color: var(--brand-primary); }

/* --- UI COMPONENTS --- */
.btn, .btn-action, .connect-btn, .buy-btn {
    display: inline-flex; justify-content: center; align-items: center;
    width: 100%; min-height: 48px; padding: 0 var(--space-lg);
    background: linear-gradient(45deg, var(--brand-secondary), #3a4b26);
    color: var(--text-main); border: 1px solid var(--brand-secondary);
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; text-decoration: none; transition: all 0.2s;
    font-family: inherit; font-size: var(--text-sm);
}
.btn:hover, .btn-action:hover, .connect-btn:hover, .buy-btn:hover {
    background: var(--brand-primary); color: var(--text-inverse);
    box-shadow: 0 0 20px rgba(212, 255, 0, 0.4); transform: translateY(-2px);
}
.btn:disabled, .buy-btn:disabled {
    background: #333; color: #666; border-color: #444; cursor: not-allowed;
    transform: none; box-shadow: none;
}

.form-group { margin-bottom: var(--space-md); }
input, select {
    width: 100%; padding: 12px; background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444; border-left: 3px solid var(--brand-secondary);
    color: white; font-family: inherit; font-size: 1rem;
}
input:focus { outline: none; border-color: var(--brand-primary); background: rgba(0, 0, 0, 0.5); }

.alert { padding: var(--space-md); margin-bottom: var(--space-lg); border: 1px solid; text-align: center; font-weight: bold; }
.alert-success { border-color: var(--brand-primary); background: rgba(212, 255, 0, 0.1); color: var(--brand-primary); }
.alert-error { border-color: var(--status-danger); background: rgba(255, 68, 68, 0.1); color: var(--status-danger); }

/* --- GRID & CARDS --- */
.dashboard-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.shop-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card, .item-card {
    background: var(--bg-surface); border: var(--border-subtle);
    padding: var(--space-lg); display: flex; flex-direction: column;
    justify-content: space-between; transition: transform 0.3s, border-color 0.3s;
}
.card:hover, .item-card:hover { border-color: var(--brand-primary); transform: translateY(-4px); }

/* CLASE QUE FALTABA (LABEL) */
.label {
    color: var(--text-muted); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 0.5rem; font-weight: bold;
}

@media (min-width: 768px) { .dashboard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { 
    .dashboard-grid { grid-template-columns: repeat(3, 1fr); } 
    .container { padding: var(--space-xl); }
}
