/* ============================================================
   OpenSourcePath — core/components.css
   Shared design-system components used by both the landing page
   and the dashboard modules: nav, buttons, bento cells, reveal
   animations, toast. Split out of the old css/styles.css.
   ============================================================ */

/* ---------- Landing nav ---------- */
#top-sentinel { height: 1px; }
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 14px 20px 6px; pointer-events: none;
}
.nav-pill {
  pointer-events: auto; width: 100%;
  display: flex; align-items: center; gap: 22px;
  height: var(--nav-h); padding: 0 10px 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.nav.scrolled .nav-pill {
  max-width: 1180px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-color: var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.mark-tile { fill: var(--panel-2); stroke: var(--line-2); }
.mark-line { stroke: var(--text-3); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.mark-dot { fill: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; margin-right: auto; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--text-2); transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-links a.active { color: var(--text); background: var(--panel-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; font-size: 19px;
  color: var(--text-2); border: 1px solid transparent;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }

/* theme toggle icons: show the one matching the *other* mode (the action) */
html[data-theme="dark"] .ph-sun { display: none; }
html[data-theme="light"] .ph-moon { display: none; }

/* nav: overflow destinations */
.nav-more { position: relative; display: flex; align-items: center; }
.nav-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--text-2); transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-more-btn i { font-size: 11px; transition: transform 0.3s var(--ease); }
.nav-more-btn:hover,
.nav-more.open .nav-more-btn,
.nav-more.has-active .nav-more-btn { color: var(--text); background: var(--panel-2); }
.nav-more.open .nav-more-btn i { transform: rotate(180deg); }

/* ---------- Dropdown panels (More, user menu) ---------- */
.drop {
  position: absolute; top: calc(100% + 20px); left: 0; z-index: 30;
  min-width: 258px; padding: 8px; display: grid; gap: 2px; pointer-events: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-panel);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top left;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0s 0.26s;
}
[data-drop].open .drop {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.drop-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
  padding: 9px 12px 5px;
}
.drop-i {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.drop-i > i { font-size: 17px; color: var(--text-3); flex-shrink: 0; width: 18px; text-align: center; transition: color 0.2s var(--ease); }
.drop-i:hover { color: var(--text); background: var(--panel-2); }
.drop-i:hover > i { color: var(--accent); }
.drop-t { display: grid; gap: 1px; min-width: 0; }
.drop-t strong { font-size: 13.5px; font-weight: 700; color: inherit; }
.drop-t small { font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.drop-badge {
  margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 1px 8px;
}
.drop-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* user menu */
.user { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel-2);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.user-btn:hover { border-color: var(--text-3); transform: translateY(-1px); }
.user-btn > i { font-size: 11px; color: var(--text-3); transition: transform 0.3s var(--ease); }
.user.open .user-btn,
.user.has-active .user-btn { border-color: var(--text-3); background: var(--panel-3); }
.user.open .user-btn > i { transform: rotate(180deg); }
.user-name { font-size: 14px; font-weight: 600; }
.avatar.user-ava { width: 28px; height: 28px; font-size: 11px; border: 0; background: linear-gradient(140deg, hsl(152 72% 64%), hsl(190 75% 58%)); color: #06281d; }
.drop-user { left: auto; right: 0; min-width: 268px; transform-origin: top right; }
.drop-head { display: flex; align-items: center; gap: 11px; padding: 10px 12px 8px; }
.drop-who strong { display: block; font-size: 14px; font-weight: 700; }
.drop-who small { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-orb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px; font-size: 14px;
  background: rgba(255, 255, 255, 0.18); margin-right: -6px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.btn-primary:hover .btn-orb { transform: translateX(3px); background: rgba(255, 255, 255, 0.3); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--text-3); transform: translateY(-2px); }
.btn-gh {
  border: 1px solid var(--line-2); background: var(--panel-2); font-size: 14px; padding: 9px 15px;
}
.btn-gh:hover { border-color: var(--text-3); transform: translateY(-1px); }
.btn-gh .ph-github-logo { font-size: 19px; }
.orb-solid { background: var(--accent); color: var(--accent-ink); }

/* burger */
.burger { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- Mobile menu (landing page) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  justify-content: center; padding: 100px 28px 48px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 8vw, 52px);
  line-height: 1.2; letter-spacing: -0.02em; padding: 6px 0;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 80ms);
}
.menu.open .menu-links a { opacity: 1; transform: translateY(0); }
.menu-links a:hover { color: var(--accent); }
.menu-foot { margin-top: 40px; display: grid; gap: 14px; justify-items: start; opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease) 0.42s, transform 0.5s var(--ease) 0.42s; }
.menu.open .menu-foot { opacity: 1; transform: none; }
.menu-foot p { color: var(--text-2); font-size: 14px; max-width: 34ch; }

/* ---------- Grouped menu (inner pages: dashboard and future app pages) ---------- */
.menu-inner {
  width: min(1040px, 100%); margin-inline: auto; max-height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; gap: clamp(28px, 5vh, 46px);
}
.menu-inner .menu-foot { margin-top: 0; }
.menu-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); align-items: start; }
.menu-col { display: grid; gap: 2px; align-content: start; }
.menu-col .mono-label { margin-bottom: 12px; }
.menu-col a {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.25; letter-spacing: -0.02em; padding: 4px 0; width: fit-content;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), color 0.25s var(--ease);
  transition-delay: calc(var(--i) * 26ms + 70ms);
}
.menu.open .menu-col a { opacity: 1; transform: none; }
.menu-col a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.sec { padding: clamp(84px, 11vw, 132px) 0; }
.sec.wash { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent-line); }
.sec-title { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.028em; }
.sec-title.center { text-align: center; margin-inline: auto; }
.sec-sub { margin-top: 16px; color: var(--text-2); font-size: 16.5px; max-width: 58ch; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.cell {
  grid-column: span 12; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); overflow: hidden; position: relative;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cell:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-panel); }
