:root {
    --bg-base: #050507;
    --bg-glass: rgba(20, 20, 25, 0.6);
    --bg-glass-hover: rgba(30, 30, 40, 0.8);
    --text-main: #ffffff;
    --text-muted: #a0a0ab;
    --border-glass: rgba(255, 255, 255, 0.08);
    --accent-primary: #7d2ae8;
    --accent-secondary: #00f3ff;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
[data-theme="light"] {
    --bg-base: #f0f2f5;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    --text-main: #1a1a24;
    --text-muted: #60606b;
    --border-glass: rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-base); color: var(--text-main); min-height: 100vh; }

.navbar { position: sticky; top: 0; left: 0; width: 100%; z-index: 100; backdrop-filter: blur(16px); background: var(--bg-glass); border-bottom: 1px solid var(--border-glass); }
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand-text { font-weight: 800; font-size: 1.2rem; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-link { background: none; border: none; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text-main); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
main.container { padding-top: 3rem; padding-bottom: 5rem; }

.view-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.view-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }

.glass-card { background: var(--bg-glass); backdrop-filter: blur(12px); border: 1px solid var(--border-glass); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-glass); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-main); }
.form-group.row { display: flex; gap: 1rem; margin-bottom: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea { width: 100%; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid var(--border-glass); background: rgba(0,0,0,0.1); color: var(--text-main); font-family: inherit; font-size: 1rem; }
[data-theme="light"] input, [data-theme="light"] textarea { background: rgba(255,255,255,0.5); }
.text-muted { color: var(--text-muted); }
.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.btn { padding: 0.8rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.btn-primary { background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white; }
.btn-secondary { background: var(--bg-glass-hover); color: var(--text-main); border: 1px solid var(--border-glass); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }

/* Custom components */
.tabs { display: flex; gap: 1rem; border-bottom: 1px solid var(--border-glass); padding-bottom: 0.5rem; }
.tab-btn { background: none; border: none; color: var(--text-muted); font-size: 1rem; font-weight: 600; cursor: pointer; padding: 0.5rem 1rem; }
.tab-btn.active { color: var(--accent-primary); border-bottom: 2px solid var(--accent-primary); }

.items-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.item-card { display: flex; gap: 1.5rem; padding: 1.5rem; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 12px; }
.item-img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; background: rgba(0,0,0,0.2); }
.item-content { flex: 1; }
.item-price { font-size: 1.2rem; font-weight: bold; color: var(--accent-secondary); }

.live-tip-box { position: absolute; right: 0; top: 100%; margin-top: 5px; background: rgba(125,42,232,0.9); color: white; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; z-index: 10; cursor: default; }

.loader { text-align: center; color: var(--accent-secondary); font-weight: 600; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
