/* ═══════════════════════════════════════════
   SHINNER — DARK THEME UI
   Font: Syne (display) + JetBrains Mono (code)
════════════════════════════════════════════ */

:root {
  --bg:        #0a0c10;
  --bg-2:      #0f1218;
  --bg-3:      #161b24;
  --bg-4:      #1e2533;
  --border:    #ffffff0f;
  --border-2:  #ffffff18;

  --accent:    #00e5ff;
  --accent-2:  #7c3aed;
  --accent-glow: #00e5ff33;

  --critical:  #ff4444;
  --high:      #ff8c00;
  --medium:    #f5c518;
  --low:       #00c896;
  --ok:        #00e5a0;

  --text-1:  #f0f4ff;
  --text-2:  #8892a4;
  --text-3:  #4a5568;

  --radius:  10px;
  --radius-lg: 16px;

  --font-display: 'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-display);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NOISE TEXTURE ─── */
.noise {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* ─── PAGES ─── */
.page { display: none; min-height: 100vh; }
.page.active { display: flex; flex-direction: column; animation: fadeIn .35s ease; }

@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 99px; }

/* ════════════════════════════════════
   LANDING PAGE
════════════════════════════════════ */
#page-landing {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, #00e5ff0d 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, #7c3aed0a 0%, transparent 60%),
    var(--bg);
}

.landing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 3rem;
  gap: 4rem;
}

.logo-mark {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 800;
  color: var(--bg); letter-spacing: .05em;
  margin-bottom: 2rem;
  box-shadow: 0 0 32px var(--accent-glow);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
  color: var(--text-1);
}

.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 400;
}

.pill-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.pill {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .3rem .75rem;
  border: 1px solid var(--border-2);
  border-radius: 99px;
  color: var(--text-2);
  background: var(--bg-3);
  letter-spacing: .04em;
}

.landing-note {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* Terminal Card */
.landing-right { position: relative; }

.terminal-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px #000a, 0 0 0 1px var(--border);
}

.terminal-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-3);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 2;
}

.t-line { opacity: 0; animation: tAppear .3s ease forwards; }
.t-delay-1 { animation-delay: .4s; }
.t-delay-2 { animation-delay: .9s; }
.t-delay-3 { animation-delay: 1.4s; }
.t-delay-4 { animation-delay: 1.9s; }
.t-delay-5 { animation-delay: 2.4s; }
.t-delay-6 { animation-delay: 2.9s; }
.t-delay-7 { animation-delay: 3.4s; }
.t-delay-8 { animation-delay: 3.9s; }

@keyframes tAppear { to { opacity: 1; } }

.t-prompt { color: var(--accent); margin-right: .5rem; }
.t-cmd    { color: var(--text-1); }
.t-arg    { color: var(--accent-2); }
.t-info   { color: var(--text-3); margin-right: .5rem; }
.t-warn   { color: var(--medium); margin-right: .5rem; }
.t-err    { color: var(--critical); margin-right: .5rem; }
.t-ok     { color: var(--ok); margin-right: .5rem; }