.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; }
.c-4 { grid-column: span 4; } .c-12 { grid-column: span 12; }
.cell-in { padding: 20px 22px 22px; height: 100%; display: flex; flex-direction: column; }
.cell-in.tint { background: linear-gradient(160deg, var(--accent-soft), transparent 46%), var(--panel); }
.cell-in.tint-soft { background: var(--panel-2); }
.cell-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cell-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--text-2);
  transition: color 0.25s var(--ease);
}
.cell-link:hover { color: var(--accent); }
.cell-link i { font-size: 13px; transition: transform 0.25s var(--ease); }
.cell-link:hover i { transform: translate(2px, -2px); }
.cell-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* mono labels */
.mono-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.mono-dim { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); opacity: 0.8; }

/* ---------- Contribution graph (landing hero + Overview + Profile) ---------- */
.graph { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; }
.graph i { display: block; padding-top: 100%; border-radius: 3px; background: var(--panel-3); transition: background 0.4s var(--ease), transform 0.2s var(--ease); }
.graph i:hover { transform: scale(1.35); }
.graph i[data-v="0"] { background: var(--panel-3); }
.graph i[data-v="1"] { background: color-mix(in srgb, var(--accent) 26%, var(--panel-3)); }
.graph i[data-v="2"] { background: color-mix(in srgb, var(--accent) 52%, var(--panel-3)); }
.graph i[data-v="3"] { background: color-mix(in srgb, var(--accent) 80%, var(--panel-3)); }
.graph i[data-v="4"] { background: var(--accent); }

.pulse-spot { min-height: 44px; margin-top: 16px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; color: var(--text-2); }
.pulse-spot .mono-dim { margin-left: auto; flex-shrink: 0; }
.pulse-spot b { color: var(--text); font-weight: 700; }
.pulse-spot .s-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

@media (max-width: 768px) {
  .graph { grid-template-columns: repeat(13, 1fr); }
}

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 80px); z-index: 120;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-panel); opacity: 0; pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  display: flex; align-items: center; gap: 9px;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast i { color: var(--accent); font-size: 17px; }

/* ---------- Sign-in modal ----------
   Injected by js/core/auth.js on any page (index.html and
   dashboard.html both trigger it), so it lives in shared core. */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0s 0.3s; }
