/* UpSpert Dashboard Styles - v1.3 White/Green Glow */
:root {
  --ups-green: #00FF6A;
  --bg: #000000;
  --panel: #0D0D0D;
  --panel-2: #111111;
  --text: #FFFFFF;
  --ring: rgba(0,255,106,0.45);
}

* { box-sizing: border-box; }

.ups-dash { display: grid; grid-template-columns: 260px 1fr; min-height: 70vh; background: var(--bg); color: var(--text); font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif; }
.ups-dash-sidebar { background: #000; padding: 24px 16px; border-right: 1px solid #0f0f0f; position: sticky; top: 0; height: 100%; }
.ups-dash-sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; }
.logo-circle { width: 16px; height: 16px; border-radius: 50%; background: var(--ups-green); box-shadow: 0 0 18px var(--ring); }
.ups-dash-sidebar nav { display: grid; margin-top: 28px; gap: 6px; }
.ups-dash-sidebar nav a { text-decoration: none; color: var(--text); padding: 10px 12px; border-radius: 10px; transition: box-shadow .2s ease, color .2s ease; }
.ups-dash-sidebar nav a.active, .ups-dash-sidebar nav a:hover { color: var(--ups-green); box-shadow: inset 0 0 0 1px var(--panel-2), 0 0 18px var(--ring); }

.ups-dash-main { padding: 26px; }
.ups-dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.user-chip { background: transparent; border-radius: 999px; padding: 8px 12px; color: var(--text); font-size: 12px; border: 1px solid var(--ups-green); box-shadow: 0 0 14px var(--ring); }
.upgrade-btn { display: inline-block; padding: 10px 14px; border-radius: 12px; background: var(--ups-green); color: #000; font-weight: 800; text-decoration: none; border: none; cursor: pointer; box-shadow: 0 0 24px var(--ring); }
.upgrade-btn:hover { transform: translateY(-1px); box-shadow: 0 0 36px var(--ring); }

.ups-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }
.ups-dash-grid.small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.ups-dash-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border-radius: 16px; padding: 16px; border: 1px solid #0f0f0f; box-shadow: 0 8px 40px rgba(0,0,0,.65), 0 0 18px rgba(0,255,106,0.05); }
.ups-dash-card.tool { position: relative; animation: cardPulse 5s ease-in-out infinite; }
.ups-dash-card.locked { opacity: 0.95; border-color: var(--ups-green); }

@keyframes cardPulse {
  0%, 100% { box-shadow: 0 8px 40px rgba(0,0,0,.65), 0 0 10px rgba(0,255,106,0.10); }
  50% { box-shadow: 0 8px 40px rgba(0,0,0,.65), 0 0 28px rgba(0,255,106,0.35); }
}

.icon { font-size: 24px; margin-bottom: 10px; }
.ups-dash-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.ups-dash-card p { color: var(--text); opacity: 0.9; font-size: 13px; line-height: 1.4; }

.ups-dash-btn { display: inline-block; padding: 10px 14px; border-radius: 10px; background: var(--ups-green); color: #000; font-weight: 800; text-decoration: none; border: none; cursor: pointer; box-shadow: 0 0 0 0 rgba(0,255,106,0.25); transition: transform .1s ease, box-shadow .2s ease; }
.ups-dash-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px var(--ring); }
.ups-dash-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--ups-green); }

details { margin-top: 10px; }
summary.ups-dash-btn { list-style: none; }
summary.ups-dash-btn::-webkit-details-marker { display: none; }

/* Login/Register shared */
.ups-login { display: grid; place-items: center; min-height: 80vh; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
.ups-login-box { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border-radius: 16px; padding: 40px 30px; width: 100%; max-width: 420px; box-shadow: 0 0 30px rgba(0,255,106,0.15), 0 0 8px rgba(0,255,106,0.15); border: 1px solid #0f0f0f; }
.logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; font-weight: 800; font-size: 20px; color: var(--text); }
.ups-login-box h2 { text-align: center; margin-bottom: 20px; color: var(--text); }
.ups-login-box form { display: grid; gap: 12px; }
.ups-login-box label { font-size: 13px; color: var(--text); }
.ups-login-box input[type="text"], .ups-login-box input[type="password"], .ups-login-box input[type="email"] {
  padding: 10px; border-radius: 10px; border: 1px solid #0f0f0f; background: #111; color: var(--text);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
}
.ups-login-box input:focus { outline: 1px solid var(--ups-green); box-shadow: 0 0 18px var(--ring), inset 0 0 10px rgba(0,0,0,0.4); }
.remember { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); opacity: 0.9; }
.ups-error { background: #1f0000; color: #ff6a6a; border: 1px solid #5a0000; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; text-align: center; }
.ups-alt { text-align: center; font-size: 13px; margin-top: 12px; color: var(--text); }
.ups-alt a { color: var(--ups-green); text-decoration: none; }
.ups-alt a:hover { text-decoration: underline; }
