:root {
  --black: #050607;
  --ink: #111317;
  --muted: #6f7380;
  --line: #e9e5dc;
  --soft: #f7f6f2;
  --gold: #c99b2e;
  --gold-2: #e2b64a;
  --green: #38b26b;
  --blue: #3d7ee8;
  --orange: #d99a28;
  --red: #df5a54;
  --shadow: 0 18px 50px rgba(11, 13, 18, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: var(--soft); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.portal-btn { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; cursor: pointer; }
.portal-btn.primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); border-color: rgba(201,155,46,.25); color: #111; box-shadow: 0 12px 24px rgba(201,155,46,.22); }
.portal-btn.ghost { background: rgba(255,255,255,.05); color: #fff; border-color: rgba(255,255,255,.35); }
.portal-btn.ghost.subtle { color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.2); }
.portal-btn.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.portal-btn.full { width: 100%; }
.link-button { border: 0; background: transparent; color: var(--gold); font: inherit; font-weight: 900; cursor: pointer; padding: 0; }

.welcome-body { min-height: 100vh; background: var(--black); }
.welcome-hero { min-height: 100vh; position: relative; color: #fff; display: flex; align-items: center; padding: 48px; background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.64), rgba(0,0,0,.25)), url('../img/dubai-hero.png') center/cover; overflow: hidden; }
.welcome-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 20% 80%, rgba(201,155,46,.16), transparent 30%); pointer-events: none; }
.welcome-content { position: relative; width: min(720px, 100%); }
.welcome-logo { width: 190px; margin-bottom: 56px; }
.welcome-content h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: 0; max-width: 620px; }
.welcome-content h1 span { color: var(--gold-2); display: block; }
.welcome-content p { color: rgba(255,255,255,.82); font-size: 18px; max-width: 560px; }
.welcome-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.welcome-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 78px; max-width: 820px; }
.welcome-stats div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.welcome-stats strong { display: block; color: var(--gold-2); }
.welcome-stats span { color: rgba(255,255,255,.72); font-size: 12px; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 480px) 1fr; background: #fff; }
.login-brand { background: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.9)), url('../img/dubai-hero.png') center/cover; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.login-brand img { width: 190px; margin-bottom: 70px; }
.login-brand h1 { font-size: 34px; margin: 0 0 10px; }
.login-brand p { color: rgba(255,255,255,.74); max-width: 320px; }
.secure-emblem { width: 132px; height: 132px; border-radius: 50%; border: 1px solid rgba(201,155,46,.5); color: var(--gold-2); display: grid; place-items: center; margin: 42px auto; box-shadow: 0 0 0 22px rgba(201,155,46,.06); }
.login-panel { display: flex; flex-direction: column; justify-content: center; width: min(420px, calc(100% - 48px)); margin: 0 auto; }
.login-panel h2 { margin: 0 0 30px; font-size: 30px; }
.portal-form { display: grid; gap: 16px; }
.portal-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; color: #333; }
.portal-form input, .portal-form select, .portal-form textarea, .search-box input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; font: inherit; background: #fff; }
.portal-form textarea { min-height: 108px; padding: 12px 14px; resize: vertical; }
.form-link { justify-self: end; color: var(--blue); font-size: 12px; font-weight: 800; }
.login-separator { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0; border-top: 1px solid var(--line); }
.login-separator span { background: #fff; padding: 0 12px; position: relative; top: -9px; }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-row button { height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 800; }

.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }
.portal-sidebar { background: linear-gradient(180deg, #050607, #08111c); color: #fff; padding: 24px 16px; position: sticky; top: 0; height: 100vh; }
.portal-logo { display: block; padding: 6px 10px 28px; }
.portal-logo img { width: 170px; }
.portal-nav { display: grid; gap: 5px; }
.portal-nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 6px; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 800; }
.portal-nav a.active, .portal-nav a:hover { background: rgba(201,155,46,.16); color: #fff; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; background: currentColor; -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; }
.icon-dashboard { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='9' x='3' y='3' rx='1'/%3E%3Crect width='7' height='5' x='14' y='3' rx='1'/%3E%3Crect width='7' height='9' x='14' y='12' rx='1'/%3E%3Crect width='7' height='5' x='3' y='16' rx='1'/%3E%3C/svg%3E"); }
.icon-apps { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 15h6'/%3E%3Cpath d='M9 18h4'/%3E%3C/svg%3E"); }
.icon-plus { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.icon-documents { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M6 4h9l3 3v13H6z'/%3E%3Cpath d='M14 4v4h4'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 16h6'/%3E%3C/svg%3E"); }
.icon-vault { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M7 8V6a5 5 0 0 1 10 0v2'/%3E%3Ccircle cx='12' cy='14.5' r='1.5'/%3E%3Cpath d='M12 16v2'/%3E%3C/svg%3E"); }
.icon-mapping { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E"); }
.icon-family { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-8 0v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3Cpath d='M2 21v-2a4 4 0 0 1 3-3.87'/%3E%3Cpath d='M8 3.13a4 4 0 0 0 0 7.75'/%3E%3C/svg%3E"); }
.icon-payments { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M6 15h3'/%3E%3C/svg%3E"); }
.icon-messages { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E"); }
.icon-profile { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.icon-bell { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }
.icon-help { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 1 1 5.8 1c-.5 1-1.5 1.5-2.1 2.2-.5.5-.8 1-.8 1.8'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.icon-logout { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E"); }
.portal-alert { margin: -6px 0 18px; border: 1px solid rgba(201,155,46,.24); background: #fff8e8; color: #7c5b10; border-radius: 8px; padding: 12px 14px; font-weight: 800; font-size: 13px; }
.portal-main { padding: 24px; min-width: 0; }
.portal-topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.portal-topbar strong { display: block; font-size: 18px; }
.portal-topbar span { color: var(--muted); font-size: 13px; }
.mobile-menu { display: none; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-head h1 { margin: 0 0 4px; font-size: 30px; }
.page-head p { margin: 0; color: var(--muted); }
.portal-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h2, .portal-card h2 { margin: 0 0 14px; font-size: 20px; }
.card-head a { color: var(--gold); font-weight: 900; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 18px; }
.metric span { color: var(--muted); font-size: 12px; font-weight: 800; }
.metric strong { display: block; font-size: 28px; margin-top: 8px; }
.metric.blue strong { color: var(--blue); } .metric.green strong { color: var(--green); } .metric.orange strong { color: var(--orange); } .metric.red strong { color: var(--red); }

.app-list { display: grid; gap: 12px; }
.app-row { display: grid; grid-template-columns: 1.5fr auto auto auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.app-row.rich { grid-template-columns: 42px 1.5fr auto auto auto; }
.app-row strong { display: block; }
.app-row span { color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-style: normal; font-weight: 900; }
.status.gold { background: rgba(201,155,46,.13); color: #a67912; }
.status.green { background: rgba(56,178,107,.12); color: #238a4d; }
.status.orange { background: rgba(217,154,40,.13); color: #9a6411; }
.status.blue { background: rgba(61,126,232,.12); color: #245aae; }
.status.red { background: rgba(223,90,84,.12); color: #ae302a; }
.file-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(201,155,46,.12); border: 1px solid rgba(201,155,46,.22); }
.tabs { display: flex; gap: 10px; margin: 0 0 18px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 10px 4px; font-weight: 900; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--ink); border-color: var(--gold); }
.search-box { display: flex; gap: 10px; margin-bottom: 18px; }
.search-box button { width: 52px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-tile { border: 1px solid var(--line); border-radius: 8px; padding: 18px; text-align: center; transition: transform .2s ease, border-color .2s ease; }
.service-tile:hover { transform: translateY(-4px); border-color: rgba(201,155,46,.55); }
.service-icon { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: rgba(201,155,46,.12); color: var(--gold); font-weight: 900; }
.service-tile h3 { margin: 0 0 6px; font-size: 16px; }
.service-tile p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.service-tile span { color: var(--gold); font-weight: 900; font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.steps span { border-top: 3px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 12px; font-weight: 900; }
.steps .done { border-color: var(--gold); color: var(--ink); }
.grid-form { grid-template-columns: repeat(2, 1fr); }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.tracking-layout, .document-layout, .message-layout, .profile-layout, .help-layout, .family-layout, .mapping-layout { display: grid; grid-template-columns: 1.7fr .8fr; gap: 20px; }
.track-line { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 34px 0; }
.track-line div { text-align: center; position: relative; color: var(--muted); font-size: 11px; font-weight: 800; }
.track-line strong { width: 28px; height: 28px; border-radius: 50%; display: block; margin: 0 auto 8px; background: #fff; border: 3px solid var(--line); }
.track-line .done strong { background: var(--green); border-color: var(--green); }
.track-line .current strong { border-color: var(--gold); }
.current-status { background: #fff9ea; border: 1px solid rgba(201,155,46,.25); border-radius: 8px; padding: 18px; }
.current-status p { color: var(--muted); }
.current-status span { display: inline-flex; padding: 9px 12px; border-radius: 6px; background: rgba(201,155,46,.12); color: #916611; font-weight: 900; font-size: 12px; }
.details-card dl { display: grid; gap: 14px; }
.details-card dt { color: var(--muted); font-size: 12px; }
.details-card dd { margin: -12px 0 0; font-weight: 900; }
.doc-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-upload-form { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto; gap: 10px; align-items: center; min-width: 420px; }
.doc-upload-form.compact { grid-template-columns: minmax(190px, 1fr) auto; min-width: 300px; }
.doc-upload-form select, .doc-upload-form input[type="file"] { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; font: inherit; font-size: 12px; background: #fff; }
.family-layout { grid-template-columns: 360px 1fr; align-items: start; }
.member-list { display: grid; gap: 12px; }
.member-card { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.member-card.active, .member-card:hover { border-color: rgba(201,155,46,.55); background: #fffaf0; }
.member-card span, .member-card small, .member-documents .card-head span { color: var(--muted); font-size: 12px; }
.member-card .status { justify-self: start; }
.member-documents { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.security-note { margin-top: 20px; }
.security-note p { margin: 0; color: var(--muted); line-height: 1.7; }
.master-doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.master-doc-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 7px; }
.master-doc-card span, .mapping-row span { color: var(--muted); font-size: 12px; }
.mapping-row { display: grid; grid-template-columns: 1.3fr auto auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 14px 0; }
.mapping-row:last-child { border-bottom: 0; }
.note-card { background: #fbf6e8; }
.note-card li { margin-bottom: 10px; color: #5f5540; }
.message-layout { grid-template-columns: 360px 1fr; }
.thread { padding: 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.thread.active { background: rgba(61,126,232,.08); border-color: rgba(61,126,232,.2); }
.thread span, .thread small { display: block; color: var(--muted); font-size: 12px; }
.chat-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.chat-head span { display: block; color: var(--muted); }
.bubble { max-width: 70%; padding: 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.bubble.received { background: #f5f5f5; }
.bubble.sent { background: #e8f0ff; margin-left: auto; }
.bubble small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.chat-input { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; }
.chat-input button { width: 80px; border: 0; border-radius: 6px; background: var(--gold); font-weight: 900; }
.profile-photo { text-align: center; }
.avatar-lg { width: 128px; height: 128px; border-radius: 50%; margin: 20px auto; background: linear-gradient(135deg, #111, var(--gold)); color: #fff; display: grid; place-items: center; font-size: 36px; font-weight: 900; }
.success-card { min-height: 68vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-mark { width: 110px; height: 110px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 64px; margin-bottom: 24px; box-shadow: 0 18px 50px rgba(56,178,107,.25); }
.help-layout { grid-template-columns: 260px 1fr; }
.help-topics { display: grid; align-content: start; gap: 8px; }
.help-topics a { padding: 12px; border-radius: 6px; color: var(--muted); font-weight: 900; }
.help-topics a.active { background: #111; color: #fff; }
.faq-line { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-top: 12px; }
.faq-line summary { cursor: pointer; font-weight: 900; }
.notice-row { border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; padding: 16px; margin-bottom: 12px; display: grid; gap: 5px; }
.notice-row span { color: var(--muted); font-size: 12px; }
.notice-row.gold { border-left-color: var(--gold); } .notice-row.green { border-left-color: var(--green); } .notice-row.red { border-left-color: var(--red); } .notice-row.blue { border-left-color: var(--blue); }
.portal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.portal-table th, .portal-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.portal-table th { color: var(--muted); font-size: 12px; }

.onboarding-body { min-height: 100vh; background: #f3f1eb; }
.onboarding-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 520px) 1fr; }
.onboarding-hero { background: linear-gradient(135deg, rgba(0,0,0,.94), rgba(5,6,7,.74)), url('../img/dubai-hero.png') center/cover; color: #fff; padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.onboarding-hero.compact { justify-content: flex-start; }
.onboarding-hero img { width: 184px; margin-bottom: 52px; }
.onboarding-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: 0; }
.onboarding-hero p { color: rgba(255,255,255,.78); line-height: 1.7; max-width: 460px; }
.selected-service { color: var(--gold-2); font-size: 12px; font-weight: 900; text-transform: uppercase; margin-bottom: 12px; }
.onboarding-points { display: grid; gap: 10px; margin: 34px 0; }
.onboarding-points span { border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 12px 14px; color: rgba(255,255,255,.82); font-weight: 800; }
.onboarding-panel { padding: 42px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.onboarding-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.onboarding-head span, .panel-head span { color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.onboarding-head h2, .panel-head h2 { margin: 7px 0 8px; font-size: clamp(28px, 3vw, 42px); letter-spacing: 0; }
.onboarding-head p, .panel-head p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 680px; }
.onboarding-services { grid-template-columns: repeat(3, 1fr); }
.register-shell .onboarding-panel { justify-content: center; }
.check-line { grid-column: 1 / -1; display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; color: var(--muted) !important; font-weight: 800 !important; }
.check-line input { width: 18px !important; height: 18px !important; padding: 0 !important; }

.application-wizard { padding: 0; overflow: hidden; }
.wizard-progress { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: #fbfaf7; }
.wizard-progress button { min-height: 78px; border: 0; border-right: 1px solid var(--line); background: transparent; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 900; cursor: pointer; }
.wizard-progress button:last-child { border-right: 0; }
.wizard-progress strong { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.wizard-progress .active, .wizard-progress .done { color: var(--ink); }
.wizard-progress .active strong, .wizard-progress .done strong { background: var(--gold); border-color: var(--gold); color: #111; }
.wizard-form { gap: 0; }
.wizard-panel { display: none; padding: 28px; }
.wizard-panel.active { display: block; }
.panel-head { margin-bottom: 22px; }
.wizard-panel .grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.requirement-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.requirement-item { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; }
.requirement-item span, .review-box span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.review-box { border: 1px solid rgba(201,155,46,.25); background: #fff8e8; border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.compact-title { margin: 18px 28px 12px 0; font-size: 16px; }
.dependent-list { display: grid; gap: 14px; margin-bottom: 14px; }
.dependent-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #fffdf8; }
.dependent-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.member-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.wizard-actions { border-top: 1px solid var(--line); padding: 18px 28px; display: flex; justify-content: flex-end; gap: 12px; background: #fff; }

@media (max-width: 1050px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s ease; }
  .portal-sidebar.is-open { transform: translateX(0); }
  .mobile-menu { display: inline-flex; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-weight: 900; }
  .portal-topbar .portal-btn { display: none; }
  .metric-grid, .service-grid, .onboarding-services, .requirement-list { grid-template-columns: repeat(2, 1fr); }
  .tracking-layout, .document-layout, .message-layout, .profile-layout, .help-layout, .family-layout, .mapping-layout { grid-template-columns: 1fr; }
  .onboarding-shell { grid-template-columns: 1fr; }
  .onboarding-hero { min-height: 440px; }
}
@media (max-width: 700px) {
  .portal-main { padding: 16px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-brand { min-height: 360px; }
  .metric-grid, .service-grid, .grid-form, .steps, .welcome-stats, .onboarding-services, .requirement-list, .wizard-panel .grid-form { grid-template-columns: 1fr; }
  .master-doc-grid { grid-template-columns: 1fr; }
  .app-row, .app-row.rich, .doc-row, .doc-upload-form { grid-template-columns: 1fr; }
  .doc-upload-form { min-width: 0; }
  .track-line { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .welcome-hero { padding: 28px; align-items: flex-start; }
  .welcome-logo { margin-bottom: 42px; }
  .onboarding-panel, .onboarding-hero { padding: 28px; }
  .onboarding-head { flex-direction: column; }
  .wizard-progress { grid-template-columns: repeat(2, 1fr); }
  .wizard-progress button { min-height: 64px; }
  .wizard-panel { padding: 20px; }
  .wizard-actions { padding: 16px 20px; }
}
