/* 리니지 데포로쥬 커뮤니티 - Gnuboard5 style theme */
:root {
  --g5-blue:#3b63c4;
  --g5-blue-dark:#2d4f9d;
  --g5-dark:#202126;
  --g5-dark-2:#2c2f36;
  --g5-line:#e7e9ee;
  --g5-muted:#6f7785;
  --g5-bg:#f7f8fb;
  --g5-panel:#ffffff;
  --g5-title:#232937;
  --g5-red:#d15252;
}
html,body{background:var(--g5-bg)!important;color:var(--g5-title)!important;font-family:'Noto Sans KR',sans-serif!important}
body{line-height:1.6!important}
.container{max-width:1180px!important;width:100%!important}
.g5-topbar{background:#17181c;color:#c9ced8;font-size:12px;line-height:1}
.g5-topbar .container{display:flex;justify-content:space-between;align-items:center;min-height:34px;gap:16px}
.g5-topbar a{color:#d1d5dd;text-decoration:none;margin-right:14px;opacity:.92}
.g5-topbar a:hover{color:#fff}
.g5-topbar .g5-topbar-right a{margin-right:0;margin-left:14px}
.header{position:sticky;top:0;z-index:990;background:var(--g5-dark)!important;border-bottom:none!important;box-shadow:none!important}
.header-content{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:18px 0!important}
.logo{gap:12px!important;cursor:pointer}
.logo h1{font-size:31px!important;line-height:1!important;letter-spacing:-.04em!important;color:#fff!important;background:none!important;-webkit-text-fill-color:initial!important;text-shadow:none!important;font-weight:800!important}
.logo h1::after{content:'Gnuboard style community';display:block;font-size:11px;letter-spacing:.12em;color:#949dab;margin-top:7px;text-transform:uppercase;font-weight:500}
.logo-image{width:62px!important;height:62px!important;border-radius:6px!important;object-fit:contain!important;background:#fff;border:none!important;box-shadow:none!important}
.g5-head-search{width:min(100%,460px);justify-self:center;position:relative}
.g5-head-search input{width:100%;height:44px;padding:0 48px 0 18px;border:1px solid #444a57;border-radius:24px;background:#2a2e37;color:#fff!important;outline:none}
.g5-head-search input::placeholder{color:#8f98a8}
.g5-head-search button{position:absolute;right:6px;top:6px;width:32px;height:32px;border:none;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.main-nav ul,.main-nav #main-nav-menu{display:flex;flex-wrap:wrap;gap:4px;list-style:none;justify-content:flex-end}
.main-nav a{display:flex;align-items:center;gap:6px;padding:10px 12px!important;border-radius:4px!important;color:#d7dbe4!important;text-decoration:none!important;font-size:14px!important;font-weight:500!important;border:1px solid transparent}
.main-nav a:hover{background:#2e3440!important;color:#fff!important}
.main-nav a.active{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.08)!important;color:#fff!important}
.g5-subnav{background:#fff;border-bottom:1px solid var(--g5-line)}
.g5-subnav .container{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:52px}
.g5-subnav .g5-crumbs{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:13px;color:#545c6c}
.g5-subnav .g5-crumbs a{color:#4b5667;text-decoration:none}
.g5-subnav .g5-crumbs strong{color:#1f2f50}
.g5-subnav .g5-menu-btn{width:40px;height:40px;background:var(--g5-blue);color:#fff;border:none;border-radius:2px;font-size:16px}
.hero-banner,.hero-overlay{background:transparent!important;padding:0!important;backdrop-filter:none!important}
.g5-home-shell{padding:26px 0 0}
.g5-home-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start}
.g5-home-intro{background:#fff;border:1px solid var(--g5-line);padding:18px 20px;margin-bottom:18px}
.g5-home-intro h2{font-size:20px;color:#222f4f;margin:0 0 6px}
.g5-home-intro p{font-size:13px;color:var(--g5-muted);margin:0}
.g5-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.board-section,.g5-side-box,.board-list,.post-detail,.write-container,.login-container,.register-container,.settings-container,.members-table-wrap,.member-card,.crm-overview-card,.request-insight-card,.stat-card,.modal-content,.admin-table-container,.current-info,.setting-section,.members-crm-hero,.admin-crm-hero,.members-overview-card,.info-box,.sample-data-info,.upload-info{background:#fff!important;border:1px solid var(--g5-line)!important;border-radius:0!important;box-shadow:none!important}
.board-section{padding:0!important;overflow:hidden}
.section-header{display:flex;justify-content:space-between;align-items:center;padding:0 0 12px!important;margin:0 16px!important;border-bottom:1px solid var(--g5-line)!important}
.section-header h3,.members-section-header h3,.crm-section-header h3,.board-header h2,.settings-header h2,.comment-title,.admin-title,.members-title{margin:0!important;font-size:18px!important;font-weight:700!important;color:#222f4f!important;background:none!important;-webkit-text-fill-color:initial!important;text-shadow:none!important}
.more-btn{display:inline-flex;align-items:center;gap:4px;color:var(--g5-blue)!important;font-size:13px!important;font-weight:600!important;text-decoration:none!important;padding:0!important;background:none!important;border:none!important}
.board-preview{min-height:250px;padding:10px 16px 8px}
.preview-item{padding:12px 0!important;border-bottom:1px solid #edf0f5!important;cursor:pointer;transition:none!important}
.preview-item:last-child{border-bottom:none}
.preview-item:hover{padding-left:0!important;background:transparent!important}
.preview-title{font-size:14px!important;color:#202939!important;margin-bottom:4px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-meta{display:flex;gap:10px;flex-wrap:wrap;color:#7b8391!important;font-size:12px!important}
.notice-section{margin-top:22px!important}
.notice-box{display:flex;align-items:flex-start;gap:14px;padding:18px 16px!important}
.notice-box h4{font-size:17px;color:#24365d;margin-bottom:6px}
.notice-box p{font-size:13px;color:#6e7684;margin:0}
.g5-side-box{padding:16px;margin-bottom:16px}
.g5-side-title{font-size:16px;font-weight:700;color:#25365d;margin:0 0 12px}
.g5-login-status{font-size:13px;color:#687181;margin-bottom:12px}
.g5-login-actions,.g5-side-links{display:grid;gap:8px}
.g5-side-links a,.g5-login-actions a,.g5-login-actions button{display:flex;align-items:center;justify-content:center;height:38px;border:1px solid var(--g5-line);background:#fff;color:#33425f;text-decoration:none;font-size:13px;font-weight:600}
.g5-login-actions .primary{background:var(--g5-blue);border-color:var(--g5-blue);color:#fff}
.g5-side-links a:hover,.g5-login-actions a:hover,.g5-login-actions button:hover{filter:brightness(.98)}
.g5-contact-list,.g5-stat-list{display:grid;gap:8px;font-size:13px;color:#616b7c}
.g5-stat-list strong,.g5-contact-list strong{color:#25365d}
.main-content{padding:24px 0 50px!important}
.footer{background:#fff!important;border-top:1px solid var(--g5-line);color:#7a8391!important;margin-top:60px}
.footer p{color:#7a8391!important;font-size:12px!important}
.contact-floating-btn{background:var(--g5-blue)!important;color:#fff!important;border-radius:2px!important;box-shadow:0 8px 18px rgba(59,99,196,.24)!important}
.board-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px;padding:0!important;border:none!important}
.search-bar{display:flex;gap:8px;align-items:center;padding:14px 16px;border:1px solid var(--g5-line);border-bottom:none;background:#fafbfc}
.search-bar input,#search-input,input[type='text'],input[type='password'],input[type='number'],input[type='tel'],select,textarea{background:#fff!important;color:#202939!important;border:1px solid #cfd5df!important;border-radius:2px!important;box-shadow:none!important}
.search-bar input{height:38px;padding:0 12px!important;flex:1}
textarea{padding:12px!important}
.btn-search,.btn-primary,.submit-btn,.btn-save,.btn-login,#write-btn,.crm-quick-btn.primary,.member-quick-btn.primary{background:var(--g5-blue)!important;border:1px solid var(--g5-blue-dark)!important;color:#fff!important;border-radius:2px!important;box-shadow:none!important;font-weight:700!important}
.btn-secondary,.back-btn,.crm-quick-btn,.member-quick-btn,.tab-btn,.filter-btn,.pagination button,.pagination a,.btn-file-select{background:#fff!important;border:1px solid #cfd5df!important;color:#33425f!important;border-radius:2px!important;box-shadow:none!important;font-weight:600!important;text-decoration:none!important}
.btn-delete,.btn-reject,.action-btn.btn-reject,button[onclick*='clearAllPosts']{background:#fff8f8!important;border:1px solid #ebc9c9!important;color:#ba3c3c!important}
.btn-approve,.action-btn.btn-approve{background:#f7fff8!important;border:1px solid #cfe5d2!important;color:#2f7a41!important}
.btn-edit,.btn-trade-buy{background:#f4f8ff!important;border:1px solid #cddcf7!important;color:#315aaf!important}
.btn-trade-sell{background:#fff7f0!important;border:1px solid #ebd0b5!important;color:#b2621d!important}
.post-table,.admin-table,.members-table{width:100%!important;border-collapse:collapse!important;background:#fff!important}
.post-table th,.post-table td,.admin-table th,.admin-table td,.members-table th,.members-table td{padding:12px 10px!important;border-bottom:1px solid var(--g5-line)!important;background:transparent!important;color:#273041!important;font-size:13px!important}
.post-table thead th,.admin-table thead th,.members-table thead th{background:#f8f9fb!important;color:#586070!important;font-size:12px!important;font-weight:700!important;border-top:1px solid var(--g5-line)!important}
.board-list{padding:0!important;overflow:hidden}
.board-list .loading{padding:28px 0;color:#7b8392}
.post-detail,.write-container,.login-container,.register-container,.settings-container{padding:22px!important}
.post-header{padding:0 0 16px!important;border:none!important;border-bottom:1px solid var(--g5-line)!important;background:none!important}
.post-title-detail{font-size:24px!important;color:#212d49!important;margin-bottom:10px!important}
.post-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:12px!important;color:#6d7585!important}
.trade-info,.post-content,.comment-write,.comment-list,.setting-section,.current-info{border:1px solid var(--g5-line)!important;border-radius:0!important;padding:16px!important;background:#fff!important;box-shadow:none!important}
.post-content{min-height:240px;line-height:1.8;margin:18px 0}
.post-actions,.form-actions,.admin-hero-actions,.members-hero-actions,.members-toolbar,.filter-bar,.header-action-btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.comment-title{font-size:17px!important;margin-bottom:12px!important}
.comment-write form{display:grid;gap:10px}
.modal{background:rgba(20,22,28,.52)!important}
.modal-header,.modal-footer{border-color:var(--g5-line)!important}
.login-container,.register-container{max-width:560px!important;margin:30px auto!important}
.login-header,.register-header{text-align:left!important;margin-bottom:18px!important}
.login-header h2,.register-header h2{font-size:26px!important}
.register-link,.login-link{color:#697180!important;font-size:13px!important}
.register-link a,.login-link a{color:var(--g5-blue)!important;text-decoration:none!important}
.divider{display:flex;align-items:center;gap:12px;color:#778091;font-size:12px}
.divider:before,.divider:after{content:'';flex:1;height:1px;background:var(--g5-line)}
.g5-auth-helper{margin-top:14px;display:grid;gap:10px}
.g5-auth-links{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.g5-auth-links a{color:var(--g5-blue);text-decoration:none}
.g5-social-list{display:grid;gap:8px;margin-top:8px}
.g5-social-btn{display:flex;align-items:center;justify-content:center;height:38px;color:#fff;text-decoration:none;font-size:13px;font-weight:700;border-radius:2px}
.g5-social-btn.naver{background:#03c75a}.g5-social-btn.kakao{background:#fee500;color:#391b1b}.g5-social-btn.google{background:#4285f4}.g5-social-btn.facebook{background:#1877f2}
.admin-dashboard-page,.members-premium-page,.admin-settings-page{background:var(--g5-bg)!important}
.admin-crm-hero,.members-crm-hero{padding:20px!important}
.admin-badge,.members-badge,.crm-section-kicker,.members-meta-chip,.admin-meta-chip{display:inline-flex;align-items:center;gap:6px;background:#f5f8ff!important;border:1px solid #d9e3f7!important;border-radius:999px!important;color:#375cb5!important;box-shadow:none!important}
.members-meta-chip.emphasis,.admin-meta-chip.emphasis{background:#fff9ef!important;border-color:#f1ddb9!important;color:#996506!important}
.crm-overview-grid,.members-overview-grid,.member-card-grid{gap:14px!important}
.crm-overview-card,.members-overview-card,.request-insight-card,.stat-card,.member-card{padding:16px!important;min-height:unset!important}
.overview-value,.insight-value,.stat-number{font-size:28px!important;color:#213256!important}
.overview-label,.insight-label,.stat-foot,.member-meta-label,.overview-sub,.insight-sub,.admin-subtitle,.members-subtitle,.crm-section-description,.section-description{color:#70798a!important}
.admin-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:0!important;background:transparent!important;border:none!important}
.admin-tabs.is-collapsed{display:none!important}
.admin-hidden-by-request{display:none!important}
#admin-refresh-toggle-btn{min-width:220px;justify-content:center}
#admin-refresh-toggle-btn.menu-hidden{background:#fff4db!important;border-color:#efd9aa!important;color:#8a5c00!important}
.tab-btn.active,.filter-btn.active,.pagination button.active,.pagination .active{background:var(--g5-blue)!important;border-color:var(--g5-blue-dark)!important;color:#fff!important}
.tab-content{background:transparent!important;border:none!important;padding:0!important}
.admin-login-page{display:block!important}
.admin-login-page .login-container{max-width:480px!important;margin:60px auto!important;padding:24px!important;background:#fff!important;border:1px solid var(--g5-line)!important;box-shadow:none!important}
.admin-login-page .login-header{text-align:left!important}
.admin-login-page .btn-login{height:44px!important}
.g5-page-note{font-size:12px;color:#7a8291;margin-top:8px}
.g5-side-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.g5-side-list li{font-size:13px;color:#5f6878;padding-bottom:10px;border-bottom:1px solid var(--g5-line)}
.g5-side-list li:last-child{border-bottom:none;padding-bottom:0}
.g5-side-list a{color:#2a3552;text-decoration:none}
.g5-side-list small{display:block;color:#8891a0;margin-top:4px}
@media (max-width:1080px){
  .header-content{grid-template-columns:1fr;justify-items:start}
  .g5-head-search{width:100%;justify-self:stretch}
  .main-nav ul,.main-nav #main-nav-menu{justify-content:flex-start}
  .g5-home-layout{grid-template-columns:1fr}
  .g5-home-grid{grid-template-columns:1fr}
}
@media (max-width:768px){
  .container{padding:0 14px!important}
  .g5-topbar .container,.g5-subnav .container{flex-direction:column;align-items:flex-start;padding:10px 14px;min-height:auto}
  .main-nav a{padding:9px 10px!important;font-size:13px!important}
  .board-header,.post-actions,.form-actions,.members-toolbar,.filter-bar,.admin-hero-actions,.members-hero-actions,.header-action-btns{flex-direction:column;align-items:stretch}
  .search-bar{flex-direction:column;align-items:stretch}
}


/* sequential upgrade boards */
.board-special-box{margin:0 0 18px;padding:14px 16px;border:1px solid #d7dfeb;background:#f7f9fc;color:#334155}
.notice-only-box{background:#fff8e8;border-color:#f0d9a7}
.form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.g5-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
.g5-gallery-card{background:#fff;border:1px solid #dbe2ec;cursor:pointer;transition:all .2s ease;overflow:hidden}
.g5-gallery-card:hover{transform:translateY(-3px);box-shadow:0 10px 18px rgba(15,23,42,.08)}
.g5-gallery-thumb-wrap{aspect-ratio:4/3;background:#edf2f7;overflow:hidden;border-bottom:1px solid #dbe2ec}
.g5-gallery-thumb{width:100%;height:100%;object-fit:cover;display:block}
.g5-gallery-body{padding:14px}
.g5-gallery-title{font-size:15px;line-height:1.45;color:#1f2937;margin:0 0 8px;font-weight:700}
.g5-gallery-caption{font-size:13px;color:#64748b;margin:0 0 10px;min-height:34px}
.g5-gallery-meta{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#64748b}
.gallery-empty{padding:40px 20px;text-align:center;background:#fff;border:1px solid #dbe2ec}
.g5-inline-badge{display:inline-flex;align-items:center;padding:2px 7px;margin-right:6px;border-radius:999px;font-size:11px;font-weight:700;background:#e8eefc;color:#3157a5;vertical-align:middle}
.g5-inline-badge.notice{background:#fff2d6;color:#9a6500}
.gallery-view-box{margin:0 0 22px;border:1px solid #dbe2ec;background:#fff;padding:16px}
.gallery-view-image-wrap{background:#f4f7fb;border:1px solid #e3e8f1;padding:10px}
.gallery-main-image{display:block;width:100%;max-height:680px;object-fit:contain;margin:0 auto}
.gallery-view-caption{margin-top:10px;color:#64748b;font-size:13px;text-align:center}
.clan-meta-box{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.clan-meta-card{padding:15px;border:1px solid #dbe2ec;background:#fff}
.clan-meta-card.wide{grid-column:span 4}
.clan-meta-label{display:block;font-size:12px;color:#64748b;margin-bottom:7px}
.clan-meta-card strong{font-size:15px;color:#1f2937}
@media (max-width: 900px){.form-grid-3{grid-template-columns:1fr}.clan-meta-box{grid-template-columns:1fr 1fr}.clan-meta-card.wide{grid-column:span 2}}
@media (max-width: 640px){.clan-meta-box{grid-template-columns:1fr}.clan-meta-card.wide{grid-column:span 1}}
