/* ================================================================
   PT+ Theme — layout/style.css
   DXCMS v8 시스템 CSS + PT+ 디자인 CSS 통합
================================================================ */

/* ── DXCMS 필수 시스템 CSS ① body 구조 ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #030712;
  color: #fff;
  margin: 0;
}

/* ── PT+ CSS 변수 ── */
:root {
  --pt-primary:     #7c3aed;
  --pt-primary-h:   #6d28d9;
  --pt-primary-rgb: 124,58,237;
  --pt-bg:          #030712;
  --pt-bg-card:     rgba(17,24,39,0.9);
  --pt-bg-nav:      rgba(3,7,18,0.85);
  --pt-border:      rgba(255,255,255,0.08);
  --pt-text:        #ffffff;
  --pt-muted:       #9ca3af;
  --pt-font:        'Noto Sans KR', sans-serif;
  --pt-font-logo:   'Barlow', sans-serif;
}

/* ── DXCMS 필수 시스템 CSS ② 모바일 드로어 ── */
.dx-mob-nav {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 9000;
}
.dx-mob-nav.open { display: block; }
.dx-mob-panel {
  background: #0f172a;
  border-right: 1px solid rgba(255,255,255,.08);
  position: absolute;
  top: 0; right: 0; width: 280px; height: 100%;
  overflow-y: auto;
  animation: dxSlide .22s ease;
}
@keyframes dxSlide {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── DXCMS 필수 시스템 CSS ③ 햄버거 버튼 ── */
@media (max-width: 767px) { #dxMobBtn { display: flex !important; } }
@media (min-width: 768px) { #dxMobBtn { display: none  !important; } }

/* ── DXCMS 필수 시스템 CSS ④ 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, transform .35s;
}
#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;
  cursor: pointer; border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
#dx-fab-top {
  background: rgba(17,24,39,.9); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #fff; flex-direction: column; padding: 8px 14px; gap: 2px;
}
#dx-fab-svg-wrap { position: relative; width: 28px; height: 28px; }
#dx-fab-svg      { width: 28px; height: 28px; transform: rotate(-90deg); }
#dx-fab-track    { fill: none; stroke: rgba(255,255,255,.1); 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; }
#dx-fab-arrow    { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#dx-fab-pct      { font-size: .65rem; font-weight: 600; color: #9ca3af; }
#dx-fab-write    { display: none; }
#dx-fab-list     { display: none; }

/* ── DXCMS 필수 시스템 CSS ⑤ 드롭다운 ── */
.dx-nav-item { position: relative; overflow: visible; }
.dx-nav-item:hover .dx-dropdown { display: block; }
.dx-dropdown {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); min-width: 160px;
  background: #0f172a; border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4); padding: 6px; z-index: 500;
}
.dx-dropdown a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: 13px; color: #d1d5db; text-decoration: none;
  transition: background .15s, color .15s; white-space: nowrap;
}
.dx-dropdown a:hover { background: rgba(124,58,237,.15); color: #a78bfa; }

/* ── DXCMS 필수 시스템 CSS ⑥ 에디터 콘텐츠 ── */
.dx-content img { max-width: 100%; border-radius: 8px; }
.dx-content a { color: #a78bfa; text-decoration: underline; }
.dx-content pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; }
.dx-content code:not(pre code) { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; }
.dx-content blockquote { border-left: 3px solid #7c3aed; margin: 12px 0; padding: .5em 1em; color: #9ca3af; }

/* ── DXCMS 필수 시스템 CSS ⑦ 플래시 메시지 ── */
.dx-flash-success { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.dx-flash-error   { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.3);  color: #fca5a5; }
.dx-flash-info    { background: rgba(99,102,241,.1);  border-color: rgba(99,102,241,.3); color: #a5b4fc; }

/* ── DXCMS 필수 시스템 CSS ⑧ 알림 토스트 ── */
#dx-notif-toast-wrap {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 99998; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}

/* ── DXCMS 필수 시스템 CSS ⑨ 다크모드 변수 (PT+는 항상 다크) ── */
body.dark { background-color: #030712; color: #f1f5f9; }

/* ── DXCMS 유틸 ── */
.hidden { display: none !important; }
.flex   { display: flex; }
.items-center { align-items: center; }
.gap-4  { gap: 16px; }
.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; }

/* =================================================================
   PT+ 네비게이션
================================================================= */
.pt-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--pt-bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  height: 64px;
  display: flex; align-items: center;
}
.pt-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; height: 100%;
}
.pt-logo {
  font-family: var(--pt-font-logo), 'Barlow', sans-serif;
  font-size: 22px; font-weight: 900; letter-spacing: -1px;
  color: #fff; text-decoration: none; flex-shrink: 0;
}
.pt-logo span { color: var(--pt-primary); }

.pt-nav-menu {
  display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0;
}
.pt-nav-link {
  position: relative;
  display: flex; align-items: center; height: 64px; padding: 0 16px;
  font-size: 14px; font-weight: 500; color: #9ca3af;
  text-decoration: none; transition: color .2s; white-space: nowrap;
}
.pt-nav-link:hover, .pt-nav-link.active { color: #fff; }
.pt-nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 12px; right: 12px;
  height: 2px; background: var(--pt-primary); border-radius: 99px;
}

.pt-nav-right {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.pt-nav-icon-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  color: #9ca3af; font-size: 15px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.pt-nav-icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.pt-nav-my-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  color: #d1d5db; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 99px;
  text-decoration: none; transition: all .2s; cursor: pointer; border: none;
}
.pt-nav-my-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* 햄버거 */
#dxMobBtn {
  width: 36px; height: 36px; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
  background: rgba(255,255,255,.06); cursor: pointer; color: #9ca3af;
}
#dxMobBtn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* =================================================================
   PT+ 메인 레이아웃
================================================================= */
#dx-main {
  padding-top: 64px; /* nav height */
}

/* 홈페이지: padding 없음 */
#dx-main.home-page {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* 일반 페이지 */
#dx-main.inner-page {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 88px 24px 40px;
  box-sizing: border-box;
}

