/* SSOM Link — 디자인 시스템 */
:root {
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --brand-3: #22d3ee;
  --lime: #a3e635;
  --danger: #f87171;
  --warn: #fbbf24;

  --bg: #090a11;
  --bg-2: #0d0f18;
  --panel: #12151f;
  --panel-2: #171b28;
  --panel-3: #1d2231;
  --border: #242a3b;
  --border-soft: #1c2130;
  --text: #e9ebf5;
  --text-2: #c3c8da;
  --muted: #8f97ae;
  --muted-2: #6b7288;

  --shadow: 0 24px 50px -28px rgba(0, 0, 0, .9);
  --shadow-soft: 0 10px 30px -18px rgba(0, 0, 0, .8);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 248px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-2: #eef0f8;
  --panel: #ffffff;
  --panel-2: #f8f9fd;
  --panel-3: #eef1f9;
  --border: #e3e6f0;
  --border-soft: #eceff6;
  --text: #141726;
  --text-2: #3a3f52;
  --muted: #636a80;
  --muted-2: #8a90a4;
  --shadow: 0 24px 50px -30px rgba(23, 30, 60, .35);
  --shadow-soft: 0 12px 26px -20px rgba(23, 30, 60, .4);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { display: block; }
::selection { background: #6366f155; }

/* ---------- 공통 ---------- */
.container { width: min(1180px, 100% - 48px); margin: 0 auto; }
.muted { color: var(--muted); }
.dim { color: var(--muted-2); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.hide { display: none !important; }
.grad-text {
  background: linear-gradient(100deg, #a5b4fc 0%, #c4b5fd 35%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="light"] .grad-text {
  background: linear-gradient(100deg, #4f46e5 0%, #7c3aed 45%, #0891b2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; font-weight: 650; font-size: 14px;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; box-shadow: 0 10px 24px -12px #6366f1cc;
}
.btn-primary:hover { box-shadow: 0 14px 28px -10px #6366f1dd; }
.btn-ghost { border-color: var(--border); background: var(--panel); color: var(--text-2); }
.btn-ghost:hover { border-color: #3a4258; background: var(--panel-2); }
.btn-quiet { color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.btn-quiet:hover { color: var(--text); background: var(--panel-2); }
.btn-danger { color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; border: 1px solid var(--border); color: var(--text-2);
  background: var(--panel-2); white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chip-threads { color: #c4b5fd; background: #8b5cf61c; border-color: #8b5cf63d; }
.chip-threads .dot { background: #a78bfa; }
.chip-instagram { color: #f9a8d4; background: #ec48991c; border-color: #ec48993d; }
.chip-instagram .dot { background: #f472b6; }
.chip-youtube { color: #fda4af; background: #f43f5e1c; border-color: #f43f5e3d; }
.chip-youtube .dot { background: #fb7185; }
.chip-kakao { color: #fcd34d; background: #f59e0b1c; border-color: #f59e0b3d; }
.chip-kakao .dot { background: #fbbf24; }
.chip-naver_blog { color: #6ee7b7; background: #10b9811c; border-color: #10b9813d; }
.chip-naver_blog .dot { background: #34d399; }
.chip-etc { color: var(--text-2); }
.chip-active { color: #86efac; background: #22c55e14; border-color: #22c55e3a; }
.chip-active .dot { background: #4ade80; }
.chip-inactive { color: var(--muted); }
.chip-inactive .dot { background: var(--muted-2); }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 0;
}
.card-title { font-size: 15px; font-weight: 700; margin: 0; }
.card-sub { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }
.card-body { padding: 18px 20px 20px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 11px; padding: 11px 13px; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  border-color: #6366f1aa; box-shadow: 0 0 0 3px #6366f122;
}
.textarea { min-height: 76px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
  linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.form-grid { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 랜딩 ---------- */
.landing { position: relative; overflow: hidden; }
.landing::before {
  content: ""; position: fixed; inset: -20% -10% auto; height: 780px; z-index: -1;
  background:
    radial-gradient(680px 380px at 18% 8%, #4f46e52e, transparent 70%),
    radial-gradient(620px 340px at 82% 0%, #06b6d42b, transparent 70%),
    radial-gradient(500px 300px at 55% 30%, #8b5cf61f, transparent 70%);
}
.landing::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: .35;
}
.nav {
  display: flex; align-items: center; gap: 26px; padding: 20px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand small { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--muted-2); display: block; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 550; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.hero { padding: 72px 0 36px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650;
  color: #c7d2fe; background: #6366f114; border: 1px solid #6366f140; padding: 6px 12px; border-radius: 999px;
}
html[data-theme="light"] .eyebrow { color: #4338ca; background: #6366f10f; }
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 #4ade8066; animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px #4ade8000; } 100% { box-shadow: 0 0 0 0 #4ade8000; } }
.hero h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.14; letter-spacing: -0.045em; margin: 20px 0 18px; font-weight: 800; }
.hero p.lead { font-size: 16.5px; color: var(--muted); max-width: 520px; margin: 0 0 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { display: flex; gap: 18px; margin-top: 22px; font-size: 12.5px; color: var(--muted-2); flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }

.hero-visual { position: relative; }
.mock {
  background: linear-gradient(160deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow);
  transform: perspective(1400px) rotate3d(1, -1, 0, 0deg);
}
.mock-top { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-3); }
.mock-title { margin-left: auto; font-size: 11px; color: var(--muted-2); letter-spacing: .08em; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-stat { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 11px 12px; }
.mock-stat span { font-size: 10.5px; color: var(--muted); display: block; }
.mock-stat b { font-size: 20px; letter-spacing: -0.03em; }
.mock-stat i { font-style: normal; font-size: 10.5px; color: #4ade80; font-weight: 700; }
.mock-chart { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; }
.mock-chart-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.float-card {
  position: absolute; right: -18px; bottom: -26px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.float-card .ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #8b5cf620; color: #c4b5fd; font-weight: 800; font-size: 12px; }
.float-card b { font-size: 13px; display: block; }
.float-card span { font-size: 11px; color: var(--muted); }

.logo-strip { padding: 34px 0 10px; border-bottom: 1px solid var(--border-soft); }
.logo-strip p { text-align: center; font-size: 12px; color: var(--muted-2); letter-spacing: .06em; margin: 0 0 16px; }
.logo-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding-bottom: 26px; }
.logo-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--border-soft); background: var(--panel); font-size: 13px; font-weight: 650; color: var(--text-2); }
.logo-pill .sq { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; color: #0b0c12; font-weight: 800; }

.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.035em; margin: 12px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: #6366f166; transform: translateY(-2px); }
.feature .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(140deg, #6366f126, #22d3ee1a); color: #a5b4fc; border: 1px solid #6366f133; }
.feature h3 { font-size: 15.5px; margin: 0 0 7px; }
.feature p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 24px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--border-soft); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 12px; font-weight: 800; color: #818cf8; letter-spacing: .1em;
}
.step h3 { font-size: 15px; margin: 8px 0 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px; justify-content: center; }
.price-card { padding: 26px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
.price-card.pro { border-color: #6366f188; background: linear-gradient(170deg, #6366f114, var(--panel) 55%); box-shadow: 0 20px 60px -40px #6366f1; }
.price-card h3 { margin: 0 0 4px; font-size: 15px; }
.price { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 2px; }
.price small { font-size: 13px; font-weight: 550; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.price-card li { display: flex; gap: 8px; align-items: flex-start; }
.price-card li svg { flex: none; margin-top: 3px; color: #4ade80; }

.footer { padding: 40px 0 60px; border-top: 1px solid var(--border-soft); color: var(--muted-2); font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 인증 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 480px; }
.auth-side {
  position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(700px 500px at 10% 0%, #4f46e533, transparent 70%),
    radial-gradient(600px 500px at 90% 100%, #06b6d422, transparent 70%), var(--bg-2);
  border-right: 1px solid var(--border-soft); overflow: hidden;
}
.auth-side .quote { font-size: 26px; line-height: 1.45; letter-spacing: -0.03em; font-weight: 750; max-width: 460px; }
.auth-side .quote em { font-style: normal; }
.auth-side .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.auth-side .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #22d3ee); display: grid; place-items: center; color: #fff; font-weight: 800; }
.auth-main { display: grid; place-items: center; padding: 32px 24px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 25px; letter-spacing: -0.035em; margin: 26px 0 8px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.auth-form { display: grid; gap: 14px; }
.auth-alt { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-alt a { color: #a5b4fc; font-weight: 650; }
.auth-error {
  display: none; padding: 11px 13px; border-radius: 10px; font-size: 13px;
  background: #ef444414; border: 1px solid #ef444440; color: #fca5a5;
}
.auth-error.show { display: block; }
.demo-hint { margin-top: 22px; padding: 12px 14px; border-radius: 11px; background: var(--panel-2); border: 1px dashed var(--border); font-size: 12px; color: var(--muted); }
.demo-hint b { color: var(--text-2); }

/* ---------- 앱 셸 ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-2); border-right: 1px solid var(--border-soft);
}
.sidebar .brand { padding: 6px 8px 20px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s;
}
.side-link svg { width: 17px; height: 17px; }
.side-link:hover { background: var(--panel-2); color: var(--text); }
.side-link.active { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.side-link .badge { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #6366f133; color: #c7d2fe; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.plan-card { padding: 13px; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(150deg, #6366f114, var(--panel)); }
.plan-card b { font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.plan-card p { font-size: 11.5px; color: var(--muted); margin: 4px 0 10px; line-height: 1.5; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; }
.user-chip:hover { background: var(--panel-2); }
.user-chip .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: linear-gradient(135deg, #6366f1, #22d3ee); color: #fff; flex: none; }
.user-chip .meta { min-width: 0; }
.user-chip b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; padding: 26px 30px 60px; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.topbar h1 { font-size: 22px; letter-spacing: -0.03em; margin: 0; }
.topbar .sub { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.mobile-brand { display: none; }
.seg { display: inline-flex; padding: 3px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.seg button.active { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 #ffffff0a inset, 0 2px 6px -4px #000; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: #3a4258; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat {
  position: relative; padding: 17px 18px; border-radius: 15px; border: 1px solid var(--border);
  background: var(--panel); overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; right: -30px; top: -40px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, #6366f11f, transparent 70%);
}
.stat .label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; margin: 7px 0 2px; line-height: 1.1; }
.stat .value small { font-size: 13px; font-weight: 650; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stat .foot { font-size: 11.5px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; row-gap: 3px; }
.delta { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; white-space: nowrap; flex: none; }
.delta.up { color: #86efac; background: #22c55e18; }
.delta.down { color: #fca5a5; background: #ef444418; }
.delta.flat { color: var(--muted); background: var(--panel-3); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-col { display: grid; gap: 16px; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 6px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.legend-item .sw { width: 9px; height: 9px; border-radius: 3px; }
.legend-item b { color: var(--text-2); font-weight: 650; }

.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid-line { stroke: var(--border-soft); stroke-width: 1; }
.chart-svg .axis-label { fill: var(--muted-2); font-size: 10px; }
.chart-svg .bar { fill: url(#barGrad); transition: opacity .15s; }
.chart-svg .bar:hover { opacity: .8; }
.chart-svg .bar-dim { fill: var(--panel-3); }
.donut-center { font-size: 20px; font-weight: 800; fill: var(--text); }
.donut-center-sub { font-size: 9.5px; fill: var(--muted); }
.axis-note { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted-2); margin-top: 4px; }

.empty {
  display: grid; place-items: center; text-align: center; gap: 10px; padding: 46px 20px; color: var(--muted);
}
.empty .emoji { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); font-size: 20px; }
.empty b { color: var(--text-2); font-size: 14px; }
.empty p { font-size: 12.5px; margin: 0; max-width: 300px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; font-size: 11px; letter-spacing: .04em; color: var(--muted-2); font-weight: 650;
  padding: 10px 12px; border-bottom: 1px solid var(--border-soft); white-space: nowrap;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--panel-2); }
.link-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.link-name .glyph {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--panel-3); border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 700;
}
.link-name b { display: block; font-size: 13px; font-weight: 650; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-name span { display: block; font-size: 11px; color: var(--muted-2); }
.slug-pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: #a5b4fc; background: #6366f10f; border: 1px solid #6366f133;
  padding: 3px 8px; border-radius: 7px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.row-actions .icon-btn { width: 29px; height: 29px; border-radius: 8px; border-color: transparent; background: transparent; }
.row-actions .icon-btn:hover { background: var(--panel-3); border-color: var(--border); }
.row-actions .icon-btn.danger:hover { color: var(--danger); border-color: #ef444455; background: #ef44440f; }

.toggle { width: 36px; height: 20px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--border); position: relative; transition: background .18s, border-color .18s; flex: none; }
.toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .18s, background .18s; }
.toggle.on { background: #22c55e26; border-color: #22c55e66; }
.toggle.on::after { transform: translateX(16px); background: #4ade80; }

.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 15px; height: 15px; }
.search .input { padding-left: 34px; height: 38px; }
.toolbar .select { height: 38px; width: auto; min-width: 120px; font-size: 13px; padding-top: 8px; padding-bottom: 8px; }

.detail-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.detail-head .linkbig { flex: 1; min-width: 240px; }
.detail-head h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.03em; }
.copybox {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 6px 6px 6px 12px; max-width: 520px;
}
.copybox code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #a5b4fc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copybox .btn { padding: 6px 10px; font-size: 11.5px; }

.breakdown { display: grid; gap: 14px; }
.bd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.bd-row .name { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; min-width: 0; }
.bd-row .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-row .val { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-row .val b { color: var(--text); }
.bd-track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.bd-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-3)); }

.chart-tip { position: fixed; pointer-events: none; z-index: 60; background: var(--panel-3); border: 1px solid var(--border); padding: 6px 9px; border-radius: 8px; font-size: 11px; box-shadow: var(--shadow); display: none; }

/* ---------- 모달 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: #05060bcc; backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); animation: rise .18s ease;
}
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 0; }
.modal-head h2 { font-size: 18px; margin: 0; letter-spacing: -0.03em; }
.modal-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 20px 24px; }
.modal-foot { display: flex; gap: 9px; justify-content: flex-end; padding: 0 24px 22px; }

.channel-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.channel-opt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-2); text-align: left; transition: border-color .15s, background .15s; }
.channel-opt b { font-size: 12.5px; }
.channel-opt span { font-size: 10.5px; color: var(--muted-2); }
.channel-opt:hover { border-color: #6366f166; }
.channel-opt.selected { border-color: #818cf8; background: #6366f114; box-shadow: 0 0 0 3px #6366f115; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--border); }
.switch-row .txt { flex: 1; }
.switch-row b { font-size: 13px; display: block; }
.switch-row span { font-size: 11.5px; color: var(--muted); }
.preview-url { font-size: 11.5px; color: var(--muted); background: var(--panel-2); border: 1px dashed var(--border); border-radius: 9px; padding: 9px 11px; word-break: break-all; }
.preview-url b { color: #a5b4fc; font-weight: 650; }

/* ---------- 토스트 ---------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 12px; font-size: 13px;
  background: var(--panel-3); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: toastIn .2s ease;
}
.toast.success { border-color: #22c55e55; }
.toast.error { border-color: #ef444466; }
.toast .ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.toast.success .ico { background: #22c55e26; color: #4ade80; }
.toast.error .ico { background: #ef444426; color: #f87171; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

/* ---------- 모바일 ---------- */
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 16px 16px 92px; }
  .mobile-brand { display: flex; }
  .mobile-brand .brand { font-size: 15px; }
  .mobile-brand img { width: 26px; height: 26px; }
  .topbar { flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
  .topbar h1 { font-size: 19px; }
  .topbar-actions { width: 100%; margin-left: 0; }
  .topbar-actions .btn { flex: 1; }
  .stat-grid { gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 24px; }
  .container { width: calc(100% - 32px); }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 15px; }
  .feature-grid, .steps, .pricing { grid-template-columns: 1fr; }
  .logo-row { gap: 8px; }
  .footer { flex-direction: column; }
  .grid-2 { grid-template-columns: 1fr; }
  .channel-picker { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
    background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
    padding: 7px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
  }
  .mobile-nav a { flex: 1; display: grid; place-items: center; gap: 2px; padding: 7px; border-radius: 11px; font-size: 10.5px; font-weight: 650; color: var(--muted); }
  .mobile-nav a.active { color: var(--text); background: var(--panel-3); }
  .mobile-nav svg { width: 19px; height: 19px; }
  table.data th, table.data td { padding: 10px 8px; }
  .link-name b { max-width: 150px; }
  .detail-head h2 { font-size: 17px; }
}

/* ---------- 추가 컴포넌트 ---------- */
.donut-wrap { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 560px) { .donut-wrap { grid-template-columns: 1fr; } }
.skeleton {
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel-3) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: shimmer 1.35s ease infinite; border-radius: 14px;
  border: 1px solid var(--border-soft);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.chart-tip { display: none !important; }

/* ---------- 오버플로 방지 ---------- */
.dash-grid, .dash-grid > *, .dash-col, .stat-grid, .stat-grid > *, .card { min-width: 0; }
.table-wrap { max-width: 100%; }
.table-wrap table.data { min-width: 520px; }
.recent-table { min-width: 0 !important; }
.recent-table .link-name b { max-width: 170px; }
.nowrap { white-space: nowrap; }
.recent-table th:last-child, .recent-table td:last-child { padding-right: 4px; }
@media (max-width: 820px) {
  .table-wrap table.data { min-width: 560px; }
  .recent-table { min-width: 0 !important; }
  .recent-table .link-name b { max-width: 118px; }
  .recent-table .link-name span { display: none; }
}

.bd-label { font-size: 10.5px; letter-spacing: .08em; font-weight: 750; color: var(--muted-2); margin: 0 0 8px; }

/* ============================================================
 * v2 — 플랜 한도 · 광고 · QR · GA4 · 잠금 화면
 * ========================================================== */
.quota-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--panel);
  color: var(--text-2); font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.quota-chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.quota-chip:hover { border-color: #6366f188; }
.quota-chip.full { border-color: #ef444466; background: #ef444414; color: #fca5a5; }
.quota-chip.full b { color: #fecaca; }
.quota-chip.ok { color: var(--muted); }
.chip-upgrade { color: #ddd6fe; background: #7c3aed22; border-color: #7c3aed55; }

.notice {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between;
  padding: 10px 14px; margin-bottom: 16px; border-radius: 12px; font-size: 12.5px;
  background: #f59e0b12; border: 1px solid #f59e0b3d; color: #fcd34d;
}
.notice span { display: inline-flex; align-items: center; gap: 7px; }

.ad-card { position: relative; padding: 16px 16px 12px; border-style: dashed; }
.ad-card .ad-label {
  position: absolute; right: 12px; top: 10px; font-size: 9.5px; letter-spacing: .14em;
  font-weight: 800; color: var(--muted-2);
}
.ad-promo { display: block; text-decoration: none; color: inherit; }
.ad-promo b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.ad-promo span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.ad-promo i { display: block; margin-top: 9px; font-style: normal; font-size: 12px; font-weight: 700; color: #a5b4fc; }
.ad-foot { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); font-size: 11px; color: var(--muted-2); }
.link-btn { color: #a5b4fc; font-weight: 650; font-size: 11px; text-decoration: underline; }

.upgrade .modal-head { padding-top: 24px; }
.plan-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pc-col {
  display: grid; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel-2); font-size: 11.5px; color: var(--muted);
}
.pc-col b { font-size: 12.5px; color: var(--text-2); margin-bottom: 3px; }
.pc-col.hi { border-color: #818cf8; background: #6366f114; color: var(--text-2); }
.pc-col.hi b { color: #c7d2fe; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.price-box { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); }
.price-box b { display: block; font-size: 17px; letter-spacing: -.03em; }
.price-box span { font-size: 11px; color: var(--muted); }
.price-box.hi { border-color: #6366f166; background: #6366f114; }
.upgrade-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--text-2); }
.upgrade-points li { display: flex; align-items: center; gap: 8px; }
.upgrade-points svg { color: #4ade80; flex: none; }

.mosaic { display: flex; align-items: flex-end; gap: 4px; height: 58px; margin: 18px auto 6px; max-width: 320px; opacity: .55; }
.mosaic i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #818cf8, #6366f133); }
.lock-emoji {
  width: 46px; height: 46px; margin: 2px auto 12px; border-radius: 14px; display: grid; place-items: center;
  background: #6366f11f; border: 1px solid #6366f155; color: #c7d2fe;
}
.lock-card { padding: 30px 24px; text-align: center; }
.lock-card h2 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.03em; }
.lock-card > p { font-size: 13px; color: var(--muted); max-width: 470px; margin: 0 auto; line-height: 1.7; }
.lock-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 0 6px; }
.lock-fade { position: relative; }
.lock-fade::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  backdrop-filter: blur(2px); background: linear-gradient(180deg, transparent 20%, var(--panel) 92%);
}
.lock-list { margin-top: 22px; text-align: left; }
.lock-row {
  display: flex; align-items: center; gap: 9px; padding: 10px 4px; border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--text-2);
}
.lock-row > span:not(.chip) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock-row b { font-variant-numeric: tabular-nums; }
.lock-chip {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; color: #fca5a5; background: #ef444418; border: 1px solid #ef444440;
}
.row-locked td { opacity: .78; }
.row-actions .icon-btn.locked { color: #fca5a5; border-color: #ef444444; background: #ef444410; }

.pin-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between;
  margin: 0 0 14px; padding: 10px 14px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--border);
}
.pin-info { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pin-info b { color: var(--text-2); }
.btn.is-on { border-color: #818cf8; color: #c7d2fe; background: #6366f114; }

.qr-modal .qr-box {
  display: grid; place-items: center; padding: 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
}
.qr-modal .qr-box svg { width: 100%; height: auto; max-width: 260px; }
.qr-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.qr-meta b { display: block; font-size: 13px; }
.qr-meta span { display: block; font-size: 11.5px; color: var(--muted-2); word-break: break-all; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.settings-grid .card:first-child { grid-column: 1 / -1; }
.ga4-status {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border);
}
.ga4-status > div { padding: 2px 0; }
.ga4-status span { font-size: 11px; color: var(--muted-2); display: block; }
.ga4-status b { font-size: 12px; color: var(--text-2); display: block; word-break: break-all; margin-top: 2px; }
.ga4-result { margin-top: 6px; }
.ga4-payload { margin-top: 10px; }
.ga4-payload pre {
  margin: 6px 0 0; padding: 12px; border-radius: 10px; background: #0b0d16; border: 1px solid var(--border);
  color: #a5b4fc; font-size: 11px; line-height: 1.6; overflow: auto; max-height: 220px;
}
.plan-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-facts > div { padding: 10px 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--border-soft); }
.plan-facts span { display: block; font-size: 11px; color: var(--muted-2); }
.plan-facts b { display: block; font-size: 13.5px; margin-top: 2px; }
.demo-plan-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.idea-list { margin: 6px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); line-height: 1.9; }

/* ---------- 출시 알림(Waitlist) ---------- */
.waitlist-box { margin-top: 18px; padding: 14px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--border-soft); }
.waitlist-box .bd-label { margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.waitlist-form { display: grid; gap: 10px; }
.waitlist-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.waitlist-row .input { height: 40px; }
.waitlist-plan { justify-self: start; }
.seg-sm button { padding: 5px 10px; font-size: 11.5px; }
.waitlist-note { font-size: 11.5px; line-height: 1.6; }
.waitlist-result:empty { display: none; }
.waitlist-ok {
  display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: #6ee7b7;
  background: #10b98116; border: 1px solid #10b98144; border-radius: 9px; padding: 9px 11px;
}

/* ---------- AI 연동(MCP) ---------- */
.mcp-tabs { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.mcp-path { font-size: 11px; color: var(--muted-2); margin-bottom: 6px; word-break: break-all; }
.mcp-config {
  margin: 0; padding: 12px; border-radius: 10px; background: #0b0d16; border: 1px solid var(--border);
  color: #a5b4fc; font-size: 11px; line-height: 1.6; overflow: auto; max-height: 260px;
  white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mcp-path + .mcp-config { margin-top: 0; }
#mcp-card .plan-facts code, .plan-facts code { font-size: 11.5px; color: var(--text-2); word-break: break-all; }

@media (max-width: 520px) {
  .waitlist-row { grid-template-columns: 1fr; }
}

.pricing-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.compare td:first-child { color: var(--text-2); }
.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.faq > div { padding: 18px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--panel-2); }
.faq b { font-size: 13px; display: block; margin-bottom: 6px; }
.faq p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

@media (max-width: 1080px) {
  .pricing-3, .faq { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar-actions .quota-chip { flex: none; }
  .plan-compare { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr; }
  .ga4-status { grid-template-columns: 1fr; }
  .plan-facts { grid-template-columns: 1fr; }
}
.sponsor-ad .sp-img { width: 100%; border-radius: 10px; margin: 4px 0 10px; display: block; }
.sponsor-ad .ad-promo b { color: var(--text); }
.sponsor-ad .ad-promo i { color: #67e8f9; }
