/* ============================================================
   WAGER KOREA — Clean White Theme
   Handwritten Logo + Premium White Layout
   ============================================================ */

:root {
  --white:         #ffffff;
  --bg:            #f7f8fa;
  --bg-card:       #ffffff;
  --bg-hover:      #f0f4f8;
  --bg-input:      #f4f6f9;

  --border:        #e8ecf0;
  --border-dark:   #d4dae0;
  --border-accent: rgba(56,132,255,0.25);

  --accent:        #3884ff;
  --accent-hover:  #2568db;
  --accent-soft:   rgba(56,132,255,0.08);
  --accent-glow:   rgba(56,132,255,0.12);

  --purple:        #7c5cfc;
  --teal:          #10b981;
  --orange:        #f97316;
  --red:           #ef4444;
  --yellow:        #eab308;
  --pink:          #ec4899;

  --text:          #1a2b42;
  --text-sec:      #4a5e78;
  --text-muted:    #8a9bb2;

  --logo-dark:     #0f212e;
  --logo-green:    #10b981;

  --shadow-md:     0 4px 16px rgba(0,0,0,0.07);
  --slate:         #64748b;
  --card-bg:       #ffffff;
  --accent-dark:   #2563eb;

  --font:          'Noto Sans KR', 'Inter', sans-serif;
  --font-en:       'Outfit', 'Inter', sans-serif;
  --font-logo:     'Rajdhani', sans-serif;

  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   999px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow:        0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg:     0 8px 30px rgba(0,0,0,0.08);
  --shadow-accent: 0 4px 20px rgba(56,132,255,0.15);

  --transition:    all 0.2s ease;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(232,244,255,0.55) 0%, rgba(240,248,255,0.6) 35%, rgba(248,251,255,0.72) 70%, rgba(252,253,255,0.85) 100%),
    url('../img/body-bg-sky.png') center top / cover no-repeat fixed;
  background-color: #eaf4ff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ─── TOP BAR ─────────────────────────────────────────────── */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-link {
  color: var(--text-sec);
  font-weight: 500;
}

.top-bar-link:hover { color: var(--accent); }

.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  background: #2AABEE;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.7rem;
}

.tg-btn:hover { background: #229ED9; color: #fff; }

.tg-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.tg-icon-nav {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #2AABEE;
}

.top-bar-link.signup {
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.72rem;
}

.top-bar-link.signup:hover { background: var(--accent-hover); }

.top-bar-user { color: var(--text-sec); font-weight: 500; }

/* ─── PC 프로필 드롭다운 ─────────────────────────────────── */
.profile-drop { position: relative; }

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.profile-trigger:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(56,132,255,0.1); }
.profile-trigger.open { border-color: var(--accent); background: var(--accent-soft); }

.pt-lv {
  padding: 2px 7px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.pt-name { font-size: 0.72rem; font-weight: 700; color: var(--text); max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-arrow {
  width: 12px; height: 12px; color: var(--text-muted);
  transition: transform 0.2s;
}
.profile-trigger.open .pt-arrow { transform: rotate(180deg); }

.profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  z-index: 200;
  overflow: hidden;
  animation: pmSlide 0.18s ease-out;
}
.profile-menu.show { display: block; }

@keyframes pmSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  background:
    linear-gradient(135deg, rgba(56,132,255,0.04), rgba(124,92,252,0.03)),
    url('../img/body-bg-sky.png') center 30% / cover no-repeat;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}
.pm-lv {
  width: 38px; height: 38px; border-radius: 10px;
  color: #fff; font-size: 0.65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  flex-shrink: 0; letter-spacing: -0.02em;
}
.pm-lv-tag {
  font-size: 0.6rem; font-weight: 700; margin-left: 4px;
}
.pm-info { min-width: 0; }
.pm-name { display: block; font-size: 0.88rem; font-weight: 800; color: var(--text); }
.pm-id { display: block; font-size: 0.68rem; color: var(--text-muted); }

.pm-points {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
}
.pm-points svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.pm-points strong { margin-left: auto; color: var(--teal); font-weight: 800; font-size: 0.88rem; }

.pm-links { padding: 6px 8px; }
.pm-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sec);
  border-radius: 10px;
  transition: var(--transition);
}
.pm-link svg { width: 16px; height: 16px; opacity: 0.5; }
.pm-link:hover { background: var(--accent-soft); color: var(--accent); }
.pm-link:hover svg { opacity: 1; color: var(--accent); }

.pm-logout {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  transition: var(--transition);
}
.pm-logout:hover { background: #fef2f2; color: var(--red); }

.top-bar-date {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.date-year {
  background: linear-gradient(135deg, #f97316, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.date-dot {
  color: var(--text-muted);
  margin: 0 1px;
}

.date-md {
  color: var(--text);
  font-weight: 800;
}

.topbar-new {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff !important;
  background: linear-gradient(135deg, #f97316, #ec4899);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 상단바 검색 */
.topbar-search {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 28px;
  transition: var(--transition);
}

.topbar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
  background: var(--white);
}

.topbar-search-input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 0.72rem;
  color: var(--text);
  width: 160px;
  height: 100%;
}

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

.topbar-search-btn {
  padding: 0 8px;
  height: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ─── HEADER ──────────────────────────────────────────────── */
.site-header {
  border-bottom: none;
  padding: 30px 0;
  min-height: 210px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.banner-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 70% at 50% 50%, rgba(0,0,0,0.2) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10,5,30,0.15) 0%, transparent 40%, transparent 60%, rgba(10,5,30,0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, rgba(249,115,22,0.5), rgba(236,72,153,0.5), rgba(139,92,246,0.5), transparent 95%);
  z-index: 2;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

/* ─── 로고 ─────────────────────────────────────────────────── */
.logo-area {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.25s ease;
}

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

.logo-img {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter:
    drop-shadow(0 0 3px rgba(0,0,0,0.8))
    drop-shadow(0 0 8px rgba(249,115,22,0.4))
    drop-shadow(0 0 18px rgba(236,72,153,0.25));
}

.logo-img-game {
  height: 160px;
  filter:
    drop-shadow(0 6px 14px rgba(0,0,0,0.35))
    drop-shadow(0 0 28px rgba(255,200,60,0.45))
    drop-shadow(0 0 50px rgba(255,170,40,0.25));
  animation: logoFloat 4s ease-in-out infinite;
}

.logo-area:hover .logo-img-game {
  filter:
    drop-shadow(0 8px 18px rgba(0,0,0,0.4))
    drop-shadow(0 0 36px rgba(255,200,60,0.6))
    drop-shadow(0 0 60px rgba(255,170,40,0.35));
  transform: none;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.logo-area:hover .logo-img {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) drop-shadow(0 0 16px rgba(249,115,22,0.4)) drop-shadow(0 0 30px rgba(236,72,153,0.25));
  transform: scale(1.04);
}

.logo-img-sm {
  height: 42px;
  filter:
    drop-shadow(0 0 2px rgba(249,115,22,0.3))
    drop-shadow(0 0 8px rgba(236,72,153,0.15));
}

.logo-img-auth {
  height: 80px;
}

.footer-logo-game {
  height: 110px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(40,40,60,0.22));
}

.logo-img-auth-game {
  height: 68px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2)) drop-shadow(0 0 14px rgba(255,200,60,0.25));
}

/* 햄버거 */
.mobile-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  background: var(--bg-input);
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-sec);
  transition: border-color .15s, color .15s;
}
.mobile-search-toggle:hover { border-color: var(--accent); color: var(--accent); }

.mobile-search-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
}
.mobile-search-form {
  display: flex;
  gap: 8px;
}
.mobile-search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  background: var(--bg-input);
  outline: none;
}
.mobile-search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.mobile-search-form button {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.mobile-search-form button:hover { background: var(--accent-hover); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  cursor: pointer;
  background: var(--bg-input);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.mobile-nav-header { display: none; }
.mnav-profile { display: none; }
.nav-overlay { display: none; }

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-sec);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ─── MAIN NAV BAR ───────────────────────────────────────── */
.main-nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.mnav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 14px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sec);
  border-bottom: 2.5px solid transparent;
  transition: var(--transition);
}

.mnav-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.mnav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mnav-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}

.mnav-link:nth-child(1) .mnav-ico { color: var(--accent); }
.mnav-link:nth-child(2) .mnav-ico { color: #e8459b; }
.mnav-link:nth-child(3) .mnav-ico { color: #f59e0b; }
.mnav-link:nth-child(4) .mnav-ico { color: var(--teal); }
.mnav-link:nth-child(5) .mnav-ico { color: var(--orange); }
.mnav-link:nth-child(6) .mnav-ico { color: var(--purple); }
.mnav-link:nth-child(7) .mnav-ico { color: var(--red); }
.mnav-link:nth-child(8) .mnav-ico { color: #ec4899; }
.mnav-link:nth-child(9) .mnav-ico { color: #6366f1; }

.mnav-demo .mnav-ico { color: #ec4899; }
.mnav-partner .mnav-ico { color: #6366f1; }
.mnav-tg .mnav-ico { color: #2AABEE; }

/* ─── FLASH ───────────────────────────────────────────────── */
.flash-container { padding: 12px 0; }

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 6px;
  border: 1px solid;
  animation: fadeIn 0.25s ease;
}

.flash-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.flash-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

.flash-close { font-size: 1.1rem; opacity: 0.5; color: inherit; }
.flash-close:hover { opacity: 1; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ─── HERO BANNER / SLIDER ────────────────────────────────── */
.hero-banner { padding: 18px 0 0; }

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,210,120,0.35);
  box-shadow: 0 8px 32px rgba(40,60,120,0.2), inset 0 0 0 1px rgba(255,255,255,0.15);
}

.hero-slides {
  position: relative;
  height: clamp(170px, 26vw, 320px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* 도트 네비 */
.hero-slider-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  width: 22px;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffb347, #f04e8a);
  box-shadow: 0 0 10px rgba(255,179,71,0.7);
}

/* 좌우 화살표 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-arrow:hover { background: rgba(0,0,0,0.45); transform: translateY(-50%) scale(1.1); }
.hero-arrow-prev { left: 12px; }
.hero-arrow-next { right: 12px; }

.hero-bg-wrap {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8,6,28,0.82) 0%, rgba(12,8,34,0.6) 38%, rgba(12,8,34,0.18) 62%, transparent 85%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 34px 26px 56px;
  z-index: 1;
}

.hero-top { display: flex; gap: 7px; margin-bottom: 12px; }

.hero-tag {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.tag-hot {
  background: linear-gradient(135deg, #ff5e3a, #f7931e);
  color: #fff;
  box-shadow: 0 2px 10px rgba(247,147,30,0.5);
}

.tag-vip {
  background: linear-gradient(135deg, #ffd86b, #f7931e);
  color: #5a3c00;
  box-shadow: 0 2px 10px rgba(255,200,80,0.45);
}
.tag-partner {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99,102,241,0.5);
}

.hero-title {
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.32;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  letter-spacing: -0.01em;
}

.hero-glow {
  background: linear-gradient(135deg, #ffe07a 0%, #ffb347 45%, #ff7eb3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(255,180,80,0.55));
}

.hero-info {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-info strong {
  color: #ffd86b;
  font-weight: 800;
}

.hero-info-divider {
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

.btn-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: linear-gradient(135deg, #ff8c2a 0%, #f04e8a 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(240,78,138,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: var(--transition);
}

.btn-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  animation: heroShine 3.5s ease-in-out infinite;
}

@keyframes heroShine {
  0%, 60% { left: -120%; }
  100% { left: 160%; }
}

.btn-hero:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 26px rgba(240,78,138,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  color: #fff;
}

/* 히어로 하단 혜택 스트립 */
.hero-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 22px rgba(60,90,150,0.14);
}

.strip-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 8px;
}

.strip-ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #fff1d6, #ffe0ea);
  color: #e8851a;
  box-shadow: 0 2px 8px rgba(232,133,26,0.18);
}

.strip-ico svg { width: 18px; height: 18px; }

.strip-text { display: flex; flex-direction: column; line-height: 1.25; }

.strip-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #2a3a5c;
  letter-spacing: 0.01em;
}

.strip-val {
  font-size: 0.64rem;
  font-weight: 600;
  color: #8090a8;
}

.strip-sep {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, rgba(120,140,180,0.3), transparent);
  flex-shrink: 0;
}

/* ─── QUICK MENU ──────────────────────────────────────────── */
.quick-menu-section { padding: 16px 0 8px; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  min-width: 0;
}

.quick-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.qi-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.qi-event { color: #e8459b; }
.qi-event:hover { border-color: #e8459b; }

.qi-check { color: #f59e0b; }
.qi-check:hover { border-color: #f59e0b; }

.qi-charge { color: var(--teal); }
.qi-charge:hover { border-color: var(--teal); }

.qi-vip { color: var(--orange); }
.qi-vip:hover { border-color: var(--orange); }

.qi-comm { color: var(--purple); }
.qi-comm:hover { border-color: var(--purple); }

.qi-tele { color: #2AABEE; }
.qi-tele:hover { border-color: #2AABEE; }

.qi-news { color: var(--red); }
.qi-news:hover { border-color: var(--red); }

.qi-partner { color: #6366f1; }
.qi-partner:hover { border-color: #6366f1; }

.qi-demo { color: #ec4899; }
.qi-demo:hover { border-color: #ec4899; }

.quick-label { font-size: 0.7rem; font-weight: 600; color: var(--text-sec); }

/* ─── DEMO GAMES ─────────────────────────────────────────── */
.games-section {
  padding: 24px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-page { padding: 0; overflow-x: hidden; }
.demo-page .section-head { margin-bottom: 16px; }
.demo-page .sec-title { font-size: 1.5rem; }
.demo-page .sec-sub { font-size: 0.86rem; color: var(--text-sec); }

.section-head { margin-bottom: 20px; }
.sec-title { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -0.02em; }
.sec-sub { font-size: 0.82rem; color: var(--text-muted); }
.section-head-between { display: flex; align-items: flex-end; justify-content: space-between; }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  min-width: 0;
}

.demo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
  min-width: 0;
}

.demo-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.demo-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1032;
}

.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.demo-card:hover .demo-thumb img {
  transform: scale(1.05);
}

.demo-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(80% 80% at 50% 45%, rgba(124, 58, 237, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(30, 14, 60, 0.15) 0%, rgba(30, 14, 60, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.demo-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #7a2e52;
  background: linear-gradient(135deg, #fff7fb 0%, #ffd9ec 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px -6px rgba(236, 72, 153, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.35);
  transform: translateY(6px) scale(0.94);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-play-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.55rem;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  box-shadow: 0 2px 6px -1px rgba(236, 72, 153, 0.6);
  padding-left: 1px;
}

.demo-card:hover .demo-play-btn { opacity: 1; }
.demo-card:hover .demo-play-pill { transform: translateY(0) scale(1); }

.demo-info {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.demo-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.demo-rtp {
  font-size: 0.62rem;
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
}

/* 인피드 네이티브 광고 카드 */
.ad-card {
  position: relative;
  display: block;
  background: linear-gradient(140deg, #ff8c2a 0%, #f04e8a 60%, #b8329e 100%);
  border: none;
  text-decoration: none;
}

.ad-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255,255,255,0.35) 0%, transparent 45%);
  pointer-events: none;
}

.ad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0,0,0,0.35);
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

.ad-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 14px;
  text-align: center;
}

.ad-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.ad-card-sub {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.ad-card-cta {
  margin-top: 4px;
  align-self: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #d4360a;
  background: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,78,138,0.4);
}

.ad-card:hover .ad-card-cta {
  transform: scale(1.05);
}

/* ─── DEMO SEARCH BAR ──────────────────────────────────────── */
/* ─── 메인 인기 데모 히어로 (컴팩트 바) ───────────────────── */
.demo-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1450 35%, #3b1d6e 65%, #5c2d91 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.demo-hero-text { position: relative; z-index: 1; }
.demo-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fff;
  background: rgba(52, 211, 153, 0.95);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-right: 4px;
}
.demo-hero-tag i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: heroPulse 1.6s infinite;
}
@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.demo-hero-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(50, 16, 70, 0.6);
}
.demo-hero-title .gold {
  background: linear-gradient(100deg, #ffe17d 0%, #ffb347 50%, #ff7eb3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.demo-hero-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 6px rgba(50, 16, 70, 0.55);
}
.demo-hero-sub b { color: #ffe17d; font-weight: 800; }
.demo-hero-cta {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #7a2e52;
  background: linear-gradient(135deg, #fff7fb 0%, #ffd9ec 100%);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(255, 105, 180, 0.6);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.demo-hero-cta b { font-weight: 900; transition: transform 0.16s ease; }
.demo-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(255, 105, 180, 0.8); }
.demo-hero-cta:hover b { transform: translateX(3px); }
.cta-shine {
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  animation: ctaShine 3.6s ease-in-out infinite;
}
@keyframes ctaShine {
  0%, 60% { left: -120%; }
  100% { left: 130%; }
}

/* 카드 위 프로바이더 배지 */
.demo-card-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  padding: 3px 7px;
  border-radius: 6px;
  pointer-events: none;
}

@media (max-width: 760px) {
  .demo-hero { padding: 14px 16px; gap: 10px; }
  .demo-hero-title { font-size: 1.12rem; }
  .demo-hero-sub { font-size: 0.76rem; }
  .demo-hero-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-shine, .demo-hero-tag i { animation: none; }
}

/* ─── 데모 프로바이더 탭 ──────────────────────────────────── */
.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.demo-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
}
.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-tab:hover { color: var(--text); background: rgba(255,255,255,0.6); }
.demo-tab.active {
  color: var(--accent);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.demo-tab-count {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.06);
  color: var(--text-muted);
}
.demo-tab.active .demo-tab-count {
  background: var(--accent-soft);
  color: var(--accent);
}
.demo-provider {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.12);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.demo-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}
.demo-search-input {
  flex: 1;
  max-width: 280px;
  min-width: 160px;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a9bb2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 13px center;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-search-input:focus {
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.demo-search-input::placeholder { color: var(--text-muted); }
.demo-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: var(--radius-full);
}
.demo-count b, .demo-count strong { color: var(--accent); }
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (max-width: 768px) {
  .demo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .demo-toolbar { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; }
  .demo-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px; padding: 3px; width: 100%;
  }
  .demo-tab {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 6px; font-size: 0.78rem;
    white-space: nowrap; width: 100%;
  }
  .demo-tab-count { font-size: 0.62rem; padding: 1px 6px; }
  .demo-search-bar { width: 100%; min-width: 0; }
  .demo-search-input { max-width: none; min-width: 0; flex: 1; }
  .demo-modal-overlay { padding: 10px; }
  .demo-modal { border-radius: 14px; }
  .demo-modal-header { padding: 10px 14px; gap: 8px; }
  .demo-modal-game { font-size: 0.78rem; white-space: normal; word-break: break-word; }
  .demo-modal-logo { height: 22px; }
  .btn-demo-real { padding: 7px 12px; font-size: 0.7rem; }
  .demo-page-btn { min-width: 34px; height: 34px; font-size: 0.78rem; padding: 0 8px; }
}
@media (max-width: 640px) {
  .demo-page .page-hero { flex-direction: column; align-items: flex-start; padding: 18px 16px; gap: 12px; }
  .demo-page .page-hero-stats { width: 100%; justify-content: space-around; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.12); }
  .demo-page .page-hero-title { font-size: 1.15rem; }
  .demo-page .page-hero-sub { font-size: 0.74rem; }

  .demo-toolbar { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; }

  .demo-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px; padding: 3px;
    width: 100%;
  }
  .demo-tab {
    display: flex; align-items: center; justify-content: center;
    gap: 5px; padding: 10px 4px;
    font-size: 0.76rem; white-space: nowrap;
    border-radius: 8px; width: 100%;
  }
  .demo-tab-count { font-size: 0.6rem; padding: 1px 6px; }

  .demo-search-bar {
    display: flex; align-items: center; gap: 8px;
    min-width: 0; width: 100%;
  }
  .demo-search-input {
    max-width: none; min-width: 0; flex: 1;
    font-size: 0.82rem; padding: 10px 12px 10px 34px;
  }
  .demo-count { font-size: 0.72rem; padding: 5px 10px; flex-shrink: 0; }

  .demo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .demo-info { padding: 6px 8px; }
  .demo-name { font-size: 0.66rem; }
  .demo-provider { font-size: 0.54rem; padding: 1px 5px; }

  .demo-modal-overlay { padding: 6px; }
  .demo-modal-header { flex-wrap: wrap; padding: 10px 12px; }
  .demo-modal-actions { width: 100%; justify-content: flex-end; }
  .demo-page-btn { min-width: 30px; height: 30px; font-size: 0.72rem; padding: 0 6px; border-radius: 6px; }
  .demo-page-ellipsis { font-size: 0.72rem; }
  .demo-pagination { gap: 4px; margin-top: 16px; }
}
@media (max-width: 420px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .demo-tab { font-size: 0.68rem; padding: 9px 2px; gap: 3px; }
  .demo-tab-count { font-size: 0.54rem; padding: 0 5px; }
  .demo-info { padding: 5px 6px; gap: 3px; }
  .demo-name { font-size: 0.6rem; }
  .demo-provider { font-size: 0.48rem; padding: 1px 4px; }
  .demo-play-pill { padding: 7px 12px; font-size: 0.7rem; gap: 5px; }
  .demo-play-ico { width: 16px; height: 16px; font-size: 0.55rem; }
  .demo-search-input { font-size: 0.78rem; padding: 9px 10px 9px 32px; }
  .demo-count { font-size: 0.66rem; padding: 4px 8px; }
  .demo-modal-overlay { padding: 0; }
  .demo-modal { border-radius: 0; max-height: 100vh; max-height: 100dvh; }
  .demo-modal-game { font-size: 0.72rem; padding-left: 0; }
  .demo-modal-game::before { display: none; }
  .demo-modal-close { width: 30px; height: 30px; font-size: 0.85rem; }
  .btn-demo-real { padding: 6px 10px; font-size: 0.66rem; }
}
.demo-thumb-placeholder {
  width: 100%;
  aspect-ratio: 325/234;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1032, #2d1b4e);
  font-size: 2rem;
  border-radius: 8px 8px 0 0;
}
.demo-thumb.no-img img { display: none; }
.demo-thumb.no-img::before {
  content: '🎰';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 325/234;
  background: linear-gradient(135deg, #1a1032, #2d1b4e);
  font-size: 2rem;
}

/* ─── 메인 더보기 / 숨김 카드 ──────────────────────────────── */
.demo-card.is-hidden { display: none !important; }

.demo-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-loadmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn-loadmore:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.btn-loadmore-all {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-loadmore-all:hover {
  color: #fff;
  filter: brightness(1.05);
}

/* (게임 갱신은 관리자 패널에서 /admin/refresh-games 로 접근) */

/* ─── 데모 페이지네이션 ────────────────────────────────────── */
.demo-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.demo-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.demo-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}
.demo-page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: default;
}
.demo-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.demo-page-ellipsis {
  min-width: 22px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
}

/* ─── DEMO MODAL ─────────────────────────────────────────── */
.demo-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(120, 90, 200, 0.45), transparent 60%),
    rgba(34, 22, 58, 0.62);
  z-index: 3000;
  padding: 22px;
  backdrop-filter: blur(6px);
}

.demo-modal-overlay.active {
  display: flex;
  flex-direction: column;
  animation: demoModalIn 0.22s ease;
}
@keyframes demoModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.demo-modal {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 80px -24px rgba(40, 20, 70, 0.7);
}

.demo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(120deg, #dbeafe 0%, #ede9fe 48%, #fce7f3 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.demo-modal-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.demo-modal-logo {
  height: 26px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

.demo-modal-game {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  padding-left: 12px;
}
.demo-modal-game::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f59e0b, #ec4899);
}

.demo-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-demo-real {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #fbbf24, #ec4899);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(236, 72, 153, 0.6);
  transition: all 0.2s ease;
}

.btn-demo-real:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(236, 72, 153, 0.8);
  color: #fff;
}

.demo-modal-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-sec);
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.demo-modal-close:hover {
  background: #fff;
  color: #ef4444;
  border-color: #fecaca;
  transform: rotate(90deg);
}

