/* ========================================================
   깃도리 Design System & Styles
   Shared typography, color and spacing tokens
   ======================================================== */

:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --ink: #181e27;
  --sub: #6b7585;
  --line: #e5e8ee;
  --accent: #2b5fdb;
  --acc-soft: #e8effc;
  --chip: #eef1f4;
  --ok: #1f8a5b;
  --warn: #c8841a;
  --bad: #c53030;
  
  /* 3-Stage Spicy Colors */
  --sp1: #d9a514; /* 순한맛 (Mild) */
  --sp2: #dd7a24; /* 중간맛 (Medium) */
  --sp3: #ce3a1b; /* 매운맛 (Spicy) */

  --gold: #c8a24a;
  --gold-text: #a8843a;
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow: 0 1px 3px rgba(24, 30, 39, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-serif: "Gowun Batang", serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

.dark {
  --bg: #121419;
  --card: #1c2027;
  --ink: #eaedf1;
  --sub: #8a93a3;
  --line: #2a2f38;
  --accent: #7aa0ff;
  --acc-soft: #1d2a4a;
  --chip: #262b33;
  --ok: #4fb585;
  --warn: #dba13f;
  --bad: #e07a6c;
  --sp1: #e5b72e;
  --sp2: #e98a38;
  --sp3: #e25535;
  --gold: #e0c27e;
  --gold-text: #e0c27e;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  color: inherit;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ========================================================
   Header & Top Bar
   ======================================================== */
.gb-topbanner {
  background: linear-gradient(90deg, #18233c 0%, #1c2e55 100%);
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.gb-topbanner a {
  color: #fed7aa;
  font-weight: 600;
}
.gb-topbanner a:hover {
  text-decoration: underline;
}

.pc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.pc-topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.pc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.pc-brand svg {
  color: var(--accent);
}

.pc-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pc-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
}

.pc-nav-item:hover {
  color: var(--ink);
  background: var(--chip);
}

.pc-nav-item.active {
  color: var(--accent);
  background: var(--acc-soft);
  font-weight: 700;
}

.pc-nav-item .badge-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
}

.badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}
.dark .badge-purple {
  background: #3b0764;
  color: #d8b4fe;
  border-color: #581c87;
}

/* Dropdown Menu */
.pc-dropdown {
  position: relative;
  display: inline-block;
}

.pc-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  min-width: 190px;
  padding: 6px;
  z-index: 200;
}

.pc-dropdown:hover .pc-dropdown-menu,
.pc-dropdown:focus-within .pc-dropdown-menu {
  display: block;
}

.pc-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.12s;
}

.pc-dropdown-item:hover {
  background: var(--chip);
  color: var(--accent);
}

.ls-topbar {
  flex: 1;
  max-width: 400px;
  margin: 0 12px;
}
.ls-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ls-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
.ls-form input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
}
.ls-form button {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 2px 6px;
}

.pc-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-pro-gold {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-pro-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.45);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
  color: var(--sub);
}
.theme-toggle:hover {
  background: var(--chip);
  color: var(--ink);
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.15s;
}
.pc-btn:hover {
  opacity: 0.9;
}
.pc-btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.pc-btn-outline:hover {
  background: var(--acc-soft);
}

/* ========================================================
   Masthead
   ======================================================== */
.pc-masthead {
  padding: 28px 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.pc-mast-inner {
  text-align: center;
  margin-bottom: 24px;
}
.pc-mast-date {
  font-size: 13px;
  color: var(--sub);
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}
.pc-mast-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.pc-mast-tag {
  font-size: 15px;
  color: var(--sub);
  margin-bottom: 12px;
}
.mast-stats {
  font-size: 13px;
  color: var(--sub);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.mast-stats b {
  color: var(--accent);
}

/* Categories nav */
.pc-sectionnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.pc-sectionnav::-webkit-scrollbar {
  display: none;
}
.pc-sectionnav a {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
  background: var(--card);
  border: 1px solid var(--line);
  transition: all 0.15s;
}
.pc-sectionnav a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.pc-sectionnav a.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}

/* ========================================================
   Spicy Slider (순한맛 / 중간맛 / 매운맛)
   ======================================================== */
.gb-togglewrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 24px;
}
.sp-slider {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 16px 12px;
  box-shadow: var(--shadow);
  width: 320px;
  user-select: none;
}
.sp-slider .lbls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sp-slider .lbls button {
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: color 0.15s, font-weight 0.15s;
}
.sp-slider .lbls button.on {
  font-weight: 700;
}
.sp-slider .lbls button[data-depth="mild"].on { color: var(--sp1); }
.sp-slider .lbls button[data-depth="medium"].on { color: var(--sp2); }
.sp-slider .lbls button[data-depth="spicy"].on { color: var(--sp3); }