.t-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink .8s step-end infinite;
  opacity: 0;
}
.t-cursor.t-delay-8 { animation: blink .8s step-end infinite, tAppear .3s ease 3.9s forwards; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.stat-chips {
  display: flex; gap: 1rem; margin-top: 1.5rem; justify-content: center;
}
.stat-chip {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 1.6rem; font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: .72rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ════════════════════════════════════
   TOPBAR / NAV (shared)
════════════════════════════════════ */
.topbar {
  display: flex; align-items: center;
  padding: 0 2rem;
  height: 60px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  gap: 1rem;
}

.topbar-left  { display: flex; align-items: center; gap: .75rem; flex: 1; }
.topbar-center{ flex: 2; }
.topbar-right { display: flex; align-items: center; gap: 1rem; flex: 1; justify-content: flex-end; }

.nav-logo {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: .65rem; font-weight: 800;
  color: var(--bg);
}
.nav-brand { font-weight: 700; font-size: .95rem; }

.search-box {
  width: 100%; max-width: 380px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem 1rem;
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: .85rem;
  outline: none;
  transition: border-color .2s;
}
.search-box:focus { border-color: var(--accent); }
.search-box::placeholder { color: var(--text-3); }

.avatar-wrap { display: flex; align-items: center; gap: .5rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-2); }
.avatar-name { font-size: .85rem; color: var(--text-2); }

.scan-status {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .3rem .8rem;
  border-radius: 99px;
  background: var(--medium)22;
  color: var(--medium);
  border: 1px solid var(--medium)44;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.btn-back {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .85rem;
  padding: .4rem .8rem;
  border-radius: 6px;
  transition: all .2s;
}
.btn-back:hover { background: var(--bg-3); color: var(--text-1); }

/* ════════════════════════════════════
   DASHBOARD
════════════════════════════════════ */
.dashboard-body {
  flex: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 2.5rem 2rem;
  width: 100%;
}

.dash-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem;
}

.dash-title { font-size: 1.6rem; font-weight: 700; }
.dash-sub   { color: var(--text-2); font-size: .9rem; margin-top: .25rem; }

.dash-stats { display: flex; gap: 1.5rem; }
.ds-item { text-align: right; }
.ds-num  { display: block; font-size: 1.8rem; font-weight: 800; color: var(--text-1); }
.ds-num.accent { color: var(--critical); }
.ds-lbl  { font-size: .72rem; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }

.filter-row { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 6px;
  padding: .35rem .85rem;
  font-family: var(--font-display);
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--bg-4);
  border-color: var(--accent);
  color: var(--accent);
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.repo-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.repo-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background .25s;
}
.repo-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: 0 12px 40px #0006; }
.repo-card.has-critical::before { background: var(--critical); }
.repo-card.has-high::before     { background: var(--high); }
.repo-card.has-medium::before   { background: var(--medium); }
.repo-card.clean::before        { background: var(--ok); }

.repo-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.repo-name { font-size: 1rem; font-weight: 700; }
.repo-lang {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .25rem .6rem;
  background: var(--bg-4);
  border-radius: 4px;
  color: var(--text-2);
}

.repo-meta { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.repo-meta-item { font-size: .78rem; color: var(--text-3); font-family: var(--font-mono); }
.repo-meta-item span { color: var(--text-2); }

.repo-footer { display: flex; justify-content: space-between; align-items: center; }

.severity-badge {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .25rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.severity-badge.critical { background: var(--critical)22; color: var(--critical); border: 1px solid var(--critical)44; }
.severity-badge.high     { background: var(--high)22;     color: var(--high);     border: 1px solid var(--high)44; }
.severity-badge.medium   { background: var(--medium)22;   color: var(--medium);   border: 1px solid var(--medium)44; }
.severity-badge.low      { background: var(--low)22;      color: var(--low);      border: 1px solid var(--low)44; }
.severity-badge.clean    { background: var(--ok)22;       color: var(--ok);       border: 1px solid var(--ok)44; }

.scan-btn {
  font-family: var(--font-display);
  font-size: .8rem;
  padding: .4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--accent)66;
  background: var(--accent)11;
  color: var(--accent);
}
.scan-btn:hover { background: var(--accent)22; border-color: var(--accent); }

/* ════════════════════════════════════
   ANALYSIS PAGE
════════════════════════════════════ */
.analysis-body {
  flex: 1; padding: 2rem;
  max-width: 1280px; margin: 0 auto; width: 100%;
}

.analysis-summary {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-bottom: 2rem;
}

.summary-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  position: relative; overflow: hidden;
}
.summary-card::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 4px;
}
.summary-card.critical::after { background: var(--critical); }
.summary-card.high::after     { background: var(--high); }
.summary-card.medium::after   { background: var(--medium); }
.summary-card.low::after      { background: var(--low); }

.sc-num { font-size: 2rem; font-weight: 800; }
.summary-card.critical .sc-num { color: var(--critical); }
.summary-card.high     .sc-num { color: var(--high); }
.summary-card.medium   .sc-num { color: var(--medium); }
.summary-card.low      .sc-num { color: var(--low); }

.sc-lbl { font-size: .78rem; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }

.analysis-layout {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 1.5rem; height: calc(100vh - 320px);
}

.issues-panel, .issue-detail-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: .9rem;
}

.badge-count {
  background: var(--accent)22;
  color: var(--accent);
  border: 1px solid var(--accent)44;
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .15rem .5rem;
  border-radius: 99px;
}

.issues-list { flex: 1; overflow-y: auto; }

