:root { --purple:#522398; --deep:#211044; --gold:#d4a017; --ink:#191526; --muted:#6b6478; --line:#ded8ea; --bg:#f5f3f8; --white:#fff; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:radial-gradient(circle at top left,#eee7fa 0,transparent 34%),var(--bg); }
a { color:var(--purple); }
button,input { font:inherit; }
.site-head { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:78px; padding:14px clamp(20px,5vw,72px); border-bottom:1px solid var(--line); background:rgba(255,255,255,.86); backdrop-filter:blur(12px); }
.brand { display:flex; align-items:center; gap:11px; color:var(--ink); text-decoration:none; }
.brand span:last-child { display:grid; }
.brand strong { font-size:18px; }
.brand small { margin-top:2px; color:var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.mark { display:grid; place-items:center; width:43px; height:43px; border-radius:12px; color:#fff; background:linear-gradient(135deg,var(--deep),var(--purple)); font-weight:900; }
.user-chip { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:13px; font-weight:750; }
.user-chip form { margin:0; }
.user-chip button { border:1px solid var(--line); border-radius:7px; padding:8px 11px; background:#fff; color:var(--purple); cursor:pointer; }
main { width:min(920px,calc(100% - 32px)); margin:0 auto; padding:48px 0 72px; }
main.wide { width:min(1220px,calc(100% - 32px)); }
h1,h2,p { margin-top:0; }
h1 { margin-bottom:12px; color:var(--deep); font-size:clamp(32px,5vw,58px); line-height:1.02; letter-spacing:-.045em; }
h2 { color:var(--deep); }
.eyebrow { margin-bottom:10px; color:var(--gold); font-size:11px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.login-hero>div:first-child { max-width:760px; }
.login-hero>div:first-child>p:last-child,.portal-head>p:last-child { color:var(--muted); font-size:16px; line-height:1.55; }
.login-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:36px; }
.panel { padding:26px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.94); box-shadow:0 14px 38px rgba(33,16,68,.08); }
.panel.narrow { max-width:570px; margin:40px auto; }
label { display:grid; gap:7px; margin:16px 0; color:var(--muted); font-size:13px; font-weight:750; }
input { min-height:46px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); }
.primary,.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px; border:0; border-radius:8px; background:var(--purple); color:#fff; font-weight:850; text-decoration:none; cursor:pointer; }
.portal-head { max-width:760px; margin-bottom:20px; }
.portal-head h1 { font-size:clamp(32px,4vw,48px); }
.app-sections { display:grid; gap:18px; }
.app-section { padding-top:2px; }
.app-section h2 { margin:0 0 8px; padding-bottom:6px; border-bottom:1px solid #e6dff1; font-size:17px; letter-spacing:-.01em; }
.app-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.app-card { display:flex; flex-direction:column; min-height:108px; padding:14px 16px; border:1px solid var(--line); border-top:3px solid var(--purple); border-radius:10px; background:#fff; color:var(--ink); text-decoration:none; box-shadow:0 5px 14px rgba(33,16,68,.05); transition:transform .15s ease,box-shadow .15s ease; }
.app-card:hover { transform:translateY(-3px); box-shadow:0 13px 28px rgba(33,16,68,.12); }
.app-card span { color:var(--deep); font-size:16px; font-weight:900; }
.app-card small { margin-top:5px; color:var(--muted); font-size:11px; line-height:1.3; }
.app-card b { margin-top:auto; padding-top:8px; color:var(--purple); font-size:11px; }
.agreement-card { max-width:760px; margin:0 auto; }
.agreement-card h1 { font-size:clamp(30px,5vw,46px); }
.notice { margin:22px 0; padding:17px; border-left:4px solid var(--gold); background:#fff7d9; color:#4d3c04; font-size:14px; line-height:1.55; }
.check { display:grid; grid-template-columns:22px 1fr; align-items:start; gap:10px; color:var(--ink); font-size:14px; line-height:1.5; }
.check input { width:19px; min-height:19px; margin:2px 0 0; }
.terms { padding:36px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 14px 38px rgba(33,16,68,.08); }
.terms h1 { font-size:clamp(31px,5vw,50px); }
.terms h2 { margin-top:30px; font-size:20px; }
.terms p { color:#3f394c; line-height:1.75; }
.terms .lead { color:var(--deep); font-size:17px; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(33,16,68,.06); }
table { width:100%; border-collapse:collapse; }
th,td { padding:12px 14px; border-bottom:1px solid #eeeaf4; font-size:12px; text-align:left; white-space:nowrap; }
th { color:var(--muted); background:#faf8fd; font-size:10px; letter-spacing:.07em; text-transform:uppercase; }
.status { padding:4px 7px; border-radius:999px; font-weight:850; }
.status.success { color:#17673d; background:#ddf5e8; }
.status.denied,.status.blocked_network { color:#8c2525; background:#fae0e0; }
.ip-lookup { display:flex; align-items:end; gap:10px; margin-top:22px; }
.ip-lookup label { flex:1; max-width:520px; margin:0; }
.ip-lookup .secondary { border:1px solid var(--line); background:#fff; color:var(--purple); }
.validation-error { margin:12px 0 0!important; color:#a12626!important; font-size:13px!important; font-weight:800; }
.filter-form { margin-top:22px; padding:20px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(33,16,68,.06); }
.filter-section { margin:0 0 16px; padding:0; border:0; }
.filter-section+.filter-section { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.filter-section legend { padding:0 0 10px; color:var(--deep); font-size:12px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.filter-grid label { margin:0; }
.filter-actions { display:flex; align-items:center; gap:10px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.filter-actions .secondary { border:1px solid var(--line); background:#fff; color:var(--purple); }
.login-error { margin:12px 0 0; padding:10px 12px; border-radius:8px; background:#fae0e0; color:#8c2525; font-size:12px; font-weight:800; line-height:1.45; }
.first-login-contract { margin:18px 0; padding:16px; border:1px solid #e2d5a5; border-radius:10px; background:#fff9df; }
.first-login-contract .eyebrow { margin-bottom:8px; }
.first-login-contract .check { margin:0; }
.first-login-contract>p:last-child { margin:12px 0 0; color:#5e532f; font-size:12px; line-height:1.55; }
.ip-note { margin:17px 0 0; padding:13px 15px; border-left:4px solid var(--purple); background:#eee8f8; color:#4d4460; font-size:12px; line-height:1.55; }
.ip-note code { padding:2px 5px; border-radius:4px; background:#fff; color:var(--deep); }
@media(max-width:760px){.login-grid,.app-grid,.filter-grid{grid-template-columns:1fr}.site-head{align-items:flex-start}.user-chip{align-items:flex-end;flex-direction:column}.terms{padding:22px}main{padding-top:30px}}
