/* DAINO / 다이노 픽 — Nexon Lv1 Gothic */
@font-face {
  font-family: "NexonLv1Gothic";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON%20Lv1%20Gothic%20OTF%20Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "NexonLv1Gothic";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON%20Lv1%20Gothic%20OTF.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "NexonLv1Gothic";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON%20Lv1%20Gothic%20OTF%20Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-elevated: #252525;
  --border: #2d2d2d;
  --text: #f5f5f5;
  --text-secondary: #b3b3b3;
  --text-muted: #737373;
  --accent: #ff6b35;
  --accent-hover: #ff8555;
  --accent-light: rgba(255, 107, 53, 0.15);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.12);
  --warning: #f59e0b;
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --font: "NexonLv1Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  /* 비밀번호 필드 전용: 브랜드 폰트 미적용 (가독·보안 관행) */
  --font-password: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----- 키프레임 ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes barGrow {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 0.9;
  }
}

@keyframes loadingDots {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.3); }
  50% { box-shadow: 0 0 20px 2px rgba(255, 107, 53, 0.2); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes searchIdle {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(255, 107, 53, 0.08); }
}

@keyframes skeletonShine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes skeletonBarPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes dinoBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes dinoTail {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

* {
  box-sizing: border-box;
}

input[type="password"],
input[type="password"]::placeholder {
  font-family: var(--font-password) !important;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- Header ----- */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeIn 0.5s var(--ease-out);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.logo-ko {
  font-size: 1.05rem;
}

.logo-en {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.logo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.logo-dino {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.logo-dino-img {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  animation: dinoBob 2.8s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.25));
}

.logo:hover .logo-dino-img {
  animation-duration: 1.4s;
  filter: drop-shadow(0 4px 14px rgba(255, 107, 53, 0.45));
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}

.nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary-sm {
  background: var(--accent);
  color: #0d0d0d;
}

.btn-primary-sm:hover {
  background: var(--accent-hover);
}

/* ----- Brand bar ----- */
.brand-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  text-align: center;
}

.brand-bar-inner {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.brand-bar-inner strong {
  color: var(--accent);
  font-weight: 700;
}

.brand-bar-inner span {
  color: var(--text-muted);
}

.brand-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.brand-dino-print {
  width: 14px;
  height: 18px;
  background: radial-gradient(ellipse 45% 55% at 30% 25%, rgba(255, 107, 53, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 70% 28%, rgba(255, 107, 53, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 55% 70% at 50% 72%, rgba(255, 107, 53, 0.4) 0%, transparent 60%);
  opacity: 0.85;
  transform: rotate(-12deg);
}

.brand-dino-print--r {
  transform: rotate(18deg) scaleX(-1);
}

/* ----- Hero / Search ----- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg) 50%, #121810 100%);
  background-size: 200% 200%;
  padding: 3rem 1.5rem 4rem;
  animation: gradientShift 12s ease infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 12px 16px at 8% 20%, rgba(255, 107, 53, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 10px 14px at 11% 22%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 14px 18px at 9% 28%, rgba(255, 107, 53, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 12px 16px at 92% 55%, rgba(255, 107, 53, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 10px 14px at 89% 57%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 14px 18px at 91% 63%, rgba(255, 107, 53, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 11px 15px at 18% 78%, rgba(255, 107, 53, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 11px 15px at 85% 12%, rgba(255, 107, 53, 0.04) 0%, transparent 55%);
  background-size: 120px 140px, 120px 140px, 120px 140px, 140px 160px, 140px 160px, 140px 160px, 100px 120px, 100px 120px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  pointer-events: none;
  animation: footprintDrift 25s linear infinite;
}

@keyframes footprintDrift {
  0% { background-position: 0 0, 0 0, 0 0, 100px 80px, 100px 80px, 100px 80px, 40px 200px, -30px 60px; }
  100% { background-position: 80px 40px, 80px 40px, 80px 40px, 20px 120px, 20px 120px, 20px 120px, 120px 280px, 50px 100px; }
}

.hero-dino-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  color: var(--accent);
}

.hero-dino-deco--1 {
  width: min(42vw, 260px);
  height: min(42vw, 260px);
  top: 5%;
  right: -6%;
  background: url("/favicon.ico") no-repeat center / contain;
  animation: dinoTail 6s ease-in-out infinite;
}

.hero-dino-deco--2 {
  width: min(30vw, 200px);
  height: min(30vw, 200px);
  bottom: 6%;
  left: -5%;
  transform: scaleX(-1);
  background: url("/favicon.ico") no-repeat center / contain;
  animation: dinoTail 7s ease-in-out infinite reverse;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

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

/* ----- Products strip ----- */
.products-strip {
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.products-inner {
  max-width: 1100px;
}

.products-title {
  font-size: 1rem;
  text-align: center;
  margin: 0 0 1.5rem 0;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.products-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}

.product-card--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.2);
  padding-top: calc(1.25rem + 8px);
}

.product-card--active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) 10px,
    #c94a22 10px,
    #c94a22 12px,
    var(--accent-hover) 12px,
    var(--accent-hover) 22px,
    var(--accent) 22px,
    var(--accent) 24px
  );
  opacity: 0.95;
}

.product-card--soon {
  opacity: 0.85;
}

.product-code {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.product-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}

