/* TalentGeenie platform tokens. College events override --brand-* in _base.html. */
:root {
  --brand-primary: #0b1f3a;
  --brand-primary-dark: #071525;
  --brand-secondary: #0e7490;
  --brand-secondary-light: #22d3ee;
  --brand-accent: #14b8a6;
  --brand-accent-soft: #ccfbf1;
  --bg: #eef3f8;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #5b6b7c;
  --border: #d7e0ea;
  --success: #047857;
  --success-bg: #ecfdf5;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --warning: #92400e;
  --warning-bg: #fffbeb;
  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --tint-04: color-mix(in srgb, var(--brand-primary) 4%, transparent);
  --tint-06: color-mix(in srgb, var(--brand-primary) 6%, transparent);
  --tint-08: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  --tint-10: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  --tint-12: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  --tint-14: color-mix(in srgb, var(--brand-primary) 14%, transparent);
  --tint-15: color-mix(in srgb, var(--brand-primary) 15%, transparent);
  --tint-20: color-mix(in srgb, var(--brand-primary) 20%, transparent);
  --tint-22: color-mix(in srgb, var(--brand-primary) 22%, transparent);
  --tint-25: color-mix(in srgb, var(--brand-primary) 25%, transparent);
  --tint-35: color-mix(in srgb, var(--brand-primary) 35%, transparent);
  --shadow: 0 10px 30px var(--tint-08);
  --shadow-sm: 0 2px 10px var(--tint-06);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Syne", "Figtree", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, color-mix(in srgb, var(--brand-secondary) 14%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, color-mix(in srgb, var(--brand-accent) 12%, transparent), transparent 50%),
    linear-gradient(180deg, #e8eef5 0%, var(--bg) 280px);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--brand-secondary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Brand ribbon: primary · accent · secondary */
.brand-ribbon {
  display: grid;
  grid-template-columns: 1.2fr 0.35fr 1fr;
  height: 6px;
}
.ribbon-maroon { background: var(--brand-primary); }
.ribbon-gold { background: var(--brand-accent); }
.ribbon-navy { background: var(--brand-secondary); }

.top-bar {
  background: var(--brand-primary);
  color: rgba(255,255,255,0.95);
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--brand-accent);
}
.top-bar strong {
  color: var(--brand-accent-soft);
  letter-spacing: 0.04em;
}
.top-bar a { color: var(--brand-accent-soft); }

.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--tint-12);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 24px var(--tint-06);
}
.site-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--brand-primary) 0%, var(--brand-primary-dark) 55%, var(--brand-secondary) 100%);
  color: var(--brand-accent-soft);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand-accent);
  box-shadow: 0 4px 12px var(--tint-22);
  flex-shrink: 0;
}
.nav-brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: #071525;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 45%, transparent);
  box-shadow: 0 4px 12px var(--tint-18);
}
.nav-brand-copy { display: grid; min-width: 0; }
.nav-brand-text {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--brand-primary);
  line-height: 1.15;
  white-space: nowrap;
}
.nav-brand-sub {
  font-size: 0.78rem;
  color: var(--brand-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  margin-right: 0.75rem;
  overflow-x: auto;
}
body.is-platform .nav-primary {
  gap: 0.5rem;
}
.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--brand-secondary);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--brand-primary);
  background: var(--tint-08);
  text-decoration: none;
}
.nav-link.active {
  color: #fff;
  background: var(--brand-primary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.btn-nav-primary,
.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none !important;
}
.btn-nav-primary {
  background: var(--brand-primary);
  color: #fff !important;
  border: 2px solid var(--brand-accent);
}
.btn-nav-primary:hover { background: var(--brand-primary-dark); }
.btn-nav-outline {
  background: #fff;
  color: var(--brand-primary) !important;
  border: 2px solid var(--brand-primary);
}
.btn-nav-outline:hover {
  background: var(--tint-08);
}

.user-menu { position: relative; }
.user-menu summary {
  list-style: none;
  cursor: pointer;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--tint-14);
  background: #fff;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-primary);
  color: var(--brand-accent-soft);
  font-weight: 800;
}
.user-menu-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-secondary);
  padding-right: 0.25rem;
}
.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.55rem;
  z-index: 120;
}
.user-menu-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
}
.user-menu-meta.role {
  color: var(--brand-primary);
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 0.35rem;
}
.user-menu-panel a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: var(--brand-secondary);
  font-weight: 650;
  font-size: 0.88rem;
}
.user-menu-panel a:hover {
  background: var(--tint-08);
  color: var(--brand-primary);
  text-decoration: none;
}

