:root {
  --navy: #071c33;
  --navy-2: #0b2b4e;
  --green: #18d49a;
  --cyan: #0891b2;
  --amber: #fbbf24;
  --bg: #f3f7fb;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dfe7f0;
  --white: #fff;
  --danger: #be123c;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.centered { text-align: center; }
.eyebrow { margin: 0 0 10px; color: #0f766e; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.eyebrow.light { color: #67e8f9; }

.role-page { min-height: 100vh; display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at 80% 20%, #d8f9ef, transparent 30%), #eef4f9; }
.role-shell { width: min(1120px, 95vw); min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: 34px; background: white; box-shadow: 0 35px 90px rgba(7, 28, 51, .22); }
.role-brand { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 70px; color: white; background: linear-gradient(135deg, rgba(4, 18, 35, .96), rgba(11, 43, 78, .78)), url("assets/campus.webp") center/cover; }
.role-brand::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, rgba(3, 15, 29, .8)); pointer-events: none; }
.role-brand > * { position: relative; z-index: 1; }
.role-brand h1 { margin: 12px 0 20px; font-size: 44px; line-height: 1.08; letter-spacing: -.035em; }
.role-copy { max-width: 560px; color: #dbeafe; font-size: 17px; line-height: 1.7; }
.brand-mark { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 28px; border-radius: 20px; background: var(--green); color: var(--navy); font-size: 30px; box-shadow: 0 14px 35px rgba(24, 212, 154, .28); }
.brand-mark.small { width: 42px; height: 42px; margin: 0; border-radius: 14px; font-size: 20px; box-shadow: none; }
.brand-mark.amber { background: var(--amber); }
.offline-pill { width: fit-content; margin-top: 24px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #a7f3d0; font-size: 13px; font-weight: 700; }
.role-actions { display: flex; flex-direction: column; justify-content: center; gap: 15px; padding: 58px; }
.role-actions h2 { margin: 0; font-size: 34px; letter-spacing: -.025em; }
.role-actions > div:first-child { margin-bottom: 12px; }
.role-card { display: grid; grid-template-columns: 54px 1fr 30px; align-items: center; gap: 16px; width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: white; color: var(--text); text-align: left; transition: .2s ease; }
.role-card:hover { transform: translateY(-2px); border-color: #94a3b8; box-shadow: 0 15px 35px rgba(15, 23, 42, .09); }
.role-card .role-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #dff8ef; font-size: 25px; }
.admin-role .role-icon { background: #fff3c4; }
.role-card b { display: block; margin-bottom: 5px; font-size: 17px; }
.role-card small { display: block; color: var(--muted); line-height: 1.45; }
.role-card strong { font-size: 24px; }
.pin-panel { padding: 16px; border: 1px solid #f6d46d; border-radius: 18px; background: #fffaf0; }
.pin-panel label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }
.error-text { min-height: 15px; margin: 8px 0 0; color: var(--danger); font-size: 12px; font-weight: 700; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 270px; color: white; background: var(--navy); }
.admin-sidebar { background: #05172b; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; height: 78px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand b, .sidebar-brand small { display: block; }
.sidebar-brand small { margin-top: 3px; color: #6ee7b7; font-size: 12px; font-weight: 700; }
.admin-sidebar .sidebar-brand small { color: #fde68a; }
.nav-label { margin: 28px 25px 12px; color: #6b7f97; font-size: 10px; font-weight: 900; letter-spacing: .19em; }
.side-nav { padding: 0 15px; }
.side-nav button { display: flex; align-items: center; gap: 14px; width: 100%; margin: 5px 0; padding: 13px 15px; border: 0; border-radius: 13px; background: transparent; color: #c5d2df; font-size: 14px; font-weight: 700; text-align: left; }
.side-nav button:hover { background: rgba(255,255,255,.08); color: white; }
.side-nav button.active { background: var(--green); color: var(--navy); }
.admin-nav button.active { background: var(--amber); color: var(--navy); }
.side-nav button > i { margin-left: auto; padding: 2px 7px; border-radius: 20px; background: #e11d48; color: white; font-size: 10px; font-style: normal; }
.sidebar-profile, .admin-foot { position: absolute; inset: auto 15px 15px; display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.07); }
.sidebar-profile b, .sidebar-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile b { font-size: 13px; }
.sidebar-profile small { margin-top: 3px; color: #8fa4b9; font-size: 11px; }
.sidebar-profile button { border: 0; background: transparent; color: #7dd3fc; font-size: 19px; }
.avatar { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 12px; background: rgba(34, 211, 238, .14); color: #67e8f9; font-size: 12px; font-weight: 900; }
.admin-foot { display: block; }
.admin-foot small, .admin-foot b { display: block; }
.admin-foot small { color: #8fa4b9; font-size: 11px; }
.admin-foot b { margin-top: 4px; font-size: 13px; }
.admin-foot button { margin-top: 12px; padding: 0; border: 0; background: transparent; color: #fde68a; font-size: 12px; font-weight: 800; }

.workspace { min-height: 100vh; margin-left: 270px; }
.topbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; height: 78px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.topbar small, .topbar b { display: block; }
.topbar small { margin-bottom: 4px; color: #718096; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.topbar b { font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.status-pill { padding: 8px 12px; border: 1px solid #a7f3d0; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 800; }
.amber-pill { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.content { max-width: 1440px; margin: 0 auto; padding: 30px 34px 45px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 800; }
.button.navy { background: var(--navy-2); color: white; }
.button.green { background: var(--green); color: var(--navy); }
.button.amber { background: var(--amber); color: var(--navy); }
.button.outline { border-color: #cbd5e1; background: white; color: #334155; }
.button.full { width: 100%; }
.button:hover { filter: brightness(.97); }

.hero { position: relative; min-height: 390px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 38px; overflow: hidden; padding: 44px; border-radius: 28px; background: linear-gradient(90deg, rgba(4,17,32,.97), rgba(9,43,76,.76), rgba(9,43,76,.25)), url("assets/campus.webp") center/cover; color: white; box-shadow: 0 24px 50px rgba(21, 43, 68, .18); }
.hero h1 { margin: 12px 0 15px; max-width: 700px; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.04em; }
.hero p { max-width: 690px; color: #e2e8f0; font-size: 16px; line-height: 1.65; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 6px 10px; border-radius: 999px; background: #cffafe; color: #155e75; font-size: 11px; font-weight: 900; }
.hero .badge { background: var(--green); color: var(--navy); }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.journey-card { padding: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(2,18,34,.66); backdrop-filter: blur(12px); }
.journey-card small { color: #67e8f9; font-weight: 900; letter-spacing: .14em; }
.journey-card h3 { margin: 8px 0 24px; font-size: 20px; }
.progress-row { margin-top: 16px; }
.progress-row div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; color: #dbeafe; font-size: 12px; }
.progress { height: 7px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.15); }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 20px; }
.stats-grid.five { grid-template-columns: repeat(5, 1fr); }
.stat-card, .panel, .card { border: 1px solid var(--line); background: white; box-shadow: 0 6px 20px rgba(15,23,42,.035); }
.stat-card { padding: 20px; border-radius: 18px; }
.stat-card small { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card strong { display: block; margin: 6px 0 3px; font-size: 30px; }
.stat-card p { margin: 0; color: #94a3b8; font-size: 11px; }
.section-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; margin-top: 20px; }
.panel { overflow: hidden; border-radius: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 18px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 22px; }
.help-card { padding: 26px; border-radius: 22px; background: var(--navy-2); color: white; }
.help-card h2 { margin: 22px 0 8px; }
.help-card p { color: #cbd5e1; line-height: 1.65; }
.heading { margin-bottom: 23px; }
.heading h1 { margin: 10px 0 8px; font-size: 34px; letter-spacing: -.03em; }
.heading p { margin: 0; color: var(--muted); line-height: 1.55; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: #334155; font-size: 12px; font-weight: 800; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; outline: none; background: white; color: var(--text); }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 212, 154, .12); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.card { overflow: hidden; border-radius: 20px; }
.card-accent { height: 6px; }
.card-body { padding: 20px; }
.card h3 { margin: 12px 0 5px; font-size: 17px; }
.card p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { padding: 5px 8px; border-radius: 8px; background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 700; }
.two-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0; }
.metric { padding: 10px; border-radius: 11px; background: #f8fafc; }
.metric small, .metric b { display: block; }
.metric small { color: var(--muted); font-size: 10px; }
.metric b { margin-top: 4px; font-size: 12px; }
.card-actions { display: flex; gap: 7px; margin-top: 15px; }
.card-actions .button { flex: 1; }
.heart { min-width: 42px; flex: 0 !important; font-size: 17px; }
.heart.saved { color: #e11d48; background: #fff1f2; border-color: #fecdd3; }
.toolbar { display: grid; grid-template-columns: 1fr 200px; gap: 10px; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.search-wrap { position: relative; }
.search-wrap input { padding-left: 36px; }
.search-wrap::before { content: "⌕"; position: absolute; left: 12px; top: 8px; color: #94a3b8; font-size: 20px; }
.path-card { padding: 22px; }
.path-icon { font-size: 34px; }
.path-list { display: grid; gap: 7px; margin-top: 12px; }
.path-list span { padding: 9px 10px; border-radius: 9px; background: #f8fafc; font-size: 11px; font-weight: 700; }
.career-card .salary { margin: 15px 0; padding: 13px; border-radius: 12px; background: #f0fdf4; color: #047857; font-size: 15px; font-weight: 900; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 15px; background: #f8fafc; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 14px 15px; border-top: 1px solid var(--line); font-size: 12px; vertical-align: top; }
td b { display: block; margin-bottom: 3px; }
td small { color: var(--muted); }
.admin-split { display: grid; grid-template-columns: 390px 1fr; gap: 20px; }
.activity-item { display: flex; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.activity-item:first-child { border-top: 0; }
.activity-dot { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; background: #f3e8ff; color: #7e22ce; }
.activity-item b { display: block; font-size: 12px; }
.activity-item p { margin: 4px 0; color: var(--muted); font-size: 11px; }
.activity-item small { color: #94a3b8; font-size: 10px; }

.messages-layout { display: grid; grid-template-columns: 310px 1fr; min-height: 610px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; }
.thread-list { border-right: 1px solid var(--line); background: #f8fafc; }
.thread-head { padding: 19px; border-bottom: 1px solid var(--line); }
.thread-head b, .thread-head small { display: block; }
.thread-head small { margin-top: 3px; color: var(--muted); }
.thread-button { width: calc(100% - 12px); margin: 6px; padding: 13px; border: 0; border-radius: 13px; background: transparent; text-align: left; }
.thread-button:hover { background: white; }
.thread-button.active { background: var(--navy-2); color: white; }
.thread-button b, .thread-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-button small { margin-top: 4px; color: #8293a6; }
.thread-button.active small { color: #cbd5e1; }
.conversation { display: flex; min-width: 0; flex-direction: column; }
.conversation-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.conversation-head b, .conversation-head small { display: block; }
.conversation-head small { margin-top: 4px; color: var(--muted); }
.message-stream { flex: 1; overflow-y: auto; padding: 20px; background: #f8fafc; }
.message { width: fit-content; max-width: 75%; margin-bottom: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 15px 15px 15px 4px; background: white; font-size: 12px; line-height: 1.5; }
.message.mine { margin-left: auto; border-color: var(--navy-2); border-radius: 15px 15px 4px 15px; background: var(--navy-2); color: white; }
.message small { display: block; margin-top: 5px; color: #94a3b8; font-size: 9px; }
.message.mine small { color: #cbd5e1; }
.compose { display: flex; gap: 8px; padding: 13px; border-top: 1px solid var(--line); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 30px; background: rgba(3, 15, 29, .64); backdrop-filter: blur(4px); }
.modal { width: min(650px, 92vw); max-height: 90vh; overflow: auto; border-radius: 24px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 22px; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.modal-head button { border: 0; background: transparent; color: #64748b; font-size: 22px; }
.modal-body { padding: 24px; }
.chat-modal { width: min(760px, 92vw); }
.chat-modal .message-stream { height: 430px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 100; padding: 13px 17px; border-radius: 12px; background: #064e3b; color: white; font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.empty { padding: 45px; color: var(--muted); text-align: center; }

@media (max-width: 1180px) {
  .stats-grid.five { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .journey-card { max-width: 540px; }
}

@media (max-width: 900px) {
  .role-shell { grid-template-columns: 1fr; }
  .role-brand { display: none; }
  .sidebar { width: 220px; }
  .workspace { margin-left: 220px; }
  .topbar { padding: 0 20px; }
  .content { padding: 22px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-grid, .admin-split { grid-template-columns: 1fr; }
}
@media(max-width:760px){.role-shell{grid-template-columns:1fr;min-height:100vh}.role-brand,.role-actions{padding:28px!important}.role-brand h1{font-size:32px}.sidebar{position:relative!important;width:100%!important;height:auto!important}.app-shell{display:block!important}.main-content,.main{margin-left:0!important;padding:16px!important}.stats-grid,.section-grid,.cards-grid,.messages-layout,.hero{grid-template-columns:1fr!important}.topbar{flex-wrap:wrap;gap:12px}.form-grid{grid-template-columns:1fr!important}.table-wrap{overflow:auto}body{min-width:0!important}.sidebar-footer{position:static!important}}
.support-room{display:grid;grid-template-columns:280px minmax(0,1fr);height:calc(100vh - 265px);min-height:500px;max-height:820px;border:1px solid #dce4ee;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 12px 35px #122f5010}.support-room-sidebar,.support-room .thread-list{background:#f6f9fc;border-right:1px solid #e0e6ee;overflow:auto}.room-label{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#7d8c9f;padding:28px 22px 18px}.room-contact{display:flex;align-items:center;gap:13px;padding:20px 22px;background:#e8f4ee;border-left:3px solid #16a582}.room-avatar{width:43px;height:43px;background:#183e34;color:#fff;display:inline-flex;align-items:center;justify-content:center;border-radius:15px;font-weight:700;flex-shrink:0}.room-contact small{display:block;margin-top:5px;color:#728596;font-size:11px}.room-info{padding:30px 24px}.room-info>span{font-size:9px;font-weight:700;letter-spacing:1.7px;color:#8a9bae}.room-info h3{font-size:20px;line-height:1.4}.room-info p{font-size:12px;color:#718197;line-height:1.8}.support-room .conversation{height:100%;overflow:hidden;min-height:0}.support-room .conversation-head{background:#fff;min-height:86px}.room-header{display:flex;gap:13px;align-items:center}.room-header>div{flex:1}.room-private{font-size:10px;color:#5e8274;background:#edf7f1;border-radius:20px;padding:8px 12px}.support-room .message-stream{flex:1;overflow-y:auto;min-height:0;max-height:none;padding:28px;background:linear-gradient(145deg,#f5f8fc,#edf3f6);scroll-behavior:smooth}.support-room .message{white-space:pre-wrap;overflow-wrap:anywhere;max-width:78%;background:#fff;border:1px solid #e3e9ef;box-shadow:0 3px 8px #18324b06;border-radius:16px 16px 16px 3px;line-height:1.65;padding:13px 17px;font-size:13px}.support-room .message.mine{background:#173f35;color:#fff;border-color:#173f35;border-radius:16px 16px 3px 16px}.support-room .message.mine small{color:#c5dace}.room-compose{padding:12px 18px;background:#fff;border-top:1px solid #e2e9f0}.room-compose .compose{padding:0;border:0;gap:12px;align-items:center}.room-compose textarea{flex:1;width:100%;min-height:54px;max-height:160px;resize:vertical;border:1px solid #dce4eb;border-radius:14px;padding:14px 16px;font:inherit;font-size:13px;line-height:1.5;outline:none}.room-compose textarea:focus{border-color:#16a582;box-shadow:0 0 0 3px #16a58215}.room-compose>small{display:block;margin:7px 2px 0;font-size:10px;color:#94a1b2}.room-compose .button{min-width:78px}.thread-head input{margin-top:15px;width:100%;padding:11px;border:1px solid #dae3ec;border-radius:10px}.thread-button[hidden]{display:none}.support-room .thread-button{border-bottom:1px solid #e6edf3}.support-room .thread-button.active{background:#e4f2ec;border-left:3px solid #15916e}.support-room .thread-button small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-room .empty{font-size:13px;color:#8a9aae;max-width:330px;margin:auto;line-height:1.7}.admin-room .conversation-head{padding-top:23px}
@media(max-width:900px){.support-room{grid-template-columns:210px minmax(0,1fr)}.room-info{padding:20px 15px}}@media(max-width:760px){.support-room{grid-template-columns:1fr!important;height:70vh;min-height:480px}.support-room-sidebar{display:none}.support-room.admin-room{grid-template-columns:1fr!important;height:auto}.admin-room .thread-list{max-height:210px}.admin-room .conversation{height:65vh;min-height:450px}.support-room .message-stream{padding:18px}.support-room .message{max-width:90%}.room-private{display:none}.room-compose{padding:10px}.room-compose textarea{min-height:50px}.support-room .conversation-head{min-height:74px}}
