/* Portal-specific layer on top of WEB 4 LIVE style */
.portal-header .brand-logo { height: 56px; max-width: 200px; }
.portal-nav { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; justify-content: flex-end; }
.portal-nav a { color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500; }
.portal-nav a:hover { color: #fff; }
.portal-main { padding: 2.2rem 0 3.5rem; min-height: calc(100vh - 200px); background: var(--hero); }
.portal-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 1.5rem 0; background: #05070d; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-direction: column; gap: .35rem; color: var(--muted); }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: .15s ease; font-size: .95rem; }
.btn-primary { background: linear-gradient(135deg, #2ea3f2, #0ccccc); color: #041018; border: none; }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.18); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-danger { background: rgba(207,46,46,.15); border-color: rgba(207,46,46,.45); color: #ffb4b4; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .portal-nav { width: 100%; justify-content: flex-start; } }
.stat { text-align: left; }
.stat .n { font-size: 1.85rem; font-weight: 700; color: var(--cyan); line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .9rem; }
.auth-wrap { max-width: 480px; margin: 1rem auto 2rem; }
.auth-wrap.wide { max-width: 720px; }
.form-grid { display: grid; gap: .9rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid.two { grid-template-columns: 1fr; } }
label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.28); color: var(--text);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(46,163,242,.45); border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.help { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.alert { padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: rgba(24,221,17,.1); border-color: rgba(24,221,17,.35); }
.alert-error { background: rgba(207,46,46,.12); border-color: rgba(207,46,46,.4); }
.alert-info { background: rgba(46,163,242,.1); border-color: rgba(46,163,242,.35); }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; background: rgba(255,255,255,.08); }
.badge-ok { background: rgba(24,221,17,.15); color: #8dff88; }
.badge-info { background: rgba(46,163,242,.15); color: #8fd4ff; }
.badge-cyan { background: rgba(12,204,204,.15); color: #7ef0f0; }
.badge-purple { background: rgba(122,18,226,.18); color: #d2a6ff; }
.badge-warn { background: rgba(252,185,0,.15); color: #ffe08a; }
.badge-muted { background: rgba(255,255,255,.06); color: var(--muted); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: .7rem .55rem; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.page-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1.4rem; }
.page-head h1 { margin: 0 0 .35rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.steps { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.step-pill { padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: var(--muted); }
.step-pill.is-active { background: rgba(46,163,242,.15); border-color: rgba(46,163,242,.4); color: #fff; }
.progress { height: 8px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #2ea3f2, #0ccccc); }
.hero-mini { padding: 1.5rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(46,163,242,.12), rgba(122,18,226,.1)); border: 1px solid rgba(255,255,255,.08); margin-bottom: 1.5rem; }
.msg-list { display: flex; flex-direction: column; gap: .75rem; }
.msg { padding: .85rem 1rem; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06); }
.msg.is-admin { border-color: rgba(46,163,242,.3); }
.msg .meta { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.empty { color: var(--muted); padding: 1.5rem; text-align: center; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-nav { background: #050a14; border-right: 1px solid rgba(255,255,255,.06); padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; }
.admin-nav a { display: block; padding: .55rem .75rem; border-radius: 10px; color: rgba(255,255,255,.78); margin-bottom: .2rem; }
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(46,163,242,.12); color: #fff; }
.admin-main { padding: 1.5rem 1.75rem 3rem; background: var(--hero); }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: relative; height: auto; display: flex; flex-wrap: wrap; gap: .25rem; }
  .admin-nav a { margin: 0; }
}
.check-row { display: flex; align-items: flex-start; gap: .6rem; }
.check-row input { width: auto; margin-top: .25rem; }
.inline-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-google { border-color: rgba(255,255,255,.22); gap: .6rem; }
.btn-google .g-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 999px;
  background: #fff; color: #4285f4; font-weight: 800; font-size: .85rem;
}
.cf-turnstile { margin: .25rem 0; }
code { font-size: .85em; color: #9ad4ff; }
