body.portal-body { min-height: 100vh; }
.portal-header { position: relative; top: auto; }
.portal-nav { height: 74px; }
.portal-home { margin-left: auto; color: #2e5378; font-size: 14px; font-weight: 700; }
.portal-main { min-height: calc(100vh - 110px); padding: 54px 0 72px; }
.auth-layout { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(420px, 560px); gap: 46px; align-items: stretch; }
.auth-visual { position: relative; overflow: hidden; min-height: 590px; padding: 56px; color: #fff; border-radius: 24px; background: radial-gradient(circle at 78% 18%, rgba(73,204,255,.25), transparent 25%), linear-gradient(135deg,#031526,#073c63 62%,#0b5c8b); box-shadow: 0 26px 70px rgba(7,43,73,.18); }
.auth-visual::before { content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(125,219,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(125,219,255,.06) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(135deg,transparent,#000); }
.auth-visual::after { content:""; position:absolute; width:440px; height:220px; right:-100px; bottom:-110px; border:2px solid rgba(119,221,255,.2); border-radius:50%; box-shadow:0 0 0 38px rgba(119,221,255,.035),0 0 0 76px rgba(119,221,255,.025); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-kicker { margin: 0 0 18px; color: #7fdcff; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.auth-visual h1 { margin: 0; font-size: clamp(38px,4vw,58px); line-height: 1.15; letter-spacing: -3px; }
.auth-visual > p:not(.auth-kicker) { max-width: 580px; margin-top: 24px; color: #d8e9f6; font-size: 17px; line-height: 1.85; }
.permission-summary { display: grid; gap: 12px; margin-top: 42px; }
.permission-item { display:flex; align-items:flex-start; gap:13px; padding:16px 18px; border:1px solid rgba(176,228,255,.17); border-radius:13px; background:rgba(2,22,40,.26); backdrop-filter:blur(8px); }
.permission-item b { display:block; margin-bottom:4px; color:#fff; }
.permission-item small { color:#b9d0e2; line-height:1.5; }
.permission-icon { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:10px; background:linear-gradient(135deg,#1e9fe9,#245ec4); }
.auth-card, .portal-card { padding: 36px; background: rgba(255,255,255,.97); border:1px solid rgba(198,215,229,.72); border-radius:20px; box-shadow:0 22px 60px rgba(14,47,76,.12); }
.auth-card { align-self:center; }
.auth-card h2, .portal-card h1 { margin:0 0 8px; font-size:28px; letter-spacing:-1.2px; }
.auth-subtitle { margin:0 0 28px; color:#718097; font-size:14px; line-height:1.7; }
.field { margin-bottom:18px; }
.field label { display:block; margin-bottom:8px; color:#293d55; font-size:13px; font-weight:700; }
.field input, .field select, .field textarea { width:100%; min-height:48px; padding:0 14px; color:#162a42; border:1px solid #cfdae5; border-radius:9px; background:#fbfdff; outline:none; font:inherit; }
.field textarea { min-height:80px; padding-top:12px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color:#2b91dd; box-shadow:0 0 0 3px rgba(43,145,221,.12); }
.plan-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.plan-option { position:relative; display:block; cursor:pointer; }
.plan-option input { position:absolute; width:1px; min-height:0; height:1px; margin:0; padding:0; overflow:hidden; opacity:0; clip-path:inset(50%); pointer-events:none; }
.plan-box { display:flex; min-height:112px; padding:18px; flex-direction:column; justify-content:center; border:1px solid #d7e1eb; border-radius:11px; background:#f8fbfe; transition:.2s ease; }
.plan-box b { display:block; margin-bottom:7px; color:#213a55; font-size:16px; line-height:1.35; }
.plan-box small { display:block; color:#6f8198; line-height:1.55; }
.plan-option input:checked + .plan-box { border-color:#1887d5; background:#edf7ff; box-shadow:0 0 0 2px rgba(24,135,213,.1); }
.plan-option input:focus-visible + .plan-box { outline:3px solid rgba(24,135,213,.22); outline-offset:2px; }
.paid-plan-notice { margin-top:12px; padding:14px 15px; border:1px solid #f0cf92; border-radius:10px; color:#63491f; background:#fff8eb; }
.paid-plan-notice b { display:block; color:#9a5a08; font-size:12px; }
.paid-plan-notice p { margin:5px 0 0; font-size:11px; line-height:1.65; }
.policy-consent { min-width:0; margin:24px 0 8px; padding:0; border:0; }
.policy-consent legend { margin-bottom:10px; color:#293d55; font-size:13px; font-weight:800; }
.policy-consent input[type="checkbox"] { width:18px; min-height:18px; height:18px; margin:2px 0 0; accent-color:#1687d7; }
.policy-agree-all, .policy-agree-list > label { display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:10px; align-items:start; cursor:pointer; }
.policy-agree-all { padding:14px; border:1px solid #b8d5eb; border-radius:11px; background:#eef8ff; }
.policy-agree-all span, .policy-agree-list span { min-width:0; }
.policy-agree-all b, .policy-agree-list b { display:block; color:#1d3954; font-size:13px; line-height:1.45; }
.policy-agree-all small, .policy-agree-list small { display:block; margin-top:3px; color:#75869a; font-size:11px; line-height:1.5; }
.policy-agree-list { margin-top:8px; border:1px solid #dce6ef; border-radius:11px; background:#fff; }
.policy-agree-list > label { padding:12px 13px; }
.policy-agree-list > label + label { border-top:1px solid #e7edf3; }
.policy-agree-list a { margin-top:1px; color:#1478c5; font-size:11px; font-weight:800; white-space:nowrap; text-decoration:underline; text-underline-offset:3px; }
.policy-consent > p { margin:8px 2px 0; color:#78879a; font-size:10px; line-height:1.6; }
.auth-policy-links { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 14px; margin-top:14px; font-size:11px; }
.auth-policy-links a { color:#637992; }
.form-button { width:100%; min-height:50px; margin-top:8px; border:0; border-radius:9px; color:#fff; background:linear-gradient(135deg,#168ae2,#245fc9); box-shadow:0 11px 25px rgba(22,112,208,.25); font-weight:800; cursor:pointer; }
.form-button:disabled { opacity:.55; cursor:not-allowed; }
.form-message { min-height:22px; margin:14px 0 0; font-size:13px; line-height:1.6; }
.form-message.error { color:#c33d36; }
.form-message.success { color:#188452; }
.auth-switch { margin:22px 0 0; padding-top:20px; border-top:1px solid #e6edf3; text-align:center; color:#6d7b8e; font-size:13px; }
.auth-switch a { color:#1476c5; font-weight:800; }
.portal-grid { display:grid; grid-template-columns:280px 1fr; gap:22px; align-items:start; }
.member-profile { text-align:center; }
.avatar { display:grid; place-items:center; width:74px; height:74px; margin:0 auto 16px; color:#fff; border-radius:22px; background:linear-gradient(135deg,#1ba2e9,#234fc0); font-size:28px; font-weight:800; box-shadow:0 14px 28px rgba(24,110,197,.25); }
.member-profile h2 { margin:0 0 4px; }
.member-profile > p { margin:0 0 15px; color:#7a8798; font-size:13px; word-break:break-all; }
.level-badge { display:inline-flex; padding:6px 11px; border-radius:999px; color:#126da9; background:#e7f5ff; font-size:12px; font-weight:800; }
.level-badge.paid { color:#a25b00; background:#fff0d3; }
.level-badge.admin { color:#08774c; background:#dcf8eb; }
.profile-actions { display:grid; gap:9px; margin-top:26px; }
.outline-button { min-height:42px; padding:0 16px; border:1px solid #bdd0e0; border-radius:8px; color:#31526f; background:#fff; font-weight:700; cursor:pointer; }
.outline-button.primary { color:#fff; border-color:#187dcc; background:#187dcc; }
.outline-button.danger { color:#a7423c; border-color:#e2b8b5; }
.access-title { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.access-title h1 { margin:0; }
.access-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.access-card { min-height:128px; padding:18px; border:1px solid #dce6ee; border-radius:12px; background:linear-gradient(145deg,#fff,#f6faff); }
.access-card.locked { opacity:.58; background:#f3f5f7; }
.access-card b { display:block; margin-bottom:7px; }
.access-card p { margin:0; color:#6c7b8f; font-size:12px; line-height:1.6; }
.access-state { display:inline-block; margin-top:13px; color:#188058; font-size:11px; font-weight:800; }
.access-card.locked .access-state { color:#9b5e42; }
.request-note { margin-top:20px; padding:18px; color:#4d6075; border:1px solid #cfe2f1; border-radius:11px; background:#eff8ff; font-size:13px; line-height:1.7; }
.admin-shell { padding:30px; }
.admin-heading { display:flex; justify-content:space-between; gap:18px; align-items:center; margin-bottom:24px; }
.admin-heading h1 { margin:0; }
.stats-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-bottom:22px; }
.stat-card { padding:16px; border:1px solid #dce6ef; border-radius:11px; background:linear-gradient(145deg,#fff,#f6faff); }
.stat-card span { display:block; color:#77869a; font-size:12px; }
.stat-card strong { display:block; margin-top:5px; color:#143553; font-size:25px; }
.approval-panel { margin-bottom:28px; padding:22px; border:1px solid #f0c985; border-radius:14px; background:linear-gradient(145deg,#fffaf0,#fff); box-shadow:0 10px 28px rgba(160,105,28,.08); }
.approval-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:12px; }
.approval-heading h2,.all-members-title h2 { margin:0 0 4px; font-size:20px; }
.approval-heading p,.all-members-title p { margin:0; color:#7a8798; font-size:13px; }
.pending-count { margin:0 0 12px; color:#8c5a12; font-size:13px; }
.pending-count strong { font-size:20px; }
.pending-table { min-width:760px; }
.pending-table th { background:#fff1d4; }
.approve-button { background:linear-gradient(135deg,#ef921e,#d66d08)!important; box-shadow:0 6px 14px rgba(204,104,8,.2); }
.approve-button:disabled { opacity:.5; cursor:wait; }
.success-empty { color:#28805a; background:#f4fbf7; }
.all-members-title { margin-bottom:14px; }
.member-filters { display:grid; grid-template-columns:minmax(220px,1fr) 150px 150px auto; gap:9px; margin-bottom:16px; }
.member-filters input, .member-filters select { min-height:42px; padding:0 12px; border:1px solid #ccd8e3; border-radius:8px; background:#fff; }
.member-filters button { padding:0 22px; border:0; border-radius:8px; color:#fff; background:#176fb6; font-weight:700; cursor:pointer; }
.table-wrap { overflow:auto; border:1px solid #dde6ee; border-radius:11px; }
.member-table { width:100%; min-width:950px; border-collapse:collapse; font-size:13px; }
.member-table:not(.pending-table) { min-width:1350px; }
.member-table th { padding:12px 10px; color:#52647a; background:#eef4f8; text-align:left; white-space:nowrap; }
.member-table td { padding:11px 10px; border-top:1px solid #e5ecf2; vertical-align:middle; }
.member-table select { min-height:34px; padding:0 8px; border:1px solid #cbd7e1; border-radius:6px; background:#fff; }
.member-table button { min-height:34px; padding:0 12px; border:0; border-radius:6px; color:#fff; background:#1779c4; font-weight:700; cursor:pointer; }
.member-table .pending { color:#b16709; font-weight:800; }
.pagination { display:flex; justify-content:center; align-items:center; gap:12px; margin-top:18px; }
.pagination button { min-height:36px; padding:0 15px; border:1px solid #cbd8e3; border-radius:7px; background:#fff; cursor:pointer; }
.content-hero { padding:58px 0; color:#fff; background:radial-gradient(circle at 80% 20%,rgba(70,202,255,.23),transparent 22%),linear-gradient(120deg,#031628,#073958 60%,#0b5f8e); }
.content-hero .eyebrow { font-size:14px; }
.content-hero h1 { margin:6px 0 14px; font-size:44px; letter-spacing:-2px; }
.content-hero p { max-width:720px; margin:0; color:#d4e7f4; line-height:1.8; }
.content-area { padding:42px 0 72px; }
.content-list { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.content-item { padding:24px; border:1px solid #dce6ef; border-radius:13px; background:#fff; box-shadow:0 8px 24px rgba(20,55,84,.07); }
.content-item span { display:grid; place-items:center; width:36px; height:36px; margin-bottom:18px; color:#fff; border-radius:10px; background:linear-gradient(135deg,#23a3ea,#275bc6); font-size:12px; font-weight:800; }
.content-item h3 { margin:0; font-size:16px; }
.loading-box { padding:40px; text-align:center; color:#718097; }
@media(max-width:980px){.auth-layout{grid-template-columns:1fr}.auth-visual{min-height:430px}.portal-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(3,1fr)}.access-grid,.content-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.portal-main{padding:28px 0 50px}.auth-visual{min-height:390px;padding:34px 26px}.auth-card,.portal-card,.admin-shell{padding:24px 20px}.plan-options{grid-template-columns:1fr}.access-grid,.content-list,.stats-grid{grid-template-columns:1fr}.member-filters{grid-template-columns:1fr}.admin-heading,.approval-heading{align-items:flex-start;flex-direction:column}.content-hero h1{font-size:36px}}
.app-sso-button { display: flex; align-items: center; justify-content: center; margin-top: 24px; text-decoration: none; }
.app-sso-note { display: grid; gap: 5px; margin-top: 18px; padding: 16px; border: 1px solid #d6e8e6; border-radius: 10px; background: #f2faf8; }
.app-sso-note strong { color: #087c74; font-size: 13px; }
.app-sso-note span { color: #60757c; font-size: 12px; line-height: 1.6; }
