:root {
  --brand-color: #e2e8f0;
  --brand-glow: rgba(226, 232, 240, 0.55);
  --brand-tint: rgba(226, 232, 240, 0.14);
  --bg-primary: #111217;
  --bg-card: transparent;
  --bg-card-hover: rgba(255, 255, 255, 0.03);
  --bg-header: #111217;
  --bg-sidebar: #111217;
  --bg-sidebar-active: rgba(255, 255, 255, 0.05);
  --bg-sidebar-hover: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-silver: #475569;
  --card-shadow: none;
  --card-shadow-hover: none;
  --text-main: #f4f4f5;
  --text-muted: #9ca3af;
  --text-dim: #64748b;
  --silver-gradient: linear-gradient(180deg, #ffffff 0%, #e2e8f0 45%, #94a3b8 100%);
  --accent-silver: var(--brand-color);
  --accent-silver-bright: #ffffff;
  --accent-silver-dim: #94a3b8;
  --accent-blue: var(--brand-color);
  --accent-blue-bright: var(--brand-color);
  --status-green: #10b981;
  --status-green-bg: rgba(16, 185, 129, 0.12);
  --status-green-border: rgba(16, 185, 129, 0.28);
  --status-red: #ef4444;
  --status-red-bg: rgba(239, 68, 68, 0.12);
  --status-red-border: rgba(239, 68, 68, 0.28);
  --status-yellow: #f59e0b;
  --status-yellow-bg: rgba(245, 158, 11, 0.12);
  --status-yellow-border: rgba(245, 158, 11, 0.28);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #08080c;
}

::-webkit-scrollbar-thumb {
  background: #22222e;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #323244;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.highlight-silver,
.highlight-blue {
  color: #f1f5f9;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

.app-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background-color: var(--bg-header);
  border-bottom: none;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: background-color 0.25s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring);
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 29px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  transition: transform 0.3s var(--ease-spring);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-highlight {
  font-weight: 500;
  letter-spacing: 2px;
  color: #a1a1aa;
  -webkit-text-fill-color: #a1a1aa;
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-item-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  transition: color 0.15s ease;
}

.nav-item-btn:hover {
  color: #ffffff;
}

.nav-item-btn:active {
  transform: scale(0.98);
}

.nav-item-btn.active {
  color: var(--brand-color, #ffffff);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  color: #a1a1aa;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.app-body {
  display: flex;
  flex: 1;
  width: 100%;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-sidebar);
  border-right: none;
}

.sidebar-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #52525b;
  padding: 0 10px 8px 10px;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  background: transparent;
  border: none;
  outline: none;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  width: 100%;
  text-align: left;
  position: relative;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.sidebar-link:active {
  transform: scale(0.99);
}

.sidebar-link:focus,
.sidebar-link:focus-visible {
  outline: none;
}

.sidebar-link.active {
  background: linear-gradient(90deg, var(--brand-tint, rgba(255, 255, 255, 0.08)) 0%, transparent 95%) no-repeat;
  background-repeat: no-repeat;
  color: var(--brand-color, #ffffff);
  font-weight: 600;
  border: none;
  box-shadow: none;
  outline: none;
}

.sidebar-link.active .sidebar-icon {
  color: var(--brand-color, #ffffff);
}

.sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: inherit;
  flex-shrink: 0;
}

.sidebar-label {
  flex: 1;
}

.badge {
  background: #14141c;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #242432;
  transition: all 0.15s ease;
}

.sidebar-link.active .badge {
  background: #20202c;
  color: #ffffff;
  border-color: #383848;
}

.main-content {
  flex: 1;
  padding: 30px 40px;
  min-width: 0;
  max-width: calc(100vw - 215px);
  overflow-x: hidden;
}

.dashboard-view {
  display: none;
}

.dashboard-view.active {
  display: block;
}

@keyframes contentEntrance {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-view.active {
  animation: contentEntrance 0.3s var(--ease-spring) forwards;
}

.view-header {
  margin-bottom: 22px;
}

.welcome-heading {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.view-subheading {
  color: var(--text-muted);
  font-size: 13px;
}

.card {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.card-header-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.form-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--brand-color, #cbd5e1);
  box-shadow: none;
  background-color: rgba(255, 255, 255, 0.05);
}

.form-input-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.form-input-number {
  width: 110px;
}

.form-helper-text {
  color: var(--text-dim);
  font-size: 11.5px;
  line-height: 1.4;
  margin-top: 4px;
}

.primary-action-btn {
  background: var(--brand-color, #e2e8f0);
  color: var(--brand-contrast, #09090e);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--brand-color, #e2e8f0);
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: none;
  transition: all 0.2s ease;
}

.primary-action-btn:hover {
  filter: brightness(1.08);
  box-shadow: none;
  transform: translateY(-1px);
}

.primary-action-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.btn-subtle {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-subtle:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-subtle:active {
  transform: translateY(0);
}

.danger-action-btn {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #ef4444;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}

.danger-action-btn:hover {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.danger-action-btn:active {
  transform: translateY(0);
}

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

.brand-config-center {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.logo-upload-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.logo-upload-dropzone:hover {
  border-color: var(--brand-color, #94a3b8);
  background-color: rgba(255, 255, 255, 0.04);
}

.dropzone-preview-container {
  width: 52px;
  height: 52px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.preview-logo-img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropzone-primary-text {
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
}

.dropzone-sub-text {
  color: var(--text-dim);
  font-size: 11.5px;
}

.file-hidden-input {
  display: none;
}

.logo-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.color-picker-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-native-box {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}

.color-native-box::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-native-box::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.color-preview-pill {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.card-footer-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.compromise-duration-pill {
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compromise-duration-pill:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.compromise-duration-pill.active {
  background-color: #b91c1c;
  border-color: #ef4444;
  color: #ffffff;
}

.auth-subtabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: none;
  padding-bottom: 0;
}

.auth-subtab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.auth-subtab-btn:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.auth-subtab-btn.active {
  background-color: var(--brand-tint, rgba(255, 255, 255, 0.08));
  color: var(--brand-color, #ffffff);
  border-color: transparent;
  font-weight: 600;
  box-shadow: none;
}

.auth-subview {
  display: none;
}

.auth-subview.active {
  display: block;
  animation: contentEntrance 0.25s var(--ease-spring) forwards;
}

.generator-controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.duration-pill-group {
  display: inline-flex;
  background-color: rgba(255, 255, 255, 0.03);
  border: none;
  border-radius: 7px;
  padding: 3px;
  gap: 3px;
  width: fit-content;
}

.duration-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.duration-pill:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.duration-pill.active {
  background: var(--brand-tint, rgba(255, 255, 255, 0.12));
  border: 1px solid transparent;
  border-color: transparent;
  color: var(--brand-color, #ffffff);
  font-weight: 600;
  box-shadow: none;
}

.amount-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-amount-buttons {
  display: flex;
  gap: 6px;
}

.quick-btn {
  background-color: #1b1b26;
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-btn:hover {
  background-color: #262638;
  color: #ffffff;
}

.format-presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.preset-label {
  font-size: 11px;
  color: var(--text-dim);
}

.preset-tag-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-tag-btn:hover {
  border-color: var(--border-hover);
  color: #ffffff;
}

.generator-submit-row {
  margin-top: 20px;
}

.generation-result-box {
  margin-top: 24px;
  background-color: #0b0b10;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.generation-result-box.hidden {
  display: none;
}

.result-header {
  padding: 12px 16px;
  background-color: #12121a;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.result-header-actions {
  display: flex;
  gap: 8px;
}

.generated-keys-list {
  padding: 14px 16px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.generated-key-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: #14141d;
  color: #f4f4f5;
  transition: background-color 0.15s ease;
}

.generated-key-line:hover {
  background-color: #1c1c28;
}

.categorized-sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-card {
  padding: 8px 0 24px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

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

.category-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.keys-line-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.key-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.key-list-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.key-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.key-row-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #ffffff;
}

.key-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.empty-keys-msg {
  color: var(--text-dim);
  font-size: 12.5px;
  padding: 16px 4px;
  text-align: center;
}

.manage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  width: 270px;
}

.search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 14px 8px 36px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--brand-color, #cbd5e1);
  background-color: rgba(255, 255, 255, 0.05);
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.filter-pill-selector {
  display: flex;
  gap: 6px;
}

.filter-chip {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.filter-chip.active {
  background-color: var(--brand-tint, rgba(255, 255, 255, 0.1));
  color: var(--brand-color, #ffffff);
  border-color: transparent;
  font-weight: 600;
}

.table-card-wrapper {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}

.keys-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.keys-table th {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: transparent;
  white-space: nowrap;
}

.keys-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #e4e4e7;
  white-space: nowrap;
  vertical-align: middle;
}

.keys-table tbody tr {
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.keys-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.035);
}

.mono-font {
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.status-active {
  background-color: var(--status-green-bg);
  color: var(--status-green);
  border: 1px solid var(--status-green-border);
}

.status-banned {
  background-color: var(--status-red-bg);
  color: var(--status-red);
  border: 1px solid var(--status-red-border);
}

.status-blacklisted {
  background-color: #271414;
  color: #f87171;
  border: 1px solid #451a1a;
}

.status-compromised,
.status-compensated {
  background-color: var(--status-yellow-bg);
  color: var(--status-yellow);
  border: 1px solid var(--status-yellow-border);
}

.status-unused {
  background-color: #1c202a;
  color: #cbd5e1;
  border: 1px solid #283040;
}

.text-right {
  text-align: right;
}

.table-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
}

.pagination-info {
  color: var(--text-dim);
  font-size: 12px;
}

.main-content:has(#viewLua.active),
.main-content:has(#viewApiDocs.active) {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 65px - 45px);
  overflow: hidden;
}

#viewLua.lua-full-view.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.lua-ide-container {
  background-color: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.lua-full-view .lua-ide-container {
  border-radius: 0;
  border: none;
  background-color: transparent;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-shadow: none;
}

.lua-full-view .lua-ide-workspace {
  flex: 1;
  height: 100%;
  min-height: 0;
}

.lua-ide-tab-bar {
  height: 42px;
  background-color: transparent;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.ide-tabs-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ide-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  background: none;
  border: 1px solid transparent;
}

.ide-tab.active {
  background-color: var(--brand-tint, rgba(255, 255, 255, 0.08));
  color: var(--brand-color, #ffffff);
  border-color: transparent;
}

.ide-tab-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}

.ide-tab-close:hover {
  color: #ffffff;
}

.ide-tab-add {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.ide-tab-add:hover {
  background-color: #181822;
  color: #ffffff;
}

.ide-tabs-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ide-icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ide-icon-btn:hover {
  background-color: #1e1e2a;
  color: #ffffff;
}

.lua-ai-btn {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lua-ai-btn:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.6);
  color: #e9d5ff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.lua-ai-btn:active {
  transform: translateY(0);
}

.lua-run-btn {
  background: var(--brand-color, #e2e8f0);
  color: var(--brand-contrast, #0b0b10);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 6px;
  border: 1px solid var(--brand-color, #e2e8f0);
  cursor: pointer;
  box-shadow: 0 0 12px var(--brand-tint, rgba(255, 255, 255, 0.2));
  transition: all 0.2s ease;
}

.lua-run-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 16px var(--brand-glow, rgba(255, 255, 255, 0.35));
  transform: translateY(-1px);
}

.lua-run-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.lua-ide-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 220px);
  min-height: 520px;
  background-color: transparent;
  border-top: none;
  position: relative;
}

.lua-ide-workspace.terminal-fullscreen {
  grid-template-columns: 0 1fr;
}

.lua-ide-workspace.terminal-fullscreen .lua-editor-wrapper {
  display: none;
}

.lua-editor-wrapper {
  display: flex;
  background-color: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.lua-gutter {
  width: 52px;
  background-color: transparent;
  border-right: none;
  user-select: none;
  overflow: hidden;
  flex-shrink: 0;
  padding: 14px 10px 14px 0;
  text-align: right;
  box-sizing: border-box;
}

.lua-gutter-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 21px;
  color: #52525b;
}

.lua-code-stage {
  flex: 1;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.lua-highlight-pre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 21px;
  white-space: pre;
  word-wrap: normal;
  overflow: hidden;
  pointer-events: none;
  color: #f4f4f5;
  background: transparent;
  box-sizing: border-box;
  tab-size: 2;
  user-select: none;
}

.lua-highlight-pre code {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: inherit;
  tab-size: inherit;
  display: block;
}

.lua-code-textarea {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  margin: 0;
  background-color: transparent;
  border: none;
  outline: none;
  color: transparent;
  caret-color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 21px;
  white-space: pre;
  overflow: auto;
  resize: none;
  tab-size: 2;
  box-sizing: border-box;
  z-index: 2;
}

.lua-code-textarea::selection {
  background: rgba(59, 130, 246, 0.45);
  color: transparent;
}

.token-keyword {
  color: #c084fc;
  font-weight: 600;
}

.token-builtin {
  color: #38bdf8;
  font-weight: 500;
}

.token-string {
  color: #4ade80;
}

.token-number {
  color: #fb923c;
}

.token-boolean {
  color: #f59e0b;
  font-weight: 600;
}

.token-comment {
  color: #64748b;
  font-style: italic;
}

.token-function {
  color: #60a5fa;
}

.token-operator {
  color: #94a3b8;
}

.token-ident {
  color: #f1f5f9;
}

.lua-output-panel {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  height: 100%;
  overflow: hidden;
}

.output-panel-header {
  height: 38px;
  padding: 0 16px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  flex-shrink: 0;
}

.output-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.output-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.output-panel-body {
  flex: 1;
  margin: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 20px;
  color: #e2e8f0;
  background-color: transparent;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.output-error-text {
  color: #ef4444;
}

.output-trace-text {
  color: #f87171;
}

.output-info-text {
  color: #cbd5e1;
}

.output-success-text {
  color: #34d399;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: modalOverlayFade 0.2s ease-out;
}

@keyframes modalOverlayFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background-color: #15151e;
  border: 1px solid var(--border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  border-radius: 14px;
  width: 90%;
  max-width: 520px;
  animation: modalScaleUp 0.24s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 22px;
}

.modal-key-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0d0d12;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.modal-key-text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-info-item {
  background-color: #191924;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.info-value {
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
}

.modal-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-days-control-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-action-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  pointer-events: none;
}

.toast {
  background-color: #171722;
  border: 1px solid var(--border-hover);
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  animation: toastSlideIn 0.25s var(--ease-spring);
  pointer-events: auto;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.app-footer {
  margin-top: auto;
  border-top: none;
  padding: 20px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-header);
  width: 100%;
}

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

.footer-logo-img {
  height: 22px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.copyright-text {
  color: var(--text-dim);
  font-size: 12px;
}

@media (max-width: 1024px) {
  .app-body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 12px 14px;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .main-content {
    padding: 20px 14px;
    max-width: 100vw;
  }

  .brand-config-grid {
    grid-template-columns: 1fr;
  }

  .lua-ide-workspace {
    grid-template-columns: 1fr;
  }

  .lua-diagnostics-panel {
    border-top: 1px solid var(--border-subtle);
  }
}

@keyframes spinAnim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spin-anim {
  animation: spinAnim 0.75s linear infinite;
  display: inline-block;
}

#viewApiDocs.apidocs-full-view.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.docs-layout {
  display: flex;
  flex: 1;
  height: 100%;
  min-height: 0;
  background-color: transparent;
  overflow: hidden;
}

.docs-sidebar {
  width: 250px;
  flex-shrink: 0;
  background-color: transparent;
  border-right: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.docs-sidebar-header {
  padding: 20px 20px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
}

.docs-sidebar-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.docs-search-wrapper {
  padding: 12px 16px;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: none;
}

.docs-search-wrapper svg {
  position: absolute;
  left: 26px;
  color: var(--text-dim);
  pointer-events: none;
}

.docs-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 7px 10px 7px 30px;
  font-size: 12px;
  color: #f1f5f9;
  outline: none;
  transition: all 0.2s;
}

.docs-search-input:focus {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.docs-nav-tree {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 30px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-cat-item {
  display: flex;
  flex-direction: column;
}

.docs-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.docs-cat-header:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.docs-cat-header.active {
  color: #ffffff;
}

.docs-cat-chevron {
  width: 14px;
  height: 14px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.docs-cat-item.open .docs-cat-chevron {
  transform: rotate(90deg);
  color: #cbd5e1;
}

.docs-cat-methods {
  display: none;
  flex-direction: column;
  margin-left: 6px;
  padding-left: 6px;
  border-left: none;
  margin-top: 2px;
  margin-bottom: 4px;
  gap: 2px;
}

.docs-cat-item.open .docs-cat-methods {
  display: flex;
}

.docs-method-link {
  padding: 6px 12px;
  font-size: 12px;
  color: #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-method-link:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.03);
}

.docs-method-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  border-left: none;
  padding-left: 12px;
}

.docs-main-container {
  flex: 1;
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.docs-content-area {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 36px 48px 80px 48px;
  max-width: 900px;
}

.docs-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.docs-breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.docs-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.docs-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.docs-method-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.docs-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.docs-method-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.docs-method-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.docs-method-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
}

.docs-method-card-chevron {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.docs-method-card:hover .docs-method-card-chevron {
  color: #ffffff;
  transform: translateX(2px);
}

.docs-section-block {
  margin-bottom: 30px;
}

.docs-section-header {
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.docs-code-container {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
}

.docs-code-container:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.docs-code-snippet {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #f8fafc;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
}

.docs-code-snippet code {
  font-family: inherit;
}

.docs-code-copy-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.docs-code-copy-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.docs-return-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 12px 18px;
}

.docs-return-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-return-message {
  font-size: 13.5px;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.5;
}

.docs-nav-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: none;
}

.docs-nav-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.docs-nav-card.text-right {
  text-align: right;
}

.docs-nav-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.docs-nav-direction {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-nav-target {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.login-view-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #111217;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

.login-modal-box {
  width: 100%;
  max-width: 360px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.login-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  margin-bottom: 14px;
}

.login-brand-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 6px;
}

.login-brand-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  color: #71717a;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrapper svg {
  position: absolute;
  left: 14px;
  color: #52525b;
  pointer-events: none;
}

.login-form .form-label {
  color: #94a3b8 !important;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-input {
  width: 100%;
  padding-left: 42px !important;
  height: 42px;
  font-size: 13.5px;
  font-family: var(--font-body);
  background-color: #16171e;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 7px;
  color: #f1f5f9;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

.login-input:focus {
  background-color: #1a1b24;
  border-color: #64748b !important;
  outline: none !important;
  box-shadow: none !important;
}

.login-options-row {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #71717a;
  margin-top: -2px;
}

.login-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.login-remember-label input[type="checkbox"] {
  accent-color: #e2e8f0;
  cursor: pointer;
}

.login-error-msg {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
}

.login-submit-btn {
  width: 100%;
  height: 42px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 7px;
  background-color: #e2e8f0;
  color: #08080c;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-submit-btn:hover {
  background-color: #ffffff;
}

.discord-auth-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-discord-login {
  width: 100%;
  height: 44px;
  background-color: #5865f2;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.25);
}

.btn-discord-login:hover {
  background-color: #4752c4;
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.4);
  transform: translateY(-1px);
}

.btn-discord-login:active {
  transform: translateY(0);
}

.discord-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 4px 0;
  color: #52525b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.discord-divider::before,
.discord-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.discord-divider span {
  padding: 0 10px;
}

.discord-id-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discord-bot-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11.5px;
  color: #71717a;
  margin-top: 4px;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #eab308;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.status-indicator-dot.online {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-indicator-dot.offline {
  background-color: #ef4444;
}

.header-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 7px;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  background: rgba(239, 68, 68, 0.06) !important;
}

.header-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
}

.btn-return-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-return-admin:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: #38bdf8 !important;
}

.admin-panels-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  width: 100%;
}

.panel-card {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 0 !important;
  padding: 16px 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: none !important;
  transition: background-color 0.15s ease;
}

.panel-card:hover {
  background-color: rgba(255, 255, 255, 0.018) !important;
}

.panel-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
}

.panel-card-brand-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-card-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-card-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.panel-card-id-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

.panel-card-palette {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-card-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.panel-card-metrics-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0;
  background: transparent;
  border: none;
}

.panel-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-metric-item .p-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.panel-metric-item .p-val {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 600;
}

.panel-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.btn-panel-launch {
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-panel-launch:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-panel-delete {
  height: 30px;
  padding: 0 9px;
  font-size: 12px;
  border-radius: 4px;
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.18);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-panel-delete:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
}

.btn-panel-delete:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
}

.badge-brand-panel {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.admin-create-form-wrap {
  max-width: 580px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.colors-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-create-form-wrap .color-preview-pill {
  display: none;
}

.admin-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.admin-logo-preview {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-stats-strip {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 6px 0 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 22px;
}

.admin-stat-unit {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-stat-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.admin-stat-num.text-emerald {
  color: #10b981;
}

.admin-stat-num.text-rose {
  color: #ef4444;
}

.admin-manage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-table-container {
  background: transparent;
  border: none;
  padding: 0;
  overflow-x: auto;
}

.admin-table-container .data-table {
  border-collapse: collapse;
  width: 100%;
}

.admin-table-container .data-table th {
  background: transparent;
  padding: 12px 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.admin-table-container .data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: #cbd5e1;
}

.admin-table-container .data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

.admin-action-btn {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-action-btn.action-ban {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.admin-action-btn.action-ban:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ffffff;
}

.admin-action-btn.action-unban {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.admin-action-btn.action-unban:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #ffffff;
}

.admin-action-btn.action-delete {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.admin-action-btn.action-delete:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #ffffff;
}
