/*
Theme Name: PixAuto
Theme URI: https://pixauto.co.kr
Author: PixAuto Studio
Description: 픽스오토 공식 웹사이트 테마
Version: 1.0.0
Text Domain: pixauto
*/

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #16171f;
    --bg-secondary: #1c1d28;
    --bg-card: #21222f;
    --bg-card-hover: #292a3a;
    --bg-darker: #111219;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #e8e9f0;
    --text-secondary: #9496a8;
    --text-muted: #5d5f72;
    --accent-blue: #5b8aff;
    --accent-purple: #8b6fff;
    --accent-cyan: #22d3ee;
    --accent-gradient: linear-gradient(135deg, #5b8aff 0%, #8b6fff 100%);
    --accent-glow: rgba(91, 138, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(91, 138, 255, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: "Pretendard Variable", "Pretendard", -apple-system, "Noto Sans KR", sans-serif;
    --max-width: 1200px;
}

/* ===== 라이트모드 ===== */
[data-theme="light"] {
    --bg-primary: #f5f6fa;
    --bg-secondary: #ecedf3;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f1f7;
    --bg-darker: #e8e9f0;
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1b2e;
    --text-secondary: #4a4c60;
    --text-muted: #8a8c9e;
    --accent-glow: rgba(91, 138, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(91, 138, 255, 0.06);
}

/* 라이트모드 헤더 */
[data-theme="light"] .site-header {
    background: rgba(245, 246, 250, 0.85);
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(245, 246, 250, 0.95);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* 라이트모드 로고 아이콘 */
[data-theme="light"] .logo-icon {
    color: #fff;
}

/* 라이트모드 히어로 그라데이션 배경 조정 */
[data-theme="light"] .hero::before {
    opacity: 0.3;
}

/* 라이트모드 nav-cta */
[data-theme="light"] .nav-cta {
    color: #fff !important;
}

/* 라이트모드 코드/입력창 */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1b2e;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    border-color: var(--accent-blue);
}

/* 테마 토글 버튼 */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 18px;
    height: 18px;
}

/* 다크모드: 해 아이콘 표시, 달 숨김 */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

/* 라이트모드: 달 아이콘 표시, 해 숨김 */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-purple);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header / Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(22, 23, 31, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(22, 23, 31, 0.95);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.site-logo:hover {
    color: var(--text-primary);
}

.site-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: var(--accent-gradient) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(91, 138, 255, 0.3);
    color: #fff !important;
    background: var(--accent-gradient) !important;
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(22, 23, 31, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        gap: 4px;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 16px; width: 100%; }
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-side {
    flex-shrink: 0;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 240px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-blue);
    min-width: 50px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        gap: 40px;
    }
    .hero-text { max-width: 100%; }
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .stat-item { min-width: auto; flex: 1; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(91, 138, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(91, 138, 255, 0.35);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ===== Section Base ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title-left {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: var(--text-primary);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Features Row ===== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .feature-row { grid-template-columns: 1fr; }
}

.feature-info {
    padding: 28px 32px;
    border-left: 3px solid var(--border-color);
    transition: var(--transition);
}

.feature-info:hover {
    border-left-color: var(--accent-blue);
    background: var(--bg-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.feature-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.feature-more {
    margin-top: 32px;
}

.link-arrow {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-blue);
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--accent-purple);
}

/* ===== Steps Horizontal ===== */
.steps-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.step-h {
    flex: 1;
    padding: 0 24px;
}

.step-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    opacity: 0.4;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.step-h h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-h p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.step-divider {
    width: 1px;
    height: 80px;
    background: var(--border-color);
    flex-shrink: 0;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .steps-horizontal {
        flex-direction: column;
        gap: 24px;
    }
    .step-divider {
        width: 40px;
        height: 1px;
        margin-top: 0;
    }
}

/* ===== CTA Simple ===== */
.cta-simple {
    text-align: center;
    padding: 40px 0;
}

.cta-simple h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cta-simple p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Footer styles moved to bottom of file (Footer Redesign section) */

/* ===== WordPress Content ===== */
.page-header-section {
    padding: 140px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.page-content h1, .page-content h2, .page-content h3 {
    font-weight: 700;
    margin: 1.8em 0 0.6em;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.page-content h1 { font-size: 2rem; }
.page-content h2 { font-size: 1.5rem; }
.page-content h3 { font-size: 1.2rem; }

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    color: var(--text-secondary);
    margin-bottom: 1.2em;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 0.4em;
}

.page-content a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.page-content blockquote {
    border-left: 3px solid var(--accent-blue);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: rgba(91, 138, 255, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.page-content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.page-content pre {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.page-content pre code {
    background: none;
    padding: 0;
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: #2e3045;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3e4058;
}

/* ===== Dropdown Menu ===== */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    list-style: none;
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        background: transparent;
    }
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* ===== Nav User ===== */
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary) !important;
}

.nav-logout {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
}

/* ===== Board Grid (커뮤니티) ===== */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 48px 0 80px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .board-grid { grid-template-columns: 1fr; }
}

.board-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    color: var(--text-primary);
}

.board-card:hover {
    border-color: rgba(91, 138, 255, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    color: var(--text-primary);
}

.board-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(91, 138, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-info {
    flex: 1;
}

.board-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.board-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.board-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
}

/* ===== Support Grid (고객센터) ===== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 48px 0 80px;
}

@media (max-width: 600px) {
    .support-grid { grid-template-columns: 1fr; }
}

.support-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    color: var(--text-primary);
    text-align: center;
}

.support-card:hover {
    border-color: rgba(91, 138, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}

.support-icon {
    width: 56px;
    height: 56px;
    background: rgba(91, 138, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.support-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.support-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== Download Page ===== */
.download-area {
    padding: 48px 0 40px;
    max-width: 700px;
    margin: 0 auto;
}

.download-main-card {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.download-icon {
    margin-bottom: 16px;
}

.download-main-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-version {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.download-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.download-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .download-info-cards { grid-template-columns: 1fr; }
}

.info-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-card ul, .info-card ol {
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.info-card li {
    margin-bottom: 4px;
}

.changelog-link {
    text-align: center;
    padding-bottom: 60px;
}

.changelog-link a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.changelog-link a:hover {
    color: var(--accent-blue);
}

/* ===== Feature Detail (기능 소개) ===== */
.feature-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.feature-detail-item {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.feature-detail-text .section-label {
    margin-bottom: 8px;
}

.feature-detail-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-detail-text p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Manual Grid ===== */
.manual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 48px 0 20px;
}

@media (max-width: 768px) {
    .manual-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .manual-grid { grid-template-columns: 1fr; }
}

.manual-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.manual-card:hover {
    border-color: rgba(91, 138, 255, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.manual-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.manual-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.manual-card ul {
    list-style: none;
    padding: 0;
}

.manual-card li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.manual-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 0 20px;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Changelog ===== */
.changelog-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.changelog-version {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.version-badge {
    background: var(--accent-gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.version-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Auth Pages (로그인/회원가입) ===== */
.auth-section {
    padding: 140px 0 80px;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.auth-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 138, 255, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-blue);
}

.form-link {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-link:hover {
    color: var(--accent-blue);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* ===== bbPress Overrides ===== */
#bbpress-forums {
    font-family: var(--font-main);
}

#bbpress-forums .bbp-body .bbp-forum-title,
#bbpress-forums .bbp-body .bbp-topic-permalink {
    color: var(--text-primary);
    font-weight: 500;
}

#bbpress-forums .bbp-body .bbp-forum-title:hover,
#bbpress-forums .bbp-body .bbp-topic-permalink:hover {
    color: var(--accent-blue);
}

#bbpress-forums li {
    background: var(--bg-card);
    border-color: var(--border-color) !important;
}

#bbpress-forums .bbp-header,
#bbpress-forums .bbp-footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color) !important;
}

#bbpress-forums .bbp-pagination-count {
    color: var(--text-muted);
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums textarea,
#bbpress-forums select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-main);
}

#bbpress-forums input[type="text"]:focus,
#bbpress-forums input[type="email"]:focus,
#bbpress-forums textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
}

#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums .bbp-submit-wrapper input[type="submit"] {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}

/* ===== bbPress 게시판 테이블 형태 ===== */

/* 포럼 헤더 (제목 + 글쓰기 버튼) */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.forum-header-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-write-topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-write-topic:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91, 138, 255, 0.3);
    color: #fff;
}

.btn-write-topic.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-write-topic.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* 토픽 테이블 */
.topic-table {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.topic-table-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.topic-table-body {
    background: var(--bg-card);
}

/* 토픽 행 */
.topic-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    font-size: 0.9rem;
}

.topic-row:last-child {
    border-bottom: none;
}

.topic-row:hover {
    background: var(--bg-card-hover);
}

.topic-row-sticky {
    background: rgba(91, 138, 255, 0.03);
}

.topic-row-sticky:hover {
    background: rgba(91, 138, 255, 0.06);
}

/* 컬럼 너비 */
.col-no {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.col-category {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.col-title {
    flex: 1;
    min-width: 0;
    padding-right: 16px;
}

.col-author {
    width: 100px;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-views {
    width: 60px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.col-date {
    width: 90px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* 카테고리 배지 */
.category-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(139, 111, 255, 0.1);
    color: var(--accent-purple);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 공지 배지 */
.badge-notice {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(91, 138, 255, 0.15);
    color: var(--accent-blue);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* 제목 링크 */
.topic-row-title {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline;
}

.topic-row:hover .topic-row-title {
    color: var(--accent-blue);
}

/* 제목 옆 답글 수 */
.reply-count-inline {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 6px;
}

/* 모바일 테이블 */
@media (max-width: 768px) {
    .forum-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-write-topic {
        width: 100%;
        justify-content: center;
    }

    .topic-table-header {
        display: none;
    }

    .topic-row {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 4px;
    }

    .col-no {
        display: none;
    }

    .col-category {
        width: auto;
        order: -1;
    }

    .col-title {
        width: 100%;
        flex: none;
        padding-right: 0;
    }

    .col-author {
        width: auto;
        text-align: left;
        font-size: 0.75rem;
    }

    .col-date {
        width: auto;
        text-align: left;
        font-size: 0.75rem;
    }

    .col-author::after {
        content: "·";
        margin: 0 6px;
        opacity: 0.5;
    }

    .col-views {
        display: none;
    }
}

/* bbPress 기본 목록 숨기기 (혹시 남아있는 기본 템플릿) */
#bbpress-forums ul.bbp-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

#bbpress-forums .bbp-body > ul {
    padding: 0;
    margin: 0;
    border: none !important;
    background: transparent !important;
}

#bbpress-forums .bbp-header,
#bbpress-forums .bbp-footer {
    display: none;
}

#bbpress-forums li.bbp-body {
    background: transparent;
    border: none;
}

/* bbPress 로그인 폼 숨기기 */
#bbpress-forums .bbp-logged-out {
    display: none !important;
}

/* 비로그인 시 안내 */
#bbpress-forums .bbp-template-notice.info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

#bbpress-forums .bbp-template-notice.info a {
    color: var(--accent-blue);
    font-weight: 600;
}

/* bbPress 구독/즐겨찾기 완전 숨기기 (혹시 표시되는 경우) */
#bbpress-forums .bbp-topic-subscription-link,
#bbpress-forums .bbp-forum-subscription-link,
#bbpress-forums .bbp-topic-favorite-link,
span.bbp-admin-links,
.bbp-topic-action,
#favorite-toggle,
#subscription-toggle {
    display: none !important;
}

/* 허용 태그 안내 숨기기 */
#bbpress-forums .bbp-allowed-tags {
    display: none !important;
}

/* ===== Required / Terms ===== */
.required {
    color: #f87171;
    font-weight: 600;
}

/* ===== Field Messages (실시간 검증) ===== */
.field-message {
    font-size: 0.8rem;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.field-success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.field-error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.password-strength {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.terms-box {
    padding: 12px 0;
}

.terms-box a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== Textarea ===== */
.form-group textarea {
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
    resize: vertical;
    line-height: 1.7;
}

.form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 138, 255, 0.1);
}

/* ===== Contact / Inquiry Form Wrap ===== */
.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row-2col { grid-template-columns: 1fr; }
}

