﻿/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Design System 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1e1e35;
  --bg-input: #14141f;
  --border: #2a2a40;
  --border-hover: #3a3a55;

  --text-primary: #f0f0f5;
  --text-secondary: #8888a8;
  --text-muted: #55556a;

  --accent: #5865F2; /* Discord blurple */
  --accent-hover: #4752C4;
  --accent-glow: rgba(88, 101, 242, 0.3);

  --success: #43b581;
  --warning: #faa61a;
  --danger: #f04747;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Reset 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Landing Background 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.landing-bg {
  min-height: 100vh;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(88, 101, 242, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(88, 101, 242, 0.05) 0%, transparent 50%),
    var(--bg-primary);
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 0.4; transform: translateY(-40px); }
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Navbar 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.brand-icon {
  font-size: 28px;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.accent {
  color: var(--accent);
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Buttons 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(88, 101, 242, 0.05);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #3da374;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #d63d3d;
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Hero 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 65px);
  padding: 40px;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #7b8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Features 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.features {
  padding: 80px 40px;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Dashboard Layout 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.user-tag {
  font-size: 12px;
  color: var(--text-secondary);
}

.sidebar-title {
  padding: 16px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.server-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px;
}

.server-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.server-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.server-item.active {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.server-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Dashboard Main 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.dashboard-main {
  flex: 1;
  margin-left: 280px;
  padding: 32px 40px;
  min-height: 100vh;
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 4px;
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Config Panels 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.config-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

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

.config-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.config-icon {
  font-size: 24px;
}

.config-body {
  padding: 24px;
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Toggle Switch 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: white;
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Form Elements 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

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

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Ticket Types Editor 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.ticket-type-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.ticket-type-item {
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ticket-type-item .btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(240, 71, 71, 0.1);
  color: var(--danger);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 16px;
}

.ticket-type-item .btn-icon:hover {
  background: rgba(240, 71, 71, 0.2);
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Save Bar 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.save-bar {
  position: fixed;
  bottom: 0;
  left: 280px;
  right: 0;
  padding: 16px 40px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.save-bar.visible {
  transform: translateY(0);
}

.save-bar .save-hint {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Loading States 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-secondary);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Toast Notification 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: var(--success);
  color: var(--success);
}

.toast.error {
  border-color: var(--danger);
  color: var(--danger);
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 No Server Selected 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.no-server {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--text-secondary);
  text-align: center;
}

.no-server-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-server h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Responsive 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }

  .hero {
    padding: 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .features {
    padding: 40px 20px;
  }

  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
    padding: 20px;
  }

  .save-bar {
    left: 0;
    padding: 12px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .ticket-type-item {
    grid-template-columns: 60px 1fr;
  }
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Tab Navigation 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.tab-icon {
  font-size: 16px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Embed Builder 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.embed-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1100px) {
  .embed-builder {
    grid-template-columns: 1fr;
  }
}

.embed-preview-section,
.embed-form-section {
  min-width: 0;
}

/* Embed Preview (Discord-like) */
.embed-preview {
  background: #2f3136;
  border-left: 4px solid #5865F2;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  gap: 16px;
  position: relative;
  max-width: 520px;
}

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

.embed-content {
  flex: 1;
  min-width: 0;
}

.embed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #dcddde;
}

.embed-author-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.embed-title-preview {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.embed-desc-preview {
  font-size: 14px;
  color: #dcddde;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.embed-fields-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.embed-field {
  flex: 0 0 100%;
}

.embed-field.inline {
  flex: 0 0 calc(33.33% - 6px);
}

.embed-field-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.embed-field-value {
  font-size: 13px;
  color: #dcddde;
}

.embed-footer-preview {
  font-size: 12px;
  color: #72767d;
  margin-top: 12px;
  display: none;
}

.embed-thumbnail-preview {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  display: none;
}

.embed-thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Embed Field Editor */
.embed-field-item {
  margin-bottom: 8px;
}

.embed-field-item .form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.embed-field-item .form-input {
  flex: 1;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}

.inline-check input {
  cursor: pointer;
}

.form-color {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
  padding: 4px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(240, 71, 71, 0.1);
  color: var(--danger);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 16px;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: rgba(240, 71, 71, 0.2);
}

/* 🤖🤖🤖🤖🤖🤖🤖🤖🤖 Role Chips (MEE6-style) 🤖🤖🤖🤖🤖🤖🤖🤖🤖 */
.tt-grid {
  grid-template-columns: 60px 1fr auto auto !important;
}

.role-chips-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.role-chip-x {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.7;
  transition: opacity 0.15s;
  line-height: 1;
}

.role-chip-x:hover {
  opacity: 1;
}

.role-add-wrapper {
  position: relative;
}

.role-add-btn {
  padding: 4px 10px !important;
  font-size: 12px !important;
  white-space: nowrap;
}

.role-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 180px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.role-dropdown.open {
  display: block;
  animation: fadeIn 0.15s ease;
}

.role-dropdown-item {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.role-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.role-dropdown-empty {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

