:root { --bg: #080d0a; --bg-card: #0f1a14; --bg-card-alt: #111e17; --border: #1a2720; --border-mid: #223028; --text: #e8f5ee; --muted: #7a9488; --faint: #3d5249; --green: #28a85c; --green-dark: #229650; --green-tint: rgba(40, 168, 92, 0.08); --green-glow: rgba(40, 168, 92, 0.14); --round: 14px; --round-sm: 10px; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "DM Sans", sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--green); }
.noise { position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); opacity: 0.025; pointer-events: none; z-index: 0; }
.orb { position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0; }
.orb-top { width: 600px; height: 600px; background: radial-gradient(circle, rgba(40, 168, 92, 0.08) 0%, transparent 70%); top: -220px; right: -160px; }
.orb-bottom { width: 480px; height: 480px; background: radial-gradient(circle, rgba(40, 168, 92, 0.055) 0%, transparent 70%); bottom: 5%; left: -160px; }
.hidden { display: none !important; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Syne", sans-serif; font-weight: 800; font-size: 21px; color: var(--green); }
.brand-img { width: 30px; height: 30px; border-radius: 8px; }
.dashboard-wrapper { display: flex; flex-direction: column; min-height: 100vh; position: relative; z-index: 1; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(8, 13, 10, 0.85); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 66px; }
.profile-menu { display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-mid); object-fit: cover; }
.user-details { display: flex; flex-direction: column; text-align: right; }
.user-global { font-size: 14px; font-weight: 600; color: var(--text); }
.user-handle { font-size: 12px; color: var(--muted); }
.dashboard-body { display: flex; flex: 1; max-width: 1400px; width: 100%; margin: 0 auto; }
.sidebar { width: 280px; border-right: 1px solid var(--border); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 66px; height: calc(100vh - 66px); }
.sidebar-section { display: flex; flex-direction: column; }
.sidebar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; color: var(--faint); padding: 0 10px 10px; display: block; }
.feature-nav { display: flex; flex-direction: column; gap: 8px; }
.feature-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent; color: var(--muted); padding: 10px 12px; border-radius: var(--round-sm); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s ease; }
.nav-btn:hover { background: var(--bg-card-alt); color: var(--text); }
.nav-btn.active { background: var(--green-tint); border-color: rgba(40, 168, 92, 0.2); color: var(--green); font-weight: 600; }
.nav-btn i { width: 16px; height: 16px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; background: var(--green); color: #040d06; font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: var(--round); border: none; cursor: pointer; transition: opacity 0.2s; }
.btn-icon { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: var(--round-sm); padding: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-icon:hover { color: var(--text); border-color: var(--green); }
.header-titles h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.header-titles p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.modal-overlay { position: fixed; inset: 0; background: rgba(4, 8, 6, 0.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.modal-card { width: 100%; max-width: 380px; background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: 18px; padding: 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--green-glow); }
.modal-card h3 { font-family: "Syne", sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.modal-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.lock-card { text-align: center; align-items: center; padding: 48px 32px; }
.lock-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green-tint); border: 1px solid rgba(40, 168, 92, 0.25); display: flex; align-items: center; justify-content: center; color: var(--green); margin: 0 auto 16px; }
.lock-card h2 { margin-bottom: 8px; }
.config-card-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.action-buttons-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-danger { display: inline-flex; align-items: center; justify-content: center; background: rgba(220, 38, 38, 0.12); border: 1px solid rgba(220, 38, 38, 0.3); color: #f87171; font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 13px; height: 38px; padding: 0 16px; border-radius: var(--round-sm); cursor: pointer; transition: all 0.15s ease; }
.btn-danger:hover { background: rgba(220, 38, 38, 0.22); border-color: rgba(220, 38, 38, 0.5); color: #fca5a5; }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }
.card.config-card { overflow: visible !important; }
.channel-dropdown, .channelv-dropdown, .channelc-dropdown, .role-dropdown, .select-dropdown { position: relative; width: 100%; }
.channel-dropdown-options, .channelv-dropdown-options, .channelc-dropdown-options, .role-dropdown-options, .select-dropdown-options { position: absolute; top: calc(100% + 6px); right: 0; width: 100%; min-width: 240px; background: var(--bg-card-alt); border: 1px solid var(--border-mid); border-radius: var(--round-sm); max-height: 220px; overflow-y: auto; z-index: 999; padding: 6px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); }
.dropdown-option-clear { font-size: 14px; padding: 10px 14px; color: #f87171 !important; border-bottom: 1px solid var(--border-mid); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.dropdown-option-clear:hover { background: rgba(220, 38, 38, 0.12) !important; color: #fca5a5 !important; }
.dropdown-option-clear i { width: 16px; height: 16px; }
.stack-field { width: 100%; }
.stack-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--green-tint); border: 1px solid rgba(40, 168, 92, 0.25); color: var(--text); font-size: 13px; padding: 5px 6px 5px 10px; border-radius: 999px; }
.stack-chip-remove { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 50%; }
.stack-chip-remove:hover { color: #fca5a5; background: rgba(220, 38, 38, 0.18); }
.stack-dropdown { position: relative; width: auto; }
.stack-trigger { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 6px 12px; font-size: 13px; border-radius: 999px; border: 1px dashed var(--border-mid); background: transparent; color: var(--green); }
.stack-trigger:hover { border-color: var(--green); }
.stack-trigger.disabled { pointer-events: none; opacity: 0.5; border-style: solid; color: var(--muted); }
.stack-trigger i { width: 14px; height: 14px; }
.stack-dropdown-options { position: absolute; top: calc(100% + 6px); left: 0; width: 220px; background: var(--bg-card-alt); border: 1px solid var(--border-mid); border-radius: var(--round-sm); max-height: 220px; overflow-y: auto; z-index: 999; padding: 6px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); }
.stack-text-input:disabled { opacity: 0.5; cursor: not-allowed; }
.compact-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.compact-row:last-child { border-bottom: none; }
.compact-label { font-size: 14px; font-weight: 600; }
.compact-control { width: 240px; position: relative; }
.entry-warning { font-size: 12px; color: #f87171; padding: 8px 0; }
.entry-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.entry-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--bg-card-alt); border: 1px solid var(--border); border-radius: var(--round-sm); }
.entry-summary { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.control-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin-bottom: 8px; display: block; }
.custom-input { width: 100%; background: var(--bg-card-alt); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: var(--round-sm); font-size: 14px; outline: none; transition: border-color 0.2s; }
.custom-input:focus { border-color: var(--green); }
.custom-textarea { resize: vertical; font-family: inherit; line-height: 1.5; }
.textarea-m { min-height: 80px; }
.textarea-b { min-height: 160px; }
.custom-dropdown { position: relative; width: 100%; user-select: none; }
.dropdown-trigger { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card-alt); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: var(--round-sm); font-size: 14px; cursor: pointer; transition: border-color 0.2s; }
.dropdown-trigger:hover, .dropdown-trigger.open { border-color: var(--green); }
.dropdown-trigger i { width: 16px; height: 16px; color: var(--muted); transition: transform 0.2s; }
.dropdown-trigger.open i { transform: rotate(180deg); }
.dropdown-options { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: var(--round-sm); max-height: 220px; overflow-y: auto; z-index: 100; list-style: none; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); }
.dropdown-option { padding: 10px 14px; font-size: 14px; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.dropdown-option:hover { background: var(--green-tint); color: var(--text); }
.dropdown-option.selected { color: var(--green); font-weight: 600; background: rgba(40, 168, 92, 0.08); }
.channel-trigger { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card-alt); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: var(--round-sm); font-size: 14px; cursor: pointer; transition: border-color 0.2s; user-select: none; }
.channel-trigger:hover { border-color: var(--green); }
.channel-trigger i { width: 16px; height: 16px; color: var(--muted); }
.channel-list-items { list-style: none; margin: 0; padding: 0; }
.channel-list-items .dropdown-option { padding: 8px 12px; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.channel-list-items .dropdown-option:hover { background: var(--green-tint); color: var(--text); }
.channel-list-items .dropdown-option.selected { color: var(--green); font-weight: 600; background: rgba(40, 168, 92, 0.12); }
.main-content { flex: 1; padding: 28px; height: calc(100vh - 66px); overflow-y: auto; }
.config-group { display: flex; flex-direction: column; gap: 28px; max-width: 800px; }
.config-card { display: flex; flex-direction: column; gap: 16px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: none; }
.setting-info { flex: 1; }
.setting-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.setting-desc { font-size: 12px; color: var(--muted); }
.setting-control { width: 260px; display: flex; justify-content: flex-end; }
.toggle-switch { position: relative; width: 42px; height: 22px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--border-mid); border-radius: 22px; transition: 0.25s; }
.slider::before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: var(--text); border-radius: 50%; transition: 0.25s; }
input:checked + .slider { background: var(--green); }
input:checked + .slider::before { transform: translateX(20px); }
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 1; }
.login-card { max-width: 400px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }