/* ═══════════════════════════════════════════════════════════════
   웰컴스 — 다크 테크 대시보드 v8
   사이드바 2열 정렬 / 시계+달력 세트 / 네트워크 라인그래프 / 사주 2카드
   ═══════════════════════════════════════════════════════════════ */

@font-face{font-family:'DSEG7-Classic';src:url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff2') format('woff2'),url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff') format('woff');font-weight:bold;font-style:normal}
.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;}

:root {
  --bg: #0B0E14;  --bg2: #0D1117;
  --card: #161B22;  --card2: #1F2633;
  --border: rgba(139,148,158,0.15);
  --border-hi: rgba(0,229,255,0.3);
  --text: #FFFFFF;  --text-sub: #C9D1D9;  --text-dim: #ADB7C4;
  --cyan: #00E5FF;  --cyan2: #00D2FF;  --cyan-glow: rgba(0,229,255,0.4);
  --green: #34D399; --violet: #A78BFA; --amber: #FBBF24;
  --pink: #F472B6;  --blue: #60A5FA;  --red: #F87171;  --yellow: #FFE566;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --seg: 'DSEG7-Classic', 'IBM Plex Mono', monospace; /* 7-segment: 시계/계산기/핑에만 적용 */
  --sans: 'Pretendard', -apple-system, system-ui, sans-serif;
  --r: 10px;  --rs: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
.material-symbols-rounded { font-size: 18px; vertical-align: middle; }

.ambient-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 900px 600px at 20% -10%, rgba(0,229,255,0.06), transparent 60%),
    radial-gradient(ellipse 600px 500px at 90% 20%, rgba(167,139,250,0.04), transparent 60%),
    var(--bg);
}


/* ═══ GNB ═══ */
.gnb { position: sticky; top: 0; z-index: 100; background: rgba(11,14,20,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.gnb-inner { max-width: 100%; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 24px; }
.gnb-logo-wrap { display: flex; flex-direction: column; gap: 0; flex-shrink: 0; }
.gnb-logo { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }
.gnb-logo-sub { font-size: 8px; font-weight: 600; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase; }
.gnb-menu { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.gnb-menu::-webkit-scrollbar { display: none; }
.gnb-menu a { padding: 6px 10px; border-radius: var(--rs); font-size: 12px; font-weight: 500; color: var(--text-sub); white-space: nowrap; transition: color 0.2s, background 0.2s; }
.gnb-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.gnb-menu a.active { color: var(--cyan); }
.gnb-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gnb-icon { width: 32px; height: 32px; border-radius: var(--rs); display: none; align-items: center; justify-content: center; color: var(--text-sub); transition: color 0.2s, background 0.2s; }
.gnb-icon:hover { color: var(--cyan); background: rgba(0,229,255,0.08); }
.gnb-icon .material-symbols-rounded { font-size: 18px; }
.gnb-login { display: none; padding: 6px 16px; border-radius: 9999px; font-size: 12px; font-weight: 700; background: var(--blue); color: #fff; }
.gnb-drawer-toggle { display: flex; }

/* 모바일 위젯 버튼 그룹 — ≤768px에서만 노출 (사이드바 드로어의 위젯으로 이동) */
.gnb-widget-btns { display: none; align-items: center; gap: 2px; }
.gnb-widget-btn { width: 34px; height: 34px; border-radius: var(--rs); display: flex; align-items: center; justify-content: center; color: var(--text-sub); transition: color 0.2s, background 0.2s; position: relative; }
.gnb-widget-btn:hover { color: var(--cyan); background: rgba(0,229,255,0.08); }
.gnb-widget-btn .material-symbols-rounded { font-size: 19px; }
.gnb-widget-btn.is-active { color: var(--cyan); background: rgba(0,229,255,0.12); }
/* 위젯 하이라이트 — 드로어에서 해당 위젯 강조 */
[data-widget].widget-flash { animation: widgetFlash 1.2s ease; }
@keyframes widgetFlash { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,0.6); } 50% { box-shadow: 0 0 0 4px rgba(0,229,255,0.3); } 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); } }


