/* ===== 破凡劫 · 联机宗门系统 样式（nc- 前缀，不与旧 .clan-* 冲突） ===== */
#newclan-panel {
    padding: 0 !important;
    overflow: hidden !important;
    background: #0b0b16 !important;
    z-index: 600 !important;
}
.nc-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    color: #e6dff0;
    font-size: 13px;
    background: linear-gradient(180deg, #15152a 0%, #0b0b16 100%);
    box-sizing: border-box;
}
.nc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(212,168,67,0.35);
    background: rgba(10,10,26,0.7);
    flex: 0 0 auto;
}
.nc-back {
    background: none; border: none; color: #d4a843; font-size: 15px; cursor: pointer; padding: 4px 6px;
}
.nc-title { font-size: 17px; font-weight: 700; color: #d4a843; }
.nc-header-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nc-badge {
    font-size: 11px; padding: 3px 8px; border-radius: 12px;
    background: rgba(212,168,67,0.15); color: #d4a843; border: 1px solid rgba(212,168,67,0.35);
}
.nc-faction-zheng { color: #6fdc8c; }
.nc-faction-mo { color: #ff7b7b; }
.nc-help-btn {
    font-size: 11px; padding: 4px 10px; border-radius: 12px; cursor: pointer;
    background: rgba(120,90,200,0.2); color: #c9b6ff; border: 1px solid rgba(150,120,230,0.4);
}

/* tabs */
.nc-tabs {
    display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07); flex: 0 0 auto;
}
.nc-tab {
    flex: 0 0 auto; padding: 6px 12px; border-radius: 16px; white-space: nowrap; cursor: pointer;
    background: rgba(20,20,45,0.8); color: rgba(200,190,220,0.6);
    border: 1px solid rgba(80,70,120,0.3); font-size: 12px;
}
.nc-tab.active { background: rgba(255,200,80,0.18); color: #d4a843; border-color: rgba(255,200,80,0.45); }

/* body */
.nc-body { flex: 1 1 auto; overflow-y: auto; padding: 12px; box-sizing: border-box; }

/* buttons */
.nc-btn {
    position: relative; z-index: 1; pointer-events: auto;
    padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; margin-top: 8px;
    background: rgba(30,30,60,0.8); color: #d8d0e8; border: 1px solid rgba(90,80,130,0.4); width: 100%;
}
.nc-btn-primary { background: linear-gradient(180deg,#e0b24c,#c8922f); color: #1a1206; border: none; font-weight: 700; }
.nc-btn-danger { background: linear-gradient(180deg,#c95b5b,#9c3b3b); color: #fff; border: none; }
.nc-btn-small { width: auto; padding: 6px 12px; font-size: 12px; }
.nc-btn-mini { width: auto; padding: 4px 9px; font-size: 11px; margin-top: 4px; margin-left: 4px; }
.nc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* cards / general */
.nc-card { background: rgba(22,22,50,0.5); border: 1px solid rgba(60,50,100,0.25); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.nc-center { text-align: center; }
.nc-big-title { font-size: 20px; font-weight: 700; color: #d4a843; margin-bottom: 6px; }
.nc-sub { color: rgba(190,180,210,0.65); font-size: 12px; margin: 6px 0; }
.nc-sub-title { font-size: 14px; color: #d4a843; margin: 10px 0 6px; font-weight: 600; }
.nc-warn { color: #ffb86b; background: rgba(255,150,60,0.12); padding: 6px; border-radius: 6px; margin: 8px 0; }
.nc-empty { color: rgba(190,180,210,0.5); text-align: center; padding: 14px; }
.nc-done { color: #6fdc8c; font-size: 12px; }
.nc-lock { color: #ff9b6b; font-size: 11px; }

/* 未入宗列表 */
.nc-filterbar { display: flex; gap: 8px; margin: 8px 0; }
.nc-filterbar select, .nc-select {
    flex: 1; padding: 6px; border-radius: 6px; background: rgba(20,20,50,0.8); color: #e6dff0;
    border: 1px solid rgba(90,80,130,0.4);
}
.nc-clan-row {
    display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 8px;
    background: rgba(22,22,50,0.5); border: 1px solid rgba(60,50,100,0.25); border-radius: 8px;
}
.nc-cr-main { flex: 1; }
.nc-cr-name { font-size: 14px; color: #e6dff0; font-weight: 600; }
.nc-lv { color: #d4a843; font-size: 12px; }
.nc-cr-meta { font-size: 11px; color: rgba(190,180,210,0.7); margin: 2px 0; }
.nc-cr-decl { font-size: 11px; color: rgba(190,180,210,0.6); }
.nc-cr-mode { font-size: 11px; color: rgba(150,140,180,0.7); margin-top: 2px; }

/* 大殿 */
.nc-info-bar { background: rgba(22,22,50,0.6); border: 1px solid rgba(60,50,100,0.3); border-radius: 10px; padding: 10px 12px; }
.nc-info-bar b { font-size: 15px; color: #d4a843; }
.nc-info-sub { font-size: 11px; color: rgba(200,190,220,0.7); margin-top: 3px; }
.nc-hall-stage {
    margin-top: 12px; padding: 14px; border-radius: 12px; text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(120,90,200,0.18), rgba(15,15,35,0.6));
    border: 1px solid rgba(120,90,200,0.25);
}
.nc-leader { font-size: 16px; font-weight: 700; color: #f0d98a; margin-bottom: 12px; }
.nc-elders { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.nc-seat {
    padding: 8px 4px; border-radius: 8px; font-size: 11px; border: 1px solid rgba(90,80,130,0.3);
    background: rgba(20,20,45,0.7); min-height: 46px;
}
.nc-seat-on { border-color: rgba(212,168,67,0.5); box-shadow: 0 0 8px rgba(212,168,67,0.25); }
.nc-seat-off { opacity: 0.55; }
.nc-seat-empty { color: rgba(190,180,210,0.4); display: flex; align-items: center; justify-content: center; }
.nc-seat-name { font-weight: 600; color: #e6dff0; }
.nc-seat-sub { font-size: 10px; color: rgba(190,180,210,0.6); margin-top: 2px; }
.nc-status-tag { display: inline-block; padding: 4px 12px; border-radius: 14px; font-size: 12px; }
.nc-status-peace { background: rgba(110,220,140,0.15); color: #6fdc8c; }
.nc-status-war { background: rgba(255,120,120,0.18); color: #ff8b8b; }
.nc-status-sec { background: rgba(150,120,230,0.18); color: #c9b6ff; }
.nc-announce { margin-top: 12px; background: rgba(22,22,50,0.5); border: 1px solid rgba(60,50,100,0.25); border-radius: 10px; padding: 10px 12px; }
.nc-announce-title { font-size: 13px; color: #d4a843; font-weight: 600; }
.nc-announce-body { font-size: 12px; color: rgba(210,200,230,0.8); margin: 6px 0; white-space: pre-wrap; }
.nc-float-upgrade {
    position: fixed; right: 14px; bottom: 150px; z-index: 610;
    padding: 10px 14px; border-radius: 20px; border: none; cursor: pointer;
    background: linear-gradient(180deg,#e0b24c,#c8922f); color: #1a1206; font-weight: 700; font-size: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

/* 成员 */
.nc-m-stats { font-size: 12px; color: #d4a843; margin-bottom: 8px; }
.nc-apply-box { background: rgba(40,30,60,0.5); border: 1px solid rgba(120,90,200,0.3); border-radius: 8px; padding: 8px; margin-bottom: 10px; }
.nc-apply-row { font-size: 12px; color: #e6dff0; padding: 4px 0; display: flex; align-items: center; gap: 6px; }
.nc-member {
    display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 6px;
    background: rgba(22,22,50,0.5); border: 1px solid rgba(60,50,100,0.2); border-radius: 8px;
}
.nc-member.off { opacity: 0.6; }
.nc-m-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #1a1206; background: #d4a843;
}
.nc-m-avatar.off { background: #4a4560; color: #b8b0c8; }
.nc-m-info { flex: 1; }
.nc-m-name { font-size: 13px; color: #e6dff0; font-weight: 600; }
.nc-pos { font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-left: 4px; }
.nc-pos0 { background: rgba(120,120,140,0.25); color: #c0c0d0; }
.nc-pos1 { background: rgba(110,180,220,0.25); color: #9fd0ee; }
.nc-pos2 { background: rgba(150,120,230,0.25); color: #c9b6ff; }
.nc-pos3 { background: rgba(212,168,67,0.25); color: #f0d98a; }
.nc-pos4 { background: rgba(255,120,120,0.25); color: #ff9b9b; }
.nc-m-sub { font-size: 11px; color: rgba(190,180,210,0.7); margin-top: 2px; }
.nc-m-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; }

/* 宝库 */
.nc-tre-sub { font-size: 12px; color: #d4a843; margin-bottom: 8px; }
.nc-tre-cat { font-size: 13px; color: #c9b6ff; margin: 10px 0 4px; border-left: 3px solid rgba(150,120,230,0.6); padding-left: 6px; }
.nc-shop-item { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 6px; background: rgba(22,22,50,0.5); border-radius: 8px; border: 1px solid rgba(60,50,100,0.2); }
.nc-si-info { flex: 1; }
.nc-si-name { font-size: 13px; color: #e6dff0; font-weight: 600; }
.nc-si-desc { font-size: 11px; color: rgba(190,180,210,0.65); margin: 2px 0; }
.nc-si-cost { font-size: 11px; color: #d4a843; }

/* 任务 */
.nc-task-bar { font-size: 12px; color: rgba(200,190,220,0.75); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.nc-task { background: rgba(22,22,50,0.5); border: 1px solid rgba(60,50,100,0.2); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.nc-task-head { display: flex; justify-content: space-between; align-items: center; }
.nc-task-title { font-size: 13px; color: #e6dff0; font-weight: 600; }
.nc-stars { color: #f0d98a; font-size: 13px; }
.nc-task-desc { font-size: 11px; color: rgba(190,180,210,0.7); margin: 4px 0; }
.nc-task-reward { font-size: 11px; color: #6fdc8c; }
.nc-task-act { text-align: right; }

/* 护山大阵 */
.nc-form-title { font-size: 15px; color: #d4a843; font-weight: 700; margin-bottom: 10px; }
.nc-dmg { color: #ff8b8b; font-size: 12px; }
.nc-form-buffs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.nc-buff { background: rgba(22,22,50,0.6); border: 1px solid rgba(60,50,100,0.3); border-radius: 8px; padding: 10px; text-align: center; color: #c9b6ff; font-size: 12px; }

/* 宗门战 / 秘境 */
.nc-war-block, .nc-secret-block { background: rgba(22,22,50,0.5); border: 1px solid rgba(60,50,100,0.25); border-radius: 10px; padding: 12px; margin-top: 12px; }
.nc-war-status { font-size: 13px; color: #ff9b9b; font-weight: 600; }
.nc-war-score { font-size: 14px; color: #d4a843; margin: 6px 0; }
.nc-war-log { margin-top: 8px; max-height: 180px; overflow-y: auto; }
.nc-log-line { font-size: 11px; padding: 3px 0; border-bottom: 1px solid rgba(60,50,100,0.15); color: rgba(210,200,230,0.85); }
.nc-log-line.win { color: #6fdc8c; }
.nc-log-line.lose { color: #ff9b9b; }
.nc-season { font-size: 12px; color: rgba(200,190,220,0.8); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.nc-secret-prog { font-size: 12px; color: #c9b6ff; margin: 4px 0 8px; }

/* 聊天 */
.nc-chat { flex: 0 0 auto; display: flex; flex-direction: column; border-top: 1px solid rgba(212,168,67,0.3); background: rgba(10,10,26,0.85); }
.nc-chat-msgs { height: 96px; overflow-y: auto; padding: 6px 10px; font-size: 12px; }
.nc-msg { padding: 2px 0; color: rgba(210,200,230,0.85); }
.nc-msg.sys { color: #f0d98a; }
.nc-msg.me { color: #9fd0ee; }
.nc-msg .nc-msg-p { font-weight: 600; }
.nc-chat-input { display: flex; gap: 6px; padding: 6px 10px; }
.nc-chat-input input { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid rgba(90,80,130,0.4); background: rgba(20,20,50,0.8); color: #e6dff0; }
.nc-chat-input button { padding: 8px 14px; border-radius: 8px; border: none; background: #d4a843; color: #1a1206; font-weight: 700; cursor: pointer; }

/* 弹窗 */
.nc-modal { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.nc-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 0; }
.nc-modal-box {
    position: relative; z-index: 1; width: 100%; max-width: 420px; max-height: 86%; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: rgba(18,18,42,0.98); border: 1px solid rgba(212,168,67,0.4); border-radius: 12px; padding: 16px; box-sizing: border-box;
}
.nc-modal-title { font-size: 16px; font-weight: 700; color: #d4a843; margin-bottom: 10px; }
.nc-form label { display: block; font-size: 12px; color: rgba(200,190,220,0.8); margin: 8px 0 2px; }
.nc-form input, .nc-form textarea {
    width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(90,80,130,0.4);
    background: rgba(20,20,50,0.8); color: #e6dff0; box-sizing: border-box; font-size: 13px;
}
.nc-form textarea { min-height: 60px; resize: vertical; }
.nc-radio-row { display: flex; gap: 14px; margin: 4px 0 6px; font-size: 13px; color: #e6dff0; }
.nc-create-req { font-size: 11px; color: #ffb86b; margin: 8px 0; }
.nc-modal-btns { position: sticky; bottom: 0; display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; background: rgba(18,18,42,0.98); z-index: 2; }
.nc-modal-btns .nc-btn { margin-top: 0; }

/* 互助 */
.nc-help-pub { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nc-help-pub select, .nc-help-pub input { flex: 1; min-width: 120px; padding: 7px; border-radius: 6px; border: 1px solid rgba(90,80,130,0.4); background: rgba(20,20,50,0.8); color: #e6dff0; }
.nc-help-list { max-height: 320px; overflow-y: auto; }
.nc-help-row { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 6px; background: rgba(22,22,50,0.5); border-radius: 8px; }
.nc-help-main { flex: 1; font-size: 12px; color: #e6dff0; }
.nc-help-type { font-size: 10px; padding: 1px 6px; border-radius: 8px; }
.nc-help-type.type-tribulation { background: rgba(255,120,120,0.2); color: #ff9b9b; }
.nc-help-type.type-material { background: rgba(110,180,220,0.2); color: #9fd0ee; }