.modal.open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
.modal-back { position: absolute; inset: 0; background: rgba(4, 6, 6, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: min(460px, 100%); max-height: 100%; overflow-y: auto;
  display: grid; gap: 13px; justify-items: start; text-align: left;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-soft), transparent 46%), var(--panel);
  box-shadow: var(--shadow-panel);
  transform: translateY(14px) scale(0.985); transition: transform 0.35s var(--ease);
}
.modal.open .modal-card { transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-size: 17px; color: var(--text-3); border: 1px solid transparent; }
.modal-x:hover { color: var(--text); border-color: var(--line); background: var(--panel-2); }
.modal-title { font-size: clamp(22px, 2.6vw, 28px); }
.modal-sub { font-size: 14.5px; color: var(--text-2); }
.modal-actions { display: grid; gap: 10px; width: 100%; }
.modal-actions .btn { justify-content: center; width: 100%; }
.modal-tag { margin-left: 8px; font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; }
.modal-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; width: 100%; }
.modal-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); }
.modal-list i { color: var(--accent); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.modal-fine { font-size: 10.5px; line-height: 1.6; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Auth modal: tabs, form fields, experience picker ---------- */
.modal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; }
.modal-tab { border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 600; color: var(--text-2); text-align: center; transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.modal-tab:hover { color: var(--text); }
.modal-tab.is-on { background: var(--accent); color: var(--accent-ink); }

/* GitHub provider button with two-line label */
.btn-gh { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.btn-gh .ph-github-logo { font-size: 20px; }
.btn-gh .gh-label { font-weight: 700; }
.btn-gh .gh-sub { font-size: 11px; font-weight: 500; color: var(--text-3); font-style: normal; }

.auth-form { display: grid; gap: 12px; width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field.is-hidden { display: none; }
.field-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.field-input {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-md);
  outline: none; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field-input::placeholder { color: var(--text-3); }
.field-input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-input.has-err { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14); }
.field-err { font-size: 12px; color: var(--danger); min-height: 0; }
.field-err:empty { display: none; }
.field-hint { font-size: 12px; color: var(--text-3); }
.form-err { font-size: 12.5px; color: var(--danger); }
.form-err:empty { display: none; }
.auth-form .btn-primary { width: 100%; justify-content: center; margin-top: 2px; }

.check-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; color: transparent;
  background: var(--bg-2); border: 1px solid var(--line-2);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.check-row input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check-row input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-row:hover .check-box { border-color: var(--accent-line); }

.exp-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.exp-opt {
  display: grid; gap: 2px; padding: 10px 12px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.exp-opt:hover { border-color: var(--accent-line); }
.exp-opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.exp-opt .exp-name { font-weight: 700; font-size: 13px; color: var(--text); }
.exp-opt.is-on .exp-name { color: var(--accent); }
.exp-opt small { font-size: 11px; color: var(--text-3); }

.auth-div { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--text-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.auth-div::before, .auth-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }

html[data-theme="light"] .fdetail-bubble { background: var(--bg-2); }
html[data-theme="light"] .fdetail-opbody { background: var(--bg-2); }
html[data-theme="light"] .exp-opt { background: var(--panel); }
html[data-theme="light"] .field-input { background: var(--panel); }
html[data-theme="light"] .survey-opt span { background: var(--panel); }
html[data-theme="light"] .mono-label { color: var(--text-2); }
html[data-theme="light"] .mono-dim { color: var(--text-2); opacity: 1; }
html[data-theme="light"] .note { color: var(--text-2); }
html[data-theme="light"] .crumbs { color: var(--text-2); }
html[data-theme="light"] .chip { color: var(--text-2); }
html[data-theme="light"] .chip:hover { color: var(--text); }

/* ---------- Landing auth slot (nav) ---------- */
.is-hidden { display: none !important; }
.auth-slot { display: inline-flex; align-items: center; gap: 8px; }
.auth-slot .btn { padding-inline: 16px; }
[data-auth-dash] .ph-arrow-right { font-size: 16px; }

/* ---------- Dedicated sign-in page (signin.html) — HackerRank-style ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.08fr 1fr; }
.auth-art {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: clamp(28px, 4.5vw, 60px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 12% 0%, var(--accent-soft), transparent 62%),
    var(--bg-2);
  overflow: hidden;
}
/* faint full-page dot field behind the card side too */
.dot-field {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .35;
}
[data-theme="light"] .dot-field { opacity: .55; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text); position: relative; z-index: 2; }
/* dotted contribution-grid stage */
.art-stage {
  position: relative; margin-top: clamp(6px, 2vh, 26px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  padding: clamp(18px, 2.4vw, 30px);
  overflow: hidden;
}
.art-stage::after {
  /* soft glow so the mascot reads against the dots */
  content: ""; position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  pointer-events: none;
}
#dotgrid { display: block; width: 100%; height: auto; }
#dotgrid circle { fill: var(--line); }
#dotgrid circle.d1 { fill: color-mix(in srgb, var(--accent) 28%, var(--line)); }
#dotgrid circle.d2 { fill: color-mix(in srgb, var(--accent) 48%, var(--line)); }
#dotgrid circle.d3 { fill: color-mix(in srgb, var(--accent) 72%, var(--line)); }
#dotgrid circle.d4 { fill: var(--accent); }
#dotgrid circle[data-hot] { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
.assist-float { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -58%); z-index: 2; }
.assist-float img { width: clamp(120px, 12vw, 158px); height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); animation: assist-bob 5.2s ease-in-out infinite; }
.assist-halo { position: absolute; inset: -18%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); animation: assist-spin 26s linear infinite; }
@keyframes assist-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes assist-spin { to { transform: rotate(360deg); } }
.art-caption {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--text-2);
}
.art-caption strong { color: var(--text); }
.art-streak { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; padding: 4px 10px; }
.auth-points { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 13px; position: relative; z-index: 2; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; max-width: 46ch; }
.auth-points i { color: var(--accent); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.auth-side { display: grid; place-items: center; align-content: center; gap: 6px; padding: clamp(20px, 4vw, 48px); position: relative; }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 10px; }
body[data-auth-page] .modal-card { position: static; width: min(460px, 100%); max-height: none; overflow: visible; transform: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.auth-back { font-size: 13.5px; color: var(--text-2); }
.auth-back a { display: inline-flex; align-items: center; gap: 7px; }
.auth-back a:hover { color: var(--accent); }
.auth-switch { font-size: 13.5px; color: var(--text-2); }
.linklike { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-mobile-brand { display: flex; justify-content: center; }
  .auth-side { padding-top: 34px; }
}