.page-hero {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-accent) 28%, transparent), transparent 32%),
    linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 38%, var(--brand-secondary) 100%);
  color: #fff;
  padding: 2.1rem 1.25rem 2.5rem;
  border-bottom: 5px solid var(--brand-accent);
}
.page-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-accent-soft) 55%, transparent);
  color: var(--brand-accent-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-hero h1 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-hero .subtitle {
  margin-top: 0.4rem;
  opacity: 0.94;
  max-width: 46rem;
}
.hero-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
}
.badge.gold {
  background: var(--brand-accent);
  color: var(--brand-primary-dark);
  border-color: var(--brand-accent);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.25rem;
  animation: pageIn 0.45s ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.card,
.panel,
.account-panel,
.admin-section {
  background: var(--bg-elevated);
  border: 1px solid var(--tint-10);
  border-radius: 16px;
  box-shadow: 0 10px 28px var(--tint-06);
  padding: 1.45rem 1.5rem;
  margin-bottom: 1.25rem;
}
.card {
  border-left: none;
}
.card h2,
.panel h2,
.account-panel h2,
.admin-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brand-primary-dark);
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--tint-12);
  letter-spacing: -0.02em;
}
.card h3,
.panel h3 {
  font-size: 1rem;
  color: var(--brand-secondary);
  margin: 0.9rem 0 0.4rem;
}
.section-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: -0.35rem 0 1rem;
}
.note { color: var(--text-muted); font-size: 0.9rem; }
.guidance-md {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: var(--text);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.action-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.3rem;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--brand-primary) 3%, #ffffff) 100%);
  border: 1px solid var(--tint-12);
  border-radius: 14px;
  box-shadow: 0 8px 20px var(--tint-04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.action-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: 0 14px 30px var(--tint-10);
  text-decoration: none;
}
.action-card .kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.action-card .title {
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--brand-primary-dark);
}
.action-card .desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.action-card.primary { border-top: 3px solid var(--brand-primary); }
.action-card.secondary { border-top: 3px solid var(--brand-secondary-light); }
.action-card.accent { border-top: 3px solid var(--brand-accent); }
.action-card.is-locked {
  opacity: 0.72;
  pointer-events: none;
}

.schedule-strip,
.stats-row,
.resource-grid,
.checklist-grid,
.guidance-columns {
  display: grid;
  gap: 0.75rem;
}
.schedule-strip,
.stats-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.resource-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checklist-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.guidance-columns { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.schedule-item,
.stat-box,
.resource-card,
.timeline-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}
.schedule-item {
  border-left: 4px solid var(--brand-accent);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
}
.schedule-item strong { display: block; color: var(--brand-primary); }

