/* ══════════════════════════════════════════════════════════════
   nintellsoft — portal.css  v2.0
   ══════════════════════════════════════════════════════════════ */

/* ── AUTH PAGE ───────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); position: relative; overflow: hidden;
}
#auth-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.auth-card {
  position: relative; z-index: 2;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r2); padding: 2.5rem 2.2rem;
  width: 100%; max-width: 440px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.auth-logo {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 800;
  color: var(--ink); text-decoration: none;
  display: block; margin-bottom: 2rem;
}
.auth-card h1 { font-family: var(--serif); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: 0.4rem; }
.auth-sub { font-size: 0.875rem; color: var(--ink3); margin-bottom: 1.8rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.forgot-link { float: right; font-size: 0.75rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }
.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--ink3); font-size: 0.78rem;
  cursor: pointer; font-family: var(--sans); font-weight: 500;
  transition: color .2s;
}
.pw-toggle:hover { color: var(--accent); }
.auth-footer { font-size: 0.82rem; color: var(--ink3); margin-top: 1.5rem; text-align: center; }
.auth-footer a { color: var(--accent); text-decoration: none; }

/* ── PORTAL HEADER ───────────────────────────────────────────── */
.portal-body { background: var(--bg); }
.portal-header {
  position: sticky; top: 0; z-index: 100;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(6,6,10,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.portal-nav-links { display: flex; align-items: center; gap: 0.3rem; }
.portal-nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--ink2);
  text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 6px;
  transition: color .2s, background .2s;
}
.portal-nav-links a:hover,
.portal-nav-links a.active { color: var(--ink); background: rgba(255,255,255,0.06); }
.portal-signout { color: var(--ink3) !important; margin-left: 0.5rem; }
.portal-signout:hover { color: var(--danger) !important; }

/* ── PORTAL MAIN ─────────────────────────────────────────────── */
.portal-main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 5%; }
.portal-welcome { margin-bottom: 2.5rem; }
.portal-welcome h1 { font-family: var(--serif); font-size: 1.8rem; font-weight: 800; color: var(--ink); margin-bottom: 0.4rem; }
.portal-section { margin-bottom: 3rem; }
.ps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.ps-head h2 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.portal-empty { font-size: 0.875rem; color: var(--ink3); padding: 1.5rem; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r); text-align: center; }
.portal-empty a { color: var(--accent); text-decoration: none; }

/* ── LICENCE CARDS ───────────────────────────────────────────── */
.licence-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.licence-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.3rem;
  transition: border-color .2s, transform .2s;
}
.licence-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.licence-card.status-active  { border-left: 3px solid var(--success); }
.licence-card.status-trial   { border-left: 3px solid #818cf8; }
.licence-card.status-expired { border-left: 3px solid var(--danger); }
.lc-product { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem; }
.lc-key { font-family: var(--mono); font-size: 0.78rem; color: var(--ink2); background: rgba(255,255,255,0.04); padding: 0.3rem 0.5rem; border-radius: 4px; margin-bottom: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.lc-plan, .lc-seats { font-size: 0.72rem; color: var(--ink3); background: var(--border); padding: 0.15rem 0.45rem; border-radius: 4px; }
.lc-expires { font-size: 0.75rem; color: var(--ink3); }

/* ── TICKETS ─────────────────────────────────────────────────── */
.ticket-form {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 1.8rem; margin-bottom: 2rem;
}
.ticket-form h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 1.2rem; }

/* ── AGENT PORTAL ────────────────────────────────────────────── */
.agent-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 2rem; }
.agent-stat {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.3rem; text-align: center;
}
.agent-stat-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.agent-stat-lbl { font-size: 0.78rem; color: var(--ink3); margin-top: 0.2rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .auth-card { margin: 1rem; padding: 1.8rem 1.4rem; }
  .portal-header { padding: 0 4%; }
  .portal-nav-links a { padding: 0.35rem 0.5rem; font-size: 0.82rem; }
  .agent-stats { grid-template-columns: 1fr; }
}