.issue-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  display: flex; gap: 1rem; align-items: flex-start;
}
.issue-item:hover, .issue-item.active { background: var(--bg-3); }
.issue-item.active { border-left: 3px solid var(--accent); }

.issue-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.issue-dot.critical { background: var(--critical); box-shadow: 0 0 6px var(--critical); }
.issue-dot.high     { background: var(--high); }
.issue-dot.medium   { background: var(--medium); }
.issue-dot.low      { background: var(--low); }

.issue-info { flex: 1; min-width: 0; }
.issue-title { font-size: .88rem; font-weight: 600; margin-bottom: .25rem; }
.issue-file  { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.detail-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; color: var(--text-3);
  font-size: .88rem;
}

.issue-detail-inner { padding: 1.5rem; overflow-y: auto; flex: 1; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.detail-title  { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.detail-desc   { font-size: .88rem; color: var(--text-2); line-height: 1.6; margin-bottom: 1.5rem; }
.detail-meta   { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.detail-meta-item { background: var(--bg-3); padding: .75rem 1rem; border-radius: 8px; }
.dmi-label { font-size: .7rem; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; margin-bottom: .25rem; }
.dmi-value { font-size: .88rem; font-weight: 600; }

.view-diff-btn {
  width: 100%;
  padding: .85rem;
  background: linear-gradient(135deg, var(--accent)22, var(--accent-2)22);
  border: 1px solid var(--accent)44;
  color: var(--accent);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.view-diff-btn:hover { background: linear-gradient(135deg, var(--accent)33, var(--accent-2)33); }

/* ════════════════════════════════════
   DIFF VIEWER
════════════════════════════════════ */
.diff-body { flex: 1; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }

.diff-meta {
  display: flex; align-items: center; gap: 2rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.5rem;
  flex-wrap: wrap;
}
.diff-meta-item { display: flex; align-items: center; gap: .75rem; }
.dm-label { font-size: .72rem; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.dm-value { font-size: .88rem; font-weight: 600; }

.confidence-bar { display: flex; align-items: center; gap: .5rem; }
.confidence-bar > span:first-child {
  width: 100px; height: 6px;
  background: var(--bg-4); border-radius: 99px;
  display: block; position: relative;
}
.confidence-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  display: block;
}
.confidence-pct { font-family: var(--font-mono); font-size: .8rem; color: var(--ok); }

.diff-columns {
  flex: 1;
  display: grid; grid-template-columns: 1fr 4px 1fr;
  gap: 0;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  min-height: 0;
}

.diff-col { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.diff-col-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1.25rem;
  font-family: var(--font-mono); font-size: .78rem;
  border-bottom: 1px solid var(--border);
}
.diff-col-header.before { background: var(--critical)0a; color: var(--critical); }
.diff-col-header.after  { background: var(--ok)0a;       color: var(--ok); }
.diff-lang { color: var(--text-3); }

.copy-btn {
  cursor: pointer; color: var(--accent);
  font-size: .72rem; padding: .2rem .5rem;
  background: var(--accent)11; border-radius: 4px;
  transition: background .2s;
}
.copy-btn:hover { background: var(--accent)22; }

.diff-code {
  flex: 1; overflow-y: auto;
  font-family: var(--font-mono); font-size: .8rem;
  line-height: 1.8; padding: 1rem 0;
}

.diff-divider { background: var(--border); }

.code-line {
  display: flex; align-items: flex-start;
  padding: 0 1.25rem; gap: 1rem;
}
.code-line.removed { background: var(--critical)12; }
.code-line.added   { background: var(--ok)10; }

.line-num { color: var(--text-3); user-select: none; width: 2.5rem; text-align: right; flex-shrink: 0; font-size: .72rem; padding-top: 1px; }
.line-sign { width: .8rem; flex-shrink: 0; }
.code-line.removed .line-sign { color: var(--critical); }
.code-line.added   .line-sign { color: var(--ok); }
.line-content { white-space: pre-wrap; word-break: break-all; flex: 1; }

.explanation-card {
  background: var(--bg-2); border: 1px solid var(--accent)22;
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
}
.exp-header { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: .75rem; }
.exp-text { font-size: .88rem; color: var(--text-2); line-height: 1.7; }

/* ════════════════════════════════════
   PR PAGE
════════════════════════════════════ */
.pr-body { flex: 1; padding: 2rem; max-width: 1280px; margin: 0 auto; width: 100%; }

.pr-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }

.pr-section-title { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 1rem; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .8rem; color: var(--text-2); margin-bottom: .4rem; font-family: var(--font-mono); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-3); border: 1px solid var(--border-2);
  color: var(--text-1); border-radius: 8px;
  padding: .65rem 1rem; font-family: var(--font-display); font-size: .88rem;
  outline: none; transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; font-family: var(--font-mono); font-size: .82rem; line-height: 1.6; }
.form-input.small { flex: 1; }
.form-select { appearance: none; cursor: pointer; }

.branch-row { display: flex; align-items: center; gap: .75rem; }
.branch-item { display: flex; align-items: center; gap: .5rem; flex: 1; }
.branch-tag { font-family: var(--font-mono); font-size: .68rem; background: var(--accent)22; color: var(--accent); padding: .2rem .5rem; border-radius: 4px; white-space: nowrap; }
.branch-arrow { color: var(--text-3); font-size: 1.1rem; }

.label-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pr-label {
  font-family: var(--font-mono); font-size: .7rem;
  padding: .25rem .65rem; border-radius: 99px;
}
.pr-label.security { background: var(--critical)22; color: var(--critical); border: 1px solid var(--critical)44; }
.pr-label.bug      { background: var(--high)22;     color: var(--high);     border: 1px solid var(--high)44; }
.pr-label.ai       { background: var(--accent)22;   color: var(--accent);   border: 1px solid var(--accent)44; }

.add-label-btn {
  background: none; border: 1px dashed var(--border-2);
  color: var(--text-3); border-radius: 99px;
  font-size: .7rem; padding: .25rem .65rem;
  cursor: pointer; font-family: var(--font-mono);
  transition: all .2s;
}
.add-label-btn:hover { border-color: var(--accent); color: var(--accent); }

.pr-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }

/* Summary col */
.pr-summary-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.ps-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.ps-row:last-child { border: none; }
.ps-lbl { font-size: .78rem; color: var(--text-3); }
.ps-val { font-size: .82rem; font-weight: 600; }
.ps-val.mono { font-family: var(--font-mono); color: var(--text-2); }

.pr-issues-mini { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.pim-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: .65rem 1rem;
  font-size: .82rem;
}

.pr-warning {
  display: flex; align-items: flex-start; gap: .6rem;
  background: var(--medium)0f; border: 1px solid var(--medium)33;
  border-radius: 8px; padding: .85rem 1rem;
  font-size: .8rem; color: var(--medium); line-height: 1.5;
}

/* ════════════════════════════════════
   MODAL
════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #000a;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}

.modal-card {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 2.5rem;
  text-align: center; max-width: 420px; width: 90%;
  box-shadow: 0 32px 80px #000c;
}

.modal-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1.5rem;
}
.modal-icon.success { background: var(--ok)22; color: var(--ok); border: 2px solid var(--ok)44; }

.modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.modal-sub   { font-size: .9rem; color: var(--text-2); margin-bottom: 2rem; }

.modal-actions { display: flex; flex-direction: column; gap: .75rem; }

/* ════════════════════════════════════
   BUTTONS (GLOBAL)
════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--accent), #00b8d4);
  color: var(--bg); font-family: var(--font-display);
  font-size: .9rem; font-weight: 700;
  padding: .75rem 1.75rem; border-radius: 8px;
  border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-primary.small { padding: .45rem 1rem; font-size: .8rem; }
.btn-primary.large { width: 100%; justify-content: center; padding: .9rem; }

.btn-ghost {
  background: none; border: 1px solid var(--border-2);
  color: var(--text-2); font-family: var(--font-display);
  font-size: .85rem; padding: .7rem 1.5rem;
  border-radius: 8px; cursor: pointer;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--border-2); background: var(--bg-3); color: var(--text-1); }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; }
  .landing-right { display: none; }
  .analysis-layout { grid-template-columns: 1fr; }
  .diff-columns { grid-template-columns: 1fr; grid-template-rows: 1fr 4px 1fr; }
  .pr-layout { grid-template-columns: 1fr; }
  .analysis-summary { grid-template-columns: 1fr 1fr; }
}