.demo-modal-body {
  flex: 1;
  position: relative;
  background: linear-gradient(135deg, #eef4ff, #f7eeff);
}

.demo-modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── SERVICES ────────────────────────────────────────────── */
.services-section { padding: 32px 0; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }

.svc-icon { font-size: 1.8rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 0.84rem; color: var(--text-sec); line-height: 1.6; margin-bottom: 14px; }
.svc-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.svc-list li { font-size: 0.8rem; color: var(--text-sec); font-weight: 500; }

.btn-svc {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-svc:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow-accent); }

.btn-svc-alt {
  background: var(--white);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-svc-alt:hover { background: var(--accent); color: #fff; }

/* ─── COMMUNITY ───────────────────────────────────────────── */
.community-section { padding: 32px 0; }

/* 커뮤니티 하단 버튼 */
.community-actions {
  display: flex; gap: 10px; justify-content: center; margin-top: 16px;
}
.btn-comm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; font-size: .82rem; font-weight: 700;
  border-radius: 10px; text-decoration: none;
  border: 1.5px solid var(--border); color: var(--text-sec);
  background: var(--white); transition: all .15s;
}
.btn-comm svg { width: 14px; height: 14px; }
.btn-comm:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-comm-accent {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 12px rgba(56,132,255,.25);
}
.btn-comm-accent:hover {
  background: linear-gradient(135deg, #2970e6, #5558e0);
  border-color: transparent; color: #fff;
  box-shadow: 0 5px 18px rgba(56,132,255,.35); transform: translateY(-1px);
}

@media (max-width: 640px) {
  .community-actions { flex-direction: column; align-items: stretch; }
  .btn-comm { justify-content: center; padding: 12px 16px; }
}

.btn-more { font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.btn-more:hover { opacity: 0.7; }

.community-grid {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.comm-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.comm-card:last-child { border-bottom: none; }
.comm-card:hover { background: var(--bg-hover); }

.comm-cat { font-size: 1.1rem; flex-shrink: 0; width: 28px; text-align: center; }
.comm-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-dot-수익인증 { background: var(--red); }
.cat-dot-팁과노하우 { background: var(--accent); }
.cat-dot-자유게시판 { background: var(--teal); }
.comm-body { flex: 1; min-width: 0; }
.comm-title { font-size: 0.86rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.comm-card:hover .comm-title { color: var(--accent); }
.comm-meta { display: flex; gap: 12px; font-size: 0.72rem; color: var(--text-muted); }

/* ─── VIP CTA ─────────────────────────────────────────────── */
/* ─── RANKING WIDGET (탭 3종) ──────────────────────────── */
.rank-section { padding: 32px 0 40px; }

.rank-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.rank-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.rank-tab svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.5; transition: opacity 0.2s; }
.rank-tab:hover { border-color: var(--accent); color: var(--accent); }
.rank-tab:hover svg { opacity: 0.8; }
.rank-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb, 56,132,255), 0.25);
}
.rank-tab.active svg { opacity: 1; stroke: #fff; }

.rank-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rank-list { padding: 4px 8px; }

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.rank-row:hover { background: var(--bg); }
.rank-row + .rank-row { border-top: 1px solid var(--border); }
.rank-row:hover + .rank-row { border-top-color: transparent; }

.rank-row.rank-top {
  background: linear-gradient(90deg, rgba(255,215,0,0.04) 0%, transparent 60%);
}
.rank-row.rank-top:hover {
  background: linear-gradient(90deg, rgba(255,215,0,0.09) 0%, rgba(255,248,230,0.3) 60%);
}

.rank-num {
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
}
.rank-medal { width: 28px; height: 28px; display: block; }

.rank-user {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.rank-lv {
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  line-height: 1.4;
}
.rank-nick {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-val {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.rank-val small {
  font-size: 0.66rem;
  font-weight: 700;
  margin-left: 2px;
  opacity: 0.6;
}

.rank-n1 .rank-medal { filter: drop-shadow(0 2px 6px rgba(255,215,0,0.45)); }
.rank-n2 .rank-medal { filter: drop-shadow(0 2px 6px rgba(192,192,192,0.4)); }
.rank-n3 .rank-medal { filter: drop-shadow(0 2px 6px rgba(205,127,50,0.35)); }

.rank-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 20px;
  color: var(--text-muted);
}
.rank-empty svg { width: 36px; height: 36px; opacity: 0.35; }
.rank-empty p { font-size: 0.82rem; font-weight: 600; }

/* ─── FORUM ───────────────────────────────────────────────── */
/* ─── FORUM — Modern Card List ─────────────────────────────── */
.forum-wrap { padding: 20px 16px 48px; }

/* ── 포럼 히어로 ── */
.forum-hero {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 28px 28px;
  margin-bottom: 16px; border-radius: 18px;
  overflow: hidden;
  background: url('../img/demo-hero-bg.png') center / cover no-repeat;
}
.forum-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.82) 0%, rgba(30,58,95,0.7) 50%, rgba(59,130,246,0.5) 100%);
}
.forum-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(99,102,241,0.25), transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(56,189,248,0.2), transparent 50%);
}
.forum-hero > * { position: relative; z-index: 1; }

.forum-hero-title {
  font-size: 1.2rem; font-weight: 900; color: #fff;
  margin-bottom: 3px; text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.forum-hero-sub {
  font-size: 0.74rem; color: rgba(255,255,255,0.6);
}
.forum-hero-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 20px; font-size: 0.78rem; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  transition: all 0.2s ease; white-space: nowrap; flex-shrink: 0;
}
.forum-hero-btn svg { width: 15px; height: 15px; }
.forum-hero-btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); color: #fff; }
.forum-hero-btn-login { background: rgba(255,255,255,0.08); }

/* ── 탭 & 컨트롤 ── */
.forum-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.forum-tabs {
  display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg); border-radius: 12px; padding: 4px;
  border: 1px solid var(--border);
}
.forum-tabs::-webkit-scrollbar { height: 3px; }
.forum-tabs::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
.forum-tabs::-webkit-scrollbar-track { background: transparent; }
.forum-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted); border-radius: 9px;
  border: none; background: transparent;
  transition: var(--transition); white-space: nowrap;
}
.forum-tab svg { width: 14px; height: 14px; }
.forum-tab:hover { color: var(--text); background: rgba(255,255,255,0.6); }
.forum-tab.active { background: var(--white); color: var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.forum-tab.tab-profit.active { color: var(--red); }
.forum-tab.tab-tip.active { color: var(--purple); }
.forum-tab.tab-free.active { color: var(--teal); }
.forum-tab.tab-my.active { color: var(--amber); }
.forum-search-form { flex-shrink: 0; }
.forum-search-box {
  display: flex; align-items: center; gap: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; height: 36px;
}
.forum-search-input {
  border: none; background: transparent; outline: none;
  padding: 0 12px; height: 100%; font-size: 0.82rem;
  color: var(--text); width: 160px; min-width: 0;
}
.forum-search-input::placeholder { color: var(--text-muted); font-size: 0.78rem; }
.forum-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; flex-shrink: 0;
  transition: color 0.2s;
}
.forum-search-btn:hover { color: var(--accent); }
.forum-search-btn svg { width: 16px; height: 16px; }
.forum-total {
  font-size: 0.74rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
}
.forum-total b { color: var(--accent); font-weight: 800; }

/* ── HOT 인기글 (board 내부 · 밝은 골드 메탈릭) ── */
.bh-zone {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fffdf7 0%, #fef9ed 40%, #fffcf5 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #b91c1c, #ef4444, #b91c1c, transparent) 1;
  border-bottom: 1px solid #f0e6d0;
}
.bh-zone::before {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(212,160,23,0.06) 40%, rgba(245,200,66,0.1) 50%, rgba(212,160,23,0.06) 60%, transparent 100%);
  animation: bh-shimmer 3.5s ease-in-out infinite;
  pointer-events: none; z-index: 1;
}
@keyframes bh-shimmer {
  0% { left: -40%; }
  100% { left: 110%; }
}

/* 헤더 – 레드 메탈릭 */
.bh-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  background: linear-gradient(100deg, #3d0c0c, #5a1a1a, #6b2020, #5a1a1a, #3d0c0c);
  border-bottom: 1px solid rgba(180,40,40,0.3);
  position: relative; overflow: hidden;
}
.bh-header::before {
  content: ''; position: absolute; top: 0; left: -50%; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,120,120,0.06), transparent);
  animation: bh-hdr-shine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bh-hdr-shine {
  0% { left: -30%; }
  100% { left: 110%; }
}
.bh-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,68,68,0.4), rgba(255,150,150,0.5), rgba(239,68,68,0.4), transparent);
}
.bh-header-left { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.bh-header-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #b91c1c, #ef4444, #dc2626);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(239,68,68,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: bh-icon-glow 2.5s ease-in-out infinite;
}
@keyframes bh-icon-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(239,68,68,0.35); }
  50% { box-shadow: 0 2px 16px rgba(255,100,100,0.55), 0 0 6px rgba(239,68,68,0.3); }
}
.bh-header-icon svg { width: 17px; height: 17px; fill: #fff; }
.bh-header-txt { display: flex; flex-direction: column; gap: 1px; position: relative; z-index: 1; }
.bh-header-title {
  font-size: 0.84rem; font-weight: 900;
  background: linear-gradient(90deg, #fca5a5, #fef2f2, #fecaca, #fef2f2, #fca5a5);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  animation: bh-txt-shine 3s linear infinite;
}
@keyframes bh-txt-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.bh-header-sub {
  font-size: 0.58rem; font-weight: 500; color: #d4a0a0; letter-spacing: 0.2px;
}
.bh-header-right { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.bh-header-live {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 20px;
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.8px;
  color: #fecaca;
  background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(185,28,28,0.2));
  border: 1px solid rgba(239,68,68,0.3);
}
.bh-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239,68,68,0.6);
  animation: bh-dot-blink 1.2s ease-in-out infinite;
}
@keyframes bh-dot-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(239,68,68,0.6); }
  50% { opacity: 0.3; box-shadow: 0 0 2px rgba(239,68,68,0.2); }
}

/* 아이템 행 */
.bh-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  text-decoration: none; color: inherit;
  transition: all 0.2s;
  position: relative;
  border-bottom: 1px solid #f0e8d8;
}
.bh-item:last-child { border-bottom: none; }