.stat-box {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-light));
  color: #fff;
  border: none;
  padding: 1rem;
  text-align: center;
}
.stat-box .num { font-size: 1.7rem; font-weight: 750; }
.stat-box .lbl { font-size: 0.78rem; opacity: 0.88; }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.slot-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  background: #fff;
}
.slot-card.open { background: var(--success-bg); border-color: #86efac; }
.slot-card.full { background: var(--danger-bg); border-color: #fca5a5; opacity: 0.9; }
.slot-card .pid { font-weight: 750; color: var(--brand-secondary); }
.slot-card .pname { color: var(--text-muted); font-size: 0.72rem; margin: 0.2rem 0; }
.slot-card .pcount { font-weight: 650; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-weight: 650;
  font-size: 0.88rem;
  margin: 0.9rem 0 0.35rem;
  color: var(--brand-secondary);
}
label .req { color: var(--brand-primary); }
input, select, textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input:hover, select:hover, textarea:hover {
  border-color: #b7cfc2;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--tint-15);
}
input[type="file"] {
  padding: 0.65rem;
  background: #fff;
  border-style: dashed;
  cursor: pointer;
}
input[type="file"]:hover {
  border-color: var(--brand-primary);
  background: #f3faf6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-primary); color: #fff; width: 100%; margin-top: 1.1rem; }
.btn-primary:hover { background: var(--brand-primary-dark); color: #fff; box-shadow: 0 8px 18px var(--tint-25); }
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: var(--brand-secondary); color: #fff; }
.btn-secondary:hover { background: var(--brand-secondary-light); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; width: auto; margin-top: 0; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
}
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; align-items: center; }

.alert {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #86efac; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #fcd34d; display: block; }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid #93c5fd; display: block; }

.registration-closed,
.mode-banner {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin: 0.8rem 0 0;
}
.registration-closed h3,
.mode-banner h3 { color: var(--brand-primary); margin-bottom: 0.3rem; }

.team-id-box {
  background: linear-gradient(to bottom, #fffdf5, #fff);
  border: 1px solid var(--brand-accent-soft);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.team-id-box input[readonly] {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.team-id-box input[readonly].assigned {
  background: #fff8e6;
  color: var(--brand-primary);
  font-size: 1.25rem;
  text-align: center;
  border-color: var(--brand-accent);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tint-10);
  border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th {
  background: var(--brand-primary-dark);
  color: #fff;
  padding: 0.8rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  font-weight: 650;
}
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--tint-08);
  vertical-align: top;
  background: #fff;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f3faf6; }
.actions-cell { white-space: nowrap; }

.status-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-approved { background: var(--success-bg); color: var(--success); }
.status-waitlisted { background: #e8f0fe; color: #1a56db; }
.status-rejected { background: var(--danger-bg); color: var(--danger); }
.status-shortlisted { background: var(--warning-bg); color: var(--warning); }
.status-winner { background: #fef9c3; color: #854d0e; }
.status-runner_up { background: #e0e7ff; color: #3730a3; }
.status-second_runner_up { background: #ecfdf5; color: #047857; }
.status-prep { background: var(--info-bg); color: var(--info); }
.status-open { background: var(--success-bg); color: var(--success); }
.status-build { background: #fef3c7; color: #92400e; }
.status-closed { background: #f3f4f6; color: #4b5563; }

.admin-bar,
.admin-actions,
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-bar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--tint-12);
  border-radius: 14px;
  box-shadow: 0 6px 18px var(--tint-04);
}
.admin-context {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--tint-06), color-mix(in srgb, var(--brand-accent) 8%, transparent));
  border: 1px solid var(--tint-14);
  border-radius: 14px;
}
.admin-context-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1.1rem;
}
.admin-context-label {
  flex: 1 1 180px;
  min-width: 160px;
}
.admin-context-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  opacity: 0.75;
  margin-bottom: 0.15rem;
}
.admin-context-label strong {
  font-size: 0.95rem;
  color: var(--brand-primary-dark);
  font-weight: 700;
}
.admin-context-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 160px;
  flex: 0 1 200px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--brand-secondary);
}
.admin-context-field select {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--tint-20);
  background: #fff;
  color: var(--brand-primary-dark);
}
.admin-context-field select:focus {
  outline: 2px solid var(--tint-35);
  outline-offset: 1px;
}
.dept-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dept-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--tint-10);
  border-radius: 12px;
}
.dept-meta {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex: 1 1 auto;
}
.dept-code {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--tint-08);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.dept-name {
  font-weight: 550;
  color: var(--brand-primary-dark);
}
.dept-actions {
  display: flex;
  gap: 0.35rem;
}
.mfa-panel .mfa-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.75rem;
}
.mfa-qr {
  border-radius: 12px;
  border: 1px solid var(--tint-12);
  background: #fff;
  padding: 0.5rem;
}
.mfa-secret {
  text-align: center;
  margin: 0.5rem 0 1rem;
}
.mfa-secret code {
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  background: var(--tint-08);
  border-radius: 8px;
}
.mfa-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: var(--brand-secondary);
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mfa-divider::before,
.mfa-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tint-15);
}
@media (max-width: 640px) {
  .admin-context-form {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-context-field {
    flex: 1 1 auto;
  }
}
.admin-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-secondary);
  font-size: 0.84rem;
  font-weight: 650;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav a.active {
  background: var(--brand-primary);
  color: #fff;
}
.admin-nav a:hover {
  background: var(--tint-08);
  color: var(--brand-primary-dark);
  text-decoration: none;
}
.admin-nav a.active:hover {
  background: var(--brand-primary-dark);
  color: #fff;
}

