@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #1a1a1a 100%);
  color: #e5e5e5;
  min-height: 100vh;
  line-height: 1.5;
  font-weight: 400;
}

.dashboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Make the nav-menu take full width */
.nav-menu {
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center;     /* centers vertically */
  gap: 2rem;               /* spacing between links */
  width: 100%;             /* make it span the container */
}

.nav-link {
  display: inline-block;
  text-align: center;
  color: #e5e5e5;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-link:hover {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.06);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.company-name {
  font-size: 1.75rem;
  font-weight: 600;
  color: #f8f9fa;
  letter-spacing: -0.02em;
}

.user-dropdown {
  position: relative;
}

.user-profile-btn {
  background: none;   /* remove gray background */
  border: none;       /* remove default border */
  padding: 0;         /* remove extra spacing */
  cursor: pointer;    /* keep pointer cursor */
}

.user-profile-btn:hover {
  transform: translateY(-1px);
}

.header-avatar {
  width: 32px;               /* bigger or smaller */
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #e5e5e5;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
}

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

.dropdown-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0.5rem 0;
}

.logout-item {
  color: #ff6b6b;
}

.logout-item:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff8787;
}

.logout-btn {
  display: none;
}

.main-content {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  width: 100%;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1.5rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid #6b7280;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.user-profile {
  margin-bottom: 3rem;
}

.profile-card {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;       /* smaller corners */
  padding: 1.5rem;           /* smaller padding */
  display: flex;
  align-items: center;
  gap: 1.5rem;               /* smaller gap between items */
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); /* lighter shadow */
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-avatar {
  position: relative;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-info {
  flex: 1;
}

.user-name {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f8f9fa;
  letter-spacing: -0.02em;
}

.user-tag {
  color: #9ca3af;
  font-size: 1rem;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.profile-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  text-align: left;
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 0.25rem;
}

.admin-servers {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f8f9fa;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 400;
}

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

.server-card {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  padding-bottom: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.server-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.server-header {
  display: flex; /* <-- This is what does the trick! */
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.0rem;
}

/* --- ICON BASE STYLES --- */
.server-icon {
    width: 52px; /* Force the correct size */
    height: 52px; /* Force the correct size */
    border-radius: 50%; /* Force the circle */
    overflow: hidden; 
    flex-shrink: 0; /* 💥 CRITICAL: Prevents the card layout from squishing the icon */
    
    display: flex; 
    align-items: center;
    justify-content: center;
    
    /* Put back any necessary border or shadow here */
}

/* --- ICON IMAGE STYLES (The Oval Killer) --- */
.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.server-icon-fallback {
    /* This provides the background for the text version */
    background: linear-gradient(135deg, #374151, #4b5563); 
}

.server-icon-fallback .server-initial-text {
    /* Styles for the text itself, using the <span> */
    color: #fff; 
    font-weight: bold; 
    font-size: 20px;
}

.server-info h4 {
  font-size: 20px;      /* bigger and readable */
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #f8f9fa;
  letter-spacing: -0.01em;
}

.server-info p {
  color: #9ca3af;
  font-size: 14px;      /* 0.875rem is fine too */
  font-weight: 400;
}


.server-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.server-stat {
  text-align: center;
}

.server-stat-number {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  color: #e5e7eb;
}

.server-stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 0.125rem;
}

.no-servers {
  text-align: center;
  padding: 4rem 2rem;
  color: #9ca3af;
}

.no-servers-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.no-servers h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #e5e7eb;
  font-weight: 600;
}

.error-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #9ca3af;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.error-state h3 {
  color: #ef4444;
  margin-bottom: 1rem;
  font-weight: 600;
}

.retry-btn {
  background: #374151;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.retry-btn:hover {
  background: #4b5563;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.server-dashboard {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.server-dashboard-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.server-info {
  display: flex;
  align-items: center;
  /* Change column to row to put icon next to name */
  flex-direction: row; 
  gap: 1rem; /* Reduced gap for a tighter look, was 1rem before */
}

