:root { --bg: #0f172a; --card-bg: rgba(30, 41, 59, 0.7); --text: #f8fafc; --primary: #3b82f6; --accent: #f43f5e; --border: rgba(255,255,255,0.1); }
body.light-mode { --bg: #f1f5f9; --card-bg: rgba(255,255,255,0.8); --text: #1e293b; --border: rgba(0,0,0,0.1); }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { background: var(--bg); color: var(--text); transition: 0.3s; }
.navbar { background: var(--card-bg); backdrop-filter: blur(10px); padding: 15px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.5rem; color: var(--primary); }
#theme-toggle { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.container { max-width: 800px; margin: 0 auto; padding: 20px; }
.glass-box { background: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 30px rgba(0,0,0,0.1); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin: 20px 0; }
.step-card { text-align: center; font-size: 0.9rem; }
.step-icon { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: bold; }
.alert-box { padding: 12px; border-radius: 8px; margin: 10px 0; font-size: 0.9rem; }
.warning { background: rgba(245, 158, 11, 0.2); border: 1px solid #f59e0b; color: #fbbf24; }
.info { background: rgba(59, 130, 246, 0.2); border: 1px solid #3b82f6; color: #60a5fa; }
.danger { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #f87171; }
.success { background: rgba(34, 197, 94, 0.2); border: 1px solid #22c55e; color: #4ade80; }
.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat-item span { display: block; font-size: 1.2rem; font-weight: bold; color: var(--primary); }
.stat-item label { font-size: 0.8rem; opacity: 0.7; }
#search-input { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 1rem; margin-bottom: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card:hover { transform: translateY(-5px); transition: 0.2s; }
.prod-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.badge { background: var(--primary); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; }
.price { font-size: 1.2rem; font-weight: bold; color: var(--accent); }
.btn-buy { width: 100%; padding: 10px; border: none; border-radius: 8px; background: var(--primary); color: white; font-weight: bold; cursor: pointer; margin-top: 10px; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 200; }
.modal-content { max-width: 500px; margin: 50px auto; position: relative; }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; cursor: pointer; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text); }
.center-text { text-align: center; }
.qr-container img { max-width: 100%; border-radius: 10px; margin: 15px 0; border: 5px solid white; }
.btn-secondary { background: #64748b; color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; }
.btn-group { display: flex; gap: 10px; margin-top: 15px; }
.btn-group button { flex: 1; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }