/* ── 변수 ────────────────────────────────────────────────────────── */
:root {
  --bg: #f2eadf;
  --panel: rgba(255, 252, 247, 0.84);
  --panel-solid: #fff9f2;
  --line: rgba(47, 63, 36, 0.13);
  --line-strong: rgba(47, 63, 36, 0.22);
  --text: #213024;
  --muted: #677465;
  --accent: #2f5a37;
  --accent-strong: #1f3e26;
  --accent-dim: rgba(47, 90, 55, 0.1);
  --sand: #c28b53;
  --sand-dim: rgba(194, 139, 83, 0.14);
  --danger: #9f3c32;
  --warning: #8b5a1a;
  --shadow-soft: 0 4px 24px rgba(39, 45, 28, 0.07);
  --shadow: 0 16px 56px rgba(39, 45, 28, 0.11);
  --shadow-strong: 0 24px 80px rgba(39, 45, 28, 0.16);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
}

/* ── 리셋 & 기본 ─────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(194, 139, 83, 0.26), transparent 32%),
    radial-gradient(circle at bottom right, rgba(47, 90, 55, 0.16), transparent 30%),
    linear-gradient(180deg, #f7f1e8 0%, #ece0cd 100%);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.1), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 26%);
}

body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }

/* ── 앱 쉘 ─────────────────────────────────────────────────────── */
.app-shell { min-height: 100dvh; padding-top: 72px; }

/* ── 헤더 ───────────────────────────────────────────────────────── */
.app-chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 60px;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(247, 241, 232, 0.8);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
  flex-shrink: 0;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
}

.app-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background 140ms, color 140ms;
}

.app-nav a:hover { background: rgba(47,90,55,0.08); color: var(--accent); }
.app-nav a.active { background: var(--accent-dim); color: var(--accent-strong); }

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.nav-spacer { flex: 1; }

.install-trigger {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 8px 14px;
}

/* ── 공통 레이아웃 ──────────────────────────────────────────────── */
.page-wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── 버튼 ───────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}

.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.button:active:not(:disabled) { transform: scale(0.98); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(31,62,38,0.28);
}

.button.primary:hover:not(:disabled) { box-shadow: 0 8px 24px rgba(31,62,38,0.35); }

.button.secondary {
  background: rgba(255,255,255,0.65);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.button.ghost {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(159,60,50,0.24);
}

.button.large { padding: 14px 28px; font-size: 1rem; }
.button.full { width: 100%; }

/* ── 폼 ─────────────────────────────────────────────────────────── */
label { display: grid; gap: 7px; font-weight: 600; font-size: 0.9rem; }

input, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 15px;
  background: rgba(255,255,255,0.75);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 140ms;
}
input:focus, select:focus { border-color: var(--accent); }

.checkbox { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.checkbox input { width: auto; }

/* ── 패널 ───────────────────────────────────────────────────────── */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2 { font-size: 1.05rem; font-weight: 700; }

/* ── 공통 텍스트 ────────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.muted { color: var(--muted); font-size: 0.88rem; }
.compact { margin-top: 8px; font-size: 0.83rem; }

.text-link { color: var(--accent-strong); font-size: 0.88rem; margin-top: 8px; display: inline-block; }

.message, .error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.message { background: var(--accent-dim); border: 1px solid rgba(47,90,55,0.18); }
.error { background: rgba(159,60,50,0.08); border: 1px solid rgba(159,60,50,0.18); color: var(--danger); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LANDING PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.landing-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ── 히어로 ─────────────────────────────────────────────────────── */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 260px;
}

.landing-hero-text { }

.landing-hero-text .eyebrow { margin-bottom: 12px; }

.landing-hero-text h1 {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text);
}

.landing-hero-text .hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 46ch;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── 히어로 오른쪽: 주요 특징 3개 ─────────────────────────────── */
.landing-features {
  display: grid;
  gap: 12px;
}

.feature-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  background: var(--accent-dim);
}

.feature-tile strong { display: block; font-size: 0.92rem; margin-bottom: 3px; }
.feature-tile span { font-size: 0.83rem; color: var(--muted); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LIVE FEED (랜딩 메인 훅)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.live-section {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.live-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.live-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-label-group strong { font-size: 1rem; font-weight: 700; }
.live-label-group span { font-size: 0.83rem; color: var(--muted); }

.live-dot-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(47,90,55,0.1);
  border: 1px solid rgba(47,90,55,0.18);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.live-dot-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.06em;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(47,90,55,0.4); }
  50% { opacity: 0.85; box-shadow: 0 0 0 5px rgba(47,90,55,0); }
}

.feed-list { padding: 10px 14px 14px; display: grid; gap: 6px; }

.feed-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  transition: background 120ms;
}

.feed-card:hover { background: rgba(255,255,255,0.75); }

.feed-status-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 1px;
}

.feed-status-dot.waiting {
  background: var(--sand);
}

