:root {
  --bg: #0b0f19;
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --td: #04060A;

  --cloud: #4da3ff;
  --youtube: #ff4d4d;
  --blog: #a98bff;
  --stream: #3cff8f;
  --manual: #ff7f00;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1000px, calc(100% - 40px));
  margin: auto;
}

.header {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--td);
}

.title {
  margin: 0 0 6px;
  font-size: 32px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 14px;
  padding: 24px 0;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover { transform: translateY(-2px); }

/* 서비스별 포인트 컬러 */
.card.cloud:hover { border-color: var(--cloud); box-shadow: 0 0 0 1px var(--cloud); }
.card.youtube:hover { border-color: var(--youtube); box-shadow: 0 0 0 1px var(--youtube); }
.card.blog:hover { border-color: var(--blog); box-shadow: 0 0 0 1px var(--blog); }
.card.stream:hover { border-color: var(--stream); box-shadow: 0 0 0 1px var(--stream); }
.card.manual:hover { border-color: var(--manual); box-shadow: 0 0 0 1px var(--manual); }

.thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  margin: 0;
  font-size: 16px;
}

.desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 32px;
  color: var(--muted);
  background: var(--td);
}

/* 반응형 */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* NEW badge */
.badge-new {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #e53935;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: .5px;
}

/* ===== Manual Modal ===== */
body.modal-open { overflow: hidden; }

/* hidden 속성은 무조건 숨김 처리 (display 강제) */
.modal[hidden],
.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 999;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 18px;
}

.modal-inner {
  position: relative; /* 닫기버튼 absolute 기준 */
  width: min(920px, calc(100vw - 36px));
  background: rgba(11, 15, 25, .98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.modal-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-body {
  padding: 18px;
  max-height: min(72vh, 720px);
  overflow: auto;
  line-height: 1.65;
}

/* ✅ 가독성: 계층 들여쓰기 */
.modal-body h3 {
  margin: 26px 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.modal-body p {
  margin: 8px 0 8px 14px;
}

.modal-body ul {
  margin: 8px 0 12px 40px;
  padding-left: 0;
}

.modal-body li { margin: 6px 0; }

/* ✅ 숫자 단락(클래스 sec) 상단 흰색 구분선 */
.modal-body h3.sec {
  position: relative;
  padding-top: 18px;
  margin-top: 34px;
}

.modal-body h3.sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.35);
}

/* 첫 sec에는 위 여백만 약간 줄이고 싶으면 */
.modal-body h3.sec:first-of-type {
  margin-top: 18px;
}

/* ✅ 강조 문장 박스 처리(📌/⚠️/TIP 등) */
.modal-body .note {
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border-left: 3px solid rgba(255,255,255,.25);
  border-radius: 6px;
}

/* 단계 구분용 ▶ 문단 강조 */
.modal-body strong { color: #ffffff; }

/* ✅ 닫기 버튼: 흰 배경 + 검정 X + 모달 안쪽 귀퉁이에 고정 */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;

  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;

  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 10;
}

.modal-close:hover { background: #f2f2f2; }
.modal-close:focus { outline: 2px solid #ffffff; outline-offset: 2px; }


.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover {
  opacity: 0.85;
}

.accordion-icon {
  font-weight: bold;
  transition: transform 0.2s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg); /* + → × 느낌 */
}

.accordion-body {
  padding: 8px 0 16px 0;
  line-height: 1.6;
}
