/**
 * Empower — dark theme overrides (loaded when user selects 深色主題)
 */

.empower-app[data-theme="dark"] {
    --bg: #0f1419;
    --surface: #1a2332;
    --surface2: #243044;
    --surface3: #2d3a52;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f1f5f9;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --muted: #94a3b8;
    --primary-dark: #f1f5f9;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --gold: #fbbf24;
    --brand-green: #86efac;
    --brand-yellow: #fcd34d;
    --brand-orange: #fb923c;
    --brand-blue: #60a5fa;
    --brand-purple: #a78bfa;
    --brand-pink: #f472b6;
    --brand-ministry: #38bdf8;
    --bg-color: var(--bg);
    --border-color: var(--border);
    --border-input: var(--border-strong);

    background: var(--bg) !important;
    background-image: none !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"].empower-module-bible { --module-accent: #34d399; --module-accent2: #6ee7b7; --accent: #34d399; --accent2: #6ee7b7; }
.empower-app[data-theme="dark"].empower-module-mission { --module-accent: var(--brand-orange); --module-accent2: #fdba74; --accent: var(--brand-orange); }
.empower-app[data-theme="dark"].empower-module-ministry { --module-accent: var(--brand-blue); --module-accent2: #93c5fd; --accent: var(--brand-blue); }
.empower-app[data-theme="dark"].empower-module-equip { --module-accent: var(--brand-green); --module-accent2: #bbf7d0; --accent: #4ade80; }
.empower-app[data-theme="dark"].empower-module-gifts { --module-accent: var(--brand-blue); --module-accent2: #93c5fd; --accent: var(--brand-blue); }
.empower-app[data-theme="dark"].empower-module-activity { --module-accent: var(--brand-pink); --module-accent2: var(--brand-purple); --accent: var(--brand-pink); }

.empower-app[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
}

.empower-app[data-theme="dark"] .navbar-brand,
.empower-app[data-theme="dark"] .navbar-brand a { color: var(--text) !important; }
.empower-app[data-theme="dark"] .brand-title { color: var(--text) !important; border-left-color: var(--border) !important; }

.empower-app[data-theme="dark"] .navbar-user a,
.empower-app[data-theme="dark"] .btn-outline,
.empower-app[data-theme="dark"] .btn-hall {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.empower-app[data-theme="dark"] .navbar-user a:hover,
.empower-app[data-theme="dark"] .btn-outline:hover,
.empower-app[data-theme="dark"] .btn-hall:hover {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.empower-app[data-theme="dark"] .logout-btn {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.empower-app[data-theme="dark"] .logout-btn:hover { background: #ef4444 !important; color: #fff !important; }
.empower-app[data-theme="dark"] .nav-badge { background: rgba(99, 102, 241, 0.15) !important; color: var(--accent2) !important; }

.empower-app[data-theme="dark"] .header-section h2,
.empower-app[data-theme="dark"] .header-section h1,
.empower-app[data-theme="dark"] .mission-title,
.empower-app[data-theme="dark"] .equip-title,
.empower-app[data-theme="dark"] .act-title,
.empower-app[data-theme="dark"] .card-title { color: var(--text) !important; }

.empower-app[data-theme="dark"] .header-section p,
.empower-app[data-theme="dark"] .node-desc { color: var(--muted) !important; }
.empower-app[data-theme="dark"] .header-section { border-bottom-color: var(--border) !important; }

.empower-app[data-theme="dark"] .header-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(26, 35, 50, 0.95) 50%, rgba(15, 20, 25, 1) 100%) !important;
    border-bottom: 1px solid var(--border);
}

.empower-app.empower-module-ministry[data-theme="dark"] .header-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(26, 35, 50, 0.95) 100%) !important;
}

.empower-app[data-theme="dark"] .card,
.empower-app[data-theme="dark"] .mission-card,
.empower-app[data-theme="dark"] .equip-card,
.empower-app[data-theme="dark"] .act-card,
.empower-app[data-theme="dark"] .info-card,
.empower-app[data-theme="dark"] .plan-card,
.empower-app[data-theme="dark"] .bible-card,
.empower-app[data-theme="dark"] .slider-wrapper,
.empower-app[data-theme="dark"] .action-card,
.empower-app[data-theme="dark"] .admin-banner,
.empower-app[data-theme="dark"] .unbaptized-alert,
.empower-app[data-theme="dark"] .companion-block,
.empower-app[data-theme="dark"] .detail-box,
.empower-app[data-theme="dark"] .auth-block {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: none !important;
    color: var(--text);
}

.empower-app[data-theme="dark"] .card-header,
.empower-app[data-theme="dark"] .card-footer { background: transparent !important; border-color: var(--border) !important; }

.empower-app[data-theme="dark"] .card-desc,
.empower-app[data-theme="dark"] .desc-box,
.empower-app[data-theme="dark"] .meta-info,
.empower-app[data-theme="dark"] .info-row,
.empower-app[data-theme="dark"] .media-preview {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .empty-state {
    background: var(--surface) !important;
    border: 1px dashed var(--border-strong) !important;
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .bg-pending,
.empower-app[data-theme="dark"] .status-pending,
.empower-app[data-theme="dark"] .status-text.status-pending,
.empower-app[data-theme="dark"] .status-tag.bg-pending,
.empower-app[data-theme="dark"] .badge.bg-pending,
.empower-app[data-theme="dark"] .badge.badge-ministry-pending,
.empower-app[data-theme="dark"] .badge.badge-activity-pending,
.empower-app[data-theme="dark"] .badge.pending {
    background: rgba(251, 146, 60, 0.18) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

/* 內聯待審 badge／按鈕：避免灰底 + 暗紅字難辨 */
.empower-app[data-theme="dark"] .badge[style*="color:#b45309"],
.empower-app[data-theme="dark"] .badge[style*="color: #b45309"],
.empower-app[data-theme="dark"] .badge[style*="color:#c2410c"],
.empower-app[data-theme="dark"] .badge[style*="color: #c2410c"],
.empower-app[data-theme="dark"] .badge[style*="color:#ea580c"],
.empower-app[data-theme="dark"] .badge[style*="color: #ea580c"],
.empower-app[data-theme="dark"] div[style*="background:#fffbeb"][style*="color:#b45309"],
.empower-app[data-theme="dark"] div[style*="background: #fffbeb"][style*="color: #b45309"] {
    background: rgba(251, 146, 60, 0.18) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn[style*="background:#fffbeb"],
.empower-app[data-theme="dark"] .btn[style*="background: #fffbeb"],
.empower-app[data-theme="dark"] .btn[style*="background:#fff7ed"],
.empower-app[data-theme="dark"] .btn[style*="background: #fff7ed"] {
    background: rgba(251, 146, 60, 0.16) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.32) !important;
}

/* 未完成／失敗 badge — 內聯暗紅字在深色底難辨（含 DataTables td color !important 覆蓋子元素） */
.empower-app[data-theme="dark"] .badge.bg-failed,
.empower-app[data-theme="dark"] .badge[style*="color:#b91c1c"],
.empower-app[data-theme="dark"] .badge[style*="color: #b91c1c"],
.empower-app[data-theme="dark"] .badge[style*="color:#dc2626"],
.empower-app[data-theme="dark"] .badge[style*="color: #dc2626"],
.empower-app[data-theme="dark"] .badge[style*="color:#ef4444"],
.empower-app[data-theme="dark"] .badge[style*="color: #ef4444"],
.empower-app[data-theme="dark"] .badge[style*="color:#e74c3c"],
.empower-app[data-theme="dark"] .badge[style*="color: #e74c3c"],
.empower-app[data-theme="dark"] table.dataTable tbody td .badge.bg-failed,
.empower-app[data-theme="dark"] table.dataTable tbody td .badge[style*="color:#b91c1c"],
.empower-app[data-theme="dark"] table.dataTable tbody td .badge[style*="color: #b91c1c"],
.empower-app[data-theme="dark"] table.dataTable tbody td .badge[style*="color:#dc2626"],
.empower-app[data-theme="dark"] table.dataTable tbody td .badge[style*="color: #dc2626"],
.empower-app[data-theme="dark"] table.dataTable tbody td .badge[style*="color:#ef4444"],
.empower-app[data-theme="dark"] table.dataTable tbody td .badge[style*="color: #ef4444"],
.empower-app[data-theme="dark"] table.dataTable tbody td .badge[style*="color:#e74c3c"],
.empower-app[data-theme="dark"] table.dataTable tbody td .badge[style*="color: #e74c3c"] {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.empower-app[data-theme="dark"] .bg-approved,
.empower-app[data-theme="dark"] .status-approved {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
}

.empower-app[data-theme="dark"] .bg-rejected {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
}

.empower-app[data-theme="dark"] .bg-closed,
.empower-app[data-theme="dark"] .bg-full,
.empower-app[data-theme="dark"] .pending-tag {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .btn-primary,
.empower-app[data-theme="dark"] .btn-apply,
.empower-app[data-theme="dark"] .btn-main,
.empower-app[data-theme="dark"] .btn-dark,
.empower-app[data-theme="dark"] .btn-save,
.empower-app[data-theme="dark"] .btn-scan { color: #fff !important; }

.empower-app[data-theme="dark"] .btn-file,
.empower-app[data-theme="dark"] .read-more-btn,
.empower-app[data-theme="dark"] .btn-secondary {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.empower-app[data-theme="dark"] .modal { background: rgba(0, 0, 0, 0.65) !important; }
.empower-app[data-theme="dark"] .modal-content,
.empower-app[data-theme="dark"] .modal-box {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .modal h3,
.empower-app[data-theme="dark"] .modal-box h2 { color: var(--text) !important; border-bottom-color: var(--border) !important; }
.empower-app[data-theme="dark"] .modal label { color: var(--muted) !important; }

.empower-app[data-theme="dark"] .modal input,
.empower-app[data-theme="dark"] .modal select,
.empower-app[data-theme="dark"] .modal textarea,
.empower-app[data-theme="dark"] input[type="text"],
.empower-app[data-theme="dark"] input[type="date"],
.empower-app[data-theme="dark"] select,
.empower-app[data-theme="dark"] textarea {
    background: var(--surface2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-home[data-theme="dark"] {
    background-color: var(--bg) !important;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(251, 191, 36, 0.06), transparent) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .mobile-bottom-bar {
    background: rgba(15, 20, 25, 0.96) !important;
    border-top-color: var(--border) !important;
}

.empower-app.empower-module-home[data-theme="dark"] footer {
    border-top-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.empower-module-home[data-theme="dark"] footer a {
    color: var(--muted) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.empower-module-home[data-theme="dark"] footer a:hover {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .action-card .card-content h3 { color: var(--text) !important; }
.empower-app[data-theme="dark"] .action-card p { color: var(--muted) !important; }
.empower-app[data-theme="dark"] .split-half-h:first-child { border-right-color: var(--border) !important; }
.empower-app[data-theme="dark"] .split-half-h:hover { background: var(--surface2) !important; }

/* 大廳 — 模組入口 icon（深色模式：飽和底色 + 白字，避免 #86efac 等淺色對比不足） */
.empower-app.empower-module-home[data-theme="dark"] .action-card .card-icon {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.empower-app.empower-module-home[data-theme="dark"] .c-sermon .card-icon {
    background: linear-gradient(135deg, #6366f1, #4338ca) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-bible .card-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-worship .card-icon {
    background: linear-gradient(135deg, #7c3aed, #0284c7) !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-ministry .card-icon {
    background: linear-gradient(135deg, #0ea5e9, #0369a1) !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-equip .card-icon {
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-mission .card-icon {
    background: linear-gradient(135deg, #f97316, #c2410c) !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-activity .card-icon {
    background: linear-gradient(135deg, #a855f7, #7e22ce) !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-resume .card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-resume:hover .card-content h3 {
    color: #fbbf24 !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-equip:hover .card-content h3 {
    color: #86efac !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-sermon:hover .card-content h3 {
    color: #a5b4fc !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-bible:hover .card-content h3 {
    color: #93c5fd !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-joshua:hover .card-content h3 {
    color: #bef264 !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-worship:hover .card-content h3 {
    color: #c4b5fd !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-mission:hover .card-content h3 {
    color: #fdba74 !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-ministry:hover .card-content h3 {
    color: #7dd3fc !important;
}

.empower-app.empower-module-home[data-theme="dark"] .c-activity:hover .card-content h3 {
    color: #d8b4fe !important;
}

/* 大廳 — 三張個人資訊卡（靈修 / 裝備 / 事奉） */
.empower-app.empower-module-home[data-theme="dark"] .info-card {
    background: var(--surface) !important;
    backdrop-filter: none !important;
    border-color: var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .info-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35) !important;
    border-color: var(--border-strong) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .info-header {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .info-body {
    background: transparent !important;
}

.empower-app.empower-module-home[data-theme="dark"] .data-label {
    color: var(--muted) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .data-list li {
    border-bottom-color: var(--border) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .empty-text {
    color: var(--muted) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .data-tag.tag-blue {
    background: rgba(96, 165, 250, 0.16) !important;
    color: #bfdbfe !important;
    border-color: rgba(96, 165, 250, 0.38) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .data-tag.tag-green {
    background: rgba(74, 222, 128, 0.16) !important;
    color: #bbf7d0 !important;
    border-color: rgba(74, 222, 128, 0.38) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .data-tag.tag-orange {
    background: rgba(251, 146, 60, 0.16) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.38) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .data-tag.tag-gray {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .dashboard-tab {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border: 1px solid var(--border) !important;
}

.empower-app[data-theme="dark"] .dashboard-tab.active {
    background: linear-gradient(135deg, #34d399, #059669) !important;
    color: #fff !important;
}

.empower-app[data-theme="dark"] .font-ctrl { background: var(--surface) !important; border: 1px solid var(--border) !important; }
.empower-app[data-theme="dark"] .font-btn { background: var(--surface2) !important; color: var(--muted) !important; border-color: var(--border) !important; }
.empower-app[data-theme="dark"] .font-btn.active { background: var(--module-accent) !important; color: #fff !important; }

.empower-app[data-theme="dark"] .theme-banner,
.empower-app[data-theme="dark"] .social-wall,
.empower-app[data-theme="dark"] .month-nav,
.empower-app[data-theme="dark"] .archive-item,
.empower-app[data-theme="dark"] #empty-state-register {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .admin-tab { background: var(--surface2) !important; color: var(--muted) !important; border-color: var(--border) !important; }
.empower-app[data-theme="dark"] .admin-tab.active { background: var(--module-accent, var(--accent)) !important; color: #fff !important; }

.empower-app.empower-module-sermon[data-theme="dark"] .sidebar { background: var(--surface); border-color: var(--border); }
.empower-app.empower-module-sermon[data-theme="dark"] .topbar { background: rgba(26, 35, 50, 0.85); border-color: var(--border); }

.empower-app[data-theme="dark"] [style*="background:white"],
.empower-app[data-theme="dark"] [style*="background: white"],
.empower-app[data-theme="dark"] [style*="background:#ffffff"],
.empower-app[data-theme="dark"] [style*="background:#fff "],
.empower-app[data-theme="dark"] [style*="background: #f8fafc"],
.empower-app[data-theme="dark"] [style*="background:#f8fafc"],
.empower-app[data-theme="dark"] [style*="background: #fafaf9"],
.empower-app[data-theme="dark"] [style*="background:#fafaf9"],
.empower-app[data-theme="dark"] [style*="background:#fffbeb"],
.empower-app[data-theme="dark"] [style*="background: #fffbeb"],
.empower-app[data-theme="dark"] [style*="background:#f0fdf4"],
.empower-app[data-theme="dark"] [style*="background: #f0fdf4"],
.empower-app[data-theme="dark"] [style*="background:#fef2f2"],
.empower-app[data-theme="dark"] [style*="background: #fef2f2"] {
    background: var(--surface2) !important;
}

.empower-app[data-theme="dark"] [style*="background-color: white"],
.empower-app[data-theme="dark"] [style*="background-color:white"],
.empower-app[data-theme="dark"] [style*="background-color: #ffffff"],
.empower-app[data-theme="dark"] [style*="background-color:#ffffff"],
.empower-app[data-theme="dark"] [style*="background-color: #faf5ff"],
.empower-app[data-theme="dark"] [style*="background-color:#faf5ff"],
.empower-app[data-theme="dark"] [style*="background-color: #f8fafc"],
.empower-app[data-theme="dark"] [style*="background-color:#f8fafc"],
.empower-app[data-theme="dark"] [style*="background-color: #fef2f2"],
.empower-app[data-theme="dark"] [style*="background-color:#fef2f2"] {
    background-color: var(--surface2) !important;
}

.empower-app[data-theme="dark"] [style*="color:var(--primary-dark)"],
.empower-app[data-theme="dark"] [style*="color: var(--primary-dark)"],
.empower-app[data-theme="dark"] [style*="color:#1e293b"] { color: var(--text) !important; }

/* 大廳 — 進入管理中心 */
.empower-app.empower-module-home[data-theme="dark"] .admin-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .admin-btn:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1) !important;
    color: #fff !important;
}

/* 大廳 — 專屬你的推薦 */
.empower-app.empower-module-home[data-theme="dark"] .slider-slide-ai {
    background: linear-gradient(to bottom right, var(--surface), var(--surface2)) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .ai-recommend-text,
.empower-app.empower-module-home[data-theme="dark"] #ai-recommend-text {
    color: var(--text) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .btn-ai-trigger {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .btn-ai-trigger:hover {
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.45) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .btn-ai-trigger:disabled {
    opacity: 0.75;
    cursor: wait;
}

.empower-app.empower-module-home[data-theme="dark"] .slider-dots {
    background: linear-gradient(to top, rgba(15, 20, 25, 0.85), transparent) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .dot {
    background: var(--surface3) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .dot.active {
    background: #4ade80 !important;
}

.empower-app.empower-module-home[data-theme="dark"] .slider-arrow {
    background: rgba(26, 35, 50, 0.92) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .slider-arrow:hover {
    background: #4ade80 !important;
    color: #0f172a !important;
    border-color: transparent !important;
}

/* 大廳 — 廣告輪播 spotlight（深色模式還原電影感） */
.empower-app.empower-module-home[data-theme="dark"] .spotlight-hero {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-bg,
.empower-app.empower-module-home[data-theme="dark"] .spotlight-youtube {
    background: #0f172a !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-poster .spotlight-bg img {
    background: #0f172a !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-bg-fallback {
    background: linear-gradient(135deg, var(--spot-accent, #334155) 0%, #0f172a 55%, #020617 100%) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.theme-ministry .spotlight-bg-fallback {
    background: linear-gradient(135deg, #0284c7 0%, #0f172a 55%, #020617 100%) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.theme-mission .spotlight-bg-fallback {
    background: linear-gradient(135deg, #ea580c 0%, #0f172a 55%, #020617 100%) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.theme-equip .spotlight-bg-fallback {
    background: linear-gradient(135deg, #5a7534 0%, #0f172a 55%, #020617 100%) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.theme-activity .spotlight-bg-fallback {
    background: linear-gradient(135deg, #be185d 0%, #0f172a 55%, #020617 100%) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.72) 0%, rgba(2, 6, 23, 0.38) 38%, transparent 62%), linear-gradient(90deg, rgba(2, 6, 23, 0.55) 0%, transparent 52%) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-poster .spotlight-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.5) 20%, rgba(2, 6, 23, 0.12) 42%, transparent 58%), linear-gradient(0deg, rgba(2, 6, 23, 0.55) 0%, transparent 38%) !important;
}

@media (min-width: 769px) and (hover: hover) {
    .empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-poster .spotlight-overlay {
        opacity: 0;
        background: transparent !important;
    }

    .empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-poster:hover .spotlight-overlay,
    .empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-poster:focus-within .spotlight-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.5) 20%, rgba(2, 6, 23, 0.12) 42%, transparent 58%), linear-gradient(0deg, rgba(2, 6, 23, 0.55) 0%, transparent 38%) !important;
    }
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-youtube .spotlight-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.4) 22%, transparent 50%), linear-gradient(0deg, rgba(2, 6, 23, 0.65) 0%, transparent 42%) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-content {
    color: #f8fafc !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-pause-hint {
    color: #e2e8f0 !important;
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-pill {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #f8fafc !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-title {
    color: #f8fafc !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-meta {
    color: rgba(248, 250, 252, 0.88) !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide:not(.has-poster):not(.has-youtube) .spotlight-meta,
.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-poster .spotlight-meta,
.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-youtube .spotlight-meta {
    color: rgba(248, 250, 252, 0.88) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-desc {
    color: rgba(248, 250, 252, 0.82) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-cta {
    background: #f8fafc !important;
    color: #0f172a !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    filter: none !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-poster .spotlight-cta,
.empower-app.empower-module-home[data-theme="dark"] .spotlight-slide.has-youtube .spotlight-cta {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-cta:hover {
    color: #0f172a !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-nav {
    background: rgba(15, 23, 42, 0.55) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-nav:hover {
    background: rgba(15, 23, 42, 0.85) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-thumbs {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.92)) !important;
    border-top-color: transparent !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-thumb {
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-thumb.active {
    border-color: rgba(248, 250, 252, 0.85) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-thumb-poster {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-thumb-poster.contain {
    background-color: #1e293b !important;
}

.empower-app.empower-module-home[data-theme="dark"] .spotlight-thumb-label {
    color: #e2e8f0 !important;
}

/* 管理大廳 — 操作手冊等 btn-primary（勿用 --text-dark 當背景） */
.empower-app.empower-module-admin[data-theme="dark"] .btn-primary,
.empower-app.empower-module-admin[data-theme="dark"] a.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important;
    border: none !important;
}

.empower-app.empower-module-admin[data-theme="dark"] .btn-primary:hover,
.empower-app.empower-module-admin[data-theme="dark"] a.btn-primary:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1) !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* 約書亞後台 — 新增技能 */
.empower-app.empower-module-joshua[data-theme="dark"] .btn-add-skill {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border-strong) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .btn-add-skill:hover {
    border-color: var(--brand-orange) !important;
    color: var(--brand-orange) !important;
    background: rgba(251, 146, 60, 0.08) !important;
}

/* 約書亞後台 — 儲存按鈕（黃底深字，覆蓋全局 btn-save 白字） */
.empower-app.empower-module-joshua[data-theme="dark"] .btn-save {
    background: var(--brand-yellow, #fcd34d) !important;
    color: #422006 !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(252, 211, 77, 0.25) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .btn-save:hover {
    background: #f59e0b !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35) !important;
}

/* 約書亞後台 — 期數分頁（黃底深字） */
.empower-app.empower-module-joshua[data-theme="dark"] .tab-btn.active {
    background: var(--brand-yellow, #fcd34d) !important;
    color: #422006 !important;
    border-color: var(--brand-yellow, #fcd34d) !important;
    box-shadow: 0 4px 15px rgba(252, 211, 77, 0.2) !important;
}

/* 讀經計畫 — 月份導覽、月曆格、日期數字、展開/收合 */
.empower-app.empower-module-bible[data-theme="dark"] .nav-item {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .nav-item:hover {
    background: var(--surface3) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .nav-item.active {
    background: var(--module-accent) !important;
    color: #fff !important;
    border-color: var(--module-accent) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .month-wrapper {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .month-header-toggle,
.empower-app.empower-module-bible[data-theme="dark"] .month-header-toggle .toggle-icon {
    color: var(--text) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .month-header-toggle.active {
    border-bottom-color: var(--border) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .glow-0,
.empower-app.empower-module-bible[data-theme="dark"] .glow-1,
.empower-app.empower-module-bible[data-theme="dark"] .glow-2,
.empower-app.empower-module-bible[data-theme="dark"] .glow-3,
.empower-app.empower-module-bible[data-theme="dark"] .glow-4 {
    background: var(--surface) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .day-cell {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .day-cell.no-task,
.empower-app.empower-module-bible[data-theme="dark"] .day-cell.locked {
    background: var(--surface3) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .day-cell.completed {
    background: rgba(52, 211, 153, 0.1) !important;
    border-color: rgba(52, 211, 153, 0.25) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .day-cell.today {
    border-color: var(--module-accent) !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .day-date {
    color: var(--text) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .day-preview {
    color: var(--muted) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .weekday-header {
    color: var(--muted) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .font-btn:hover {
    color: var(--text) !important;
    background: var(--surface3) !important;
}

.empower-app[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg); }
.empower-app[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 4px; }

.empower-app.empower-module-profile[data-theme="dark"] {
    background: var(--bg) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .card,
.empower-app.empower-module-profile[data-theme="dark"] .auth-block {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .card h3,
.empower-app.empower-module-profile[data-theme="dark"] .auth-text h4 {
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] table {
    color: var(--text);
}

.empower-app.empower-module-profile[data-theme="dark"] table th {
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] table td {
    border-color: var(--border) !important;
}

/* 個人設定 — 行事曆與服事（FullCalendar） */
.empower-app.empower-module-profile[data-theme="dark"] .calendar-tutorial-box {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .calendar-wrapper {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .tutorial-card,
.empower-app.empower-module-profile[data-theme="dark"] .filter-item {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .tutorial-card:hover,
.empower-app.empower-module-profile[data-theme="dark"] .filter-item:hover {
    background: var(--surface3) !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .tutorial-card h4 {
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .tutorial-card p {
    color: var(--muted) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .tutorial-card code {
    background: var(--surface3);
    color: var(--accent2);
    padding: 2px 6px;
    border-radius: 4px;
}

.empower-app.empower-module-profile[data-theme="dark"] .btn-action.secondary {
    background: var(--surface2) !important;
    color: var(--brand-orange) !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .btn-action.secondary:hover {
    background: var(--surface3) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc {
    color: var(--text);
    --fc-border-color: rgba(255, 255, 255, 0.08);
    --fc-page-bg-color: var(--surface);
    --fc-neutral-bg-color: var(--surface2);
    --fc-neutral-text-color: var(--muted);
    --fc-list-event-hover-bg-color: var(--surface2);
}

.empower-app.empower-module-profile[data-theme="dark"] .fc .fc-toolbar-title {
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-theme-standard td,
.empower-app.empower-module-profile[data-theme="dark"] .fc-theme-standard th {
    border-color: var(--border) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-scrollgrid,
.empower-app.empower-module-profile[data-theme="dark"] .fc-scrollgrid-section-body td,
.empower-app.empower-module-profile[data-theme="dark"] .fc-daygrid-body {
    background: var(--surface) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-col-header-cell {
    background-color: var(--surface2) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-col-header-cell-cushion,
.empower-app.empower-module-profile[data-theme="dark"] .fc-daygrid-day-number,
.empower-app.empower-module-profile[data-theme="dark"] .fc-list-day-text,
.empower-app.empower-module-profile[data-theme="dark"] .fc-list-day-side-text,
.empower-app.empower-module-profile[data-theme="dark"] .fc-list-event-title,
.empower-app.empower-module-profile[data-theme="dark"] .fc-list-event-time,
.empower-app.empower-module-profile[data-theme="dark"] .fc-list-event-graphic,
.empower-app.empower-module-profile[data-theme="dark"] .fc-list-table td,
.empower-app.empower-module-profile[data-theme="dark"] .fc-list-table th {
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-daygrid-day {
    background: var(--surface) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-daygrid-day:hover {
    background: var(--surface2) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-day-today {
    background: rgba(99, 102, 241, 0.15) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-day-today .fc-daygrid-day-number {
    color: var(--accent2) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-button-primary {
    background-color: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-button-primary:hover,
.empower-app.empower-module-profile[data-theme="dark"] .fc-button-primary:focus {
    background-color: var(--surface3) !important;
    border-color: var(--border-strong) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-button-active,
.empower-app.empower-module-profile[data-theme="dark"] .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-list-empty {
    background: var(--surface) !important;
    color: var(--muted) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-list-event:hover td {
    background: var(--surface2) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .fc-list-day-cushion {
    background: var(--surface2) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .cal-modal-content {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .cal-modal-content h3 {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .cal-modal-content label {
    color: var(--muted) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .cal-modal-content input,
.empower-app.empower-module-profile[data-theme="dark"] .cal-time-select {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .cal-modal-content input:focus,
.empower-app.empower-module-profile[data-theme="dark"] .cal-time-select:focus {
    background: var(--surface3) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .cal-btn-del {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .cal-close-modal {
    color: var(--muted) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .cal-close-modal:hover {
    color: var(--text) !important;
}

/* 個人設定 — 頂部 QR 按鈕、恩賜區塊、QR 彈窗文字 */
.empower-app.empower-module-profile[data-theme="dark"] .btn-profile-qr {
    background: #059669 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.35) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .btn-profile-bible {
    background: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(96, 165, 250, 0.35) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .profile-career-callout {
    background: var(--surface2) !important;
    border-left-color: var(--brand-blue) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .profile-career-callout-summary {
    color: var(--brand-blue) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .profile-career-callout-list {
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .profile-gifts-panel {
    background: rgba(244, 114, 182, 0.1) !important;
    border-color: rgba(244, 114, 182, 0.28) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .profile-gift-chip {
    background: var(--surface) !important;
    border-color: rgba(244, 114, 182, 0.45) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .profile-gift-chip-cat {
    color: #f9a8d4 !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .profile-gift-chip-name {
    color: #fbcfe8 !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .profile-gifts-empty,
.empower-app.empower-module-profile[data-theme="dark"] .profile-section-desc {
    color: var(--muted) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .btn-gifts-cta {
    background: #db2777 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .qr-modal-title,
.empower-app.empower-module-profile[data-theme="dark"] .qr-modal-desc,
.empower-app.empower-module-profile[data-theme="dark"] .qr-id-text {
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .qr-modal-desc,
.empower-app.empower-module-profile[data-theme="dark"] .qr-id-text {
    color: var(--muted) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .qr-click-hint {
    color: var(--brand-blue) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .qr-modal-select,
.empower-app.empower-module-profile[data-theme="dark"] .qr-modal-input {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .qr-tip-box {
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.32) !important;
    color: #6ee7b7 !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .navbar {
    background: var(--surface) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .navbar-brand,
.empower-app.empower-module-profile[data-theme="dark"] .navbar-user a {
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .admin-tab {
    color: var(--muted) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .admin-tab:hover,
.empower-app.empower-module-profile[data-theme="dark"] .admin-tab.active {
    color: var(--brand-blue) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .form-group input,
.empower-app.empower-module-profile[data-theme="dark"] .form-group select,
.empower-app.empower-module-profile[data-theme="dark"] .form-group textarea {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-profile[data-theme="dark"] .form-group label {
    color: var(--muted) !important;
}

@media (max-width: 768px) {
    .empower-app[data-theme="dark"] .brand-title {
        border-left: none !important;
        border-top: 1px solid var(--border) !important;
    }
}

/* ── 模組後台 (*_admin.php / admin_center) ── */
.empower-app[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #f1f5f9;
    --primary-dark: #f1f5f9;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-input: rgba(255, 255, 255, 0.14);
    --glass-card: rgba(26, 35, 50, 0.92);
    --brand-main: #cbd5e1;
}

.empower-app[data-theme="dark"].empower-module-worship { --module-accent: #38bdf8; --module-accent2: #7dd3fc; --accent: #38bdf8; }
.empower-app[data-theme="dark"].empower-module-joshua { --module-accent: var(--brand-orange); --module-accent2: #fdba74; --accent: var(--brand-orange); }
.empower-app[data-theme="dark"].empower-module-admin { --module-accent: #6366f1; --module-accent2: #a5b4fc; --accent: #6366f1; }

.empower-app[data-theme="dark"] .header-section h1,
.empower-app[data-theme="dark"] .header-section h2,
.empower-app[data-theme="dark"] .create-box h3,
.empower-app[data-theme="dark"] .category-title,
.empower-app[data-theme="dark"] .page-title,
.empower-app[data-theme="dark"] .admin-card .card-content h3,
.empower-app[data-theme="dark"] .guide-card h1 {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .create-box,
.empower-app[data-theme="dark"] .table-container,
.empower-app[data-theme="dark"] .empty-state,
.empower-app[data-theme="dark"] .custom-filter-bar,
.empower-app[data-theme="dark"] .batch-actions-bar,
.empower-app[data-theme="dark"] .batch-bar,
.empower-app[data-theme="dark"] .settings-box,
.empower-app[data-theme="dark"] .skill-card,
.empower-app[data-theme="dark"] .data-table,
.empower-app[data-theme="dark"] .admin-card,
.empower-app[data-theme="dark"] .slogan-glass,
.empower-app[data-theme="dark"] .e2e-fixture-panel,
.empower-app[data-theme="dark"] .guide-card,
.empower-app[data-theme="dark"] .admin-step,
.empower-app[data-theme="dark"] .paste-area,
.empower-app[data-theme="dark"] .attendance-card,
.empower-app[data-theme="dark"] .stat-box,
.empower-app[data-theme="dark"] .info-panel,
.empower-app[data-theme="dark"] .card-panel,
.empower-app[data-theme="dark"] .panel,
.empower-app[data-theme="dark"] .box,
.empower-app[data-theme="dark"] .thread-card,
.empower-app[data-theme="dark"] .card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

.empower-app[data-theme="dark"] .info-box {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .tool-option-label {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .modal-header {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .modal-body,
.empower-app[data-theme="dark"] .modal-footer {
    background: var(--surface) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .form-group label,
.empower-app[data-theme="dark"] .filter-item label,
.empower-app[data-theme="dark"] .slogan-label,
.empower-app[data-theme="dark"] .admin-step h3 {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .form-group input,
.empower-app[data-theme="dark"] .form-group select,
.empower-app[data-theme="dark"] .form-group textarea,
.empower-app[data-theme="dark"] .filter-select,
.empower-app[data-theme="dark"] .filter-input,
.empower-app[data-theme="dark"] .paste-area textarea,
.empower-app[data-theme="dark"] input[type="text"],
.empower-app[data-theme="dark"] input[type="date"],
.empower-app[data-theme="dark"] input[type="email"],
.empower-app[data-theme="dark"] input[type="number"],
.empower-app[data-theme="dark"] input[type="password"],
.empower-app[data-theme="dark"] input[type="search"],
.empower-app[data-theme="dark"] input[type="url"],
.empower-app[data-theme="dark"] select,
.empower-app[data-theme="dark"] textarea {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .form-group input:focus,
.empower-app[data-theme="dark"] .form-group select:focus,
.empower-app[data-theme="dark"] .form-group textarea:focus,
.empower-app[data-theme="dark"] .filter-select:focus,
.empower-app[data-theme="dark"] .filter-input:focus,
.empower-app[data-theme="dark"] .paste-area textarea:focus {
    background: var(--surface3) !important;
    border-color: var(--module-accent, var(--accent)) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.empower-app[data-theme="dark"] .form-group input:disabled,
.empower-app[data-theme="dark"] .modal-content input:disabled {
    background: var(--surface3) !important;
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .spotlight-admin-block {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .spotlight-admin-block input[type="file"] {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .paste-area {
    background: var(--surface2) !important;
    border-color: var(--border-strong) !important;
}

.empower-app[data-theme="dark"] .paste-area:focus-within {
    background: var(--surface3) !important;
}

.empower-app[data-theme="dark"] table th,
.empower-app[data-theme="dark"] .data-table th {
    background: transparent !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] table td,
.empower-app[data-theme="dark"] .data-table td {
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] tr:hover,
.empower-app[data-theme="dark"] tr:hover td,
.empower-app[data-theme="dark"] .data-table tr:hover {
    background: var(--surface2) !important;
}

.empower-app[data-theme="dark"] .admin-tabs {
    border-bottom-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .admin-tab {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .admin-tab:hover {
    color: var(--text) !important;
    background: var(--surface2) !important;
}

.empower-app[data-theme="dark"] .admin-tab.active,
.empower-app[data-theme="dark"] .tab-btn.active,
.empower-app[data-theme="dark"] .stu-tab-btn.active {
    color: var(--module-accent, var(--accent)) !important;
    border-bottom-color: var(--module-accent, var(--accent)) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

.empower-app[data-theme="dark"] .tab-btn,
.empower-app[data-theme="dark"] .stu-tab-btn {
    color: var(--muted) !important;
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .tab-btn:hover,
.empower-app[data-theme="dark"] .stu-tab-btn:hover {
    color: var(--text) !important;
    background: var(--surface2) !important;
}

.empower-app[data-theme="dark"] .tab-add {
    border-color: var(--border-strong) !important;
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .btn-outline-secondary,
.empower-app[data-theme="dark"] .btn-outline,
.empower-app[data-theme="dark"] .btn-light-blue,
.empower-app[data-theme="dark"] .action-btn,
.empower-app[data-theme="dark"] .btn-secondary,
.empower-app[data-theme="dark"] .btn-hall {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .btn-outline-secondary:hover,
.empower-app[data-theme="dark"] .btn-outline:hover,
.empower-app[data-theme="dark"] .btn-light-blue:hover,
.empower-app[data-theme="dark"] .action-btn:hover {
    background: var(--surface3) !important;
    border-color: var(--border-strong) !important;
}

.empower-app[data-theme="dark"] .btn.btn-assign,
.empower-app[data-theme="dark"] .btn.btn-edit,
.empower-app[data-theme="dark"] .btn.btn-graduate,
.empower-app[data-theme="dark"] .btn.btn-delete {
    background: var(--surface2) !important;
    border: 1px solid var(--border) !important;
}

.empower-app[data-theme="dark"] .btn.btn-assign {
    color: var(--module-accent2, #bae6fd) !important;
    border-color: rgba(125, 211, 252, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn.btn-assign:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: rgba(125, 211, 252, 0.5) !important;
}

.empower-app[data-theme="dark"] .btn.btn-edit {
    color: var(--text) !important;
    border-color: var(--border-strong) !important;
}

.empower-app[data-theme="dark"] .btn.btn-edit:hover {
    background: var(--surface3) !important;
    border-color: var(--border-strong) !important;
}

.empower-app[data-theme="dark"] .btn.btn-graduate {
    color: #86efac !important;
    border-color: rgba(134, 239, 172, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn.btn-delete {
    color: #fca5a5 !important;
    border-color: rgba(252, 165, 165, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn-outline-danger {
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.empower-app[data-theme="dark"] .btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fecaca !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
}

.empower-app[data-theme="dark"] .btn-add-theme-row {
    background: rgba(251, 191, 36, 0.1) !important;
    color: var(--gold) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}

.empower-app[data-theme="dark"] .btn-add-theme-row:hover {
    background: rgba(251, 191, 36, 0.18) !important;
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
}

.empower-app[data-theme="dark"] .admin-staff-row,
.empower-app[data-theme="dark"] .admin-theme-panel {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .admin-theme-panel h4 {
    color: var(--gold) !important;
}

.empower-app[data-theme="dark"] .theme-row {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .theme-row label {
    color: var(--gold) !important;
}

.empower-app[data-theme="dark"] .theme-row input {
    background: var(--surface2) !important;
    border-color: rgba(251, 191, 36, 0.25) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .theme-row input:focus {
    background: var(--surface3) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15) !important;
}

.empower-app[data-theme="dark"] .btn-dark {
    background: var(--surface3) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.empower-app[data-theme="dark"] .bg-gray,
.empower-app[data-theme="dark"] .bg-closed {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .bg-blue {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.25) !important;
}

.empower-app[data-theme="dark"] .batch-bar,
.empower-app[data-theme="dark"] .batch-actions-bar {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}

.empower-app[data-theme="dark"] .batch-bar-title {
    color: var(--module-accent, var(--accent)) !important;
}

.empower-app[data-theme="dark"] .admin-card {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .admin-card .card-content p,
.empower-app[data-theme="dark"] .admin-step ul,
.empower-app[data-theme="dark"] .admin-step li,
.empower-app[data-theme="dark"] .e2e-meta,
.empower-app[data-theme="dark"] .e2e-desc {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .slogan-content {
    color: var(--gold) !important;
}

.empower-app[data-theme="dark"] .btn-edit-slogan {
    background: rgba(251, 191, 36, 0.12) !important;
    border-color: rgba(251, 191, 36, 0.25) !important;
    color: var(--gold) !important;
}

.empower-app[data-theme="dark"] .highlight {
    background: var(--surface3) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .prog-bg {
    background: var(--surface3) !important;
}

.empower-app[data-theme="dark"] .driver-popover-title {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .driver-popover-description {
    color: var(--muted) !important;
}

/* DataTables */
.empower-app[data-theme="dark"] .dataTables_wrapper {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] table.dataTable thead th,
.empower-app[data-theme="dark"] table.dataTable tbody td {
    background: transparent !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] table.dataTable.no-footer {
    border-bottom-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .dataTables_wrapper .dataTables_length select,
.empower-app[data-theme="dark"] .dataTables_wrapper .dataTables_filter input {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border-color: var(--module-accent, var(--accent)) !important;
}

.empower-app[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background: var(--surface2) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .dataTables_wrapper .dataTables_info {
    color: var(--muted) !important;
}

/* Select2 */
.empower-app[data-theme="dark"] .select2-container--default .select2-selection--single,
.empower-app[data-theme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: var(--surface2) !important;
    border-color: var(--border-input) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
.empower-app[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    color: var(--accent2) !important;
}

.empower-app[data-theme="dark"] .select2-dropdown {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-results__option {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
.empower-app[data-theme="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--surface3) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected]:hover,
.empower-app[data-theme="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable:hover {
    background: var(--surface3) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 8px !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-search--inline {
    order: -1 !important;
    flex: 1 1 72px !important;
    min-width: 72px !important;
    margin: 0 !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-search--inline .select2-search__field {
    background: transparent !important;
    color: var(--text) !important;
    width: 100% !important;
    min-height: 32px !important;
    min-width: 72px !important;
    padding: 4px 6px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-selection--multiple {
    min-height: 48px !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--multiple,
.empower-app[data-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--single {
    background-color: var(--surface3) !important;
    border-color: var(--module-accent, var(--accent)) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--accent2) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    background-color: rgba(239, 68, 68, 0.35) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--surface2) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .e2e-flash.ok {
    background: rgba(74, 222, 128, 0.1) !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
    color: #86efac !important;
}

.empower-app[data-theme="dark"] .e2e-flash.err {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}

.empower-app[data-theme="dark"] .qr-scanner-banner,
.empower-app[data-theme="dark"] #global-scanner-banner {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.empower-app[data-theme="dark"] .admin-messages-page .container {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .admin-messages-page .chat-admin {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: #93c5fd !important;
}

.empower-app[data-theme="dark"] .admin-messages-page .btn-delete {
    background: var(--surface2) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.empower-app[data-theme="dark"] .admin-messages-page .btn-delete:hover {
    background: rgba(239, 68, 68, 0.12) !important;
}

.empower-app[data-theme="dark"] .thread-header {
    background: var(--surface) !important;
}

.empower-app[data-theme="dark"] .thread-header:hover {
    background: var(--surface2) !important;
}

.empower-app[data-theme="dark"] .thread-link:hover {
    background: var(--surface2) !important;
}

.empower-app[data-theme="dark"] .chat-mine {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .chat-other {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .chat-role {
    color: #93c5fd !important;
}

.empower-app[data-theme="dark"] .badge-new {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

.empower-app[data-theme="dark"] .btn-back:hover {
    background: var(--surface3) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .thread-body {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .thread-title {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .chat-user {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .chat-admin {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: #93c5fd !important;
}

.empower-app[data-theme="dark"] .badge.pending {
    background: rgba(251, 146, 60, 0.18) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

.empower-app[data-theme="dark"] .badge.replied {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
}

.empower-app[data-theme="dark"] .btn-back {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .flash,
.empower-app[data-theme="dark"] .flash-msg {
    background: rgba(74, 222, 128, 0.1) !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
    color: #86efac !important;
}

.empower-app[data-theme="dark"] .flash.err {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}

.empower-app[data-theme="dark"] .lead,
.empower-app[data-theme="dark"] .hint,
.empower-app[data-theme="dark"] .api-note {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .api-note code {
    background: var(--surface3) !important;
    color: var(--accent2) !important;
}

.empower-app[data-theme="dark"] .navbar-user a[style*="background-color: #ffffff"],
.empower-app[data-theme="dark"] .navbar-user a[style*="background-color:#ffffff"] {
    background-color: var(--surface2) !important;
    color: var(--module-accent, var(--accent)) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] h2 {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

/* 短宣後台 — 完成短宣按鈕（勿用 --primary-dark 當背景） */
.empower-app[data-theme="dark"] .btn-mission-complete,
.empower-app[data-theme="dark"] .btn[style*="background:var(--primary-dark)"],
.empower-app[data-theme="dark"] .btn[style*="background: var(--primary-dark)"] {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.empower-app[data-theme="dark"] .btn-mission-complete:hover,
.empower-app[data-theme="dark"] .btn[style*="background:var(--primary-dark)"]:hover,
.empower-app[data-theme="dark"] .btn[style*="background: var(--primary-dark)"]:hover {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    color: #fff !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .badge-mission-approved {
    background: rgba(96, 165, 250, 0.15) !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .badge-pay-free {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .batch-actions-bar > span {
    color: var(--brand-orange) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .bg-orange {
    background: rgba(251, 146, 60, 0.12) !important;
    color: #fdba74 !important;
    border-color: rgba(251, 146, 60, 0.25) !important;
}

/* 事工後台 — 白底 outline 按鈕（還原、刪除、查看名單等） */
.empower-app.empower-module-ministry[data-theme="dark"] .btn-ministry-restore,
.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="color:#0284c7"],
.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="color: #0284c7"],
.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="color:var(--brand-blue)"],
.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="color: var(--brand-blue)"],
.empower-app.empower-module-ministry[data-theme="dark"] a.btn[style*="color: var(--brand-blue)"] {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #7dd3fc !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .btn-ministry-delete,
.empower-app.empower-module-ministry[data-theme="dark"] .btn-ministry-delete-record,
.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="color:#e74c3c"],
.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="color: #e74c3c"] {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="color: #64748b"],
.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="color:#64748b"] {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border: 1px solid var(--border) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .status-select {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .badge-ministry-pending {
    background: rgba(251, 146, 60, 0.18) !important;
    color: #fed7aa !important;
    border: 1px solid rgba(251, 146, 60, 0.35) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .badge-ministry-enrolled {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #7dd3fc !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .badge.bg-blue {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.25) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .badge.bg-gray {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

/* 裝備後台 — 核准錄取 / 核准結業 / 資料與備註 / 建立中心 */
.empower-app.empower-module-equip[data-theme="dark"] .batch-actions-bar > span,
.empower-app.empower-module-equip[data-theme="dark"] .batch-actions-label {
    color: #86efac !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-equip-approve,
.empower-app.empower-module-equip[data-theme="dark"] .btn[style*="background:var(--brand-green)"],
.empower-app.empower-module-equip[data-theme="dark"] .btn[style*="background: var(--brand-green)"] {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-equip-approve:hover {
    background: linear-gradient(135deg, #86efac, #4ade80) !important;
    color: #0f172a !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-equip-complete {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-equip-complete:hover {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    color: #fff !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-equip-detail {
    background: var(--surface2) !important;
    color: #86efac !important;
    border: 1px solid rgba(74, 222, 128, 0.3) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-equip-detail:hover {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #bbf7d0 !important;
    border-color: rgba(74, 222, 128, 0.45) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-main,
.empower-app.empower-module-equip[data-theme="dark"] .btn-equip-create {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.25) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-main:hover,
.empower-app.empower-module-equip[data-theme="dark"] .btn-equip-create:hover {
    background: linear-gradient(135deg, #86efac, #4ade80) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.25) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #86efac, #4ade80) !important;
    color: #0f172a !important;
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.35) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-blue {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-blue:hover {
    background: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn-add-remind-date {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.empower-app[data-theme="dark"] .btn-add-remind-date:hover {
    background: var(--surface3) !important;
    border-color: var(--border-strong, rgba(255, 255, 255, 0.18)) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .btn-add-feedback {
    background: var(--surface2) !important;
    box-shadow: none !important;
}

.empower-app[data-theme="dark"] .btn-add-feedback--radio {
    color: #f9a8d4 !important;
    border-color: rgba(244, 114, 182, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn-add-feedback--radio:hover {
    background: rgba(244, 114, 182, 0.12) !important;
    border-color: rgba(244, 114, 182, 0.45) !important;
    color: #fbcfe8 !important;
}

.empower-app[data-theme="dark"] .btn-add-feedback--checkbox {
    color: #67e8f9 !important;
    border-color: rgba(34, 211, 238, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn-add-feedback--checkbox:hover {
    background: rgba(8, 145, 178, 0.15) !important;
    border-color: rgba(34, 211, 238, 0.5) !important;
    color: #a5f3fc !important;
}

.empower-app[data-theme="dark"] .btn-add-feedback--text {
    color: #c4b5fd !important;
    border-color: rgba(167, 139, 250, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn-add-feedback--text:hover {
    background: rgba(167, 139, 250, 0.12) !important;
    border-color: rgba(167, 139, 250, 0.45) !important;
    color: #ddd6fe !important;
}

.empower-app[data-theme="dark"] .btn-add-feedback--textarea {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .btn-add-feedback--textarea:hover {
    background: var(--surface3) !important;
    border-color: var(--border-strong, rgba(255, 255, 255, 0.18)) !important;
    color: var(--text) !important;
}

/* 裝備前台 equip_dashboard — 查看明細 / 立即報名 */
.empower-app.empower-module-equip[data-theme="dark"] .equip-card .btn[style*="background:#ffffff"],
.empower-app.empower-module-equip[data-theme="dark"] .equip-card .btn[style*="background: #ffffff"],
.empower-app.empower-module-equip[data-theme="dark"] .equip-card a.btn[style*="background:#ffffff"],
.empower-app.empower-module-equip[data-theme="dark"] .equip-card a.btn[style*="background: #ffffff"] {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .equip-card .btn[style*="background:#ffffff"]:hover,
.empower-app.empower-module-equip[data-theme="dark"] .equip-card .btn[style*="background: #ffffff"]:hover,
.empower-app.empower-module-equip[data-theme="dark"] .equip-card a.btn[style*="background:#ffffff"]:hover,
.empower-app.empower-module-equip[data-theme="dark"] .equip-card a.btn[style*="background: #ffffff"]:hover {
    background: var(--surface3) !important;
    border-color: var(--border-strong) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .equip-card a.btn[style*="color:#5a7534"],
.empower-app.empower-module-equip[data-theme="dark"] .equip-card a.btn[style*="color: #5a7534"] {
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .equip-card .btn[style*="background:#fffbeb"],
.empower-app.empower-module-equip[data-theme="dark"] .equip-card .btn[style*="background: #fffbeb"] {
    background: rgba(251, 146, 60, 0.16) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.32) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-apply {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
    box-shadow: 0 4px 14px rgba(74, 222, 128, 0.25) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-apply:hover {
    background: linear-gradient(135deg, #86efac, #4ade80) !important;
    color: #0f172a !important;
    box-shadow: 0 8px 22px rgba(74, 222, 128, 0.3) !important;
}

/* ── 約書亞 / 敬拜 dashboard ── */
.empower-app.empower-module-joshua[data-theme="dark"],
.empower-app.empower-module-worship[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary-dark: #f1f5f9;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-input: rgba(255, 255, 255, 0.14);
}

.empower-app.empower-module-joshua[data-theme="dark"] .info-card,
.empower-app.empower-module-joshua[data-theme="dark"] .joshua-card,
.empower-app.empower-module-joshua[data-theme="dark"] .skill-item-card,
.empower-app.empower-module-joshua[data-theme="dark"] .student-card,
.empower-app.empower-module-joshua[data-theme="dark"] .track,
.empower-app.empower-module-joshua[data-theme="dark"] .track-box,
.empower-app.empower-module-joshua[data-theme="dark"] .drawer,
.empower-app.empower-module-joshua[data-theme="dark"] .drawer-header,
.empower-app.empower-module-joshua[data-theme="dark"] .drawer-footer,
.empower-app.empower-module-worship[data-theme="dark"] .info-card,
.empower-app.empower-module-worship[data-theme="dark"] .worship-card,
.empower-app.empower-module-worship[data-theme="dark"] .skill-item-card,
.empower-app.empower-module-worship[data-theme="dark"] .student-card,
.empower-app.empower-module-worship[data-theme="dark"] .track-box,
.empower-app.empower-module-worship[data-theme="dark"] .drawer,
.empower-app.empower-module-worship[data-theme="dark"] .drawer-header,
.empower-app.empower-module-worship[data-theme="dark"] .drawer-footer,
.empower-app.empower-module-worship[data-theme="dark"] .bulk-student-row {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .joshua-card.graduated,
.empower-app.empower-module-joshua[data-theme="dark"] .graduated-card,
.empower-app.empower-module-worship[data-theme="dark"] .worship-card.graduated {
    background: var(--surface2) !important;
    opacity: 1 !important;
}

/* 結業歸檔 — 期別 badge 深色模式可讀性 */
.empower-app.empower-module-joshua[data-theme="dark"] .joshua-card.graduated h2,
.empower-app.empower-module-worship[data-theme="dark"] .worship-card.graduated h2 {
    color: var(--text) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .joshua-card.graduated .graduated-term-badge {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-card.graduated .worship-term-badge {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #bae6fd !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .drawer-body,
.empower-app.empower-module-worship[data-theme="dark"] .drawer-body {
    background: var(--surface) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .info-content h2,
.empower-app.empower-module-joshua[data-theme="dark"] .joshua-header h2,
.empower-app.empower-module-joshua[data-theme="dark"] .skill-item-card h3,
.empower-app.empower-module-joshua[data-theme="dark"] .student-info h3,
.empower-app.empower-module-joshua[data-theme="dark"] .drawer-header h2,
.empower-app.empower-module-joshua[data-theme="dark"] .track-box h4,
.empower-app.empower-module-joshua[data-theme="dark"] .header-section h1,
.empower-app.empower-module-worship[data-theme="dark"] .info-content h2,
.empower-app.empower-module-worship[data-theme="dark"] .w-header h2,
.empower-app.empower-module-worship[data-theme="dark"] .drawer-header h2,
.empower-app.empower-module-worship[data-theme="dark"] .track-box h4,
.empower-app.empower-module-worship[data-theme="dark"] .st-name,
.empower-app.empower-module-worship[data-theme="dark"] .course-title-bar h2,
.empower-app.empower-module-worship[data-theme="dark"] h3 {
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .brand-title,
.empower-app.empower-module-worship[data-theme="dark"] .info-content h2 {
    color: #38bdf8 !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .skill-teachers .t-name,
.empower-app.empower-module-worship[data-theme="dark"] .skill-teachers .t-name {
    color: var(--text) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .badge,
.empower-app.empower-module-joshua[data-theme="dark"] .skill-badge,
.empower-app.empower-module-joshua[data-theme="dark"] .graduated-badge,
.empower-app.empower-module-worship[data-theme="dark"] .badge {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .badge.training,
.empower-app.empower-module-worship[data-theme="dark"] .badge.training {
    background: rgba(52, 211, 153, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(52, 211, 153, 0.25) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .badge.bg-pending,
.empower-app.empower-module-worship[data-theme="dark"] .badge.bg-pending {
    background: rgba(251, 146, 60, 0.18) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .btn-rules,
.empower-app.empower-module-joshua[data-theme="dark"] .btn-minus,
.empower-app.empower-module-joshua[data-theme="dark"] .btn-note,
.empower-app.empower-module-joshua[data-theme="dark"] .btn-note-student,
.empower-app.empower-module-worship[data-theme="dark"] .btn-rules,
.empower-app.empower-module-worship[data-theme="dark"] .btn-note-student,
.empower-app.empower-module-worship[data-theme="dark"] .btn-bulk,
.empower-app.empower-module-worship[data-theme="dark"] .btn-free-leave {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .btn-rules:hover,
.empower-app.empower-module-worship[data-theme="dark"] .btn-rules:hover {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .btn-bulk:hover {
    background: var(--module-accent) !important;
    color: #fff !important;
    border-color: var(--module-accent) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .btn-view {
    color: var(--text-theme, var(--text)) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .skill-item-card:hover .btn-view,
.empower-app.empower-module-worship[data-theme="dark"] .skill-item-card:hover .btn-view {
    background: var(--card-theme, var(--module-accent)) !important;
    color: #fff !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .skill-note,
.empower-app.empower-module-worship[data-theme="dark"] .drawer .t-tag {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text-theme, var(--accent2)) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .theme-blue { --card-bg: rgba(59, 130, 246, 0.12); --text-theme: #93c5fd; --card-border: rgba(59, 130, 246, 0.25); --card-theme: #3b82f6; }
.empower-app.empower-module-joshua[data-theme="dark"] .theme-yellow { --card-bg: rgba(251, 191, 36, 0.12); --text-theme: #fcd34d; --card-border: rgba(251, 191, 36, 0.25); --card-theme: #fbbf24; }
.empower-app.empower-module-joshua[data-theme="dark"] .theme-orange { --card-bg: rgba(251, 146, 60, 0.12); --text-theme: #fdba74; --card-border: rgba(251, 146, 60, 0.25); --card-theme: #fb923c; }
.empower-app.empower-module-joshua[data-theme="dark"] .theme-green { --card-bg: rgba(134, 239, 172, 0.1); --text-theme: #86efac; --card-border: rgba(134, 239, 172, 0.25); --card-theme: #4ade80; }
.empower-app.empower-module-joshua[data-theme="dark"] .theme-gray { --card-bg: var(--surface2); --text-theme: var(--muted); --card-border: var(--border); --card-theme: #64748b; }
.empower-app.empower-module-worship[data-theme="dark"] .theme-blue { --card-bg: rgba(56, 189, 248, 0.12); --text-theme: #7dd3fc; --card-border: rgba(56, 189, 248, 0.25); --card-theme: #0284c7; }
.empower-app.empower-module-worship[data-theme="dark"] .theme-gray { --card-bg: var(--surface2); --text-theme: var(--muted); --card-border: var(--border); --card-theme: #64748b; }

.empower-app.empower-module-joshua[data-theme="dark"] .joshua-list-filters {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .joshua-list-filters label,
.empower-app.empower-module-joshua[data-theme="dark"] .joshua-filter-count {
    color: var(--muted) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .block,
.empower-app.empower-module-worship[data-theme="dark"] .block {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .block.done,
.empower-app.empower-module-worship[data-theme="dark"] .block.done {
    background: var(--brand-green, #4ade80) !important;
    color: #0f1419 !important;
    border-color: var(--brand-green, #4ade80) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .block.leave {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .drawer .t-tag {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .prog-num {
    color: var(--brand-green, #86efac) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .btn-add:not(:disabled),
.empower-app.empower-module-joshua[data-theme="dark"] .btn-submit-modal {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
    box-shadow: 0 4px 14px rgba(74, 222, 128, 0.25) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .btn-add:not(:disabled):hover,
.empower-app.empower-module-joshua[data-theme="dark"] .btn-submit-modal:hover {
    background: linear-gradient(135deg, #86efac, #22c55e) !important;
    color: #0f172a !important;
    box-shadow: 0 6px 18px rgba(74, 222, 128, 0.3) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .btn-add:disabled {
    background: var(--surface3) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .rules-section h3 {
    color: var(--brand-orange) !important;
    border-bottom-color: rgba(251, 146, 60, 0.25) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .rules-section h3 {
    color: #38bdf8 !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .session-btn {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .session-btn:hover {
    background: var(--surface3) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .session-btn.completed {
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.25) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .session-btn.completed .s-status {
    color: #86efac !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .session-btn.leave {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .session-btn.leave .s-status {
    color: #fca5a5 !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .s-num {
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .s-status {
    color: var(--muted) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .tag-leave {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .radio-group label {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .radio-group label:hover {
    background: var(--surface3) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .btn-back {
    color: var(--muted) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .btn-back:hover {
    color: #38bdf8 !important;
}

.empower-app[data-theme="dark"] .navbar-user a[style*="background-color: white"],
.empower-app[data-theme="dark"] .navbar-user a[style*="background-color:white"] {
    background-color: var(--surface2) !important;
    color: var(--module-accent, var(--accent)) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .driver-popover-title,
.empower-app.empower-module-worship[data-theme="dark"] .driver-popover-title {
    color: var(--text) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .driver-popover-description,
.empower-app.empower-module-worship[data-theme="dark"] .driver-popover-description {
    color: var(--muted) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .drawer-close:hover,
.empower-app.empower-module-worship[data-theme="dark"] .drawer-close:hover {
    color: var(--text) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .close-modal:hover,
.empower-app.empower-module-worship[data-theme="dark"] .close-modal:hover {
    color: var(--text) !important;
}

/* 敬拜讚美學校 — 課表頁 worship_calendar.php */
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .btn {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .btn:hover {
    background: var(--surface3) !important;
    border-color: var(--border-strong) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .btn.primary {
    background: var(--module-accent, #0284c7) !important;
    color: #fff !important;
    border-color: var(--module-accent, #0284c7) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page #calendar {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc {
    --fc-border-color: var(--border);
    --fc-page-bg-color: var(--surface);
    --fc-neutral-bg-color: var(--surface2);
    --fc-neutral-text-color: var(--muted);
    --fc-list-event-hover-bg-color: var(--surface2);
    color: var(--text);
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc .fc-toolbar-title,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-col-header-cell-cushion,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-daygrid-day-number,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-day-text,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-day-side-text,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-event-title,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-event-time,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-table td,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-table th {
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-theme-standard td,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-theme-standard th {
    border-color: var(--border) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-scrollgrid,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-scrollgrid-section-body td,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-daygrid-body,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-daygrid-day {
    background: var(--surface) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-col-header-cell {
    background: var(--surface2) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-daygrid-day:hover {
    background: var(--surface2) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-day-today {
    background: rgba(56, 189, 248, 0.12) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-day-today .fc-daygrid-day-number {
    color: var(--module-accent2, #7dd3fc) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-button-primary {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-button-primary:hover,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-button-primary:focus {
    background: var(--surface3) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-button-active,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--module-accent, #0284c7) !important;
    border-color: var(--module-accent, #0284c7) !important;
    color: #fff !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-empty,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-day-cushion {
    background: var(--surface2) !important;
    color: var(--muted) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-event:hover td {
    background: var(--surface2) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .top h1 {
    color: var(--module-accent2, #7dd3fc) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .legend {
    color: var(--muted) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-theme-standard {
    --fc-page-bg-color: var(--surface);
    --fc-neutral-bg-color: var(--surface2);
    --fc-neutral-text-color: var(--text);
    --fc-border-color: var(--border);
    --fc-today-bg-color: rgba(56, 189, 248, 0.12);
    --fc-event-text-color: #fff;
    --fc-more-link-text-color: var(--module-accent2, #7dd3fc);
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-view-harness,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-view,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-scrollgrid-section-header,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-scrollgrid-section-body,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-scrollgrid-section-footer,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-scrollgrid-sync-table,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-axis,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-slot,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-col,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-col-frame,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-slots,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-body,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-divider,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-cols,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-axis-cushion,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-slot-label-cushion,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-timegrid-slot-label {
    color: var(--muted) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-daygrid-day.fc-day-other {
    background: var(--surface2) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-day-other .fc-daygrid-day-number {
    color: var(--muted) !important;
    opacity: 0.75;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-more-link {
    color: var(--module-accent2, #7dd3fc) !important;
    font-weight: 700;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-popover {
    background: var(--surface2) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-popover-header {
    background: var(--surface3) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-popover-body {
    background: var(--surface2) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-event .fc-event-title,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-event .fc-event-time,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-h-event .fc-event-main,
.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-v-event .fc-event-main {
    color: #fff !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-cal-page .fc-list-event-dot {
    border-color: currentColor !important;
}

/* 敬拜讚美學校 — 學員 dashboard worship_dashboard.php */
.empower-app.empower-module-worship[data-theme="dark"] .worship-term-badge,
.empower-app.empower-module-worship[data-theme="dark"] .worship-sessions-badge,
.empower-app.empower-module-worship[data-theme="dark"] .worship-progress-pill {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-pending-note {
    background: rgba(251, 146, 60, 0.12) !important;
    color: #fdba74 !important;
    border-color: rgba(251, 146, 60, 0.28) !important;
}

.empower-app.empower-module-joshua[data-theme="dark"] .joshua-pending-note {
    background: rgba(251, 146, 60, 0.12) !important;
    color: #fdba74 !important;
    border: 1px solid rgba(251, 146, 60, 0.28) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-term-badge,
.empower-app.empower-module-worship[data-theme="dark"] .worship-progress-pill {
    color: var(--module-accent2, #7dd3fc) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-sessions-badge {
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-section-title,
.empower-app.empower-module-worship[data-theme="dark"] .worship-reg-title {
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .w-header h2 {
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] {
    --brand-worship: var(--module-accent2, #7dd3fc);
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-admin-active-badge,
.empower-app.empower-module-worship[data-theme="dark"] .worship-admin-active-toggle,
.empower-app.empower-module-worship[data-theme="dark"] .worship-admin-progress-badge {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(125, 211, 252, 0.35) !important;
    color: var(--module-accent2, #bae6fd) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-admin-field-label {
    color: #cbd5e1 !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-admin-course-meta {
    color: var(--text) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-admin-course-title {
    color: var(--module-accent2, #bae6fd) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .btn-save,
.empower-app.empower-module-worship[data-theme="dark"] .btn-submit {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.25) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .btn-save:hover,
.empower-app.empower-module-worship[data-theme="dark"] .btn-submit:hover {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9) !important;
    color: #fff !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-admin-btn-copy {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #bae6fd !important;
    border-color: rgba(125, 211, 252, 0.35) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-admin-btn-copy:hover {
    background: rgba(56, 189, 248, 0.22) !important;
    border-color: rgba(125, 211, 252, 0.5) !important;
}

.empower-app.empower-module-worship[data-theme="dark"] .worship-admin-btn-danger-soft {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(252, 165, 165, 0.35) !important;
}

/* 教會活動專區 — 說明區、活動卡片 meta、標籤 */
.empower-app.empower-module-activity[data-theme="dark"] .header-section h2,
.empower-app.empower-module-activity[data-theme="dark"] .header-section p {
    color: var(--muted) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .header-section h2 {
    color: var(--text) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .act-card .meta-info {
    background: transparent !important;
    border-bottom-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .act-card .meta-label {
    color: var(--text) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .act-card .meta-info span:not(.meta-label) {
    color: var(--muted) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .desc-container {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .desc-text {
    color: var(--muted) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .act-desc-note {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    border-left-color: var(--brand-purple) !important;
    color: var(--muted) !important;
    box-shadow: none !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .act-desc-note strong {
    color: var(--text) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .tag-normal {
    background: rgba(167, 139, 250, 0.15) !important;
    color: #c4b5fd !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .tag-special {
    background: rgba(244, 114, 182, 0.15) !important;
    color: #f9a8d4 !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .read-more-btn:hover {
    background: var(--surface3) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .act-card .btn[style*="background:#ffffff"],
.empower-app.empower-module-activity[data-theme="dark"] .act-card .btn[style*="background: #ffffff"],
.empower-app.empower-module-activity[data-theme="dark"] .act-card a.btn[style*="background: white"],
.empower-app.empower-module-activity[data-theme="dark"] .act-card a.btn[style*="background:white"] {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .act-card .btn[style*="background:#fffbeb"],
.empower-app.empower-module-activity[data-theme="dark"] .act-card .btn[style*="background: #fffbeb"] {
    background: rgba(251, 146, 60, 0.16) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.32) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .bg-full {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

/* 活動後台 activity_admin */
.empower-app.empower-module-activity[data-theme="dark"] .bg-purple {
    background: rgba(167, 139, 250, 0.15) !important;
    color: #c4b5fd !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .badge-activity-pending {
    background: rgba(251, 146, 60, 0.18) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .badge-activity-approved {
    background: rgba(167, 139, 250, 0.15) !important;
    color: #c4b5fd !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .badge-activity-paid {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .badge-activity-free {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .badge-activity-unpaid {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .btn-activity-members,
.empower-app.empower-module-activity[data-theme="dark"] .btn-activity-detail {
    background: rgba(167, 139, 250, 0.12) !important;
    color: #c4b5fd !important;
    border-color: rgba(167, 139, 250, 0.35) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .btn-activity-members:hover,
.empower-app.empower-module-activity[data-theme="dark"] .btn-activity-detail:hover {
    background: rgba(167, 139, 250, 0.22) !important;
    border-color: rgba(167, 139, 250, 0.5) !important;
    color: #e9d5ff !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .admin-tab.active {
    color: #c4b5fd !important;
    border-bottom-color: #a78bfa !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .batch-actions-bar > span[style*="color: #6b21a8"],
.empower-app.empower-module-activity[data-theme="dark"] .batch-actions-bar > span[style*="color:#6b21a8"] {
    color: #c4b5fd !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .detail-modal-overlay {
    background-color: rgba(0, 0, 0, 0.65) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .detail-modal-box {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .detail-modal-header {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .detail-modal-header h3 {
    color: var(--text) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .data-item {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .data-label {
    color: var(--muted) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .data-value {
    color: var(--text) !important;
}

/* ── 各模組 view_members 名單總覽 ── */
.empower-app[data-theme="dark"] .header-card,
.empower-app[data-theme="dark"] .table-wrapper {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

.empower-app[data-theme="dark"] .header-card h2 {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .stat-item {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .stat-item .num {
    color: var(--module-accent, var(--accent)) !important;
}

.empower-app[data-theme="dark"] .stat-item .label {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .header-section .count {
    color: var(--module-accent, var(--accent)) !important;
}

.empower-app[data-theme="dark"] .finance-col {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-left-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .remark-input,
.empower-app[data-theme="dark"] .pay-input,
.empower-app[data-theme="dark"] .field-auto-save {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .remark-input:focus,
.empower-app[data-theme="dark"] .pay-input:focus,
.empower-app[data-theme="dark"] .field-auto-save:focus {
    background: var(--surface3) !important;
    border-color: var(--module-accent, var(--accent)) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* ── 各模組後台 — 「資料與備註」Modal（短宣 / 事工 / 裝備 / 活動）── */
.empower-app[data-theme="dark"] .detail-modal-overlay {
    background-color: rgba(0, 0, 0, 0.65) !important;
}

.empower-app[data-theme="dark"] .detail-modal-box {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45) !important;
}

.empower-app[data-theme="dark"] .detail-modal-header {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .detail-modal-header h3,
.empower-app[data-theme="dark"] .detail-modal-body h4 {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .detail-modal-close {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .detail-modal-close:hover {
    color: #fca5a5 !important;
}

.empower-app[data-theme="dark"] .detail-modal-body {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .detail-modal-body .data-item {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .detail-modal-body .data-label {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .detail-modal-body .data-value,
.empower-app[data-theme="dark"] .detail-modal-body .data-value strong {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .detail-modal-body .remark-section {
    border-top-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .detail-modal-body .remark-section label,
.empower-app[data-theme="dark"] .detail-modal-body .remark-section label span {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .detail-modal-body #modalLoading {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .detail-modal-body #modalFinanceSection {
    border-bottom-color: var(--border) !important;
}

/* AJAX 動態產生的子卡片 / 空狀態（inline 白底在深色模式會看不見字） */
.empower-app[data-theme="dark"] .detail-modal-body .data-value [style*="background:#ffffff"],
.empower-app[data-theme="dark"] .detail-modal-body .data-value [style*="background: #ffffff"],
.empower-app[data-theme="dark"] .detail-modal-body .data-value [style*="background:rgba(254, 215, 170"],
.empower-app[data-theme="dark"] .detail-modal-body .data-value [style*="background:rgba(16, 185, 129, 0.03)"],
.empower-app[data-theme="dark"] .detail-modal-body [style*="background: #fafaf9"],
.empower-app[data-theme="dark"] .detail-modal-body [style*="background:#fafaf9"] {
    background: var(--surface3) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

.empower-app[data-theme="dark"] .detail-modal-body .data-value div[style*="font-weight:bold"],
.empower-app[data-theme="dark"] .detail-modal-body .data-value div[style*="font-weight:600"],
.empower-app[data-theme="dark"] .detail-modal-body .data-value div[style*="font-weight: bold"] {
    color: var(--module-accent, var(--accent)) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .detail-modal-body .data-value div[style*="border-bottom:1px dashed"],
.empower-app[data-theme="dark"] .detail-modal-body .data-value div[style*="border-bottom: 1px dashed"] {
    border-bottom-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .detail-modal-body [style*="border: 1px dashed var(--border-color)"],
.empower-app[data-theme="dark"] .detail-modal-body [style*="border:1px dashed var(--border-color)"] {
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .btn-purple {
    background: linear-gradient(135deg, #a78bfa, #7c3aed) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25) !important;
}

.empower-app[data-theme="dark"] .batch-bar .btn-dark,
.empower-app[data-theme="dark"] .batch-actions-bar .btn-dark {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.empower-app[data-theme="dark"] .btn-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.empower-app[data-theme="dark"] .btn-export {
    background: linear-gradient(135deg, #34d399, #059669) !important;
    color: #fff !important;
    border: none !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .btn-export {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .btn-export {
    background: linear-gradient(135deg, #38bdf8, #0284c7) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn-export {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
}

.empower-app[data-theme="dark"] .bg-done {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .bg-failed {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.empower-app[data-theme="dark"] .bg-serving {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
}

.empower-app[data-theme="dark"] .bg-contact {
    background: rgba(129, 140, 248, 0.12) !important;
    color: #a5b4fc !important;
    border-color: rgba(129, 140, 248, 0.25) !important;
}

.empower-app[data-theme="dark"] .bg-commander {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.empower-app[data-theme="dark"] .bg-teacher {
    background: rgba(251, 191, 36, 0.12) !important;
    color: #fcd34d !important;
    border-color: rgba(251, 191, 36, 0.25) !important;
}

.empower-app[data-theme="dark"] .bg-admin {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.25) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .bg-approved {
    background: rgba(167, 139, 250, 0.15) !important;
    color: #c4b5fd !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .bg-approved {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.25) !important;
}

.empower-app[data-theme="dark"] .close-modal {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .close-modal:hover {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .brand-title {
    border-left-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] th {
    background-color: transparent !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .batch-bar > span[style*="color: #6b21a8"],
.empower-app.empower-module-activity[data-theme="dark"] .batch-bar > span[style*="color:#6b21a8"] {
    color: #c4b5fd !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .btn[style*="background: var(--brand-green)"],
.empower-app.empower-module-equip[data-theme="dark"] .btn[style*="background:var(--brand-green)"] {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
}

.empower-app[data-theme="dark"] .batch-bar .btn[style*="background: white"],
.empower-app[data-theme="dark"] .batch-bar .btn[style*="background:white"],
.empower-app[data-theme="dark"] .batch-actions-bar .btn[style*="background: white"],
.empower-app[data-theme="dark"] .batch-actions-bar .btn[style*="background:white"],
.empower-app[data-theme="dark"] .batch-bar .btn[style*="background: #ffffff"],
.empower-app[data-theme="dark"] .batch-actions-bar .btn[style*="background: #ffffff"] {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .btn[style*="color: #8b5cf6"],
.empower-app[data-theme="dark"] .btn[style*="color:#8b5cf6"] {
    color: #c4b5fd !important;
    border-color: rgba(167, 139, 250, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn[style*="color: #3b82f6"],
.empower-app[data-theme="dark"] .btn[style*="color:#3b82f6"] {
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn[style*="color: #10b981"],
.empower-app[data-theme="dark"] .btn[style*="color:#10b981"] {
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
}

.empower-app[data-theme="dark"] .btn[style*="background: #8b5cf6"],
.empower-app[data-theme="dark"] .btn[style*="background:#8b5cf6"] {
    background: linear-gradient(135deg, #a78bfa, #7c3aed) !important;
    color: #fff !important;
}

.empower-app[data-theme="dark"] .btn[style*="background: #ef4444"],
.empower-app[data-theme="dark"] .btn[style*="background:#ef4444"] {
    background: linear-gradient(135deg, #f87171, #dc2626) !important;
    color: #fff !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .batch-bar {
    background: rgba(167, 139, 250, 0.08) !important;
    border-color: rgba(167, 139, 250, 0.2) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .batch-actions-bar {
    background: rgba(74, 222, 128, 0.06) !important;
    border-color: rgba(74, 222, 128, 0.18) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .batch-actions-bar {
    background: rgba(96, 165, 250, 0.06) !important;
    border-color: rgba(96, 165, 250, 0.18) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .batch-actions-bar {
    background: rgba(251, 146, 60, 0.08) !important;
    border-color: rgba(251, 146, 60, 0.2) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="background: var(--brand-blue)"],
.empower-app.empower-module-ministry[data-theme="dark"] .btn[style*="background:var(--brand-blue)"] {
    background: linear-gradient(135deg, #38bdf8, #0284c7) !important;
    color: #fff !important;
}

.empower-app[data-theme="dark"] .btn[style*="background:#10b981"],
.empower-app[data-theme="dark"] .btn[style*="background: #10b981"] {
    background: linear-gradient(135deg, #34d399, #059669) !important;
    color: #fff !important;
}

.empower-app[data-theme="dark"] .btn[style*="background:#64748b"],
.empower-app[data-theme="dark"] .btn[style*="background: #64748b"] {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    color: #fff !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .mission-card .btn[style*="background:#fff7ed"],
.empower-app.empower-module-mission[data-theme="dark"] .mission-card .btn[style*="background: #fff7ed"],
.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="background:#fff7ed"],
.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="background: #fff7ed"] {
    background: rgba(251, 146, 60, 0.16) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.32) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="background: var(--brand-orange)"],
.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="background:var(--brand-orange)"] {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
    color: #fff !important;
}

.empower-app[data-theme="dark"] .btn[style*="background:#e74c3c"],
.empower-app[data-theme="dark"] .btn[style*="background: #e74c3c"] {
    background: linear-gradient(135deg, #f87171, #dc2626) !important;
    color: #fff !important;
}

.empower-app[data-theme="dark"] .btn[style*="color:#e74c3c"],
.empower-app[data-theme="dark"] .btn[style*="color: #e74c3c"] {
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

/* ── 各模組 _edit 編輯頁 (共用) ── */
.empower-app[data-theme="dark"] .edit-box {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

.empower-app[data-theme="dark"] .section-title,
.empower-app[data-theme="dark"] .card h3 {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .builder-area {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .field-item,
.empower-app[data-theme="dark"] .form-designer-field-item {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .field-item:hover,
.empower-app[data-theme="dark"] .form-designer-field-item:hover {
    border-color: var(--border-strong) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.empower-app[data-theme="dark"] .drag-handle {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .field-item:hover .drag-handle,
.empower-app[data-theme="dark"] .form-designer-field-item:hover .drag-handle {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .template-selector {
    background: rgba(99, 102, 241, 0.06) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .template-selector select,
.empower-app[data-theme="dark"] .form-designer-toolbar select {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .form-designer-toolbar__label {
    color: var(--module-accent2, var(--accent2)) !important;
}

.empower-app[data-theme="dark"] .form-designer-preview-banner {
    background: rgba(251, 191, 36, 0.12) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
    color: #fcd34d !important;
}

.empower-app[data-theme="dark"] .form-designer-empty {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .form-designer-field-content label {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .form-designer-field-content input,
.empower-app[data-theme="dark"] .form-designer-field-content select,
.empower-app[data-theme="dark"] .form-designer-field-content textarea,
.empower-app[data-theme="dark"] .form-designer-condition-row select,
.empower-app[data-theme="dark"] .form-designer-condition-row input {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .form-designer-field-content input:focus,
.empower-app[data-theme="dark"] .form-designer-field-content select:focus,
.empower-app[data-theme="dark"] .form-designer-field-content textarea:focus,
.empower-app[data-theme="dark"] .form-designer-condition-row select:focus,
.empower-app[data-theme="dark"] .form-designer-condition-row input:focus {
    background: var(--surface3) !important;
    border-color: var(--module-accent, var(--accent)) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.empower-app[data-theme="dark"] .form-designer-condition {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .form-designer-type-badge {
    color: var(--module-accent2, var(--accent2)) !important;
}

.empower-app[data-theme="dark"] .form-designer-field-item.scope-member {
    border-left-color: var(--module-accent, var(--accent)) !important;
}

.empower-app[data-theme="dark"] .btn-tour {
    background: rgba(251, 191, 36, 0.12) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
    color: #fcd34d !important;
}

.empower-app[data-theme="dark"] .btn-tour:hover {
    background: #f59e0b !important;
    color: #fff !important;
    border-color: #f59e0b !important;
}

.empower-app[data-theme="dark"] .driver-popover {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] input[type="file"] {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .btn-remove {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
}

.empower-app[data-theme="dark"] .btn-remove:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fecaca !important;
}

.empower-app[data-theme="dark"] .btn-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.empower-app[data-theme="dark"] .btn-danger:hover {
    background: rgba(239, 68, 68, 0.18) !important;
}

.empower-app[data-theme="dark"] .navbar-user-btn {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .file-hint {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .file-link {
    color: var(--module-accent, var(--accent)) !important;
}

.empower-app[data-theme="dark"] .editor-calendar-wrap {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .month-title {
    color: var(--text) !important;
    border-left-color: var(--module-accent, var(--accent)) !important;
}

.empower-app[data-theme="dark"] .weekday-header {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .day-cell {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .day-cell.has-task {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}

.empower-app[data-theme="dark"] .day-cell:hover:not(.empty) {
    border-color: var(--module-accent, var(--accent)) !important;
}

.empower-app[data-theme="dark"] .day-date {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .day-task {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .day-task.none {
    color: var(--muted) !important;
    opacity: 0.5;
}

.empower-app[data-theme="dark"] .edit-row input {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .btn-sec {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .btn-sec:hover {
    background: var(--surface3) !important;
}

.empower-app[data-theme="dark"] .theme-row {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .btn-main {
    background: linear-gradient(135deg, #f472b6, #db2777) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.25) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .btn-main {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.25) !important;
}

.empower-app.empower-module-ministry[data-theme="dark"] .btn-main {
    background: linear-gradient(135deg, #38bdf8, #0284c7) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25) !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .btn-main {
    background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.25) !important;
}

.empower-app.empower-module-activity[data-theme="dark"] .template-selector {
    background: rgba(236, 72, 153, 0.06) !important;
    border-color: rgba(244, 114, 182, 0.2) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .template-selector {
    background: rgba(74, 222, 128, 0.06) !important;
    border-color: rgba(74, 222, 128, 0.18) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .template-selector {
    background: rgba(251, 146, 60, 0.08) !important;
    border-color: rgba(251, 146, 60, 0.2) !important;
}

/* 短宣模組 — 梯次列表／管理後台深色可讀性（含行政人員檢視） */
.empower-app.empower-module-mission[data-theme="dark"] .header-section h1,
.empower-app.empower-module-mission[data-theme="dark"] .header-section h2 {
    color: var(--text) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .mission-title {
    color: var(--text) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] table th {
    color: var(--muted) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] table td,
.empower-app.empower-module-mission[data-theme="dark"] table strong {
    color: var(--text) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] table td span[style*="color:var(--text-muted)"],
.empower-app.empower-module-mission[data-theme="dark"] table td span[style*="color: var(--text-muted)"] {
    color: var(--muted) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .status-select {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .meta-info span[style*="color:#4338ca"],
.empower-app.empower-module-mission[data-theme="dark"] .meta-info span[style*="color: #4338ca"] {
    color: #a5b4fc !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .meta-info span[style*="color:#b91c1c"],
.empower-app.empower-module-mission[data-theme="dark"] .meta-info span[style*="color: #b91c1c"] {
    color: #fca5a5 !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .meta-info span[style*="color:#d97706"],
.empower-app.empower-module-mission[data-theme="dark"] .meta-info span[style*="color: #d97706"] {
    color: #fdba74 !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .meta-info span[style*="color:var(--text-main)"],
.empower-app.empower-module-mission[data-theme="dark"] .meta-info span[style*="color: var(--text-main)"] {
    color: var(--text) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .mission-title span[style*="color: #c2410c"],
.empower-app.empower-module-mission[data-theme="dark"] .mission-title span[style*="color:#c2410c"] {
    background: rgba(251, 146, 60, 0.15) !important;
    color: #fdba74 !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .mission-title span[style*="color: #856404"],
.empower-app.empower-module-mission[data-theme="dark"] .mission-title span[style*="color:#856404"] {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .admin-tab.active {
    color: var(--module-accent, #fdba74) !important;
    border-bottom-color: var(--module-accent, #fdba74) !important;
    background: rgba(251, 146, 60, 0.08) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .admin-tab[style*="color: #3b82f6"],
.empower-app.empower-module-mission[data-theme="dark"] .admin-tab[style*="color:#3b82f6"] {
    color: #93c5fd !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .admin-tab.active[style*="color: #3b82f6"],
.empower-app.empower-module-mission[data-theme="dark"] .admin-tab.active[style*="color:#3b82f6"] {
    color: #93c5fd !important;
    border-bottom-color: #93c5fd !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="color:#0284c7"],
.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="color: #0284c7"] {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #7dd3fc !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="color:var(--brand-orange)"],
.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="color: var(--brand-orange)"] {
    background: rgba(251, 146, 60, 0.12) !important;
    color: #fdba74 !important;
    border: 1px solid rgba(251, 146, 60, 0.35) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="color:#e74c3c"],
.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="color: #e74c3c"] {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .navbar-user a[style*="background-color: white"],
.empower-app.empower-module-mission[data-theme="dark"] .navbar-user a[style*="background-color:white"],
.empower-app.empower-module-mission[data-theme="dark"] .navbar-user a[style*="background: white"] {
    background: var(--surface2) !important;
    color: #fdba74 !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .empty-state h3,
.empower-app.empower-module-mission[data-theme="dark"] .create-box h3,
.empower-app.empower-module-mission[data-theme="dark"] .detail-modal-header h3,
.empower-app.empower-module-mission[data-theme="dark"] .modal h3 {
    color: var(--text) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .detail-modal-box {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .detail-modal-header {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] strong[style*="color: var(--primary-dark)"],
.empower-app.empower-module-mission[data-theme="dark"] strong[style*="color:var(--primary-dark)"],
.empower-app.empower-module-mission[data-theme="dark"] h3[style*="color:var(--primary-dark)"],
.empower-app.empower-module-mission[data-theme="dark"] h3[style*="color: var(--primary-dark)"] {
    color: var(--text) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] td[style*="color: var(--text-main)"],
.empower-app.empower-module-mission[data-theme="dark"] span[style*="color:var(--text-main)"],
.empower-app.empower-module-mission[data-theme="dark"] span[style*="color: var(--text-main)"] {
    color: var(--text) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="background: var(--primary-dark)"],
.empower-app.empower-module-mission[data-theme="dark"] .btn[style*="background:var(--primary-dark)"] {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    color: #fff !important;
}

.empower-app.empower-module-mission[data-theme="dark"] .btn-file {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-module-mission[data-theme="dark"] a[style*="color: var(--brand-orange)"] {
    color: #fdba74 !important;
}

.empower-app.empower-module-bible[data-theme="dark"] .header-section::after {
    background: linear-gradient(90deg, #60a5fa, #2563eb) !important;
}

.empower-app.empower-module-equip[data-theme="dark"] .navbar-user-btn:hover,
.empower-app.empower-module-ministry[data-theme="dark"] .navbar-user-btn:hover {
    background: var(--module-accent, var(--accent)) !important;
    color: #0f172a !important;
    border-color: transparent !important;
}

/* ── 登入 / 操作指南 / 隱私政策 (auth 靜態頁) ── */
.empower-app.empower-page-auth[data-theme="dark"] {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .login-box {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .login-box h2 {
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .login-box label,
.empower-app.empower-page-auth[data-theme="dark"] .remember-label {
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .login-box input,
.empower-app.empower-page-auth[data-theme="dark"] .rescue-box textarea {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .login-box input:focus,
.empower-app.empower-page-auth[data-theme="dark"] .rescue-box textarea:focus {
    border-color: #86efac !important;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .toggle-password {
    background: var(--surface2) !important;
    color: #86efac !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .login-box button[type="submit"],
.empower-app.empower-page-auth[data-theme="dark"] .login-box form button {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .login-box .error {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .flash-success {
    background: rgba(74, 222, 128, 0.1) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .rescue-box {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .rescue-box h3 {
    color: #fca5a5 !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .rescue-box p {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .rescue-box button {
    background: linear-gradient(135deg, #f87171, #dc2626) !important;
    color: #fff !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .helper-links a.forgot {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .helper-links a.register {
    color: #fdba74 !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .login-divider {
    border-top-color: var(--border) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .btn-google-login {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .btn-google-login:hover {
    background: var(--surface3) !important;
    border-color: var(--border-strong) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .login-footer-note,
.empower-app.empower-page-auth[data-theme="dark"] .login-footer-note a {
    color: var(--muted) !important;
}

/* 註冊新帳號 register.php */
.empower-app.empower-page-auth[data-theme="dark"] .register-box h2 {
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .block-label,
.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-section-title {
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .radio-group label,
.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-checkbox-label {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box input[readonly] {
    background: var(--surface3) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .dynamic-section,
.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-radio-panel {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-alert-info {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-alert-warn {
    background: rgba(251, 146, 60, 0.12) !important;
    color: #fdba74 !important;
    border-color: rgba(251, 146, 60, 0.28) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-step-msg {
    color: #86efac !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-step-desc,
.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-muted,
.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-google-hint {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-divider-row,
.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-divider-row span {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-divider-row hr {
    border-top-color: var(--border) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-hr {
    border-top-color: var(--border) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-cancel-link {
    color: var(--muted) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-cancel-link:hover {
    color: #86efac !important;
    border-bottom-color: #86efac !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .link {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .link:hover {
    color: #86efac !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-footer-note {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .reg-footer-note a {
    color: #93c5fd !important;
    border-bottom-color: rgba(147, 197, 253, 0.5) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .conflict-box {
    background: rgba(251, 146, 60, 0.1) !important;
    border-color: rgba(251, 146, 60, 0.28) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .conflict-box h3 {
    color: #fdba74 !important;
    border-bottom-color: rgba(251, 146, 60, 0.28) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .conflict-box p {
    color: #fcd34d !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .conflict-box strong {
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .btn-secondary {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .btn-secondary:hover {
    background: linear-gradient(135deg, #64748b, #475569) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .btn-warning {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
    color: #fff !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box .btn-success {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box button:not(.btn-secondary):not(.btn-warning):not(.btn-success) {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .register-box #baptism_details {
    border-top-color: var(--border) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .privacy-card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .page-title {
    color: var(--text) !important;
    border-bottom-color: #4ade80 !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .page-subtitle {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .policy-section p,
.empower-app.empower-page-auth[data-theme="dark"] .policy-section ul,
.empower-app.empower-page-auth[data-theme="dark"] .policy-section li {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .policy-section h3 {
    color: #fdba74 !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .policy-section h3::before {
    color: #86efac !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .highlight-box {
    background: rgba(74, 222, 128, 0.1) !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
    color: #86efac !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .step-box {
    background: var(--surface2) !important;
    border-left-color: var(--module-accent, #60a5fa) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .step-title {
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .step-content {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .highlight {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #93c5fd !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .back-btn {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .back-btn:hover {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    color: #fff !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .brand-title {
    color: var(--text) !important;
    border-left-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .empower-theme-toggle {
    background: rgba(30, 41, 59, 0.92) !important;
    border-color: var(--border) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.empower-app.empower-page-landing[data-theme="dark"] {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%) !important;
    color: var(--text) !important;
}

.empower-app.empower-page-landing[data-theme="dark"] .hero-container {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
}

.empower-app.empower-page-landing[data-theme="dark"] h1 {
    color: var(--text) !important;
}

.empower-app.empower-page-landing[data-theme="dark"] .hero-lead {
    color: var(--muted) !important;
}

.empower-app.empower-page-landing[data-theme="dark"] .footer-text {
    color: var(--muted) !important;
}

.empower-app.empower-module-admin[data-theme="dark"] .highlight {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

/* 全域權限動態管理中心 */
.empower-app.permission-matrix-page[data-theme="dark"] .matrix-form {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .module-row {
    border-bottom-color: var(--border) !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .module-name,
.empower-app.permission-matrix-page[data-theme="dark"] .module-name span {
    color: var(--text) !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-add-role {
    background: rgba(251, 191, 36, 0.12) !important;
    color: #fcd34d !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-add-role:hover {
    background: rgba(251, 191, 36, 0.22) !important;
    color: #fde68a !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-delete-role {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-delete-role:hover {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #fecaca !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-add-module {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-add-module:hover {
    background: rgba(96, 165, 250, 0.22) !important;
    color: #bfdbfe !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-remove-module {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-remove-module:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    color: #fff !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-save {
    background: linear-gradient(135deg, #4ade80, #22c55e) !important;
    color: #0f1419 !important;
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.25) !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .btn-save:hover {
    filter: brightness(1.05);
    color: #0f1419 !important;
}

.empower-app.permission-matrix-page[data-theme="dark"] .module-name span[style*="color:#2563eb"] {
    color: #93c5fd !important;
}

/* ── 帳號與權限審核 admin_users.php ── */
.empower-app.admin-users-page[data-theme="dark"] .header-section h1 {
    color: var(--text) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .header-section a[href*="admin_permission_matrix"],
.empower-app.admin-users-page[data-theme="dark"] .btn-matrix-link {
    background: linear-gradient(135deg, #334155, #1e293b) !important;
    color: #f1f5f9 !important;
    border: 1px solid var(--border-strong) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .dup-filter-label {
    background: rgba(251, 191, 36, 0.14) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    color: #fcd34d !important;
}

.empower-app.admin-users-page[data-theme="dark"] .page-btn-sync {
    background: rgba(74, 222, 128, 0.14) !important;
    border-color: rgba(74, 222, 128, 0.4) !important;
    color: #86efac !important;
}

.empower-app.admin-users-page[data-theme="dark"] .page-btn-sync:hover {
    background: rgba(74, 222, 128, 0.24) !important;
    color: #bbf7d0 !important;
}

.empower-app.admin-users-page[data-theme="dark"] .tools-bar,
.empower-app.admin-users-page[data-theme="dark"] .table-container {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

.empower-app.admin-users-page[data-theme="dark"] .search-box input {
    background: var(--surface2) !important;
    border-color: var(--border-strong) !important;
    color: var(--text) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .page-btn {
    background: var(--surface2) !important;
    border-color: var(--border-strong) !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

.empower-app.admin-users-page[data-theme="dark"] .page-btn:hover:not(.disabled) {
    background: var(--surface3) !important;
    border-color: var(--module-accent, #818cf8) !important;
    color: #fff !important;
}

.empower-app.admin-users-page[data-theme="dark"] .page-btn.disabled {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
    opacity: 0.55;
}

.empower-app.admin-users-page[data-theme="dark"] th {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.admin-users-page[data-theme="dark"] th a {
    color: var(--text) !important;
}

.empower-app.admin-users-page[data-theme="dark"] td {
    border-bottom-color: var(--border) !important;
}

.empower-app.admin-users-page[data-theme="dark"] tr:hover {
    background: var(--surface2) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .btn-edit {
    background: rgba(251, 191, 36, 0.14) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: #fcd34d !important;
}

.empower-app.admin-users-page[data-theme="dark"] .btn-edit:hover {
    background: rgba(251, 191, 36, 0.24) !important;
    color: #fde68a !important;
}

.empower-app.admin-users-page[data-theme="dark"] .btn-delete {
    background: rgba(248, 113, 113, 0.14) !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
    color: #fca5a5 !important;
}

.empower-app.admin-users-page[data-theme="dark"] .btn-delete:hover {
    background: rgba(248, 113, 113, 0.24) !important;
    color: #fecaca !important;
}

.empower-app.admin-users-page[data-theme="dark"] .btn-delete:disabled {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .btn-more {
    background: var(--surface2) !important;
    border-color: var(--border-strong) !important;
    color: var(--text) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .btn-more:hover {
    background: var(--surface3) !important;
    border-color: var(--module-accent, #818cf8) !important;
    color: #fff !important;
}

.empower-app.admin-users-page[data-theme="dark"] .dropdown-content {
    background: var(--surface) !important;
    border-color: var(--border-strong) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .drop-header {
    background: var(--surface2) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .drop-header span {
    color: var(--muted) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .drop-header strong {
    color: var(--text) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .dropdown-content button {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .dropdown-content button:hover {
    background: var(--surface2) !important;
    color: #86efac !important;
}

.empower-app.admin-users-page[data-theme="dark"] .dropdown-content button.btn-danger {
    color: #fca5a5 !important;
}

.empower-app.admin-users-page[data-theme="dark"] .dropdown-content button.btn-danger:hover {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #f87171 !important;
}

.empower-app.admin-users-page[data-theme="dark"] .page-info {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .bg-pending {
    background: rgba(251, 146, 60, 0.16) !important;
    color: #fdba74 !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .bg-approved {
    background: rgba(74, 222, 128, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .modal-btn {
    background: var(--brand-yellow) !important;
    color: #422006 !important;
}

.empower-app.admin-users-page[data-theme="dark"] .modal-btn:hover {
    background: #fde047 !important;
    color: #422006 !important;
}

.empower-app.admin-users-page[data-theme="dark"] span[style*="#e0e7ff"] {
    background: rgba(99, 102, 241, 0.22) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #a5b4fc !important;
}

.empower-app.admin-users-page[data-theme="dark"] td div[style*="color:#d97706"] {
    color: #fcd34d !important;
}

.empower-app.admin-users-page[data-theme="dark"] span[style*="color:#15803d"] {
    color: #86efac !important;
}

.empower-app.admin-users-page[data-theme="dark"] span[style*="color:#e74c3c"] {
    color: #fca5a5 !important;
}

.empower-app.admin-users-page[data-theme="dark"] span[style*="color:#64748b"],
.empower-app.admin-users-page[data-theme="dark"] td span[style*="color:#64748b"] {
    color: var(--muted) !important;
}

.empower-app.admin-users-page[data-theme="dark"] td div[style*="color:#94a3b8"] {
    color: var(--muted) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .modal .checkbox-grid {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .modal .checkbox-label {
    color: var(--text) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .modal .form-group > label {
    color: var(--muted) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .search-results-box {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .search-item {
    border-bottom-color: var(--border) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .search-item:hover {
    background: var(--surface3) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .item-name {
    color: var(--text) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .item-id {
    background: var(--surface3) !important;
    color: var(--muted) !important;
}

.empower-app.admin-users-page[data-theme="dark"] #edit_ragic_id {
    background-color: var(--surface3) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.admin-users-page[data-theme="dark"] .search-wrapper input {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* 操作指南頁 — 深色模式 */
.empower-app.empower-page-auth[data-theme="dark"] .guide-card,
.empower-app.empower-module-admin[data-theme="dark"] .guide-card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .step-box,
.empower-app.empower-module-admin[data-theme="dark"] .admin-step,
.empower-app.empower-module-admin[data-theme="dark"] .note-box,
.empower-app.empower-page-auth[data-theme="dark"] .toc {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .step-title,
.empower-app.empower-module-admin[data-theme="dark"] .admin-step h3,
.empower-app.empower-module-admin[data-theme="dark"] .category-heading,
.empower-app.empower-page-auth[data-theme="dark"] .page-title,
.empower-app.empower-module-admin[data-theme="dark"] .page-title,
.empower-app.empower-page-auth[data-theme="dark"] .toc h2 {
    color: var(--text) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .step-content,
.empower-app.empower-module-admin[data-theme="dark"] .admin-step ul,
.empower-app.empower-page-auth[data-theme="dark"] .page-subtitle,
.empower-app.empower-module-admin[data-theme="dark"] .page-subtitle {
    color: var(--muted) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .highlight,
.empower-app.empower-module-admin[data-theme="dark"] .highlight {
    background: rgba(96, 165, 250, 0.15) !important;
    color: var(--brand-blue) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .navbar,
.empower-app.empower-module-admin[data-theme="dark"] .navbar {
    background: var(--surface) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.empower-page-auth[data-theme="dark"] .brand-title,
.empower-app.empower-module-admin[data-theme="dark"] .brand-title {
    color: var(--text) !important;
}

.empower-app.empower-module-admin[data-theme="dark"] .back-btn {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

.empower-app.empower-module-admin[data-theme="dark"] .back-btn:hover {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    color: #fff !important;
}

/* 報到 QR Code 彈窗（dashboard / profile）— 深色模式 */
.empower-app[data-theme="dark"] .qr-modal-overlay {
    background-color: rgba(0, 0, 0, 0.72) !important;
}

.empower-app[data-theme="dark"] .qr-modal-box {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
}

.empower-app[data-theme="dark"] .qr-modal-box h3,
.empower-app[data-theme="dark"] .qr-modal-box h4 {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .qr-modal-close {
    color: var(--muted) !important;
}

.empower-app[data-theme="dark"] .qr-modal-close:hover {
    color: #fca5a5 !important;
}

.empower-app[data-theme="dark"] .qr-modal-box .qr-image-wrapper {
    background: #fff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
}

.empower-app[data-theme="dark"] .qr-modal-box .qr-image-wrapper img,
.empower-app[data-theme="dark"] #myQrImg {
    background: #fff !important;
}

.empower-app[data-theme="dark"] #myQrModal #qrSelector,
.empower-app[data-theme="dark"] #bibleQrModal #bibleQrLink,
.empower-app[data-theme="dark"] #addCardModal #newCardType,
.empower-app[data-theme="dark"] #addCardModal #newCardNumber {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .qr-modal-box .qr-tip-box {
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.32) !important;
    color: #6ee7b7 !important;
}

.empower-app[data-theme="dark"] #qrClickHint {
    color: var(--brand-blue) !important;
}

.empower-app[data-theme="dark"] .qr-modal-box.fullscreen-mode {
    background: #fff !important;
}

.empower-app[data-theme="dark"] .qr-modal-box.fullscreen-mode .qr-modal-close {
    color: #334155 !important;
}

.empower-app[data-theme="dark"] .qr-modal-box.fullscreen-mode .qr-modal-close:hover {
    color: #ef4444 !important;
}

.empower-app[data-theme="dark"] .qr-modal-box.fullscreen-mode .qr-image-wrapper {
    background: #fff !important;
    box-shadow: none !important;
}

.empower-app[data-theme="dark"] .btn-checkin-option {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .btn-checkin-option:hover {
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
}

/* 學生證 QR 彈窗 — 深色模式 */
.empower-app[data-theme="dark"] #studentCheckinQrModal .student-checkin-qr-frame {
    background: #fff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.empower-app[data-theme="dark"] #studentCheckinQrModal .student-checkin-qr-link {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] #studentCheckinQrModal .student-checkin-qr-btn-copy {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] #studentCheckinQrModal .student-checkin-qr-btn-copy:hover {
    background: var(--surface3) !important;
    border-color: var(--border-strong) !important;
}

.empower-app[data-theme="dark"] #studentCheckinQrModal .student-checkin-qr-btn-open {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.empower-app[data-theme="dark"] #studentCheckinQrModal .student-checkin-qr-btn-open:hover {
    filter: brightness(1.1);
}

/* 學生證 QR 掃描打卡頁 student_checkin.php */
.empower-app.student-checkin-page[data-theme="dark"] {
    background: var(--bg) !important;
    color: var(--text) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-student,
.empower-app.student-checkin-page[data-theme="dark"] .checkin-field > label {
    color: var(--text) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-meta {
    color: var(--muted) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-field input,
.empower-app.student-checkin-page[data-theme="dark"] .checkin-field select {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-control {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-control:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--module-accent, var(--accent)) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-field input:focus,
.empower-app.student-checkin-page[data-theme="dark"] .checkin-field select:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-track-row label {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-track-row label:has(input:checked) {
    border-color: var(--module-accent, var(--accent)) !important;
}

.empower-app.empower-module-worship.student-checkin-page[data-theme="dark"] .checkin-track-row label:has(input:checked) {
    background: rgba(56, 189, 248, 0.12) !important;
}

.empower-app.empower-module-joshua.student-checkin-page[data-theme="dark"] .checkin-track-row label:has(input:checked) {
    background: rgba(251, 146, 60, 0.12) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-alert.info {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-alert.warn {
    background: rgba(251, 146, 60, 0.12) !important;
    color: #fdba74 !important;
    border-color: rgba(251, 146, 60, 0.28) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-alert.success {
    background: rgba(52, 211, 153, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(52, 211, 153, 0.28) !important;
}

.empower-app.student-checkin-page[data-theme="dark"] .checkin-alert.error {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
}

/* 禮拜出席名單 admin_care.php */
.empower-app.admin-care-page[data-theme="dark"] {
    --brand-care-light: rgba(244, 114, 182, 0.12);
    --brand-care-border: rgba(244, 114, 182, 0.28);
    --brand-care-dark: #f9a8d4;
    --primary-dark: #f1f5f9;
    --bg-color: #0f1419;
    --border-color: rgba(255, 255, 255, 0.08);
    background-color: var(--bg) !important;
    color: var(--text) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .header-section {
    border-bottom-color: rgba(244, 114, 182, 0.35) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .header-section h1,
.empower-app.admin-care-page[data-theme="dark"] .search-section > div,
.empower-app.admin-care-page[data-theme="dark"] .bulk-row > span,
.empower-app.admin-care-page[data-theme="dark"] td strong {
    color: var(--text) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .search-section,
.empower-app.admin-care-page[data-theme="dark"] .tools-card,
.empower-app.admin-care-page[data-theme="dark"] .ai-report-box {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .ai-report-box {
    border-left-color: #ec4899 !important;
}

.empower-app.admin-care-page[data-theme="dark"] .ai-report-box h3 {
    color: #f9a8d4 !important;
}

.empower-app.admin-care-page[data-theme="dark"] .ai-report-content {
    color: var(--text) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .filter-row {
    border-bottom-color: var(--border) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .filter-group label,
.empower-app.admin-care-page[data-theme="dark"] .header-section form,
.empower-app.admin-care-page[data-theme="dark"] .header-section form span,
.empower-app.admin-care-page[data-theme="dark"] .header-section > div > div {
    color: var(--muted) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .search-section input,
.empower-app.admin-care-page[data-theme="dark"] .search-section select,
.empower-app.admin-care-page[data-theme="dark"] .filter-group select,
.empower-app.admin-care-page[data-theme="dark"] .bulk-row select,
.empower-app.admin-care-page[data-theme="dark"] .bulk-row input,
.empower-app.admin-care-page[data-theme="dark"] .header-section select,
.empower-app.admin-care-page[data-theme="dark"] .header-section input[type="number"] {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .toggle-exclude {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .toggle-exclude span {
    color: var(--text) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .table-container {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-care-page[data-theme="dark"] table th {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-care-page[data-theme="dark"] table td {
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.admin-care-page[data-theme="dark"] tr:hover,
.empower-app.admin-care-page[data-theme="dark"] tr:hover td {
    background: rgba(244, 114, 182, 0.08) !important;
}

.empower-app.admin-care-page[data-theme="dark"] tr.is-excluded,
.empower-app.admin-care-page[data-theme="dark"] tr.is-excluded td {
    background: var(--surface2) !important;
    opacity: 0.85 !important;
}

.empower-app.admin-care-page[data-theme="dark"] tr.is-excluded:hover,
.empower-app.admin-care-page[data-theme="dark"] tr.is-excluded:hover td {
    background: var(--surface3) !important;
    opacity: 1 !important;
}

.empower-app.admin-care-page[data-theme="dark"] .bg-zone {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #7dd3fc !important;
    border-color: rgba(56, 189, 248, 0.28) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .bg-group {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .bg-tag {
    background: rgba(244, 114, 182, 0.12) !important;
    color: #f9a8d4 !important;
    border-color: rgba(244, 114, 182, 0.28) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .bg-exclude {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .danger-text {
    color: #fda4af !important;
}

.empower-app.admin-care-page[data-theme="dark"] .btn-bulk,
.empower-app.admin-care-page[data-theme="dark"] .search-section .btn[style*="background: var(--primary-dark)"],
.empower-app.admin-care-page[data-theme="dark"] .search-section .btn[style*="background:var(--primary-dark)"] {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .btn-bulk:hover {
    background: linear-gradient(135deg, #64748b, #475569) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .search-section a.btn[style*="background: #f1f5f9"],
.empower-app.admin-care-page[data-theme="dark"] .search-section a.btn[style*="background:#f1f5f9"] {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .header-section span[style*="background: var(--brand-care-light)"],
.empower-app.admin-care-page[data-theme="dark"] .header-section span[style*="background:var(--brand-care-light)"],
.empower-app.admin-care-page[data-theme="dark"] td span[style*="background:var(--brand-care-light)"],
.empower-app.admin-care-page[data-theme="dark"] td span[style*="background: var(--brand-care-light)"] {
    background: rgba(244, 114, 182, 0.12) !important;
    color: #f9a8d4 !important;
    border-color: rgba(244, 114, 182, 0.28) !important;
}

.empower-app.admin-care-page[data-theme="dark"] td span[style*="background: #fef2f2"],
.empower-app.admin-care-page[data-theme="dark"] td span[style*="background:#fef2f2"] {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
}

.empower-app.admin-care-page[data-theme="dark"] td span[style*="background: #f0fdf4"],
.empower-app.admin-care-page[data-theme="dark"] td span[style*="background:#f0fdf4"] {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .btn-ai {
    background: linear-gradient(135deg, #f472b6, #db2777) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35) !important;
}

.empower-app.admin-care-page[data-theme="dark"] .btn-export {
    background: linear-gradient(135deg, #34d399, #059669) !important;
    color: #fff !important;
}

/* 歷任長執 Excel → 事奉經歷（Gemini） admin_leadership_serve_exp_gemini.php */
.empower-app.leadership-serve-exp-page[data-theme="dark"] {
    background-color: var(--bg) !important;
    color: var(--text) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .top {
    background: rgba(26, 35, 50, 0.92) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .top h1 {
    color: var(--text) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .top a {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .top a:hover {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .card h2 {
    color: var(--text) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .muted,
.empower-app.leadership-serve-exp-page[data-theme="dark"] .howto li {
    color: var(--muted) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .howto strong {
    color: var(--text) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] code {
    background: var(--surface2) !important;
    color: #7dd3fc !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px;
    padding: 1px 5px;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .msg.ok {
    background: rgba(74, 222, 128, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
    color: #86efac !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .msg.err {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] label {
    color: var(--text) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] input[type="file"] {
    color: var(--muted) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .sample-pre {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] table th {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] table td {
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] tr:hover td {
    background: var(--surface2) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .mono {
    color: var(--text) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .tag-ok {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .tag-warn {
    background: rgba(251, 191, 36, 0.12) !important;
    color: #fcd34d !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .tag-bad {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .tag[style*="background:#e2e8f0"],
.empower-app.leadership-serve-exp-page[data-theme="dark"] .tag[style*="background: #e2e8f0"] {
    background: var(--surface3) !important;
    color: var(--muted) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] td div[style*="color:#64748b"],
.empower-app.leadership-serve-exp-page[data-theme="dark"] td div[style*="color: #64748b"] {
    color: var(--muted) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .btn[style*="background:#e2e8f0"],
.empower-app.leadership-serve-exp-page[data-theme="dark"] .btn[style*="background: #e2e8f0"] {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0284c7) !important;
    color: #fff !important;
}

.empower-app.leadership-serve-exp-page[data-theme="dark"] .btn-go {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #fff !important;
}

/* 獻心卡批次匯入 admin_dedication_import.php */
.empower-app.dedication-import-page[data-theme="dark"] {
    --bg: #0f1419;
    --card: var(--surface);
    --line: var(--border);
    --text: #f1f5f9;
    --muted: #94a3b8;
    background-color: var(--bg) !important;
    color: var(--text) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .top {
    background: rgba(26, 35, 50, 0.92) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .title {
    color: var(--text) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .back {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .back:hover {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .card h2 {
    color: var(--text) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .muted,
.empower-app.dedication-import-page[data-theme="dark"] label {
    color: var(--muted) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] input[type="text"],
.empower-app.dedication-import-page[data-theme="dark"] input[type="file"],
.empower-app.dedication-import-page[data-theme="dark"] select {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] input[type="file"]::file-selector-button {
    background: var(--surface3) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] table th {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] table td {
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] tr:hover td {
    background: var(--surface2) !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .msg.ok {
    background: rgba(74, 222, 128, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
    color: #86efac !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .msg.err {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .btn {
    background: linear-gradient(135deg, #38bdf8, #0284c7) !important;
    color: #fff !important;
}

.empower-app.dedication-import-page[data-theme="dark"] .btn[style*="background:#64748b"],
.empower-app.dedication-import-page[data-theme="dark"] .btn[style*="background: #64748b"] {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    color: #fff !important;
}

/* 屬靈履歷與勳章櫃 spiritual_resume.php */
.empower-app.spiritual-resume-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    background-color: var(--bg) !important;
    color: var(--text) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .navbar-brand {
    color: var(--text) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .navbar-user a {
    background: var(--surface2) !important;
    color: #fdba74 !important;
    border-color: rgba(249, 115, 22, 0.35) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .navbar-user a:hover {
    background: #f97316 !important;
    color: #fff !important;
    border-color: transparent !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .timeline-header,
.empower-app.spiritual-resume-page[data-theme="dark"] .badge-header {
    color: var(--text) !important;
    border-bottom-color: #eab308 !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .timeline {
    border-left-color: var(--border-strong, rgba(255, 255, 255, 0.18)) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .year-badge {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .timeline-item {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .timeline-item::before {
    background: var(--surface3) !important;
    border-color: var(--surface) !important;
    box-shadow: 0 0 0 2px var(--border-strong, rgba(255, 255, 255, 0.18)) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .timeline-item.highlight {
    box-shadow: 0 0 0 3px #eab308, 0 10px 30px rgba(234, 179, 8, 0.25) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .item-title {
    color: var(--text) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .role-staff {
    background: rgba(251, 191, 36, 0.12) !important;
    color: #fcd34d !important;
    border-color: rgba(251, 191, 36, 0.28) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .role-member {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .text-green { color: #86efac !important; }
.empower-app.spiritual-resume-page[data-theme="dark"] .text-orange { color: #fdba74 !important; }
.empower-app.spiritual-resume-page[data-theme="dark"] .text-ministry { color: #7dd3fc !important; }
.empower-app.spiritual-resume-page[data-theme="dark"] .text-blue { color: #93c5fd !important; }

.empower-app.spiritual-resume-page[data-theme="dark"] .badge-section {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .badge-desc,
.empower-app.spiritual-resume-page[data-theme="dark"] .category-title {
    color: var(--muted) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .badge-item:hover {
    background: var(--surface2) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .badge-icon-wrapper {
    background: var(--surface2) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .theme-gold .badge-icon-wrapper {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(234, 179, 8, 0.12)) !important;
    border-color: #fde047 !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .theme-gold .badge-icon-wrapper::after {
    background: var(--surface) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .badge-year-tag {
    background: #334155 !important;
    color: #f1f5f9 !important;
    border-color: var(--surface) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .badge-title {
    color: var(--text) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .badge-item.badge-zoomed,
.empower-app.spiritual-resume-page[data-theme="dark"] .mobile-badge-zoomed {
    background: rgba(26, 35, 50, 0.98) !important;
    outline-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .spiritual-resume-empty {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .timeline-section > div[style*="background: white"],
.empower-app.spiritual-resume-page[data-theme="dark"] .timeline-section > div[style*="background:white"] {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.spiritual-resume-page[data-theme="dark"] .badge-section > div[style*="color: #cbd5e1"],
.empower-app.spiritual-resume-page[data-theme="dark"] .badge-section > div[style*="color:#cbd5e1"] {
    color: var(--muted) !important;
}

/* ── 系統安全追蹤中心 (view_logs.php) ── */
.empower-app.security-logs-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-dark: #f1f5f9;
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92) !important;
    border-bottom-color: var(--border) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .navbar-brand {
    color: var(--text) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .navbar-user a {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .navbar-user a:hover {
    background: var(--surface3) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .header-section h1 {
    color: var(--text) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .filter-bar,
.empower-app.security-logs-page[data-theme="dark"] .table-container {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .filter-bar select {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .module-badge {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .bg-update {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .bg-delete {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .bg-create {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
}

.empower-app.security-logs-page[data-theme="dark"] .bg-default {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

/* ── 和會手冊會籍同步 (admin_membership_sync.php) ── */
.empower-app.membership-sync-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-main: #f1f5f9;
    --border-color: rgba(255, 255, 255, 0.08);
    background: var(--bg-color) !important;
    color: var(--text) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .container {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
    border-top-color: #3b82f6 !important;
}

.empower-app.membership-sync-page[data-theme="dark"] h2 {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .instruction {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #93c5fd !important;
}

.empower-app.membership-sync-page[data-theme="dark"] textarea {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .btn-back {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .btn-back:hover {
    background: var(--surface3) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .result-card {
    border-color: var(--border) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .header-active {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .header-inactive {
    background: rgba(234, 179, 8, 0.12) !important;
    color: #fde047 !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .header-create {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
}

.empower-app.membership-sync-page[data-theme="dark"] table th {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] table td {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .btn-single {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .btn-single:hover:not(:disabled) {
    background: var(--surface3) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] .btn-single:disabled {
    background: var(--surface) !important;
    color: var(--muted) !important;
}

.empower-app.membership-sync-page[data-theme="dark"] a[style*="color: #64748b"],
.empower-app.membership-sync-page[data-theme="dark"] a[style*="color:#64748b"] {
    color: var(--muted) !important;
}

/* ── 通用會友資料校準中心 (admin_profile_updates.php) ── */
.empower-app.profile-updates-page[data-theme="dark"] {
    --bg-color: var(--bg);
    --text-main: var(--text);
    --text-muted: var(--muted);
    --border-color: var(--border);
    --primary-dark: var(--text);
    background: var(--bg) !important;
    color: var(--text) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] .brand-title {
    color: var(--text) !important;
    border-left-color: var(--border) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] .header-section {
    border-bottom-color: #3b82f6 !important;
}

.empower-app.profile-updates-page[data-theme="dark"] .header-section h1 {
    color: var(--text) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] th {
    background: var(--surface2) !important;
    color: var(--text) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] tr:hover {
    background: var(--surface2) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] td span[style*="color:#64748b"],
.empower-app.profile-updates-page[data-theme="dark"] td span[style*="color: #64748b"],
.empower-app.profile-updates-page[data-theme="dark"] td span[style*="color:#94a3b8"],
.empower-app.profile-updates-page[data-theme="dark"] td span[style*="color: #94a3b8"] {
    color: var(--muted) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] td div[style*="background:#f8fafc"],
.empower-app.profile-updates-page[data-theme="dark"] td div[style*="background: #f8fafc"] {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] .badge[style*="background:#e2e8f0"],
.empower-app.profile-updates-page[data-theme="dark"] .badge[style*="background: #e2e8f0"] {
    background: var(--surface3, #2d3a52) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] .btn-approve {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #fff !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] .btn-approve:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
    color: #fff !important;
    filter: none !important;
}

.empower-app.profile-updates-page[data-theme="dark"] .btn-reject {
    background: #dc2626 !important;
    color: #fff !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
}

.empower-app.profile-updates-page[data-theme="dark"] .btn-reject:hover {
    background: #b91c1c !important;
    color: #fff !important;
}

/* ── 正式環境部署 (admin_deploy.php) ── */
.empower-app.admin-deploy-page[data-theme="dark"] {
    background: #0f1419 !important;
    color: var(--text) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .top {
    background: rgba(26, 35, 50, 0.92) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .top h1,
.empower-app.admin-deploy-page[data-theme="dark"] .top a {
    color: var(--text) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .top a {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .muted,
.empower-app.admin-deploy-page[data-theme="dark"] label {
    color: var(--muted) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .stat {
    background: var(--surface2) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .stat strong {
    color: var(--text) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] textarea,
.empower-app.admin-deploy-page[data-theme="dark"] input[type="text"] {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .btn-secondary {
    background: var(--surface2) !important;
    color: var(--text) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .msg.ok {
    background: rgba(74, 222, 128, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
    color: #86efac !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .msg.err {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .tag-ok {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .tag-warn {
    background: rgba(234, 179, 8, 0.12) !important;
    color: #fde047 !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .tag-bad {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] table th {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] table td {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .filter-btn {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .filter-btn.active {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .file-row:hover {
    background: var(--surface2) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .file-row.open {
    background: rgba(59, 130, 246, 0.1) !important;
}

.empower-app.admin-deploy-page[data-theme="dark"] .history-item {
    border-left-color: #818cf8 !important;
}

/* ── 行事曆管理總部 (admin_calendar_center.php) ── */
.empower-app.calendar-center-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --primary-dark: #f1f5f9;
    --border-color: rgba(255, 255, 255, 0.08);
    background: var(--bg-color) !important;
    color: var(--text) !important;
}

.empower-app.calendar-center-page[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.calendar-center-page[data-theme="dark"] .navbar span,
.empower-app.calendar-center-page[data-theme="dark"] .header h1,
.empower-app.calendar-center-page[data-theme="dark"] .card-content h3 {
    color: var(--text) !important;
}

.empower-app.calendar-center-page[data-theme="dark"] .navbar a {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.calendar-center-page[data-theme="dark"] .navbar a:hover {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.empower-app.calendar-center-page[data-theme="dark"] .header p,
.empower-app.calendar-center-page[data-theme="dark"] .card-content p {
    color: var(--muted) !important;
}

.empower-app.calendar-center-page[data-theme="dark"] .admin-card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.calendar-center-page[data-theme="dark"] .admin-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
}

/* ── PPTX 海報匯入梯次 (admin_batch_import_pptx.php) ── */
.empower-app.batch-import-pptx-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --primary-dark: #f1f5f9;
    --text-main: #f1f5f9;
    --border: rgba(255, 255, 255, 0.08);
    --muted: #94a3b8;
    background: var(--bg-color) !important;
    color: var(--text) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .navbar strong,
.empower-app.batch-import-pptx-page[data-theme="dark"] h1,
.empower-app.batch-import-pptx-page[data-theme="dark"] label,
.empower-app.batch-import-pptx-page[data-theme="dark"] .preview-head strong {
    color: var(--text) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .navbar a {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .navbar a:hover {
    background: var(--module-accent, #6366f1) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .sub,
.empower-app.batch-import-pptx-page[data-theme="dark"] .hint,
.empower-app.batch-import-pptx-page[data-theme="dark"] .field-grid label {
    color: var(--muted) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .card,
.empower-app.batch-import-pptx-page[data-theme="dark"] .preview-item {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .status-note {
    background: var(--surface2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .status-note strong {
    color: #fbbf24 !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .badge {
    background: rgba(124, 58, 237, 0.25) !important;
    color: #ddd6fe !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .flash {
    background: rgba(251, 191, 36, 0.12) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
    color: #fde68a !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .hint-warn {
    background: rgba(251, 191, 36, 0.1) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
    color: #fde68a !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .pptx-drop-zone {
    background: var(--surface2) !important;
    border-color: rgba(124, 58, 237, 0.4) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .pptx-drop-zone.is-dragover {
    background: rgba(124, 58, 237, 0.15) !important;
    border-color: #a78bfa !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .pptx-drop-zone.has-file {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.45) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .pptx-drop-zone__title {
    color: #c4b5fd !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .pptx-drop-zone__file {
    color: #86efac !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .btn-pick {
    background: rgba(124, 58, 237, 0.2) !important;
    color: #ddd6fe !important;
    border-color: rgba(167, 139, 250, 0.45) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .btn-pick:hover {
    background: rgba(124, 58, 237, 0.35) !important;
    color: #fff !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .btn-secondary {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .btn-secondary:hover {
    background: var(--surface) !important;
    color: var(--text) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] .field-date-combo .date-picker-label {
    color: var(--muted) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] input[type=text],
.empower-app.batch-import-pptx-page[data-theme="dark"] input[type=file],
.empower-app.batch-import-pptx-page[data-theme="dark"] select,
.empower-app.batch-import-pptx-page[data-theme="dark"] textarea {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.batch-import-pptx-page[data-theme="dark"] input::placeholder,
.empower-app.batch-import-pptx-page[data-theme="dark"] textarea::placeholder {
    color: #64748b !important;
}

/* ── 會友卡片綁定 (admin_bind_card.php) ── */
.empower-app.bind-card-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-dark: #f1f5f9;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --brand-main: #34d399;
    background-color: var(--bg-color) !important;
    color: var(--text-dark) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .navbar {
    background-color: rgba(15, 20, 25, 0.95) !important;
    border-bottom-color: var(--border-subtle) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .navbar-brand,
.empower-app.bind-card-page[data-theme="dark"] .card h2,
.empower-app.bind-card-page[data-theme="dark"] .item-name,
.empower-app.bind-card-page[data-theme="dark"] strong {
    color: var(--text-dark) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .navbar-user a {
    color: var(--text-muted) !important;
    border-color: var(--border-subtle) !important;
    background: transparent !important;
}

.empower-app.bind-card-page[data-theme="dark"] .navbar-user a:hover {
    background-color: var(--surface2, #1e293b) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-subtle) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .card {
    background: var(--surface, #1a2332) !important;
    border-color: var(--border-subtle) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .card p,
.empower-app.bind-card-page[data-theme="dark"] .form-group label,
.empower-app.bind-card-page[data-theme="dark"] .bind-card-scan-box > p {
    color: var(--text-muted) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .form-group input,
.empower-app.bind-card-page[data-theme="dark"] .form-group select,
.empower-app.bind-card-page[data-theme="dark"] #card_num {
    background: var(--surface2, #243044) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-dark) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .form-group input:focus,
.empower-app.bind-card-page[data-theme="dark"] .form-group select:focus,
.empower-app.bind-card-page[data-theme="dark"] #card_num:focus {
    background: var(--surface3, #2d3a52) !important;
    border-color: var(--brand-main, #10b981) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .form-group input::placeholder,
.empower-app.bind-card-page[data-theme="dark"] #card_num::placeholder {
    color: #64748b !important;
}

.empower-app.bind-card-page[data-theme="dark"] .search-results-box {
    background: var(--surface2, #243044) !important;
    border-color: var(--border-subtle) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .search-item {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .search-item:hover {
    background: rgba(16, 185, 129, 0.12) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .item-id {
    color: var(--text-muted) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .bind-selected-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.45) !important;
    color: #6ee7b7 !important;
}

.empower-app.bind-card-page[data-theme="dark"] .bind-card-scan-box {
    background: var(--surface2, #243044) !important;
    border-color: var(--border-subtle) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .btn-scan {
    background: var(--surface2, #243044) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-subtle) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .btn-scan:hover {
    background: var(--surface3, #2d3a52) !important;
    border-color: #64748b !important;
    color: var(--brand-main, #34d399) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .btn-scan-reader {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #6ee7b7 !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .btn-scan-nfc {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #93c5fd !important;
    border-color: rgba(147, 197, 253, 0.35) !important;
}

.empower-app.bind-card-page[data-theme="dark"] #reader {
    border-color: var(--border-subtle) !important;
}

.empower-app.bind-card-page[data-theme="dark"] #scan-status {
    color: var(--text-dark) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .btn-submit {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
}

.empower-app.bind-card-page[data-theme="dark"] .btn-submit:hover {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    color: #fff !important;
    filter: none !important;
    box-shadow: 0 8px 28px rgba(52, 211, 153, 0.4) !important;
}

/* ── 智慧型報到掃描器 (attend_scan.php) ── */
.empower-app.attend-scan-page[data-theme="dark"] {
    --scan-brand: #34d399;
    --scan-bg: #0f1419;
    --scan-surface: #1a2332;
    --scan-text: #f1f5f9;
    --scan-muted: #94a3b8;
    --scan-border: rgba(255, 255, 255, 0.12);
    --scan-border-subtle: rgba(255, 255, 255, 0.08);
    background: var(--scan-bg) !important;
    color: var(--scan-text) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .scan-navbar {
    background-color: rgba(15, 20, 25, 0.95) !important;
    border-bottom-color: var(--scan-border-subtle) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .scan-navbar-brand {
    color: var(--scan-brand) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .scanner-card,
.empower-app.attend-scan-page[data-theme="dark"] .history-list li,
.empower-app.attend-scan-page[data-theme="dark"] .choice-box {
    background: var(--scan-surface) !important;
    border-color: var(--scan-border-subtle) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .scan-permission-title,
.empower-app.attend-scan-page[data-theme="dark"] .choice-box h2,
.empower-app.attend-scan-page[data-theme="dark"] .history-list li strong {
    color: var(--scan-text) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .scan-permission-desc,
.empower-app.attend-scan-page[data-theme="dark"] .scan-history-head,
.empower-app.attend-scan-page[data-theme="dark"] .history-time,
.empower-app.attend-scan-page[data-theme="dark"] .choice-box p,
.empower-app.attend-scan-page[data-theme="dark"] .choice-cancel-btn {
    color: var(--scan-muted) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .choice-member-name {
    color: var(--scan-brand) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .scan-start-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .status-ready {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #94a3b8 !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .status-processing {
    background: rgba(30, 58, 138, 0.35) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .status-success {
    background: rgba(6, 78, 59, 0.45) !important;
    color: #86efac !important;
    border-color: rgba(52, 211, 153, 0.45) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .status-error {
    background: rgba(127, 29, 29, 0.4) !important;
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .choice-btn {
    background: rgba(6, 78, 59, 0.35) !important;
    border-color: var(--scan-brand) !important;
    color: #d1fae5 !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .choice-btn:hover {
    background: var(--scan-brand) !important;
    color: #0f1419 !important;
}

.empower-app.attend-scan-page[data-theme="dark"] .empower-theme-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

.empower-app.attend-scan-page[data-theme="dark"] #reader video {
    filter: brightness(0.92);
}

/* ── 教會行事曆 AI 解析 (admin_church_calendar.php) ── */
.empower-app.church-calendar-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --primary-dark: #f1f5f9;
    --border-color: rgba(255, 255, 255, 0.08);
    background: var(--bg-color) !important;
    color: var(--text) !important;
}

.empower-app.church-calendar-page[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.church-calendar-page[data-theme="dark"] .navbar-brand,
.empower-app.church-calendar-page[data-theme="dark"] .header h1,
.empower-app.church-calendar-page[data-theme="dark"] .card h3 {
    color: var(--text) !important;
}

.empower-app.church-calendar-page[data-theme="dark"] .header p,
.empower-app.church-calendar-page[data-theme="dark"] .card p {
    color: var(--muted) !important;
}

.empower-app.church-calendar-page[data-theme="dark"] .navbar a {
    background: var(--surface2) !important;
    color: #93c5fd !important;
    border-color: var(--border) !important;
}

.empower-app.church-calendar-page[data-theme="dark"] .card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.church-calendar-page[data-theme="dark"] textarea,
.empower-app.church-calendar-page[data-theme="dark"] td input[type="text"],
.empower-app.church-calendar-page[data-theme="dark"] td input[type="date"],
.empower-app.church-calendar-page[data-theme="dark"] td input[type="time"],
.empower-app.church-calendar-page[data-theme="dark"] td select {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.church-calendar-page[data-theme="dark"] table th {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.church-calendar-page[data-theme="dark"] table td {
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.church-calendar-page[data-theme="dark"] .btn-remove {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

.empower-app.church-calendar-page[data-theme="dark"] #loading {
    color: #93c5fd !important;
}

/* ── 手動維護教會行事曆 (admin_church_events.php) ── */
.empower-app.church-events-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --primary-dark: #f1f5f9;
    --border-color: rgba(255, 255, 255, 0.08);
    background: var(--bg-color) !important;
    color: var(--text) !important;
}

.empower-app.church-events-page[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.church-events-page[data-theme="dark"] .navbar span,
.empower-app.church-events-page[data-theme="dark"] .header h1 {
    color: var(--text) !important;
}

.empower-app.church-events-page[data-theme="dark"] .header p {
    color: var(--muted) !important;
}

.empower-app.church-events-page[data-theme="dark"] .navbar a {
    color: #93c5fd !important;
}

.empower-app.church-events-page[data-theme="dark"] .calendar-wrapper {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.church-events-page[data-theme="dark"] .fc {
    --fc-border-color: var(--border);
    --fc-page-bg-color: var(--surface);
    --fc-neutral-bg-color: var(--surface2);
    --fc-neutral-text-color: var(--muted);
    --fc-list-event-hover-bg-color: var(--surface2);
    --fc-today-bg-color: rgba(59, 130, 246, 0.12);
}

.empower-app.church-events-page[data-theme="dark"] .fc .fc-col-header-cell-cushion,
.empower-app.church-events-page[data-theme="dark"] .fc .fc-daygrid-day-number,
.empower-app.church-events-page[data-theme="dark"] .fc .fc-toolbar-title {
    color: var(--text) !important;
}

.empower-app.church-events-page[data-theme="dark"] .fc .fc-button {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.church-events-page[data-theme="dark"] .fc .fc-button:hover,
.empower-app.church-events-page[data-theme="dark"] .fc .fc-button-active {
    background: var(--surface3) !important;
}

.empower-app.church-events-page[data-theme="dark"] .fc-daygrid-day:hover {
    background-color: var(--surface2) !important;
}

.empower-app.church-events-page[data-theme="dark"] .modal-content {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45) !important;
}

.empower-app.church-events-page[data-theme="dark"] .modal h3 {
    color: var(--text) !important;
    border-bottom-color: #3b82f6 !important;
}

.empower-app.church-events-page[data-theme="dark"] .modal label {
    color: var(--muted) !important;
}

.empower-app.church-events-page[data-theme="dark"] .modal input,
.empower-app.church-events-page[data-theme="dark"] .modal select {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.church-events-page[data-theme="dark"] .close-modal {
    color: var(--muted) !important;
}

.empower-app.church-events-page[data-theme="dark"] .btn-del {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

/* ── AI 服事行事曆解析 (calendar_main.php) ── */
.empower-app.calendar-main-page[data-theme="dark"] {
    --color-text-main: #f1f5f9;
    --color-text-sub: #94a3b8;
    background-color: #0f1419 !important;
    color: var(--text) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .navbar-brand,
.empower-app.calendar-main-page[data-theme="dark"] .header-title {
    color: var(--text) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .navbar a {
    background: var(--surface2) !important;
    color: #c4b5fd !important;
    border-color: var(--border) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .upload-section,
.empower-app.calendar-main-page[data-theme="dark"] .calibration-card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .form-group label,
.empower-app.calendar-main-page[data-theme="dark"] .record-role {
    color: var(--text) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .record-date {
    color: var(--muted) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .form-group input[type="file"],
.empower-app.calendar-main-page[data-theme="dark"] .form-group input[type="text"],
.empower-app.calendar-main-page[data-theme="dark"] .mapping-action select,
.empower-app.calendar-main-page[data-theme="dark"] .batch-time-section input[type="time"] {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .batch-time-section {
    background: var(--surface2) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .ts-control {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .ts-wrapper .ts-control input,
.empower-app.calendar-main-page[data-theme="dark"] .ts-wrapper .ts-control .item {
    color: var(--text) !important;
    caret-color: var(--text) !important;
    background: transparent !important;
    opacity: 1 !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .ts-wrapper.dropdown-active .ts-control input,
.empower-app.calendar-main-page[data-theme="dark"] .ts-wrapper.focus .ts-control input {
    opacity: 1 !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .ts-dropdown {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .ts-dropdown .option {
    color: var(--text) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] .ts-dropdown .active {
    background: var(--surface2) !important;
}

.empower-app.calendar-main-page[data-theme="dark"] #loading-text {
    color: #93c5fd !important;
}

/* ── 全域回饋數據儀表板 (feedback_dashboard.php) ── */
.empower-app.feedback-dashboard-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --brand-dark: #93c5fd;
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .navbar-brand {
    color: var(--text) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .navbar-user a {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .navbar-user a:hover {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .controls-card,
.empower-app.feedback-dashboard-page[data-theme="dark"] .stat-box,
.empower-app.feedback-dashboard-page[data-theme="dark"] .chart-card,
.empower-app.feedback-dashboard-page[data-theme="dark"] .text-card,
.empower-app.feedback-dashboard-page[data-theme="dark"] .empty-state {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .control-group label,
.empower-app.feedback-dashboard-page[data-theme="dark"] .stat-box h4 {
    color: var(--muted) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .control-group select {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .stat-box .num {
    color: #93c5fd !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .chart-card h3 {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .text-card h3 {
    color: #f9a8d4 !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .comment-item {
    background: var(--surface2) !important;
    border-left-color: #f472b6 !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .comment-text {
    color: var(--text) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .comment-meta {
    color: var(--muted) !important;
}

.empower-app.feedback-dashboard-page[data-theme="dark"] .empty-state {
    border-style: dashed !important;
}

/* ── 會友資料快速編修 (admin_member_profile_editor.php) ── */
.empower-app.member-profile-editor-page[data-theme="dark"] {
    --bg: #0f1419;
    --card: var(--surface);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --line: var(--border);
    background: var(--bg) !important;
    color: var(--text) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .topbar {
    background: rgba(26, 35, 50, 0.92) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .title {
    color: var(--text) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .back-btn {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .back-btn:hover {
    background: var(--surface3) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .card h2 {
    color: var(--text) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .muted,
.empower-app.member-profile-editor-page[data-theme="dark"] label {
    color: var(--muted) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .search-row input,
.empower-app.member-profile-editor-page[data-theme="dark"] .adv-grid select,
.empower-app.member-profile-editor-page[data-theme="dark"] .adv-grid input,
.empower-app.member-profile-editor-page[data-theme="dark"] .keyword-item input,
.empower-app.member-profile-editor-page[data-theme="dark"] input[type="text"],
.empower-app.member-profile-editor-page[data-theme="dark"] input[type="date"],
.empower-app.member-profile-editor-page[data-theme="dark"] textarea {
    background: var(--surface2) !important;
    border-color: var(--border-input, var(--border)) !important;
    color: var(--text) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] input[readonly],
.empower-app.member-profile-editor-page[data-theme="dark"] textarea[readonly] {
    background: var(--surface3) !important;
    color: var(--muted) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .btn-mini {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .btn-mini-add {
    color: #7dd3fc !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .btn-mini-remove {
    color: #fca5a5 !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .btn-subtle {
    background: var(--surface2) !important;
    color: var(--text) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .msg.success {
    background: rgba(74, 222, 128, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
    color: #86efac !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .msg.error {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .msg.info {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
    color: #93c5fd !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] table th {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] table td {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] tr:hover td {
    background: rgba(56, 189, 248, 0.08) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .match-col {
    color: var(--muted) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .pick-btn {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: #7dd3fc !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .pick-btn:hover {
    background: var(--surface3) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .quick-box {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .quick-title,
.empower-app.member-profile-editor-page[data-theme="dark"] .quick-col h4 {
    color: var(--text) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .quick-col {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.empower-app.member-profile-editor-page[data-theme="dark"] .quick-list label {
    color: var(--text) !important;
}

/* ── 總控台與 QR Code 中心 (global_registrations.php) ── */
.empower-app.global-registrations-page[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary-dark: #f1f5f9;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-input: rgba(255, 255, 255, 0.12);
    background: var(--bg-color) !important;
    color: var(--text-main) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92) !important;
    border-color: var(--border) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .navbar-brand {
    color: var(--text) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .navbar-user a {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .navbar-user a:hover {
    background: var(--module-accent, var(--accent)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .alert-card,
.empower-app.global-registrations-page[data-theme="dark"] .card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .alert-card h3,
.empower-app.global-registrations-page[data-theme="dark"] .card h3,
.empower-app.global-registrations-page[data-theme="dark"] #qrTitle {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .alert-card p,
.empower-app.global-registrations-page[data-theme="dark"] .container > div[style*="color: var(--text-muted)"] {
    color: var(--muted) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] table th {
    background: var(--surface2) !important;
    color: var(--muted) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] table td {
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] tr:hover td {
    background: rgba(56, 189, 248, 0.08) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] td strong[style*="color: var(--primary-dark)"],
.empower-app.global-registrations-page[data-theme="dark"] td strong[style*="color:var(--primary-dark)"] {
    color: var(--text) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] td strong[style*="color: #0284c7"],
.empower-app.global-registrations-page[data-theme="dark"] td strong[style*="color:#0284c7"] {
    color: #7dd3fc !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .bg-equip {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.28) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .bg-mission {
    background: rgba(251, 146, 60, 0.12) !important;
    color: #fdba74 !important;
    border-color: rgba(251, 146, 60, 0.28) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .bg-ministry {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.28) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .bg-activity {
    background: rgba(244, 114, 182, 0.12) !important;
    color: #f9a8d4 !important;
    border-color: rgba(244, 114, 182, 0.28) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .btn-outline {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .btn-outline:hover {
    background: var(--surface3) !important;
    color: var(--text) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .card > div[style*="border: 1px dashed"],
.empower-app.global-registrations-page[data-theme="dark"] .card > div[style*="border:1px dashed"] {
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .modal-content {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .close-modal {
    color: var(--muted) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .close-modal:hover {
    color: var(--text) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .qr-image {
    background: #fff !important;
    border-color: var(--border) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .modal-content > div[style*="background: #f8fafc"],
.empower-app.global-registrations-page[data-theme="dark"] .modal-content > div[style*="background:#f8fafc"] {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .modal-content strong[style*="color: var(--primary-dark)"],
.empower-app.global-registrations-page[data-theme="dark"] .modal-content strong[style*="color:var(--primary-dark)"] {
    color: var(--text) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] #qrLinkText {
    color: #93c5fd !important;
}

/* 表格內按鈕：深色模式下 --brand-green / --brand-blue 變淺，需固定深底高對比 */
.empower-app.global-registrations-page[data-theme="dark"] .btn-attend {
    background: #059669 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .btn-attend:hover {
    background: #047857 !important;
    color: #fff !important;
    filter: none !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.45) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .btn-qr {
    background: #2563eb !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .btn-qr:hover {
    background: #1d4ed8 !important;
    color: #fff !important;
    filter: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45) !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .btn-qr[style*="background:#db2777"],
.empower-app.global-registrations-page[data-theme="dark"] .btn-qr[style*="background: #db2777"] {
    background: #be185d !important;
    color: #fff !important;
}

.empower-app.global-registrations-page[data-theme="dark"] .btn-qr[style*="background:#db2777"]:hover,
.empower-app.global-registrations-page[data-theme="dark"] .btn-qr[style*="background: #db2777"]:hover {
    background: #9d174d !important;
    color: #fff !important;
}

/* 屬靈恩賜測驗 */
.empower-app[data-theme="dark"].empower-module-gifts {
    --gifts-accent: var(--brand-blue);
    --gifts-instruction-bg: rgba(251, 146, 60, 0.12);
    --gifts-instruction-border: rgba(251, 146, 60, 0.35);
    --gifts-instruction-text: #fdba74;
    --gifts-verse-bg: rgba(74, 222, 128, 0.1);
    --gifts-verse-border: rgba(74, 222, 128, 0.35);
    --gifts-verse-text: #86efac;
    --gifts-verse-strong: #4ade80;
    --gifts-disclaimer-bg: var(--surface2);
    --gifts-disclaimer-border: var(--border);
    --gifts-disclaimer-text: var(--muted);
    --gifts-disclaimer-heading: var(--text);
    --gifts-disclaimer-warn: #fca5a5;
    --gifts-encourage-bg: rgba(59, 130, 246, 0.12);
    --gifts-encourage-border: rgba(59, 130, 246, 0.35);
    --gifts-encourage-title: #93c5fd;
    --gifts-encourage-text: #bfdbfe;
    --gifts-save-bg: rgba(251, 191, 36, 0.1);
    --gifts-save-border: rgba(251, 191, 36, 0.35);
    --gifts-save-title: #fcd34d;
    --gifts-save-text: #fde68a;
    --gifts-save-radio-bg: var(--surface);
    --gifts-save-radio-border: rgba(251, 191, 36, 0.4);
    --gifts-save-radio-hover: rgba(251, 191, 36, 0.16);
}

.empower-app.empower-module-gifts[data-theme="dark"] .header-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(26, 35, 50, 0.95) 55%, rgba(15, 20, 25, 1) 100%) !important;
}

.empower-app.empower-module-gifts[data-theme="dark"] .question-card,
.empower-app.empower-module-gifts[data-theme="dark"] .gift-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.empower-app.empower-module-gifts[data-theme="dark"] .radio-label:has(input[type="radio"]:checked) {
    background: rgba(59, 130, 246, 0.18) !important;
}

.empower-app.empower-module-gifts[data-theme="dark"] .gift-level-main {
    color: #fca5a5 !important;
}

.empower-app.empower-module-gifts[data-theme="dark"] .gift-level-secondary {
    color: #fcd34d !important;
}

.empower-app.empower-module-gifts[data-theme="dark"] .btn-save {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25) !important;
}

.empower-app.empower-module-gifts[data-theme="dark"] .btn-save:hover {
    filter: brightness(1.08);
}

.empower-app.empower-module-gifts[data-theme="dark"] .btn-submit {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25) !important;
}

/* 師資帳號配對（約書亞 / 敬拜讚美學校） */
.empower-app[data-theme="dark"] .staff-links-box,
.empower-app[data-theme="dark"] .staff-link-modal-content,
.empower-app[data-theme="dark"] .staff-user-results {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

.empower-app[data-theme="dark"] .staff-links-pill {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text-muted) !important;
}

.empower-app[data-theme="dark"] .staff-links-table th,
.empower-app[data-theme="dark"] .staff-links-table td {
    border-bottom-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .staff-links-table th {
    color: var(--text-muted) !important;
}

.empower-app[data-theme="dark"] .staff-links-muted,
.empower-app[data-theme="dark"] .staff-links-desc,
.empower-app[data-theme="dark"] .staff-links-sub,
.empower-app[data-theme="dark"] .staff-user-item span {
    color: var(--text-muted) !important;
}

.empower-app[data-theme="dark"] .staff-links-error {
    color: #fca5a5 !important;
}

.empower-app[data-theme="dark"] .staff-status.linked_manual {
    background: rgba(22, 101, 52, 0.45) !important;
    color: #bbf7d0 !important;
}

.empower-app[data-theme="dark"] .staff-status.linked_auto {
    background: rgba(14, 116, 144, 0.35) !important;
    color: #bae6fd !important;
}

.empower-app[data-theme="dark"] .staff-status.no_account {
    background: rgba(133, 77, 14, 0.4) !important;
    color: #fde68a !important;
}

.empower-app[data-theme="dark"] .staff-status.unlinked {
    background: rgba(127, 29, 29, 0.4) !important;
    color: #fecaca !important;
}

.empower-app[data-theme="dark"] .staff-link-btn.secondary {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.empower-app[data-theme="dark"] .staff-link-btn.primary {
    background: var(--brand-green) !important;
    color: #0f1419 !important;
}

.empower-app[data-theme="dark"] .staff-link-btn.danger {
    background: rgba(127, 29, 29, 0.4) !important;
    color: #fecaca !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.empower-app[data-theme="dark"] .staff-link-modal {
    background: rgba(0, 0, 0, 0.65) !important;
}

.empower-app[data-theme="dark"] .staff-link-modal-content h3,
.empower-app[data-theme="dark"] .staff-link-modal-label,
.empower-app[data-theme="dark"] .staff-user-item strong,
.empower-app[data-theme="dark"] .staff-links-account-cell strong {
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .staff-link-search-input {
    background: var(--surface2) !important;
    border-color: var(--border-input) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .staff-link-search-input:focus {
    background: var(--surface3) !important;
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.2) !important;
}

.empower-app[data-theme="dark"] .staff-user-item {
    border-bottom-color: var(--border) !important;
    color: var(--text) !important;
}

.empower-app[data-theme="dark"] .staff-user-item:hover {
    background: var(--surface2) !important;
}
