/* ── PORTAL STYLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal:    #00b9c8;
  --teal-dk: #008f9c;
  --teal-lt: #e4f8fa;
  --ink:     #111827;
  --mid:     #6b7f8e;
  --muted:   #9eaebb;
  --border:  #e5e9ec;
  --off:     #f7f9fa;
  --white:   #ffffff;
  --red:     #ef4444;
  --red-lt:  #fef2f2;
  --green:   #22c55e;
  --green-lt: #f0fdf4;
  --max:     960px;
  --f: 'Inter', -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--f); background: var(--off); color: var(--ink); font-size: 14px; line-height: 1.5; min-height: 100vh; -webkit-text-size-adjust: 100%; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.portal-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.portal-nav-in {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.portal-nav-brand { display: flex; align-items: center; gap: 10px; }
.portal-nav-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.portal-nav-right { display: flex; gap: 4px; }
.portal-nav-link { padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--mid); border-radius: 5px; transition: all 0.13s; }
.portal-nav-link:hover { background: var(--off); color: var(--ink); }
.portal-nav-logout { color: var(--muted); }

/* ── MAIN ── */
.portal-main { padding: 24px 0 48px; }
.portal-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.portal-header { margin-bottom: 24px; }
.portal-header h1 { font-size: 22px; font-weight: 700; color: var(--ink); }
.portal-sub { font-size: 14px; color: var(--mid); margin-top: 4px; }

/* ── BREADCRUMB ── */
.portal-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mid); margin-bottom: 16px; }
.portal-breadcrumb a { color: var(--teal-dk); }
.portal-breadcrumb a:hover { text-decoration: underline; }

/* ── ERRORS ── */
.portal-error { background: var(--red-lt); color: #dc2626; font-size: 13px; font-weight: 500; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }

/* ── PLAYER CARDS ── */
.player-cards { display: grid; gap: 16px; }
.player-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px;
}
.player-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.player-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--teal);
  color: var(--white); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.player-card-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.player-card-meta { font-size: 13px; color: var(--mid); }

.player-stats-mini { display: flex; gap: 20px; margin-bottom: 16px; padding: 12px 16px; background: var(--off); border-radius: 8px; }
.stat-mini { display: flex; flex-direction: column; align-items: center; }
.stat-mini-val { font-size: 18px; font-weight: 800; color: var(--ink); }
.stat-mini-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.player-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── CAREER STATS ── */
.career-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.career-stat {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 20px; display: flex; flex-direction: column; align-items: center; min-width: 80px;
}
.career-val { font-size: 22px; font-weight: 800; color: var(--ink); }
.career-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.career-stats-lg .career-stat { padding: 18px 28px; }
.career-stats-lg .career-val { font-size: 28px; }
.stat-games { font-size: 14px; font-weight: 400; color: var(--muted); }

/* Stats toggle (official vs all games) */
.stats-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stats-header h2 { margin-bottom: 0; }
.stats-toggle { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.stats-toggle-btn {
  padding: 5px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--white); color: var(--mid); border: none; cursor: pointer;
  font-family: 'Inter', -apple-system, sans-serif; transition: all 0.12s;
}
.stats-toggle-btn + .stats-toggle-btn { border-left: 1px solid var(--border); }
.stats-toggle-btn.on { background: #0d1e2c; color: var(--white); }
.stats-toggle-btn:hover:not(.on) { background: var(--off); }

.career-stats-block { display: none; }
.career-stats-block.active { display: block; }

.stats-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 0; margin-bottom: 8px;
}
.stats-badge-official { color: #1d9450; }
.stats-badge-all { color: var(--mid); }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: 10px; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.portal-table th { text-align: left; padding: 10px 14px; font-weight: 600; color: var(--mid); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); background: var(--off); }
.portal-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.portal-table tbody tr:last-child td { border-bottom: none; }
.portal-table tbody tr:hover { background: rgba(0,185,200,0.03); }
.text-muted { color: var(--muted); }

/* ── HIGHLIGHTS ── */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.highlight-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.highlight-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.highlight-type { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--teal-dk); background: var(--teal-lt); padding: 2px 8px; border-radius: 4px; }
.highlight-game { font-size: 11px; }
.highlight-desc { font-size: 13px; color: var(--mid); margin-bottom: 10px; line-height: 1.4; }
.highlight-clips { display: flex; gap: 6px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border: none; border-radius: 6px; font-family: var(--f); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.13s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dk); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--off); border-color: var(--mid); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 4px; }