/* 1위 – 골드 */
.bh-r1 {
  background: linear-gradient(100deg, #fef9e7, #fdf0c8, #fef6da);
  border-left: 4px solid #d4a017;
}
.bh-r1 .bh-title { font-weight: 800; }

/* 2위 – 쿨 블루그레이 */
.bh-r2 {
  background: linear-gradient(100deg, #f0f4f8, #e8eef5, #f0f4f8);
  border-left: 4px solid #7090b0;
}

/* 3위 – 웜 코퍼 */
.bh-r3 {
  background: linear-gradient(100deg, #fdf5ed, #faecdd, #fdf5ed);
  border-left: 4px solid #c07030;
}

.bh-item:hover {
  transform: translateX(2px);
}
.bh-r1:hover { background: linear-gradient(100deg, #fef3d0, #fdeab0, #fef3d0); box-shadow: 0 2px 12px rgba(212,160,23,0.1); }
.bh-r2:hover { background: linear-gradient(100deg, #e8eef5, #dce6f0, #e8eef5); box-shadow: 0 2px 12px rgba(112,144,176,0.08); }
.bh-r3:hover { background: linear-gradient(100deg, #faecdd, #f8e2cc, #faecdd); box-shadow: 0 2px 12px rgba(192,112,48,0.08); }

/* 순위 */
.bh-rank {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.76rem; font-weight: 900; color: #fff; flex-shrink: 0;
}
.bh-r1 .bh-rank {
  background: linear-gradient(135deg, #d4a017, #f5c842, #e8a90e);
  box-shadow: 0 2px 8px rgba(212,160,23,0.4), inset 0 1px 0 rgba(255,255,255,0.35);
  animation: bh-rank1-glow 2.5s ease-in-out infinite;
}
@keyframes bh-rank1-glow {
  0%, 100% { box-shadow: 0 2px 6px rgba(212,160,23,0.35); }
  50% { box-shadow: 0 2px 14px rgba(245,200,66,0.55), 0 0 4px rgba(212,160,23,0.25); }
}
.bh-r2 .bh-rank {
  background: linear-gradient(135deg, #5b7fa0, #8aacc8, #6890b0);
  box-shadow: 0 2px 6px rgba(90,128,160,0.3), inset 0 1px 0 rgba(255,255,255,0.35);
  color: #fff;
}
.bh-r3 .bh-rank {
  background: linear-gradient(135deg, #cd7f32, #e8a860, #b8692a);
  box-shadow: 0 2px 6px rgba(205,127,50,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 본문 */
.bh-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bh-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bh-cat {
  flex-shrink: 0; padding: 2px 7px; border-radius: 4px;
  font-size: 0.58rem; font-weight: 800;
  background: #f1f5f9; color: #64748b;
}
.bh-cat-수익 { background: #fee2e2; color: #dc2626; }
.bh-cat-팁 { background: #e0e7ff; color: #6366f1; }
.bh-cat-자유 { background: #d1fae5; color: #059669; }
.bh-title {
  flex: 1; min-width: 0;
  font-size: 0.78rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3; transition: color 0.15s;
}
.bh-r1:hover .bh-title { color: #b8860b; }
.bh-r2:hover .bh-title { color: #3b6fa0; }
.bh-r3:hover .bh-title { color: #b85c1a; }
.bh-cmt {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px;
  font-size: 0.58rem; font-weight: 800;
  padding: 0; border-radius: 0;
  background: none; color: var(--accent);
}
.bh-cmt svg { width: 10px; height: 10px; }

.bh-bottom {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.68rem; color: var(--text-muted);
}
.bh-nick {
  font-weight: 500; max-width: 90px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bh-sep { opacity: 0.3; }
.bh-date { color: var(--text-muted); }
.bh-stat-views {
  display: inline-flex; align-items: center; gap: 3px; color: var(--text-muted);
}
.bh-stat-views svg { width: 11px; height: 11px; }

/* 추천수 칩 */
.bh-likes {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0; padding: 5px 12px; border-radius: 10px;
  font-size: 0.8rem; font-weight: 900;
  transition: all 0.15s;
}
.bh-r1 .bh-likes {
  background: linear-gradient(135deg, #d4a017, #f5c842);
  color: #fff; box-shadow: 0 2px 8px rgba(212,160,23,0.25);
}
.bh-r1 .bh-likes svg { fill: #fff; }
.bh-r2 .bh-likes {
  background: linear-gradient(135deg, #dce6f0, #c8d8e8);
  border: 1px solid #b0c4d8; color: #dc2626;
}
.bh-r2 .bh-likes svg { fill: #dc2626; }
.bh-r3 .bh-likes {
  background: linear-gradient(135deg, #f5e0c8, #ecd0b0);
  border: 1px solid #dcc0a0; color: #b8500a;
}
.bh-r3 .bh-likes svg { fill: #dc2626; }
.bh-item:hover .bh-likes {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(212,160,23,0.15);
}
.bh-likes svg { width: 13px; height: 13px; fill: #ef4444; }

/* 모바일 */
@media (max-width: 560px) {
  .bh-header { padding: 10px 14px; }
  .bh-header-sub { display: none; }
  .bh-header-icon { width: 26px; height: 26px; border-radius: 6px; }
  .bh-header-icon svg { width: 14px; height: 14px; }
  .bh-item { padding: 11px 12px; gap: 10px; }
  .bh-rank { width: 24px; height: 24px; font-size: 0.68rem; border-radius: 6px; }
  .bh-title { font-size: 0.72rem; }
  .bh-bottom { font-size: 0.62rem; gap: 4px; }
  .bh-likes { padding: 4px 9px; font-size: 0.72rem; border-radius: 8px; }
  .bh-likes svg { width: 11px; height: 11px; }
  .bh-nick { max-width: 60px; }
  .bh-cmt { font-size: 0.5rem; padding: 0; }
  .bh-cmt svg { width: 8px; height: 8px; }
}

/* ── 게시판 (썸네일 리스트형) ── */
.board {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.board-row {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-decoration: none; color: inherit;
  transition: background 0.13s;
}
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: rgba(56,132,255,0.04); }

/* 운영자 공지 (상단 고정) */
.board-notice {
  background: linear-gradient(90deg, rgba(56,132,255,0.06), transparent);
  border-bottom: 1px solid rgba(56,132,255,0.1);
  padding-top: 10px; padding-bottom: 10px;
}
.board-notice:hover { background: linear-gradient(90deg, rgba(56,132,255,0.10), rgba(56,132,255,0.02)); }
.br-notice-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px 4px 8px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.02em;
  white-space: nowrap;
}
.br-notice-pill svg { width: 13px; height: 13px; }
.board-notice .br-title-text { font-weight: 800; }

.br-thumb {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
}
.br-thumb img { width: 100%; height: 100%; object-fit: cover; }
.br-thumb svg { width: 22px; height: 22px; }
.br-thumb-수익인증 { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; border-color: #fecaca; }
.br-thumb-팁과노하우 { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #6366f1; border-color: #c7d2fe; }
.br-thumb-자유게시판 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; border-color: #a7f3d0; }
.nb-thumb-공지 { background: rgba(56,132,255,0.1); color: #3884ff; }
.nb-thumb-업데이트 { background: rgba(13,148,136,0.1); color: #0d9488; }
.nb-thumb-이벤트 { background: rgba(236,72,153,0.1); color: #ec4899; }
.nb-thumb-프로모션 { background: rgba(245,158,11,0.12); color: #d97706; }
.br-photo {
  flex-shrink: 0; display: inline-flex; align-items: center; color: var(--text-muted);
}
.br-photo svg { width: 14px; height: 14px; }

.br-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.br-line1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.br-cat-badge {
  flex-shrink: 0; display: inline-block; padding: 2.5px 8px;
  font-size: 0.6rem; font-weight: 800; border-radius: var(--radius-full);
}
.br-cat-수익인증 { background: #fef2f2; color: var(--red); }
.br-cat-팁과노하우 { background: #f0f0ff; color: var(--purple); }
.br-cat-자유게시판 { background: #ecfdf5; color: var(--teal); }
.br-title-text {
  flex: 1; min-width: 0;
  font-size: 0.82rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-row:hover .br-title-text { color: var(--accent); }
.br-cmt-stat { color: var(--accent) !important; }
.br-cmt-stat svg { stroke: var(--accent); }
.br-line2 { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }
.br-lv {
  flex-shrink: 0; font-size: 0.56rem; font-weight: 800; color: #fff;
  padding: 1.5px 5px; border-radius: var(--radius-full); line-height: 1.3;
}
.br-lv-admin {
  background: linear-gradient(90deg, #ff3c78, #ff6b3d, #fbbf24, #34d399, #60a5fa, #a78bfa, #ff3c78) !important;
  background-size: 300% 100% !important;
  animation: adminRainbow 4s linear infinite, adminPulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255,60,120,0.5), 0 0 3px rgba(255,107,61,0.3);
  font-weight: 900; letter-spacing: 0.04em;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.3) !important;
}
@keyframes adminRainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes adminPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,60,120,0.4), 0 0 2px rgba(255,107,61,0.2); }
  50% { box-shadow: 0 0 16px rgba(255,60,120,0.7), 0 0 6px rgba(251,191,36,0.4), 0 0 20px rgba(167,139,250,0.25); }
}
.br-lv-god {
  background: linear-gradient(135deg, #d4a017, #f5c842, #e8a90e) !important;
  box-shadow: 0 0 8px rgba(212,160,23,0.5), 0 0 2px rgba(245,200,66,0.35);
  font-weight: 900; letter-spacing: 0.03em;
  animation: godGlow 2.5s ease-in-out infinite;
}
@keyframes godGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(212,160,23,0.45); }
  50% { box-shadow: 0 0 16px rgba(245,200,66,0.7), 0 0 4px rgba(212,160,23,0.4); }
}
.br-nick-god {
  color: #b8860b !important; font-weight: 900;
  -webkit-text-fill-color: initial;
}
/* Lv.91~99 딥레드 은은한 글로우 */
.br-lv-high {
  box-shadow: 0 0 6px rgba(190,18,60,0.35);
}
.br-nick {
  font-size: 0.72rem; font-weight: 600; color: var(--text-sec);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px;
}
.br-nick-admin {
  background: linear-gradient(90deg, #ff3c78, #ff6b3d, #fbbf24, #34d399, #60a5fa, #a78bfa, #ff3c78) !important;
  background-size: 300% 100%;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: adminRainbow 4s linear infinite;
  font-weight: 900;
}

.pm-lv-admin {
  background: linear-gradient(90deg, #ff3c78, #fbbf24, #34d399, #60a5fa, #ff3c78) !important;
  background-size: 300% 100%;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: adminRainbow 4s linear infinite;
  font-weight: 800;
}
.na-author { display: inline-flex; align-items: center; gap: 6px; }
.na-nick { font-size: 0.82rem; font-weight: 800; color: var(--text); }
.br-meta-dot { color: var(--text-muted); opacity: 0.4; }
.br-date { font-size: 0.74rem; color: var(--text-muted); font-weight: 500; }
.br-stat {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.74rem; font-weight: 600; color: var(--text-muted);
}
.br-stat svg { width: 13px; height: 13px; }
.br-like { color: var(--red); }

.board .forum-empty { padding: 48px 20px; }
.forum-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 48px 20px; text-align: center; color: var(--text-muted);
}
.forum-empty svg { width: 36px; height: 36px; opacity: 0.3; }
.forum-empty p { font-size: 0.84rem; margin: 0; }
.forum-empty-btn {
  font-size: 0.78rem; font-weight: 700; color: #fff; padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 9px; transition: var(--transition);
}
.forum-empty-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(56,132,255,0.3); color: #fff; }

/* ── 페이지네이션 ── */
.forum-pager {
  display: flex; justify-content: center; align-items: center;
  gap: 4px; margin-top: 18px;
}
.fp-btn {
  min-width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); background: var(--white);
  transition: var(--transition);
}
.fp-btn:hover { border-color: var(--accent); color: var(--accent); }
.fp-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.fp-prev, .fp-next { font-size: 1rem; }
.fp-dots { padding: 0 4px; color: var(--text-muted); font-size: 0.8rem; }

@media (max-width: 560px) {
  .forum-controls { flex-direction: column; align-items: stretch; gap: 8px; }
  .forum-search-input { width: 100%; }
  .board-row { padding: 11px 12px; gap: 11px; }
  .br-thumb { width: 46px; height: 46px; border-radius: 10px; }
  .br-thumb svg { width: 18px; height: 18px; }
  .br-notice-pill { padding: 3px 9px 3px 6px; font-size: 0.6rem; }
  .br-notice-pill svg { width: 12px; height: 12px; }
  .br-main { gap: 3px; }
  .br-line1 { gap: 5px; }
  .br-cat-badge { padding: 2px 6px; font-size: 0.54rem; }
  .br-title-text { font-size: 0.76rem; font-weight: 600; }
  .br-lv { font-size: 0.48rem; padding: 1px 4px; }
  .br-nick { font-size: 0.62rem; max-width: 90px; }
  .br-line2 { gap: 4px; font-size: 0.6rem; }
  .br-date { font-size: 0.6rem; }
  .br-meta-dot { font-size: 0.5rem; }
  .br-stat { font-size: 0.6rem; }
  .br-stat svg { width: 10px; height: 10px; }
  .forum-tabs { padding: 3px; gap: 3px; }
  .forum-tab { padding: 7px 10px; font-size: 0.7rem; }
  .forum-tab svg { width: 12px; height: 12px; }
}

/* ─── MYPAGE ──────────────────────────────────────────────── */
.mp { max-width: 1120px; margin: 0 auto; padding: 24px 16px 60px; }

/* ── 프로필 히어로 ── */
.mp-hero {
  position: relative; border-radius: 20px; overflow: hidden;
  margin-bottom: 18px;
}
.mp-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #3b82f6 100%);
}
.mp-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(99,102,241,0.4), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(56,189,248,0.3), transparent 50%);
}
.mp-hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 20px;
  padding: 28px 28px 24px;
  flex-wrap: wrap;
}
.mp-hero-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 200px; }

.mp-lv-badge {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--lv-color);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.mp-lv-num { font-size: 1.2rem; font-weight: 900; color: #fff; line-height: 1; }
.mp-lv-badge::after {
  content: 'LEVEL'; font-size: 0.42rem; font-weight: 700; color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em; margin-top: 1px;
}
.mp-lv-max {
  background: linear-gradient(135deg, #d4a017, #f5c842, #e8a90e) !important;
  box-shadow: 0 6px 20px rgba(212,160,23,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: mpBadgeGlow 2.5s ease-in-out infinite;
}
.mp-lv-max::after { content: ''; display: none; }
.mp-lv-max .mp-lv-num { font-size: 0.72rem; }
@keyframes mpBadgeGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(212,160,23,0.35); }
  50% { box-shadow: 0 4px 24px rgba(245,200,66,0.6), 0 0 6px rgba(212,160,23,0.3); }
}
.mp-grade-max {
  background: linear-gradient(135deg, #d4a017, #f5c842) !important;
  color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: mpBadgeGlow 2.5s ease-in-out infinite;
}

/* 관리자 전용 레인보우 반짝이 */
.mp-lv-admin {
  background: linear-gradient(90deg, #ff3c78, #ff6b3d, #fbbf24, #34d399, #60a5fa, #a78bfa, #ff3c78) !important;
  background-size: 300% 100% !important;
  animation: adminRainbow 4s linear infinite, adminPulse 2s ease-in-out infinite;
  box-shadow: 0 6px 24px rgba(255,60,120,0.4), inset 0 1px 0 rgba(255,255,255,0.35);
}
.mp-lv-admin .mp-lv-num { font-size: 0.72rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.mp-grade-admin {
  background: linear-gradient(90deg, #ff3c78, #ff6b3d, #fbbf24, #34d399, #60a5fa, #a78bfa, #ff3c78) !important;
  background-size: 300% 100% !important;
  color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  animation: adminRainbow 4s linear infinite, adminPulse 2s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.3) !important;
}
.mp-exp-admin {
  background: linear-gradient(90deg, #ff3c78, #fbbf24, #34d399, #60a5fa, #ff3c78) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: adminRainbow 4s linear infinite;
}

.mp-hero-info { min-width: 0; }
.mp-hero-name {
  font-size: 1.15rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.mp-grade {
  font-size: 0.58rem; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  background: rgba(255,255,255,0.15); color: var(--lv-color);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.mp-hero-uid { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

.mp-hero-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 12px; flex-shrink: 0;
}
.mp-hero-stats {
  display: flex; gap: 0; flex-shrink: 0;
}
.mp-exchange-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; text-decoration: none;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all .2s;
}
.mp-exchange-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245,158,11,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
  color: #fff;
}
.mp-exchg-ico {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18); border-radius: 8px;
}
.mp-exchg-ico svg { width: 16px; height: 16px; stroke: #fff; }
.mp-exchg-body { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.mp-exchg-body strong { font-size: 0.82rem; font-weight: 800; letter-spacing: -0.01em; }
.mp-exchg-body small { font-size: 0.62rem; font-weight: 500; color: rgba(255,255,255,0.75); }
.mp-exchg-arrow { width: 16px; height: 16px; stroke: rgba(255,255,255,0.7); flex-shrink: 0; transition: transform .2s; }
.mp-exchange-btn:hover .mp-exchg-arrow { transform: translateX(3px); stroke: #fff; }
.mp-hstat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px; position: relative;
}
.mp-hstat + .mp-hstat::before {
  content: ''; position: absolute; left: 0; top: 10%; bottom: 10%;
  width: 1px; background: rgba(255,255,255,0.12);
}
.mp-hstat-num { font-size: 1.15rem; font-weight: 900; color: #fff; }
.mp-hstat-lbl { font-size: 0.58rem; font-weight: 600; color: rgba(255,255,255,0.5); margin-top: 2px; letter-spacing: 0.02em; }

/* ── 경험치 게이지 ── */
.mp-exp-bar {
  margin-bottom: 14px; padding: 12px 18px; border-radius: 12px;
  background: var(--bg-input); border: 1px solid var(--border);
}
.mp-exp-info {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.mp-exp-lv { font-size: 0.78rem; font-weight: 900; }
.mp-exp-text { flex: 1; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.mp-exp-pct { font-size: 0.7rem; font-weight: 800; color: var(--text); }
.mp-exp-track {
  width: 100%; height: 6px; border-radius: 6px;
  background: var(--border); overflow: hidden;
}
.mp-exp-fill {
  height: 100%; border-radius: 6px;
  transition: width 0.6s ease;
}
.mp-exp-fill-max {
  background: linear-gradient(90deg, #d4a017, #f5c842, #d4a017) !important;
  background-size: 200% 100% !important;
  animation: mpMaxShine 3s linear infinite;
}
.mp-exp-fill-admin {
  background: linear-gradient(90deg, #ff3c78, #ff6b3d, #fbbf24, #34d399, #60a5fa, #a78bfa, #ff3c78) !important;
  background-size: 300% 100% !important;
  animation: adminRainbow 4s linear infinite;
  box-shadow: 0 0 8px rgba(255,60,120,0.3);
}
@keyframes mpMaxShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mp-exp-max-text {
  background: linear-gradient(90deg, #d4a017, #f5c842, #d4a017);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: mpMaxShine 3s linear infinite;
  font-weight: 900 !important;
}
.mp-exp-remain {
  display: block; margin-top: 4px;
  font-size: 0.6rem; color: rgba(255,255,255,0.3); text-align: right;
}

/* ── 정보 칩 그리드 ── */
.mp-info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 18px;
}
.mp-info-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.mp-info-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.mp-info-chip svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; opacity: 0.6; }
.mp-chip-body { min-width: 0; }
.mp-chip-label { display: block; font-size: 0.58rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mp-chip-val { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-lv-inline {
  display: inline-block; font-size: 0.56rem; font-weight: 800; color: #fff;
  padding: 1px 7px; border-radius: 4px; margin-right: 4px;
}

/* ── 탭 바 ── */
.mp-tabbar {
  display: flex; gap: 6px; margin-bottom: 16px;
  background: var(--bg); border-radius: 12px; padding: 4px;
  border: 1px solid var(--border);
}
.mp-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 0; font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted); border-radius: 9px;
  transition: var(--transition);
}
.mp-tab svg { width: 15px; height: 15px; opacity: 0.5; }
.mp-tab b { font-size: 0.65rem; font-weight: 800; opacity: 0.6; }
.mp-tab:hover { color: var(--text); background: rgba(255,255,255,0.6); }
.mp-tab.on {
  background: var(--white); color: var(--accent);
  box-shadow: 0 2px 8px rgba(56,132,255,0.12);
}
.mp-tab.on svg { opacity: 1; color: var(--accent); }
.mp-tab.on b { opacity: 1; }

/* ── 리스트 패널 ── */
.mp-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}

.mp-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}
.mp-row:last-child { border-bottom: none; }
.mp-row:hover { background: rgba(56,132,255,0.015); }

.mp-row-main { flex: 1; min-width: 0; }
.mp-row-title {
  display: block; font-size: 0.85rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.15s;
}
.mp-row-title:hover { color: var(--accent); }
.mp-cmt-txt {
  white-space: normal; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.82rem;
}
.mp-row-sub {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
  font-size: 0.66rem; color: var(--text-muted);
}
.mp-badge {
  font-weight: 700; padding: 1px 8px; border-radius: 4px; font-size: 0.58rem;
}
.mp-badge[data-cat="수익인증"] { background: #fef2f2; color: var(--red); }
.mp-badge[data-cat="팁과노하우"] { background: #eff6ff; color: var(--accent); }
.mp-badge[data-cat="자유게시판"] { background: #ecfdf5; color: var(--teal); }
.mp-origin { color: var(--accent); font-weight: 600; }

.mp-row-acts { display: flex; gap: 5px; flex-shrink: 0; }
.mp-btn-sm {
  font-size: 0.66rem; font-weight: 700; padding: 5px 13px;
  border-radius: 7px; border: none; cursor: pointer;
  transition: var(--transition);
}
.mp-btn-edit { background: var(--bg); color: var(--text-sec); border: 1px solid var(--border); }
.mp-btn-edit:hover { border-color: var(--accent); color: var(--accent); background: #eff6ff; }
.mp-btn-del { background: #fef2f2; color: var(--red); }
.mp-btn-del:hover { background: #fee2e2; }

/* 포인트 탭 */
.mp-pts-summary {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(16,185,129,0.04), rgba(56,132,255,0.03));
}
.mp-pts-bal { display: flex; align-items: center; justify-content: space-between; }
.mp-pts-bal-label { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); }
.mp-pts-bal-num { font-size: 1.4rem; font-weight: 900; color: var(--teal); }
.mp-pts-bal-num small { font-size: 0.75rem; font-weight: 700; opacity: 0.7; }

.mp-row-pt { align-items: center; }
.mp-pt-reason { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.mp-pt-amount {
  font-size: 0.88rem; font-weight: 800; flex-shrink: 0; white-space: nowrap;
}
.mp-pt-amount.plus { color: var(--teal); }
.mp-pt-amount.minus { color: var(--red); }

/* ── 빈 상태 ── */
.mp-empty { padding: 52px 20px; text-align: center; }
.mp-empty-ico { font-size: 2.2rem; margin-bottom: 12px; opacity: 0.5; }
.mp-empty p { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 6px; }
.mp-empty-hint { display: block; font-size: 0.7rem; color: var(--text-muted); opacity: 0.7; margin-bottom: 16px; }
.mp-btn-primary {
  display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 10px 24px;
  border-radius: 10px; background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff; transition: var(--transition);
  box-shadow: 0 4px 14px rgba(56,132,255,0.25);
}
.mp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(56,132,255,0.35); color: #fff; }

/* ── 페이지네이션 ── */
.mp-pager { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.mp-pg {
  min-width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.76rem; font-weight: 600; border-radius: 9px;
  border: 1px solid var(--border); color: var(--text-muted);
  background: var(--white); transition: var(--transition);
}
.mp-pg:hover { border-color: var(--accent); color: var(--accent); }
.mp-pg.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(56,132,255,0.2); }
.mp-pg-dot { padding: 0 4px; color: var(--text-muted); font-size: 0.78rem; display: flex; align-items: center; }

/* ── 모바일 반응형 ── */
@media (max-width: 768px) {
  .mp-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mp-hero-content { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 18px; }
  .mp-hero-right { width: 100%; align-items: stretch; gap: 10px; }
  .mp-hero-stats {
    width: 100%; justify-content: space-around;
    padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .mp-hstat { padding: 0 10px; }
  .mp-exchange-btn { width: 100%; justify-content: center; padding: 12px 16px; }
  .mp-info-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mp-info-chip { padding: 10px 12px; }
  .mp-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px; }
  .mp-row-acts { align-self: flex-end; }
  .mp-tabbar { gap: 4px; padding: 3px; }
  .mp-tab { font-size: 0.72rem; padding: 9px 0; }
  .mp-tab svg { width: 13px; height: 13px; }
}

/* ─── POST DETAIL ─────────────────────────────────────────── */
.post-detail-wrap { padding: 28px 16px 60px; max-width: 860px; }
.post-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 20px; }
.post-breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }
.post-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.post-cat-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }
.post-cat-badge.cat-수익인증 { background: #fef2f2; color: var(--red); }
.post-cat-badge.cat-팁과노하우 { background: #eff6ff; color: var(--accent); }
.post-cat-badge.cat-자유게시판 { background: #ecfdf5; color: var(--teal); }
.post-title { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.post-meta-row { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; }
.post-sep { opacity: 0.3; }
.post-body { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; font-size: 0.9rem; line-height: 1.85; color: var(--text-sec); margin-bottom: 20px; white-space: pre-wrap; word-break: break-word; box-shadow: var(--shadow-sm); }
.post-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.btn-like { background: var(--accent); color: #fff; font-size: 0.82rem; font-weight: 600; padding: 9px 18px; border-radius: var(--radius); border: none; cursor: pointer; transition: var(--transition); }
.btn-like:hover { background: var(--accent-hover); color: #fff; }
.btn-like.liked { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.btn-delete { border: 1px solid #fecaca; color: var(--red); font-size: 0.8rem; font-weight: 600; padding: 8px 14px; border-radius: var(--radius); background: var(--white); transition: var(--transition); }
.btn-delete:hover { background: #fef2f2; }
.btn-back-list { background: var(--white); border: 1.5px solid var(--border); color: var(--text-sec); font-size: 0.8rem; font-weight: 600; padding: 9px 16px; border-radius: var(--radius); margin-left: auto; transition: var(--transition); }
.btn-back-list:hover { border-color: var(--accent); color: var(--accent); }

/* ─── COMMENTS ────────────────────────────────────────────── */
.comments-section { border-top: 1.5px solid var(--border); padding-top: 24px; }
.comments-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.comments-count { color: var(--accent); }
.comments-list { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.comment-item { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.comment-date { font-size: 0.7rem; color: var(--text-muted); }
.btn-del-comment { font-size: 0.68rem; color: var(--red); margin-left: auto; padding: 2px 6px; border-radius: 4px; }
.btn-del-comment:hover { background: #fef2f2; }
.comment-body { font-size: 0.84rem; color: var(--text-sec); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.no-comments { text-align: center; padding: 36px; color: var(--text-muted); background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); margin-bottom: 20px; }
.comment-form { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.comment-form-header { margin-bottom: 10px; }
.comment-form-user { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.comment-textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.85rem; color: var(--text); background: var(--bg-input); resize: vertical; transition: var(--transition); }
.comment-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--white); }
.comment-form-footer { display: flex; justify-content: flex-end; margin-top: 10px; }
.btn-comment-submit { background: var(--accent); color: #fff; font-size: 0.82rem; font-weight: 600; padding: 8px 18px; border-radius: var(--radius); transition: var(--transition); }
.btn-comment-submit:hover { background: var(--accent-hover); }
.comment-login-prompt { text-align: center; padding: 20px; }
.btn-comment-login { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; padding: 10px 22px; border-radius: var(--radius); }
.btn-comment-login:hover { background: var(--accent-hover); color: #fff; }
.post-nav { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); gap: 10px; }
.btn-to-list, .btn-to-write { font-size: 0.82rem; font-weight: 600; padding: 9px 18px; border-radius: var(--radius); transition: var(--transition); }
.btn-to-list { border: 1.5px solid var(--border); color: var(--text-sec); background: var(--white); }
.btn-to-list:hover { border-color: var(--accent); color: var(--accent); }
.btn-to-write { background: var(--accent); color: #fff; }
.btn-to-write:hover { background: var(--accent-hover); color: #fff; }

/* ─── WRITE FORM ──────────────────────────────────────────── */
.write-wrap { padding: 28px 16px 60px; max-width: 860px; }
.write-form { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 16px; }
.form-label { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; color: var(--text-sec); margin-bottom: 7px; }
.req { color: var(--red); font-size: 0.7rem; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 0.88rem; color: var(--text); background: var(--bg-input); transition: var(--transition); }
.form-textarea { resize: vertical; min-height: 240px; line-height: 1.7; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--white); transform: translateY(-1px); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.write-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-cancel { font-size: 0.85rem; font-weight: 600; padding: 10px 20px; border-radius: var(--radius); border: 1.5px solid var(--border); color: var(--text-muted); background: var(--white); transition: var(--transition); }
.btn-cancel:hover { border-color: var(--border-dark); color: var(--text-sec); }
.btn-submit-post { font-size: 0.85rem; font-weight: 700; padding: 10px 24px; border-radius: var(--radius); background: var(--accent); color: #fff; border: none; transition: var(--transition); }
.btn-submit-post:hover { background: var(--accent-hover); }

/* ─── AUTH ─────────────────────────────────────────────────── */
/* ─── AUTH PAGES (로그인 / 회원가입) ────────────────────────── */
.auth-wrap {
  padding: 28px 16px 48px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(70,130,200,0.12), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(135,206,235,0.3);
}

.auth-header {
  position: relative;
  padding: 24px 24px 18px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.2) 100%),
    url('../img/body-bg-sky.png') center 30% / cover no-repeat;
}

.auth-logo { margin-bottom: 8px; display: flex; justify-content: center; }
.logo-img-auth-game { height: 68px; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2)) drop-shadow(0 0 14px rgba(255,200,60,0.25)); }

.auth-badge {
  display: inline-block;
  padding: 4px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4a9eff, #3884ff);
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(56,132,255,0.3);
}

.auth-badge-signup {
  background: linear-gradient(135deg, #7c5cfc, #6344e0);
  box-shadow: 0 2px 8px rgba(124,92,252,0.3);
}

.auth-desc {
  font-size: 0.74rem;
  color: rgba(30,60,100,0.65);
  margin: 0;
  line-height: 1.4;
}

.auth-body {
  background: var(--white);
  padding: 20px 24px 20px;
}

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

.form-ico { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.5; }

.form-hint {
  display: block;
  font-size: 0.64rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding-left: 1px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-msg {
  display: none;
  font-size: 0.64rem;
  font-weight: 600;
  margin-top: 4px;
  padding-left: 2px;
  line-height: 1.3;
}
.field-msg.show { display: block; }
.field-msg.ok { color: var(--teal); }
.field-msg.ok::before { content: '✓ '; }
.field-msg.err { color: var(--red); }
.field-msg.err::before { content: '✕ '; }

.pw-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.pw-meter-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.pw-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pw-meter-label {
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 38px;
  text-align: right;
}

.pw-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.pw-rules li {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.15s;
}
.pw-rules li.pass { color: var(--teal); }
.pw-rule-ico { font-size: 0.52rem; }

.form-group-tight { margin-bottom: 10px; }

.btn-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4a9eff 0%, #3884ff 50%, #2568db 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(56,132,255,0.28);
}
.btn-auth-submit svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.btn-auth-submit:hover { box-shadow: 0 5px 18px rgba(56,132,255,0.38); transform: translateY(-1px); }
.btn-auth-submit:hover svg { transform: translateX(3px); }
.btn-auth-submit:active { transform: translateY(0); }

.btn-auth-signup {
  background: linear-gradient(135deg, #7c5cfc 0%, #6344e0 100%);
  box-shadow: 0 3px 12px rgba(124,92,252,0.28);
}
.btn-auth-signup:hover { box-shadow: 0 5px 18px rgba(124,92,252,0.38); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  margin: 0;
  background: var(--white);
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 0.68rem; font-weight: 500; color: var(--text-muted); }

.auth-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 24px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--white);
}
.auth-link { color: var(--accent); font-weight: 700; }
.auth-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { border-radius: 16px; max-width: 100%; }
  .auth-header { padding: 20px 18px 14px; }
  .auth-body { padding: 16px 18px 16px; }
  .auth-divider { padding: 0 18px; }
  .auth-links { padding: 10px 18px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .logo-img-auth-game { height: 56px; }
}

/* ─── INFO PAGES ──────────────────────────────────────────── */
/* ════════════════════════════════════════════════════════════
   통합 페이지 디자인 시스템 (메인 demo-hero 컨셉 기반)
   ════════════════════════════════════════════════════════════ */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px 64px; overflow: hidden; }

/* ── 통합 히어로 배너 ── */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(20,12,45,0.78) 0%, rgba(40,20,75,0.6) 45%, rgba(70,28,95,0.42) 100%),
    url('../img/demo-hero-bg.png') center 40% / cover no-repeat;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 8px 26px -10px rgba(50,20,90,0.5);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 12% 85%, rgba(124,92,252,0.3), transparent 55%),
    radial-gradient(ellipse at 88% 15%, rgba(56,189,248,0.22), transparent 55%);
}
.page-hero-text { position: relative; z-index: 1; min-width: 0; }
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(52,211,153,0.95);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  margin-bottom: 9px;
}
.page-hero-badge i {
  width: 5px; height: 5px; border-radius: 50%; background: #fff;
  animation: heroPulse 1.6s infinite;
}
.page-hero-badge.bd-gold { background: linear-gradient(135deg,#f59e0b,#f97316); }
.page-hero-badge.bd-blue { background: linear-gradient(135deg,#3884ff,#6366f1); }
.page-hero-badge.bd-pink { background: linear-gradient(135deg,#ec4899,#f43f5e); }
.page-hero-badge.bd-teal { background: linear-gradient(135deg,#0d9488,#10b981); }
.page-hero-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(30,12,55,0.55);
}
.page-hero-title .gold {
  background: linear-gradient(100deg, #ffe17d 0%, #ffb347 50%, #ff7eb3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero-sub {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.72);
  margin: 0;
  text-shadow: 0 1px 6px rgba(30,12,55,0.5);
  line-height: 1.5;
}
.page-hero-cta {
  position: relative; overflow: hidden; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px;
  font-size: 0.82rem; font-weight: 800;
  color: #7a2e52;
  background: linear-gradient(135deg, #fff7fb 0%, #ffd9ec 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 6px 16px -6px rgba(255,105,180,0.6);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  z-index: 1;
}
.page-hero-cta b { font-weight: 900; transition: transform 0.16s ease; }
.page-hero-cta:hover { transform: translateY(-1px); color: #7a2e52; box-shadow: 0 10px 22px -8px rgba(255,105,180,0.8); }
.page-hero-cta:hover b { transform: translateX(3px); }
.page-hero-cta.cta-blue { color: #fff; background: linear-gradient(135deg,#3884ff,#6366f1); box-shadow: 0 6px 16px -6px rgba(56,132,255,0.6); }
.page-hero-cta.cta-blue:hover { color: #fff; }

/* 히어로 우측 통계 묶음 */
.page-hero-stats { position: relative; z-index: 1; display: flex; gap: 0; flex-shrink: 0; }
.ph-stat { display: flex; flex-direction: column; align-items: center; padding: 0 18px; position: relative; }
.ph-stat + .ph-stat::before { content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: rgba(255,255,255,0.14); }
.ph-stat-num { font-size: 1.25rem; font-weight: 900; color: #fff; }
.ph-stat-lbl { font-size: 0.58rem; font-weight: 600; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ── 통합 섹션 카드 ── */
.sec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.sc-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.98rem; font-weight: 800; color: var(--text);
  margin: 0 0 16px;
}
.sc-title .sc-bar { width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg,var(--accent),#6366f1); }

@media (max-width: 640px) {
  .page-hero { padding: 20px 18px; gap: 12px; }
  .page-hero-title { font-size: 1.2rem; }
  .page-hero-sub { font-size: 0.76rem; }
  .page-hero-cta { width: 100%; justify-content: center; }
  .page-hero-stats { width: 100%; justify-content: space-around; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.12); }
  .sec-card { padding: 18px 16px; }
}

/* ── 레거시 page-header 폴백 (통합 톤으로) ── */
.page-header { text-align: center; margin-bottom: 22px; }
.page-title { font-size: 1.4rem; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.page-subtitle { font-size: 0.84rem; color: var(--text-muted); }

/* ── 출석체크 페이지 ── */
.ck-page { max-width: 1120px; }

/* 액션 카드 */
.ck-action-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 0; margin-bottom: 14px; overflow: hidden;
}
.ck-status { padding: 28px 24px 20px; }

.ck-status-login {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.ck-status-login > svg { width: 28px; height: 28px; color: var(--text-muted); opacity: 0.5; }
.ck-status-text { display: flex; flex-direction: column; gap: 3px; }
.ck-status-text strong { font-size: 0.92rem; color: var(--text); }
.ck-status-text span { font-size: 0.78rem; color: var(--text-muted); }

.ck-status-done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ck-done-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px -6px rgba(16,185,129,0.5);
  animation: ckPop 0.5s ease-out;
}
@keyframes ckPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ck-done-icon svg { width: 26px; height: 26px; color: #fff; }
.ck-done-info strong { font-size: 1rem; font-weight: 900; color: var(--text); display: block; margin-bottom: 4px; }
.ck-done-info p { font-size: 0.82rem; color: var(--text-sec); margin: 0; }
.ck-done-info b { color: var(--accent); font-weight: 800; }
.ck-total { color: var(--text-muted); font-size: 0.74rem; }

.ck-done-stats {
  display: flex; align-items: center; gap: 0; width: 100%;
  background: var(--bg); border-radius: 12px; padding: 14px 0;
}
.ck-ds { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ck-ds-num { font-size: 1.1rem; font-weight: 900; color: var(--accent); }
.ck-ds-lbl { font-size: 0.64rem; font-weight: 600; color: var(--text-muted); }
.ck-ds-sep { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

.ck-status-ready { display: flex; flex-direction: column; gap: 16px; }
.ck-ready-top { display: flex; align-items: center; gap: 14px; }
.ck-ready-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(56,132,255,0.5);
}
.ck-ready-icon svg { width: 24px; height: 24px; color: #fff; }
.ck-ready-info { display: flex; flex-direction: column; gap: 3px; }
.ck-ready-info strong { font-size: 0.96rem; font-weight: 900; color: var(--text); }
.ck-reward-num { color: var(--teal); }
.ck-ready-info span { font-size: 0.76rem; color: var(--text-muted); }
.ck-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 0; border-radius: 12px;
  font-size: 0.92rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  cursor: pointer; transition: var(--transition); border: none;
  box-shadow: 0 6px 18px -6px rgba(56,132,255,0.55);
}
.ck-btn svg { width: 18px; height: 18px; }
.ck-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(56,132,255,0.75); color: #fff; }
.ck-ready-stats {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.74rem; color: var(--text-muted);
}
.ck-ready-stats b { color: var(--text-sec); font-weight: 700; }
.ck-rdot { opacity: 0.35; }

.ck-reward-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px;
  background: var(--bg); border-top: 1px solid var(--border);
}
.ck-rb-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ck-rb-label { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); }
.ck-rb-val { font-size: 0.82rem; font-weight: 800; color: var(--accent); }
.ck-rb-max .ck-rb-val { color: var(--teal); }
.ck-rb-sep { font-size: 0.72rem; font-weight: 800; color: var(--text-muted); opacity: 0.4; }

/* 캘린더 카드 */
.ck-cal-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px; margin-bottom: 14px;
}
.ck-cal-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 800; color: var(--text);
  margin-bottom: 18px;
}
.ck-cal-header svg { width: 18px; height: 18px; color: var(--accent); }
.ck-cal-count { color: var(--accent); font-size: 0.78rem; margin-left: auto; }

.ck-cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-bottom: 4px;
}
.ck-cal-week span {
  text-align: center; font-size: 0.6rem; font-weight: 700; color: var(--text-muted);
  padding: 3px 0;
}
.ck-cal-week .ck-sun { color: var(--red); }
.ck-cal-week .ck-sat { color: var(--accent); }

.ck-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ck-day {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600; color: var(--text-sec);
  border-radius: 10px; background: var(--bg);
  position: relative; gap: 1px; overflow: hidden;
}
.ck-day.ck-blank { background: transparent; }
.ck-day-num { font-size: 0.72rem; font-weight: 600; position: relative; z-index: 1; line-height: 1; }

/* ── 한글 "출석" 레드 도장 ── */
.ck-day.ck-stamped { background: var(--bg); }
.ck-day.ck-stamped .ck-day-num { color: var(--text-muted); font-size: 0.52rem; opacity: 0.7; }
.ck-stamp-txt {
  font-size: 0.42rem; font-weight: 900; color: #dc2626;
  border: 2px solid #dc2626; border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  opacity: 0.82;
  letter-spacing: -0.3px;
}

.ck-day.ck-today {
  border: 2px solid var(--accent); color: var(--accent); font-weight: 800;
  background: color-mix(in srgb, var(--accent) 8%, var(--white));
}
.ck-day.ck-stamped.ck-today {
  border-color: #059669;
  box-shadow: 0 2px 10px -2px rgba(5,150,105,0.55);
}

.ck-cal-legend {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 14px; font-size: 0.66rem; color: var(--text-muted);
}
.ck-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ck-cal-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ck-lg-stamp { border: 1.5px solid #dc2626; background: rgba(220,38,38,0.08); }
.ck-lg-today { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--white)); }

/* ── 오늘 출석 유저 목록 ── */
.ck-list-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.ck-list-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 800; color: var(--text);
  padding: 18px 22px 0;
}
.ck-list-header svg { width: 18px; height: 18px; color: var(--accent); }
.ck-list-count { color: var(--accent); font-size: 0.78rem; margin-left: auto; }

.ck-list-body {
  padding: 14px 16px 10px;
  max-height: 420px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.ck-list-body::-webkit-scrollbar { width: 5px; }
.ck-list-body::-webkit-scrollbar-track { background: transparent; }
.ck-list-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.ck-list-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px; border-radius: 8px;
  transition: background 0.15s;
}
.ck-list-row:hover { background: var(--bg); }
.ck-list-row + .ck-list-row { border-top: 1px solid var(--border); }
.ck-list-row:hover + .ck-list-row { border-top-color: transparent; }

.ck-rank {
  width: 28px; text-align: center; flex-shrink: 0;
  font-size: 0.72rem; font-weight: 800; color: var(--text-muted);
}
.ck-rank.ck-r1, .ck-rank.ck-r2, .ck-rank.ck-r3 { font-size: 0.92rem; }

.ck-list-lv {
  font-size: 0.62rem; font-weight: 800;
  padding: 2px 5px; border-radius: 4px;
  background: var(--bg); flex-shrink: 0;
}
.ck-list-nick {
  font-size: 0.78rem; font-weight: 700; color: var(--text);
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ck-nick-admin { color: var(--slate); }
.ck-list-time {
  font-size: 0.66rem; font-weight: 600; color: var(--text-muted);
  flex-shrink: 0;
}

.ck-rank-me {
  background: color-mix(in srgb, var(--accent) 6%, var(--white));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.ck-rank-me + .ck-list-row { border-top-color: transparent; }

.ck-list-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 36px 20px; color: var(--text-muted);
}
.ck-list-empty svg { width: 32px; height: 32px; opacity: 0.35; }
.ck-list-empty span { font-size: 0.78rem; }

/* 페이지네이션 */
.ck-list-pager {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}
.ck-pg-btn, .ck-pg-num {
  padding: 5px 10px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700; color: var(--text-sec);
  transition: var(--transition);
}
.ck-pg-btn:hover, .ck-pg-num:hover { background: var(--bg); color: var(--accent); }
.ck-pg-num.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 6px -2px rgba(56,132,255,0.4);
}
.ck-pg-dots { font-size: 0.7rem; color: var(--text-muted); padding: 0 2px; }

/* ── 모바일 ── */
@media (max-width: 560px) {
  .ck-page { padding-left: 10px; padding-right: 10px; }
  .ck-action-card { border-radius: 14px; }
  .ck-status { padding: 22px 18px 16px; }
  .ck-done-icon { width: 48px; height: 48px; }
  .ck-done-icon svg { width: 22px; height: 22px; }
  .ck-done-info strong { font-size: 0.94rem; }
  .ck-done-info p { font-size: 0.78rem; }
  .ck-done-stats { padding: 12px 0; border-radius: 10px; }
  .ck-ds-num { font-size: 0.96rem; }
  .ck-ds-lbl { font-size: 0.58rem; }
  .ck-ds-sep { height: 22px; }
  .ck-ready-icon { width: 42px; height: 42px; border-radius: 12px; }
  .ck-ready-icon svg { width: 20px; height: 20px; }
  .ck-ready-info strong { font-size: 0.9rem; }
  .ck-ready-info span { font-size: 0.72rem; }
  .ck-btn { padding: 13px 0; font-size: 0.88rem; border-radius: 10px; }
  .ck-btn svg { width: 16px; height: 16px; }
  .ck-ready-stats { font-size: 0.68rem; gap: 5px; }
  .ck-reward-bar { gap: 6px; padding: 12px 14px; }
  .ck-rb-label { font-size: 0.56rem; }
  .ck-rb-val { font-size: 0.74rem; }
  .ck-rb-sep { font-size: 0.66rem; }
  .ck-cal-card { padding: 16px 12px; border-radius: 14px; }
  .ck-cal-header { font-size: 0.82rem; margin-bottom: 14px; }
  .ck-cal-header svg { width: 16px; height: 16px; }
  .ck-cal-week span { font-size: 0.58rem; }
  .ck-cal-grid { gap: 3px; }
  .ck-day { font-size: 0.66rem; border-radius: 8px; }
  .ck-day-num { font-size: 0.62rem; }
  .ck-day.ck-stamped .ck-day-num { font-size: 0.44rem; }
  .ck-stamp-txt { width: 26px; height: 26px; font-size: 0.36rem; border-width: 1.5px; }
  .ck-list-body { max-height: 360px; }
  .ck-cal-legend { font-size: 0.6rem; gap: 12px; margin-top: 12px; }
  .ck-cal-legend i { width: 9px; height: 9px; }
  .ck-list-card { border-radius: 14px; }
  .ck-list-header { padding: 16px 16px 0; font-size: 0.82rem; }
  .ck-list-header svg { width: 16px; height: 16px; }
  .ck-list-body { padding: 12px 10px 8px; }
  .ck-list-row { padding: 7px 6px; gap: 6px; }
  .ck-rank { width: 24px; font-size: 0.66rem; }
  .ck-rank.ck-r1, .ck-rank.ck-r2, .ck-rank.ck-r3 { font-size: 0.82rem; }
  .ck-list-lv { font-size: 0.56rem; padding: 1px 4px; }
  .ck-list-nick { font-size: 0.72rem; }
  .ck-list-time { font-size: 0.6rem; }
  .ck-list-pager { padding: 10px 12px 14px; }
  .ck-pg-btn, .ck-pg-num { padding: 4px 8px; font-size: 0.64rem; }
}

/* ── 웨코 제휴 페이지 ── */
.partner-benefits {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.pb-card {
  padding: 18px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--border);
  transition: var(--transition);
}
.pb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--white); }
.pb-ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.pb-ico svg { width: 20px; height: 20px; }
.pb-ico-1 { background: linear-gradient(135deg,#10b981,#34d399); }
.pb-ico-2 { background: linear-gradient(135deg,#3884ff,#6366f1); }
.pb-ico-3 { background: linear-gradient(135deg,#f59e0b,#f97316); }
.pb-ico-4 { background: linear-gradient(135deg,#ec4899,#f43f5e); }
.pb-card h4 { font-size: 0.88rem; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.pb-card p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

.partner-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ps-step {
  position: relative; padding: 18px 14px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--border); text-align: center;
}
.ps-num {
  width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  box-shadow: 0 4px 10px -3px rgba(56,132,255,0.6);
}
.ps-body h4 { font-size: 0.82rem; font-weight: 800; color: var(--text); margin: 0 0 5px; }
.ps-body p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

.partner-cta {
  text-align: center; padding: 32px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #3b82f6 120%);
  position: relative; overflow: hidden;
}
.partner-cta::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(124,92,252,0.35), transparent 55%);
}
.partner-cta > * { position: relative; z-index: 1; }
.partner-cta h3 { font-size: 1.15rem; font-weight: 900; color: #fff; margin: 0 0 6px; }
.partner-cta p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin: 0 0 18px; }
.partner-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-full);
  font-size: 0.86rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  box-shadow: 0 8px 22px -8px rgba(42,171,238,0.8);
  transition: var(--transition);
}
.partner-cta-btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 28px -8px rgba(42,171,238,0.9); }

@media (max-width: 720px) {
  .partner-benefits { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pb-card { padding: 12px; border-radius: 10px; }
  .pb-ico { width: 32px; height: 32px; border-radius: 8px; margin-bottom: 8px; }
  .pb-ico svg { width: 16px; height: 16px; }
  .pb-card h4 { font-size: 0.76rem; margin-bottom: 4px; }
  .pb-card p { font-size: 0.66rem; line-height: 1.4; }
  .partner-steps { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ps-step { padding: 12px 10px; }
  .ps-num { width: 26px; height: 26px; font-size: 0.75rem; margin-bottom: 8px; }
  .ps-body h4 { font-size: 0.74rem; }
  .ps-body p { font-size: 0.64rem; }
  .partner-grid { gap: 8px; }
  .pc-content { padding: 8px 10px 10px; }
  .pc-name { font-size: 0.78rem; }
  .pc-tag { font-size: 0.52rem; }
  .pc-desc { font-size: 0.64rem; }
}
@media (max-width: 400px) {
  .pc-name { font-size: 0.74rem; }
  .pc-desc { font-size: 0.6rem; -webkit-line-clamp: 1; }
  .pb-card { padding: 10px; }
  .pb-card h4 { font-size: 0.72rem; }
  .pb-card p { font-size: 0.62rem; }
}

/* ── 섹션 헤더 (타이틀 + 액션) ── */
.sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sc-head .sc-title { margin: 0; }
.sc-add-btn {
  font-size: 0.78rem; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--border-accent);
  padding: 7px 14px; border-radius: var(--radius-full); cursor: pointer;
  transition: var(--transition);
}
.sc-add-btn:hover { background: var(--accent); color: #fff; }

/* ── 제휴 업체 카드 ── */
.partner-add-form {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; margin-bottom: 18px;
  background: var(--bg); border: 1px dashed var(--border-accent); border-radius: 14px;
}
.partner-add-form .paf-row { display: flex; gap: 10px; flex-wrap: wrap; }
.partner-add-form .paf-row > * { flex: 1; min-width: 140px; }
.paf-input {
  width: 100%; padding: 10px 13px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--white);
  color: var(--text); font-size: 0.85rem; outline: none;
}
.paf-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.paf-file {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 13px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--white);
  font-size: 0.82rem; color: var(--text-sec); font-weight: 600;
}
.paf-file input { display: none; }
.paf-submit {
  padding: 10px 22px; border-radius: 9px; border: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #3884ff, #10b981);
  flex: 0 0 auto !important;
}
.paf-submit:hover { filter: brightness(1.05); }

.partner-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 768px) {
  .partner-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.partner-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  transition: var(--transition); text-decoration: none; color: inherit;
}
.partner-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-accent); }
.pc-img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
}
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-content { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.pc-name { font-size: 0.85rem; font-weight: 800; color: var(--text); margin: 0 0 3px; }
.pc-tag {
  display: inline-block; font-size: 0.58rem; font-weight: 700; padding: 2px 6px;
  border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent);
  margin-bottom: 4px;
}
.pc-desc {
  font-size: 0.7rem; color: var(--text-sec); margin: 0 0 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-more {
  display: block; text-align: center;
  font-size: 0.68rem; font-weight: 700; color: var(--accent);
  padding: 5px 0; border-radius: 6px; margin-top: auto;
  background: var(--accent-soft); transition: var(--transition);
}
.partner-card:hover .pc-more { background: var(--accent); color: #fff; }
.pc-del {
  position: absolute; top: 8px; right: 8px; z-index: 2;
}
.pc-del button {
  width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(244,63,94,0.1); color: #f43f5e; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.pc-del button:hover { background: #f43f5e; color: #fff; }
.partner-empty { text-align: center; padding: 30px; color: var(--text-muted); font-size: 0.88rem; }

/* ── 파트너 상세페이지 ── */
.pd-page { max-width: 1120px; }

/* ── 상세페이지 공통 히어로 카드 (제휴업체 + 이벤트) ── */
.dtl-card-hero {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.dtl-img-wrap {
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  max-height: 500px;
}
.dtl-img-wrap img {
  width: 100%;
  max-height: 500px;
  display: block;
  object-fit: contain;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
}
.dtl-title-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.dtl-ts-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}
.dtl-ts-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.dtl-ts-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.dtl-ts-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.dtl-ts-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 7px 15px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.dtl-ts-btn svg { width: 12px; height: 12px; }
.dtl-ts-btn:hover { background: var(--orange); transform: translateY(-1px); }
.dtl-ts-reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal);
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.2);
  padding: 6px 13px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dtl-ts-reward svg { width: 13px; height: 13px; stroke: var(--teal); }

@media (max-width: 600px) {
  .dtl-title-strip { padding: 12px 14px; gap: 8px; }
  .dtl-ts-name { font-size: 1rem; }
  .dtl-ts-btn { font-size: 0.65rem; padding: 6px 11px; }
  .dtl-ts-reward { font-size: 0.65rem; padding: 5px 10px; }
}

.pd-main {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 28px; box-shadow: var(--shadow-sm);
  margin-top: 12px;
}

.pd-desc {
  font-size: 0.9rem; color: var(--text); line-height: 1.55; font-weight: 500;
  margin: 0 0 22px;
}

/* 보너스 하이라이트 */
.pd-bonus-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
}
.pd-bonus-glow {
  position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(16,185,129,0.12); pointer-events: none;
}
.pd-bonus-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
}
.pd-bonus-icon svg { width: 20px; height: 20px; }
.pd-bonus-body { position: relative; z-index: 1; }
.pd-bonus-label { display: block; font-size: 0.68rem; font-weight: 700; color: #059669; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 3px; }
.pd-bonus-text { margin: 0; font-size: 0.9rem; font-weight: 700; color: #065f46; line-height: 1.45; }

/* 가입코드 + 사이트 */
.pd-signup-section {
  display: flex; gap: 12px; margin-bottom: 22px;
}
.pd-signup-code {
  flex: 1; cursor: pointer;
  padding: 18px 22px; border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(99,102,241,0.2);
  transition: var(--transition);
}
.pd-signup-code:hover { border-color: rgba(99,102,241,0.5); box-shadow: 0 4px 24px -6px rgba(99,102,241,0.3); }
.pd-sc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pd-sc-label { font-size: 0.68rem; font-weight: 600; color: #94a3b8; letter-spacing: 0.5px; }
.pd-sc-badge {
  font-size: 0.55rem; font-weight: 800; padding: 2px 7px; border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; letter-spacing: 0.8px;
}
.pd-sc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-sc-value {
  font-family: 'Courier New', monospace; font-size: 1.3rem; font-weight: 900;
  color: #fff; letter-spacing: 4px; background: none; border: none; padding: 0;
}
.pd-sc-copy {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.74rem; font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transition: var(--transition);
}
.pd-sc-copy svg { width: 13px; height: 13px; }
.pd-sc-copy:hover { filter: brightness(1.15); transform: translateY(-1px); }
.pd-sc-copy.done { background: linear-gradient(135deg, #10b981, #34d399); }

.pd-signup-go {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 18px 22px; border-radius: 14px; min-width: 140px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff; text-decoration: none; transition: var(--transition);
  font-size: 0.78rem; font-weight: 700;
}
.pd-signup-go svg { width: 18px; height: 18px; }
.pd-signup-go:hover { color: #fff; filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 20px -4px rgba(56,132,255,0.5); }

/* 소개 본문 */
.pd-article {
  padding: 20px 0; border-top: 1px solid var(--border); margin-bottom: 20px;
}
.pd-article-title {
  font-size: 0.92rem; font-weight: 800; color: var(--text); margin: 0 0 10px;
}
.pd-article-body {
  font-size: 0.86rem; color: var(--text-sec); line-height: 1.85;
}

/* 상세 이미지 갤러리 */
.pd-detail-imgs {
  display: flex; flex-direction: column; gap: 12px;
  margin: 24px 0;
}
.pd-di-item {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.pd-di-item img {
  width: 100%; height: auto; display: block;
}

/* CTA 하단 */
.pd-cta-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.pd-cta-go {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 6px 20px -6px rgba(56,132,255,0.5);
  transition: var(--transition);
}
.pd-cta-go svg { width: 16px; height: 16px; }
.pd-cta-go:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px -6px rgba(56,132,255,0.7); }
.pd-cta-back {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  transition: var(--transition);
}
.pd-cta-back:hover { color: var(--accent); }

@media (max-width: 600px) {
  .pd-main { padding: 20px 16px; }
  .pd-bonus-card { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
  .pd-signup-section { flex-direction: column; }
  .pd-sc-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pd-sc-value { font-size: 1.1rem; letter-spacing: 3px; }
  .pd-sc-copy { align-self: stretch; justify-content: center; }
  .pd-signup-go { min-width: auto; flex-direction: row; padding: 14px 20px; }
  .pd-cta-bar { flex-direction: column; }
  .pd-cta-go { width: 100%; justify-content: center; }
}

/* ── 웨코 뉴스 ── */
.news-list { display: flex; flex-direction: column; gap: 11px; }
.news-item {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.news-item:hover { border-color: var(--border-accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.news-icon svg { width: 22px; height: 22px; }
.news-cat {
  flex-shrink: 0;
  font-size: 0.66rem; font-weight: 800; padding: 3px 9px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: var(--accent);
}
.news-cat-공지 { background: rgba(56,132,255,0.12); color: #3884ff; }
.news-cat-업데이트 { background: rgba(13,148,136,0.12); color: #0d9488; }
.news-cat-이벤트 { background: rgba(236,72,153,0.12); color: #ec4899; }
.news-cat-프로모션 { background: rgba(245,158,11,0.14); color: #d97706; }
.news-cat-정보 { background: rgba(99,102,241,0.12); color: #818cf8; }
.news-cat-카지노 { background: rgba(16,185,129,0.12); color: #10b981; }
.news-cat-슬롯 { background: rgba(236,72,153,0.12); color: #ec4899; }
.news-cat-스포츠 { background: rgba(59,130,246,0.12); color: #3b82f6; }
.news-cat-크립토 { background: rgba(245,158,11,0.12); color: #f59e0b; }
.news-body { flex: 1; min-width: 0; }
.news-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.news-date { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.news-title {
  font-size: 0.96rem; font-weight: 800; color: var(--text); margin: 0 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em;
}
.news-item:hover .news-title { color: var(--accent); }
.news-excerpt {
  font-size: 0.8rem; color: var(--text-sec); margin: 0 0 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 0.74rem; color: var(--text-muted); }
.news-stat { display: inline-flex; align-items: center; gap: 4px; }
.news-stat svg { width: 13px; height: 13px; }
.news-dot { opacity: 0.5; }
.news-arrow { flex-shrink: 0; color: var(--text-muted); display: inline-flex; transition: transform 0.15s, color 0.15s; }
.news-arrow svg { width: 18px; height: 18px; }
.news-item:hover .news-arrow { color: var(--accent); transform: translateX(3px); }
@media (max-width: 560px) {
  .news-item { gap: 12px; padding: 13px 14px; }
  .news-icon { width: 40px; height: 40px; border-radius: 11px; }
  .news-icon svg { width: 19px; height: 19px; }
  .news-title { font-size: 0.88rem; }
  .news-excerpt { display: none; }
}

.news-article .na-head { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.na-title { font-size: 1.35rem; font-weight: 900; color: var(--text); margin: 10px 0 8px; letter-spacing: -0.01em; }
.na-meta { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); }
.na-content { font-size: 0.92rem; line-height: 1.75; color: var(--text-sec); word-break: break-word; }
.na-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.na-back { font-size: 0.84rem; font-weight: 700; color: var(--text-sec); }
.na-back:hover { color: var(--accent); }
.na-del {
  padding: 8px 16px; border-radius: 9px; border: 1px solid rgba(244,63,94,0.3); cursor: pointer;
  background: rgba(244,63,94,0.08); color: #f43f5e; font-size: 0.8rem; font-weight: 700;
}
.na-del:hover { background: #f43f5e; color: #fff; }
.news-form { display: flex; flex-direction: column; }

/* ─── 게시글 상세 ─────────────────────────────────────────── */
.post-view { max-width: 1120px; }
/* 네비 바 (브레드크럼) */
.pv-nav {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 16px; padding: 0 2px;
}
.pv-crumb-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 700; color: var(--text-sec);
  transition: var(--transition); line-height: 1;
}
.pv-crumb-link svg { width: 14px; height: 14px; opacity: 0.7; }
.pv-crumb-link:hover {
  border-color: var(--border-accent); color: var(--accent);
  box-shadow: 0 2px 8px -4px rgba(56,132,255,0.4);
}
.pv-crumb-link:hover svg { opacity: 1; }
.pv-crumb-arrow { width: 14px; height: 14px; color: var(--text-muted); opacity: 0.45; flex-shrink: 0; }
.pv-crumb-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; line-height: 1;
}
.pv-crumb-cat i {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  display: inline-block;
}
.pv-crumb-cat-자유게시판 { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, var(--white)); border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent); }
.pv-crumb-cat-수익인증 { color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--white)); border: 1px solid color-mix(in srgb, var(--red) 28%, transparent); }
.pv-crumb-cat-팁과노하우 { color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, var(--white)); border: 1px solid color-mix(in srgb, var(--purple) 28%, transparent); }

/* 카드 */
.pv-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 28px; margin-bottom: 12px;
}

/* 헤더 */
.pv-header { padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.pv-title-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pv-cat-chip {
  display: inline-block; padding: 3.5px 10px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 800; flex-shrink: 0; position: relative; top: -1px;
}
.pv-cat-자유게시판 { background: #ecfdf5; color: var(--teal); }
.pv-cat-수익인증 { background: #fef2f2; color: var(--red); }
.pv-cat-팁과노하우 { background: #f0f0ff; color: var(--purple); }
.pv-title {
  font-size: 1.35rem; font-weight: 900; color: var(--text);
  margin: 0; line-height: 1.4; letter-spacing: -0.02em;
  word-break: break-word; flex: 1; min-width: 0;
}
.pv-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-meta-left { display: flex; align-items: center; gap: 7px; }
.pv-nick { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.pv-date { font-size: 0.72rem; color: var(--text-muted); }
.pv-meta-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pv-stat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.74rem; font-weight: 600; color: var(--text-muted);
}
.pv-stat svg { width: 13px; height: 13px; opacity: 0.5; }
.pv-stat-like svg { opacity: 1; color: var(--red); fill: var(--red); width: 12px; height: 12px; }

/* 본문 */
.pv-body {
  font-size: 0.93rem; line-height: 1.85; color: var(--text-sec);
  white-space: pre-wrap; word-break: break-word; min-height: 80px;
  padding-bottom: 8px;
}
.pv-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }

/* 추천 + 액션 영역 */
.pv-footer {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.pv-like-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 30px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--white); cursor: pointer;
  font-size: 0.84rem; font-weight: 800; color: var(--text-sec);
  transition: var(--transition);
}
.pv-like-btn svg { width: 16px; height: 16px; color: var(--red); }
.pv-like-btn b { color: var(--red); }
.pv-like-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: 0 6px 16px -8px rgba(244,63,94,0.5); }
.pv-like-btn.liked { background: var(--red); border-color: var(--red); color: #fff; }
.pv-like-btn.liked svg, .pv-like-btn.liked b { color: #fff; fill: #fff; }
.pv-like-own { cursor: default; opacity: 0.45; pointer-events: none; }
.pv-like-own svg { color: var(--text-muted); }

.pv-actions { display: flex; align-items: center; gap: 6px; width: 100%; }
.pv-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 9px; font-size: 0.78rem; font-weight: 700;
  border: 1px solid var(--border); background: var(--white); color: var(--text-sec);
  cursor: pointer; transition: var(--transition);
}
.pv-btn svg { width: 14px; height: 14px; }
.pv-btn:hover { border-color: var(--accent); color: var(--accent); }
.pv-btn-list { margin-right: auto; }
.pv-btn-del { border-color: rgba(244,63,94,0.25); color: #e11d48; background: rgba(244,63,94,0.04); }
.pv-btn-del:hover { background: #f43f5e; color: #fff; border-color: #f43f5e; }
.pv-btn-report { border-color: rgba(245,158,11,0.3); color: #d97706; background: rgba(245,158,11,0.05); }
.pv-btn-report:hover { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.pv-btn-report.reported { background: var(--bg); color: var(--text-muted); border-color: var(--border); cursor: default; pointer-events: none; }

/* ── 신고 모달 ── */
.rpt-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.rpt-overlay.show { opacity: 1; pointer-events: auto; }
.rpt-modal {
  width: 92%; max-width: 420px; border-radius: 16px; overflow: hidden;
  background: var(--card-bg, #fff); border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px); transition: transform 0.25s;
}
.rpt-overlay.show .rpt-modal { transform: translateY(0); }
.rpt-head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: rgba(245,158,11,0.04);
}
.rpt-head svg { width: 18px; height: 18px; color: #d97706; flex-shrink: 0; }
.rpt-head span { font-size: 0.92rem; font-weight: 800; color: var(--text); flex: 1; }
.rpt-close {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: rgba(0,0,0,0.05); color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.15s;
}
.rpt-close:hover { background: rgba(244,63,94,0.1); color: #f43f5e; }
.rpt-body { padding: 18px 20px; }
.rpt-sub { font-size: 0.76rem; color: var(--text-muted); margin: 0 0 12px; font-weight: 600; }
.rpt-reasons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rpt-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); transition: all 0.15s;
}
.rpt-opt:hover { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.03); }
.rpt-opt input { display: none; }
.rpt-opt span {
  font-size: 0.82rem; font-weight: 600; color: var(--text-sec);
  position: relative; padding-left: 24px;
}
.rpt-opt span::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border); transition: 0.15s;
}
.rpt-opt input:checked + span::before {
  border-color: #f59e0b; background: #f59e0b;
  box-shadow: inset 0 0 0 3px #fff;
}
.rpt-opt input:checked + span { color: var(--text); }
.rpt-detail {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 0.8rem; color: var(--text); font-family: inherit;
  resize: vertical; min-height: 60px; outline: none; transition: 0.15s;
}
.rpt-detail:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.08); }
.rpt-detail::placeholder { color: var(--text-muted); }
.rpt-foot {
  display: flex; gap: 8px; padding: 14px 20px;
  border-top: 1px solid var(--border); justify-content: flex-end;
}
.rpt-cancel {
  padding: 9px 18px; border-radius: 10px; font-size: 0.78rem; font-weight: 700;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  cursor: pointer; transition: 0.15s;
}
.rpt-cancel:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.rpt-submit {
  padding: 9px 22px; border-radius: 10px; font-size: 0.78rem; font-weight: 700;
  border: none; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  cursor: pointer; transition: 0.15s;
  box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}
.rpt-submit:hover { box-shadow: 0 4px 14px rgba(245,158,11,0.35); transform: translateY(-1px); }
.rpt-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ── 댓글 ── */
.pv-comments { padding: 24px 28px; }
.pv-cm-header {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.9rem; font-weight: 800; color: var(--text);
  margin-bottom: 18px;
}
.pv-cm-header svg { width: 18px; height: 18px; color: var(--accent); }
.pv-cm-count { color: var(--accent); font-size: 0.82rem; }

.cm-form {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; margin-bottom: 20px;
}
.cm-form-top { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.cm-form-nick { font-size: 0.78rem; font-weight: 700; color: var(--text); }
.cm-textarea {
  width: 100%; resize: vertical; min-height: 46px; border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px; font-size: 0.86rem; color: var(--text);
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit; outline: none; line-height: 1.6;
}
.cm-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.cm-form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.cm-submit {
  padding: 8px 18px; border-radius: 8px; font-size: 0.8rem; font-weight: 800;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  transition: var(--transition);
}
.cm-submit:hover { background: var(--accent-dark, #2563eb); transform: translateY(-1px); }
.cm-cancel {
  padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 700;
  background: var(--white); color: var(--text-muted); border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.cm-cancel:hover { border-color: var(--text-muted); color: var(--text); }
.cm-login {
  text-align: center; padding: 20px; background: var(--bg);
  border: 1px dashed var(--border); border-radius: 12px; margin-bottom: 14px;
}
.cm-login p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.cm-login-btn {
  display: inline-block; padding: 8px 22px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 800;
}

.cm-list { list-style: none; margin: 0; padding: 0; }
.cm-item {
  padding: 16px 16px; margin-bottom: 6px;
  background: var(--bg); border-radius: 10px;
}
.cm-item:last-child { margin-bottom: 0; }
.cm-content { min-width: 0; }
.cm-head {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-bottom: 7px;
}
.cm-nick { font-size: 0.82rem; font-weight: 800; color: var(--text); }
.cm-lv { font-size: 0.5rem; }
.cm-dot { color: var(--text-muted); opacity: 0.35; font-size: 0.5rem; }
.cm-date { font-size: 0.68rem; color: var(--text-muted); letter-spacing: -0.01em; }
.cm-text { font-size: 0.86rem; line-height: 1.7; color: var(--text-sec); word-break: break-word; }
.cm-text .cm-tag { color: var(--accent); font-weight: 700; }
.cm-mention { color: var(--accent); font-weight: 700; background: var(--accent-soft); padding: 0 4px; border-radius: 5px; }
.cm-tools { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.cm-reply-btn, .cm-del-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  padding: 4px 8px; border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.cm-reply-btn svg { width: 12px; height: 12px; }
.cm-reply-btn:hover { color: var(--accent); background: var(--accent-soft); }
.cm-del-btn:hover { color: var(--red); background: rgba(244,63,94,0.08); }

.cm-reply-form { margin-top: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.cm-replies {
  list-style: none; margin: 10px 0 0; padding: 0 0 0 14px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 20%, var(--border));
}
.cm-reply {
  padding: 12px 14px; margin-bottom: 4px; margin-top: 4px;
  background: var(--white); border-radius: 8px;
  border: 1px solid var(--border);
}
.cm-reply:first-child { margin-top: 8px; }
.cm-reply:last-child { margin-bottom: 0; }

.cm-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 36px 20px; color: var(--text-muted);
}
.cm-empty svg { width: 30px; height: 30px; opacity: 0.3; }
.cm-empty p { font-size: 0.82rem; margin: 0; }

/* 모바일 최적화 */
@media (max-width: 600px) {
  .post-view { padding: 0 2px; }
  .pv-nav { gap: 5px; margin-bottom: 10px; }
  .pv-crumb-link { padding: 5px 10px; font-size: 0.7rem; gap: 5px; }
  .pv-crumb-link svg { width: 12px; height: 12px; }
  .pv-crumb-arrow { width: 11px; height: 11px; }
  .pv-crumb-cat { padding: 5px 10px; font-size: 0.7rem; gap: 4px; }
  .pv-crumb-cat i { width: 5px; height: 5px; }
  .pv-card { padding: 18px 16px; border-radius: 12px; margin-bottom: 8px; }
  .pv-title-row { gap: 8px; margin-bottom: 8px; }
  .pv-cat-chip { font-size: 0.56rem; padding: 2.5px 8px; }
  .pv-title { font-size: 1.12rem; }
  .pv-meta-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pv-meta-left { gap: 6px; }
  .pv-nick { font-size: 0.74rem; }
  .pv-date { font-size: 0.66rem; }
  .pv-meta-right { gap: 8px; }
  .pv-stat { font-size: 0.66rem; }
  .pv-stat svg { width: 11px; height: 11px; }
  .pv-body { font-size: 0.88rem; line-height: 1.75; min-height: 40px; padding-bottom: 4px; }
  .pv-footer { margin-top: 20px; padding-top: 16px; gap: 12px; }
  .pv-like-btn { padding: 9px 22px; font-size: 0.8rem; gap: 6px; }
  .pv-like-btn svg { width: 14px; height: 14px; }
  .pv-actions { gap: 5px; }
  .pv-btn { padding: 7px 12px; font-size: 0.72rem; border-radius: 8px; }
  .pv-btn svg { width: 12px; height: 12px; }
  .pv-comments { padding: 16px 14px; }
  .pv-cm-header { font-size: 0.84rem; margin-bottom: 14px; }
  .pv-cm-header svg { width: 16px; height: 16px; }
  .cm-form { padding: 12px; border-radius: 10px; }
  .cm-textarea { font-size: 0.84rem; padding: 10px 11px; min-height: 42px; }
  .cm-item { padding: 13px 13px; margin-bottom: 5px; border-radius: 8px; }
  .cm-head { gap: 5px; margin-bottom: 5px; }
  .cm-nick { font-size: 0.76rem; }
  .cm-lv { font-size: 0.46rem; }
  .cm-date { font-size: 0.62rem; }
  .cm-text { font-size: 0.82rem; line-height: 1.65; }
  .cm-tools { gap: 4px; margin-top: 7px; }
  .cm-reply-btn, .cm-del-btn { font-size: 0.66rem; padding: 3px 6px; }
  .cm-reply-btn svg { width: 11px; height: 11px; }
  .cm-replies { padding-left: 10px; margin-top: 8px; }
  .cm-reply { padding: 10px 11px; margin-bottom: 3px; border-radius: 7px; }
  .cm-reply-form { padding: 10px; border-radius: 8px; margin-top: 10px; }
  .cm-empty { padding: 28px 16px; }
  .cm-empty svg { width: 26px; height: 26px; }
  .cm-empty p { font-size: 0.78rem; }
}

/* ── 글쓰기 (리뉴얼) ── */
.write-view { max-width: 1120px; }
.write-card { padding: 26px 28px; }
.wf-group { margin-bottom: 20px; }
.wf-group:last-of-type { margin-bottom: 0; }
.wf-label {
  display: block; font-size: 0.8rem; font-weight: 800; color: var(--text);
  margin-bottom: 9px;
}
.wf-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.wf-cat { flex: 1; min-width: 96px; cursor: pointer; }
.wf-cat input { position: absolute; opacity: 0; pointer-events: none; }
.wf-cat-box {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 10px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.84rem; font-weight: 700; color: var(--text-sec);
  transition: var(--transition); text-align: center;
}
.wf-cat:hover .wf-cat-box { border-color: var(--border-accent); color: var(--text); }
.wf-cat input:checked + .wf-cat-box {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-glow);
}
.wf-cat input:checked + .wf-cat-box.wf-cat-수익인증 { border-color: var(--red); color: var(--red); background: #fef2f2; box-shadow: 0 0 0 3px rgba(244,63,94,0.12); }
.wf-cat input:checked + .wf-cat-box.wf-cat-팁과노하우 { border-color: var(--purple); color: var(--purple); background: #f0f0ff; box-shadow: 0 0 0 3px rgba(124,92,252,0.12); }
.wf-cat input:checked + .wf-cat-box.wf-cat-자유게시판 { border-color: var(--teal); color: var(--teal); background: #ecfdf5; box-shadow: 0 0 0 3px rgba(13,148,136,0.12); }
.wf-cat input:focus-visible + .wf-cat-box { outline: 2px solid var(--accent); outline-offset: 2px; }

.wf-input, .wf-textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.9rem; color: var(--text); outline: none;
  font-family: inherit; transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.wf-textarea { resize: vertical; min-height: 260px; line-height: 1.75; }
.wf-input:focus, .wf-textarea:focus {
  border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.wf-input::placeholder, .wf-textarea::placeholder { color: var(--text-muted); }
.wf-hint { font-size: 0.74rem; color: var(--text-muted); margin: 8px 0 0; }

.wf-notice { display: block; cursor: pointer; }
.wf-notice input { position: absolute; opacity: 0; pointer-events: none; }
.wf-notice-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--white);
  transition: var(--transition);
}
.wf-notice-box svg {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--text-muted);
  transition: color 0.15s;
}
.wf-notice-txt { display: flex; flex-direction: column; line-height: 1.3; }
.wf-notice-txt b { font-size: 0.88rem; font-weight: 800; color: var(--text); }
.wf-notice-txt { font-size: 0.74rem; color: var(--text-muted); }
.wf-notice:hover .wf-notice-box { border-color: var(--border-accent); }
.wf-notice input:checked + .wf-notice-box {
  border-color: var(--accent); background: rgba(56,132,255,0.06);
  box-shadow: 0 0 0 3px rgba(56,132,255,0.12);
}
.wf-notice input:checked + .wf-notice-box svg { color: var(--accent); }

.wf-foot {
  display: flex; justify-content: flex-end; gap: 9px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
}
.wf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 24px; border-radius: 11px; cursor: pointer;
  font-size: 0.86rem; font-weight: 800; transition: var(--transition); border: none;
}
.wf-cancel { background: var(--white); border: 1.5px solid var(--border); color: var(--text-sec); }
.wf-cancel:hover { border-color: var(--border-dark); color: var(--text); }
.wf-submit { color: #fff; background: linear-gradient(135deg, #3884ff, #6366f1); }
.wf-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(56,132,255,0.7); }

/* ── 사진 첨부 ── */
.wf-label-sub { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.wf-upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 26px 16px; border-radius: 14px; cursor: pointer;
  border: 2px dashed var(--border); background: var(--bg);
  color: var(--text-muted); transition: var(--transition);
}
.wf-upload input { display: none; }
.wf-upload svg { width: 30px; height: 30px; opacity: 0.65; }
.wf-upload-text { font-size: 0.82rem; font-weight: 600; }
.wf-upload:hover, .wf-upload.drag { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.wf-preview {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; margin-top: 12px;
}
.wf-preview:empty { display: none; }
.wf-thumb {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg);
}
.wf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-thumb-existing { cursor: pointer; }
.wf-thumb-existing.to-remove img { opacity: 0.3; filter: grayscale(1); }
.wf-thumb-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3px 6px; font-size: .58rem; font-weight: 600;
  color: rgba(255,255,255,.9); background: linear-gradient(transparent, rgba(0,0,0,.55));
  text-align: center; pointer-events: none;
}
.wf-compressed { color: #4ade80; font-weight: 700; }
.wf-thumb-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800; color: #fff; line-height: 1;
  background: rgba(239,68,68,.85); border: none; cursor: pointer;
  opacity: 0; transition: opacity .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.wf-thumb:hover .wf-thumb-del { opacity: 1; }
.wf-thumb-del:hover { background: #dc2626; }
.wf-compressing .wf-upload-text::after {
  content: ' 압축 중…'; color: var(--accent);
}

/* ── 상세 이미지 (컴팩트 슬라이더) ── */
.pv-gallery {
  margin: 26px 0 6px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.pv-gallery-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.pv-gallery-label svg { width: 16px; height: 16px; stroke: var(--accent); }
.pv-gallery-label b { color: var(--accent); font-weight: 800; }
.pv-slider { max-width: 420px; }
.pvs-frame {
  position: relative; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--border); background: #0b0d14;
  aspect-ratio: 4 / 3; box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.pvs-track { display: flex; height: 100%; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); }
.pvs-slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  object-fit: cover; cursor: zoom-in; display: block;
}
.pvs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(6px);
  border: none; cursor: pointer; color: #fff; opacity: 0.85;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, opacity 0.15s;
}
.pvs-arrow svg { width: 14px; height: 14px; }
.pvs-frame:hover .pvs-arrow { opacity: 1; }
.pvs-arrow:hover { background: rgba(0,0,0,0.65); }
.pvs-prev { left: 7px; }
.pvs-next { right: 7px; }
.pvs-counter {
  position: absolute; bottom: 7px; right: 9px; z-index: 2;
  font-size: 0.66rem; font-weight: 700; color: #fff;
  background: rgba(0,0,0,0.5); padding: 2px 9px; border-radius: 20px;
}
.pvs-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 9px;
}
.pvs-dot {
  width: 7px; height: 7px; border-radius: 50%; padding: 0; cursor: pointer;
  border: none; background: var(--border-dark); opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s, background 0.15s;
}
.pvs-dot.active { background: var(--accent); opacity: 1; transform: scale(1.25); }

/* ── 라이트박스 ── */
.pvg-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.pvg-lightbox[hidden] { display: none; }
.pvg-lb-close {
  position: absolute; top: 16px; right: 18px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; cursor: pointer;
  color: #fff; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.pvg-lb-close:hover { background: rgba(255,255,255,0.3); }
.pvg-lb-img {
  max-width: min(72vw, 680px); max-height: 78vh; object-fit: contain;
  border-radius: 10px; user-select: none;
}
.pvg-lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; z-index: 10;
  background: rgba(255,255,255,0.1); border: none; cursor: pointer;
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.pvg-lb-arrow svg { width: 22px; height: 22px; }
.pvg-lb-arrow:hover { background: rgba(255,255,255,0.3); }
.pvg-lb-prev { left: 16px; }
.pvg-lb-next { right: 16px; }
.pvg-lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5); padding: 5px 16px; border-radius: 20px;
}

@media (max-width: 560px) {
  .write-card { padding: 20px 16px; }
  .wf-cats { gap: 6px; }
  .wf-cat { min-width: 0; }
  .wf-cat-box { padding: 11px 6px; font-size: 0.78rem; }
  .wf-foot { flex-direction: column-reverse; }
  .wf-btn { width: 100%; }
  .wf-textarea { min-height: 200px; }
  .wf-preview { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .pv-gallery { margin-top: 22px; padding-top: 18px; }
  .pv-slider { max-width: 100%; }
  .pvg-lb-img { max-width: 92vw; max-height: 80vh; }
}

/* ── 이벤트 페이지 v2 ── */
.ev2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ev2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ev2-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(56,132,255,0.18), 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--accent);
}

/* 썸네일 */
.ev2-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2.2 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1929 0%, #162d50 100%);
}
.ev2-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ev2-card:hover .ev2-thumb img { transform: scale(1.04); }
.ev2-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, transparent 50%);
  pointer-events: none;
}
.ev2-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.ev2-thumb-placeholder svg {
  width: 36px; height: 36px;
  stroke: rgba(255,255,255,0.25);
}

/* 배지 (썸네일 위) */
.ev2-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; gap: 5px;
  z-index: 2;
}
.ev2-badge {
  display: inline-block;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 3px 9px;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.ev2-badge.ev-hot  { background: linear-gradient(135deg,#f43f5e,#ec4899); }
.ev2-badge.ev-daily{ background: linear-gradient(135deg,#10b981,#34d399); }
.ev2-badge.ev-vip  { background: linear-gradient(135deg,#f59e0b,#f97316); }
.ev2-badge.ev-comm { background: linear-gradient(135deg,#3884ff,#6366f1); }
.ev2-tag {
  font-size: 0.58rem; font-weight: 700;
  color: rgba(255,255,255,0.9);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* 본문 */
.ev2-content {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ev2-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev2-desc {
  font-size: 0.72rem;
  color: var(--text-sec);
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 하단 */
.ev2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ev2-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(20,184,166,0.08);
  padding: 3px 9px;
  border-radius: 6px;
}
.ev2-reward svg {
  width: 12px; height: 12px;
  stroke: var(--teal);
  flex-shrink: 0;
}
.ev2-cta {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: auto;
  transition: color 0.2s;
}
.ev2-card:hover .ev2-cta { color: var(--orange); }

/* 하단 알림 */
.event-notice {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 12px 16px; border-radius: 10px;
  background: rgba(56,132,255,0.06); border: 1px solid rgba(56,132,255,0.15);
}
.event-notice svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.event-notice p { font-size: 0.72rem; color: var(--text-sec); margin: 0; line-height: 1.5; }

/* 반응형 */
@media (max-width: 640px) {
  .ev2-grid { grid-template-columns: 1fr; gap: 12px; }
  .ev2-thumb { aspect-ratio: 2.4 / 1; }
  .ev2-content { padding: 12px 14px 14px; }
  .ev2-title { font-size: 0.84rem; }
}
@media (max-width: 380px) {
  .ev2-content { padding: 10px 12px 12px; }
  .ev2-title { font-size: 0.8rem; }
  .ev2-desc { font-size: 0.68rem; }
}

/* 이벤트 준비중 (Empty state) */
.ev-empty-wrap {
  text-align: center; padding: 60px 20px 50px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.ev-empty-icon {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(56,132,255,0.08), rgba(99,102,241,0.08));
  border: 1px solid rgba(56,132,255,0.12);
}
.ev-empty-icon svg { width: 34px; height: 34px; stroke: var(--accent); }
.ev-empty-title {
  font-size: 1.2rem; font-weight: 900; color: var(--text); margin: 0 0 10px;
}
.ev-empty-sub {
  font-size: 0.84rem; color: var(--text-sec); line-height: 1.7; margin: 0 0 24px;
}
.ev-empty-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-full);
  font-size: 0.84rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3884ff, #6366f1);
  box-shadow: 0 4px 16px -4px rgba(56,132,255,0.5);
  transition: var(--transition);
}
.ev-empty-cta svg { width: 16px; height: 16px; }
.ev-empty-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px -4px rgba(56,132,255,0.6); }


/* ── 이벤트 상세페이지 ── */
.evd-page { max-width: 1120px; }

.evd-main {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 28px; box-shadow: var(--shadow-sm);
  margin-top: 12px;
}

.evd-desc {
  font-size: 0.92rem; color: var(--text); line-height: 1.6; font-weight: 500;
  margin: 0 0 22px;
}

.evd-reward-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: 14px; margin-bottom: 22px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
}
.evd-rc-glow {
  position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(245,158,11,0.15); pointer-events: none;
}
.evd-rc-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
}
.evd-rc-icon svg { width: 20px; height: 20px; }
.evd-rc-body { position: relative; z-index: 1; }
.evd-rc-label { display: block; font-size: 0.68rem; font-weight: 700; color: #92400e; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 3px; }
.evd-rc-value { margin: 0; font-size: 1rem; font-weight: 800; color: #78350f; line-height: 1.4; }

.evd-article {
  padding: 22px 0; border-top: 1px solid var(--border); margin-bottom: 20px;
}
.evd-article-title {
  font-size: 0.95rem; font-weight: 800; color: var(--text); margin: 0 0 12px;
}
.evd-article-body {
  font-size: 0.86rem; color: var(--text-sec); line-height: 1.85;
}

.evd-cta-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.evd-cta-go {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 6px 20px -6px rgba(99,102,241,0.5);
  transition: var(--transition);
}
.evd-cta-go svg { width: 16px; height: 16px; }
.evd-cta-go:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px -6px rgba(99,102,241,0.7); }
.evd-cta-back {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  transition: var(--transition);
}
.evd-cta-back:hover { color: var(--accent); }

.evd-meta {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
}

@media (max-width: 600px) {
  .evd-main { padding: 20px 16px; }
  .evd-reward-card { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
  .evd-cta-bar { flex-direction: column; }
  .evd-cta-go { width: 100%; justify-content: center; }
}

.info-wrap { padding: 28px 16px 60px; }
.info-alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.84rem; font-weight: 500; margin-bottom: 24px; border: 1.5px solid; }
.info-alert-gold { background: #eff6ff; border-color: #bfdbfe; color: var(--accent); }
.bypass-card { background: var(--white); border: 1.5px solid var(--border-accent); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 32px; box-shadow: var(--shadow); }
.bypass-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.bypass-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(16,185,129,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.bypass-status-text { font-size: 0.8rem; font-weight: 600; color: var(--teal); }
.bypass-updated { font-size: 0.7rem; color: var(--text-muted); margin-left: auto; }
.bypass-url-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.bypass-url-label { font-size: 0.8rem; font-weight: 600; }
.bypass-url-link { font-size: 0.84rem; color: var(--accent); word-break: break-all; }
.btn-bypass-enter { display: block; background: var(--accent); color: #fff; font-size: 0.92rem; font-weight: 700; padding: 13px; border-radius: var(--radius); text-align: center; transition: var(--transition); }
.btn-bypass-enter:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow-accent); }
.info-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.info-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; transition: var(--transition); box-shadow: var(--shadow-sm); }
.info-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.info-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.info-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.btn-info-card { display: inline-block; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 7px 14px; border-radius: var(--radius); transition: var(--transition); }
.btn-info-card:hover { background: var(--accent-hover); color: #fff; }

.charge-steps { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.charge-steps-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1.5px solid var(--border); }
.charge-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.charge-step:last-child { border-bottom: none; }
.cs-num { font-family: var(--font-en); font-size: 1.4rem; font-weight: 800; color: var(--accent); width: 40px; flex-shrink: 0; }
.cs-content h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 3px; }
.cs-content p { font-size: 0.82rem; color: var(--text-muted); }
.btn-charge-telegram { display: block; background: linear-gradient(135deg, #0088CC, #00AAFF); color: #fff; font-size: 0.92rem; font-weight: 700; padding: 13px; border-radius: var(--radius); text-align: center; margin-top: 20px; transition: var(--transition); }
.btn-charge-telegram:hover { box-shadow: 0 4px 20px rgba(0,136,204,0.25); color: #fff; }
.charge-info { margin-top: 24px; }
.charge-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.charge-table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.charge-table thead { background: var(--bg); }
.charge-table th, .charge-table td { padding: 10px 14px; text-align: center; font-size: 0.84rem; }
.charge-table th { color: var(--text-muted); font-weight: 600; }
.charge-table tbody tr { border-bottom: 1px solid var(--border); }
.charge-table tbody tr:last-child { border-bottom: none; }
.charge-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; }

/* ── 레벨 가이드 페이지 ── */
.lvg-page {
  max-width: 960px;
  margin: 0 auto;
}

/* ── XP vs 포인트 분리 배너 ── */
.lvg-dual-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 22px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(16,185,129,0.05) 100%);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.lvg-dual-banner:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}
.lvg-dual-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  padding: 12px 20px;
}
.lvg-dual-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.lvg-dual-item:hover .lvg-dual-ico {
  transform: scale(1.08);
}
.lvg-dual-ico svg { width: 19px; height: 19px; }
.lvg-dual-xp .lvg-dual-ico { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.lvg-dual-xp .lvg-dual-ico svg { stroke: #fff; }
.lvg-dual-pt .lvg-dual-ico { background: linear-gradient(135deg, #10b981, #059669); }
.lvg-dual-pt .lvg-dual-ico svg { stroke: #fff; }
.lvg-dual-item strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}
.lvg-dual-item p {
  font-size: 0.74rem;
  color: var(--text-sec);
  margin: 0;
  line-height: 1.5;
}
.lvg-dual-sep {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-muted);
  padding: 0 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── XP / 포인트 비교 카드 ── */
.lvg-comp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.lvg-comp-card {
  text-align: center;
  padding: 24px 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.lvg-comp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.lvg-comp-xp:hover { border-color: #8b5cf6; }
.lvg-comp-pt:hover { border-color: #10b981; }
.lvg-comp-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.lvg-comp-ico {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lvg-comp-ico svg { width: 22px; height: 22px; stroke: #fff; }
.lvg-comp-xp .lvg-comp-ico { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.lvg-comp-pt .lvg-comp-ico { background: linear-gradient(135deg, #10b981, #059669); }
.lvg-comp-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 20px;
}
.lvg-comp-xp .lvg-comp-badge { background: rgba(99,102,241,0.1); color: #6366f1; }
.lvg-comp-pt .lvg-comp-badge { background: rgba(16,185,129,0.1); color: #10b981; }
.lvg-comp-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}
.lvg-comp-card p {
  font-size: 0.74rem;
  color: var(--text-sec);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 480px) {
  .lvg-comp { gap: 10px; }
  .lvg-comp-card { padding: 18px 14px 16px; }
  .lvg-comp-ico { width: 42px; height: 42px; }
  .lvg-comp-ico svg { width: 18px; height: 18px; }
  .lvg-comp-card h3 { font-size: 0.88rem; }
}

/* ── 개요 3카드 ── */
.lvg-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.lvg-ov-card {
  text-align: center;
  padding: 30px 22px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
}
.lvg-ov-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}
.lvg-ov-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.lvg-ov-card:hover .lvg-ov-icon {
  transform: scale(1.1);
}
.lvg-ov-icon svg { width: 24px; height: 24px; }
.lvg-ov-lv {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  color: #6366f1;
  border: 1px solid rgba(99,102,241,0.15);
}
.lvg-ov-lv svg { stroke: #6366f1; }
.lvg-ov-pt {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(52,211,153,0.1));
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.15);
}
.lvg-ov-pt svg { stroke: #10b981; }
.lvg-ov-ex {
  background: linear-gradient(135deg, rgba(56,132,255,0.1), rgba(99,102,241,0.1));
  color: #3884ff;
  border: 1px solid rgba(56,132,255,0.15);
}
.lvg-ov-ex svg { stroke: #3884ff; }
.lvg-ov-card h3 {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}
.lvg-ov-card p {
  font-size: 0.78rem;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0;
}

/* ── 섹션 공통 ── */
.lvg-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}
.lvg-section:hover {
  box-shadow: var(--shadow-md);
}
.lvg-sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.lvg-sec-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lvg-sec-icon svg { width: 20px; height: 20px; }
.lvg-sec-icon-lv { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.lvg-sec-icon-lv svg { stroke: #fff; }
.lvg-sec-icon-pt { background: linear-gradient(135deg, #10b981, #059669); }
.lvg-sec-icon-pt svg { stroke: #fff; }
.lvg-sec-icon-ex { background: linear-gradient(135deg, #3884ff, #6366f1); }
.lvg-sec-icon-ex svg { stroke: #fff; }
.lvg-sec-icon-calc { background: linear-gradient(135deg, #f59e0b, #f97316); }
.lvg-sec-icon-calc svg { stroke: #fff; }
.lvg-sec-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 3px;
}
.lvg-sec-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── 레벨 티어 카드 그리드 ── */
.lvg-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.lvg-tier {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.lvg-tier:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px -8px var(--tc);
  border-color: var(--tc);
}

.lvg-tier-badge {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--tg);
  position: relative;
  overflow: hidden;
  padding: 16px 0;
}
.lvg-tier-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}
.lvg-tier-lv {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}
.lvg-tier-name {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.lvg-tier-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  gap: 5px;
  min-width: 0;
}
.lvg-tier-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lvg-tier-stat small {
  font-size: 0.64rem;
  color: var(--text-muted);
  min-width: 40px;
  font-weight: 600;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}
.lvg-tier-stat b {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

/* 엘리트 티어 (81-99) */
.lvg-tier-elite {
  border: 1.5px solid var(--tc);
  animation: tierElitePulse 3s ease-in-out infinite alternate;
}
@keyframes tierElitePulse {
  from { box-shadow: 0 0 0 0 transparent; }
  to   { box-shadow: 0 0 20px -4px var(--tc); }
}

/* MAX 티어 */
.lvg-tier-max {
  grid-column: 1 / -1;
  border: 2px solid #d4a017;
  background: linear-gradient(135deg, #fffbeb, #fef3c7, #fffbeb);
  animation: tierGoldGlow 2.5s ease-in-out infinite alternate;
}
@keyframes tierGoldGlow {
  from { box-shadow: 0 0 12px -2px rgba(212,160,23,0.2); }
  to   { box-shadow: 0 0 30px -2px rgba(212,160,23,0.45); }
}
.lvg-tier-badge-max {
  width: 130px;
  background: linear-gradient(135deg, #92400e, #d4a017, #fbbf24, #d4a017, #92400e) !important;
  background-size: 200% 200% !important;
  animation: tierGoldShimmer 3s ease-in-out infinite;
}
@keyframes tierGoldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.lvg-tier-crown {
  position: relative;
  z-index: 1;
}
.lvg-tier-crown svg {
  width: 24px;
  height: 24px;
  color: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.lvg-tier-max .lvg-tier-lv {
  font-size: 1.6rem;
  letter-spacing: 2px;
}
.lvg-tier-max .lvg-tier-name {
  font-size: 0.7rem;
  letter-spacing: 1px;
}
.lvg-max-xp {
  color: #b45309 !important;
  font-size: 0.9rem !important;
}
.lvg-tier-max .lvg-tier-stats {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* 레벨 정보 */
.lvg-level-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(56,132,255,0.04);
  border: 1px solid rgba(56,132,255,0.1);
  transition: border-color 0.3s ease;
}
.lvg-level-info:hover {
  border-color: rgba(56,132,255,0.2);
}
.lvg-level-info svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  flex-shrink: 0;
}
.lvg-level-info p {
  font-size: 0.78rem;
  color: var(--text-sec);
  margin: 0;
  line-height: 1.55;
}
.lvg-level-info strong { color: var(--text); }

/* ── 포인트 적립 카드 그리드 ── */
.lvg-earn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.lvg-earn-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.lvg-earn-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.lvg-earn-card-checkin,
.lvg-earn-card-event {
  /* 태블릿에서 풀 와이드 전환용 */
}
.lvg-earn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.lvg-earn-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.lvg-earn-card:hover .lvg-earn-ico {
  transform: scale(1.1);
}
.lvg-earn-ico svg { width: 18px; height: 18px; stroke: #fff; }
.lvg-earn-ico-post    { background: linear-gradient(135deg, #3884ff, #6366f1); }
.lvg-earn-ico-comment { background: linear-gradient(135deg, #10b981, #34d399); }
.lvg-earn-ico-like    { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.lvg-earn-ico-checkin { background: linear-gradient(135deg, #f59e0b, #f97316); }
.lvg-earn-ico-event   { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.lvg-earn-card-event {
  border-color: #fce7f3;
  background: linear-gradient(135deg, #fdf2f8, #fff1f2);
}
.lvg-earn-pts-event {
  background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  white-space: nowrap;
}
.lvg-earn-detail-event span {
  background: #fce7f3;
  color: #be185d;
}
.lvg-earn-pts {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--teal);
  padding: 5px 14px;
  border-radius: 8px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.15);
  white-space: nowrap;
  flex-shrink: 0;
}
.lvg-earn-pts-range { font-size: 0.82rem; }
.lvg-earn-card h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}
.lvg-earn-card p {
  font-size: 0.76rem;
  color: var(--text-sec);
  line-height: 1.55;
  margin: 0 0 12px;
}
.lvg-earn-limit {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
}
.lvg-earn-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lvg-earn-detail span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.12);
}

.lvg-earn-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lvg-earn-note-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(244,63,94,0.03);
  border: 1px solid rgba(244,63,94,0.08);
  transition: border-color 0.3s ease;
}
.lvg-earn-note-item:hover {
  border-color: rgba(244,63,94,0.18);
}
.lvg-earn-note-item svg {
  width: 18px;
  height: 18px;
  stroke: #f43f5e;
  flex-shrink: 0;
  margin-top: 2px;
}
.lvg-earn-note-item strong {
  font-size: 0.8rem;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}
.lvg-earn-note-item p {
  font-size: 0.74rem;
  color: var(--text-sec);
  line-height: 1.5;
  margin: 0;
}

/* ── 전환 비율 하이라이트 ── */
.lvg-ex-rate-card {
  position: relative;
  overflow: hidden;
  padding: 36px 32px;
  border-radius: 14px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a5f 100%);
  border: 1px solid rgba(56,132,255,0.15);
  transition: box-shadow 0.3s ease;
}
.lvg-ex-rate-card:hover {
  box-shadow: 0 8px 32px rgba(56,132,255,0.15);
}
.lvg-ex-rate-glow {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(56,132,255,0.08);
  pointer-events: none;
}
.lvg-ex-rate-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.lvg-ex-rate-from,
.lvg-ex-rate-to {
  text-align: center;
  min-width: 0;
}
.lvg-ex-rate-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.15;
  word-break: break-word;
}
.lvg-ex-rate-unit {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  display: block;
  margin-top: 4px;
}
.lvg-ex-rate-unit small { color: #64748b; }
.lvg-ex-rate-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3884ff, #6366f1);
  box-shadow: 0 4px 18px rgba(56,132,255,0.35);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lvg-ex-rate-card:hover .lvg-ex-rate-arrow {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(56,132,255,0.5);
}
.lvg-ex-rate-arrow svg { width: 22px; height: 22px; stroke: #fff; }

/* ── 전환 프로세스 ── */
.lvg-ex-process {
  margin-bottom: 28px;
}
.lvg-ex-process-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 20px;
}
.lvg-ex-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.lvg-ex-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.lvg-ex-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #3884ff, #6366f1);
  box-shadow: 0 3px 10px rgba(56,132,255,0.25);
  transition: transform 0.3s ease;
}
.lvg-ex-step:hover .lvg-ex-step-num {
  transform: scale(1.1);
}
.lvg-ex-step-body {
  padding-top: 6px;
}
.lvg-ex-step-body h4 {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}
.lvg-ex-step-body p {
  font-size: 0.76rem;
  color: var(--text-sec);
  line-height: 1.55;
  margin: 0;
}
.lvg-ex-step-body strong { color: var(--accent); }
.lvg-ex-step-line {
  width: 2px;
  height: 20px;
  margin-left: 18px;
  background: linear-gradient(180deg, rgba(56,132,255,0.3), rgba(56,132,255,0.06));
  border-radius: 2px;
}

/* ── 전환 규칙 ── */
.lvg-ex-rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.lvg-ex-rule {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.lvg-ex-rule:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.lvg-ex-rule-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56,132,255,0.08);
  border: 1px solid rgba(56,132,255,0.12);
}
.lvg-ex-rule-ico svg { width: 16px; height: 16px; stroke: var(--accent); }
.lvg-ex-rule strong {
  font-size: 0.8rem;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}
.lvg-ex-rule p {
  font-size: 0.74rem;
  color: var(--text-sec);
  line-height: 1.5;
  margin: 0;
}

/* ── 시뮬레이션 그리드 ── */
.lvg-sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lvg-sim-card {
  padding: 26px 22px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
}
.lvg-sim-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}
.lvg-sim-card-active {
  background: linear-gradient(135deg, rgba(56,132,255,0.03), rgba(99,102,241,0.03));
  border-color: rgba(56,132,255,0.2);
  box-shadow: 0 4px 18px rgba(56,132,255,0.08);
}
.lvg-sim-badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}
.lvg-sim-light    { background: rgba(148,163,184,0.12); color: #64748b; }
.lvg-sim-active   { background: rgba(56,132,255,0.12);  color: #3884ff; }
.lvg-sim-hardcore { background: rgba(244,63,94,0.1);    color: #f43f5e; }
.lvg-sim-daily { margin-bottom: 18px; }
.lvg-sim-daily-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
}
.lvg-sim-daily-lbl {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lvg-sim-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
}
.lvg-sim-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.76rem;
  color: var(--text-sec);
  border-bottom: 1px dashed rgba(0,0,0,0.04);
}
.lvg-sim-list li:last-child { border-bottom: none; }
.lvg-sim-list li span { font-weight: 700; color: var(--teal); }
.lvg-sim-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.lvg-sim-month {
  font-size: 0.78rem;
  color: var(--text-sec);
  margin-bottom: 3px;
}
.lvg-sim-month strong { color: var(--text); font-weight: 800; }
.lvg-sim-usdt {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--accent);
}

/* ── CTA ── */
.lvg-cta {
  text-align: center;
  padding: 12px 0 14px;
}
.lvg-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-size: 0.94rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 6px 22px -6px rgba(99,102,241,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}
.lvg-cta-btn svg { width: 18px; height: 18px; }
.lvg-cta-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -6px rgba(99,102,241,0.65);
}
.lvg-cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px -4px rgba(99,102,241,0.5);
}

/* ── 레벨 가이드 반응형 ── */

/* 960px 이하: 태블릿 대형 */
@media (max-width: 960px) {
  .lvg-page { padding: 0 16px; }
  .lvg-earn-grid { grid-template-columns: repeat(2, 1fr); }
  .lvg-earn-card-checkin,
  .lvg-earn-card-event { grid-column: 1 / -1; }
  .lvg-sim-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 720px 이하: 태블릿 소형 */
@media (max-width: 720px) {
  .lvg-overview {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lvg-ov-card {
    padding: 24px 20px;
    flex-direction: row;
    text-align: left;
    min-height: auto;
    gap: 16px;
  }
  .lvg-ov-icon { margin: 0; }
  .lvg-section { padding: 22px 18px; }
  .lvg-earn-grid { grid-template-columns: 1fr; }
  .lvg-earn-card-checkin,
  .lvg-earn-card-event { grid-column: auto; }
  .lvg-earn-note { grid-template-columns: 1fr; }
  .lvg-ex-rules { grid-template-columns: 1fr; }
  .lvg-sim-grid { grid-template-columns: 1fr; }
  .lvg-ex-rate-card { padding: 28px 20px; }
  .lvg-ex-rate-inner { gap: 20px; }
  .lvg-ex-rate-num { font-size: 1.6rem; }
  .lvg-dual-banner {
    flex-direction: column;
    gap: 8px;
    padding: 18px;
  }
  .lvg-dual-sep {
    padding: 2px 0;
    font-size: 1rem;
  }
  .lvg-dual-item { padding: 10px 14px; }
  .lvg-tier-max .lvg-tier-stats {
    gap: 16px;
  }
}

/* 480px 이하: 모바일 */
@media (max-width: 480px) {
  .lvg-page { padding: 0 12px; }
  .lvg-overview { gap: 10px; }
  .lvg-ov-card {
    padding: 18px 16px;
    gap: 12px;
  }
  .lvg-ov-icon {
    width: 46px;
    height: 46px;
  }
  .lvg-ov-card h3 { font-size: 0.88rem; }
  .lvg-ov-card p { font-size: 0.74rem; }
  .lvg-section { padding: 18px 14px; }
  .lvg-sec-head { gap: 10px; margin-bottom: 18px; padding-bottom: 14px; }
  .lvg-sec-icon { width: 38px; height: 38px; border-radius: 10px; }
  .lvg-sec-icon svg { width: 17px; height: 17px; }
  .lvg-sec-title { font-size: 0.96rem; }
  .lvg-tier-grid { grid-template-columns: 1fr; gap: 10px; }
  .lvg-tier-badge {
    width: 86px;
    padding: 14px 0;
  }
  .lvg-tier-badge-max { width: 100px; }
  .lvg-tier-stats { padding: 12px 14px; }
  .lvg-tier-max .lvg-tier-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .lvg-earn-card { padding: 20px 16px; }
  .lvg-earn-top { margin-bottom: 12px; }
  .lvg-earn-ico { width: 38px; height: 38px; }
  .lvg-earn-card h4 { font-size: 0.86rem; }
  .lvg-ex-rate-card { padding: 24px 16px; }
  .lvg-ex-rate-inner { gap: 16px; }
  .lvg-ex-rate-num { font-size: 1.4rem; }
  .lvg-ex-rate-arrow { width: 40px; height: 40px; }
  .lvg-ex-rate-arrow svg { width: 18px; height: 18px; }
  .lvg-ex-step { gap: 14px; }
  .lvg-ex-step-num { width: 34px; height: 34px; font-size: 0.78rem; }
  .lvg-ex-step-line { margin-left: 16px; }
  .lvg-ex-rule { padding: 14px; }
  .lvg-sim-card { padding: 22px 18px; }
  .lvg-cta-btn {
    padding: 14px 32px;
    font-size: 0.88rem;
    width: 100%;
    justify-content: center;
  }
}

/* 320px 이하: 초소형 모바일 */
@media (max-width: 320px) {
  .lvg-page { padding: 0 8px; }
  .lvg-ov-card {
    padding: 14px 12px;
    gap: 10px;
  }
  .lvg-ov-icon { width: 40px; height: 40px; border-radius: 10px; }
  .lvg-ov-icon svg { width: 20px; height: 20px; }
  .lvg-ov-card h3 { font-size: 0.82rem; }
  .lvg-section { padding: 14px 10px; }
  .lvg-sec-head { flex-wrap: wrap; gap: 8px; }
  .lvg-tier-badge { width: 72px; }
  .lvg-tier-lv { font-size: 1rem; }
  .lvg-tier-stat small { font-size: 0.58rem; min-width: 32px; }
  .lvg-tier-stat b { font-size: 0.72rem; }
  .lvg-tier-badge-max { width: 86px; }
  .lvg-tier-max .lvg-tier-lv { font-size: 1.3rem; }
  .lvg-earn-card { padding: 16px 12px; }
  .lvg-earn-ico { width: 34px; height: 34px; border-radius: 8px; }
  .lvg-earn-ico svg { width: 16px; height: 16px; }
  .lvg-earn-pts { font-size: 0.82rem; padding: 4px 10px; }
  .lvg-ex-rate-card { padding: 20px 12px; }
  .lvg-ex-rate-num { font-size: 1.2rem; }
  .lvg-ex-rate-unit { font-size: 0.72rem; }
  .lvg-ex-rate-arrow { width: 36px; height: 36px; }
  .lvg-ex-rate-arrow svg { width: 16px; height: 16px; }
  .lvg-dual-banner { padding: 14px; }
  .lvg-dual-ico { width: 36px; height: 36px; }
  .lvg-dual-ico svg { width: 16px; height: 16px; }
  .lvg-dual-item strong { font-size: 0.82rem; }
  .lvg-dual-item p { font-size: 0.68rem; }
  .lvg-ex-rule-ico { width: 30px; height: 30px; }
  .lvg-sim-daily-num { font-size: 1.2rem; }
}

/* ─── ERROR ───────────────────────────────────────────────── */
.error-wrap { padding: 60px 16px; display: flex; justify-content: center; }
.error-card { text-align: center; max-width: 400px; }
.error-code { font-family: var(--font-en); font-size: 4.5rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.error-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.error-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.btn-error-home { display: inline-block; background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 600; padding: 10px 22px; border-radius: var(--radius); }
.btn-error-home:hover { background: var(--accent-hover); color: #fff; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--white); border-top: 1.5px solid var(--border); padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 2.5fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); align-items: start; }
.footer-nav-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.footer-desc .fd-stake {
  color: var(--accent);
  font-weight: 700;
}
.footer-col-title { font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { display: none; }
/* ── 경고·면책 카드 ── */
.ft-warn-card {
  border-radius: 16px; padding: 26px 24px 22px; margin-bottom: 14px;
  background: #fff; border: 1px solid #e5e5ea;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.ft-warn-top {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f3;
}
.ft-19-mark { flex-shrink: 0; line-height: 0; }
.ft-warn-law {
  margin: 0; font-size: 0.78rem; line-height: 1.8;
  color: #555; letter-spacing: -0.01em; word-break: keep-all;
}
.ft-warn-law strong { color: #1a1a1a; font-weight: 700; }
.ft-warn-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.ft-warn-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; border: 1px solid transparent;
}
.ft-warn-tag svg { flex-shrink: 0; }
.ft-warn-tag-red   { color: #d32f2f; background: #fef2f0; border-color: #f5c6cb; }
.ft-warn-tag-orange { color: #e67e00; background: #fff8ef; border-color: #ffe0b2; }
.ft-warn-tag-green  { color: #2e7d32; background: #f0f9f1; border-color: #c8e6c9; }
.ft-warn-disc {
  font-size: 0.68rem; line-height: 1.8; color: #999;
  padding-top: 14px; border-top: 1px solid #f0f0f3;
  word-break: keep-all;
}

@media (max-width: 600px) {
  .ft-warn-card { padding: 22px 18px 18px; border-radius: 14px; }
  .ft-warn-top {
    flex-direction: column; align-items: center; text-align: center;
    gap: 14px; margin-bottom: 16px; padding-bottom: 16px;
  }
  .ft-19-mark svg { width: 60px; height: 60px; }
  .ft-warn-law { font-size: 0.73rem; line-height: 1.75; }
  .ft-warn-tags {
    flex-direction: column; align-items: stretch; gap: 6px;
  }
  .ft-warn-tag {
    justify-content: center; padding: 9px 12px;
    border-radius: 10px; font-size: 0.7rem;
  }
  .ft-warn-disc { font-size: 0.64rem; text-align: center; padding-top: 12px; }
}


/* ── 후원 섹션 ── */
.don-wrap { padding: 16px 0 4px; border-top: 1px solid var(--border); }
.don-card {
  border-radius: 10px; padding: 0; position: relative; overflow: hidden;
  border: 1px solid rgba(38,161,123,0.15);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.don-card:hover {
  border-color: rgba(38,161,123,0.3);
  box-shadow: 0 2px 12px rgba(38,161,123,0.08);
}
.don-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid rgba(38,161,123,0.08);
}
.don-badge {
  display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 0.72rem; font-weight: 800; color: #26a17b;
}
.don-badge svg { width: 13px; height: 13px; fill: #26a17b; stroke: #26a17b; }
.don-notice {
  font-size: 0.6rem; font-weight: 600; color: var(--text-muted);
  position: relative; padding-left: 8px; margin-left: 2px;
}
.don-notice::before {
  content: '·'; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  color: rgba(38,161,123,0.4); font-weight: 900;
}
.don-network {
  font-size: 0.58rem; font-weight: 700; color: #26a17b;
  background: rgba(38,161,123,0.08); padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.don-body { padding: 10px 14px 12px; }
.don-addr-row {
  display: flex; align-items: center; gap: 8px;
  background: rgba(38,161,123,0.04); border: 1px solid rgba(38,161,123,0.1);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
}
.don-addr-icon { flex-shrink: 0; display: flex; align-items: center; }
.don-addr {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.66rem; color: var(--text-sec); font-weight: 600;
  word-break: break-all; line-height: 1.5; flex: 1;
  letter-spacing: 0.02em;
}
.don-actions { display: flex; gap: 6px; }
.don-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 7px;
  font-size: 0.68rem; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.15s ease;
}
.don-btn span { pointer-events: none; }
.don-btn-copy {
  flex: 1; justify-content: center;
  color: #fff; background: linear-gradient(135deg, #26a17b, #1d8a68);
}
.don-btn-copy:hover { box-shadow: 0 2px 10px rgba(38,161,123,0.35); transform: translateY(-1px); }
.don-btn-copy:active { transform: translateY(0); }
.don-btn-qr {
  padding: 7px 12px; border: 1px solid rgba(38,161,123,0.2);
  background: rgba(38,161,123,0.06); color: #1a8f6a;
}
.don-btn-qr:hover { background: rgba(38,161,123,0.12); border-color: rgba(38,161,123,0.35); }
.btn-sm { font-size: 0.68rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: var(--accent); color: #fff; border: none; cursor: pointer; transition: var(--transition); }
.btn-sm:hover { background: var(--accent-hover); }
.btn-sm-outline { background: var(--white); color: var(--text-sec); border: 1px solid var(--border); }
.btn-sm-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--white); }
.footer-bottom { padding: 14px 0; text-align: center; font-size: 0.7rem; color: var(--text-muted); opacity: 0.5; }

/* ─── MODAL ───────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 28px 24px; max-width: 340px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); animation: modalIn 0.2s ease; position: relative; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-close { position: absolute; top: 12px; right: 14px; font-size: 1.2rem; color: var(--text-muted); }
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.modal-qr-wrap { display: flex; justify-content: center; margin-bottom: 12px; min-height: 150px; align-items: center; }
.modal-qr-wrap img { border: 2px solid var(--border); border-radius: 8px; padding: 8px; max-width: 160px; }
.modal-address { font-size: 0.65rem; color: var(--text-muted); font-family: monospace; word-break: break-all; background: var(--bg); padding: 8px; border-radius: 6px; margin-bottom: 12px; border: 1px solid var(--border); }
.btn-accent { background: var(--accent); color: #fff; font-size: 0.82rem; font-weight: 700; padding: 9px 20px; border-radius: var(--radius); border: none; cursor: pointer; transition: var(--transition); }
.btn-accent:hover { background: var(--accent-hover); }

/* ─── 모바일 입력 확대 방지 ──────────────────────────────── */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="password"],
  input[type="search"], input[type="tel"], input[type="url"],
  input[type="number"], textarea, select {
    font-size: 16px !important;
  }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .demo-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .info-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-tips-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { text-align: center; }
  .footer-brand .footer-logo-wrap { justify-content: center; }
  .footer-nav-row { grid-template-columns: repeat(3, 1fr); text-align: center; }
  .footer-links { align-items: center; }
  .hero-strip { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .strip-sep { display: none; }
  .strip-item { flex: 1 1 40%; justify-content: flex-start; }
  .rank-tabs { gap: 5px; }
  .rank-tab { font-size: 0.76rem; padding: 9px 0; }
  .rank-tab svg { width: 14px; height: 14px; }
  .rank-row { padding: 9px 12px; gap: 8px; }
  .rank-num { width: 28px; font-size: 0.72rem; }
  .rank-medal { width: 24px; height: 24px; }
  .rank-nick { font-size: 0.8rem; }
  .rank-val { font-size: 0.82rem; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }

}

@media (max-width: 640px) {
  body { font-size: 13px; }

  .rank-section { padding: 24px 0 32px; }
  .rank-tabs { gap: 4px; margin-bottom: 10px; }
  .rank-tab { font-size: 0.7rem; padding: 8px 0; gap: 4px; border-radius: var(--radius); }
  .rank-tab svg { width: 13px; height: 13px; }
  .rank-list { padding: 2px 4px; }
  .rank-row { padding: 8px 8px; gap: 6px; }
  .rank-num { width: 24px; font-size: 0.66rem; }
  .rank-medal { width: 20px; height: 20px; }
  .rank-lv { font-size: 0.52rem; padding: 1px 5px; }
  .rank-nick { font-size: 0.74rem; }
  .rank-val { font-size: 0.76rem; }
  .rank-val small { font-size: 0.56rem; }
  .rank-empty { padding: 36px 16px; }

  .top-bar-inner { height: 40px; font-size: 0.72rem; }
  .top-bar-left { gap: 6px; }
  .top-bar-right { gap: 8px; }
  .top-bar-right .top-bar-link { font-size: 0.74rem; font-weight: 600; padding: 5px 10px; border-radius: var(--radius-full); }
  .top-bar-link.signup { font-size: 0.74rem; padding: 5px 14px; font-weight: 700; }

  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-play-btn {
    opacity: 1;
    inset: auto 0 0 0;
    background: linear-gradient(0deg, rgba(20,10,40,0.65) 0%, transparent 100%);
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    height: 50%;
  }
  .demo-play-pill { transform: none; padding: 5px 10px; font-size: 0.6rem; gap: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
  .demo-play-ico { width: 14px; height: 14px; font-size: 0.45rem; }
  .demo-modal { border-radius: 0; }
  .demo-modal-overlay { padding: 0; }
  .btn-demo-real { display: none; }

  .topbar-search { display: none; }
  .mobile-search-toggle { display: flex; }
  .profile-drop { display: none; }
  .hamburger { display: flex; }
  .site-header { min-height: 150px; padding: 24px 0; }
  .logo-img { height: 44px; filter: none; }
  .logo-img-game { height: 110px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)) drop-shadow(0 0 22px rgba(255,200,60,0.4)); }
  .logo-img-sm { height: 34px; filter: none; }
  .logo-img-auth { height: 54px; filter: none; }
  .logo-area:hover .logo-img { filter: none; }

  /* ── 서브페이지: 5열 그리드 네비바 ── */
  .main-nav-bar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .main-nav-bar .mobile-nav-header { display: none; }
  .main-nav-bar .mnav-profile { display: none; }

  .nav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 6px 4px;
  }

  .mnav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--text-muted);
    border: none;
    border-radius: 8px;
    background: none;
    box-shadow: none;
    text-align: center;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
  }
  .mnav-link .mnav-ico {
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 0;
    background: none;
    box-sizing: border-box;
  }
  .mnav-link:hover { color: var(--accent); background: rgba(56,132,255,0.06); box-shadow: none; }
  .mnav-link:hover .mnav-ico { color: inherit !important; background: none; }
  .mnav-link.active { color: var(--accent); background: rgba(56,132,255,0.08); box-shadow: none; }
  .mnav-link.active .mnav-ico { color: var(--accent) !important; background: none; }

  .mnav-link.mnav-tg {
    margin-top: 0;
    padding: 6px 2px;
    background: none;
    color: #2AABEE;
    border-radius: 8px;
    box-shadow: none;
    justify-content: center;
    flex-direction: column;
  }
  .mnav-link.mnav-tg .mnav-ico { width: 18px; height: 18px; padding: 0; color: #2AABEE !important; background: none; }
  .mnav-link.mnav-tg:hover { color: #229ED9; transform: none; box-shadow: none; background: rgba(42,171,238,0.06); }

  .mnav-link.mnav-partner { border-left: none; }
  .mnav-link.mnav-partner .mnav-ico { background: none; }
  .mnav-link.mnav-demo .mnav-ico { background: none; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8,4,20,0.6);
    backdrop-filter: blur(3px);
    z-index: 998;
  }
  .nav-overlay.active { display: block; }

  /* ── 사이드 패널 (햄버거 열기 시) ── */
  .main-nav-bar.open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 300px !important;
    max-width: 82vw !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(235,245,255,0.45) 45%, rgba(255,255,255,0.6) 100%),
      url('../img/menu-bg-bright.png') center top / cover no-repeat !important;
    z-index: 999 !important;
    padding: 0 !important;
    flex-direction: column !important;
    box-shadow: -8px 0 40px rgba(60,80,120,0.3) !important;
    overflow-y: auto !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
  }
  .main-nav-bar.open .mobile-nav-header {
    display: flex !important;
    align-items: center !important; justify-content: center !important;
    padding: 18px 16px 16px !important; position: relative !important;
  }
  .main-nav-bar.open .mobile-nav-header::after {
    content: '' !important; position: absolute !important;
    left: 16px !important; right: 16px !important; bottom: 0 !important; height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(120,160,220,0.55), transparent) !important;
  }
  .main-nav-bar.open .mobile-nav-logo { display: block !important; height: 56px !important; width: auto !important; }
  .main-nav-bar.open .mobile-nav-close {
    display: flex !important; position: absolute !important; top: 14px !important; right: 14px !important;
    width: 30px !important; height: 30px !important;
    align-items: center !important; justify-content: center !important;
    font-size: 0.95rem !important; color: #5a4a1e !important;
    background: rgba(255,255,255,0.7) !important; border: 1px solid rgba(180,150,80,0.4) !important;
    border-radius: 50% !important; cursor: pointer !important;
  }

  /* 사이드패널 프로필: 로그인 */
  .main-nav-bar.open .mnav-profile { display: block !important; padding: 10px 14px 4px !important; }
  .main-nav-bar.open .mnav-profile-card.is-user {
    display: block !important; border-radius: 12px !important;
    background: rgba(255,255,255,0.82) !important;
    border: 1px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 2px 10px rgba(60,90,150,0.14) !important;
    backdrop-filter: blur(4px) !important; overflow: hidden !important;
  }
  .main-nav-bar.open .mnp-row1 {
    display: flex !important; align-items: center !important; gap: 8px !important;
    padding: 10px 12px !important;
  }
  .main-nav-bar.open .mnp-lv {
    display: flex !important; width: 30px !important; height: 30px !important; flex-shrink: 0 !important;
    align-items: center !important; justify-content: center !important;
    border-radius: 8px !important; color: #fff !important;
    font-weight: 900 !important; font-size: 0.7rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  }
  .main-nav-bar.open .mnp-meta {
    display: flex !important; flex-direction: column !important; min-width: 0 !important; flex: 1 !important;
  }
  .main-nav-bar.open .mnp-name {
    display: block !important; font-size: 0.82rem !important; font-weight: 800 !important; color: #1f2a44 !important;
    white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
    max-width: 120px !important;
  }
  .main-nav-bar.open .mnp-sub {
    display: block !important; font-size: 0.62rem !important; color: #8294ab !important; font-weight: 600 !important;
  }
  .main-nav-bar.open .mnp-noti {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 28px !important; height: 28px !important; border-radius: 8px !important;
    background: var(--accent-soft) !important; color: var(--accent) !important;
    flex-shrink: 0 !important; text-decoration: none !important;
  }
  .main-nav-bar.open .mnp-my {
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 5px 10px !important; font-size: 0.62rem !important; font-weight: 800 !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, var(--accent), #6366f1) !important; color: #fff !important;
    flex-shrink: 0 !important; letter-spacing: 0.04em !important;
  }
  .main-nav-bar.open .mnp-out {
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 5px 8px !important; font-size: 0.6rem !important; font-weight: 700 !important;
    border-radius: 6px !important; flex-shrink: 0 !important;
    background: rgba(255,255,255,0.6) !important; color: #8294ab !important;
    border: 1px solid rgba(90,110,140,0.2) !important;
  }

  /* 사이드패널 프로필: 게스트 */
  .main-nav-bar.open .mnav-profile-card.is-guest {
    display: flex !important; align-items: center !important; gap: 10px !important;
    padding: 10px 12px !important; border-radius: 12px !important;
    background: rgba(255,255,255,0.78) !important;
    border: 1px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 2px 10px rgba(60,90,150,0.14) !important;
  }
  .main-nav-bar.open .mnp-avatar-guest {
    display: flex !important; width: 30px !important; height: 30px !important; flex-shrink: 0 !important;
    align-items: center !important; justify-content: center !important;
    border-radius: 50% !important; background: linear-gradient(135deg, #cbd5e1, #94a3b8) !important;
    color: #fff !important;
  }
  .main-nav-bar.open .mnp-avatar-guest svg { width: 16px !important; height: 16px !important; }
  .main-nav-bar.open .mnp-guest-body { display: block !important; flex: 1 !important; min-width: 0 !important; }
  .main-nav-bar.open .mnp-guest-text { display: none !important; }
  .main-nav-bar.open .mnp-auth-btns { display: flex !important; gap: 6px !important; }
  .main-nav-bar.open .mnp-btn {
    display: block !important; flex: 1 !important; text-align: center !important;
    font-size: 0.72rem !important; font-weight: 700 !important; padding: 7px 0 !important; border-radius: 8px !important;
  }
  .main-nav-bar.open .mnp-btn-login { color: #2a3a5c !important; background: rgba(255,255,255,0.85) !important; border: 1px solid rgba(90,110,140,0.3) !important; }
  .main-nav-bar.open .mnp-btn-signup { color: #fff !important; background: linear-gradient(135deg, #ff8c2a, #f04e8a) !important; }
  .main-nav-bar.open .nav-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 8px 14px 16px !important;
    gap: 4px !important;
    grid-template-columns: none !important;
  }
  .main-nav-bar.open .mnav-link {
    flex-direction: row !important;
    gap: 12px !important;
    padding: 9px 11px !important;
    font-size: 0.86rem !important;
    color: #2a3a5c !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.62) !important;
    box-shadow: 0 2px 8px rgba(60,90,150,0.1) !important;
    text-align: left !important;
    white-space: normal !important;
    justify-content: flex-start !important;
  }
  .main-nav-bar.open .mnav-link .mnav-ico {
    width: 30px !important;
    height: 30px !important;
    padding: 7px !important;
    border-radius: 9px !important;
    background: rgba(120,150,210,0.16) !important;
    box-sizing: border-box !important;
  }
  .main-nav-bar.open .mnav-link:hover,
  .main-nav-bar.open .mnav-link.active {
    background: linear-gradient(135deg, #ff8c2a, #f04e8a) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.5) !important;
    box-shadow: 0 4px 14px rgba(240,78,138,0.35) !important;
  }
  .main-nav-bar.open .mnav-link:hover .mnav-ico,
  .main-nav-bar.open .mnav-link.active .mnav-ico {
    background: rgba(255,255,255,0.28) !important;
    color: #fff !important;
  }
  .main-nav-bar.open .mnav-link.mnav-tg {
    margin-top: 10px !important;
    padding: 12px !important;
    background: linear-gradient(135deg, #0088CC, #00AAFF) !important;
    color: #fff !important;
    border-radius: 11px !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(0,136,204,0.4) !important;
  }
  .main-nav-bar.open .mnav-link.mnav-tg .mnav-ico {
    width: 22px !important; height: 22px !important; padding: 0 !important;
    background: transparent !important; color: #fff !important;
  }

  /* ── 홈페이지: 기본 상태에서도 사이드 패널 ── */
  .is-home .main-nav-bar {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 300px;
    max-width: 82vw;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(235,245,255,0.45) 45%, rgba(255,255,255,0.6) 100%),
      url('../img/menu-bg-bright.png') center top / cover no-repeat;
    z-index: 999;
    padding: 0;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(60,80,120,0.3);
    overflow-y: auto;
    border-bottom: none;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  }
  .is-home .main-nav-bar.open { transform: translateX(0); visibility: visible; }

  .is-home .main-nav-bar .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 16px;
    position: relative;
  }
  .is-home .main-nav-bar .mobile-nav-header::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120,160,220,0.55), transparent);
  }
  .is-home .mobile-nav-logo { height: 56px; width: auto; filter: drop-shadow(0 2px 6px rgba(40,60,110,0.35)); }
  .is-home .mobile-nav-close {
    position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; color: #5a4a1e;
    background: rgba(255,255,255,0.7); border: 1px solid rgba(180,150,80,0.4); border-radius: 50%;
    cursor: pointer; box-shadow: 0 2px 6px rgba(60,80,120,0.18); transition: var(--transition);
  }
  .is-home .mobile-nav-close:hover { background: #fff; color: #ef4444; transform: rotate(90deg); }

  .is-home .mnav-profile { display: block; padding: 10px 14px 4px; }
  .is-home .mnav-profile-card.is-user {
    border-radius: 12px; background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 2px 10px rgba(60,90,150,0.14);
    backdrop-filter: blur(4px); overflow: hidden;
  }
  .is-home .mnp-row1 {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  }
  .is-home .mnp-lv {
    width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; color: #fff;
    font-weight: 900; font-size: 0.7rem; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
  .is-home .mnp-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .is-home .mnp-name {
    font-size: 0.82rem; font-weight: 800; color: #1f2a44;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 120px;
  }
  .is-home .mnp-sub { font-size: 0.62rem; color: #8294ab; font-weight: 600; }
  .is-home .mnp-my {
    display: flex; align-items: center; justify-content: center;
    padding: 5px 10px; font-size: 0.62rem; font-weight: 800;
    border-radius: 6px; background: linear-gradient(135deg, var(--accent), #6366f1); color: #fff;
    flex-shrink: 0; letter-spacing: 0.04em;
  }
  .is-home .mnp-out {
    display: flex; align-items: center; justify-content: center;
    padding: 5px 8px; font-size: 0.6rem; font-weight: 700;
    border-radius: 6px; flex-shrink: 0;
    background: rgba(255,255,255,0.6); color: #8294ab;
    border: 1px solid rgba(90,110,140,0.2);
  }
  .is-home .mnav-profile-card.is-guest {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 12px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 10px rgba(60,90,150,0.14);
  }
  .is-home .mnp-avatar-guest {
    display: flex; width: 30px; height: 30px; flex-shrink: 0;
    align-items: center; justify-content: center;
    border-radius: 50%; background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff;
  }
  .is-home .mnp-avatar-guest svg { width: 16px; height: 16px; }
  .is-home .mnp-guest-body { flex: 1; min-width: 0; }
  .is-home .mnp-guest-text { display: none; }
  .is-home .mnp-auth-btns { display: flex; gap: 6px; }
  .is-home .mnp-btn { flex: 1; text-align: center; font-size: 0.72rem; font-weight: 700; padding: 7px 0; border-radius: 8px; }
  .is-home .mnp-btn-login { color: #2a3a5c; background: rgba(255,255,255,0.85); border: 1px solid rgba(90,110,140,0.3); }
  .is-home .mnp-btn-signup { color: #fff; background: linear-gradient(135deg, #ff8c2a, #f04e8a); }

  .is-home .nav-inner {
    flex-direction: column; align-items: stretch; padding: 8px 14px 16px; gap: 4px; overflow-x: visible;
  }
  .is-home .mnav-link {
    gap: 12px; padding: 9px 11px; font-size: 0.86rem; color: #2a3a5c;
    border: 1px solid rgba(255,255,255,0.7); border-radius: 12px;
    background: rgba(255,255,255,0.62); box-shadow: 0 2px 8px rgba(60,90,150,0.1);
  }
  .is-home .mnav-link .mnav-ico {
    width: 30px; height: 30px; padding: 7px; border-radius: 9px;
    background: rgba(120,150,210,0.16); box-sizing: border-box;
  }
  .is-home .mnav-link:hover,
  .is-home .mnav-link.active {
    background: linear-gradient(135deg, #ff8c2a, #f04e8a); color: #fff;
    border-color: rgba(255,255,255,0.5); box-shadow: 0 4px 14px rgba(240,78,138,0.35);
  }
  .is-home .mnav-link:hover .mnav-ico,
  .is-home .mnav-link.active .mnav-ico { background: rgba(255,255,255,0.28); color: #fff !important; }

  .is-home .mnav-link.mnav-demo .mnav-ico { background: rgba(236,72,153,0.14); color: #ec4899 !important; }
  .is-home .mnav-link.mnav-partner .mnav-ico { background: rgba(99,102,241,0.14); color: #6366f1 !important; }

  .is-home .mnav-link.mnav-tg {
    margin-top: 10px; padding: 12px;
    background: linear-gradient(135deg, #0088CC, #00AAFF); color: #fff;
    border-radius: 11px; justify-content: center; box-shadow: 0 4px 14px rgba(0,136,204,0.4);
  }
  .is-home .mnav-link.mnav-tg .mnav-ico { width: 22px; height: 22px; padding: 0; background: transparent; color: #fff !important; }
  .is-home .mnav-link.mnav-tg:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,136,204,0.55); }

  .is-home .nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(8,4,20,0.6); backdrop-filter: blur(3px); z-index: 998;
  }
  .is-home .nav-overlay.active { display: block !important; }

  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .info-cards-grid { grid-template-columns: 1fr; }
  .vip-tips-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
  .footer-brand .footer-logo-wrap { justify-content: center; }
  .footer-logo-game { height: 86px; margin: 0 auto; }
  .footer-nav-row { grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
  .footer-col { text-align: center; }
  .footer-links { align-items: center; gap: 6px; }
  .footer-links a { font-size: 0.72rem; }
  .footer-col-title { font-size: 0.62rem; margin-bottom: 8px; }
  .hero-banner { padding: 10px 0 0; }
  .hero-overlay { padding: 16px 18px 16px 44px; background: linear-gradient(95deg, rgba(8,6,28,0.86) 0%, rgba(12,8,34,0.62) 45%, rgba(12,8,34,0.15) 72%, transparent 92%); }
  .hero-top { margin-bottom: 7px; }
  .hero-tag { font-size: 0.52rem; padding: 3px 9px; }
  .hero-title { font-size: 1rem; margin-bottom: 6px; }
  .hero-info { font-size: 0.62rem; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
  .hero-info-divider { display: none; }
  .btn-hero { font-size: 0.74rem; padding: 9px 18px; }
  .hero-arrow { width: 28px; height: 28px; font-size: 1.05rem; }
  .hero-arrow-prev { left: 6px; }
  .hero-arrow-next { right: 6px; }
  .hero-strip { padding: 10px; border-radius: 14px; gap: 8px; }
  .strip-ico { width: 30px; height: 30px; border-radius: 9px; }
  .strip-ico svg { width: 15px; height: 15px; }
  .strip-label { font-size: 0.64rem; }
  .strip-val { font-size: 0.58rem; }
  .strip-item { flex: 1 1 40%; padding: 2px 4px; gap: 8px; }


  .post-nav { flex-direction: column; }
  .write-footer { flex-direction: column; }
  .btn-cancel, .btn-submit-post { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .site-header { min-height: 130px; padding: 18px 0; }
  .logo-img { height: 38px; filter: none; }
  .logo-img-game { height: 88px; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3)) drop-shadow(0 0 16px rgba(255,200,60,0.4)); }
  .logo-img-sm { height: 30px; filter: none; }
  .logo-img-auth { height: 46px; filter: none; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .quick-item { padding: 10px 2px; gap: 4px; }
  .qi-svg { width: 18px; height: 18px; }
  .quick-label { font-size: 0.58rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   포인트 전환 페이지 (pex-) — White Theme
   ═══════════════════════════════════════════════════════════════════ */
.pex-page { padding-bottom: 60px; }

.pex-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}
.pex-layout-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pex-layout-side { position: sticky; top: 80px; }

/* ── 잔액+환율 요약 ── */
.pex-summary {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.pex-bal-card { display: flex; align-items: center; gap: 12px; }
.pex-bal-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fbbf2433;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.pex-bal-icon svg { width: 20px; height: 20px; stroke: #d97706; }
.pex-bal-icon-g { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #34d39933; }
.pex-bal-icon-g svg { stroke: #059669; }
.pex-bal-label { display: block; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 2px; }
.pex-bal-num { display: block; font-size: 1.15rem; font-weight: 800; color: #d97706; }
.pex-bal-num small { font-size: 0.72rem; font-weight: 600; opacity: 0.6; }
.pex-bal-green { color: #059669 !important; }
.pex-bal-usdt { justify-content: flex-end; text-align: right; }

.pex-rate-pill {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 14px;
}
.pex-rp-from { font-size: 0.72rem; font-weight: 700; color: #d97706; }
.pex-rp-arrow { width: 18px; height: 18px; stroke: var(--text-muted); transform: rotate(90deg); }
.pex-rp-to { font-size: 0.72rem; font-weight: 700; color: #059669; }
.pex-rp-to small { font-size: 0.62rem; color: var(--text-muted); }

/* ── 전환 신청 폼 ── */
.pex-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.pex-form-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pex-form-header svg { width: 20px; height: 20px; stroke: #d97706; flex-shrink: 0; }
.pex-form-header h2 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }

.pex-flash {
  padding: 11px 16px; border-radius: 8px; margin-bottom: 14px;
  font-size: 0.82rem; font-weight: 600;
}
.pex-flash-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }
.pex-flash-danger { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

.pex-form { display: flex; flex-direction: column; gap: 16px; }
.pex-field { display: flex; flex-direction: column; gap: 5px; }
.pex-label { font-size: 0.8rem; font-weight: 600; color: var(--text-sec); }

.pex-select-wrap { position: relative; }
.pex-select {
  width: 100%; padding: 11px 38px 11px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 16px;
  outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.pex-select:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.08); }
.pex-select option { background: #fff; color: var(--text); }
.pex-select-arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; stroke: var(--text-muted); pointer-events: none;
}

.pex-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 16px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.pex-input:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.08); }
.pex-input::placeholder { color: var(--text-muted); }
.pex-inp-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.08) !important; }

.pex-partner-info {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px; border-radius: 8px;
  background: #eff6ff; border: 1px solid #bfdbfe;
  margin-top: 4px; animation: pexFadeIn .25s ease;
}
.pex-partner-info svg { width: 16px; height: 16px; stroke: #3b82f6; flex-shrink: 0; margin-top: 1px; }
.pex-partner-info span { font-size: 0.78rem; color: #1e40af; line-height: 1.5; }
.pex-partner-info b { font-weight: 700; }

.pex-field-help {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 4px;
}
.pex-field-help svg { width: 14px; height: 14px; stroke: var(--text-muted); flex-shrink: 0; margin-top: 1px; }
.pex-field-help span { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; }
.pex-field-help b { color: var(--text-sec); font-weight: 600; }

@keyframes pexFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.pex-pt-input-wrap {
  display: flex; align-items: center;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.pex-pt-input-wrap:focus-within { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.08); }
.pex-pt-input-wrap .pex-pt-inp {
  border: none; background: transparent; border-radius: 0; flex: 1;
  box-shadow: none !important;
}
.pex-pt-unit {
  padding: 0 14px; font-size: 0.88rem; font-weight: 800; color: #d97706;
  background: #fff7ed; height: 100%; display: flex; align-items: center;
  border-left: 1px solid var(--border);
}

/* 실시간 환산 */
.pex-live-calc {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d066;
  border-radius: 8px;
  font-size: 0.84rem; color: #059669;
  transition: all .2s;
}
.pex-live-calc svg { width: 16px; height: 16px; stroke: #059669; flex-shrink: 0; }
.pex-live-calc b { font-size: 0.95rem; }
.pex-calc-error {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}
.pex-calc-error svg { stroke: #dc2626 !important; }

/* 포인트 부족 경고 */
.pex-warn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  animation: pexShake 0.4s ease;
}
.pex-warn svg { width: 16px; height: 16px; stroke: #dc2626; flex-shrink: 0; }
.pex-warn span { font-size: 0.8rem; font-weight: 600; color: #dc2626; }
@keyframes pexShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.pex-pt-meta { font-size: 0.76rem; color: var(--text-muted); }
.pex-pt-meta b { color: var(--text-sec); font-weight: 600; }

/* 빠른 선택 */
.pex-quick { display: flex; gap: 6px; }
.pex-qbtn {
  flex: 1;
  padding: 9px 6px; text-align: center;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-sec);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.pex-qbtn:hover { background: #fff7ed; border-color: #f59e0b66; color: #d97706; }
.pex-qbtn-max { background: #fff7ed; border-color: #f59e0b44; color: #d97706; }

.pex-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none; border-radius: 10px;
  color: #fff; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}
.pex-submit:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,0.3); }
.pex-submit svg { width: 18px; height: 18px; stroke: #fff; }
.pex-submit-disabled {
  opacity: 0.35 !important; cursor: not-allowed !important;
  transform: none !important; box-shadow: none !important;
}

/* ── 안내 가이드 (아코디언) ── */
.pex-guide {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pex-guide-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer; user-select: none;
  transition: background .2s;
}
.pex-guide-header:hover { background: var(--bg-hover); }
.pex-guide-hl { display: flex; align-items: center; gap: 8px; }
.pex-guide-hl svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; }
.pex-guide-hl h2 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 0; }
.pex-guide-chevron {
  width: 18px; height: 18px; stroke: var(--text-muted); transition: transform .3s;
}
.pex-guide.open .pex-guide-chevron { transform: rotate(180deg); }
.pex-guide-body {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  padding: 0 20px;
}
.pex-guide.open .pex-guide-body {
  max-height: 1200px;
  padding: 0 20px 20px;
}
.pex-layout-side .pex-guide { margin-bottom: 0; }

/* 경고 알림 */
.pex-alert-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.pex-alert-box > svg { width: 20px; height: 20px; stroke: #dc2626; flex-shrink: 0; margin-top: 1px; }
.pex-alert-box strong { color: #b91c1c; display: block; margin-bottom: 4px; font-size: 0.84rem; }
.pex-alert-box p { color: var(--text-sec); font-size: 0.8rem; line-height: 1.6; margin: 0; }
.pex-alert-box b { color: #dc2626; font-weight: 700; }

/* 절차 플로우 */
.pex-flow {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 0; margin-bottom: 18px;
}
.pex-flow-step {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pex-fs-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  font-size: 0.72rem; font-weight: 800; color: #fff;
  margin-right: 8px; vertical-align: middle;
}
.pex-flow-step strong { font-size: 0.84rem; color: var(--text); }
.pex-flow-step p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin: 6px 0 0 32px; }
.pex-flow-step b { color: #d97706; font-weight: 700; }
.pex-flow-line {
  width: 2px; height: 12px;
  background: #f59e0b44;
  margin: 0 0 0 28px;
}

/* 규정 */
.pex-rules ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.pex-rules li { color: var(--text-sec); font-size: 0.78rem; line-height: 1.5; }
.pex-rules b { color: #d97706; }

/* ── 전환 내역 ── */
.pex-history {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.pex-hist-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 14px;
}
.pex-hist-title svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; }
.pex-hist-list { display: flex; flex-direction: column; gap: 8px; }
.pex-hist-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.pex-hr-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pex-hr-partner { font-weight: 700; color: var(--text); font-size: 0.84rem; }
.pex-hr-badge {
  font-size: 0.64rem; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  background: rgba(0,0,0,0.04);
  color: var(--bc, #888);
  border: 1px solid rgba(0,0,0,0.08);
}
.pex-hr-mid { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pex-hr-uid { font-size: 0.76rem; color: var(--text-muted); }
.pex-hr-date { font-size: 0.72rem; color: var(--text-muted); }
.pex-hr-right { text-align: right; flex-shrink: 0; }
.pex-hr-pts { display: block; font-size: 0.82rem; font-weight: 700; color: #dc2626; }
.pex-hr-usdt { display: block; font-size: 0.72rem; font-weight: 600; color: #059669; }

/* ── 돌아가기 ── */
.pex-back { text-align: center; padding: 16px 0; }
.pex-back a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.82rem;
  text-decoration: none; transition: color .2s;
}
.pex-back a:hover { color: var(--text); }
.pex-back svg { width: 16px; height: 16px; }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .pex-layout { grid-template-columns: 1fr; }
  .pex-layout-side { position: static; }
}
@media (max-width: 640px) {
  .pex-page { padding-bottom: 40px; }
  .pex-summary { grid-template-columns: 1fr; gap: 10px; padding: 16px 14px; }
  .pex-bal-usdt { justify-content: flex-start; text-align: left; }
  .pex-rate-pill { flex-direction: row; gap: 8px; padding: 6px 0; }
  .pex-rp-arrow { transform: none; }
  .pex-form-wrap { padding: 18px 16px; }
  .pex-guide-body { padding: 0 14px; }
  .pex-guide.open .pex-guide-body { padding: 0 14px 16px; }
  .pex-quick { flex-wrap: wrap; }
  .pex-qbtn { min-width: calc(50% - 4px); flex: none; padding: 10px 6px; font-size: 0.78rem; }
  .pex-history { padding: 16px 14px; }
  .pex-hist-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pex-hr-right { display: flex; gap: 10px; }
  .pex-alert-box { flex-direction: column; gap: 8px; }
}

/* ═══ 알림 벨 아이콘 & 드롭다운 (White Theme) ═══ */
.noti-bell-wrap { position: relative; display: inline-flex; align-items: center; }
.noti-bell-btn {
  background: none; border: none; padding: 6px 8px; cursor: pointer; position: relative;
  color: var(--text-sec); transition: color .2s;
}
.noti-bell-btn:hover { color: var(--accent); }
.noti-bell-btn svg { width: 19px; height: 19px; }
.noti-badge {
  position: absolute; top: 1px; right: 2px; min-width: 16px; height: 16px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 50px; display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none; border: 2px solid var(--white);
  animation: notiBounce .35s ease;
}
@keyframes notiBounce { 0%{transform:scale(0)} 50%{transform:scale(1.2)} 100%{transform:scale(1)} }

/* ═══ 알림 모달 (화면 중앙) ═══ */
.nm-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.35); backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center;
  padding: 60px 16px 20px;
}
.nm-overlay.active { display: flex; animation: nmFadeIn .18s ease; }
@keyframes nmFadeIn { from{opacity:0} to{opacity:1} }

.nm-box {
  width: 100%; max-width: 380px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.04);
  overflow: hidden; display: flex; flex-direction: column;
  max-height: calc(100vh - 100px);
  animation: nmSlideIn .22s ease;
}
@keyframes nmSlideIn { from{opacity:0;transform:translateY(-16px) scale(.97)} to{opacity:1;transform:none} }

.nm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.nm-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14px; color: var(--text);
}
.nm-title-ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.nm-head-acts { display: flex; align-items: center; gap: 6px; }
.nm-readall {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent-soft); border: none; color: var(--accent);
  font-size: 11px; font-weight: 700; cursor: pointer; padding: 5px 10px;
  border-radius: 6px; transition: background .15s;
}
.nm-readall:hover { background: rgba(56,132,255,.15); }
.nm-close {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 4px; border-radius: 6px; display: flex; align-items: center;
  transition: all .15s;
}
.nm-close:hover { background: var(--bg-hover); color: var(--text); }

.nm-list { overflow-y: auto; flex: 1; }
.nm-list::-webkit-scrollbar { width: 3px; }
.nm-list::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }

.nm-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  text-decoration: none; color: var(--text); transition: background .12s;
  border-bottom: 1px solid var(--border);
}
.nm-item:last-child { border-bottom: none; }
.nm-item:hover { background: var(--bg-hover); }
.nm-unread { background: rgba(56,132,255,.03); }
.nm-unread:hover { background: rgba(56,132,255,.07); }
.nm-ico {
  width: 34px; height: 34px; min-width: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.nm-ico-point   { color: #f97316; background: rgba(249,115,22,.08); }
.nm-ico-comment { color: var(--accent); background: var(--accent-soft); }
.nm-ico-reply   { color: var(--purple); background: rgba(124,92,252,.08); }
.nm-ico-message { color: var(--pink); background: rgba(236,72,153,.08); }
.nm-ico-system  { color: #6366f1; background: rgba(99,102,241,.08); }
.nm-body { flex: 1; min-width: 0; }
.nm-item-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.nm-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.nm-dot {
  width: 7px; height: 7px; min-width: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 5px rgba(56,132,255,.3);
}

.nm-footer {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 12px; color: var(--accent); font-size: 12px; font-weight: 700;
  text-decoration: none; border-top: 1px solid var(--border); transition: background .12s;
}
.nm-footer:hover { background: var(--accent-soft); }

.nm-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px 16px; color: var(--text-muted); font-size: 13px;
}
.nm-empty svg { color: var(--border-dark); }

/* ═══ 알림함 전체 페이지 ═══ */

/* 툴바: 필터 + 액션 */
.noti-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.noti-filter-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 3px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; overflow-x: auto;
}
.noti-fbtn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 7px; border: none;
  background: transparent; color: var(--text-sec); font-size: 12px;
  font-weight: 600; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.noti-fbtn:hover { background: var(--bg-hover); }
.noti-fbtn.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 6px rgba(56,132,255,.25);
}
.nfb-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }

.noti-acts { display: flex; gap: 6px; flex-shrink: 0; }
.noti-act-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 7px; font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all .15s; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-sec);
}
.noti-act-btn:hover { background: var(--bg-hover); color: var(--text); }
.noti-act-del { color: var(--red); }
.noti-act-del:hover { background: rgba(239,68,68,.06); }

/* 알림 리스트 */
.noti-list { display: flex; flex-direction: column; }
.noti-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; transition: all .2s;
  border-bottom: 1px solid var(--border);
}
.noti-row:last-child { border-bottom: none; }
.noti-row:hover { background: var(--bg-hover); }
.noti-unread { background: rgba(56,132,255,.03); }
.noti-unread:hover { background: rgba(56,132,255,.06); }

.noti-row-ico {
  width: 36px; height: 36px; min-width: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.noti-row-ico svg { width: 18px; height: 18px; }
.noti-ico-point   { color: #f97316; background: rgba(249,115,22,.08); }
.noti-ico-comment { color: var(--accent); background: var(--accent-soft); }
.noti-ico-reply   { color: var(--purple); background: rgba(124,92,252,.08); }
.noti-ico-message { color: var(--pink); background: rgba(236,72,153,.08); }
.noti-ico-system  { color: #6366f1; background: rgba(99,102,241,.08); }

.noti-row-body { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.noti-row-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noti-row-desc { font-size: 12px; color: var(--text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noti-row-time { font-size: 11px; color: var(--text-muted); }

.noti-row-end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.noti-row-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px rgba(56,132,255,.35);
}
.noti-row-del {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 4px; border-radius: 6px; opacity: 0; transition: all .15s; display: flex;
}
.noti-row:hover .noti-row-del { opacity: 1; }
.noti-row-del:hover { color: var(--red); background: rgba(239,68,68,.08); }

/* 페이지네이션 */
.noti-paging { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 20px; }
.noti-pg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-sec); text-decoration: none; font-size: 12px;
  font-weight: 600; transition: all .15s;
}
.noti-pg:hover { background: var(--bg-hover); color: var(--text); }
.noti-pg.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.noti-pg-dots { color: var(--text-muted); padding: 0 3px; font-size: 12px; }

/* 빈 상태 */
.noti-empty-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 60px 20px !important; text-align: center;
}
.noti-empty-card svg { color: var(--border-dark); }
.noti-empty-card p { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; }
.noti-empty-card span { font-size: 13px; color: var(--text-muted); }

@media (max-width: 768px) {
  .nm-overlay { padding: 24px 12px 12px; align-items: center; }
  .nm-box { max-height: 80vh; border-radius: 14px; }
  .nm-item { padding: 10px 14px; gap: 8px; }
  .nm-ico { width: 30px; height: 30px; min-width: 30px; border-radius: 8px; }
  .nm-ico svg { width: 14px; height: 14px; }
  .nm-item-title { font-size: 12px; }
  .nm-head { padding: 12px 14px; }
  .noti-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .noti-filter-bar { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .noti-fbtn { padding: 6px 10px; font-size: 11px; }
  .noti-acts { justify-content: flex-end; }
  .noti-row { padding: 12px 14px; gap: 10px; }
  .noti-row-ico { width: 30px; height: 30px; min-width: 30px; border-radius: 8px; }
  .noti-row-ico svg { width: 14px; height: 14px; }
  .noti-row-title { font-size: 12px; }
  .noti-row-desc { font-size: 11px; }
  .noti-row-del { opacity: 1; }
  .noti-paging { margin-top: 16px; }
  .noti-pg { width: 30px; height: 30px; font-size: 11px; }
}