/* ═══ 메인 레이아웃 ═══ */
.main-layout { display: grid; grid-template-columns: 1fr 540px; gap: 16px; padding: 16px 24px 0; align-items: start; }
.col-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col-sidebar { padding-right: 4px; padding-bottom: 16px; background: #0B0E14; border-radius: 14px; padding: 16px; }

/* ═══ 1열(메인) 라이트 모드 ═══ */
.col-main {
  background: #F8FAFC;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
/* 메인 카드 — 라이트 톤 */
.col-main .card { background: #FFFFFF; border-color: #E2E8F0; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.col-main .section-h { color: #0F172A; }
.col-main .sh-icon { color: #0EA5E9; }
.col-main .sh-icon.saju { color: #F59E0B; }
.col-main .section-desc { color: #64748B; }
.col-main .card-more { color: #64748B; }
.col-main .card-more:hover { color: #0EA5E9; }
/* 메인 도구/게임/사주 카드 텍스트 */
.col-main .tc-name, .col-main .game-name { color: #0F172A; font-size: 14px; }
.col-main .tc-sub, .col-main .game-sub { color: #475569; font-size: 11px; }
.col-main .tool-chip, .col-main .game-card { background: #F8FAFC; border-color: #CBD5E1; }
.col-main .tool-chip:hover { border-color: color-mix(in srgb, var(--tc) 50%, transparent); background: #FFFFFF; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.col-main .game-card:hover { background: #FFFFFF; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.col-main .tc-icon { font-size: 26px !important; }
.col-main .game-ico { font-size: 28px !important; }
.col-main .tc-open, .col-main .gc-open { opacity: 0.4; }
.col-main .saju-card { background: #F5F3FF; border-color: #DDD6FE; }
.col-main .saju-card.is-reco { background: #FFFBEB; border-color: #F59E0B; }
.col-main .saju-card:hover { border-color: #C4B5FD; }
.col-main .saju-name { color: #1E293B; }
.col-main .saju-sub { color: #94A3B8; }
.col-main .saju-symbol { background: radial-gradient(circle, rgba(245,158,11,0.12), transparent); }
/* 메인 검색 히어로 */
.col-main .search-hero { background: #FFFFFF; border-color: #E2E8F0; }
.col-main .search-hero-title { color: #0F172A; font-size: 22px; }
.col-main .search-hero-sub { color: #475569; font-size: 14px; }
.col-main .search-capsule { background: #F8FAFC; border-color: #E2E8F0; }
.col-main .search-capsule input { color: #1E293B; }
.col-main .search-capsule input::placeholder { color: #94A3B8; }
.col-main .search-capsule-icon { color: #94A3B8; }
.col-main .eng-circle { background: #F1F5F9; border-color: #E2E8F0; }
/* 메인 탭 */
.col-main .tools-tab { background: #F1F5F9; color: #64748B; border-color: #E2E8F0; }
.col-main .tools-tab.active { background: #0EA5E9; color: #FFFFFF; border-color: #0EA5E9; }
.col-main .tools-view-all { color: #0EA5E9; }
/* 메인 공지/인기도구 */
.col-main .notice-title { color: #334155; }
.col-main .notice-date { color: #94A3B8; }
.col-main .tt-name { color: #334155; }
/* 메인 검색 자동완성 */
.col-main .search-suggest { background: #FFFFFF; border-color: #CBD5E1; }
.col-main .suggest-item { color: #475569; }
.col-main .suggest-item:hover, .col-main .suggest-item.active { background: #F0F9FF; color: #0F172A; }

/* ★ 사이드바 2열 정렬 — grid + 각 열 align-stretch */
.sidebar-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.sb-col { display: flex; flex-direction: column; gap: 12px; }


/* ═══ 카드 공통 ═══ */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.card-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-h { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; color: var(--text); }
.sh-icon { font-size: 20px; color: var(--cyan); }
.sh-icon.saju { color: var(--amber); }
.card-more { font-size: 13px; color: var(--text-dim); font-weight: 400; }
.card-more:hover { color: var(--cyan); }
.card-more-sm { font-size: 11px; color: var(--text-dim); font-weight: 400; }
.card-more-sm:hover { color: var(--cyan); }
.section-desc { font-size: 12px; color: var(--text-dim); margin: -4px 0 12px; }


/* ═══ ① 브랜드 히어로 — 좌측 텍스트 + 우측 이미지 (파란 배경으로 구분) ═══ */
.brand-hero { display: flex; align-items: stretch; gap: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #312E81 100%); padding: 0; min-height: 200px; }
.brand-hero-inner { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; }
.brand-hero-title { font-size: 38px; font-weight: 900; letter-spacing: -0.03em; background: linear-gradient(135deg, #93C5FD, #C4B5FD); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.brand-hero-title-ko { font-size: 24px; font-weight: 800; opacity: 0.9; }
.brand-hero-slogan { font-size: 18px; font-weight: 700; color: #fff; margin-top: 10px; }
.brand-hero-desc { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 6px; line-height: 1.5; }
.brand-hero-img { width: 50%; max-width: 400px; height: auto; aspect-ratio: 1408/768; object-fit: cover; flex-shrink: 0; border-radius: 0; }
.col-main .brand-hero { box-shadow: 0 4px 20px rgba(37,99,235,0.25); }

/* ═══ 섹션 전체 폭 이미지 (게임/사주 — 타이틀 아래, 버튼 위) ═══ */
/* 섹션 이미지 — 상담안대로 약 70% 높이로 축소 (원본 1408:768 ≈ 1.83:1, 축소 2.6:1) */
.section-art-full { width: 100%; height: auto; aspect-ratio: 1408/540; object-fit: cover; border-radius: var(--rs); margin: 8px 0 12px; display: block; }
.col-main .section-art-full { border: 1px solid #E2E8F0; }

/* ═══ ③ PC 전문성 ═══ */
.pc-expert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 900px) { .pc-expert-grid { grid-template-columns: repeat(5, 1fr); } }
.pc-expert-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 16px 10px; background: var(--card2); border: 1px solid var(--border); border-radius: var(--r); transition: all 0.25s; text-align: center; position: relative; }
.pc-expert-card:hover { border-color: color-mix(in srgb, var(--pc) 40%, transparent); transform: translateY(-3px); box-shadow: 0 8px 20px color-mix(in srgb, var(--pc) 12%, transparent); }
.pc-expert-icon { font-size: 30px !important; color: var(--pc); }
.pc-expert-name { font-size: 14px; font-weight: 700; color: var(--text); }
.pc-expert-sub { font-size: 10px; color: var(--text-dim); line-height: 1.3; }
.col-main .pc-expert-card { background: #F1F5F9; border-color: #E2E8F0; }
.col-main .pc-expert-card:hover { background: #FFFFFF; }
.col-main .pc-expert-name { color: #1E293B; }
.col-main .pc-expert-sub { color: #64748B; }
/* 카드 전체 링크 오버레이 + 설명서 배지 */
.pec-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.pec-doc { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 3px 10px; border-radius: 9999px; font-size: 10.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 38%, transparent); text-decoration: none; transition: background 0.2s, transform 0.12s; }
.pec-doc:hover { background: color-mix(in srgb, var(--pc) 24%, transparent); }
.pec-doc:active { transform: scale(0.94); }
.pec-doc .material-symbols-rounded { font-size: 12px; }
.col-main .pec-doc { color: #475569; background: #E2E8F0; border-color: #CBD5E1; }
.col-main .pec-doc:hover { background: #CBD5E1; color: #1E293B; }
/* 도구·게임·사주 카드 — PC 전문성 카드와 동일한 카드 오버레이 링크 + 설명서 버튼 */
/* tool-chip은 align-items 미지정(column 기본 stretch)이라 필이 카드 전체폭으로 늘어남 → 중앙 정렬 필수 */
.tool-chip .pec-doc { align-self: center; }
.tool-chip .pec-doc, .game-card .pec-doc { margin-top: 2px; }
.saju-card .pec-doc { grid-column: 1 / -1; justify-self: center; margin-top: 0; }

/* ═══ ⑥ AI ═══ */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ai-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 14px 8px; background: var(--card2); border: 1px solid var(--border); border-radius: var(--r); transition: all 0.25s; text-align: center; }
.ai-card:hover { border-color: color-mix(in srgb, var(--ai) 40%, transparent); transform: translateY(-3px); box-shadow: 0 8px 20px color-mix(in srgb, var(--ai) 12%, transparent); }
.ai-icon { font-size: 26px !important; color: var(--ai); }
.ai-name { font-size: 13px; font-weight: 700; color: var(--text); }
.ai-sub { font-size: 10px; color: var(--text-dim); }
.col-main .ai-card { background: #F5F3FF; border-color: #E9D5FF; }
.col-main .ai-card:hover { background: #FFFFFF; }
.col-main .ai-name { color: #1E293B; }
.col-main .ai-sub { color: #64748B; }

/* ═══ ⑦ 사업 영역 CTA ═══ */
.business-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.business-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; background: var(--card2); border: 1px solid var(--border); border-top: 3px solid var(--bs); border-radius: var(--r); transition: all 0.25s; text-align: center; align-items: center; }
.business-card:hover { border-color: var(--bs); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.bs-icon { font-size: 28px !important; color: var(--bs); }
.bs-name { font-size: 14px; font-weight: 700; color: var(--text); }
.bs-sub { font-size: 12px; color: var(--text-dim); line-height: 1.4; flex: 1; }
.bs-cta { font-size: 12px; font-weight: 700; color: var(--bs); margin-top: 2px; }
.col-main .business-card { background: #FFFFFF; border-color: #E2E8F0; }
.col-main .business-card:hover { border-color: var(--bs); }
.col-main .bs-name { color: #0F172A; }
.col-main .bs-sub { color: #475569; }


/* ═══ ② 통합 검색 ═══ */
.search-hero { position: relative; overflow: visible; padding: 20px 24px; }
.search-hero-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; align-items: center; }

/* 좌측: 타이틀 */
.shh-left { display: flex; align-items: center; }
.shh-info { display: flex; flex-direction: column; gap: 6px; }
.search-hero-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; }
.search-hero-sub { font-size: 13px; color: var(--text-sub); }

/* 우측: 엔진 아이콘 + 검색바 — 최대 폭 고정 */
.shh-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 460px; margin-left: auto; }

.search-engines-row { display: flex; gap: 10px; }
.eng-circle { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ec); background: rgba(255,255,255,0.04); border: 1px solid var(--border); transition: all 0.2s; flex-shrink: 0; }
.eng-circle svg { width: 24px; height: 24px; }
.eng-circle:hover { border-color: var(--ec); background: color-mix(in srgb, var(--ec) 10%, transparent); }
.eng-circle.active { background: var(--ec); color: #fff; border-color: var(--ec); box-shadow: 0 0 16px color-mix(in srgb, var(--ec) 45%, transparent); }

/* 검색바 — 길고 큼 */
.search-capsule { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: 9999px; transition: border-color 0.25s, box-shadow 0.25s; }
.search-capsule:focus-within { border-color: var(--border-hi); box-shadow: 0 0 32px rgba(0,229,255,0.14); }
.search-capsule-icon { color: var(--text-dim); font-size: 20px; }
.search-capsule input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-size: 14px; padding: 10px 0; }
.search-capsule input::placeholder { color: var(--text-dim); }
.search-capsule-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); color: #0B0E14; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: box-shadow 0.2s; }
.search-capsule-btn:hover { box-shadow: 0 0 20px var(--cyan-glow); }
.search-capsule-btn .material-symbols-rounded { font-size: 20px; }
/* 검색 자동완성 */
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg2); border: 1px solid var(--border-hi); border-radius: var(--rs); box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 50; max-height: 240px; overflow-y: auto; }
.suggest-item { padding: 8px 16px; font-size: 13px; color: var(--text-sub); cursor: pointer; transition: background 0.1s; }
.suggest-item:hover, .suggest-item.active { background: rgba(0,229,255,0.1); color: var(--text); }
.suggest-item mark { background: transparent; color: var(--cyan); font-weight: 700; }


/* ═══ ② WELLCOMS 도구 ═══ */
.tools-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tools-tabs::-webkit-scrollbar { display: none; }
.tools-tab { padding: 7px 14px; border-radius: 9999px; font-size: 13px; font-weight: 600; color: var(--text-dim); background: rgba(255,255,255,0.03); border: 1px solid var(--border); white-space: nowrap; transition: all 0.2s; }
.tools-tab:hover { color: var(--text-sub); }
.tools-tab.active { background: var(--cyan); color: #0B0E14; border-color: var(--cyan); }
.tools-view-all { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--cyan); white-space: nowrap; }

/* auto-fill + minmax — 화면이 넓으면 열 수가 자동 증가하여 카드가 작게 유지됨.
   카드 폭은 120~150px 범위. 전체 가로폭은 그대로, 빈공간 없이 메인 전폭 활용. */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tool-chip { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px 8px; background: var(--card2); border: 1px solid var(--border); border-radius: var(--r); transition: all 0.25s; position: relative; overflow: hidden; text-align: center; }
.tool-chip::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--tc); opacity: 0.6; border-radius: 0 0 9999px 9999px; }
.tool-chip:hover { border-color: color-mix(in srgb, var(--tc) 40%, transparent); transform: translateY(-3px); box-shadow: 0 8px 20px color-mix(in srgb, var(--tc) 12%, transparent); }
.tool-chip:hover::before { opacity: 1; }
.tc-icon { font-size: 22px !important; color: var(--tc); }
.tc-name { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.tc-sub { font-size: 10px; color: var(--text-dim); line-height: 1.25; }
/* 우측 상단 열기 아이콘 — hover 시에만 노출 */
.tc-open { position: absolute; top: 4px; right: 4px; font-size: 13px !important; color: var(--tc); opacity: 0; transition: opacity 0.2s; }
.tool-chip:hover .tc-open { opacity: 0.7; }
.tool-chip.is-hidden { display: none; }


/* ═══ ④ 게임 센터 ═══ */
.section-games { border-top: 2px solid rgba(167,139,250,0.2); }
.section-games .section-art-full { object-position: center -55px; }
/* 게임도 동일 패턴 — auto-fill로 카드 폭 120~150px 유지 */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.game-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 6px 8px; background: var(--card2); border: 1px solid var(--border); border-radius: var(--r); transition: all 0.25s; text-align: center; position: relative; }
.game-card:hover { border-color: color-mix(in srgb, var(--gc) 40%, transparent); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.game-ico { font-size: 24px !important; color: var(--gc); }
.game-name { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.game-sub { font-size: 10px; color: var(--text-dim); line-height: 1.25; }
/* 우측 상단 열기 아이콘 — hover 시에만 노출 */
.gc-open { position: absolute; top: 4px; right: 4px; font-size: 13px !important; color: var(--gc); opacity: 0; transition: opacity 0.2s; }
.game-card:hover .gc-open { opacity: 0.7; }


/* ═══ ⑤ 사주/운세 — 3카드(명리사주 추천 배지) ═══ */
.section-saju { border-top: 2px solid rgba(167,139,250,0.2); background: linear-gradient(160deg, var(--card) 0%, rgba(30,16,60,0.4) 100%); }
.saju-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.saju-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; padding: 11px 12px; background: rgba(15,8,35,0.5); border: 1px solid rgba(167,139,250,0.2); border-radius: var(--r); transition: all 0.25s; position: relative; }
.saju-card:hover { border-color: rgba(167,139,250,0.45); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(103,65,180,0.2); }
.saju-symbol { font-size: 22px; color: var(--amber); flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(251,191,36,0.15), transparent); }
.saju-card > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.saju-name { font-size: 14px; font-weight: 700; color: var(--text); }
.saju-sub { font-size: 12px; color: var(--text-dim); line-height: 1.25; }
.saju-tabs-hint { color: var(--violet); font-weight: 600; }
/* 우측 상단 열기 아이콘 — hover 시에만 노출 */
.sc-open { position: absolute; top: 6px; right: 8px; font-size: 14px !important; color: var(--amber); opacity: 0; transition: opacity 0.2s; }
.saju-card:hover .sc-open { opacity: 0.7; }
/* 명리사주 추천 배지 — 사주 서비스 구분용 위젯 */
.saju-rec { position: absolute; top: -9px; right: 10px; z-index: 1; background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35); }
.saju-card.is-reco { border-color: rgba(245, 158, 11, 0.55); }


/* ═══ ⑥ 공지 + 인기도구 ═══ */
.bottom-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.bottom-2col > .card { min-width: 0; overflow: hidden; }
.notice-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.notice-list li a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; line-height: 1.2; border-radius: var(--rs); border-left: 2px solid transparent; transition: all 0.15s; }
.notice-list li a:hover { background: rgba(255,255,255,0.03); border-left-color: var(--cyan); }
.notice-date { font-size: 12px; color: var(--text-dim); font-family: var(--mono); flex-shrink: 0; line-height: 1.2; }
.notice-title { font-size: 13px; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
/* 가이드 섹션 탭 (도구·게임·사주) */
.guide-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 8px 8px; }
.guide-tab { border: 1px solid rgba(148,163,184,0.35); background: rgba(148,163,184,0.08); color: var(--text-dim); font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; cursor: pointer; transition: all 0.15s; line-height: 1.4; }
.guide-tab:hover { border-color: rgba(16,185,129,0.55); color: var(--text-sub); }
.guide-tab.active { background: #10B981; border-color: #10B981; color: #fff; }
.guide-tag { flex-shrink: 0; padding: 1px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 1.5; }
/* 포럼 카테고리 배지 */
.forum-cat { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; background: var(--cat, #6366f1); flex-shrink: 0; margin-right: 6px; }
.col-main .forum-cat { font-size: 10px; }
.top-tools-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.top-tools-list li { display: flex; align-items: center; gap: 10px; padding: 5px 8px; line-height: 1.2; border-radius: var(--rs); transition: background 0.15s; }
.top-tools-list li:hover { background: rgba(255,255,255,0.03); }
.rank { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: var(--cyan); color: #0B0E14; flex-shrink: 0; }
.rank.gold { background: var(--amber); }
.rank.silver { background: #C0C0C0; color: #0B0E14; }
.rank.bronze { background: #CD7F32; }
.tt-name { font-size: 13px; color: var(--text-sub); line-height: 1.2; }


/* ═══ 사이드바 위젯 ═══ */
.sidebar-close { display: none; position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: var(--rs); color: var(--text-dim); align-items: center; justify-content: center; z-index: 10; }
.sidebar-close .material-symbols-rounded { font-size: 20px; }
.widget-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.widget-h .material-symbols-rounded { font-size: 15px; color: var(--cyan); }

/* WELL-CLOCK + WELL-달력 세트 */
.widget-clock-cal { text-align: center; }
.wc-head { display: flex; align-items: center; gap: 5px; justify-content: center; margin-bottom: 4px; position: relative; }
.wc-head .material-symbols-rounded { font-size: 14px; color: var(--cyan); }
.wc-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; }
.wc-link { position: absolute; right: 0; font-size: 12px; color: var(--text-dim); }
.wc-link:hover { color: var(--cyan); }
.wc-sync-icon { color: #34D399; display: inline-flex; align-items: center; }
.wc-sync-icon .material-symbols-rounded { font-size: 13px; color: #34D399; }

.clock-main { padding: 2px 0 6px; display: block; }
.clock-main:hover .clock-digital { opacity: 0.85; }
.clock-digital { font-family: var(--seg); font-size: 26px; font-weight: 700; color: var(--cyan); text-shadow: 0 0 16px var(--cyan-glow); letter-spacing: 0.02em; line-height: 1; }
.clock-date { font-size: 12px; color: var(--text-sub); margin-top: 3px; }
.clock-date span { color: var(--cyan); }
.clock-lunar { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.dday-row { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.dday-name { font-size: 11px; color: var(--text-sub); }
.dday-val { font-size: 11px; font-weight: 700; color: var(--cyan); padding: 1px 8px; border-radius: 9999px; background: rgba(0,229,255,0.12); }

.cal-divider { height: 1px; background: var(--border); margin: 6px 0; }
.cal-header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; }
.cal-arrow { width: 22px; height: 22px; border-radius: var(--rs); color: var(--text-dim); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.cal-arrow:hover { background: rgba(255,255,255,0.05); color: var(--cyan); }
.cal-ym { font-size: 12px; font-weight: 700; color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-dn { font-size: 11px; font-weight: 400; color: var(--text-dim); padding: 1px 0; }
.cal-d { font-size: 13px; color: var(--text-sub); padding: 3px 0; border-radius: var(--rs); min-height: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.cal-d.e { visibility: hidden; }
.cal-d.today { background: var(--cyan); color: #0B0E14; font-weight: 800; box-shadow: 0 0 8px var(--cyan-glow); }
/* ── 위젯 달력: 일요일·토요일·법정공휴일 색 + 음력 (/calendar/와 동일 규칙, 다크 테마용 색조) ── */
.cal-dn.sun { color: #f87171; }
.cal-dn.sat { color: #7cb8ff; }
.cal-d.sun { color: #f87171; }
.cal-d.sat { color: #7cb8ff; }
.cal-lunar { font-style: normal; font-size: 10px; color: var(--text-dim); margin: 2px 0 0; opacity: .9; }
.cal-d.today { color: #0B0E14; }
.cal-d.today .cal-lunar { color: inherit; opacity: .75; }

/* 날씨/시장 */
.widget-market { }
.weather-row { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--rs); background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(251,191,36,0.02)); margin-bottom: 8px; font-size: 12px; }
.weather-icon { color: var(--amber) !important; font-size: 20px !important; }
.weather-city { color: var(--text-sub); }
.weather-temp { font-weight: 700; color: var(--amber); }
.weather-dust { margin-left: auto; font-size: 12px; color: var(--text-dim); }
.weather-dust b { color: var(--green); }
.market-ticker { display: flex; flex-direction: column; gap: 3px; }
.mt-row { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--rs); background: var(--bg2); font-size: 11px; color: inherit; text-decoration: none; transition: background 0.15s; }
.mt-row:hover { background: var(--card2); }
.mt-label { color: var(--text-dim); font-weight: 400; flex: 1; }
.mt-val { color: var(--text); font-weight: 400; font-family: var(--mono); font-size: 12px; }
.mt-change { font-size: 11px; font-weight: 400; }
.mt-change.up { color: var(--red); }
.mt-change.down { color: var(--blue); }

/* 계산기 */
.calc-tabs { display: flex; gap: 2px; margin-bottom: 6px; }
.calc-tab { flex: 1; padding: 4px 2px; border-radius: var(--rs); font-size: 11px; font-weight: 400; color: #C9D1D9; background: var(--bg2); }
.calc-tab.active { background: var(--cyan); color: #0B0E14; }
/* hover 보정 — 테마 전역 a:hover,button:hover(color:#333·배경제거)이 덮어써 글자가 안 보이는 문제 */
.widget-calc button:hover { background: var(--bg2); color: var(--text); }
.widget-calc .calc-tab:hover { background: var(--card2); color: var(--text); }
.widget-calc .calc-tab.active:hover { background: var(--cyan); color: #0B0E14; }
/* 계산기 패널 — 탭 전환 시 세로폭 고정 */
.calc-panel { min-height: 230px; }
.calc-display { padding: 8px 10px; background: var(--bg2); border-radius: var(--rs); text-align: right; margin-bottom: 6px; min-height: 48px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.calc-expr { font-family: var(--mono); font-size: 12px; color: var(--text-dim); min-height: 12px; }
.calc-result { font-family: var(--seg); font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.2; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.cb { padding: 8px 0; border-radius: var(--rs); font-size: 13px; font-weight: 700; color: var(--text); background: var(--card2); transition: background 0.15s, transform 0.08s; }
.cb:hover { background: var(--bg2); }
.cb.kb-active { background: var(--bg2); transform: scale(0.92); }
.cb-fn { color: var(--text-dim); }
.widget-calc .cb-fn:hover { color: var(--text-dim); }
.cb-op { color: var(--cyan); }
.widget-calc .cb-op:hover { color: var(--cyan); }
.cb-eq { background: var(--cyan); color: #0B0E14; }
.widget-calc .cb-eq:hover { background: var(--cyan); color: #0B0E14; }
.cb-zero { grid-column: span 1; }

/* 환율 계산기 */
.calc-ex-form { display: flex; flex-direction: column; gap: 6px; }
.calc-ex-row { display: flex; align-items: center; gap: 8px; }
.calc-ex-row select { background: var(--bg2); color: var(--text); border: 1px solid var(--border); border-radius: var(--rs); padding: 5px 8px; font-size: 11px; font-family: var(--sans); }
.calc-ex-rate { font-size: 11px; color: var(--text-sub); font-weight: 400; }
.calc-ex-input-wrap input, .calc-mg-row input, .calc-dt-row input { width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--border); border-radius: var(--rs); padding: 7px 10px; font-size: 12px; font-family: var(--sans); }
.calc-ex-result { font-family: var(--seg); font-size: 18px; font-weight: 700; color: var(--cyan); padding: 6px 0; text-align: right; }
.calc-ex-reverse label { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; cursor: pointer; }
.calc-ex-source { font-size: 12px; color: var(--text-dim); text-align: right; }

/* 마진 계산기 */
.calc-mg-form { display: flex; flex-direction: column; gap: 6px; }
.calc-mg-row { display: flex; flex-direction: column; gap: 2px; }
.calc-mg-row label { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.calc-mg-toggle { display: flex; gap: 4px; }
.calc-mg-tbtn { flex: 1; padding: 5px; border-radius: var(--rs); font-size: 12px; font-weight: 400; color: #C9D1D9; background: var(--bg2); }
.calc-mg-tbtn.active { background: var(--violet); color: #0B0E14; }
.widget-calc .calc-mg-tbtn:hover { background: var(--card2); color: var(--text); }
.widget-calc .calc-mg-tbtn.active:hover { background: var(--violet); color: #0B0E14; }
.calc-mg-result { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.calc-mg-item { display: flex; justify-content: space-between; font-size: 11px; }
.calc-mg-item span:first-child { color: var(--text-dim); }
.calc-mg-item span:last-child { font-weight: 400; color: var(--text); font-family: var(--mono); }

/* 날짜 계산기 */
.calc-dt-form { display: flex; flex-direction: column; gap: 6px; }
.calc-dt-toggle { display: flex; gap: 3px; }
.calc-dt-tbtn { flex: 1; padding: 5px 2px; border-radius: var(--rs); font-size: 11px; font-weight: 400; color: #C9D1D9; background: var(--bg2); }
.calc-dt-tbtn.active { background: var(--blue); color: #0B0E14; }
.widget-calc .calc-dt-tbtn:hover { background: var(--card2); color: var(--text); }
.widget-calc .calc-dt-tbtn.active:hover { background: var(--blue); color: #0B0E14; }
.calc-dt-row { display: flex; flex-direction: column; gap: 2px; }
.calc-dt-row label { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.calc-dt-row input[type=date] { font-family: var(--mono); color-scheme: dark; }
.calc-dt-result { display: flex; gap: 8px; align-items: center; padding-top: 4px; font-size: 12px; }
.calc-dt-label { color: var(--text-dim); font-size: 12px; font-weight: 400; flex-shrink: 0; }
.calc-dt-result span:last-child { color: var(--text); font-weight: 400; }

/* ═══ D-Day 설정 모달 ═══ */
.dday-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 500; align-items: center; justify-content: center; }
.dday-modal-overlay.open { display: flex; }
.dday-modal { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; width: 90%; max-width: 420px; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.dday-modal h3 { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.dday-modal h3 .material-symbols-rounded { font-size: 20px; color: var(--cyan); }
.dday-modal-section { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.dday-modal-section label { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.dday-modal-section input[type=color] { width: 32px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: transparent; cursor: pointer; padding: 2px; }
.dday-fmt-toggle { display: inline-flex; gap: 4px; }
.dday-fmt-opt { padding: 5px 12px; border-radius: 9999px; font-size: 11px; font-weight: 600; color: var(--text-dim); background: var(--bg2); border: 1px solid var(--border); }
.dday-fmt-opt.active { background: var(--cyan); color: #0B0E14; border-color: var(--cyan); }
.dday-modal-item { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px; align-items: center; margin-bottom: 8px; }
.dday-modal-item input[type=text], .dday-modal-item input[type=date], .dday-modal-item select { background: var(--bg2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 12px; font-family: var(--sans); color-scheme: dark; }
.dday-modal-item button { background: var(--bg2); color: var(--text-dim); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 14px; cursor: pointer; }
.dday-modal-item button:hover { color: var(--red); border-color: var(--red); }
.dday-modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.dday-btn-reset { background: rgba(248,113,113,0.15); color: var(--red); border: 1px solid rgba(248,113,113,0.3); border-radius: 6px; padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; }
.dday-btn-cancel { background: var(--bg2); color: var(--text-sub); border: 1px solid var(--border); border-radius: 6px; padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; }
.dday-btn-save { background: var(--cyan); color: #0B0E14; border: none; border-radius: 6px; padding: 8px 20px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* 시계 설정 버튼 */
.wc-settings-btn { width: 24px; height: 24px; border-radius: var(--rs); display: flex; align-items: center; justify-content: center; color: var(--text-dim); transition: color 0.2s; }
.wc-settings-btn:hover { color: var(--cyan); }
.wc-settings-btn .material-symbols-rounded { font-size: 15px; }
.wc-fs-btn { width: 24px; height: 24px; border-radius: var(--rs); display: flex; align-items: center; justify-content: center; color: var(--text-dim); transition: color 0.2s; margin-left: auto; }
.wc-fs-btn:hover { color: var(--cyan); }
.wc-fs-btn .material-symbols-rounded { font-size: 15px; }
/* 관리자 버튼 (히어로) */
.brand-hero-admin { display: flex; gap: 8px; margin-top: 14px; }
.hero-admin-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); text-decoration: none; cursor: pointer; transition: background 0.2s; }
.hero-admin-btn:hover { background: rgba(255,255,255,0.25); }
.hero-admin-btn .material-symbols-rounded { font-size: 16px; }
.wi-rt-home { background: var(--cyan); color: #0B0E14; border-radius: 9999px; padding: 0 5px; font-size: 10px; font-weight: 700; min-width: 16px; text-align: center; }
/* 전체화면 시계 오버레이 — 홈화면과 동일 (vmin 폰트, 스크롤바 없음) */
.clock-fs-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: #0a0a0a; overflow: hidden; }
.clock-fs-overlay.open { display: flex; align-items: center; justify-content: center; }
.clock-fs-overlay:fullscreen { background: #0a0a0a; }
.clock-fs-body { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.clock-fs-center { text-align: center; }
.clock-fs-time { font-family: var(--seg); font-size: clamp(40px, 18vmin, 180px); font-weight: 700; color: #5ef5ff; text-shadow: 0 0 60px rgba(94,245,255,0.4); line-height: 1; }
.clock-fs-time .colon { animation: wnClockBlink 1s step-end infinite; }
@keyframes wnClockBlink { 50% { opacity: 0.35; } }
.clock-fs-ampm { font-size: 0.28em; font-family: var(--sans); opacity: 0.7; }
.clock-fs-date-row { font-size: clamp(16px, 6vmin, 60px); color: #ccc; margin-top: 2vmin; }
.clock-fs-lunar { font-size: 0.5em; color: #777; }
.clock-fs-ddays { position: absolute; bottom: 5vmin; left: 0; right: 0; display: flex; justify-content: center; gap: 3vmin; flex-wrap: wrap; }
.clock-fs-dday { display: flex; align-items: center; gap: 1.5vmin; background: #1a1a1a; border: 1px solid #333; border-radius: 9999px; padding: 1vmin 3vmin; }
.clock-fs-dday-name { font-size: clamp(12px, 3vmin, 32px); color: #aaa; }
.clock-fs-dday-val { font-size: clamp(14px, 4vmin, 42px); font-weight: 700; }
.clock-fs-close { position: absolute; top: 3vmin; right: 3vmin; width: 48px; height: 48px; border-radius: 50%; background: #1a1a1a; color: #888; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; }
.clock-fs-close:hover { background: #2a2a2a; color: #fff; }
.clock-fs-close .material-symbols-rounded { font-size: 24px; }

/* 메모 — 다중 탭 + textarea (localStorage) + 구부러진 종이 효과 */
.widget-memo { position: relative; }
.memo-pad {
  position: relative;
  background: var(--yellow);
  padding: 10px 8px 12px;
  color: #3D2E00;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.15);
  /* 우측 하단 구부러진 종이 효과 — 삼각형 그라디언트 */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
/* 구부러진 모서리 — 접힌 부분 입체감 */
.memo-pad::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.18) 50%);
  box-shadow: -2px -2px 4px rgba(0,0,0,0.1);
  z-index: 0;
}
.memo-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 2px; margin-bottom: 6px; width: 100%; }
.memo-tabs { display: flex; gap: 2px; flex-wrap: wrap; min-width: 0; }
.memo-tabs::-webkit-scrollbar { display: none; }
.memo-tab { min-width: 16px; height: 18px; border-radius: 3px; background: rgba(61,46,0,0.12); color: #3D2E00; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; flex-shrink: 0; padding: 0 2px; }
.memo-tab.active { background: #3D2E00; color: var(--yellow); }
.memo-tab:hover:not(.active) { background: rgba(61,46,0,0.22); }
.memo-tab-add, .memo-tab-del, .memo-copy, .memo-zoom { background: rgba(61,46,0,0.1); border: none; border-radius: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; font-size: 11px; font-weight: 700; color: #3D2E00; min-width: 16px; height: 18px; padding: 0 3px; flex-shrink: 0; }
.memo-tab-add:hover, .memo-tab-del:hover, .memo-copy:hover, .memo-zoom:hover { background: rgba(61,46,0,0.25); }
.memo-spacer { flex: 1; }
.memo-area { position: relative; z-index: 1; width: 100%; min-height: 170px; background: transparent; border: none; border-radius: 0; padding: 6px 4px; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: #3D2E00; resize: none; outline: none; scrollbar-width: thin; scrollbar-color: rgba(61,46,0,0.2) transparent; }
.memo-area::-webkit-scrollbar { width: 4px; }
.memo-area::-webkit-scrollbar-track { background: transparent; }
.memo-area::-webkit-scrollbar-thumb { background: rgba(61,46,0,0.2); border-radius: 2px; }
.memo-area::placeholder { color: rgba(61,46,0,0.4); font-size: 16px; font-weight: 600; }

/* 네트워크 — 실시간 라인 그래프 */
.net-badge-ok { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 700; background: rgba(52,211,153,0.15); color: var(--green); }
.net-badge-ok .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.net-chart-wrap { position: relative; height: 56px; margin-bottom: 8px; background: var(--bg2); border-radius: var(--rs); padding: 4px; }
.net-chart { width: 100%; height: 100%; }
.net-line { stroke-linejoin: round; stroke-linecap: round; }
.net-current { position: absolute; top: 6px; right: 8px; display: flex; align-items: baseline; gap: 2px; }
.net-sub { display: flex; gap: 12px; font-size: 11px; color: #C9D1D9; margin-bottom: 6px; }
.net-sub strong { color: #F0F6FC; font-weight: 400; }
.nc-val { font-family: var(--seg); font-size: 18px; font-weight: 800; color: var(--green); }
.nc-unit { font-size: 11px; color: var(--text-dim); }
.net-targets { display: flex; flex-direction: column; gap: 3px; }
.nt-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; border-radius: var(--rs); background: var(--bg2); font-size: 12px; }
.nt-row.nt-select { cursor: pointer; transition: background 0.15s; }
.nt-row.nt-select:hover { background: var(--card2); }
.nt-row.nt-select.active { background: rgba(0,229,255,0.12); border-left: 2px solid var(--cyan); }
.nt-name { color: var(--text-sub); font-weight: 400; }
.nt-ms { font-family: var(--mono); font-weight: 400; }
.nt-ms.good { color: var(--green); }
.nt-ip { font-family: var(--mono); color: var(--text-dim); font-size: 11px; }
.net-refresh { margin-top: 6px; padding: 5px; border-radius: var(--rs); background: var(--bg2); font-size: 12px; color: var(--text-dim); display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; }
.net-refresh:hover { color: var(--cyan); }
.net-refresh .material-symbols-rounded { font-size: 13px; }

/* 즐겨찾기 */
/* 즐겨찾기 (추천 + 사용자 탭) */
.fav-tabs { display: flex; gap: 3px; margin-bottom: 8px; }
.fav-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px; border-radius: var(--rs); font-size: 12px; font-weight: 600; color: var(--text-dim); background: var(--bg2); }
.fav-tab.active { background: var(--amber); color: #0B0E14; }
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.fav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: var(--rs); background: var(--bg2); text-align: center; transition: all 0.15s; cursor: pointer; position: relative; }
.fav-item:hover { background: var(--card2); transform: translateY(-2px); }
.fav-item img { width: 24px; height: 24px; border-radius: 5px; object-fit: contain; }
.fav-item-icon { width: 24px; height: 24px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; }
.fav-item-name { font-size: 11px; color: var(--text-sub); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fav-item-del { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; display: none; align-items: center; justify-content: center; cursor: pointer; }
.fav-item:hover .fav-item-del { display: flex; }
.fav-add-btn { width: 24px; height: 24px; border-radius: var(--rs); display: flex; align-items: center; justify-content: center; color: var(--text-dim); transition: color 0.2s; }
.fav-add-btn:hover { color: var(--cyan); }

/* ═══ 홈화면 즐겨찾기 시스템 연동 (wc-* 클래스) ═══ */
.wc-links-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.wc-links-hint { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.wc-links-tabs { display: flex; gap: 3px; }
.wc-links-tab { display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--rs); font-size: 12px; font-weight: 600; color: var(--text-dim); background: var(--bg2); cursor: pointer; }
.wc-links-tab.active { background: var(--amber); color: #0B0E14; }
.wc-w5-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.wc-ql-link, .wc-user-bm { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: var(--rs); background: var(--bg2); text-align: center; transition: all 0.15s; cursor: pointer; position: relative; color: var(--text-sub); text-decoration: none; font-size: 11px; font-weight: 600; }
.wc-ql-link:hover, .wc-user-bm:hover { background: var(--card2); transform: translateY(-2px); }
.wc-ql-link img, .wc-user-bm img { width: 24px; height: 24px; border-radius: 5px; object-fit: contain; }
.wc-ql-link svg, .wc-user-bm svg { width: 24px; height: 24px; }
.wc-links-add-btn { display: flex; align-items: center; justify-content: center; padding: 8px 4px; border-radius: var(--rs); border: 1px dashed var(--border); color: var(--text-dim); cursor: pointer; }
.wc-links-add-btn svg { width: 20px; height: 20px; }
.wc-links-add-btn:hover { color: var(--cyan); border-color: var(--cyan); }
/* body 데이터 속성으로 탭 토글 — 홈화면과 동일 */
body[data-wc-bm-tab="recommend"] .wc-user-bm { display: none; }
body[data-wc-bm-tab="mine"] .wc-ql-link { display: none; }
body[data-wc-bm-tab="mine"] .wc-links-add-btn { display: flex; }
body[data-wc-bm-tab="recommend"] .wc-links-add-btn { display: none; }
/* 컨텍스트 메뉴 */
.wc-bm-ctx { position: fixed; z-index: 100000; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,0.4); padding: 4px; min-width: 120px; }
.wc-bm-ctx button { display: block; width: 100%; padding: 6px 12px; font-size: 12px; color: var(--text-sub); background: none; border: none; cursor: pointer; text-align: left; border-radius: var(--rs); }
.wc-bm-ctx button:hover { background: var(--bg2); color: var(--text); }
.wc-bm-ctx button.danger:hover { color: var(--red); }
/* 즐겨찾기 다이얼로그 */
.wc-bm-overlay { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.wc-bm-dialog { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; width: 90%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.wc-bm-dialog h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.wc-bm-dialog-body { display: flex; flex-direction: column; gap: 12px; }
.wc-bm-field { display: flex; flex-direction: column; gap: 4px; }
.wc-bm-field label { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.wc-bm-field input { background: var(--bg2); color: var(--text); border: 1px solid var(--border); border-radius: var(--rs); padding: 8px 12px; font-size: 13px; }
.wc-bm-preview { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.wc-bm-info { font-size: 11px; color: var(--text-dim); }
.wc-bm-info a { color: var(--cyan); }
.wc-bm-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.wc-bm-btn { padding: 8px 16px; border-radius: var(--rs); font-size: 12px; font-weight: 600; cursor: pointer; }
.wc-bm-btn-cancel { background: var(--bg2); color: var(--text-sub); border: 1px solid var(--border); }
.wc-bm-btn-primary { background: var(--cyan); color: #0B0E14; border: none; }
/* 드래그 상태 */
.wc-bm-dragging { opacity: 0.4; }
.wc-bm-drag-over { outline: 2px dashed var(--cyan); outline-offset: -2px; }


/* ═══ 하단 서비스 바 ═══ */
.service-bar { padding: 24px; margin-top: 20px; }
.service-bar-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.svc-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); border-top: 3px solid var(--sc); transition: all 0.25s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px color-mix(in srgb, var(--sc) 15%, transparent); }
.svc-ico { font-size: 28px !important; color: var(--sc); flex-shrink: 0; }
.svc-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.svc-title { font-size: 14px; font-weight: 700; color: var(--text); }
.svc-sub { font-size: 11px; color: var(--text-dim); }
.svc-go { font-size: 16px; color: var(--sc); flex-shrink: 0; }


/* ═══ 푸터 ═══ */
.footer { padding: 28px 24px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.footer-left { display: flex; flex-direction: column; gap: 8px; }
.footer-logo { font-size: 16px; font-weight: 800; color: var(--cyan); }
.footer-left p { font-size: 12px; color: var(--text-sub); }
.footer-social { display: flex; gap: 8px; }
.footer-social .material-symbols-rounded { width: 32px; height: 32px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-sub); cursor: pointer; }
.footer-social .material-symbols-rounded:hover { color: var(--cyan); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-links a { font-size: 12px; color: var(--text-sub); }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { grid-column: 1 / -1; font-size: 11px; color: var(--text-dim); padding-top: 16px; border-top: 1px solid var(--border); }
/* Floating Action Buttons — 홈화면 footer.php에서 이식 */
.wc-fab-wrap { position: fixed; bottom: 80px; right: 28px; z-index: 99998; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.wc-fab-actions { display: none; flex-direction: column; gap: 12px; align-items: flex-end; }
.wc-fab-wrap.wc-fab-open .wc-fab-actions { display: flex; animation: wcFabPop 0.2s ease-out; }
.wc-fab-btn { width: 52px; height: 52px; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; background: #ECEFF1; box-shadow: 0 3px 14px rgba(0,0,0,0.2); transition: transform 0.15s, box-shadow 0.15s; position: relative; }
.wc-fab-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(0,0,0,0.28); }
.wc-fab-btn::after { content: attr(title); position: absolute; right: 62px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.8); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.wc-fab-btn:hover::after { opacity: 1; }
.wc-fab-label { font-size: 14px; font-weight: 700; border-radius: 50%; }
.wc-fab-label::after { display: none; }
.wc-fab-toggle { width: 52px; height: 52px; border: none; border-radius: 50%; background: linear-gradient(135deg, #0088a8, #00b4d8); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px rgba(0,136,168,0.45); transition: transform 0.2s, box-shadow 0.15s; }
.wc-fab-toggle:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,136,168,0.55); }
.wc-fab-ico-close { display: none !important; }
.wc-fab-wrap.wc-fab-open .wc-fab-ico-open { display: none !important; }
.wc-fab-wrap.wc-fab-open .wc-fab-ico-close { display: flex !important; }
.wc-fab-toggle .material-symbols-rounded { display: none; }
.wc-fab-toggle .wc-fab-ico-open { display: flex; }
.wc-fab-wrap.wc-fab-open .wc-fab-toggle .wc-fab-ico-open { display: none !important; }
.wc-fab-wrap.wc-fab-open .wc-fab-toggle .wc-fab-ico-close { display: flex !important; }
@keyframes wcFabPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767px) {
  .wc-fab-wrap { bottom: 70px; right: 12px; gap: 8px; }
  .wc-fab-toggle { width: 46px; height: 46px; }
  .wc-fab-btn { width: 44px; height: 44px; }
  .wc-fab-btn::after { display: none; }
}
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; }
.drawer-overlay.show { display: block; }


/* ═══ 반응형 ═══ */
@media (min-width: 1400px) {
  .gnb-icon, .gnb-login { display: flex; }
  .gnb-login { display: inline-flex; }
}
@media (max-width: 1400px) {
  .service-bar-inner { grid-template-columns: repeat(3, 1fr); }
  .main-layout { grid-template-columns: 1fr 440px; }
}
@media (max-width: 1200px) {
  /* 769px↑까지 2열 유지 — 메인:사이드바 = 7.5:2.5 비율 */
  .main-layout { grid-template-columns: 15fr 5fr; gap: 12px; }
  .sidebar-2col { grid-template-columns: 1fr; gap: 10px; }
  .gnb-menu { display: flex; }
}
@media (max-width: 1023px) {
  /* 태블릿 — 768px↑까지 2열(메인+사이드바) 유지, 7.5:2.5 비율 */
  .main-layout { grid-template-columns: 15fr 5fr; gap: 12px; }
  .gnb-menu { display: none; }
  /* 히어로 반응형 — 엔진 아이콘 잘림 방지 + overflow visible로 드롭다운 가려짐 해결 */
  .search-hero { overflow: visible; }
  .search-hero-grid { grid-template-columns: auto 1fr; gap: 16px; }
  .shh-left { gap: 10px; flex-shrink: 0; }
  .search-hero-illust svg { width: 56px; height: 56px; }
  .search-hero-title { font-size: 16px; white-space: normal; }
  .search-hero-sub { font-size: 11px; }
  .search-engines-row { flex-wrap: wrap; gap: 6px; }
  .eng-circle { width: 36px; height: 36px; }
  .eng-circle svg { width: 18px; height: 18px; }
}
@media (max-width: 768px) {
  /* 모바일: 좌우 여백 절반(10px→5px) — 콘텐츠 가로폭 최대화 */
  .main-layout { grid-template-columns: 1fr; padding: 10px 5px; }
  .col-main { padding-left: 8px; padding-right: 8px; }
  /* 모바일: 사이드바 = 드로어로 숨김, GNB 위젯 버튼으로 진입 */
  .col-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 400px; max-width: 90vw;
    background: var(--bg2); z-index: 300;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 56px 14px 14px;
    overflow-y: auto;
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
    display: none; /* JS로 open 시 block */
  }
  .col-sidebar.open { transform: translateX(0); display: block; }
  .sidebar-close { display: flex; }
  .sidebar-2col { grid-template-columns: 1fr; } /* 드로어 안에서는 위젯 1열 스택 */
  .gnb-inner { padding: 0 12px; gap: 10px; }
  .gnb-logo-sub { display: none; }
  /* 모바일: 데스크탑용 아이콘·로그인 숨기고 위젯 버튼 노출 */
  .gnb-icon, .gnb-login { display: none !important; }
  .gnb-widget-btns { display: flex; }
  .gnb-drawer-toggle { display: none !important; }
  .search-hero { padding: 14px; overflow: visible; }
  /* 모바일: 텍스트(좌) + 검색바(우) 가로 유지하되 비율 조정 */
  .search-hero-grid { grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
  .shh-left { gap: 6px; flex-shrink: 0; }
  .search-hero-illust svg { width: 40px; height: 40px; }
  .search-hero-title { font-size: 13px; white-space: normal; line-height: 1.1; }
  .search-hero-sub { font-size: 12px; }
  .eng-circle { width: 36px; height: 36px; }
  .eng-circle svg { width: 18px; height: 18px; }
  .search-engines-row { flex-wrap: wrap; gap: 5px; }
  .search-capsule { padding: 3px 3px 3px 12px; }
  .search-capsule input { font-size: 12px; padding: 7px 0; }
  .search-capsule-btn { width: 32px; height: 32px; }
  .search-capsule-btn .material-symbols-rounded { font-size: 16px; }
  /* 모바일에서도 도구 4열 · 게임 4열 유지 */
  .tools-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .games-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pc-expert-grid { grid-template-columns: repeat(5, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  /* 모바일 히어로 — 세로 스택 + 글자 축소 (줄바꿈 방지, 레이아웃 안정) */
  .brand-hero { flex-direction: column; align-items: center; min-height: 0; text-align: center; }
  .brand-hero-inner { padding: 14px 12px; align-items: center; }
  .brand-hero-title { font-size: 24px; white-space: nowrap; background: none; -webkit-background-clip: initial; background-clip: initial; color: #93C5FD; }
  .brand-hero-title-ko { font-size: 15px; }
  .brand-hero-slogan { font-size: 12px; margin-top: 5px; white-space: nowrap; }
  .brand-hero-desc { font-size: 10px; margin-top: 4px; line-height: 1.4; }
  .brand-hero-admin { justify-content: center; }
  .brand-hero-img { width: 100%; max-width: 240px; height: auto; max-height: 120px; aspect-ratio: auto; object-fit: cover; border-radius: 0 0 14px 14px; }
  .search-hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .shh-right { max-width: none; margin-left: 0; }
  .saju-grid { grid-template-columns: 1fr 1fr; }
  .bottom-2col { grid-template-columns: 1fr; }
  .service-bar { padding: 12px; }
  .service-bar-inner { grid-template-columns: 1fr 1fr; }
  .footer { grid-template-columns: 1fr; padding: 16px; }
  /* 카드 추가 축소 — 좁은 화면에서 4열 폭 확보 */
  .tool-chip { padding: 8px 4px; gap: 3px; }
  .tc-icon { font-size: 20px !important; }
  /* 제목 축소 — .col-main 접두 필수: 미디어쿼리 밖 .col-main .tc-name/.game-name 14px과 동일 특이성이어야 이김 */
  .col-main .tc-name { font-size: 11.5px; }
  .tc-sub { display: none; }
  .game-card { padding: 8px 4px; gap: 4px; }
  .game-ico { font-size: 21px !important; }
  .col-main .game-name { font-size: 11.5px; }
  .col-main .game-sub { font-size: 10px; }
  .saju-card { padding: 9px 10px; gap: 5px 8px; }
  .saju-symbol { width: 28px; height: 28px; font-size: 18px; }
  .saju-name { font-size: 13px; }
  .saju-sub { font-size: 11px; }
  /* 모바일 3카드: 2열 + 마지막 타로 카드는 가로 전체 */
  .saju-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  /* 초소형 모바일 — 도구 4열 · 게임 3열 · 사주 2열 유지 */
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .pc-expert-grid { grid-template-columns: repeat(5, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .saju-grid { grid-template-columns: 1fr 1fr; }
  .service-bar-inner { grid-template-columns: 1fr 1fr; }
  /* 초소형 히어로 — 더 축소 */
  .brand-hero-title { font-size: 20px; }
  .brand-hero-title-ko { font-size: 12px; }
  .brand-hero-slogan { font-size: 11px; }
  .brand-hero-desc { font-size: 9px; }
  .brand-hero-img { max-height: 96px; }
}