.sp-slider .track {
  position: relative;
  height: 8px;
  background: var(--chip);
  border-radius: 4px;
  cursor: pointer;
}
.sp-slider .track .tick {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--line);
  border-radius: 50%;
}
.sp-slider .track .thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================
   Main Layout Grid
   ======================================================== */
.gb-deskgrid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* Subpage Mode: Hide Feed-specific Masthead & Aside, Full-Width Main */
body.view-subpage #pc-masthead,
body.view-subpage #pc-aside {
  display: none !important;
}

body.view-subpage .gb-deskgrid,
body.view-subpage #gb-deskgrid {
  grid-template-columns: 1fr !important;
  padding-top: 28px;
}

/* Sidebar */
.pc-aside {
  position: sticky;
  top: 80px;
  align-self: start;
}
.pc-aside-h {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.pc-navlist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pc-navitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: var(--sub);
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.pc-navitem:hover {
  background: var(--chip);
  color: var(--ink);
}
.pc-navitem.on {
  background: var(--acc-soft);
  color: var(--accent);
  font-weight: 600;
}
.pc-navitem .cnt {
  font-size: 11px;
  color: var(--sub);
}

/* Feed Column */
.gb-feedcol {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Verified Banner (오늘의 착한식당) */
.vf-banner {
  display: block;
  background: var(--card);
  border: 1px solid rgba(31, 138, 91, 0.25);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vf-banner:hover {
  border-color: var(--ok);
  box-shadow: 0 6px 18px rgba(31, 138, 91, 0.1);
}
.vf-banner-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vf-banner-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  background: rgba(31, 138, 91, 0.1);
  padding: 2px 8px;
  border-radius: var(--r-xs);
}
.vf-banner-repo {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}
.vf-banner-deck {
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 12px;
}
.vf-banner-pitch {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--ok);
}
.vf-banner-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--sub);
}
.vf-badges {
  display: flex;
  gap: 6px;
}
.vf-bb {
  font-size: 11px;
  background: var(--chip);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* First Plate (내 첫 상) 4-Card Grid */
.fp-sec {
  margin-top: 8px;
}
.fp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.fp-head h2 {
  font-size: 18px;
  font-weight: 700;
}
.fp-sub {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 14px;
}
.fp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.fp-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.fp-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.fp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.fp-repo {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.fp-vel {
  font-size: 12px;
  font-weight: 600;
  color: var(--sp3);
  display: flex;
  align-items: center;
  gap: 2px;
}
.fp-one {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
}
.fp-depth {
  font-size: 12px;
  color: var(--ink);
  background: var(--bg);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  margin-top: auto;
  line-height: 1.5;
}
.fp-depth-lb {
  display: inline-block;
  font-weight: 700;
  margin-right: 6px;
}

/* Hero Card (오늘의 한 끼) */
.gb-hero {
  display: block;
  background: linear-gradient(135deg, var(--card) 0%, var(--acc-soft) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.gb-hero-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--card);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  display: inline-block;
  margin-bottom: 10px;
}
.gb-hero-repo {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.gb-hero-one {
  font-size: 15px;
  color: var(--sub);
  margin-bottom: 16px;
}
.gb-hero-stats {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

/* Feed Repository Cards */
.gb-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gb-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.gb-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.gb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.gb-repo {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.gb-stars {
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 4px;
}
.gb-card-one {
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 12px;
}
.gb-card-summary {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}
.gb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--sub);
}
.gb-chip {
  background: var(--chip);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* 깃도리 Try Strip */
.gb-try-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px dashed var(--accent);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: 13px;
}
.gb-try-strip-cmd {
  font-family: var(--font-mono);
  background: var(--chip);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  margin-left: 10px;
  font-weight: 600;
}

/* ========================================================
   Detail Page View
   ======================================================== */
.dt-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.dt-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dt-repo-header {
  margin-bottom: 8px;
}
.dt-repo-name {
  font-size: 16px;
  color: var(--sub);
  margin-bottom: 4px;
}
.dt-headline {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.dt-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.dt-h {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dt-prose {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.cp-block {
  margin-bottom: 16px;
}
.cp-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.cp-uses {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.cp-uses li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: bold;
}
.cp-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cp-feat {
  font-size: 12px;
  background: var(--chip);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

/* Quick Cook */
.cook-cmd {
  background: var(--ink);
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  position: relative;
  overflow-x: auto;
  margin-bottom: 12px;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Star History Chart (SVG) */
.star-chart {
  width: 100%;
  height: 100px;
  margin: 12px 0;
}

/* Side Rail */
.pc-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pc-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.pc-kv {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 12px;
  font-size: 13px;
}
.pc-kv dt {
  color: var(--sub);
}
.pc-kv dd {
  font-weight: 600;
  text-align: right;
}

/* Review Form & List */
.rv-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.rv-input {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
}
.rv-stars {
  display: flex;
  gap: 6px;
  font-size: 18px;
  cursor: pointer;
}
.rv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.rv-item {
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
}

/* Add Repo Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 28px;
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 860px) {
  .gb-deskgrid, .dt-detail-layout {
    grid-template-columns: 1fr;
  }
  .pc-aside, .pc-rail {
    display: none;
  }
  .fp-grid {
    grid-template-columns: 1fr;
  }
  .pc-topbar {
    padding: 8px 16px;
    flex-wrap: wrap;
  }
  .ls-topbar {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin: 8px 0 0 0;
  }
}

/* Toast Notification */
.gb-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: var(--card);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
  pointer-events: none;
}
.gb-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Empty State */
.gb-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  margin: 20px 0;
}

/* Load More Button */
.gb-load-more {
  text-align: center;
  padding: 24px 0 36px;
}
.gb-load-more-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 24px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.gb-load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sort Tabs & Feed Controls */
.gb-feed-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}
.gb-sort-tabs {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: var(--r-pill);
  gap: 2px;
}
.gb-sort-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-pill);
  color: var(--sub);
  background: transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gb-sort-btn:hover {
  color: var(--ink);
}
.gb-sort-btn.active {
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Rich Markdown Rendering in Prose */
.dt-prose {
  line-height: 1.75;
  font-size: 15px;
  color: var(--ink);
}
.dt-prose p {
  margin-bottom: 14px;
}
.dt-prose p:last-child {
  margin-bottom: 0;
}
.dt-prose strong {
  font-weight: 700;
  color: var(--ink);
}
.dt-prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  color: var(--accent);
}
.dt-prose pre {
  background: #18233c;
  color: #f1f5f9;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  margin: 14px 0;
  position: relative;
}
.dt-prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.dt-prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin: 12px 0;
  color: var(--sub);
  font-style: italic;
}
.dt-prose ul, .dt-prose ol {
  margin: 10px 0 14px 20px;
}
.dt-prose li {
  margin-bottom: 6px;
}
.dt-prose a:hover {
  color: var(--accent-hover);
}

/* Language Filter Chips */
.gb-lang-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.gb-lang-tabs::-webkit-scrollbar {
  display: none;
}
.gb-lang-chip {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.gb-lang-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.gb-lang-chip.active {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
  font-weight: 700;
}

/* Active Filter Badges */
.gb-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.gb-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--acc-soft);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.gb-filter-tag:hover {
  opacity: 0.85;
}

/* Search Form Clear Button */
.ls-form {
  position: relative;
}
.ls-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--sub);
  cursor: pointer;
  display: none;
  padding: 2px 6px;
  border-radius: var(--r-pill);
}
.ls-clear-btn:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

/* Detail View Action Buttons */
.dt-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}
.dt-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.dt-action-btn.bookmarked {
  background: #fef2f2;
  border-color: #f87171;
  color: #ef4444;
}

