/**
 * BIKEJOB 테마 — layout/style.css
 * 원본 시안 CSS 그대로 적용
 */

:root {
  --red: #E8001D;
  --red-dark: #c0001a;
  --p: #E8001D;
  --black: #111111;
  --dark: #1a1a1a;
  --gray-900: #222222;
  --gray-800: #333333;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-400: #aaaaaa;
  --gray-300: #cccccc;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --font-main: 'Noto Sans KR', sans-serif;
  /* DXCMS 호환 변수 */
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --text-main: #111111;
  --text-muted: #888888;
  --border: #eeeeee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* ===== HEADER ===== */
.site-header,
.dx-header {
  background: var(--white) !important;
  border-bottom: 1px solid #eee !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--black);
  flex-shrink: 0;
}
.logo span { color: var(--red); }

.main-nav { display: flex; gap: 28px; flex: 1; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--red); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-login {
  padding: 7px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login:hover { border-color: var(--red); color: var(--red); }

.btn-join {
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-join:hover { background: var(--red-dark); }

.search-icon {
  color: var(--gray-700);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}
.search-icon:hover { color: var(--red); }

/* 드롭다운 네비 */
.dx-nav-item { position: relative; overflow: visible; flex-shrink: 0; white-space: nowrap; }
.dx-nav-item:hover .dx-dropdown { display: block; }
.dx-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 500;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 40%, #2a2020 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-img-bg {
  position: absolute;
  right: 0; top: 0;
  width: 55%; height: 100%;
  background: linear-gradient(135deg, #1a1a2a 0%, #2a2030 30%, #3a1010 70%, #1a0808 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bike-icon {
  font-size: 200px;
  color: rgba(255,255,255,0.06);
  transform: scaleX(-1) rotate(-8deg);
  position: absolute;
  right: 20px;
}
.hero-img-bg::after {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, #111 30%, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}

.hero-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-title .highlight { color: var(--red); }

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.btn-red {
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.btn-red:hover { background: var(--red-dark); color: var(--white); }

.btn-outline-white {
  padding: 12px 28px;
  background: transparent;
  color: var(--white);
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-item {}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-value { font-size: 28px; font-weight: 900; letter-spacing: -1px; }

/* ===== CATEGORY ===== */
.category-section {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 32px 0;
}

.category-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.cat-item:hover { border-color: var(--red); background: #fff5f5; }
.cat-item:hover .cat-icon { color: var(--red); }

.cat-icon { font-size: 28px; color: var(--gray-700); transition: color 0.2s; }
.cat-name { font-size: 13px; font-weight: 700; color: var(--black); }
.cat-desc { font-size: 11px; color: var(--gray-500); margin-top: -4px; }

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
}
.more-link {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.more-link:hover { color: var(--red); }

/* ===== TABS ===== */
.board-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #ddd;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
}
.tab-btn.active { background: var(--red); color: var(--white); border-color: var(--red); font-weight: 700; }
.tab-btn:hover:not(.active) { border-color: var(--red); color: var(--red); }

/* ===== POST LIST ===== */
.post-list { display: flex; flex-direction: column; }

.post-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover .post-title { color: var(--red); }

.post-thumb {
  width: 110px;
  height: 74px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-body { flex: 1; min-width: 0; }

.post-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.4;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.post-excerpt {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-500);
}
.post-meta .author { color: var(--gray-700); font-weight: 500; }
.post-meta .dot { color: var(--gray-300); }
.post-meta .stat { display: flex; align-items: center; gap: 3px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.rider-friend-list { display: flex; flex-direction: column; gap: 10px; }

.rider-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.rider-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.rider-avatar img { width: 100%; height: 100%; object-fit: cover; }

.rider-info { flex: 1; min-width: 0; }
.rider-name { font-size: 13px; font-weight: 700; color: var(--black); }
.rider-desc { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

.btn-apply {
  padding: 5px 12px;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  background: transparent;
  font-family: var(--font-main);
}
.btn-apply:hover { background: var(--red); color: var(--white); }

.club-banner {
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #333);
  padding: 24px 20px;
  color: var(--white);
  position: relative;
}
.club-banner-title { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.club-banner-desc { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.btn-white-outline {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-white-outline:hover { background: rgba(255,255,255,0.15); }

.trending-list { display: flex; flex-direction: column; gap: 8px; }
.trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover .trending-keyword { color: var(--red); }
.trending-rank { width: 20px; font-size: 14px; font-weight: 900; color: var(--red); flex-shrink: 0; }
.trending-keyword { font-size: 13px; font-weight: 500; flex: 1; }
.trending-change { font-size: 11px; font-weight: 700; }
.trending-change.up { color: var(--red); }
.trending-change.down { color: #0066cc; }

/* ===== COURSE SECTION ===== */
.course-section {
  background: #f8f8f8;
  padding: 40px 0;
}
.course-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.course-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.course-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--gray-100);
}
.course-thumb .fake-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  color: rgba(255,255,255,0.2);
}
.course-region {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
}
.course-body { padding: 14px; }
.course-name { font-size: 14px; font-weight: 800; margin-bottom: 4px; color: var(--black); }
.course-desc { font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gray-500);
}
.course-stats { display: flex; gap: 8px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black) !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 48px 0 24px !important;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { font-size: 20px; font-weight: 900; color: var(--white); margin-bottom: 10px; letter-spacing: -0.5px; }
.footer-logo span { color: var(--red); }
.footer-tagline { font-size: 12px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
}
.social-icon:hover { background: var(--red); color: var(--white); }
.footer-col-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-newsletter-desc { font-size: 12px; margin-bottom: 12px; }
.footer-newsletter-form { display: flex; gap: 0; border-radius: 4px; overflow: hidden; }
.footer-newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-main);
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter-form button {
  padding: 10px 16px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-main);
}
.footer-newsletter-form button:hover { background: var(--red-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* fake-thumb */
.fake-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--gray-300);
  background: linear-gradient(135deg, #ddd, #eee);
}
.fake-thumb-dark {
  background: linear-gradient(135deg, #222, #333);
  color: #555;
}

/* DXCMS 게시판 공통 오버라이드 */
.dx-list-wrap, .dx-post-row { font-family: var(--font-main); }

/* 반응형 */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .main-content { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { display: none; }
  .header-inner { gap: 20px; }
  .main-nav { gap: 16px; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 28px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   DXCMS 필수 시스템 CSS — 반드시 포함되어야 함
   ===================================================== */

/* body 구조 */
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 다크모드 전환 */
body, body * { transition: background-color .3s, border-color .3s, color .15s; }

/* ── 모바일 메뉴 드로어 ── */
.dx-mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9000;
}
.dx-mob-nav.open { display: block; }
.dx-mob-panel {
  background-color: #fff;
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  overflow-y: auto;
  animation: dxSlide .22s ease;
}
body.dark .dx-mob-panel { background-color: #1a1a1a; }

@keyframes dxSlide {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* 햄버거 버튼 반응형 */
@media (max-width: 767px) {
  #dxMobBtn { display: flex !important; }
  .main-nav { display: none !important; }
}
@media (min-width: 768px) {
  #dxMobBtn { display: none !important; }
}

/* ── 알림 토스트 ── */
#dx-notif-toast-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.dx-notif-toast { opacity: 0; transform: translateX(20px); transition: all .3s; pointer-events: auto; }
.dx-notif-toast.show { opacity: 1; transform: translateX(0); }

/* ── 플래시 메시지 ── */
.dx-flash-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.dx-flash-error   { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.dx-flash-info    { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* ── 에디터 콘텐츠 ── */
.dx-content img { max-width: 100%; border-radius: 6px; }
.dx-content a { color: #2563eb; text-decoration: underline; }
.dx-content pre { background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; font-family: monospace; font-size: .875rem; }
.dx-content code:not(pre code) { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: .85em; font-family: monospace; }
.dx-content blockquote { border-left: 3px solid #93c5fd; margin: 12px 0; padding: .5em 1em; color: #475569; background: #f8fafc; border-radius: 0 6px 6px 0; }

/* ── 다크모드 ── */
body.dark { background-color: #111; color: #f1f5f9; }
body.dark .site-header { background: #1a1a1a !important; border-color: #2a2a2a !important; }
body.dark .site-footer { background: #0a0a0a !important; }
body.dark .category-section { background: #1a1a1a !important; border-color: #2a2a2a !important; }
body.dark .cat-item { background: #1a1a1a; border-color: #2a2a2a; color: #ccc; }
body.dark .cat-item:hover { background: #2a1010; border-color: var(--red); }
body.dark .cat-name { color: #f1f5f9; }
body.dark .main-content { background: #111; }
body.dark .post-item { border-color: #2a2a2a; }
body.dark .post-item:hover { background: #1a1a1a; }
body.dark .post-title { color: #f1f5f9; }
body.dark .post-excerpt { color: #888; }
body.dark .rider-item { border-color: #2a2a2a; background: #1a1a1a; }
body.dark .rider-name { color: #f1f5f9; }
body.dark .section-title { color: #f1f5f9; }
body.dark .trending-keyword { color: #ccc; }
body.dark .course-section { background: #0a0a0a !important; }
body.dark .course-card { background: #1a1a1a; }
body.dark .course-name { color: #f1f5f9; }
body.dark .logo { color: #fff !important; }
body.dark .main-nav a { color: #ccc !important; }
body.dark .btn-login { background: #1a1a1a; border-color: #2a2a2a; color: #ccc; }
body.dark .dx-mob-panel { background: #1a1a1a; }
body.dark .dx-content code:not(pre code) { background: #334155; color: #e2e8f0; }
body.dark .dx-content blockquote { background: #1e293b; color: #94a3b8; }
body.dark input[type="text"],
body.dark input[type="search"],
body.dark input[type="email"],
body.dark textarea,
body.dark select { background: #2a2a2a; color: #f1f5f9; border-color: #333; }

/* ── 유틸 ── */
.hidden { display: none !important; }
.mr-3 { margin-right: 12px; }

/* ── 탑바 (상단 유틸바) ── */
.dx-topbar {
  background: #f8f8f8 !important;
  border-bottom: 1px solid #eee !important;
  font-size: 11px;
  color: #888;
}
body.dark .dx-topbar {
  background: #0a0a0a !important;
  border-color: #222 !important;
  color: #555;
}
.max-w-\[1200px\] { max-width: 1200px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.h-9 { height: 36px; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-5 { gap: 20px; }
.gap-4 { gap: 16px; }
.gap-3 { gap: 12px; }
.gap-2 { gap: 8px; }
.gap-1 { gap: 4px; }
.font-bold { font-weight: 700; }
.font-700 { font-weight: 700; }
.text-slate-500 { color: #64748b; }
.text-slate-700 { color: #334155; }
.text-3xl { font-size: 1.875rem; }
.mb-2 { margin-bottom: 8px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.text-center { text-align: center; }

/* ── FAB (스크롤 탑 버튼) ── */
#dx-fab-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .35s cubic-bezier(.4,0,.2,1), transform .35s cubic-bezier(.4,0,.2,1);
}
#dx-fab-wrap.dx-fab-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dx-fab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter .15s, transform .15s;
  user-select: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.dx-fab-btn:active { transform: scale(.94); }
#dx-fab-list {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226,232,240,.9) !important;
  color: #555;
  display: none;
}
#dx-fab-top {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226,232,240,.9) !important;
  color: #111;
  flex-direction: column;
  padding: 8px 14px;
  gap: 2px;
}
#dx-fab-top:hover { filter: brightness(.96); }
#dx-fab-svg-wrap { position: relative; width: 28px; height: 28px; flex-shrink: 0; }
#dx-fab-svg      { width: 28px; height: 28px; transform: rotate(-90deg); }
#dx-fab-track    { fill: none; stroke: rgba(203,213,225,.6); stroke-width: 2.5; }
#dx-fab-ring     { fill: none; stroke: url(#dx-fab-grad); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
#dx-fab-arrow    { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #111; }
#dx-fab-pct      { font-size: .65rem; font-weight: 600; color: #888; font-variant-numeric: tabular-nums; line-height: 1; }
#dx-fab-write    { background: var(--red); color: #fff; box-shadow: 0 2px 12px rgba(232,0,29,.35); display: none; }
#dx-fab-write:hover { filter: brightness(1.1); }
body.dark #dx-fab-top { background: rgba(15,23,42,.85); border-color: rgba(51,65,85,.7) !important; color: #e2e8f0; }
body.dark #dx-fab-arrow { color: #e2e8f0; }
body.dark #dx-fab-track { stroke: rgba(71,85,105,.6); }
@media (max-width: 480px) { #dx-fab-wrap { bottom: 16px; gap: 6px; } }

/* ===== AUTH (로그인/회원가입) ===== */
.auth-page {
  min-height: calc(100vh - 60px - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  padding: 40px 20px;
}

.auth-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--black);
}
.auth-logo span { color: var(--red); }

.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fff;
  color: #111;
}
.form-control:focus { border-color: var(--red); }

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--gray-700);
}
.checkbox-wrap input { accent-color: var(--red); }

.forgot-link { color: var(--gray-500); font-size: 13px; }
.forgot-link:hover { color: var(--red); }

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-main);
}
.btn-full-red { background: var(--red); color: #fff; }
.btn-full-red:hover { background: var(--red-dark); }

.auth-divider {
  text-align: center;
  color: var(--gray-300);
  font-size: 12px;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: #eee;
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-social {
  width: 100%;
  padding: 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s;
  font-family: var(--font-main);
  text-decoration: none;
}
.btn-social:hover { opacity: .88; color: inherit; }
.btn-kakao { background: #FEE500; color: #3C1E1E; }
.btn-naver { background: #03C75A; color: #fff; }

.auth-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 20px;
}
.auth-bottom a { color: var(--red); font-weight: 700; }

/* 회원 혜택 박스 */
.bj-member-info {
  margin-top: 24px;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 8px;
  text-align: center;
}
.bj-member-info-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-page { padding: 24px 16px; align-items: flex-start; }
}