/* =================================================================
   PT+ 히어로 섹션
================================================================= */
.pt-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  padding-top: 64px;
}
.pt-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(109,40,217,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(49,46,129,.2) 0%, transparent 50%),
              #030712;
}
.pt-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #030712 30%, rgba(3,7,18,.7) 60%, transparent 100%);
}
.pt-hero-inner {
  position: relative; z-index: 10;
  max-width: 1280px; margin: 0 auto; padding: 64px 24px;
  width: 100%; display: grid; grid-template-columns: 5fr 4fr; gap: 40px;
  align-items: center;
}
.pt-hero-title {
  font-size: clamp(42px, 5vw, 64px); font-weight: 900;
  line-height: 1.15; letter-spacing: -.02em; margin: 0 0 20px;
}
.pt-hero-title .accent { color: #a78bfa; }
.pt-hero-desc { color: #9ca3af; font-size: 16px; line-height: 1.7; margin: 0 0 32px; }
.pt-btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pt-primary); color: #fff;
  padding: 14px 32px; border-radius: 99px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  transition: background .2s, box-shadow .2s, gap .2s;
}
.pt-btn-primary:hover {
  background: var(--pt-primary-h);
  box-shadow: 0 6px 24px rgba(124,58,237,.4); gap: 14px;
}
.pt-hero-stats {
  display: flex; gap: 32px; margin-top: 40px;
}
.pt-hero-stat-label {
  font-size: 11px; color: #6b7280; margin-bottom: 4px;
}
.pt-hero-stat-label i { margin-right: 4px; }
.pt-hero-stat-value {
  font-size: 26px; font-weight: 900; color: #fff;
}
.pt-hero-stat-value span { font-size: 14px; font-weight: 400; color: #9ca3af; }

/* 트레이너 카드 (히어로 우측) */
.pt-trainer-card {
  background: rgba(17,24,39,.95);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 24px;
  backdrop-filter: blur(20px);
}
.pt-tag {
  display: inline-flex; align-items: center;
  font-size: 10px; padding: 2px 8px;
  background: rgba(124,58,237,.15); color: #a78bfa;
  border-radius: 99px; border: 1px solid rgba(124,58,237,.2);
}

/* 인기 선생님 사이드바 */
.pt-popular-sidebar {
  display: none;
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  z-index: 20; width: 224px;
}
@media (min-width: 1280px) { .pt-popular-sidebar { display: block; } }
.pt-popular-card {
  background: rgba(17,24,39,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px;
}

/* =================================================================
   PT+ 기능 카드 섹션
================================================================= */
.pt-section {
  padding: 64px 0;
}
.pt-section-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.pt-feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.pt-feature-card {
  background: rgba(17,24,39,.8);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px; padding: 24px;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
  transition: all .25s;
}
.pt-feature-card:hover {
  border-color: rgba(124,58,237,.3);
  background: rgba(17,24,39,.95);
  transform: translateY(-3px);
}

/* =================================================================
   PT+ 섹션 헤더
================================================================= */
.pt-section-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--pt-primary); margin-bottom: 8px;
}
.pt-section-title {
  font-size: 28px; font-weight: 900; margin: 0 0 4px;
}
.pt-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px;
}
.pt-more-link {
  font-size: 13px; color: #9ca3af; text-decoration: none;
  display: flex; align-items: center; gap: 4px; transition: color .2s;
}
.pt-more-link:hover { color: #fff; }

/* =================================================================
   PT+ 트레이너 카드 (리스트)
================================================================= */
.pt-trainer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.pt-trainer-list-card {
  background: rgba(17,24,39,.8);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 20px;
  text-decoration: none; color: inherit; display: block;
  transition: all .2s;
}
.pt-trainer-list-card:hover {
  border-color: rgba(124,58,237,.4); transform: translateY(-2px);
}
.pt-trainer-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.pt-badge-available {
  font-size: 11px; background: rgba(16,185,129,.2); color: #6ee7b7;
  border: 1px solid rgba(16,185,129,.3); padding: 2px 8px; border-radius: 99px;
}
.pt-badge-full {
  font-size: 11px; background: rgba(239,68,68,.2); color: #fca5a5;
  border: 1px solid rgba(239,68,68,.3); padding: 2px 8px; border-radius: 99px;
}

/* =================================================================
   PT+ 커뮤니티 섹션
================================================================= */
.pt-community-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pt-community-card {
  background: rgba(17,24,39,.8);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 20px;
  text-decoration: none; color: inherit; display: block; transition: all .2s;
}
.pt-community-card:hover { border-color: rgba(124,58,237,.3); }
.pt-cat-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 600;
}
.pt-cat-badge.review  { background: rgba(139,92,246,.2); color: #c4b5fd; }
.pt-cat-badge.tip     { background: rgba(16,185,129,.2); color: #6ee7b7; }
.pt-cat-badge.diet    { background: rgba(249,115,22,.2); color: #fdba74; }
.pt-cat-badge.qa      { background: rgba(59,130,246,.2); color: #93c5fd; }
.pt-cat-badge.notice  { background: rgba(124,58,237,.2); color: #a78bfa; }

/* =================================================================
   PT+ CTA 섹션
================================================================= */
.pt-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(109,40,217,.2) 0%, rgba(49,46,129,.15) 100%);
  border-top: 1px solid rgba(124,58,237,.2);
  border-bottom: 1px solid rgba(124,58,237,.2);
}
.pt-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: #d1d5db;
  padding: 14px 32px; border-radius: 99px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.2); cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.pt-btn-outline:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* =================================================================
   PT+ 푸터
================================================================= */
.pt-footer {
  background: #0a0f1a;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 48px 0 0;
  margin-top: auto;
}
.pt-footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.pt-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
}
.pt-footer-logo {
  font-family: var(--pt-font-logo), 'Barlow', sans-serif;
  font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -1px;
  text-decoration: none; display: inline-block; margin-bottom: 12px;
}
.pt-footer-logo span { color: var(--pt-primary); }
.pt-footer-desc { font-size: 13px; color: #4b5563; line-height: 1.7; }
.pt-footer-sns { display: flex; gap: 10px; margin-top: 16px; }
.pt-footer-sns a {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; font-size: 13px; text-decoration: none; transition: all .2s;
}
.pt-footer-sns a:hover { background: rgba(124,58,237,.2); color: #a78bfa; border-color: rgba(124,58,237,.3); }
.pt-footer-col h5 { font-size: 12px; font-weight: 800; color: #fff; margin: 0 0 16px; }
.pt-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pt-footer-col ul a {
  font-size: 13px; color: #4b5563; text-decoration: none; transition: color .2s;
}
.pt-footer-col ul a:hover { color: #fff; }
.pt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.pt-footer-bottom p { font-size: 11px; color: #1f2937; margin: 0; }
.pt-footer-bottom a { font-size: 11px; color: #1f2937; text-decoration: none; transition: color .2s; }
.pt-footer-bottom a:hover { color: #6b7280; }

/* =================================================================
   PT+ 로그인 / 회원가입 페이지
================================================================= */
.pt-auth-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: #030712;
  position: relative; overflow: hidden;
}
.pt-auth-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(109,40,217,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(49,46,129,.12) 0%, transparent 50%),
              #030712;
}
.pt-auth-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 16px 40px; position: relative; z-index: 1;
}
.pt-auth-logo {
  font-family: 'Barlow', sans-serif; font-size: 28px; font-weight: 900;
  color: #fff; letter-spacing: -1px; text-decoration: none;
  margin-bottom: 8px; display: inline-block;
}
.pt-auth-logo span { color: var(--pt-primary); }
.pt-auth-tagline { font-size: 13px; color: #6b7280; margin-bottom: 28px; }
.pt-auth-tabs {
  display: flex; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  padding: 4px; gap: 4px; margin-bottom: 24px;
}
.pt-auth-tab {
  padding: 8px 28px; border-radius: 9px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .2s;
  color: #6b7280;
}
.pt-auth-tab.active {
  background: rgba(255,255,255,.1); color: #fff;
}
.pt-auth-card {
  background: rgba(17,24,39,.95);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 32px;
  width: 100%; max-width: 440px;
  backdrop-filter: blur(20px);
}
.pt-auth-card h2 { font-size: 22px; font-weight: 800; margin: 0 0 24px; }
.pt-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  font-family: inherit; transition: filter .2s; margin-bottom: 10px;
}
.pt-social-kakao { background: #FEE500; color: #3A1D1D; }
.pt-social-naver { background: #03C75A; color: #fff; }
.pt-social-google { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.pt-social-btn:hover { filter: brightness(1.08); }
.pt-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: #4b5563; font-size: 12px;
}
.pt-divider::before, .pt-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.08);
}
.pt-form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #d1d5db; margin-bottom: 6px;
}
.pt-form-input {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); color: #fff;
  padding: 12px 16px; border-radius: 12px; font-size: 14px;
  outline: none; transition: border-color .2s, background .2s;
  font-family: inherit; box-sizing: border-box;
}
.pt-form-input:focus {
  border-color: rgba(124,58,237,.6); background: rgba(255,255,255,.08);
}
.pt-form-input::placeholder { color: #4b5563; }
.pt-form-input-wrap { position: relative; }
.pt-form-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #4b5563; font-size: 13px;
}
.pt-form-input-wrap .pt-form-input { padding-left: 38px; }
.pt-form-input-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: #4b5563; background: none; border: none; cursor: pointer; font-size: 13px;
}
.pt-form-group { margin-bottom: 18px; }
.pt-form-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; font-size: 13px;
}
.pt-form-footer label { display: flex; align-items: center; gap: 6px; color: #9ca3af; cursor: pointer; }
.pt-form-footer a { color: var(--pt-primary); text-decoration: none; }
.pt-form-footer a:hover { color: #a78bfa; }
.pt-submit-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: var(--pt-primary); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, box-shadow .2s;
}
.pt-submit-btn:hover { background: var(--pt-primary-h); box-shadow: 0 4px 20px rgba(124,58,237,.4); }
.pt-auth-back {
  margin-top: 20px; font-size: 13px; color: #4b5563;
  display: flex; align-items: center; gap: 6px; text-decoration: none; transition: color .2s;
}
.pt-auth-back:hover { color: #9ca3af; }

/* =================================================================
   PT+ 일반 페이지 (커뮤니티 게시판 등)
================================================================= */
.pt-page-header {
  background: linear-gradient(to bottom, transparent, rgba(3,7,18,1)),
              radial-gradient(ellipse at 50% 0%, rgba(109,40,217,.15) 0%, transparent 60%);
  padding: 40px 0 32px;
}
.pt-page-title { font-size: 32px; font-weight: 900; margin: 0 0 8px; }
.pt-page-subtitle { font-size: 14px; color: #9ca3af; }

/* =================================================================
   PT+ 모바일 메뉴 패널 스타일
================================================================= */
.dx-mob-panel .pt-mob-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.dx-mob-panel a, .dx-mob-panel button {
  font-family: 'Noto Sans KR', sans-serif;
}

/* =================================================================
   PT+ 반응형
================================================================= */
@media (max-width: 1024px) {
  .pt-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-trainer-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-community-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pt-hero-inner { grid-template-columns: 1fr; }
  .pt-hero-inner > *:last-child { display: none; }
  .pt-hero-title { font-size: 38px; }
  .pt-feature-grid { grid-template-columns: 1fr; }
  .pt-trainer-grid { grid-template-columns: 1fr; }
  .pt-community-grid { grid-template-columns: 1fr; }
  .pt-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pt-nav-menu { display: none; }
}
@media (max-width: 480px) {
  .pt-footer-grid { grid-template-columns: 1fr; }
  .pt-hero-stats { gap: 20px; flex-wrap: wrap; }
  .pt-auth-card { padding: 24px 20px; }
}

/* =================================================================
   PT+ 게시판 CSS 변수 오버라이드 (board/basic/style.css 대응)
   PT+ 테마는 항상 다크이므로 light 변수를 다크값으로 덮어씀
================================================================= */
:root {
  --bg-body:    #030712;
  --bg-card:    rgba(17,24,39,0.9);
  --bg-header:  rgba(3,7,18,0.85);
  --text-main:  #f1f5f9;
  --text-muted: #9ca3af;
  --border:     rgba(255,255,255,0.08);
  --hover-row:  rgba(255,255,255,0.04);
}

/* 게시판 목록 컨테이너 */
.dx-list-wrap {
  background: rgba(17,24,39,.85) !important;
  border-color: rgba(255,255,255,.08) !important;
}
.dx-list-head {
  border-bottom-color: rgba(255,255,255,.08) !important;
}
.dx-list-title { color: #fff !important; }

/* 정렬 버튼 */
.dx-sort-btn-wrap {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
}
.dx-sort-btn { color: #9ca3af !important; }
.dx-sort-btn.active {
  background: rgba(124,58,237,.2) !important;
  color: #a78bfa !important;
  box-shadow: none !important;
}

/* 목록 행 */
.dx-lt-thead { color: #6b7280 !important; background: rgba(17,24,39,.5) !important; border-color: rgba(255,255,255,.06) !important; }
.dx-lt-row-pc { border-bottom-color: rgba(255,255,255,.05) !important; }
.dx-lt-row-pc:hover { background: rgba(124,58,237,.05) !important; }
.dx-lt-row-mo { border-bottom-color: rgba(255,255,255,.05) !important; }
.dx-lt-row-mo:hover { background: rgba(124,58,237,.05) !important; }
.dx-lt-title-t { color: #e2e8f0 !important; }
.dx-lt-cur .dx-lt-title-t { color: #a78bfa !important; }

/* 게시판 뷰 */
.dx-view-card { background: rgba(17,24,39,.85) !important; border-color: rgba(255,255,255,.08) !important; color: #f1f5f9 !important; }
.dx-view-header { border-color: rgba(255,255,255,.08) !important; }
.dx-post-title { color: #fff !important; }
.dx-post-meta { color: #9ca3af !important; }
.dx-post-body { color: #e2e8f0 !important; background: transparent !important; }
.dx-post-body a { color: #a78bfa; }
.dx-post-body blockquote { background: rgba(124,58,237,.08); border-left-color: #7c3aed; color: #d1d5db; border-radius: 0 6px 6px 0; }
.dx-post-body table td, .dx-post-body table th { border-color: rgba(255,255,255,.08); }
.dx-action-bar { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.08) !important; }
.dx-action-btn { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.1) !important; color: #d1d5db !important; }
.dx-action-btn:hover { border-color: rgba(124,58,237,.4) !important; color: #a78bfa !important; }

/* 좋아요 버튼 활성 상태 */
.dx-like-btn.liked, .dx-like-btn[data-liked="1"] {
  background: rgba(239,68,68,.15) !important;
  border-color: rgba(239,68,68,.3) !important;
  color: #fca5a5 !important;
}

/* 파일 첨부 */
.dx-file-box { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.06) !important; }
.dx-file-box-head { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.06) !important; color: #9ca3af !important; }
.dx-file-item { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.06) !important; }
.dx-file-name { color: #d1d5db !important; }

/* 댓글 섹션 */
.dx-cmt-section { background: rgba(17,24,39,.7) !important; border-color: rgba(255,255,255,.08) !important; }
.dx-cmt-head { border-color: rgba(255,255,255,.08) !important; color: #fff !important; }
.dx-cmt-item { border-color: rgba(255,255,255,.05) !important; }
.dx-cmt-body { color: #d1d5db !important; }
.dx-cmt-body a { color: #a78bfa !important; }
.dx-cmt-form-wrap { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.06) !important; }
.dx-cmt-ta, .dx-reply-ta, .dx-edit-ta {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #f1f5f9 !important;
}
.dx-cmt-ta:focus, .dx-reply-ta:focus, .dx-edit-ta:focus {
  border-color: rgba(124,58,237,.5) !important;
  background: rgba(255,255,255,.08) !important;
}
.dx-cmt-ta::placeholder, .dx-reply-ta::placeholder, .dx-edit-ta::placeholder { color: #4b5563 !important; }

/* 태그 */
.dx-tag-item { background: rgba(124,58,237,.1) !important; border-color: rgba(124,58,237,.2) !important; color: #a78bfa !important; }

/* 링크 박스 */
.dx-link-box { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.06) !important; }
.dx-link-item { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.06) !important; }

/* 하이라이트 */
.dx-hl { background: rgba(124,58,237,.25) !important; color: #c4b5fd !important; }

/* 관리자 툴바 */
.dx-adm-bar { background: rgba(124,58,237,.1) !important; border-color: rgba(124,58,237,.2) !important; }

/* 공지 글로벌 */
.dx-global-notice-wrap { background: rgba(17,24,39,.6) !important; border-color: rgba(255,255,255,.06) !important; }
.dx-gn-row { border-bottom-color: rgba(255,255,255,.05) !important; }
.dx-gn-row:hover { background: rgba(239,68,68,.06) !important; }
.dx-gn-title { color: #e2e8f0 !important; }

/* 모바일 카테고리 필터 */
.dx-mob-cat-toggle { background: rgba(17,24,39,.8) !important; border-color: rgba(255,255,255,.08) !important; color: #9ca3af !important; }
.dx-mob-cat-pill { background: rgba(17,24,39,.8) !important; border-color: rgba(255,255,255,.08) !important; color: #9ca3af !important; }
.dx-mob-cat-pill:hover { border-color: rgba(124,58,237,.5) !important; color: #a78bfa !important; }
.dx-mob-cat-pill.active { background: rgba(124,58,237,.8) !important; border-color: #7c3aed !important; color: #fff !important; }

/* 글쓰기 폼 */
.dx-write-input, .dx-write-select, input[type="text"][name="title"],
#dx-subject-input {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #f1f5f9 !important;
}
.dx-write-input:focus, #dx-subject-input:focus {
  border-color: rgba(124,58,237,.5) !important;
  background: rgba(255,255,255,.08) !important;
}

/* 검색 입력 */
.dx-list-search input {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #f1f5f9 !important;
}
.dx-list-search input::placeholder { color: #4b5563 !important; }
.dx-list-search input:focus { border-color: rgba(124,58,237,.5) !important; }

/* 버튼 공통 */
.dx-write-btn, .dx-submit-btn, .btn-primary,
a[href*="write"]:not(.dx-lt-row-pc):not(.dx-lt-row-mo) {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
}
.dx-write-btn:hover, .dx-submit-btn:hover { background: #6d28d9 !important; }

/* 페이지네이션 */
.dx-pager { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 20px 0; }
.dx-pager a, .dx-pager span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: 10px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(17,24,39,.6); color: #9ca3af;
  transition: all .15s;
}
.dx-pager a:hover { border-color: rgba(124,58,237,.4); color: #a78bfa; }
.dx-pager .current, .dx-pager span.on {
  background: rgba(124,58,237,.8); border-color: #7c3aed; color: #fff;
}

/* =================================================================
   PT+ 검색 결과 페이지 오버라이드
================================================================= */
.dx-srch-wrap { max-width: 800px; margin: 0 auto; }
.dx-srch-item {
  background: rgba(17,24,39,.8) !important;
  border-color: rgba(255,255,255,.06) !important;
  transition: border-color .2s, transform .2s;
}
.dx-srch-item:hover {
  border-color: rgba(124,58,237,.3) !important;
  transform: translateY(-1px);
}
.dx-srch-title { color: #e2e8f0 !important; }
.dx-srch-title a { color: #e2e8f0 !important; }
.dx-srch-title a:hover { color: #a78bfa !important; }
.dx-srch-snippet { color: #9ca3af !important; }
.dx-srch-meta { color: #6b7280 !important; }
.dx-srch-board-badge {
  background: rgba(124,58,237,.15) !important;
  color: #a78bfa !important;
  border-color: rgba(124,58,237,.2) !important;
}

/* =================================================================
   PT+ board_latest 위젯 오버라이드
================================================================= */
.dx-latest-card, .dx-latest-list, .dx-latest-simple {
  background: rgba(17,24,39,.8) !important;
  border-color: rgba(255,255,255,.06) !important;
}
.dx-latest-title { color: #e2e8f0 !important; }
.dx-latest-title a { color: #e2e8f0 !important; }
.dx-latest-title a:hover { color: #a78bfa !important; }
.dx-latest-meta { color: #6b7280 !important; }

/* =================================================================
   PT+ 일반 인풋/버튼 공통 (dx-utils.css 오버라이드)
================================================================= */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], input[type="number"],
textarea, select {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #f1f5f9;
  border-radius: 10px;
}
input::placeholder, textarea::placeholder { color: #4b5563; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(124,58,237,.5);
  outline: none;
}
select { color: #f1f5f9; }
select option { background: #0f172a; color: #f1f5f9; }

/* PT+ 사이드바 카테고리 */
.dx-cat-nav {
  background: rgba(17,24,39,.85) !important;
  border-color: rgba(255,255,255,.08) !important;
  border-radius: 14px; overflow: hidden;
}
.dx-cat-ul { list-style: none; padding: 6px 0; margin: 0; }
.dx-cat-all, .dx-cat-top {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: .83rem; font-weight: 500;
  color: #d1d5db; text-decoration: none; transition: all .15s;
  width: 100%; border: none; background: none; cursor: pointer; text-align: left;
}
.dx-cat-all:hover, .dx-cat-top:hover { color: #a78bfa; background: rgba(124,58,237,.06); }
.dx-cat-active { color: #a78bfa !important; font-weight: 700 !important; background: rgba(124,58,237,.1) !important; border-left: 3px solid #7c3aed !important; }
.dx-cat-children { display: none; }
.dx-cat-ch-open { display: block; }
.dx-cat-child-a { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 24px; font-size: .78rem; color: #9ca3af; text-decoration: none; transition: all .15s; }
.dx-cat-child-a:hover { color: #a78bfa; }
.dx-cat-arrow { font-size: .65rem; color: #6b7280; transition: transform .22s; margin-left: auto; }
.dx-cat-open .dx-cat-arrow { transform: rotate(180deg); }