/* ── FORMS ── */
.portal-form { max-width: 640px; }
.form-section { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.form-section h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--f); font-size: 14px; color: var(--ink); background: var(--white);
  outline: none; transition: border-color 0.13s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--teal); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-actions { display: flex; gap: 8px; margin-top: 8px; }

.input-prefix-wrap { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.input-prefix { padding: 8px 0 8px 12px; font-size: 13px; color: var(--muted); white-space: nowrap; background: var(--off); border-right: 1px solid var(--border); padding-right: 8px; }
.input-with-prefix { border: none; border-radius: 0; }
.input-with-prefix:focus { box-shadow: none; }

/* ── LOGIN ── */
.login-body { background: var(--off); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 40px 36px; width: 100%; max-width: 380px; text-align: center; }
.login-title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.login-sub { font-size: 13px; color: var(--mid); margin-bottom: 24px; }
.login-error { background: var(--red-lt); color: #dc2626; font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 6px; margin-bottom: 16px; }
.login-success { background: var(--green-lt); color: #15803d; font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 6px; margin-bottom: 16px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--f); font-size: 14px; outline: none; text-align: center; }
.login-input:focus { border-color: var(--teal); }
.login-btn { padding: 10px; background: var(--teal); color: var(--white); border: none; border-radius: 6px; font-family: var(--f); font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.13s; }
.login-btn:hover { background: var(--teal-dk); }
.login-alt { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--teal-dk); font-weight: 500; }
.login-alt:hover { text-decoration: underline; }
.login-back { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.login-back:hover { color: var(--mid); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state p { margin-bottom: 12px; }

/* ── PORTFOLIO (public page) ── */
.portfolio-body { background: var(--white); }
.portfolio-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px 60px; }
.portfolio-nav { margin-bottom: 32px; }
.portfolio-nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--teal-dk); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.portfolio-nav-logo:hover { opacity: 0.8; }

.portfolio-hero { display: flex; gap: 24px; margin-bottom: 40px; }
.portfolio-photo {
  width: 200px; height: 260px; flex-shrink: 0;
  border-radius: 10px; object-fit: cover; object-position: top;
  border: 2px solid var(--border); display: block;
}
.portfolio-avatar {
  width: 200px; height: 260px; flex-shrink: 0;
  border-radius: 10px; background: var(--teal);
  color: var(--white); font-size: 64px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.portfolio-hero-info { flex: 1; padding-top: 8px; }
.portfolio-name { font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.portfolio-meta { font-size: 15px; color: var(--mid); margin-bottom: 6px; }
.portfolio-gpa { font-size: 14px; color: var(--teal-dk); font-weight: 600; }
@media (max-width: 600px) {
  .portfolio-hero { flex-direction: column; align-items: center; text-align: center; }
  .portfolio-photo, .portfolio-avatar { width: 160px; height: 210px; }
}

.portfolio-section { margin-bottom: 36px; }
.portfolio-section h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.portfolio-bio { font-size: 15px; line-height: 1.7; color: #374151; }
.portfolio-narrative { font-size: 15px; line-height: 1.7; color: #374151; }
.portfolio-narrative p { margin: 0 0 14px; }
.portfolio-narrative p:last-child { margin-bottom: 0; }

/* Highlight links */
/* Unified game cards (stat line + highlights) */
.gl-game-card { margin-bottom: 10px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.gl-game-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; cursor: pointer; user-select: none; transition: background 0.15s;
}
.gl-game-header:hover { background: #f8fafa; }
.gl-game-header[data-open="1"] { background: var(--teal-lt); border-bottom: 1px solid var(--border); }
.gl-game-header[data-open="0"] { border-bottom: none; }
.gl-game-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gl-game-title { font-size: 14px; font-weight: 700; color: var(--ink); display: block; }
.gl-game-date { font-size: 11px; color: var(--mid); display: block; }
.gl-game-stats { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.gl-stat { font-size: 12px; color: var(--mid); white-space: nowrap; }
.gl-stat strong { color: var(--ink); font-size: 14px; }
.gl-game-body { padding: 0; }
.gl-stat-detail { display: flex; gap: 16px; padding: 10px 14px; background: #f8fafa; border-bottom: 1px solid var(--border); }
.gl-detail-item { font-size: 12px; color: var(--mid); }
.gl-detail-item strong { color: var(--ink); }
.gl-highlights-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--teal-dk); padding: 10px 14px 0; }

/* Stat sub-tabs (Shooting / Totals / Misc) — portfolio */
.p-stat-subtabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 0; }
.p-stat-subtab { padding: 6px 16px; font-size: 12px; font-weight: 600; color: var(--mid); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; }
.p-stat-subtab:hover { color: var(--ink); }
.p-stat-subtab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* Scrollable stat table container */
.p-stat-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 480px;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  position: relative;
}
/* Fade hint for horizontal scroll */
.p-stat-scroll-wrap { position: relative; }
.p-stat-scroll-wrap::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 32px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.85));
  pointer-events: none;
  border-radius: 0 0 8px 0;
  opacity: 1;
  transition: opacity .2s;
}
.p-stat-scroll-wrap.scrolled-end::after { opacity: 0; }

/* Styled scrollbar */
.p-stat-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.p-stat-scroll::-webkit-scrollbar-track { background: #f4f4f5; border-radius: 3px; }
.p-stat-scroll::-webkit-scrollbar-thumb { background: #c4c4c8; border-radius: 3px; }
.p-stat-scroll::-webkit-scrollbar-thumb:hover { background: #a0a0a6; }

/* Stat table */
.p-game-log { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.p-game-log th { text-align: center; padding: 10px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--mid); font-weight: 600; border-bottom: 2px solid var(--border); white-space: nowrap; background: #fafbfb; position: sticky; top: 0; z-index: 2; }
.p-game-log td { text-align: center; padding: 9px 10px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.p-game-log .gl-game-col {
  text-align: left; font-weight: 600; font-size: 12px;
  min-width: 180px;
  position: sticky; left: 0; z-index: 1;
  background: #fff;
}
.p-game-log .gl-game-col::after {
  content: ''; position: absolute; top: 0; right: -6px; bottom: 0; width: 6px;
  box-shadow: inset 6px 0 6px -6px rgba(0,0,0,0.08); pointer-events: none;
}
.p-game-log thead .gl-game-col { z-index: 3; background: #fafbfb; }
.p-game-log tfoot .gl-game-col { background: #fafbfb; }
.p-game-log .gl-date { font-weight: 400; color: var(--mid); font-size: 11px; display: block; }
.p-game-log tbody tr:hover td { background: rgba(0,185,200,0.04); }
.p-game-log tfoot tr { font-weight: 700; background: #fafbfb; }
.p-game-log tfoot td { border-bottom: none; border-top: 2px solid var(--border); }

.hl-caret { transition: transform 0.2s ease; flex-shrink: 0; }
.gl-game-header[data-open="1"] .hl-caret { transform: rotate(90deg); }
.hl-clip-count { font-size: 11px; color: var(--teal-dk); font-weight: 600; }

/* Legacy highlight group (keep for other pages) */
.hl-game-group { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hl-game-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: var(--teal-lt); border-bottom: 1px solid var(--border);
}
.hl-game-header.hl-toggle { cursor: pointer; user-select: none; transition: background 0.15s; }
.hl-game-header.hl-toggle:hover { background: #ddf2f2; }
.hl-game-header.hl-toggle[data-open="0"] { border-bottom-color: transparent; }
.hl-game-header[data-open="1"] .hl-caret { transform: rotate(90deg); }
.hl-game-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.hl-game-date { font-size: 12px; color: var(--mid); }
.portfolio-highlights-list { display: flex; flex-direction: column; gap: 0; }
.hl-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.hl-link:last-child { border-bottom: none; }
.hl-link:hover { background: #f0fafa; }
.hl-link-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.hl-link-text { flex: 1; min-width: 0; }
.hl-link-play { font-size: 14px; font-weight: 600; display: block; }
.hl-link-desc { font-size: 12px; color: var(--mid); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-link-game { font-size: 12px; color: var(--mid); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-link-formats { display: flex; gap: 4px; flex-shrink: 0; }
.hl-fmt-badge {
  font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  background: #f0f0f0; color: #555; cursor: pointer; transition: background 0.1s;
}
.hl-fmt-badge:hover { background: var(--teal-lt); color: var(--teal-dk); }

.portfolio-footer { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.portfolio-footer a { color: var(--teal-dk); }
.portfolio-footer a:hover { text-decoration: underline; }

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 10px; padding: 32px 20px;
  text-align: center; cursor: pointer; transition: all 0.15s;
  background: var(--off);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--teal); background: var(--teal-lt);
}
.upload-zone-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-icon { color: var(--muted); }
.upload-zone-text { font-size: 14px; font-weight: 600; color: var(--ink); }
.upload-zone-hint { font-size: 12px; color: var(--muted); }

.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 8px;
}
.file-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-name { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 12px; color: var(--muted); white-space: nowrap; }
.file-remove { background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; padding: 0 4px; line-height: 1; }
.file-remove:hover { color: var(--red); }

/* ── UPLOAD PROGRESS ── */
.upload-progress { margin-bottom: 16px; }
.upload-progress-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.upload-progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.upload-progress-fill { height: 100%; background: var(--teal); border-radius: 4px; transition: width 0.2s; width: 0; }
.upload-progress-detail { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── PACKAGE CARDS ── */
.package-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.package-card { cursor: pointer; }
.package-card input[type="radio"] { display: none; }
.package-card-inner {
  border: 2px solid var(--border); border-radius: 10px; padding: 16px;
  transition: all 0.15s; text-align: center;
}
.package-card input:checked + .package-card-inner {
  border-color: var(--teal); background: var(--teal-lt);
}
.package-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.package-price { font-size: 24px; font-weight: 800; color: var(--teal); margin-bottom: 6px; }
.package-desc { font-size: 12px; color: var(--mid); line-height: 1.4; }

/* ── STATUS BADGES (portal) ── */
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-delivered { background: var(--green-lt); color: #15803d; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .portal-wrap, .portfolio-wrap { padding: 0 16px; }
  .form-row-2col { grid-template-columns: 1fr; }
  .career-stats { justify-content: center; }
  .highlights-grid { grid-template-columns: 1fr; }
  .player-card-actions { flex-direction: column; }
  .player-card-actions .btn { width: 100%; }
  .package-cards { grid-template-columns: 1fr; }
  .plan-card-form { flex: 1; min-width: 260px; }
}
@media (max-width: 480px) {
  .portal-nav-in { padding: 0 12px; height: 48px; }
  .portal-nav-link { padding: 5px 8px; font-size: 12px; }
  .portal-nav-label { font-size: 13px; }
  .login-card { padding: 32px 24px; }
  .portfolio-wrap { padding: 24px 16px 40px; }
  .portfolio-name { font-size: 22px; }
  .portfolio-hero { gap: 16px; }
  .portfolio-photo, .portfolio-avatar { width: 120px; height: 160px; }
  .career-stats-lg .career-stat { padding: 12px 16px; }
  .career-stats-lg .career-val { font-size: 22px; }
  .gl-game-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gl-game-stats { gap: 8px; flex-wrap: wrap; }
  .gl-stat-detail { flex-wrap: wrap; gap: 10px; }
  .p-game-log .gl-game-col { min-width: 130px; }
  .p-stat-scroll { max-height: 400px; }
}

/* ── GRADE CARDS (portfolio) ── */
.grade-card {
  background: var(--off); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin-bottom: 12px;
}
.grade-header { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.grade-gpa { font-size: 18px; font-weight: 800; color: var(--teal-dk); margin-bottom: 8px; }
.grade-courses { display: flex; flex-direction: column; gap: 0; }
.grade-course {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.grade-course:last-child { border-bottom: none; }
.grade-course-name { color: var(--ink); }
.grade-course-grade { font-weight: 700; color: var(--ink); }

/* ── RECOMMENDATION CARDS (portfolio) ── */
.rec-card {
  background: var(--off); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; margin-bottom: 12px;
}
.rec-text { font-size: 15px; line-height: 1.7; color: #374151; margin-bottom: 10px; }
.rec-author { font-size: 13px; font-weight: 600; color: var(--mid); }

/* ── PAYWALL TEASER ── */
.paywall-teaser {
  background: var(--off); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; text-align: center;
}
.paywall-teaser-text { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.paywall-cta {
  display: inline-block; padding: 10px 24px;
  background: var(--teal); color: var(--white); border-radius: 6px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background 0.13s;
}
.paywall-cta:hover { background: var(--teal-dk); }

/* Subscription plan cards */
.plan-card-form { flex: 0 1 280px; }
.plan-card {
  position: relative;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}
.plan-card:hover { border-color: var(--link, #3b82f6); }
.plan-card-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--link, #3b82f6); color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 12px; border-radius: 10px; white-space: nowrap;
}
.plan-card-badge-save { background: #22c55e; }
.plan-card-name { font-size: 16px; font-weight: 600; margin: 12px 0 4px; }
.plan-card-price { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.plan-card-cents { font-size: 20px; font-weight: 600; }
.plan-card-interval { font-size: 14px; font-weight: 400; color: var(--mid); }
.plan-card-features {
  list-style: none; padding: 0; margin: 0 0 20px; text-align: left; font-size: 14px;
}
.plan-card-features li {
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.plan-card-features li::before {
  content: '✓'; color: #22c55e; font-weight: 700; margin-right: 8px;
}