.contact-info-box {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-info-box a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* ===== Mypage Layout ===== */
.mypage-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 48px 0 80px;
}

@media (max-width: 768px) {
    .mypage-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.mypage-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.mypage-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.mypage-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mypage-nav a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.mypage-nav a.active {
    color: var(--accent-blue);
    background: rgba(91, 138, 255, 0.1);
}

.mypage-content {
    min-width: 0;
}

.mypage-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* ===== Post List (내가 쓴 글) ===== */
.post-list {
    display: flex;
    flex-direction: column;
}

.post-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.post-list-item:hover {
    color: var(--accent-blue);
}

.post-list-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.post-list-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 16px;
}

/* ===== Inquiry Items (내 문의) ===== */
.inquiry-item {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.inquiry-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.inquiry-status.waiting {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.inquiry-status.replied {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.inquiry-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.inquiry-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.inquiry-reply {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.inquiry-reply strong {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.inquiry-reply p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 6px;
    line-height: 1.7;
}

/* ===== Empty Message ===== */
.empty-message {
    text-align: center;
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Search Page ===== */
.search-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.search-form {
    margin-bottom: 32px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px 8px 16px;
    transition: var(--transition);
}

.search-input-wrap:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 138, 255, 0.1);
}

.search-input-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    padding: 8px 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
}

.search-results {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-result-item:hover {
    color: var(--text-primary);
}

.search-result-item:hover .search-result-title {
    color: var(--accent-blue);
}

.search-result-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(91, 138, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    margin-bottom: 6px;
}

.search-result-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: var(--transition);
}

.search-result-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 4px;
}

.search-result-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== Pagination ===== */
.pagination {
    margin-top: 32px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-numbers:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.pagination .page-numbers.current {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

/* ===== Legal Pages (이용약관/개인정보) ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-content ul, .legal-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content strong {
    color: var(--text-primary);
}

/* ===== Registration v2 Form ===== */
.auth-card-v2 {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
}

.auth-form-v2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-v2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-v2 label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group-v2 input[type="text"],
.form-group-v2 input[type="email"],
.form-group-v2 input[type="password"],
.form-group-v2 input[type="tel"] {
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group-v2 input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 138, 255, 0.1);
}

.form-group-v2 input::placeholder {
    color: var(--text-muted);
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
    min-width: 0;
}

.btn-check {
    flex-shrink: 0;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-check:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(91, 138, 255, 0.05);
}

.btn-check.checked {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.05);
    pointer-events: none;
}

.btn-check:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    padding-right: 48px;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.btn-toggle-password:hover {
    color: var(--text-secondary);
}

.password-strength-bar {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-fill.weak {
    width: 33%;
    background: #f87171;
}

.strength-fill.medium {
    width: 66%;
    background: #fbbf24;
}

.strength-fill.strong {
    width: 100%;
    background: #4ade80;
}

.strength-label {
    font-size: 0.75rem;
    margin-top: 4px;
    color: var(--text-muted);
}

.terms-box-v2 {
    padding: 4px 0;
}

.checkbox-label-v2 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label-v2 input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 1px;
    position: relative;
}

.checkbox-custom::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s ease;
    position: absolute;
    top: 3px;
}