/* Related Repositories Grid ("이 밥상과 어울리는 다른 메뉴") */
.dt-related-sec {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.dt-related-sec h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dt-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.dt-related-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dt-related-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.dt-related-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dt-related-one {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dt-related-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--sub);
}

/* ========================================================
   Admin & Operator Dashboard Styles (/admin)
   ======================================================== */
.adm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.adm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.adm-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.adm-tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.adm-tab-btn:hover {
  color: var(--ink);
}
.adm-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.adm-kpi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.adm-kpi-lbl {
  font-size: 12px;
  color: var(--sub);
  font-weight: 600;
  margin-bottom: 6px;
}
.adm-kpi-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}
.adm-kpi-sub {
  font-size: 11px;
  color: var(--ok);
  margin-top: 4px;
}

.adm-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 24px;
}
.adm-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Benchmark Comparison Matrix Table */
.adm-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}
.adm-matrix-table th, .adm-matrix-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.adm-matrix-table th {
  background: var(--bg-soft);
  font-weight: 700;
}
.adm-matrix-table tr:hover {
  background: var(--bg-soft);
}

/* Terminal Log Window */
.adm-terminal {
  background: #0f172a;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  padding: 16px;
  border-radius: var(--r-sm);
  max-height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #1e293b;
}

/* Admin Data Table */
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-table th {
  padding: 10px 12px;
  border-bottom: 2px solid var(--line);
  text-align: left;
  color: var(--sub);
  font-weight: 600;
}
.adm-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.adm-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}
.adm-tag.ok {
  background: #ecfdf5;
  color: #059669;
}
.adm-tag.warn {
  background: #fffbeb;
  color: #d97706;
}
.adm-tag.info {
  background: #eff6ff;
  color: #2563eb;
}