.registration-control-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .registration-control-grid { grid-template-columns: 1fr; }
}

.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
}
.auth-switch {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { color: var(--brand-primary); margin-bottom: 1rem; }
.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.guidance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.guidance-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.7;
}
.guidance-list li { margin-bottom: 0.45rem; }
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--tint-12);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--brand-primary) 3%, #ffffff));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.resource-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px var(--tint-08);
  text-decoration: none;
}
.resource-card strong {
  display: block;
  color: var(--brand-primary-dark);
}
.resource-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.checklist-grid label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--tint-10);
  border-radius: 12px;
  background: #fff;
}
.checklist-grid input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.timeline { display: grid; gap: 0.65rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  border: 1px solid var(--tint-10);
  border-left: 4px solid var(--brand-accent);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fff;
}
.timeline-item strong { color: var(--brand-primary-dark); }
@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 1fr; }
}

.site-footer {
  background:
    linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-secondary) 100%);
  color: rgba(255,255,255,0.92);
  padding: 1.8rem 1rem 1.2rem;
  font-size: 0.84rem;
  border-top: 4px solid var(--brand-accent);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.footer-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-accent);
  color: var(--brand-primary-dark);
  font-weight: 800;
}
.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: #071525;
}
.footer-brand p {
  opacity: 0.85;
  margin-top: 0.15rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.site-footer a { color: var(--brand-accent-soft); font-weight: 650; }
.footer-note {
  max-width: var(--maxw);
  margin: 1.1rem auto 0;
  opacity: 0.78;
  text-align: center;
}

@media (max-width: 820px) {
  .site-nav-inner { flex-wrap: wrap; }
  .nav-primary {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 0.25rem;
  }
  .nav-brand-sub { max-width: 160px; }
}

.landing-hero-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.landing-hero-cta .btn { width: auto; margin-top: 0; }
.landing-hero-cta .btn-primary { background: var(--brand-accent); color: var(--brand-primary-dark); }
.landing-hero-cta .btn-primary:hover { background: color-mix(in srgb, var(--brand-accent) 82%, white); color: var(--brand-primary-dark); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.detail-item {
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--brand-primary) 3%, #ffffff));
  border: 1px solid var(--tint-10);
  border-radius: 12px;
  padding: 0.85rem;
}
.detail-item .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-item .val {
  font-weight: 700;
  color: var(--brand-secondary);
  margin-top: 0.2rem;
}

/* Auth + event context */
.auth-shell {
  max-width: 440px;
  margin: 0 auto 2rem;
}
.event-context-chip {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.85rem;
  border-left: 3px solid var(--brand-accent);
  background: var(--tint-06);
  color: var(--brand-primary-dark);
  font-size: 0.92rem;
  border-radius: 0 8px 8px 0;
}
.auth-panel {
  background: #fff;
  border: 1px solid var(--tint-12);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.4rem;
  box-shadow: 0 12px 36px var(--tint-08);
}
.auth-panel h2 {
  margin: 0 0 0.35rem;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  color: var(--brand-primary-dark);
  letter-spacing: -0.02em;
}
.auth-form label {
  display: block;
  margin: 0.95rem 0 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.auth-form .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-form input::placeholder {
  color: #9ca3af;
}
.auth-form input:hover,
.auth-form select:hover {
  border-color: #b7cfc2;
}
.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--tint-15);
}
.auth-form input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}
.password-field {
  position: relative;
  display: block;
}
.password-field .password-input,
.password-field input {
  width: 100%;
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
}
.password-toggle:hover {
  color: var(--brand-primary);
  background: var(--tint-08);
}
.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--tint-20);
  color: var(--brand-primary);
}
.password-toggle svg {
  display: block;
}
.field-error {
  margin: 0.45rem 0 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}