.checkbox-label-v2 input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.checkbox-label-v2 input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: rotate(-45deg) scale(1);
}

.terms-box-v2 a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    margin-top: 4px;
}

/* ===== Topic View (글 보기 페이지) ===== */

.topic-view-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.topic-view-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.topic-view-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.topic-view-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.topic-view-meta .meta-author {
    font-weight: 600;
    color: var(--text-primary);
}

.topic-view-meta .meta-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.topic-view-meta .meta-item {
    color: var(--text-muted);
}

.topic-view-meta .meta-ip {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.topic-view-meta .grade-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* 등급별 색상 (functions.php: grade-sprout/regular/advanced/vip) */
.grade-badge.grade-sprout {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.grade-badge.grade-regular {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.grade-badge.grade-advanced {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.grade-badge.grade-vip {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.btn-back-to-list {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 6px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.btn-back-to-list:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* 댓글 섹션 */
.topic-replies-section {
    margin-top: 32px;
}

.replies-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* 댓글 목록 */
.replies-list {
    display: flex;
    flex-direction: column;
}

.reply-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.reply-meta .meta-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.reply-author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.reply-date {
    color: var(--text-muted);
}

.reply-ip {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.reply-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.reply-content p {
    margin-bottom: 0.8em;
}

.reply-content p:last-child {
    margin-bottom: 0;
}

/* 모바일 글 보기 */
@media (max-width: 768px) {
    .topic-view-header {
        padding: 20px;
    }

    .topic-view-title {
        font-size: 1.2rem;
    }

    .topic-view-meta {
        gap: 6px;
        font-size: 0.8rem;
    }

    .btn-back-to-list {
        margin-left: 0;
        margin-top: 8px;
    }

    .reply-item {
        padding: 16px 0;
    }

    .reply-meta {
        gap: 6px;
        font-size: 0.8rem;
    }
}

/* ===== bbPress Complete Overhaul ===== */

/* 포럼 전체 컨테이너 */
#bbpress-forums {
    font-family: var(--font-main);
    color: var(--text-primary);
    padding: 20px 0 60px;
}

#bbpress-forums fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

#bbpress-forums legend {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding: 0;
    width: 100%;
}

/* 새 토픽/답글 작성 폼 */
#bbpress-forums #new-post,
#bbpress-forums .bbp-reply-form,
#bbpress-forums .bbp-topic-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 24px;
}

#bbpress-forums .bbp-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

#bbpress-forums .bbp-form input[type="text"],
#bbpress-forums .bbp-form input[type="email"],
#bbpress-forums .bbp-form input[type="url"],
#bbpress-forums .bbp-form textarea,
#bbpress-forums .bbp-form select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
    margin-bottom: 16px;
}

#bbpress-forums .bbp-form input:focus,
#bbpress-forums .bbp-form textarea:focus,
#bbpress-forums .bbp-form select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 138, 255, 0.1);
}

#bbpress-forums .bbp-form textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.7;
}

#bbpress-forums .bbp-submit-wrapper {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums .bbp-submit-wrapper input[type="submit"] {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

#bbpress-forums .bbp-submit-wrapper button:hover,
#bbpress-forums .bbp-submit-wrapper input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(91, 138, 255, 0.3);
}

/* 토픽 단일 뷰 (개별 글 + 답글 목록) */
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header {
    display: none;
}

#bbpress-forums .bbp-topic-content,
#bbpress-forums .bbp-reply-content,
#bbpress-forums div.bbp-reply-entry,
#bbpress-forums div.bbp-topic-entry {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

#bbpress-forums .bbp-reply-entry p,
#bbpress-forums .bbp-topic-entry p {
    margin-bottom: 1em;
}

/* 개별 답글 카드 */
#bbpress-forums div.reply,
#bbpress-forums div.bbp-reply-header + div,
#bbpress-forums li.bbp-body > ul > li {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
}

#bbpress-forums li.bbp-body {
    background: transparent !important;
    border: none !important;
    padding: 0;
}

/* 답글 작성자 정보 */
#bbpress-forums .bbp-reply-author,
#bbpress-forums .bbp-topic-author {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

#bbpress-forums .bbp-reply-author a.bbp-author-name,
#bbpress-forums .bbp-topic-author a.bbp-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

#bbpress-forums .bbp-reply-author img.avatar,
#bbpress-forums .bbp-topic-author img.avatar {
    border-radius: 50%;
    width: 36px !important;
    height: 36px !important;
    margin-right: 10px;
    vertical-align: middle;
    border: 2px solid var(--border-color);
}

