/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-base: #07060d;
  --bg-elevated: #0d0c1a;
  --bg-surface: #14132a;
  --bg-surface-2: #1c1b35;
  --bg-hover: #25243f;
  --bg-overlay: rgba(13, 12, 26, 0.85);

  --border-subtle: rgba(124, 92, 191, 0.08);
  --border-default: rgba(124, 92, 191, 0.15);
  --border-strong: rgba(124, 92, 191, 0.3);
  --border-focus: rgba(176, 136, 240, 0.6);

  --text-primary: #f4f4f8;
  --text-secondary: #b8b8d4;
  --text-tertiary: #8080a0;
  --text-muted: #5a5a78;
  --text-disabled: #3e3e58;

  --brand: #8b5cf6;
  --brand-hover: #a78bfa;
  --brand-active: #7c3aed;
  --brand-soft: rgba(139, 92, 246, 0.12);
  --brand-glow: rgba(139, 92, 246, 0.35);

  --accent: #ec4899;
  --accent-soft: rgba(236, 72, 153, 0.12);
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.12);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --rose: #f43f5e;
  --rose-soft: rgba(244, 63, 94, 0.12);

  --discord: #5865f2;
  --discord-soft: rgba(88, 101, 242, 0.12);
  --discord-glow: rgba(88, 101, 242, 0.4);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 32px var(--brand-glow);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --sidebar-width: 260px;
  --header-height: 64px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-ar: 'Cairo', 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
  background-clip: padding-box;
  border: 2px solid transparent;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-base);
  background-image:
    radial-gradient(at 12% 8%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 88% 92%, rgba(236, 72, 153, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow: hidden;
}

html[lang='ar'] body,
html[dir='rtl'] body {
  font-family: var(--font-ar);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-hover);
}

button,
.btn {
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
  outline: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:focus-visible,
.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-active) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  filter: brightness(1.1);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-danger {
  background: linear-gradient(135deg, var(--rose) 0%, #be123c 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-discord {
  background: linear-gradient(135deg, var(--discord) 0%, #4752c4 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

.btn-discord:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.55);
  filter: brightness(1.1);
}

input,
select,
textarea {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  transition: all var(--transition-fast);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: var(--bg-elevated);
}

select {
  cursor: pointer;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238080a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

html[dir='rtl'] select {
  background-position: left 12px center;
  padding-right: 14px;
  padding-left: 36px;
}

textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

label,
.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  opacity: 0.5;
}

.card:hover {
  border-color: var(--border-default);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-flat {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

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

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 22px; }
.text-3xl { font-size: 28px; }
.text-4xl { font-size: 36px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

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

html[dir='rtl'] .text-right { text-align: left; }
html[dir='rtl'] .text-left { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-success { color: var(--emerald); }
.text-danger { color: var(--rose); }
.text-warning { color: var(--amber); }
.text-brand { color: var(--brand); }

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1;
}

.badge-green {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-red {
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-blue {
  background: var(--brand-soft);
  color: var(--brand-hover);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-gray {
  background: rgba(128, 128, 160, 0.12);
  color: var(--text-tertiary);
  border: 1px solid rgba(128, 128, 160, 0.2);
}

.badge-purple {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-cyan {
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-discord {
  background: var(--discord-soft);
  color: #8b9aff;
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.status-dot.online {
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot.offline {
  background: var(--rose);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

.status-dot.idle {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-dot.dnd {
  background: var(--rose);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

.status-dot.invisible {
  background: var(--text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

html[dir='rtl'] th,
html[dir='rtl'] td {
  text-align: right;
}

th {
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  background: rgba(13, 12, 26, 0.5);
  font-weight: 600;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
}

th:first-child {
  border-top-left-radius: var(--radius-md);
}

th:last-child {
  border-top-right-radius: var(--radius-md);
}

html[dir='rtl'] th:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: var(--radius-md);
}

html[dir='rtl'] th:last-child {
  border-top-right-radius: 0;
  border-top-left-radius: var(--radius-md);
}

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:hover {
  background: var(--brand-soft);
}

tbody tr:last-child td {
  border-bottom: none;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
  border: none;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(20, 19, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-subtle);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-default);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

html[dir='rtl'] @keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 16px var(--brand-glow); }
  50% { box-shadow: 0 0 32px var(--brand-glow); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
}

html[dir='rtl'] .toast {
  right: auto;
  left: 24px;
}

.toast-success {
  background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
  color: #fff;
}

.toast-error {
  background: linear-gradient(135deg, var(--rose) 0%, #be123c 100%);
  color: #fff;
}

.toast-info {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-active) 100%);
  color: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.chip-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  transition: all var(--transition-fast);
}

.chip-remove:hover {
  background: var(--rose-soft);
  color: var(--rose);
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
  }
}