.btn-block {
  width: 100%;
  margin-top: 1.25rem;
  min-height: 2.75rem;
  font-weight: 700;
}
.auth-switch {
  margin-top: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}
.auth-switch a {
  font-weight: 600;
  color: var(--brand-primary);
}
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.event-catalog { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.event-catalog-item a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--tint-12);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--brand-primary) 3%, #ffffff));
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.event-catalog-item a:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 10px 22px var(--tint-08);
  transform: translateY(-2px);
  text-decoration: none;
}
.event-catalog-item strong {
  color: var(--brand-primary-dark);
  font-size: 1.05rem;
}
.event-catalog-item .note {
  color: var(--text-muted);
}
.college-row {
  padding: 0.85rem 1rem;
  background: #fff;
}
.college-row strong {
  display: block;
  color: var(--brand-primary-dark);
  font-size: 1.05rem;
}
.college-row .note {
  margin-top: 0.2rem;
  color: #5b6b7c;
}
.event-catalog-college, .event-catalog-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.admin-form {
  display: grid;
  gap: 0.85rem;
  max-width: 520px;
}
.admin-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.admin-form input,
.admin-form select,
.admin-form textarea,
.panel input,
.panel select,
.panel textarea,
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.panel input:focus,
.panel select:focus,
.panel textarea:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--tint-15);
}
.admin-result {
  margin-top: 0.85rem;
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.85rem;
  border-radius: 10px;
  overflow: auto;
  font-size: 0.85rem;
}
.inline-form { margin: 0.95rem 0 0.35rem; }
.staff-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.staff-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--tint-10);
}
.modal {
  border: 1px solid var(--tint-12);
  box-shadow: 0 20px 48px var(--tint-20);
}
.modal h2 {
  font-family: var(--font-display);
  color: var(--brand-primary-dark);
}

/* Prefer modern auth shell over legacy card wrap */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Platform landing (aligned with talentgeenie.com) ───────── */
.container-landing {
  padding-top: 2rem;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  min-height: min(58vh, 520px);
  display: flex;
  align-items: center;
  padding: 3.5rem 1.25rem 3rem;
  background: #071525;
  border-bottom: none;
}

.landing-hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, #0a1a2e 0%, #071525 48%, #0b2a38 100%);
}
.landing-hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.landing-hero-ring {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: ringPulse 16s ease-in-out infinite alternate;
}
.landing-hero-ring--2 {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  right: 4%;
  border-color: rgba(20, 184, 166, 0.22);
  animation-delay: -4s;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.landing-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.landing-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 0.85rem;
  color: #fff;
}
.landing-brand-dot {
  color: var(--brand-accent);
}

.landing-headline {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: none;
  white-space: nowrap;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.92);
}

.landing-lead {
  max-width: 28rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 1.5rem;
}

.landing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.landing-contact-line {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.landing-contact-line a {
  font-weight: 650;
  color: var(--brand-primary);
}

.btn-landing-primary,
.btn-landing-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-landing-primary {
  background: var(--brand-accent);
  color: #06202a;
}
.btn-landing-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  background: #5eead4;
  color: #06202a;
}
.btn-landing-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-landing-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

@keyframes ringPulse {
  from { opacity: 0.55; transform: translateY(-50%) scale(1); }
  to { opacity: 0.9; transform: translateY(-50%) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-ring { animation: none; }
}

.discover-section {
  margin-bottom: 2.5rem;
  animation: pageIn 0.55s ease both;
}
.discover-section:nth-of-type(2) { animation-delay: 0.06s; }
.discover-section:nth-of-type(3) { animation-delay: 0.12s; }

.discover-head {
  margin-bottom: 1rem;
}
.discover-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
  margin: 0 0 0.25rem;
  border: none;
  padding: 0;
}
.discover-head p {
  color: var(--text-muted);
  margin: 0;
}

.discover-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}
.discover-grid.compact {
  margin-top: 0.85rem;
}