.server-id {
  font-size: 0.75rem;
  font-weight: 500;
  color: #373838;
  margin-bottom: 0.25rem;
}

.server-icon-small {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.server-icon-small img {
    /* Ensure the image takes up all available space */
    width: 100%;
    height: 100%;
    /* 💥 This crops the image to fill the circle without stretching (NO MORE OVALS!) */
    object-fit: cover; 
    display: block;
}

.server-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8f9fa;
  margin: 0; /* <-- Crucial change for vertical alignment */
}

.server-info p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.server-dashboard-content {
  padding: 2.5rem;
}

.server-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background: rgba(10, 10, 10, 0.5);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon {
  width: 16px;
  height: 16px;
}

.nav-item:hover {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-section {
  display: none;
}

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

.dashboard-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8f9fa;
  margin-bottom: 2rem;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.stat-icon {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  color: #9ca3af;
}

.stat-info {
  flex: 1;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1;
  display: block;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 0.25rem;
}

.embed-types,
.role-types {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.embed-type-btn,
.role-type-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem;
}

.embed-type-btn:hover,
.role-type-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.embed-type-btn.active,
.role-type-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f8f9fa;
}

.embed-editor,
.role-editor,
.vehicle-editor {
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #f8f9fa;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #e5e5e5;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
.textarea {
  min-height: 100px;
  resize: none;
}
.form-group textarea::placeholder {
  color: #80848e; /* 🔹 muted gray placeholder */
}

.form-group select option {
  background: #1f2937;
  color: #e5e5e5;
}

.form-group small {
  font-family: 'Roboto', sans-serif;
  display: block;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.discord-preview,
.role-preview {
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.discord-preview h4,
.role-preview h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #f8f9fa;
  margin-bottom: 1rem;
}

.embed-preview {
  background: #2f3136;
  border-left: 4px solid #ffffff;
  border-radius: 4px;
  padding: 1rem;
  max-width: 400px;
}

.embed-content {
  color: #dcddde;
}

.embed-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.embed-description {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 2.5rem;
}

.embed-image {
  font-family: 'Roboto', sans-serif;
  max-width: 100%;
  border-radius: 4px;
  margin-top: 1rem;
}

.role-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.role-badge {
  background: #5865f2;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.save-btn,
.cancel-btn,
.discard-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.save-btn {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.save-btn:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.discard-btn {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.discard-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.tickets-placeholder {
  text-align: center;
  padding: 4rem 2rem;
  color: #9ca3af;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.tickets-placeholder h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #e5e7eb;
  font-weight: 600;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8f9fa;
  margin-bottom: 1rem;
}

.modal-content p {
  color: #9ca3af;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  margin: 0;
}

.close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

.close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.data-table {
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-cell {
  padding: 1rem;
  font-weight: 500;
  color: #f8f9fa;
  font-size: 0.875rem;
}

.table-body {
  min-height: 200px;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-row .table-cell {
  color: #e5e5e5;
  font-weight: 400;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.edit-btn {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.2);
}

.edit-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

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

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: #9ca3af;
  text-align: center;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
  font-weight: 600;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-suspended {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-revoked {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-expired {
  background: rgba(107, 114, 128, 0.1);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.add-btn {
  background: #10b981;
  color: white;
  border: 1px solid #10b981;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-btn:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.economy-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: rgba(10, 10, 10, 0.5);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.economy-tab-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

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

.economy-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.economy-tab {
  display: none;
}

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

.settings-section {
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.settings-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8f9fa;
  margin-bottom: 1.5rem;
}

.role-payouts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.role-payout-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.role-payout-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8f9fa;
  margin-bottom: 0.25rem;
}

.role-payout-info p {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0;
}

.role-payout-actions {
  display: flex;
  gap: 0.5rem;
}

.add-btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.text-gray {
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between; /* left/right alignment */
  align-items: center;
  flex-wrap: nowrap; /* keep everything on one line */
  padding-top: 0.6rem; /* compact spacing */
  padding-bottom: 0.6rem; /* optional, same as top */
}

.footer-legal {
  display: flex;
  gap: 1rem; /* spacing between links */
}

.footer-link {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #555555;
}

.footer-copyright {
  color: #ffffff;
  font-size: 0.875rem; /* keep your original size */
  margin: 0;
}

.landing-footer {
  background: rgba(10, 10, 10, 0.98);
  padding: 0.5rem 2rem; /* compact height */
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* forces everything on one line */
}

.footer-legal-compact {
  display: flex;
  gap: 1rem; /* spacing between links */
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-link:hover {
  color: #9b9b9b;
}

.landing-footer {
  background: rgba(10, 10, 10, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8f9fa;
  margin-bottom: 0.5rem;
}

.footer-brand-tagline {
  color: #a1a1aa;
  font-size: 0.875rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-link-title {
  color: #f8f9fa;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  color: #a1a1aa;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #e5e5e5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-copyright {
  color: #71717a;
  font-size: 0.875rem;
}

.jwt-error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.jwt-error-modal {
  background: rgba(15, 15, 15, 0.98);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
}

.jwt-error-content h3 {
  color: #ef4444;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.jwt-error-content p {
  color: #e5e5e5;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.jwt-error-button {
  background: #ef4444;
  color: white;
  border: 1px solid #ef4444;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.jwt-error-button:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.notification-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  min-width: 320px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.notification-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.125rem;
}

.notification-text {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  color: #f8f9fa;
}

.notification-description {
  font-size: 0.825rem;
  line-height: 1.4;
  color: #d1d5db;
}

.notification-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

.notification-close svg {
  width: 14px;
  height: 14px;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: width linear;
  border-radius: 0 0 12px 12px;
}

.notification.success {
  border-left: 4px solid #10b981;
}

.notification.success .notification-icon {
  color: #10b981;
}

.notification.success .notification-progress {
  background: #10b981;
}

.notification.error {
  border-left: 4px solid #ef4444;
}

.notification.error .notification-icon {
  color: #ef4444;
}

.notification.error .notification-progress {
  background: #ef4444;
}

.notification.warning {
  border-left: 4px solid #f59e0b;
}

.notification.warning .notification-icon {
  color: #f59e0b;
}

.notification.warning .notification-progress {
  background: #f59e0b;
}

.notification.info {
  border-left: 4px solid #3b82f6;
}

.notification.info .notification-icon {
  color: #3b82f6;
}

.notification.info .notification-progress {
  background: #3b82f6;
}

@media (max-width: 768px) {
  .main-content {
    padding: 1.5rem 1rem;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
  }

  .servers-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    padding: 0 1rem;
  }

  .logo-section {
    display: flex;        /* enable flex layout */
    align-items: center;  /* vertically center items */
    gap: 0.75rem;         /* spacing between items */
  }

  .company-name {
    font-size: 1.5rem;
  }

  .profile-stats {
    justify-content: center;
  }

  .server-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }

  .server-dashboard-content {
    padding: 1.5rem;
  }

  .server-nav {
    flex-wrap: wrap;
  }

  .overview-stats {
    grid-template-columns: 1fr;
  }

  .embed-types,
  .role-types {
    flex-direction: column;
  }

  .form-actions,
  .modal-actions {
    flex-direction: column;
  }

  .modal-content {
    padding: 2rem;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .table-cell {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .table-cell:last-child {
    border-bottom: none;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .table-actions {
    justify-content: center;
  }

  .notification-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .notification {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .profile-card {
    padding: 1.5rem;
  }

  .server-card {
    padding: 1.25rem;
  }

  .user-name {
    font-size: 1.75rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .jwt-error-modal {
    padding: 2rem;
    margin: 1rem;
  }

  .jwt-error-content h3 {
    font-size: 1.25rem;
  }

  .jwt-error-content p {
    font-size: 0.9rem;
  }

  .notification-container {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
  }

}