#bbpress-forums .bbp-author-role {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(91, 138, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 답글 메타 (날짜, 링크) */
#bbpress-forums .bbp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

#bbpress-forums .bbp-meta a {
    color: var(--text-muted);
    transition: var(--transition);
}

#bbpress-forums .bbp-meta a:hover {
    color: var(--accent-blue);
}

/* 알림/공지 박스 */
#bbpress-forums div.bbp-template-notice,
#bbpress-forums .bbp-template-notice {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#bbpress-forums div.bbp-template-notice.important {
    border-left: 3px solid var(--accent-blue);
}

#bbpress-forums div.bbp-template-notice a {
    color: var(--accent-blue);
    font-weight: 600;
}

/* 페이지네이션 */
#bbpress-forums .bbp-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin: 20px 0;
    border-top: 1px solid var(--border-color);
}

#bbpress-forums .bbp-pagination-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    margin: 0 2px;
}

#bbpress-forums .bbp-pagination-links a:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

#bbpress-forums .bbp-pagination-links span.current {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

/* bbPress 포럼 목록 (포럼 인덱스) */
#bbpress-forums ul.bbp-forums-list,
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 태그 */
#bbpress-forums .bbp-topic-tags {
    margin-top: 12px;
}

#bbpress-forums .bbp-topic-tags a {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(91, 138, 255, 0.08);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 2px 4px 2px 0;
    transition: var(--transition);
}

#bbpress-forums .bbp-topic-tags a:hover {
    background: rgba(91, 138, 255, 0.15);
}