.discover-tile {
  --tile-accent: var(--brand-primary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--tile-accent) 4%, #fff) 100%);
  border: 1px solid var(--tint-12);
  border-left: 4px solid var(--tile-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.discover-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px var(--tint-10);
  border-color: color-mix(in srgb, var(--tile-accent) 45%, var(--border));
  text-decoration: none;
}
.discover-tile.pack {
  --tile-accent: #0b1f3a;
}
.discover-college {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.discover-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--brand-primary-dark);
  line-height: 1.25;
}
.discover-meta {
  margin-top: auto;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--brand-secondary);
}
.discover-more {
  margin-top: 0.85rem;
}
.discover-more a {
  font-weight: 700;
}

.test-events {
  margin-top: 1.25rem;
  border: 1px dashed var(--tint-20);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--brand-primary) 3%, white);
}
.test-events summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-secondary);
}

.college-chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
}
.college-chip-row a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tint-14);
  color: var(--brand-primary);
  font-weight: 650;
  font-size: 0.88rem;
  text-decoration: none;
}
.college-chip-row a:hover {
  border-color: var(--brand-accent);
  background: var(--brand-accent-soft);
}

.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.category-jump a,
.category-jump.home-cats a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--tint-14);
  background: #fff;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}
.category-jump a span {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-muted);
}
.category-jump a:hover,
.category-jump.home-cats a:hover {
  border-color: var(--brand-accent);
  background: var(--brand-accent-soft);
  text-decoration: none;
}
.category-jump.home-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.category-jump.home-cats li { list-style: none; }
.category-jump.home-cats a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.category-block { scroll-margin-top: 5rem; }
.category-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.category-legend li {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--brand-primary);
  background: #fff;
  border-radius: 0 12px 12px 0;
  border: 1px solid var(--tint-12);
  border-left-width: 4px;
  border-left-color: var(--brand-accent);
}
.category-legend strong {
  display: block;
  color: var(--brand-primary-dark);
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}
.category-legend span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ── Ask Geenie assistant ───────────────────────────────────── */
.tg-assistant {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}
.tg-assistant-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  cursor: pointer;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b1f3a, #0e7490);
  color: #fff;
  font-weight: 750;
  font-family: inherit;
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tg-assistant-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(11, 31, 58, 0.42);
}
.tg-assistant-launcher-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand-accent);
  color: #06202a;
  font-weight: 800;
}
.tg-assistant-panel {
  width: min(380px, calc(100vw - 1.5rem));
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tint-14);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.28);
  overflow: hidden;
  animation: assistantIn 0.28s ease both;
}
.tg-assistant-panel[hidden] {
  display: none !important;
}
.tg-assistant.is-open .tg-assistant-panel:not([hidden]) {
  display: flex;
}
@keyframes assistantIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.tg-assistant-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #0b1f3a, #0a3348);
  color: #fff;
}
.tg-assistant-header strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.tg-assistant-header p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  opacity: 0.8;
}
.tg-assistant-close {
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.tg-assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 0.85rem 0.25rem;
}
.tg-assistant-suggestions button {
  border: 1px solid var(--tint-14);
  background: color-mix(in srgb, var(--brand-primary) 4%, white);
  color: var(--brand-primary);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.tg-assistant-suggestions button:hover {
  border-color: var(--brand-accent);
  background: var(--brand-accent-soft);
}
.tg-assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 180px;
}
.tg-assistant-bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.tg-assistant-user {
  align-self: flex-end;
  background: var(--brand-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.tg-assistant-assistant {
  align-self: flex-start;
  background: #f1f5f9;
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.tg-assistant-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid var(--tint-10);
  background: #fafbfc;
}
.tg-assistant-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.tg-assistant-form input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--tint-15);
}

body.is-admin .tg-assistant {
  bottom: 1.1rem;
}

@media (max-width: 640px) {
  .landing-hero {
    min-height: auto;
    padding: 2.75rem 1rem 2.5rem;
    align-items: center;
  }
  .landing-hero-ring { display: none; }
  .landing-headline {
    white-space: normal;
    font-size: 1.1rem;
  }
  .tg-assistant-launcher-label { display: none; }
  .tg-assistant-launcher { padding: 0.7rem; }
  .page-hero-inner { align-items: flex-start; }
}