/* ========================================================
   Phase 1: 1-Click Cloud Deploy Styles
   ======================================================== */
.gz-deploy-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-top: 14px;
}
.gz-deploy-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gz-deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.gz-deploy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.gz-deploy-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.gz-deploy-vercel {
  background: #000000;
  border: 1px solid #333333;
}
.gz-deploy-runpod {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  border: 1px solid #7c3aed;
}
.gz-deploy-railway {
  background: #180b26;
  border: 1px solid #a855f7;
  color: #f3e8ff;
}
.gz-deploy-cloudflare {
  background: #ea580c;
  border: 1px solid #f97316;
}

/* ========================================================
   Phase 2: Commercialization & Business Model Styles
   ======================================================== */
.gz-bm-sec {
  margin-top: 20px;
}
.gz-bm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.gz-bm-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.gz-bm-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gz-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  width: fit-content;
}
.gz-license-badge.permissive {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.gz-license-badge.copyleft {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.gz-license-badge.restrictive {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.gz-bm-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

/* ========================================================
   Architecture Inspector (B2B Audit & ADR Generator) Styles
   ======================================================== */
.insp-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 0 40px;
}
.insp-header {
  margin-bottom: 24px;
}
.insp-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 6px 0 8px;
}
.insp-desc {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
}
.insp-input-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.insp-score-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: white;
  border-radius: var(--r-lg);
  padding: 24px 30px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
  gap: 20px;
}
.insp-score-circle {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
}
.insp-score-val {
  font-size: 42px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
}
.insp-score-total {
  font-size: 16px;
  color: #94a3b8;
}
.insp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.insp-metric-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.insp-metric-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.insp-metric-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.insp-detail-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 24px;
}
.insp-pre {
  background: #090d16;
  color: #f1f5f9;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 12px 0;
}
@media (max-width: 768px) {
  .insp-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   gitdori PRO Features & Pricing / Quota Design System
   ======================================================== */

/* Quota Indicator Badge in Topbar */
.quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sub);
}
.quota-badge.is-pro {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(202, 138, 4, 0.05) 100%);
  border-color: rgba(234, 179, 8, 0.4);
  color: #ca8a04;
}
.dark .quota-badge.is-pro {
  color: #facc15;
}

/* Pro Pricing Page Styles */
.pro-page-hero {
  text-align: center;
  padding: 48px 24px 36px;
  max-width: 900px;
  margin: 0 auto;
}
.pro-page-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--ink);
}
.pro-page-desc {
  font-size: 15px;
  color: var(--sub);
  line-height: 1.6;
}
.pro-switch-wrap {
  display: inline-flex;
  background: var(--chip);
  padding: 4px;
  border-radius: var(--r-pill);
  margin: 24px auto 0;
  border: 1px solid var(--line);
}
.pro-switch-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-pill);
  color: var(--sub);
  transition: all 0.2s;
}
.pro-switch-btn.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pro-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 16px;
}
.pro-tier-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pro-tier-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.pro-tier-card.popular {
  border: 2px solid #eab308;
  box-shadow: 0 10px 30px -10px rgba(234, 179, 8, 0.25);
}
.pro-pop-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #eab308;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.5px;
}
.pro-tier-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.pro-tier-desc {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 20px;
  min-height: 38px;
}
.pro-tier-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
}
.pro-tier-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
}
.pro-feature-list {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
  flex: 1;
}
.pro-feature-item {
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
}
.pro-feature-item::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
}

/* Battle & Matrix Styles */
.bt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.bt-item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.bt-item-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.bt-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}
.bt-matrix-table th, .bt-matrix-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.bt-matrix-table th {
  background: var(--bg);
  font-weight: 700;
}
.bt-matrix-table th.is-champ {
  background: rgba(234, 179, 8, 0.1);
  border-top: 3px solid #eab308;
}
.grade-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  background: var(--chip);
}
.grade-badge.a { background: #dcfce7; color: #166534; }
.grade-badge.b { background: #fef9c3; color: #854d0e; }
.grade-badge.c { background: #fee2e2; color: #991b1b; }

/* Monthly Issue Styles */
.monthly-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.monthly-cover-mast {
  border-bottom: 2px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.award-box {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 10px;
  border-left: 3px solid #eab308;
}

/* Projects & Workspace Styles */
.proj-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}
.proj-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.proj-repo-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}

/* Modal Backdrop */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}






