:root {
  --bg-dark: #121212;
  --bg-card: rgba(26, 26, 26, 0.7);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;
  --gold-led: #ffd700;
  --white-led: #ffffff;
  --pill-bg: rgba(255, 255, 255, 0.05);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
}

*, *::before, *::after, html, body, button, a, input, select, textarea {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  cursor: none !important;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
}

.glow-bg {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffd700, 0 0 20px #ffffff;
  pointer-events: none;
  z-index: 100002;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.05);
  pointer-events: none;
  z-index: 100001;
  opacity: 0;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s ease;
}

.cursor-follower.hovered {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
}

.header {
  position: sticky;
  top: 20px;
  display: flex;
  justify-content: center;
  z-index: 100;
  padding: 0 20px;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  background: var(--pill-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  padding: 8px 24px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}

.nav-tabs-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  outline: none;
}

.nav-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-btn.active {
  color: #000000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  padding: 4px 14px 4px 6px;
  border-radius: 9999px;
}

.avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #252525;
}

.user-tag {
  font-size: 0.85rem;
  font-weight: 600;
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.logout-btn:hover {
  color: var(--danger);
}

.main-container {
  max-width: 1160px;
  margin: 40px auto 80px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hidden {
  display: none !important;
}

.hero-card {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  margin-bottom: 30px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #ffd700;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 30px;
}

.auth-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.notice-box {
  text-align: center;
  padding: 50px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  max-width: 680px;
  margin: 40px auto;
}

.notice-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.notice-box h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.notice-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.guild-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s var(--ease);
}

.guild-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
}

.guild-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guild-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #1e1e1e;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.guild-info-col {
  flex: 1;
  min-width: 0;
}

.guild-name-text {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guild-id-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.dashboard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 16px 24px;
  margin-bottom: 24px;
}

.current-guild-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

.guild-badge-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.active-guild-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.guild-meta-chips {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.meta-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
}

.meta-chip.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.meta-chip.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.alert-icon {
  font-size: 1.4rem;
}

.alert-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.badge-status {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 9999px;
  font-weight: 700;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #ffd700;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: rgba(255, 215, 0, 0.5);
}

select.form-control,
select {
  background-color: #15161b !important;
  color: #ffffff !important;
  cursor: pointer;
}

select.form-control option,
select option,
select optgroup {
  background-color: #18191f !important;
  color: #ffffff !important;
  padding: 10px 14px;
}

.module-switcher-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  overflow-x: auto;
}

.module-switcher-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.module-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.module-switcher-btn.active {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.discord-buttons-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  transition: background 0.2s ease;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.category-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.category-item-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.category-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
}

.category-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.category-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.category-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.category-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.discord-select-mock {
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 10px;
  color: #dbdee1;
  font-size: 0.85rem;
}

.select-mock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.select-mock-arrow {
  font-size: 0.65rem;
  color: #949ba4;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.btn svg {
  flex-shrink: 0;
  display: block;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background: #e5e7eb;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.discord-preview-container {
  background: #313338;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}

.discord-message-mock {
  display: flex;
  gap: 14px;
}

.discord-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5865f2;
  flex-shrink: 0;
}

.discord-message-body {
  flex: 1;
  min-width: 0;
}

.discord-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.bot-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.discord-embed-mock {
  background: #2b2d31;
  border-radius: 4px;
  position: relative;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.embed-color-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ffd700;
  border-radius: 4px 0 0 4px;
}

.embed-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.embed-desc {
  font-size: 0.85rem;
  color: #dbdee1;
  line-height: 1.4;
  white-space: pre-wrap;
}

.discord-buttons-row {
  display: flex;
  gap: 8px;
}

.discord-btn-mock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #5865f2;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-mini-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-val.online {
  color: var(--success);
}

.status-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.glass-modal {
  background: #181818;
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
}

.log-details-accordion summary,
.automod-accordion summary {
  outline: none;
  list-style: none;
  cursor: pointer;
}

.log-details-accordion summary::-webkit-details-marker,
.automod-accordion summary::-webkit-details-marker {
  display: none;
}
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