.product-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.products-footnote {
  text-align: center;
  margin: 1.5rem 0 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.report-product {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 0.5rem;
  vertical-align: middle;
}

.footer-logo {
  flex-direction: column;
  align-items: center;
}

.footer-slogan {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
}

.footer-dino {
  display: flex;
  justify-content: center;
  margin-bottom: 0.35rem;
  color: var(--accent);
  opacity: 0.5;
}

.footer-dino-img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 8px;
  animation: dinoBob 3.5s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
  color: var(--text);
  animation: fadeInUp 0.8s var(--ease-out) 0.08s both;
}

/* 메인 랜딩: 제목 → 슬로건 세로 배치 */
.hero-heading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hero-title--landing {
  margin: 0;
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-slogan-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  text-align: center;
}

.hero-slogan-block .hero-slogan-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.hero-slogan-block .hero-slogan-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hero-heading-block + .hero-desc,
.hero-heading-block + .landing-desc {
  margin-top: 1.5rem !important;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 0 2rem 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.18s both;
}

.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.28s both;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.search-box:focus-within {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent);
  transform: translateY(-2px);
  animation: none;
}

.search-box.idle {
  animation: searchIdle 4s ease-in-out infinite;
}

.search-main {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-input:focus-visible,
.option-item select:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

.search-hint {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: fadeIn 0.5s var(--ease-out) 0.5s both;
}

.search-input {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn-search {
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: transform 0.2s var(--ease-spring), background 0.2s, box-shadow 0.2s;
}

.btn-search:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn-search:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-search:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-search.loading {
  pointer-events: none;
  animation: pulse 1.2s ease-in-out infinite;
}

.search-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.option-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.option-item select {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.option-item select:hover {
  border-color: var(--text-muted);
}

.option-item select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.search-status {
  margin: 0.75rem 0 0 0;
  font-size: 0.9rem;
  min-height: 1.25rem;
}

.search-status.loading {
  color: var(--accent);
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

.search-status.error {
  color: var(--error);
}

.search-status.success {
  color: var(--success);
}

/* ----- Report Section ----- */
.report-section {
  padding: 2rem 1.5rem 4rem;
  flex: 1;
}

.report-section.is-visible {
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.report-header {
  margin-bottom: 1.5rem;
}

.report-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.report-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.report-state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.report-state.pending,
.report-state.running {
  background: var(--accent-light);
  color: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.report-state.done {
  background: var(--success-bg);
  color: var(--success);
  animation: fadeIn 0.4s var(--ease-out);
}

.report-state.failed {
  background: var(--error-bg);
  color: var(--error);
}

/* ----- Report Loading (Skeleton) ----- */
.report-loading {
  margin-top: 0.5rem;
}

.skeleton-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.skeleton-line {
  height: 0.875rem;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--border) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShine 1.8s ease-in-out infinite;
  margin-bottom: 0.75rem;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

.skeleton-line.w30 { width: 30%; }
.skeleton-line.w25 { width: 25%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w50 { width: 50%; }

.skeleton-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.skeleton-table {
  margin-top: 1rem;
}

.skeleton-row {
  height: 2.5rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--border) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShine 1.8s ease-in-out infinite;
}

.skeleton-row:nth-child(2) { animation-delay: 0.2s; }
.skeleton-row:nth-child(3) { animation-delay: 0.4s; }
.skeleton-row:nth-child(4) { animation-delay: 0.6s; }
.skeleton-row:nth-child(5) { animation-delay: 0.8s; }

.skeleton-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 140px;
  margin-top: 1rem;
}

.skeleton-bar {
  flex: 1;
  min-width: 12px;
  height: var(--h, 50%);
  border-radius: 6px 6px 0 0;
  background: var(--bg-elevated);
  animation: skeletonBarPulse 1.2s ease-in-out infinite;
}

.skeleton-bar:nth-child(odd) { animation-delay: 0.3s; }

/* ----- Dashboard / KPI ----- */
.dashboard {
  margin-top: 0;
}

.kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 107, 53, 0.3);
}

.dashboard.is-visible .kpi-card:nth-child(1) { animation: fadeInUp 0.5s var(--ease-out) 0.1s both; }
.dashboard.is-visible .kpi-card:nth-child(2) { animation: fadeInUp 0.5s var(--ease-out) 0.2s both; }
.dashboard.is-visible .kpi-card:nth-child(3) { animation: fadeInUp 0.5s var(--ease-out) 0.3s both; }

.kpi-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
}

.kpi-card:hover .kpi-value {
  transform: scale(1.05);
}

.kpi-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 0.15rem;
}

.kpi-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
}

/* ----- Panel / Table ----- */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dashboard.is-visible .panel {
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.dashboard.is-visible .panel:nth-of-type(1) { animation-delay: 0.35s; }
.dashboard.is-visible .panel:nth-of-type(2) { animation-delay: 0.45s; }

.panel-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.panel-head h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.panel-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.panel-body {
  padding: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  animation: fadeInUp 0.4s var(--ease-out) both;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.data-table tbody tr:nth-child(n+6) { animation-delay: 0.3s; }

.data-table tbody tr:hover {
  background: var(--bg-elevated);
}

.data-table tbody tr {
  transition: background 0.2s var(--ease-out);
}

.data-table .rank {
  font-weight: 600;
  color: var(--text-muted);
  width: 4rem;
}

/* ----- AI 인사이트 ----- */
.ai-insight-panel {
  border-color: rgba(255, 107, 53, 0.25);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 107, 53, 0.04) 100%);
}

.ai-insight-head h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-insight-head h3::before {
  content: "";
  width: 6px;
  height: 1em;
  border-radius: 3px;
  background: var(--accent);
}

.ai-insight-body {
  padding: 1.25rem;
}

.ai-insight-placeholder {
  text-align: center;
  padding: 1rem 0;
}

.ai-insight-placeholder p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
}

.btn-ai {
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.2s;
}

.btn-ai:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.ai-insight-content {
  padding: 0.25rem 0;
}

.ai-insight-summary {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0 0 0.75rem 0;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent);
}

.ai-insight-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.ai-insight-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ai-insight-loading .loading-dots {
  margin-left: 0;
}

/* ----- Trend Chart ----- */
.trend-chart {
  min-height: 220px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.trend-chart .bars-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  min-height: 160px;
}

.trend-bar {
  flex: 1;
  min-width: 12px;
  background: linear-gradient(180deg, var(--accent) 0%, #e55a2b 100%);
  border-radius: 6px 6px 0 0;
  opacity: 0.9;
  transform-origin: bottom;
  animation: barGrow 0.6s var(--ease-spring) both;
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.trend-bar:hover {
  opacity: 1;
  transform: scaleY(1.05);
}

.trend-labels {
  display: flex;
  gap: 6px;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trend-labels span {
  flex: 1;
  min-width: 12px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin-bottom: 0.75rem;
}

.footer-brand .logo-text {
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----- 메인 랜딩 ----- */
.page-landing .header-inner--landing {
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav--landing {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

/* 랜딩 네비: 서비스 링크와 계정 영역 구분 */
.nav--landing .nav-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  padding-right: 1.5rem;
  margin-right: 1.25rem;
  border-right: 1px solid var(--border);
}

.nav--landing .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}

.nav--landing .nav-links a:hover {
  color: var(--accent);
}

.nav--landing .nav-auth-area {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* 상단 Nav: 간단 계정 칩 */
.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.55);
  color: var(--text);
}

.nav-user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 107, 53, 0.25);
}

.nav-user-chip .nav-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* 상단 Nav: 드롭다운 계정 메뉴 */
.nav-user-dropdown {
  display: inline-flex;
  align-items: center;
  position: relative;
}

/* display 유틸 클래스가 있으면 [hidden]만으로는 숨겨지지 않음 */
.nav-user-dropdown[hidden],
#nav-auth-link[hidden] {
  display: none !important;
}

.nav-user-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.55);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}

.nav-user-button {
  border-color: rgba(255, 107, 53, 0.35);
}

.nav-user-button:hover {
  border-color: rgba(255, 107, 53, 0.6);
}

.nav-user-button .nav-user-name {
  color: var(--accent);
  font-size: 0.95rem;
}

.nav-user-button img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 107, 53, 0.25);
}

.nav-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.nav-user-caret {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1;
}

.nav-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 200px;
  padding: 0.5rem;
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.nav-user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.nav-user-menu-item:hover {
  background: rgba(255, 107, 53, 0.12);
}

.nav-user-menu-btn {
  font-family: var(--font);
}

/* 랜딩 헤더: 모바일 햄버거 메뉴 (nav-landing-mobile.js가 버튼·백드롭 삽입) */
.nav-landing-burger {
  display: none;
}

.nav-landing-burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-landing-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-landing-backdrop.is-visible {
  display: block;
}

body.nav-landing-menu-open {
  overflow: hidden;
}

body.nav-landing-menu-open .site-header {
  z-index: 200;
}

@media (max-width: 767px) {
  /* 패널(.nav)이 z-index만 높고 같은 줄 위로 겹치면 햄버거가 가려짐 → 버튼을 위에 둠 */
  .nav-landing-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
  }

  .nav-landing-burger:hover {
    border-color: rgba(255, 107, 53, 0.55);
    color: var(--accent);
  }

  .nav-landing-burger-icon {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }

  .nav-landing-burger[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--accent);
    z-index: 180;
  }

  .header-inner--landing {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 160;
  }

  .header-inner--landing .logo {
    flex: 1;
    min-width: 0;
  }

  .header-inner--landing .nav.nav--landing {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.6rem 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.3s var(--ease-out),
      opacity 0.22s var(--ease-out),
      visibility 0.22s;
  }

  /* overflow:auto 는 absolute 인 .nav-user-menu 를 잘라 펼쳐도 항목이 안 보임 */
  .header-inner--landing .nav.nav--landing.is-open {
    z-index: 170;
    max-height: min(90vh, 40rem);
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-inner--landing .nav--landing .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    border-right: none;
    margin: 0;
    padding: 0 0 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .header-inner--landing .nav--landing .nav-links a {
    display: block;
    padding: 0.65rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .header-inner--landing .nav--landing .nav-links a:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
  }

  .header-inner--landing .nav--landing .nav-auth-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }

  .header-inner--landing #nav-auth-link {
    display: block;
    text-align: center;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-weight: 600;
  }

  .header-inner--landing .nav-user-button {
    width: 100%;
    justify-content: center;
  }

  .header-inner--landing .nav-user-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner--landing .nav-user-menu {
    right: auto;
    left: 0;
    min-width: 100%;
    top: calc(100% + 0.35rem);
  }
}

@media (min-width: 768px) {
  .nav-landing-backdrop.is-visible {
    display: none !important;
  }

  body.nav-landing-menu-open {
    overflow: unset;
  }

  body.nav-landing-menu-open .site-header {
    z-index: 100;
  }
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero--landing {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 50vh;
  padding: 4rem 1.5rem;
}

.landing-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  border: 1px solid rgba(255, 107, 53, 0.35);
}

.landing-title {
  margin-bottom: 1rem;
}

.landing-desc {
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.landing-desc strong {
  color: var(--accent);
}

.landing-note {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.landing-desc--hero {
  max-width: 36rem;
}

.landing-desc--hero strong {
  color: var(--accent);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.landing-hero-actions--footer {
  margin-top: 1.25rem;
}

.hero--landing {
  flex: none;
  min-height: auto;
  padding: 3rem 1.5rem 2.5rem;
}

.landing-section-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-section-title {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.landing-section-lead {
  text-align: center;
  margin: 0 0 1.75rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.landing-section-lead strong {
  color: var(--text);
}

.landing-pillars {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.landing-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.landing-pillar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  text-align: left;
}

.landing-pillar-card--accent {
  border-color: rgba(255, 107, 53, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.12);
}

.landing-pillar-kicker {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.landing-pillar-heading {
  margin: 0 0 0.65rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.landing-pillar-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.landing-pillar-strong {
  color: var(--accent);
  font-weight: 700;
}

.landing-flow {
  padding: 2.75rem 0 3.25rem;
  border-top: 1px solid var(--border);
}

.landing-flow-list {
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 40rem;
}

.landing-flow-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.landing-flow-step {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.landing-flow-step--accent {
  background: var(--accent-light);
  border-color: rgba(255, 107, 53, 0.45);
  color: var(--accent);
}

.landing-flow-item-title {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.landing-flow-item-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.landing-bottom-cta {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
}

.landing-bottom-cta-inner {
  text-align: center;
}

.landing-bottom-cta-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.landing-bottom-cta-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ----- 다이노 뷰 데모 배너 ----- */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(90deg, #7c2d12 0%, var(--accent) 50%, #c2410c 100%);
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.demo-banner strong {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.demo-banner em {
  font-style: normal;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-inline {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 0.25rem;
}

.page-daino-view .site-header {
  top: 0;
}

.footer-copy a {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ----- 인증 · 마이페이지 (UI) ----- */
.page-auth,
.page-mypage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-auth .site-header,
.page-mypage .site-header {
  top: 0;
  flex-shrink: 0;
  z-index: 120;
}

.auth-main,
.mypage-main {
  flex: 1;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem;
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.auth-card--wide {
  max-width: 480px;
}

.auth-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.auth-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1.75rem 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.form-row-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-row-check input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.form-row-check label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.form-row-check a {
  color: var(--accent);
}

.btn-auth-primary {
  width: 100%;
  padding: 0.875rem 1.25rem;
  margin-top: 0.25rem;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.2s;
}

.btn-auth-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.auth-footer-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 1.25rem 0 0 0;
}

.auth-footer-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-sns-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1rem 0;
}

.btn-sns {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, opacity 0.2s;
  margin-bottom: 0.65rem;
  text-decoration: none;
}

.btn-sns:hover,
.btn-sns:visited,
.btn-sns:focus,
.btn-sns:focus-visible {
  text-decoration: none;
}

.btn-sns:last-of-type {
  margin-bottom: 0;
}

.btn-sns:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-sns:active {
  transform: translateY(0);
}

.btn-sns .sns-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.btn-sns-google {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}

.btn-sns-google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
}

.btn-sns-kakao {
  background: #fee500;
  color: #191919;
  border-color: #f0d800;
}

.btn-sns-kakao:hover {
  background: #ffe812;
}

.auth-demo-tag {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.auth-card--sns-only .btn-sns--lead {
  margin-top: 0.5rem;
}

.auth-sns-policy {
  margin: 1.25rem 0 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.nav-link--active {
  color: var(--accent) !important;
}

/* 로그인: 사이트 UI 유지 + 본문은 모달(팝업) */
.page-login-modal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-modal-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  min-height: 280px;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 107, 53, 0.08);
  padding: 1.75rem 1.5rem 1.5rem;
  animation: fadeInUp 0.4s var(--ease-out) both;
}

.login-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.login-modal__close:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.login-modal__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 1.5rem 0;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.login-modal__error {
  margin: -0.75rem 1.5rem 1rem 1.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #fecaca;
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  text-align: left;
}

.login-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-modal .btn-sns {
  margin-bottom: 0;
  height: 44px;
  padding: 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: -0.02em;
}

.login-modal .btn-sns .sns-icon {
  width: 18px;
  height: 18px;
}

.link-forgot {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  margin: -0.35rem 0 0 0;
}

.link-forgot a {
  color: var(--accent);
  text-decoration: none;
}

.link-forgot a:hover {
  text-decoration: underline;
}

/* 마이페이지 */
.mypage-layout {
  width: 100%;
  max-width: 560px;
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.mypage-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 520px) {
  .mypage-profile-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 1.25rem;
  }
}

.mypage-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  color: var(--accent);
}

.mypage-profile-body h1 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem 0;
}

.mypage-email {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.mypage-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
}

.mypage-sns-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0 0;
}

.mypage-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.mypage-panel h2 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mypage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mypage-list li {
  border-bottom: 1px solid var(--border);
}

.mypage-list li:last-child {
  border-bottom: none;
}

.mypage-list a,
.mypage-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.mypage-list a:hover,
.mypage-list button:hover {
  background: var(--bg-elevated);
}

.mypage-sns-status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mypage-sns-status.is-linked {
  color: var(--success);
}

.btn-logout {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-logout:hover {
  border-color: var(--error);
  color: var(--error);
}

/* ----- 구독 관리 페이지 (예시) ----- */
.subscription-layout {
  max-width: 42rem;
}

.subscription-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.subscription-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
}

.subscription-panel .subscription-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.subscription-plan-card {
  padding: 1.25rem;
}

.subscription-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}

.subscription-plan-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.subscription-plan-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.subscription-plan-meta a {
  color: var(--accent);
  text-decoration: none;
}

.subscription-plan-meta a:hover {
  text-decoration: underline;
}

.subscription-stats {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
}

.subscription-stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.subscription-stats li:last-child {
  border-bottom: none;
}

.subscription-stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.subscription-stat-value {
  font-size: 0.9rem;
  color: var(--text);
}

.subscription-stat-value strong {
  color: var(--accent);
}

.subscription-history-wrap {
  padding: 0 0 0.5rem 0;
  overflow-x: auto;
}

.subscription-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.subscription-history-table th,
.subscription-history-table td {
  padding: 0.55rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.subscription-history-table th {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.subscription-history-table tbody tr:last-child td {
  border-bottom: none;
}

.subscription-history-empty {
  padding: 1rem 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----- 라이선스 관리 페이지 ----- */
.license-layout {
  max-width: 48rem;
}

.license-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.license-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.license-desc strong {
  color: var(--text);
}

.license-actions {
  margin-bottom: 1.5rem;
}

.license-panel .license-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.license-table-wrap {
  overflow-x: auto;
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.license-table th,
.license-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.license-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.license-table td {
  color: var(--text);
}

.license-table tbody tr:last-child td {
  border-bottom: none;
}

.license-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.license-empty td {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem 1rem;
}

.license-table .license-key {
  font-family: var(--font-password);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.license-table .license-type-trial {
  color: var(--accent);
}

.license-table .license-type-subscription {
  color: var(--success);
}

.license-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0 0;
}

.license-note a {
  color: var(--accent);
  text-decoration: none;
}

.license-note a:hover {
  text-decoration: underline;
}

/* ----- 등록 기기 관리 페이지 ----- */
.page-devices .devices-layout {
  max-width: 40rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-devices .devices-page-header {
  margin-bottom: 0;
}

.page-devices .devices-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.65rem 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-devices .devices-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}

.page-devices .devices-desc--secondary {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.page-devices .devices-desc strong {
  color: var(--text);
  font-weight: 600;
}

.page-devices .devices-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-devices .devices-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-devices .devices-card-head {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.page-devices .devices-card-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-devices .devices-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.page-devices .devices-card-lead {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0 0;
  line-height: 1.5;
}

.page-devices .devices-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.page-devices .devices-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-devices .devices-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.page-devices .devices-label-req {
  font-weight: 500;
  color: var(--accent);
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.page-devices .devices-label-opt {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.page-devices .devices-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
}

.page-devices .devices-input:focus {
  outline: none;
  border-color: rgba(255, 107, 53, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.12);
}

.page-devices .devices-field-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.page-devices .devices-register-actions {
  margin-top: 0.25rem;
}

.page-devices .devices-register-btn {
  width: 100%;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
}

@media (min-width: 480px) {
  .page-devices .devices-register-btn {
    width: auto;
    min-width: 11rem;
  }
}

.page-devices .devices-error {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.25);
}

.page-devices .devices-quota-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d0d0d;
  background: var(--accent);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.page-devices .devices-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.page-devices .devices-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.page-devices .devices-table th,
.page-devices .devices-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

/* 빈 목록 행은 하나의 td(colspan)만 있어 :first-child가 그 셀에도 적용되면 문구가 한 줄로만 펼쳐져 가로 스크롤이 난다 */
.page-devices .devices-table tbody tr:not(.devices-empty) td:first-child {
  white-space: nowrap;
}

.page-devices .devices-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
}

.page-devices .devices-col-action {
  width: 5rem;
  text-align: right;
}

.page-devices .devices-table tbody tr:last-child td {
  border-bottom: none;
}

.page-devices .devices-table .license-key {
  font-family: var(--font-password, ui-monospace, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  word-break: keep-all;
  display: inline-block;
}

.page-devices .device-id-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.page-devices .device-copy-btn {
  min-width: 2.9rem;
  height: 1.8rem;
  padding: 0 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.page-devices .device-copy-btn:hover {
  border-color: rgba(255, 107, 53, 0.55);
  color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
}

.page-devices .device-name-editor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 15rem;
}

.page-devices .device-name-input {
  flex: 1;
  min-width: 10rem;
  height: 2rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.84rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.page-devices .device-name-input::placeholder {
  color: var(--text-muted);
}

.page-devices .device-name-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
  background: rgba(255, 255, 255, 0.02);
}

.page-devices .device-rename-btn,
.page-devices .device-remove-btn {
  min-width: 3.1rem;
  height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
}

.page-devices .device-rename-btn:hover {
  border-color: rgba(255, 107, 53, 0.55);
  color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
}

.page-devices .device-remove-btn:hover {
  border-color: rgba(239, 68, 68, 0.5);
  color: #ff8b8b;
  background: rgba(239, 68, 68, 0.08);
}

.page-devices .devices-empty td {
  padding: 0;
  border-bottom: none;
  vertical-align: middle;
  white-space: normal;
}

.page-devices .devices-empty-inner {
  text-align: center;
  padding: 2.25rem 1.5rem;
  margin: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.page-devices .devices-empty-icon {
  display: block;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.page-devices .devices-empty-icon img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 8px;
}

.page-devices .devices-empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 0.35rem 0;
}

.page-devices .devices-empty-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.page-devices .devices-empty-text strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.page-devices .devices-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

.page-devices .devices-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.page-devices .devices-note a:hover {
  text-decoration: underline;
}

.btn-small {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

/* ----- 금액안내 페이지 ----- */
.pricing-layout {
  max-width: 56rem;
}

.pricing-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem 0;
  line-height: 1.5;
}

.pricing-block {
  margin-bottom: 2.5rem;
}

.pricing-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-block-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}

.pricing-trial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.pricing-trial-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.pricing-trial-desc strong {
  color: var(--accent);
}

.pricing-credit-info {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.pricing-credit-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.pricing-credit-desc strong {
  color: var(--text);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 0;
}

.pricing-block .pricing-cards {
  margin-top: 0.5rem;
}

.pricing-cards--three {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

@media (min-width: 900px) {
  .pricing-cards--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 구독 플랜 블록 안 할인 강조 */
.pricing-plan-promo {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.22) 0%, rgba(255, 107, 53, 0.06) 100%);
  border: 1px solid rgba(255, 107, 53, 0.5);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0 0.75rem 0;
}

.pricing-plan-promo-pct {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 107, 53, 0.35);
}

.pricing-plan-promo-pct-unit {
  font-size: 1.1rem;
  font-weight: 800;
  margin-left: 0.05em;
}

.pricing-plan-promo-body {
  flex: 1;
  min-width: 0;
}

.pricing-plan-promo-title {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-plan-promo-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-plan-promo-desc strong {
  color: var(--accent);
  font-weight: 800;
}

.pricing-load-error {
  font-size: 0.9rem;
  color: var(--accent, #ff6b35);
  margin: 0.5rem 0 0 0;
}

.pricing-vat-plan {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem 0;
}

.pricing-vat-plan strong {
  color: var(--text-secondary);
}

.pricing-discount-chip {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0d0d0d;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.35);
}

.pricing-card--featured .pricing-discount-chip {
  margin-top: 0.25rem;
}

.pricing-cards--lead {
  margin-bottom: 2.25rem;
}

.pricing-term-field {
  margin: 0 0 0.75rem 0;
}

.pricing-term-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 0.35rem 0;
  letter-spacing: 0.02em;
}

.pricing-term-select-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.pricing-term-select-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.pricing-card-price-dynamic {
  margin-bottom: 0.5rem;
}

.pricing-card-price-block {
  margin-bottom: 0.5rem;
}

.pricing-card-price-block .pricing-card-price {
  margin: 0 0 0.25rem 0;
}

.pricing-card-price-old {
  margin: 0 0 0.15rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-card-price--deal {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent);
}

.pricing-card-price-block .pricing-vat-note {
  margin: 0 0 0.75rem 0;
}

.pricing-vat-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: -0.35rem 0 0.75rem 0;
}

.pricing-card-badge.pricing-card-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-card-badge.pricing-card-badge--current {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0.38rem 0.75rem;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow: none;
}

.pricing-th-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pricing-compare-intro {
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.pricing-card--featured {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.2);
}

.pricing-card--current {
  border: 2px solid rgba(34, 197, 94, 0.75);
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.35),
    0 6px 24px rgba(34, 197, 94, 0.18);
}

.pricing-card--current.pricing-card--featured {
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.28), 0 0 0 1px rgba(255, 107, 53, 0.12);
}

.pricing-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.5rem;
  margin: 0 0 0.65rem 0;
  width: 100%;
}

.pricing-card-title-row .pricing-card-name {
  margin: 0;
  min-width: 0;
}

.pricing-card-title-meta {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  justify-self: end;
  min-width: 0;
}

/* .pricing-card-badge 기본이 absolute라 제목 줄 안 배지는 반드시 덮어씀 (단일 클래스보다 구체성 높음) */
.pricing-card-title-row .pricing-card-badge {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
}

.pricing-card-badge--inline {
  flex-shrink: 0;
}

.pricing-card-badge.pricing-card-badge--inline.pricing-card-badge--current {
  font-size: 0.72rem;
  padding: 0.28rem 0.55rem;
  box-shadow: none;
}

.pricing-discount-chip--inline {
  margin-bottom: 0;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  box-shadow: 0 1px 8px rgba(255, 107, 53, 0.28);
}

.pricing-card-title-meta .pricing-discount-chip {
  margin-bottom: 0;
}

.pricing-card-badge {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0d0d0d;
}

.pricing-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.pricing-card--credit .pricing-card-name {
  margin: 0 0 0.5rem 0;
}

.pricing-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 0.75rem 0;
}

.pricing-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

.pricing-card-features {
  list-style: none;
  margin: 0 0 0.75rem 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-card-features li {
  padding: 0.2rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-card-features li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-card-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
}

.pricing-cards--compact .pricing-card {
  min-width: 0;
}

.pricing-card--credit .pricing-card-price {
  margin-bottom: 0.75rem;
}

.pricing-card-save {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.75rem;
}

.pricing-card-cta {
  display: inline-block;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

button.pricing-card-cta {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.pricing-pay-loading {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.pricing-pay-loading.is-visible {
  display: flex;
}

.pricing-pay-loading-inner {
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pricing-change-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pricing-change-modal.is-open {
  display: flex;
}

.pricing-change-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.pricing-change-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  width: 100%;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.pricing-change-modal__title {
  margin: 0 0 0.65rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.pricing-change-modal__desc {
  margin: 0 0 0.85rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pricing-change-modal__list {
  margin: 0 0 1.1rem 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pricing-change-modal__list li {
  margin-bottom: 0.5rem;
}

.pricing-change-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-change-modal__actions .btn {
  width: 100%;
}

.pricing-change-modal__cancel {
  margin-top: 0.25rem;
}

.pricing-card-cta.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
  border-color: var(--accent);
}

.pricing-card-cta.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.pricing-card-cta.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.pricing-card-cta.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.pricing-note a {
  color: var(--accent);
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}

/* 요금안내 — 서비스별 기능 비교 테이블 */
.pricing-compare-block {
  margin-bottom: 2.5rem;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.pricing-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-compare-table th,
.pricing-compare-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-compare-table th {
  font-weight: 700;
  color: var(--text);
  background: var(--bg-elevated);
}

.pricing-compare-table th:first-child,
.pricing-compare-table td:first-child {
  text-align: left;
}

.pricing-compare-table .pricing-compare-service {
  font-weight: 500;
  color: var(--text);
  min-width: 12rem;
}

.pricing-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-compare-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.pricing-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.pricing-check--included {
  color: var(--success);
  font-weight: 600;
}

.pricing-check--included::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--success);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-check--excluded {
  color: var(--text-muted);
}

.pricing-check--excluded::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--border);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-check--limit {
  color: var(--accent);
  font-weight: 600;
}

.pricing-check--limit::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 공지사항 페이지 */
.page-notices .notices-page-layout {
  max-width: 720px;
  margin: 0 auto;
}

.notices-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.notices-page-lead {
  color: var(--muted, rgba(255, 255, 255, 0.65));
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.notices-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.notices-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
}

.notices-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.notices-filter-btn.active {
  border-color: var(--accent, #7c5cff);
  background: color-mix(in srgb, var(--accent, #7c5cff) 22%, transparent);
}

.notices-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.notices-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
}

.notices-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.notices-item__tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.notices-item__tag--notice {
  background: color-mix(in srgb, #5b8def 35%, transparent);
  color: #cfe0ff;
}

.notices-item__tag--update {
  background: color-mix(in srgb, #3ecf8e 35%, transparent);
  color: #d4f5e6;
}

.notices-item__date {
  font-size: 0.8rem;
  color: var(--muted, rgba(255, 255, 255, 0.55));
}

.notices-item__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.notices-item__summary {
  margin: 0 0 0.75rem;
  color: var(--muted, rgba(255, 255, 255, 0.72));
  font-size: 0.95rem;
  line-height: 1.55;
}

.notices-item__body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.notices-empty {
  text-align: center;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  padding: 2rem 1rem;
}

/* 다이노 에이전트 다운로드 페이지 */
.page-download-agent .mypage-main--download-agent {
  align-items: flex-start;
  padding-top: 1.75rem;
}

.agent-download-page {
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
  animation: fadeInUp 0.45s var(--ease-out) both;
}

.agent-download-page--guide-only {
  padding-bottom: 2rem;
}

.agent-download-hero {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.35rem 1.35rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 12%, var(--bg-card)) 0%,
    var(--bg-card) 48%,
    var(--bg-card) 100%
  );
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.agent-download-hero-mark {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.agent-download-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
}

.agent-download-hero-copy {
  min-width: 0;
}

.agent-download-eyebrow {
  margin: 0 0 0.4rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.agent-download-hero-title {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.agent-download-hero-tagline {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.agent-download-hero-tagline strong {
  color: var(--text);
  font-weight: 700;
}

.agent-download-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.agent-download-section {
  margin: 0;
}

.agent-download-section-title {
  margin: 0 0 0.65rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.agent-download-section-lead {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.agent-download-section-lead strong {
  color: var(--text);
  font-weight: 700;
}

.agent-download-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.agent-download-features-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.agent-download-features-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  position: relative;
}

.agent-download-features-icon::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.agent-download-features-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.agent-download-features-text strong {
  color: var(--accent);
  font-weight: 800;
}

.agent-download-section--download {
  margin: 0;
}

.agent-download-dl-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.agent-download-dl-card-head {
  padding: 1.1rem 1.35rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.agent-download-dl-card-title {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.agent-download-dl-card-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.agent-download-reco {
  margin: 0;
  padding: 0.75rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0d0d0d;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 55%, transparent) 0%,
    color-mix(in srgb, var(--accent) 18%, var(--bg-card)) 100%
  );
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
}

.agent-download-platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1.35rem;
}

@media (min-width: 720px) {
  .agent-download-platform-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.agent-download-platform-card {
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-download-platform-card--recommended {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.agent-download-platform-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.agent-download-platform-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.agent-download-platform-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0d0d0d;
}

.agent-download-panel {
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--bg-card);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.agent-download-meta {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 0.45rem 0;
  line-height: 1.45;
}

.agent-download-meta--version {
  font-weight: 700;
  color: var(--text);
}

.agent-download-meta--muted {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.agent-download-file-line {
  padding: 0.5rem 0.65rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  margin-bottom: 0.75rem;
}

.agent-download-notes {
  margin-top: 0.35rem;
}

.agent-download-subhead {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem 0;
}

.agent-download-notes-pre {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  max-height: 12rem;
  overflow: auto;
}

.agent-download-actions {
  margin-top: 1.15rem;
}

/* .btn 의 display 가 HTML hidden 을 덮어쓰는 경우 대비 */
.agent-download-actions .agent-download-btn[hidden] {
  display: none !important;
}

.agent-download-cta-msg {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.agent-download-meta--dim {
  color: var(--text-muted) !important;
  font-weight: 600 !important;
}

.agent-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 3rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.agent-download-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.95rem 0 0 0;
  line-height: 1.5;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.agent-download-hint--tight {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.78rem;
}

.agent-download-hint strong {
  color: var(--text-secondary);
}

.agent-download-error {
  margin: 0.85rem 0 0 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-sm);
}

.agent-download-error--full {
  margin: 0 1.35rem 1.25rem;
}

/* —— 프로그램 설치 가이드 (탭, 참고 UI 스타일) —— */
.agent-guide {
  margin-top: 0.35rem;
}

.agent-guide-title {
  margin: 0 0 1.15rem 0;
  font-size: clamp(1.32rem, 3.6vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
}

.agent-product-tabs {
  display: flex;
  gap: 0.65rem;
  margin: 0 auto 1.15rem;
  max-width: 24rem;
}

.agent-product-tab {
  flex: 1;
  padding: 0.78rem 1rem;
  min-height: 3.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.agent-product-tab:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
}

.agent-product-tab--active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-elevated));
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent);
}

.agent-guide-panel--soon {
  text-align: center;
  padding: 2rem 1.35rem 2.25rem;
  margin-bottom: 0;
}

.agent-guide-soon-badge {
  display: inline-block;
  margin: 0 0 0.85rem 0;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d0d0d;
  background: var(--accent);
  border-radius: 999px;
}

.agent-guide-soon-title {
  margin: 0 0 0.55rem 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.agent-guide-soon-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.agent-guide-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.agent-guide-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  padding: 0.72rem 0.85rem;
  min-height: 3rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.agent-guide-tab:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
}

.agent-guide-tab--active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-elevated));
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent);
}

.agent-guide-tab-icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.agent-guide-tab--active .agent-guide-tab-icon {
  color: var(--accent);
}

.agent-guide-tab-label {
  line-height: 1.2;
}

.agent-guide-tab-reco {
  width: 100%;
  flex-basis: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.agent-guide-panel {
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.agent-guide-panel-title {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.agent-guide-kw {
  color: var(--accent);
  font-weight: 800;
}

.agent-guide-dl-block {
  padding: 1rem 1.15rem;
  margin-bottom: 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.agent-guide-dl-actions .agent-guide-dl-btn[hidden] {
  display: none !important;
}

.agent-guide-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.85rem;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.agent-guide-dl-msg {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.agent-guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agent-guide-steps > li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.agent-guide-steps > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.agent-guide-steps > li:first-child {
  padding-top: 0;
}

.agent-guide-step-num {
  flex-shrink: 0;
  width: 1.72rem;
  height: 1.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  color: #0d0d0d;
  background: var(--accent);
  border-radius: 999px;
  line-height: 1;
}

.agent-guide-step-body {
  flex: 1;
  min-width: 0;
  font-size: 0.87rem;
  line-height: 1.62;
  color: var(--text-secondary);
  padding-top: 0.1rem;
}

.agent-guide-tips {
  margin: 1.1rem 0 0 0;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius-sm);
}

.agent-guide-tips li {
  margin-bottom: 0.45rem;
}

.agent-guide-tips li:last-child {
  margin-bottom: 0;
}

.agent-guide-error {
  margin: 0.75rem 0 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-sm);
}

@media (min-width: 560px) {
  .agent-guide-dl-btn {
    width: auto;
    min-width: 15rem;
  }

  .agent-guide-dl-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
  }
}

.agent-download-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: agent-step;
}

.agent-download-steps > li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.agent-download-steps > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.agent-download-steps > li:first-child {
  padding-top: 0;
}

.agent-download-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
}

.agent-download-step-body {
  min-width: 0;
  padding-top: 0.1rem;
}

.agent-download-step-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.agent-download-step-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.agent-download-step-text strong {
  color: var(--text);
  font-weight: 600;
}

.agent-download-section--env {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.agent-download-env-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.agent-download-env-list li {
  margin-bottom: 0.4rem;
}

.agent-download-env-list li:last-child {
  margin-bottom: 0;
}

.agent-download-env-list strong {
  color: var(--text);
  font-weight: 700;
}

@media (min-width: 560px) {
  .agent-download-hero {
    padding: 1.65rem 1.75rem;
    gap: 1.5rem;
  }

  .agent-download-btn {
    width: auto;
    min-width: 16rem;
  }

  .agent-download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .agent-download-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .agent-download-hero-copy {
    text-align: center;
  }
}

.landing-pillar-cta-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.landing-pillar-cta-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .header-inner:not(.header-inner--landing) {
    flex-wrap: wrap;
  }
  .header-inner:not(.header-inner--landing) > .nav {
    order: 3;
    width: 100%;
  }
  .nav--landing .nav-links {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  .search-main {
    flex-direction: column;
  }
  .btn-search {
    width: 100%;
  }
  .demo-banner span {
    display: block;
    margin-top: 0.35rem;
  }
  .auth-card {
    padding: 1.5rem 1.25rem;
  }
  .page-auth .nav:not(.nav--landing),
  .page-mypage .nav:not(.nav--landing) {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .page-devices .device-name-editor {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .page-devices .device-id-cell {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-devices .device-rename-btn,
  .page-devices .device-remove-btn,
  .page-devices .device-copy-btn {
    width: 100%;
    min-width: 0;
  }
}