/* 글쓰기 버튼 영역 */
.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.forum-actions h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* 브레드크럼 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-blue);
}

.breadcrumb .sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-secondary);
}

/* bbPress 브레드크럼 */
#bbpress-forums .bbp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 12px 0;
}

#bbpress-forums .bbp-breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition);
}

#bbpress-forums .bbp-breadcrumb a:hover {
    color: var(--accent-blue);
}

#bbpress-forums .bbp-breadcrumb .bbp-breadcrumb-sep {
    opacity: 0.5;
    margin: 0 2px;
}

#bbpress-forums .bbp-breadcrumb .bbp-breadcrumb-current {
    color: var(--text-secondary);
}

/* ===== Footer Redesign ===== */
.site-footer {
    background: var(--bg-darker);
    padding: 60px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-brand .site-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 20px 24px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ===== Loading State ===== */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    font-family: var(--font-main);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

.toast.info {
    background: var(--accent-blue);
}

/* ===== Profile Card on Mypage ===== */
.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Honeypot ===== */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ===== Mobile Optimization (통합) ===== */
@media (max-width: 768px) {
    /* 히어로 */
    .hero { padding: 100px 0 60px; }
    .hero-desc { font-size: 0.95rem; margin-bottom: 28px; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* 섹션 */
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 36px; }
    .section-desc { font-size: 0.9rem; }
    .page-header-section { padding: 100px 0 24px; }
    .page-header-section .section-title { font-size: 1.5rem; }

    /* 인증 (로그인/회원가입) */
    .auth-section { padding: 100px 0 40px; }
    .auth-card { padding: 28px 20px; }
    .auth-card-v2 { padding: 28px 20px; }
    .auth-header h1 { font-size: 1.3rem; }

    /* 폼 */
    .form-group input, .form-group textarea { font-size: 16px; }
    .form-group-v2 input { font-size: 16px; }

    /* 다운로드 */
    .download-main-card { padding: 32px 20px; }
    .download-main-card h2 { font-size: 1.2rem; }

    /* 기능 상세 */
    .feature-detail-item { padding: 24px 20px; }
    .feature-detail-text h2 { font-size: 1.1rem; }

    /* 스텝 */
    .step-item { padding: 20px; gap: 14px; }

    /* FAQ */
    .faq-list { padding: 32px 0 60px; }
    .faq-question { font-size: 0.9rem; padding: 16px 0; }

    /* 매뉴얼 */
    .manual-card { padding: 20px; }

    /* 고객센터 */
    .support-card { padding: 24px 20px; }

    /* 문의 폼 */
    .contact-form-wrap { padding: 32px 0 60px; }

    /* 마이페이지 */
    .mypage-sidebar { position: static; }
    .mypage-nav { flex-direction: row; overflow-x: auto; }
    .mypage-nav a { white-space: nowrap; padding: 10px 16px; font-size: 0.85rem; }

    /* 법률 페이지 */
    .legal-content { padding: 32px 0 60px; }
    .legal-content h1 { font-size: 1.3rem; }
    .legal-content h2 { font-size: 1.1rem; }

    /* bbPress */
    #bbpress-forums .bbp-reply-form textarea { min-height: 120px; }

    /* 토스트 */
    .toast { left: 16px; right: 16px; bottom: 16px; }

    /* 푸터 */
    .footer-brand p { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    /* 히어로 */
    .hero { padding: 88px 0 48px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-badge { font-size: 0.7rem; padding: 5px 12px; }

    /* 인증 */
    .auth-section { padding: 88px 0 32px; }
    .auth-card, .auth-card-v2 { padding: 24px 16px; border-radius: var(--radius-lg); }

    /* 버튼 */
    .btn { padding: 12px 20px; font-size: 0.9rem; }
    .btn-large { padding: 14px 28px; }

    /* 컨테이너 */
    .container { padding: 0 16px; }

    /* 카드 */
    .feature-card { padding: 24px 18px; }
    .board-card { padding: 18px; gap: 12px; }
    .support-card { padding: 20px 16px; }
    .info-card { padding: 18px; }

    /* 마이페이지 */
    .mypage-content h2 { font-size: 1.2rem; }
    .inquiry-item { padding: 14px; }

    /* 체인지로그 */
    .version-item { padding: 24px 18px; }

    /* 검색 */
    .search-results-list .post-list-item { padding: 14px 0; }
}