.feed-info { flex: 1; min-width: 0; }

.feed-camp {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-detail {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(194,139,83,0.14);
  color: var(--warning);
  border: 1px solid rgba(194,139,83,0.22);
}

.status-tag.available {
  background: rgba(47,90,55,0.12);
  color: var(--accent-strong);
  border-color: rgba(47,90,55,0.2);
}

.feed-time { font-size: 0.75rem; color: var(--muted); }

.feed-empty {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.feed-empty-icon { font-size: 2.4rem; line-height: 1; }
.feed-empty strong { font-size: 1rem; }
.feed-empty .muted { max-width: 36ch; }

/* ── 랜딩 상태 스트립 (보상 활성 시) ───────────────────────────── */
.home-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(47,90,55,0.3);
  background: linear-gradient(135deg, rgba(47,90,55,0.92), rgba(31,62,38,0.88));
  color: white;
  flex-wrap: wrap;
}

.status-active-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-active-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-active-row .dot.on { background: #6de67e; }
.status-active-row .dot.off { background: rgba(255,255,255,0.35); animation: none; }

.status-active-text { font-weight: 700; font-size: 0.95rem; }
.status-active-sub { font-size: 0.82rem; opacity: 0.75; margin-top: 1px; }

.home-status-strip .button.secondary {
  background: rgba(255,255,255,0.18);
  color: white;
  border-color: rgba(255,255,255,0.3);
}

/* ── 사용 방법 (3단계) ──────────────────────────────────────────── */
.steps-section { text-align: center; }

.steps-title {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step-card {
  flex: 1;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.step-icon { font-size: 1.8rem; line-height: 1; }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 4px;
}

.step-card h3 { font-size: 0.95rem; font-weight: 700; }
.step-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

.step-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 1.2rem;
  margin-top: 40px;
}

/* ── 서버 감시 소개 ─────────────────────────────────────────────── */
.server-section { }

.server-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.server-card-text { padding: 32px 36px; }

.server-card-text h2 {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.server-card-text p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 46ch;
}

.server-features {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.server-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.server-features li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.server-card-visual {
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  align-self: stretch;
  background: linear-gradient(160deg, rgba(47,90,55,0.08), rgba(194,139,83,0.08));
  border-left: 1px solid var(--line);
}

.telegram-mockup {
  width: 100%;
  max-width: 160px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}

.tg-header {
  background: #2ca5e0;
  padding: 10px 12px;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tg-header::before {
  content: "✈";
  font-size: 1rem;
}

.tg-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; }

.tg-bubble {
  background: #f0f0f0;
  border-radius: 12px 12px 12px 2px;
  padding: 8px 10px;
  font-size: 0.7rem;
  line-height: 1.4;
}

.tg-bubble strong { display: block; color: #1f3e26; font-size: 0.75rem; margin-bottom: 2px; }
.tg-time { font-size: 0.65rem; color: #999; text-align: right; }

/* ── 랜딩 하단 인증 CTA ─────────────────────────────────────────── */
.landing-auth-section {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,0.3);
}

.landing-auth-section h2 {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.landing-auth-section p { color: var(--muted); margin-bottom: 20px; font-size: 0.92rem; }

.auth-cta-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── 스티키 하단 CTA (모바일) ───────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 14px 18px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: linear-gradient(0deg, rgba(247,241,232,0.97) 60%, transparent 100%);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.dashboard-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── 상단바 ─────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.topbar h1 {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}

.topbar .muted { font-size: 0.88rem; max-width: 56ch; }

.topbar-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: flex-start; padding-top: 4px; }

/* ── 상태 커맨드 카드 ────────────────────────────────────────────── */
.status-command {
  border: 1.5px solid rgba(47,90,55,0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.status-command-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(47,90,55,0.92), rgba(31,62,38,0.88));
  color: white;
}

.status-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.status-big-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-big-dot.on {
  background: #6de67e;
  box-shadow: 0 0 0 4px rgba(109,230,126,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-big-dot.off {
  background: rgba(255,255,255,0.35);
}

.status-label {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
  white-space: nowrap;
}

.status-metrics {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.metric { display: flex; flex-direction: column; gap: 3px; }
.metric-label { font-size: 0.72rem; opacity: 0.7; font-weight: 600; white-space: nowrap; }
.metric-value { font-size: 1.25rem; font-weight: 800; line-height: 1; }
.metric-value.highlight { color: #ffd97a; }

.status-command-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.5);
  border-top: 1px solid var(--line);
}

.status-command-actions-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-command-actions .muted { font-size: 0.83rem; }

/* ── 알림 리스트 ────────────────────────────────────────────────── */
.alerts-list {
  display: grid;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.alert-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.48);
  transition: background 120ms;
}

.alert-item.unread {
  border-color: rgba(47,90,55,0.32);
  background: rgba(221,237,215,0.7);
}

.alert-item strong { font-size: 0.92rem; font-weight: 700; }
.alert-item p { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.alert-item .alert-time { font-size: 0.78rem; color: var(--muted); white-space: nowrap; padding-top: 3px; }

.unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
}

/* ── 감시 목록 ─────────────────────────────────────────────────── */
.watch-list { display: grid; gap: 10px; }

.watch-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.watch-item-info strong { font-size: 0.92rem; font-weight: 700; }
.watch-item-info p { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.watch-item-info .watch-meta { font-size: 0.76rem; color: var(--muted); margin-top: 4px; }

.watch-mode-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 6px;
}

.watch-mode-badge.server {
  background: rgba(47,90,55,0.12);
  color: var(--accent-strong);
}

.watch-mode-badge.web {
  background: rgba(194,139,83,0.12);
  color: #6b4010;
}

.watch-item-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; }

/* ── 감시 추가 폼 ───────────────────────────────────────────────── */
.watch-form { display: grid; gap: 14px; }

/* ── 대시보드 2열 그리드 ─────────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
}

/* ── 인라인 액션 ─────────────────────────────────────────────────── */
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DISPLAY AD SLOT (카카오 애드핏 등)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ad-display-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
}

.ad-display-label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   AUTH PAGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100dvh - 72px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.auth-card {
  width: min(460px, 100%);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.auth-card h1 {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   AD CENTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ad-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  display: grid;
  gap: 20px;
}

.ad-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.ad-hero > div:first-child {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.ad-hero > div:first-child h1 {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 6px 0 12px;
}

.ad-hero > div:first-child .hero-copy { color: var(--muted); line-height: 1.65; }

.ad-status-card {
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: center;
  background: linear-gradient(145deg, rgba(33,69,43,0.92), rgba(23,47,29,0.88));
  color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ad-status-card > span,
.ad-status-card > p { color: rgba(255,255,255,0.8); font-size: 0.88rem; }

.ad-status-card > strong { font-size: 1.8rem; font-weight: 800; }

.ad-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ad-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.ad-card h2 { font-size: 1.1rem; margin: 6px 0 14px; }

.ad-preview {
  position: relative;
  min-height: 200px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(194,139,83,0.28), rgba(47,90,55,0.18)), rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  display: grid;
  align-content: end;
  gap: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.ad-preview::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(33,48,36,0.2);
}

.ad-badge {
  position: relative;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-action { width: 100%; }

.reward-steps { display: grid; gap: 10px; margin: 14px 0 16px; }

.reward-steps div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.54);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.app-mode-panel { margin-bottom: 8px; }

.feature-strip {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.feature-strip div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--line);
}

.feature-strip strong { display: block; margin-bottom: 6px; font-size: 0.92rem; }
.feature-strip span { font-size: 0.82rem; color: var(--muted); }

/* ── 광고 모달 ─────────────────────────────────────────────────── */
.rewarded-ad-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22,30,20,0.58);
  backdrop-filter: blur(8px);
}

.rewarded-ad-card {
  width: min(560px, 100%);
  border-radius: 28px;
  background: rgba(255,252,247,0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.rewarded-ad-header,
.rewarded-ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.rewarded-ad-header h2,
.rewarded-ad-header .panel h2 { font-size: 1rem; margin: 4px 0 0; }

.rewarded-ad-screen {
  min-height: 260px;
  padding: 26px;
  display: grid;
  align-content: end;
  gap: 10px;
  background: radial-gradient(circle at top right, rgba(224,170,99,0.22), transparent 28%),
    linear-gradient(160deg, rgba(47,90,55,0.95), rgba(23,48,29,0.88));
  color: white;
}

.rewarded-ad-brand {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 860px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
  }

  .landing-features { grid-template-columns: 1fr; }

  .server-card {
    grid-template-columns: 1fr;
  }

  .server-card-visual {
    display: none;
  }

  .steps-row {
    flex-direction: column;
    gap: 12px;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: -4px auto;
  }

  .sticky-cta { display: block; }

  .dash-grid { grid-template-columns: 1fr; }

  .status-command-main {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .status-metrics { gap: 20px; }

  .ad-hero, .ad-layout { grid-template-columns: 1fr; }

  .topbar { flex-direction: column; }
  .topbar-actions { width: 100%; justify-content: flex-start; }

  .rewarded-ad-header,
  .rewarded-ad-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .landing-shell { padding: 20px 0 100px; gap: 36px; }
  .landing-hero-text h1 { font-size: 1.7rem; }

  .app-chrome { padding: 0 14px; }
  .app-nav a { padding: 5px 9px; font-size: 0.82rem; }

  .status-command-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .status-indicator {
    flex-direction: row;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 12px;
  }

  .status-metrics { flex-wrap: wrap; gap: 16px 24px; }

  .metric-value { font-size: 1.1rem; }

  .server-card-text { padding: 22px 20px; }

  .feed-card { padding: 11px 12px; }
  .feed-camp { font-size: 0.88rem; }
}
