:root {
  --bg: #020405; --bg-soft: #071013; --panel: #0b1418; --panel-2: #101c21;
  --ink: #f5fbff; --muted: #9fb3c0; --line: rgba(121,219,255,.18);
  --line-strong: rgba(48,159,222,.42); --blue: #2386c8;
  --blue-soft: rgba(35,134,200,.18); --green: #2fa12d;
  --green-soft: rgba(47,161,45,.18); --shadow: 0 18px 55px rgba(0,0,0,.42);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: radial-gradient(circle at 78% 18%,rgba(35,134,200,.08),transparent 28%),linear-gradient(180deg,#05090b 0%,#020405 48%,#030607 100%); color: var(--ink); font-family: "Segoe UI",Arial,sans-serif; }
a { color: inherit; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: rgba(5,12,15,.94); box-shadow: 0 12px 36px rgba(0,0,0,.3); }
.brand { display: inline-flex; align-items: center; min-width: 0; gap: 14px; color: var(--ink); text-decoration: none; }
.brand img { width: 70px; height: 70px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 0 12px rgba(35,134,200,.32)); }
.program-title { display: grid; gap: 1px; font-size: 19px; font-weight: 900; line-height: 1.05; white-space: nowrap; }
.program-title span { display: block; }
.program-title-ssinfo { color: var(--blue); }
.program-title-portal { color: var(--green); }
.brand-divider { width: 1px; height: 48px; margin: 0 2px; background: var(--line); }
.brand-context { display: grid; gap: 4px; }
.brand-context strong { font-size: 20px; }
.brand-context small { color: var(--muted); font-size: 14px; }
.topbar nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.nav-link,.identity { min-height: 40px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.035); color: #d7eef8; font-weight: 750; text-decoration: none; }
.nav-link:hover { border-color: var(--blue); background: linear-gradient(135deg,var(--blue-soft),var(--green-soft)); color: #fff; }
.logout { border-color: rgba(47,161,45,.36); }
.user-icon { width: 25px; height: 25px; display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--green)); color: #fff; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.user-icon.large { width: 43px; height: 43px; font-size: 18px; }
.secure-badge { min-width: 76px; padding: 9px 12px; border: 1px solid rgba(47,161,45,.58); border-radius: 7px; background: rgba(47,161,45,.12); color: #dfffe2; text-align: center; font-weight: 850; }
.secure-badge span { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #39d353; box-shadow: 0 0 12px rgba(57,211,83,.7); }
.layout { width: min(1240px,calc(100% - 48px)); flex: 1; margin: 0 auto; }
.hero-grid { min-height: 590px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); align-items: center; gap: clamp(42px,7vw,94px); padding: 72px 0; }
.hero-copy { max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #a9d9ee; font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(47,161,45,.72); }
h1 { margin: 0; font-size: clamp(3.1rem,6vw,5.8rem); line-height: .98; letter-spacing: -.055em; }
h1 span { color: var(--green); text-shadow: 0 0 32px rgba(47,161,45,.12); }
.lead { max-width: 690px; margin: 25px 0 0; color: var(--muted); font-size: 1.13rem; line-height: 1.65; }
.actions { margin-top: 30px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 11px 17px; border: 1px solid var(--blue); border-radius: 7px; color: #fff; font-weight: 800; text-decoration: none; transition: border-color .16s,filter .16s,transform .16s; }
.button:hover { border-color: var(--green); filter: brightness(1.1); transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg,var(--blue),#176697); box-shadow: 0 12px 30px rgba(35,134,200,.18); }
.button.secondary { background: rgba(255,255,255,.04); color: #d7eef8; }
.button.full { width: 100%; }
.access-card { padding: 22px; border: 1px solid var(--line-strong); border-radius: 9px; background: linear-gradient(180deg,rgba(16,28,33,.98),rgba(7,16,19,.98)); box-shadow: var(--shadow); }
.access-card::before { content: ""; display: block; height: 3px; margin: -22px -22px 22px; border-radius: 9px 9px 0 0; background: linear-gradient(90deg,var(--blue),var(--green)); }
.access-card-head,.session-user { display: flex; align-items: center; gap: 14px; }
.access-card-head { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.access-card-head div,.session-user div { display: grid; gap: 3px; }
.access-card-head strong,.session-user strong { font-size: 1.08rem; }
.access-card-head small,.session-user small { color: var(--muted); }
.access-symbol { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(121,219,255,.32); border-radius: 9px; background: linear-gradient(135deg,var(--blue-soft),var(--green-soft)); color: #fff; font-weight: 900; }
.security-list { display: grid; gap: 4px; margin: 18px 0 22px; padding: 0; list-style: none; }
.security-list li { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 11px; padding: 11px 0; }
.security-list i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: #8dff91; font-style: normal; font-weight: 900; }
.security-list span { display: grid; gap: 3px; }
.security-list small { color: var(--muted); line-height: 1.35; }
.session-user { margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.028); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 18px; }
.section-title .eyebrow { margin-bottom: 7px; }
.section-title h2 { margin: 0; font-size: 1.75rem; }
.section-title > a { color: #75c9ff; font-size: 14px; font-weight: 750; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; padding-bottom: 70px; }
.card { position: relative; min-height: 220px; display: flex; flex-direction: column; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg,rgba(16,28,33,.96),rgba(9,17,20,.96)); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .16s,border-color .16s; }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg,var(--blue),var(--green)); opacity: .85; }
.card[href]:hover { transform: translateY(-3px); border-color: var(--blue); }
.card-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(159,179,192,.08); color: #d6e7ef; font-size: 12px; font-weight: 900; }
.card-mark.blue { background: var(--blue-soft); color: #9bd9ff; }
.card-mark.green { border-color: rgba(47,161,45,.42); background: var(--green-soft); color: #8dff91; }
.status { position: absolute; top: 20px; right: 20px; padding: 6px 9px; border-radius: 7px; background: rgba(159,179,192,.14); color: #d6e7ef; font-size: 11px; font-weight: 800; }
.status.online { background: var(--green-soft); color: #8dff91; }
.status.planned { background: var(--blue-soft); color: #9bd9ff; }
.card h3 { margin: 28px 0 7px; font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; }
.card-action { margin-top: auto; padding-top: 16px; color: #75c9ff; font-size: 13px; font-weight: 800; }
.card.muted { box-shadow: none; }
.page-heading { max-width: 820px; padding: 74px 0 48px; }
.page-heading h1 { font-size: clamp(2.9rem,5vw,4.8rem); }
.page-heading.compact { min-height: 520px; }
footer { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-security { display: inline-flex; align-items: center; gap: 8px; }
.footer-security i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(47,161,45,.65); }
@media (max-width: 900px) {
  .topbar { align-items: flex-start; padding: 14px 16px; }
  .brand img { width: 58px; height: 58px; }
  .brand-context,.brand-divider,.identity { display: none; }
  .layout { width: min(100% - 32px,1240px); }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding: 54px 0; }
  .access-card { max-width: 560px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .program-title { font-size: 16px; }
  .nav-link:not(.logout) { display: none; }
  h1 { font-size: 3rem; }
  .hero-grid { padding-top: 42px; }
  .access-card { padding: 18px; }
  .access-card::before { margin: -18px -18px 18px; }
  .section-title,footer { align-items: flex-start; flex-direction: column; }
}
