/* Deletion Requests Modal */
.deletion-requests-modal,
.deleted-archive-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.deletion-requests-content,
.deleted-archive-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.deletion-requests-header,
.deleted-archive-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
}

.deletion-requests-header h3,
.deleted-archive-header h3 {
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.deletion-requests-body,
.deleted-archive-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.requests-list,
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.request-item,
.archive-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.request-item:hover,
.archive-item:hover {
  border-color: var(--accent-primary);
  background: var(--bg-elevated);
}

.request-info,
.archive-info {
  flex: 1;
}

.request-title,
.archive-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-meta,
.archive-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.request-meta span,
.archive-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.request-actions,
.archive-actions {
  display: flex;
  gap: 8px;
}

.btn-success-small,
.btn-danger-small,
.btn-secondary-small,
.btn-primary-small {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

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

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

.btn-primary-small {
  background: var(--accent-primary);
  color: white;
}

.btn-success-small:hover,
.btn-danger-small:hover,
.btn-secondary-small:hover,
.btn-primary-small:hover {
  opacity: 0.85;
}

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

.btn-info {
  background: var(--accent-primary);
  color: white;
}

.empty-state-small {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

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

.empty-state-small p {
  font-size: 14px;
  margin: 0;
}

/* Security Alerts */
.security-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.security-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.security-stat-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-elevated);
}

.security-alerts-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-alert-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}

.security-alert-card.high {
  border-color: rgba(247, 118, 142, 0.5);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(247, 118, 142, 0.05) 100%);
}

.security-alert-card.medium {
  border-color: rgba(0, 153, 255, 0.5);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 153, 255, 0.05) 100%);
}

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

.alert-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.alert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.alert-icon.high {
  background: rgba(247, 118, 142, 0.2);
  color: var(--danger);
}

.alert-icon.medium {
  background: rgba(0, 153, 255, 0.2);
  color: var(--warning);
}

.alert-info {
  flex: 1;
}

.alert-info h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.alert-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.alert-severity-badge {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert-severity-badge.high {
  background: rgba(247, 118, 142, 0.2);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.alert-severity-badge.medium {
  background: rgba(0, 153, 255, 0.2);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.alert-body {
  padding: 20px;
}

.alert-details {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.detail-item i {
  color: var(--accent-primary);
}

.affected-accounts h4 {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.accounts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s;
}

.account-chip:hover {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
}

.account-chip i {
  color: var(--accent-primary);
}

.account-chip small {
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

.alert-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.btn-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--warning-muted);
  border: 1px solid var(--warning);
  border-radius: 8px;
  color: var(--warning);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

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

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

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--accent-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-title {
  font-size: 24px;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 32px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 102, 255, 0.2);
  border-top: 4px solid #0066ff;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

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

@keyframes loadingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

/* Modal - Hidden by default */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
  margin: auto;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: var(--accent-primary);
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-body label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-body textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.modal-body textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: all 0.2s;
}

.close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.btn-secondary {
  padding: 10px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--accent-primary);
}

.btn-danger {
  padding: 10px 20px;
  background: #dc2626;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Editor Modal Specific */
#editorModal .modal-content {
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.editor {
  flex: 1;
  width: 100%;
  min-height: 400px;
  padding: 16px;
  background: #0a0a0a;
  border: none;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
}

.editor:focus {
  outline: none;
}

:root {
  --bg-primary: #0B0D13;
  --bg-secondary: #12151C;
  --bg-tertiary: #1A1E28;
  --bg-elevated: #222734;
  --accent-primary: #3B82F6;
  --accent-secondary: #60A5FA;
  --accent-muted: rgba(59, 130, 246, 0.15);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: rgba(148, 163, 184, 0.12);
  --border-subtle: rgba(148, 163, 184, 0.06);
  --success: #22C55E;
  --success-muted: rgba(34, 197, 94, 0.15);
  --danger: #EF4444;
  --danger-muted: rgba(239, 68, 68, 0.15);
  --warning: #F59E0B;
  --warning-muted: rgba(245, 158, 11, 0.15);
  --cpu-color: #3B82F6;
  --memory-color: #8B5CF6;
  --disk-color: #22C55E;
  --network-color: #06B6D4;
  --primary-color: var(--accent-primary);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Login Page */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.05), transparent);
  pointer-events: none;
}

.login-container::after {
  display: none;
}

.login-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-header i {
  font-size: 32px;
  color: var(--accent-primary);
}

.login-header h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-subtitle {
  text-align: center;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

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

.input-wrapper i.input-icon {
  position: absolute;
  left: 18px;
  color: var(--text-secondary);
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-wrapper input {
  width: 100%;
  padding: 16px 50px 16px 50px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}

.input-wrapper input:focus {
  border-color: var(--accent-primary);
  background: rgba(15, 20, 25, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.1);
}

.input-wrapper input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.toggle-password {
  position: absolute;
  right: 18px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  font-size: 16px;
  background: transparent;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.toggle-password:hover {
  color: var(--accent-primary);
  transform: scale(1.1);
}

.toggle-password:active {
  transform: scale(0.95);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0066ff, #0044cc);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.6);
}

.discord-login-btn {
  width: 100%;
  padding: 14px 16px;
  background: #5865F2;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  margin-top: 30px;
}

.discord-login-btn:hover {
  background: #4752C4;
}

.discord-login-btn i {
  font-size: 20px;
}

.login-info {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.login-info p {
  margin: 12px 0;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-info i {
  color: #10b981;
}

.hosting-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.hosting-type-card {
  padding: 30px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.hosting-type-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

/* Admin Connect Page Styles */
.connect-container {
  padding: 20px;
}

.connect-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.connect-search input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
}

.connect-hostings-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.connect-hosting-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.connect-hosting-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.connect-hosting-info {
  flex: 1;
}

.connect-hosting-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.connect-hosting-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.connect-hosting-details h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.connect-hosting-details p {
  margin: 5px 0 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.connect-hosting-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.connect-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.connect-meta-item.status-online {
  color: #10b981;
}

.connect-meta-item.status-offline {
  color: #6b7280;
}

.btn-connect {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.connect-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.connect-card.online {
  border-left: 4px solid #10b981;
}

.connect-card.offline {
  border-left: 4px solid #6b7280;
}

.connect-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.connect-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.connect-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connect-user-info i {
  font-size: 32px;
  color: #5865F2;
}

.connect-username {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.connect-discord-id {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: monospace;
}

.connect-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.connect-status-badge.status-online {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.connect-status-badge.status-offline {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.connect-status-badge i {
  font-size: 8px;
}

.connect-card-body {
  margin-bottom: 20px;
}

.connect-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.connect-info-row:last-child {
  border-bottom: none;
}

.connect-label {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.connect-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.connect-value.code {
  font-family: monospace;
  background: rgba(168, 85, 247, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.connect-card-footer {
  margin-top: 20px;
}

.connect-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

/* Admin Connect Banner */
.admin-connect-banner {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  padding: 16px 24px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 100;
  width: 100%;
}

.admin-connect-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-connect-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.admin-connect-info i {
  font-size: 22px;
  animation: pulse 2s infinite;
}

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

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

.admin-back-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.admin-back-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

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

.admin-disconnect-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.admin-disconnect-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .admin-connect-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-connect-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .admin-back-btn,
  .admin-disconnect-btn {
    flex: 1;
    justify-content: center;
  }
}

.empty-state, .error-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state i, .error-state i {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.error-state {
  color: #ef4444;
}

.hosting-type-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(147, 51, 234, 0.1));
}

.hosting-type-icon {
  font-size: 60px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hosting-type-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.hosting-type-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hosting-type-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.hosting-type-card ul li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.login-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.login-footer p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
}

.login-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.login-footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.login-footer-links a:hover {
  color: var(--accent-primary);
}

.login-footer-links span {
  color: var(--border-color);
}

/* Modern Sidebar */
.sidebar-modern {
  width: 260px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  position: relative;
}

.sidebar-modern::before {
  display: none;
}

/* Brand Header */
.brand-header-modern {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

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

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.brand-logo-icon::after {
  display: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* Server Quick Actions Card */
.server-quick-card {
  margin: 12px;
  padding: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.server-info-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.server-icon-modern {
  width: 36px;
  height: 36px;
  background: var(--memory-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.server-details-compact {
  flex: 1;
  min-width: 0;
}

.server-name-compact {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.server-id-compact {
  font-size: 10px;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  opacity: 0.7;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-action-btn {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.start-action {
  background: var(--success-muted);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.start-action:hover {
  background: rgba(34, 197, 94, 0.2);
}

.restart-action {
  background: var(--warning-muted);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.restart-action:hover {
  background: rgba(245, 158, 11, 0.2);
}

.stop-action {
  background: var(--danger-muted);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.stop-action:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Modern Navigation */
.nav-modern {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.nav-modern .nav-section {
  padding: 14px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-modern .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav-modern .nav-item::before {
  display: none;
}

.nav-modern .nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-modern .nav-item.active {
  background: var(--accent-muted);
  color: var(--accent-primary);
  font-weight: 500;
}

.nav-modern .nav-item.active::before {
  display: none;
}

.nav-modern .nav-item i {
  width: 18px;
  font-size: 15px;
  text-align: center;
}

.nav-modern .nav-item:hover i {
  color: inherit;
}

.nav-modern .nav-item.active i {
  color: var(--accent-primary);
}

/* Modern User Footer */
.user-footer-modern {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.user-card-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.user-card-modern::before {
  display: none;
}

.user-card-modern:hover {
  background: var(--bg-elevated);
  border-color: var(--border-color);
}

.user-avatar-modern {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

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

.user-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #43b581;
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(67, 181, 129, 0.8);
}

.user-info-modern {
  flex: 1;
  min-width: 0;
}

.user-name-modern {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-badge-modern {
  font-size: 10px;
  color: #7289da;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  background: rgba(114, 137, 218, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(114, 137, 218, 0.25);
}

.user-menu-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(114, 137, 218, 0.1);
  border: 1px solid rgba(114, 137, 218, 0.2);
  color: #7289da;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
}

.user-menu-toggle:hover {
  background: rgba(114, 137, 218, 0.2);
  border-color: #7289da;
  color: var(--text-primary);
  transform: rotate(90deg);
}

.user-menu-toggle:active {
  transform: rotate(90deg) scale(0.95);
}

.user-dropdown-menu {
  position: absolute;
  bottom: 72px;
  left: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(36, 40, 59, 0.98) 100%);
  border: 1px solid rgba(114, 137, 218, 0.3);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  animation: slideUpMenu 0.2s ease;
}

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

.dropdown-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
}

.dropdown-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--danger);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 3px;
}

.dropdown-menu-item:hover {
  background: linear-gradient(135deg, rgba(247, 118, 142, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
  color: var(--danger);
  transform: translateX(4px);
}

.dropdown-menu-item:hover::before {
  opacity: 1;
}

.dropdown-menu-item i {
  width: 18px;
  text-align: center;
  font-size: 16px;
}

/* Custom Scrollbar for Navigation */
.nav-modern::-webkit-scrollbar {
  width: 6px;
}

.nav-modern::-webkit-scrollbar-track {
  background: transparent;
}

.nav-modern::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.nav-modern::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  background: var(--bg-secondary);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-tertiary);
  padding: 8px 16px;
  border-radius: 6px;
  width: 300px;
}

.search-bar i {
  color: var(--text-secondary);
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  flex: 1;
  font-size: 14px;
}

.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.top-link:hover {
  color: var(--text-primary);
}

/* Notification Bell */
.notification-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
  cursor: pointer;
}

.notification-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.notification-icon {
  position: relative;
  font-size: 16px;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.notification-text {
  font-weight: 500;
}

/* Notification Panel */
.notification-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  width: 420px;
  max-height: 600px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

.notification-panel.active {
  display: flex;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.notification-panel-header h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-panel-header h3 i {
  color: var(--accent-primary);
}

.notification-close-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close-btn:hover {
  background: #0066cc;
  border-color: #0066cc;
  color: white;
}

.notification-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 500px;
}

.notification-panel-body::-webkit-scrollbar {
  width: 8px;
}

.notification-panel-body::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 4px;
}

.notification-panel-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.notification-panel-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.announcement-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s;
  cursor: pointer;
}

.announcement-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.announcement-item.unread {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.05), transparent);
  border-left-color: var(--accent-primary);
  box-shadow: 0 0 0 1px rgba(0, 153, 255, 0.2);
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.announcement-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-title i {
  color: var(--accent-primary);
}

.announcement-badge {
  padding: 3px 10px;
  background: rgba(0, 153, 255, 0.2);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-time {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.announcement-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.announcement-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.announcement-from {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}

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

.announcement-action-btn {
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.announcement-action-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.no-announcements {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.no-announcements i {
  font-size: 48px;
  color: var(--text-secondary);
  opacity: 0.3;
  margin-bottom: 16px;
  display: block;
}

.no-announcements p {
  font-size: 14px;
  margin: 0;
}

/* Send Announcement Button (Admin) */
.send-announcement-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 153, 255, 0.3);
}

.send-announcement-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.5);
}

/* Send Announcement Modal */
.announcement-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.announcement-modal.active {
  display: flex;
}

.announcement-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

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

.announcement-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.announcement-modal-header h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.announcement-modal-header h3 i {
  color: var(--accent-primary);
}

.announcement-modal-body {
  padding: 24px;
}

.announcement-form-group {
  margin-bottom: 20px;
}

.announcement-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.announcement-form-group input:focus,
.announcement-form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}

.announcement-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.announcement-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.announcement-modal-footer button {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.announcement-send-btn {
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 153, 255, 0.3);
}

.announcement-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.5);
}

.announcement-cancel-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.announcement-cancel-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Pages */
.page {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.page.active {
  display: block;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* New Dashboard Container */
.new-dashboard-container {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Hero Section */
.dashboard-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 18, 30, 0.4) 0%, rgba(10, 12, 20, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.dashboard-hero.python-hero {
  border-color: rgba(59, 130, 246, 0.4);
}

.dashboard-hero.js-hero {
  border-color: rgba(250, 204, 21, 0.4);
}

.dashboard-hero.python-hero:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.15);
}

.dashboard-hero.js-hero:hover {
  border-color: rgba(250, 204, 21, 0.6);
  box-shadow: 0 12px 48px rgba(250, 204, 21, 0.15);
}

.dashboard-hero::after {
  display: none;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.25;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.35;
  }
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.9;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 32px 0;
}

.hero-status-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 700px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  background: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.status-pulse.offline {
  background: #0066cc;
  box-shadow: 0 0 20px rgba(0, 102, 204, 0.6);
  animation: none;
}

.status-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
}

.status-pulse:not(.offline) {
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.status-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.status-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.status-metric i {
  font-size: 20px;
  color: #a78bfa;
}

.metric-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.hero-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  top: 50px;
  right: 200px;
}

.circle-3 {
  width: 150px;
  height: 150px;
  bottom: -50px;
  right: 100px;
}

/* Performance Section */
.performance-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header h2 i {
  color: var(--accent-primary);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
  }
}

/* Modern Metrics Grid */
.metrics-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.metric-modern-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.metric-modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.metric-modern-card:hover::before {
  opacity: 1;
}

.metric-modern-card.cpu-gradient {
  border-color: rgba(139, 92, 246, 0.3);
}

.metric-modern-card.cpu-gradient::before {
  color: #8b5cf6;
}

.metric-modern-card.memory-gradient {
  border-color: rgba(236, 72, 153, 0.3);
}

.metric-modern-card.memory-gradient::before {
  color: #ec4899;
}

.metric-modern-card.network-gradient {
  border-color: rgba(6, 182, 212, 0.3);
}

.metric-modern-card.network-gradient::before {
  color: #06b6d4;
}

.metric-modern-card.storage-gradient {
  border-color: rgba(16, 185, 129, 0.3);
}

.metric-modern-card.storage-gradient::before {
  color: #10b981;
}

.metric-modern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.metric-modern-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.metric-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.cpu-gradient .metric-icon-wrapper {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.memory-gradient .metric-icon-wrapper {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.network-gradient .metric-icon-wrapper {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.storage-gradient .metric-icon-wrapper {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.storage-progress-container {
  margin: 20px 0;
}

.storage-progress-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.storage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 6px;
  transition: width 0.5s ease, background 0.3s ease;
  position: relative;
}

.storage-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.storage-progress-fill.warning {
  background: linear-gradient(90deg, #0099ff, #0077cc);
}

.storage-progress-fill.critical {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.storage-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

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

.storage-upgrade-link {
  font-size: 12px;
  color: #10b981;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.storage-upgrade-link:hover {
  color: #059669;
}

.metric-info-text {
  flex: 1;
}

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

.metric-modern-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.metric-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.metric-modern-chart {
  height: 80px;
  margin: 20px -8px 0;
}

.metric-modern-chart svg {
  width: 100%;
  height: 100%;
}

.metric-modern-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.metric-footer-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Info Grid Modern */
.info-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.info-modern-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.info-modern-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.info-modern-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.info-modern-header i {
  font-size: 20px;
  color: var(--accent-primary);
}

.info-modern-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.info-modern-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-row-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row-modern:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-key {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-key i {
  font-size: 14px;
  color: var(--accent-primary);
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.info-value.code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--accent-secondary);
}

.activity-log {
  max-height: 250px;
  overflow-y: auto;
}

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

.activity-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.quick-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.2s;
}

.quick-stat-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.quick-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.quick-stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.quick-stat-icon.blue {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
}

.quick-stat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.quick-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.quick-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Dashboard Modern Layout */
.dashboard-modern {
  padding: 0;
}

.dashboard-header-modern {
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 24px;
}

.dashboard-title-section h1 {
  font-size: 28px;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-title-section h1 i {
  color: var(--accent-primary);
}

.dashboard-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Metrics Grid Enhanced */
.metrics-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card-enhanced {
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.8) 0%, rgba(36, 40, 59, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.metric-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.5;
}

.metric-card-enhanced.cpu-card::before {
  color: #a855f7;
}

.metric-card-enhanced.memory-card::before {
  color: #ec4899;
}

.metric-card-enhanced.network-card::before {
  color: #00aaff;
}

.metric-card-enhanced:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.metric-header-enhanced {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.metric-icon-enhanced {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
  position: relative;
}

.metric-icon-enhanced.cpu-icon {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.metric-icon-enhanced.memory-icon {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.metric-icon-enhanced.network-icon {
  background: linear-gradient(135deg, #00aaff 0%, #0099ff 100%);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

.metric-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-label-enhanced {
  font-size: 11px;
  color: rgba(192, 202, 245, 0.6);


/* User Details Modal */
.user-details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.user-details-modal {
  background: var(--bg-secondary);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.user-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
}

.user-details-title {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-primary);
}

.user-details-title i {
  font-size: 28px;
  color: var(--primary-color);
}

.user-details-title h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.close-modal-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.user-details-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.details-section {
  background: var(--bg-tertiary);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.section-title i {
  color: var(--primary-color);
  font-size: 20px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.detail-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.detail-value.code {
  font-family: 'Courier New', monospace;
  background: var(--bg-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #a78bfa;
  border: 1px solid var(--border-color);
}

.ip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.ip-badge {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

.user-details-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

.status-badge.offline {
  background: rgba(0, 102, 204, 0.2);
  color: #0066cc;
  border: 1px solid rgba(0, 102, 204, 0.3);
}

.status-badge.suspended {
  background: rgba(245, 158, 11, 0.2);
  color: #0099ff;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric-values {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.metric-value-enhanced {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.metric-limit-enhanced {
  font-size: 14px;
  color: rgba(192, 202, 245, 0.5);
  font-weight: 500;
}

.metric-separator-enhanced {
  font-size: 20px;
  color: rgba(192, 202, 245, 0.4);
  margin: 0 2px;
}

.chart-container-enhanced {
  height: 100px;
  margin-top: 16px;
  position: relative;
}

/* Info Section Grid */
.info-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.info-card-enhanced {
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.8) 0%, rgba(36, 40, 59, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.info-card-enhanced:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-card-header {
  display: flex;
  align-items: center;

/* Servers Page - Modern Grid Layout */
.servers-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.servers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.servers-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.servers-header-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.servers-header h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.servers-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.servers-header-stats {
  display: flex;
  gap: 12px;
}

.servers-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.servers-stat-pill i.status-online {
  color: var(--success);
  font-size: 8px;
}

.servers-stat-pill i.fa-server {
  color: var(--accent-primary);
}

/* Servers Grid */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

/* Server Card Base */
.server-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.server-card:hover::before {
  opacity: 1;
}

/* Python Server Styling */
.server-card.python-server {
  border-color: rgba(55, 118, 171, 0.3);
}

.server-card.python-server::before {
  color: #3776ab;
}

.server-card.python-server:hover {
  border-color: rgba(55, 118, 171, 0.6);
  box-shadow: 0 12px 32px rgba(55, 118, 171, 0.2);
}

/* JavaScript Server Styling */
.server-card.javascript-server {
  border-color: rgba(104, 160, 99, 0.3);
}

.server-card.javascript-server::before {
  color: #68a063;
}

.server-card.javascript-server:hover {
  border-color: rgba(104, 160, 99, 0.6);
  box-shadow: 0 12px 32px rgba(104, 160, 99, 0.2);
}

/* Generic Server Styling */
.server-card.generic-server {
  border-color: rgba(139, 92, 246, 0.3);
}

.server-card.generic-server::before {
  color: #8b5cf6;
}

.server-card.generic-server:hover {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

.server-card:hover {
  transform: translateY(-4px);
}

/* Server Card Header */
.server-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.server-language-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.server-language-badge i {
  font-size: 16px;
}

.server-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.server-status-indicator.status-online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.server-status-indicator.status-offline {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-online .status-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px currentColor;
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px currentColor;
  }
}

/* Server Card Body */
.server-card-body {
  padding: 24px 20px;
}

.server-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.server-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

.server-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, currentColor, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}

.python-server-icon {
  background: linear-gradient(135deg, #3776ab, #2563eb);
  color: #ffd43b;
}

.javascript-server-icon {
  background: linear-gradient(135deg, #68a063, #3c873a);
  color: #f0db4f;
}

.generic-server-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.server-info {
  text-align: center;
  margin-bottom: 16px;
}

.server-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
}

.server-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.server-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.server-meta-item i {
  color: var(--accent-primary);
  font-size: 11px;
}

.server-resources {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.resource-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.resource-mini i {
  color: var(--accent-primary);
  font-size: 14px;
}

/* Server Card Footer */
.server-card-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.server-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.manage-btn {
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.manage-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.start-btn {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  flex: 0 0 48px;
  padding: 12px;
}

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

.stop-btn {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  flex: 0 0 48px;
  padding: 12px;
}

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

.server-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Empty State */
.empty-servers-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  text-align: center;
}

.empty-servers-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: white;
  margin-bottom: 32px;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.empty-servers-state h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.empty-servers-state p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px 0;
}

.create-server-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.create-server-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6);
}

/* Quick Action Cards Row */
.quick-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.quick-action-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quick-action-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quick-action-text h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-action-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Discord Card */
.discord-card .quick-action-icon {
  background: linear-gradient(135deg, #5865F2, #4752c4);
  color: white;
}

.discord-card:hover {
  border-color: rgba(88, 101, 242, 0.5);
}

/* Billing Card */
.billing-card .quick-action-icon {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: white;
}

.billing-card:hover {
  border-color: rgba(236, 72, 153, 0.5);
}

/* Support Card */
.support-card .quick-action-icon {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}

.support-card:hover {
  border-color: rgba(249, 115, 22, 0.5);
}

/* Status Card */
.status-card .quick-action-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.status-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
}

/* Welcome Back Banner */
.welcome-back-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 24px;
}

.welcome-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.welcome-text h2 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.welcome-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Servers List (New Design) */
.servers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.server-list-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.server-list-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.server-list-card.python-theme::before {
  background: linear-gradient(180deg, #3776ab, #ffd43b);
}

.server-list-card.nodejs-theme::before {
  background: linear-gradient(180deg, #83CD29, #68a063);
}

.server-list-card.generic-theme::before {
  background: linear-gradient(180deg, #8b5cf6, #7c3aed);
}

.server-list-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.server-list-card.python-theme:hover {
  border-color: rgba(55, 118, 171, 0.5);
}

.server-list-card.nodejs-theme:hover {
  border-color: rgba(131, 205, 41, 0.5);
}

.server-list-card-content {
  padding: 20px 24px;
}

.server-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.server-list-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.server-lang-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-lang-logo.python-logo svg,
.server-lang-logo.nodejs-logo svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.server-lang-logo.generic-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-radius: 12px;
  font-size: 28px;
  color: white;
}

.server-list-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.server-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 80px;
}

.detail-label i {
  font-size: 14px;
  color: var(--accent-primary);
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.manage-server-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.manage-server-btn:hover {
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Servers Footer */
.servers-footer {
  text-align: center;
  padding: 40px 20px 20px;
  color: var(--text-secondary);
}

.servers-footer p {
  margin: 0 0 4px 0;
  font-size: 13px;
}

.servers-footer .designed-by {
  font-size: 12px;
  opacity: 0.6;
}

/* Responsive Design for Quick Actions */
@media (max-width: 1200px) {
  .quick-actions-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .quick-actions-row {
    grid-template-columns: 1fr;
  }
  
  .welcome-back-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .servers-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

@media (max-width: 768px) {
  .servers-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .servers-header-stats {
    width: 100%;
    justify-content: center;
  }
  
  .servers-grid {
    grid-template-columns: 1fr;
  }
  
  .server-card-footer {
    flex-direction: column;
  }
  
  .start-btn,
  .stop-btn {
    flex: 1;
  }
}

  gap: 12px;
  padding: 20px 24px;
  background: rgba(15, 20, 25, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card-header i {
  font-size: 20px;
  color: var(--accent-primary);
}

.info-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.info-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.info-item-enhanced:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label-new {
  font-size: 14px;
  color: rgba(192, 202, 245, 0.6);
  font-weight: 500;
}

.info-value-new {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.info-value-new.code-text {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(122, 162, 247, 0.9);
}

.status-badge-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-badge-enhanced i {
  font-size: 8px;
}

.status-badge-enhanced.online {
  background: rgba(158, 206, 106, 0.15);
  color: #9ece6a;
  border: 1px solid rgba(158, 206, 106, 0.3);
}

.status-badge-enhanced.offline {
  background: rgba(247, 118, 142, 0.15);
  color: #f7768e;
  border: 1px solid rgba(247, 118, 142, 0.3);
}

.error-log-enhanced {
  padding: 20px 24px;
  max-height: 300px;
  overflow-y: auto;
}

.error-log-empty-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: rgba(158, 206, 106, 0.7);
  font-size: 14px;
  text-align: center;
}

.error-log-empty-new i {
  font-size: 24px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-card.cpu-metric::before {
  color: #a855f7;
}

.metric-card.memory-metric::before {
  color: #ec4899;
}

.metric-card.network-metric::before {
  color: #00aaff;
}

.metric-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.metric-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.metric-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
  position: relative;
  background: var(--bg-tertiary);
}

.cpu-metric .metric-icon {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.memory-metric .metric-icon {
  background: linear-gradient(135deg, #ec4899, #db2777);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.network-metric .metric-icon {
  background: linear-gradient(135deg, #00aaff, #0099ff);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.metric-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.metric-limit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.metric-separator {
  margin: 0 6px;
  color: var(--text-secondary);
}

.chart-container {
  height: 90px;
  margin-top: 16px;
  position: relative;
}

.metric-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.metric-chart path {
  transition: d 0.3s ease;
}

/* Modern Stats Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}


/* Manual Module Installation Styles */
.modules-manual-install {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.install-title-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.install-icon-badge {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.install-title-text h1 {
  font-size: 28px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.install-title-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.install-command-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.install-command-section label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.command-input-group {
  display: flex;
  gap: 12px;
}

.command-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.command-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.install-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
}

.command-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}

.installed-packages-section,
.install-logs-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.installed-packages-section h3,
.install-logs-section h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.installed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.package-item {
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.package-item:hover {
  border-color: #2563eb;
  transform: translateX(4px);
}

.package-item i {
  color: #2563eb;
}

.no-packages,
.loading-packages {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-style: italic;
}

.install-logs-container {
  max-height: 300px;
  overflow-y: auto;
  background: #000000;
  border-radius: 10px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.log-item {
  padding: 6px 0;
  color: #10b981;
  border-left: 3px solid transparent;
  padding-left: 12px;
  margin-bottom: 4px;
}

.log-item.error {
  color: #ef4444;
  border-left-color: #ef4444;
}

.log-item.installing {
  color: #2563eb;
  border-left-color: #2563eb;
}

.log-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

/* Restarting Status Styles */
.bot-status-card.restarting {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), transparent);
}

.bot-status-orb.restarting {
  background: #0099ff;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  animation: restartPulse 1s infinite;
}

@keyframes restartPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.bot-status-badge.restarting {
  background: rgba(245, 158, 11, 0.2);
  color: #0099ff;
  border: 1px solid #0099ff;
}

.stat-card-modern {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon-modern {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.cpu-card .stat-icon-modern {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.memory-card .stat-icon-modern {
  background: linear-gradient(135deg, #ff8c69, #ff7961);
}

.disk-card .stat-icon-modern {
  background: linear-gradient(135deg, #ff9966, #ff8854);
}

.network-card .stat-icon-modern {
  background: linear-gradient(135deg, #ff7733, #ff6622);
}

.stat-details {
  flex: 1;
}

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

.stat-value-modern {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Server Info Cards */
.server-info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.server-info-card-modern {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.server-info-card-modern h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e0e6ed;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-log-container {
  max-height: 200px;
  overflow-y: auto;
  padding: 5px;
}

.error-log-empty {
  color: #64748b;
  font-size: 14px;
  padding: 10px;
  text-align: center;
}

.error-log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.error-log-item.error {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  color: #fca5a5;
}

.error-log-item.warning {
  background: rgba(251, 191, 36, 0.1);
  border-left: 3px solid #00aaff;
  color: #fcd34d;
}

.error-log-item.success {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
  color: #86efac;
}

.error-log-item i {
  margin-top: 2px;
  flex-shrink: 0;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row-modern:last-child {
  border-bottom: none;
}

.info-label-modern {
  font-size: 14px;
  color: var(--text-secondary);
}

.status-badge-modern {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge-modern.online {
  background: rgba(158, 206, 106, 0.2);
  color: var(--success);
}

.status-badge-modern.offline {
  background: rgba(247, 118, 142, 0.2);
  color: var(--danger);
}

/* Console Panel - Redesigned */
.console-page-redesign {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  gap: 0;
}

.console-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px 12px 0 0;
}

.console-status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 12px var(--danger);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.console-actions-bar {
  display: flex;
  gap: 10px;
}

.console-control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
}

.console-control-btn:hover {
  background: var(--border-color);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.console-control-btn[data-active="true"] {
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  border-color: var(--accent-primary);
  color: white;
}

.console-metrics-compact {
  display: flex;
  gap: 20px;
  padding: 12px 24px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.metric-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.metric-compact i {
  font-size: 16px;
}

.metric-compact.cpu i {
  color: #a855f7;
}

.metric-compact.memory i {
  color: #ec4899;
}

.metric-compact.uptime i {
  color: #10b981;
}

.metric-compact.logs i {
  color: #00aaff;
}

.metric-compact span {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--text-primary);
}

.console-terminal-container {
  flex: 1;
  background: #0d1117;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.console-terminal {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #c9d1d9;
}

.console-welcome-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
  opacity: 0.6;
}

.console-welcome-message i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.console-welcome-message p {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.console-welcome-message small {
  font-size: 13px;
}

.console-log-line {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  border-left: 3px solid transparent;
  padding-left: 8px;
  transition: all 0.2s;
}

.console-log-line:hover {
  background: rgba(255, 255, 255, 0.02);
  border-left-color: var(--accent-primary);
}

.log-timestamp {
  color: #6e7681;
  font-size: 11px;
  flex-shrink: 0;
  user-select: none;
}

.log-content {
  flex: 1;
  color: #c9d1d9;
  word-break: break-word;
}

.console-log-line.log-error {
  border-left-color: var(--danger);
}

.console-log-line.log-error .log-content {
  color: #ff7b72;
}

.console-log-line.log-warning {
  border-left-color: var(--warning);
}

.console-log-line.log-warning .log-content {
  color: #f0c674;
}

.console-log-line.log-success {
  border-left-color: var(--success);
}

.console-log-line.log-success .log-content {
  color: #56d364;
}

.console-log-line.log-info {
  border-left-color: var(--accent-secondary);
}

.console-log-line.log-info .log-content {
  color: #79c0ff;
}

.console-command-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0 0 12px 12px;
}

.console-prompt-char {
  color: var(--accent-primary);
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
}

#consoleCommandInput {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

#consoleCommandInput:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}

.console-send-btn {
  padding: 10px 20px;
  background: var(--accent-primary);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.console-send-btn:hover {
  background: #ff5722;
  transform: translateY(-1px);
}

/* Custom scrollbar for console terminal */
.console-terminal::-webkit-scrollbar {
  width: 10px;
}

.console-terminal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.console-terminal::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

.console-terminal::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Settings Page - Modern Design */
.settings-page-modern {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-header-modern {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.settings-title-section h2 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.settings-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.settings-card-modern {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.settings-card-modern:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.settings-card-header-modern {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.settings-icon-modern {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.settings-icon-modern.server-icon {
  background: linear-gradient(135deg, #7aa2f7, #7dcfff);
}

.settings-icon-modern.debug-icon {
  background: linear-gradient(135deg, #0099ff, #00aaff);
}

.settings-icon-modern.notification-icon {
  background: linear-gradient(135deg, #73daca, #41a6b5);
}

.settings-icon-modern.danger-icon {
  background: linear-gradient(135deg, #f7768e, #db4b4b);
}

.settings-card-header-modern h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.settings-card-header-modern p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.settings-card-body-modern {
  padding: 20px;
}

.settings-form-group {
  margin-bottom: 16px;
}

.settings-form-group:last-of-type {
  margin-bottom: 20px;
}

.settings-form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.settings-input, .settings-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.settings-input:focus, .settings-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}

.settings-textarea {
  resize: vertical;
}

.settings-save-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-save-btn:hover {
  background: #ff5722;
  transform: translateY(-1px);
}


.copy-icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-icon-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.settings-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
}

.settings-action-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.settings-action-btn.primary {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: white;
}

.settings-action-btn.primary:hover {
  background: #6bb7e8;
}

.debug-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.debug-item-modern {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}

.debug-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.debug-item-label i {
  color: var(--accent-primary);
}

.debug-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
}

.settings-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.settings-toggle-item:last-child {
  border-bottom: none;
}

.toggle-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.toggle-info > i {
  font-size: 18px;
  color: var(--accent-primary);
  margin-top: 2px;
}

.toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

.toggle-switch-new {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch-new input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-new {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: 0.3s;
  border-radius: 28px;
  border: 2px solid var(--border-color);
}

.slider-new:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

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

input:checked + .slider-new:before {
  transform: translateX(24px);
}

.danger-zone-card {
  border-color: rgba(247, 118, 142, 0.3);
}

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

.danger-action-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.danger-action-modern:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.danger-action-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.danger-action-info > i {
  font-size: 18px;
  color: var(--danger);
  margin-top: 2px;
}

.danger-action-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.danger-action-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.danger-btn-modern {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(247, 118, 142, 0.1);
  border: 1px solid var(--danger);
  border-radius: 6px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.danger-btn-modern:hover {
  background: var(--danger);
  color: white;
  transform: translateY(-1px);
}

/* File Manager - Modern Design */
.files-page-modern {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.files-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.files-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.files-breadcrumb i:first-child {
  color: var(--accent-primary);
  font-size: 18px;
}

.breadcrumb-item {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb-item.clickable {
  cursor: pointer;
  transition: color 0.2s;
}

.breadcrumb-item.clickable:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.files-breadcrumb .fa-chevron-right {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Folder card styling */
.folder-card-modern {
  cursor: pointer;
}

.folder-card-modern:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.folder-card-modern .folder-icon {
  background: rgba(255, 193, 7, 0.1);
}

.folder-card-modern .folder-icon i {
  color: #0099ff;
}

/* Menu show state */
.file-menu-modern.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.files-actions-modern {
  display: flex;
  gap: 10px;
}

.language-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.files-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.files-action-btn:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.files-action-btn.primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.files-action-btn.primary:hover {
  background: #ff5722;
}

.files-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.files-search-bar i {
  color: var(--text-secondary);
  font-size: 16px;
}

.files-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
}

.files-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.file-card-modern {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.file-card-modern:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.file-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 10px;
  font-size: 22px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.file-card-info {
  flex: 1;
  min-width: 0;
}

.file-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.file-dot {
  opacity: 0.5;
}

.file-card-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.file-card-modern:hover .file-card-actions {
  opacity: 1;
}

.file-card-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.file-card-action-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.file-menu-modern {
  position: fixed;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  padding: 6px 0;
  display: none;
}

.file-menu-modern.active {
  display: block;
}

.file-menu-modern button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  text-align: left;
}

.file-menu-modern button:hover {
  background: var(--bg-tertiary);
}

.file-menu-modern button i {
  width: 16px;
  text-align: center;
}

/* Database Management */
.database-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.db-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.db-key {
  font-weight: 600;
  color: var(--accent-primary);
  min-width: 150px;
}

.db-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Backups - Modern Design */
.backups-page-modern {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.backups-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.backups-title-section h2 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.backups-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.btn-primary-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary-modern:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

.backups-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.backup-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.backup-stat-card i {
  font-size: 32px;
  color: var(--accent-primary);
}

.backup-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.backup-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

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

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

.backups-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.backups-empty-state i {
  font-size: 64px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.backups-empty-state h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.backups-empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.backup-card-modern {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.backup-card-modern:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.backup-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.backup-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-primary), #ff5722);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.backup-card-title h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

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

.backup-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.backup-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.backup-detail i {
  width: 20px;
  color: var(--accent-primary);
}

.backup-card-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.backup-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.backup-action-btn:hover {
  transform: translateY(-2px);
}

.backup-action-btn.restore:hover {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.backup-action-btn.download:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: white;
}

.backup-action-btn.delete:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

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

.backup-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.backup-info h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.backup-info p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 4px 0;
}

/* Environment Variables */
.env-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.env-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.env-key {
  font-weight: 600;
  color: var(--accent-secondary);
  min-width: 200px;
}

.env-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  color: var(--text-secondary);
}

/* Analytics */
.analytics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.analytics-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.analytics-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.analytics-card p {
  font-size: 14px;
  margin: 8px 0;
  color: var(--text-secondary);
}

/* Schedules */
.schedules-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

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

.schedule-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.schedule-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.schedule-card.disabled {
  opacity: 0.6;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.schedule-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.schedule-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  width: fit-content;
}

.schedule-type-badge.interval {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.schedule-type-badge.daily {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.schedule-type-badge.weekly {
  background: rgba(245, 158, 11, 0.2);
  color: #00aaff;
}

.schedule-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: 8px;
}

.schedule-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.schedule-detail i {
  width: 16px;
  color: var(--accent-primary);
}

.schedule-detail strong {
  color: var(--text-primary);
}

.result-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
}

.result-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.result-badge.failed, .result-badge.error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.schedule-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-actions .btn-action {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  border: none;
}

.schedule-actions .btn-action.run {
  background: var(--accent-primary);
  color: white;
}

.schedule-actions .btn-action.run:hover {
  background: var(--accent-hover);
}

.schedule-actions .btn-action.edit {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.schedule-actions .btn-action.edit:hover {
  background: rgba(99, 102, 241, 0.3);
}

.schedule-actions .btn-action.delete {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.schedule-actions .btn-action.delete:hover {
  background: rgba(239, 68, 68, 0.3);
}

.empty-state-box {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
}

.empty-state-box i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state-box h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-box p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Modal Overlay - Used for schedule and other modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
  padding: 20px;
}

.modal-overlay .modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

.modal-overlay .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  border-radius: 16px 16px 0 0;
}

.modal-overlay .modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.modal-overlay .modal-header h2 i {
  color: var(--accent-primary);
}

.modal-overlay .modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: all 0.2s;
}

.modal-overlay .modal-close:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-overlay .modal-body {
  padding: 24px;
}

.modal-overlay .modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: 0 0 16px 16px;
}

/* Schedule Modal */
.schedule-modal {
  max-width: 500px;
}

.schedule-modal .form-group {
  margin-bottom: 16px;
}

.schedule-modal label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.schedule-modal input[type="text"],
.schedule-modal input[type="number"],
.schedule-modal input[type="time"],
.schedule-modal select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
}

.schedule-modal input:focus,
.schedule-modal select:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.schedule-modal .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.schedule-modal .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.schedule-type-fields {
  transition: all 0.3s ease;
}

.schedule-header h3 {
  font-size: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

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

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

/* Drag and Drop */
.files-grid-modern.drag-over {
  border: 2px dashed var(--accent-primary);
  background: rgba(0, 153, 255, 0.05);
}

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

.files-action-btn.danger:hover {
  background: #dc2626;
}

/* Templates */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.template-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-card h3 {
  color: var(--text-primary);
  font-size: 18px;
}

.template-card p {
  color: var(--text-secondary);
  font-size: 14px;
  flex: 1;
}

.template-lang {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-primary);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.files-loading,
.files-empty-state,
.files-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  grid-column: 1 / -1;
}

.files-loading i,
.files-empty-state i,
.files-error-state i {
  font-size: 48px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.files-empty-state h3,
.files-error-state h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.files-empty-state p,
.files-error-state p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Problems Page Styles */
.problems-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-tertiary);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.problems-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.problem-card.warning {
  border-left: 4px solid #0099ff;
}

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

.problem-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.problem-severity {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.problem-card.error .problem-severity {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.problem-card.warning .problem-severity {
  background: rgba(245, 158, 11, 0.1);
  color: #0099ff;
}

.problem-card.info .problem-severity {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.problem-type {
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.problem-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-secondary);
}

.problem-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 14px;
}

.problem-account i {
  color: var(--primary-color);
}

.problem-details {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.problem-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-secondary-small,
.btn-primary-small {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary-small {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary-small:hover {
  background: var(--border-color);
}

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

.btn-primary-small:hover {
  background: var(--primary-hover);
}

.files-loading i {
  color: var(--accent-primary);
}

.files-error-state i {
  color: var(--danger);
}

/* Fullscreen File Editor */
.file-editor-modal-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.editor-container-fullscreen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.editor-header-fullscreen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.editor-title-fullscreen {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-primary);
}

.editor-actions {
  display: flex;
  gap: 10px;
}

.editor-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.editor-action-btn:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.editor-action-btn.danger {
  color: var(--danger);
}

.editor-action-btn.danger:hover {
  background: rgba(247, 118, 142, 0.2);
}

.editor-body-fullscreen {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.editor-sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.editor-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-item-editor label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-item-editor span {
  font-size: 14px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
}

.language-select-fullscreen {
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.editor-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.stat-item-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-item-editor i {
  width: 20px;
  color: var(--accent-primary);
}

.code-editor-fullscreen {
  flex: 1;
  padding: 24px;
  background: var(--bg-primary);
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  resize: none;
  tab-size: 2;
}

/* File Actions Dropdown */
.file-actions-dropdown {
  position: relative;
}

.file-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 4px 0;
  margin-top: 4px;
}

.file-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  text-align: left;
}

.file-menu button:first-child {
  border-radius: 8px 8px 0 0;
}

.file-menu button:last-child {
  border-radius: 0 0 8px 8px;
}

.file-menu button i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.file-menu button:hover {
  background: var(--bg-tertiary);
}

.file-menu button.danger-menu-item {
  color: var(--danger);
}

.file-menu button.danger-menu-item:hover {
  background: rgba(247, 118, 142, 0.1);
}

/* Startup Page - Redesigned */
.startup-page-redesign {
  padding: 0;
}

.startup-header-redesign {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 28px;
}

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

.icon-wrapper {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.3);
}

.header-left h2 {
  font-size: 26px;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  font-weight: 700;
}

.header-left p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.save-config-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 153, 255, 0.3);
}

.save-config-btn:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.4);
}

.startup-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.config-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}

.config-section:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.primary-section {
  grid-column: span 2;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.section-header i {
  font-size: 22px;
  color: var(--accent-primary);
}

.section-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.section-body {
  padding: 24px;
}

.input-field {
  margin-bottom: 24px;
}

.input-field:last-child {
  margin-bottom: 0;
}

.input-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.input-field label i {
  color: var(--accent-secondary);
  font-size: 16px;
}

.input-field input[type="text"],
.input-field select,
.input-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.input-field textarea {
  font-family: 'Courier New', monospace;
  resize: vertical;
  min-height: 100px;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15);
}

.input-field small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.command-display {
  position: relative;
}

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

.command-output {
  background: linear-gradient(135deg, #1a1f2e 0%, #24283b 100%);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.command-output code {
  color: #7aa2f7;
  font-size: 15px;
  font-family: 'Courier New', monospace;
  line-height: 1.6;
}

.copy-command-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-command-btn:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: white;
}

.install-deps-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #7aa2f7, #7dcfff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
}

.install-deps-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 162, 247, 0.4);
}

.toggle-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

.toggle-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.toggle-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

.toggle-content > i {
  font-size: 20px;
  color: var(--accent-primary);
  margin-top: 2px;
}

.toggle-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.toggle-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.toggle-switch-new {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch-new input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-new {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: 0.3s;
  border-radius: 28px;
  border: 2px solid var(--border-color);
}

.slider-new:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

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

input:checked + .slider-new:before {
  transform: translateX(24px);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.2s;
}

.resource-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.resource-icon.cpu {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}

.resource-icon.memory {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.resource-icon.disk {
  background: linear-gradient(135deg, #0099ff, #0077cc);
}

.resource-icon.network {
  background: linear-gradient(135deg, #10b981, #059669);
}

.resource-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resource-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.resource-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 1200px) {
  .startup-content-grid {
    grid-template-columns: 1fr;
  }

  .primary-section {
    grid-column: span 1;
  }
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.card-icon.cpu-icon {
  background: var(--cpu-color);
}

.card-icon.memory-icon {
  background: var(--memory-color);
}

.card-icon.disk-icon {
  background: var(--disk-color);
}

.card-title {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.card-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Hosting Accounts */
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.hosting-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.hosting-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.hosting-card-header h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.hosting-info {
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.info-item i {
  width: 20px;
  color: var(--accent-primary);
}

.hosting-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.online {
  background: var(--success-muted);
  color: var(--success);
}

.status-badge.offline {
  background: var(--danger-muted);
  color: var(--danger);
}

/* User Details Modal */
.user-details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.user-details-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.user-details-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.user-details-header .header-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
}

.user-details-header h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.user-detail-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  font-family: 'Courier New', monospace;
}

.user-details-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.detail-section.danger-section {
  border-color: rgba(247, 118, 142, 0.3);
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(247, 118, 142, 0.05) 100%);
}

.section-header-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.section-header-detail i {
  font-size: 18px;
  color: var(--accent-primary);
}

.section-header-detail h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.detail-item-full {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.detail-label-full {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-label-full i {
  width: 16px;
  text-align: center;
  color: var(--accent-primary);
}

.detail-value-full {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.detail-value-full.code-text {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--accent-secondary);
}

.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
}

.activity-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
}

.activity-text {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 6px;
}

.activity-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.activity-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.empty-text {
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
  font-size: 14px;
}

.user-details-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.detail-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
}

.detail-action-btn:hover {
  transform: translateY(-2px);
}

.detail-action-btn.spectate {
  background: linear-gradient(135deg, var(--accent-secondary), #5a9fd6);
  border-color: var(--accent-secondary);
  color: white;
}

.detail-action-btn.spectate:hover {
  box-shadow: 0 4px 12px rgba(122, 162, 247, 0.4);
}

.detail-action-btn.manage {
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  border-color: var(--accent-primary);
  color: white;
}

.detail-action-btn.manage:hover {
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.4);
}

.detail-action-btn.logs {
  background: linear-gradient(135deg, var(--success), #7fb85e);
  border-color: var(--success);
  color: white;
}

.detail-action-btn.logs:hover {
  box-shadow: 0 4px 12px rgba(158, 206, 106, 0.4);
}

/* Notification Button */
.notification-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.1), rgba(122, 162, 247, 0.1));
  border: 1px solid rgba(0, 153, 255, 0.3);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.notification-btn:hover {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.2), rgba(122, 162, 247, 0.2));
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

.notification-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.notification-icon i {
  font-size: 18px;
  color: var(--accent-primary);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  border: 2px solid var(--bg-secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.notification-text {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* User Management - Modern Design */
.user-management-modern {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.user-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.user-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.user-stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.stat-icon-wrapper.active {
  background: linear-gradient(135deg, var(--success), #7fb85e);
}

.stat-icon-wrapper.warning {
  background: linear-gradient(135deg, var(--warning), #d4a654);
}

.stat-icon-wrapper.danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
}

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

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.user-search-modern {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.user-search-modern i {
  font-size: 18px;
  color: var(--text-secondary);
}

.user-search-modern input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
}

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

.user-card-modern {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}

.user-card-modern:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.user-card-modern.suspicious {
  border-color: rgba(0, 153, 255, 0.5);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 153, 255, 0.05) 100%);
}

.user-card-modern.banned {
  border-color: rgba(247, 118, 142, 0.5);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(247, 118, 142, 0.05) 100%);
}

.user-card-modern.suspended {
  border-color: rgba(0, 153, 255, 0.5);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 153, 255, 0.05) 100%);
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

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

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.user-id {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.user-status-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.user-status-badge.active {
  background: rgba(158, 206, 106, 0.2);
  color: var(--success);
}

.user-status-badge.banned {
  background: rgba(247, 118, 142, 0.2);
  color: var(--danger);
}

.user-status-badge.suspended {
  background: rgba(0, 153, 255, 0.2);
  color: var(--warning);
}

.user-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.user-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-label i {
  width: 16px;
  text-align: center;
  color: var(--accent-primary);
}

.detail-value {
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.type-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-badge.bot {
  background: rgba(158, 206, 106, 0.2);
  color: var(--success);
}

.type-badge.website {
  background: rgba(122, 162, 247, 0.2);
  color: var(--accent-secondary);
}

.type-badge.python {
  background: rgba(122, 162, 247, 0.2);
  color: var(--accent-secondary);
}

.type-badge.javascript {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning);
}

.user-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 153, 255, 0.1);
  border: 1px solid rgba(0, 153, 255, 0.3);
  border-radius: 8px;
  margin-top: 8px;
}

.user-warning i {
  font-size: 18px;
  color: var(--warning);
}

.user-warning span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.user-card-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.user-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-action-btn:hover {
  transform: translateY(-2px);
}

.user-action-btn.info {
  color: var(--accent-secondary);
}

.user-action-btn.info:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: white;
}

.user-action-btn.warning {
  color: var(--warning);
}

.user-action-btn.warning:hover {
  background: var(--warning);
  border-color: var(--warning);
  color: white;
}

.user-action-btn.success {
  color: var(--success);
}

.user-action-btn.success:hover {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.user-action-btn.danger {
  color: var(--danger);
}

.user-action-btn.danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.empty-state-modern,
.error-state-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-state-modern i,
.error-state-modern i {
  font-size: 64px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state-modern h3,
.error-state-modern h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-modern p,
.error-state-modern p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Old styles for backward compatibility */
.suspicious-row {
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid var(--warning);
}

.banned-row {
  background: rgba(247, 118, 142, 0.1);
  border-left: 3px solid var(--danger);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.badge-warning {
  background: var(--warning);
  color: #000;
}

.badge-info {
  background: var(--accent-primary);
  color: #fff;
}

.action-buttons {
  display: flex;
  gap: 5px;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-details-modal {
  max-height: 70vh;
  overflow-y: auto;
}

.user-details-modal h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 5px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.info-item {
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.warning-box {
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid var(--warning);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.danger-box {
  background: rgba(247, 118, 142, 0.1);
  border: 2px solid var(--danger);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #2563EB;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: var(--bg-elevated);
}

.copy-btn, .copy-btn-small {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 10px;
  flex-shrink: 0;
}

.copy-btn:hover, .copy-btn-small:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Credentials Modal */
.credentials-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.credentials-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

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

.credentials-header h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.close-modal:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.credentials-body {
  padding: 24px;
}

.credential-item {
  margin-bottom: 20px;
}

.credential-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.credential-value {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  word-break: break-all;
}

.credentials-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent-primary);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease-out;
  z-index: 10000;
}

/* Website Dashboard Styles */
.website-dashboard {
  padding: 24px;
}

.deployment-success-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.deployment-success-banner i {
  font-size: 32px;
}

.deployment-success-banner h3 {
  margin: 0 0 4px 0;
}

.deployment-success-banner p {
  margin: 0;
}

.deployment-success-banner a {
  color: white;
  text-decoration: underline;
}

.website-deployment-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.website-deployment-card h3 {
  margin-top: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.deployment-form {
  margin-top: 20px;
}

.deployed-info {
  margin-top: 20px;
}

.deployed-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.deployed-info .info-row:last-child {
  border-bottom: none;
}

.deployed-info a {
  color: var(--accent-primary);
  text-decoration: none;
}

.deployed-info a:hover {
  text-decoration: underline;
}

.website-info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Website Feature Cards */
.website-feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.website-feature-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.feature-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--text-primary);
}

.btn-secondary-small {
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary-small:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

/* Analytics Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.analytics-stat {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.analytics-stat:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.analytics-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-primary), #ff8c42);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.analytics-info {
  flex: 1;
}

.analytics-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* SSL Status */
.ssl-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.ssl-info-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}

.ssl-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.ssl-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.ssl-success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--success);
  font-size: 14px;
}

.ssl-success-message i {
  font-size: 20px;
}

/* Deployment History */
.deployment-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deployment-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
}

.deployment-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.deployment-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.deployment-icon.success {
  background: linear-gradient(135deg, var(--success), #7fb85e);
}

.deployment-icon.failed {
  background: linear-gradient(135deg, var(--danger), #dc2626);
}

.deployment-details {
  flex: 1;
}

.deployment-message {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.deployment-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.deployment-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deployment-meta a {
  color: var(--accent-primary);
  text-decoration: none;
}

.deployment-meta a:hover {
  text-decoration: underline;
}

/* Environment Variables */
.env-vars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.env-var-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
}

.env-var-item:hover {
  border-color: var(--accent-primary);
}

.env-var-key {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-secondary);
  font-size: 14px;
  min-width: 150px;
}

.env-var-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-icon-small {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-small:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.empty-state-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-state-small i {
  font-size: 48px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state-small p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.file-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 9999;
  display: none;
}

.file-menu-backdrop.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
}

.toast.success {
  border-color: rgba(158, 206, 106, 0.3);
  color: var(--success);
}

.toast.error {
  border-color: rgba(247, 118, 142, 0.3);
  color: var(--danger);
}

.toast.warning {
  border-color: rgba(0, 153, 255, 0.3);
  color: var(--warning);
}

.toast.info {
  border-color: rgba(122, 162, 247, 0.3);
  color: var(--accent-secondary);
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.toast.success .toast-icon {
  background: rgba(158, 206, 106, 0.15);
  color: var(--success);
}

.toast.error .toast-icon {
  background: rgba(247, 118, 142, 0.15);
  color: var(--danger);
}

.toast.warning .toast-icon {
  background: rgba(0, 153, 255, 0.15);
  color: var(--warning);
}

.toast.info .toast-icon {
  background: rgba(122, 162, 247, 0.15);
  color: var(--accent-secondary);
}

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

.toast-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.toast-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: toastProgress 4s linear forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
  }
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.toast.removing {
  animation: toastSlideOut 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Storage Full Toast - Unique Design */
.toast-storage {
  flex-direction: column;
  padding: 0;
  min-width: 380px;
  max-width: 420px;
  background: linear-gradient(135deg, rgba(40, 42, 54, 0.98) 0%, rgba(30, 32, 42, 0.98) 100%);
  border: 2px solid #ff6b6b;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.toast-storage::before {
  display: none;
}

.storage-toast-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.05) 100%);
  border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}

.storage-toast-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.storage-toast-icon i {
  font-size: 22px;
  color: white;
  z-index: 1;
}

.storage-toast-icon-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: #ff6b6b;
  opacity: 0.3;
  animation: storagePulse 2s ease-in-out infinite;
}

@keyframes storagePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.1;
  }
}

.storage-toast-title-wrap {
  flex: 1;
  min-width: 0;
}

.storage-toast-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: -0.3px;
}

.storage-toast-subtitle {
  font-size: 12px;
  color: #ff8a8a;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.storage-toast-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.storage-toast-close:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.storage-toast-body {
  padding: 16px 18px;
}

.storage-toast-meter {
  margin-bottom: 14px;
}

.storage-toast-meter-bg {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.storage-toast-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #7aa2f7 0%, #bb9af7 100%);
  border-radius: 5px;
  transition: width 0.5s ease;
  position: relative;
}

.storage-toast-meter-fill.warning {
  background: linear-gradient(90deg, #0099ff 0%, #00aaff 100%);
}

.storage-toast-meter-fill.critical {
  background: linear-gradient(90deg, #ff6b6b 0%, #f7768e 100%);
  animation: criticalPulse 1.5s ease-in-out infinite;
}

@keyframes criticalPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 107, 107, 0.8);
  }
}

.storage-toast-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.storage-toast-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 107, 0.15);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.storage-toast-message i {
  color: #ff6b6b;
  font-size: 16px;
  flex-shrink: 0;
}

.storage-toast-message strong {
  color: #fff;
}

.storage-toast-actions {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.storage-toast-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.storage-toast-btn-primary {
  background: linear-gradient(135deg, #7aa2f7 0%, #bb9af7 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(122, 162, 247, 0.3);
}

.storage-toast-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122, 162, 247, 0.4);
}

.storage-toast-btn-secondary {
  background: rgba(88, 101, 242, 0.15);
  color: #7289da;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.storage-toast-btn-secondary:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
}

/* Confirmation Modal */
.confirmation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.confirmation-modal {
  background: var(--bg-secondary);
  border: 2px solid var(--danger);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
  animation: slideIn 0.3s ease;
}

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

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

.confirmation-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(247, 118, 142, 0.1);
}

.confirmation-modal-header.success {
  background: rgba(158, 206, 106, 0.1);
}

.confirmation-modal-header.error {
  background: rgba(247, 118, 142, 0.1);
}

.confirmation-modal-header i {
  font-size: 32px;
  color: var(--danger);
}

.confirmation-modal-header.success i {
  color: var(--success);
}

.confirmation-modal-header.error i {
  color: var(--danger);
}

.confirmation-modal-header h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 0;
}

.confirmation-modal-body {
  padding: 24px;
}

.confirmation-modal-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.confirmation-modal-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.confirmation-btn-cancel,
.confirmation-btn-confirm {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.confirmation-btn-cancel {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.confirmation-btn-cancel:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

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

.confirmation-btn-confirm:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 118, 142, 0.4);
}

.confirmation-modal.success .confirmation-btn-confirm {
  background: var(--success);
}

.confirmation-modal.success .confirmation-btn-confirm:hover {
  background: #7fb85e;
  box-shadow: 0 4px 12px rgba(158, 206, 106, 0.4);
}

/* Auto Security Section */
.auto-security-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid var(--border-color);
}

.auto-security-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.auto-security-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
}

.auto-security-header i {
  font-size: 24px;
  color: var(--accent-warning);
}

.security-badge {
  background: linear-gradient(135deg, #0099ff 0%, #0077cc 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.security-badge-small {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.security-badge-small.auto-suspended {
  background: #ef4444;
  color: white;
}

.auto-security-log {
  max-height: 500px;
  overflow-y: auto;
}

.security-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.security-event-card {
  display: flex;
  gap: 16px;
  background: var(--bg-tertiary);
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #ef4444;
  transition: all 0.2s;
}

.security-event-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.security-event-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-event-icon i {
  color: white;
  font-size: 20px;
}

.security-event-content {
  flex: 1;
}

.security-event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.security-event-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.security-event-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.security-event-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.security-detail-row i {
  width: 16px;
  color: var(--accent-warning);
}

.security-detail-row strong {
  color: var(--text-primary);
}

.security-empty-state,
.security-error-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.security-empty-state i,
.security-error-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-tertiary);
}

.security-empty-state h4 {
  margin: 16px 0 8px;
  color: var(--text-primary);
}

.user-stat-card.auto-security .stat-icon-wrapper.shield {
  background: linear-gradient(135deg, #0099ff 0%, #0077cc 100%);
}

/* Modules Page - Completely Redesigned */
.modules-marketplace-modern {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Header */
.marketplace-header {
  padding: 40px 32px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.marketplace-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.marketplace-header::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.marketplace-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.marketplace-title-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.marketplace-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.marketplace-title-text h1 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.marketplace-title-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.marketplace-search-container {
  max-width: 600px;
}

.marketplace-search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: all 0.3s;
}

.marketplace-search-box:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.marketplace-search-box i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

.marketplace-search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
}

.marketplace-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Category Pills */
.category-pills-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0;
  margin-bottom: 8px;
}

.category-pills-container::-webkit-scrollbar {
  height: 8px;
}

.category-pills-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.category-pills-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-pill:hover {
  background: var(--bg-tertiary);
  border-color: #8b5cf6;
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-pill.active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: #8b5cf6;
  color: white;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.category-pill i {
  font-size: 16px;
}

.pill-count {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.category-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Packages Grid - Modern Cards */
.packages-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.package-card-modern {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(36, 40, 59, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

.package-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.package-card-modern:hover .package-card-glow {
  opacity: 1;
}

.package-card-modern:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.package-card-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.package-icon-container {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  position: relative;
}

.package-icon-container::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: inherit;
  z-index: -1;
  opacity: 0.5;
  filter: blur(12px);
}

.package-category-badge {
  padding: 8px 14px;
  border: 1.5px solid;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(5px);
}

.package-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.package-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.package-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.package-meta-info {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.package-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.package-meta-item i {
  font-size: 15px;
  color: #8b5cf6;
}

.package-version {
  color: #7aa2f7;
  font-weight: 600;
}

.package-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.package-install-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.package-install-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.package-install-button:hover::before {
  left: 100%;
}

.package-install-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.package-install-button:active {
  transform: translateY(-1px);
}

/* ========================================
   BOT STATUS INDICATOR - Unique Design
   ======================================== */

.bot-status-section {
  margin-bottom: 28px;
}

.bot-status-card {
  position: relative;
  background: linear-gradient(135deg, #1a1d2e 0%, #252a3d 100%);
  border-radius: 24px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bot-status-card.online {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #0f1a1a 0%, #132423 50%, #1a2d2a 100%);
}

.bot-status-card.offline {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, #1a1215 0%, #231418 50%, #2d1a1e 100%);
}

.bot-status-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
  transition: all 0.5s ease;
}

.bot-status-card.online .bot-status-glow {
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}

.bot-status-card.offline .bot-status-glow {
  background: radial-gradient(circle, #ef4444 0%, transparent 70%);
}

.bot-status-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.bot-status-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bot-status-orb {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-inner {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.4s ease;
}

.bot-status-orb.online .orb-inner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5),
              0 0 60px rgba(16, 185, 129, 0.3),
              inset 0 -3px 10px rgba(0, 0, 0, 0.2);
}

.bot-status-orb.offline .orb-inner {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  box-shadow: 0 0 20px rgba(107, 114, 128, 0.3),
              inset 0 -3px 10px rgba(0, 0, 0, 0.2);
}

.orb-inner i {
  font-size: 24px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.orb-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: orb-spin 8s linear infinite;
}

.bot-status-orb.online .orb-ring {
  border-top-color: rgba(16, 185, 129, 0.6);
  border-right-color: rgba(16, 185, 129, 0.3);
}

.bot-status-orb.offline .orb-ring {
  border-top-color: rgba(239, 68, 68, 0.4);
  border-right-color: rgba(239, 68, 68, 0.2);
  animation-duration: 12s;
}

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

.orb-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  opacity: 0;
}

.bot-status-orb.online .orb-pulse {
  background: rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.bot-status-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-status-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.bot-status-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.bot-status-card.online .bot-status-text {
  color: #10b981;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.bot-status-card.offline .bot-status-text {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.bot-status-subtext {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 280px;
}

.bot-status-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.bot-status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.bot-status-badge.online {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.bot-status-badge.offline {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.bot-status-badge.online .badge-dot {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

.bot-status-badge.offline .badge-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.bot-status-meta {
  display: flex;
  gap: 20px;
}

.bot-status-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.bot-status-meta .meta-item i {
  font-size: 14px;
  opacity: 0.6;
}

.bot-status-meta .meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.bot-status-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
  pointer-events: none;
}

.bot-status-wave svg {
  width: 100%;
  height: 100%;
}

.bot-status-card.online .bot-status-wave {
  color: #10b981;
}

.bot-status-card.offline .bot-status-wave {
  color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bot-status-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .bot-status-right {
    align-items: flex-start;
    width: 100%;
  }

  .bot-status-meta {
    flex-wrap: wrap;
  }

  .bot-status-orb {
    width: 64px;
    height: 64px;
  }

  .orb-inner {
    width: 44px;
    height: 44px;
  }

  .orb-inner i {
    font-size: 20px;
  }

  .bot-status-text {
    font-size: 24px;
  }
}

/* ============================================
   ADVANCED USER MANAGEMENT PAGE STYLES
   ============================================ */

.user-mgmt-container {
  padding: 0;
  max-width: 100%;
}

/* Header Section */
.user-mgmt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.user-mgmt-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-mgmt-title .title-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.user-mgmt-title .title-icon i {
  font-size: 28px;
  color: white;
}

.user-mgmt-title .title-text h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.user-mgmt-title .title-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.user-mgmt-actions {
  display: flex;
  gap: 12px;
}

.user-mgmt-actions .action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.user-mgmt-actions .export-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.user-mgmt-actions .export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.user-mgmt-actions .refresh-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.user-mgmt-actions .refresh-btn:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

/* Stats Grid */
.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.user-stats-grid .stat-card {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.user-stats-grid .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.user-stats-grid .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.user-stats-grid .stat-card.total .stat-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--primary);
}

.user-stats-grid .stat-card.online .stat-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
  color: #10b981;
}

.user-stats-grid .stat-card.offline .stat-icon {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(75, 85, 99, 0.1) 100%);
  color: #6b7280;
}

.user-stats-grid .stat-card.suspended .stat-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
  color: #0099ff;
}

.user-stats-grid .stat-card.banned .stat-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
  color: #ef4444;
}

.user-stats-grid .stat-card.python .stat-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
  color: #3b82f6;
}

.user-stats-grid .stat-card.javascript .stat-icon {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(202, 138, 4, 0.1) 100%);
  color: #eab308;
}

.user-stats-grid .stat-card.recent .stat-icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(219, 39, 119, 0.1) 100%);
  color: #ec4899;
}

.user-stats-grid .stat-content .stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.user-stats-grid .stat-content .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filters Section */
.user-filters-section {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.search-filter {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px 4px 4px 16px;
  transition: all 0.2s;
}

.search-filter:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-filter i {
  color: var(--text-secondary);
  font-size: 16px;
}

.search-filter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.search-filter input::placeholder {
  color: var(--text-secondary);
}

.search-filter .search-btn {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.search-filter .search-btn:hover {
  background: #7c3aed;
}

.filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-item label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.filter-item select {
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  min-width: 130px;
  transition: all 0.2s;
}

.filter-item select:hover {
  border-color: var(--primary);
}

.filter-item select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Bulk Actions Row */
.bulk-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.selected-count {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.selected-count span {
  color: var(--primary);
  font-weight: 700;
}

.bulk-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bulk-btn.suspend-bulk {
  background: rgba(245, 158, 11, 0.1);
  color: #0099ff;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bulk-btn.unsuspend-bulk {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bulk-btn.ban-bulk {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.bulk-btn.unban-bulk {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.bulk-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Users Table */
.users-table-container {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: visible;
  margin-bottom: 24px;
}

.users-modern-table {
  width: 100%;
  border-collapse: collapse;
}

.users-modern-table thead {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.users-modern-table thead th {
  padding: 16px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.users-modern-table thead th.checkbox-col {
  width: 50px;
  text-align: center;
}

.users-modern-table tbody tr {
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.users-modern-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.users-modern-table tbody tr.selected {
  background: rgba(99, 102, 241, 0.1);
}

.users-modern-table tbody td {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--text-primary);
  vertical-align: middle;
}

.users-modern-table .checkbox-col {
  text-align: center;
}

.users-modern-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* User Cell */
.user-cell .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-cell .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  font-size: 18px;
  color: var(--text-secondary);
}

.user-cell .user-avatar.online {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
  color: #10b981;
}

.user-cell .user-avatar.offline {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(75, 85, 99, 0.1) 100%);
  color: #6b7280;
}

.user-cell .user-avatar.suspended {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
  color: #0099ff;
}

.user-cell .user-avatar.banned {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
  color: #ef4444;
}

.user-cell .user-details .user-name {
  font-weight: 600;
  color: var(--text-primary);
}

.user-cell .user-details .user-id {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: monospace;
}

/* Account Cell */
.account-cell .account-info .hosting-name {
  font-weight: 500;
  color: var(--text-primary);
}

.account-cell .account-info .account-id {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: monospace;
}

/* Type Badge */
.type-cell .type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.type-badge.python {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.type-badge.javascript {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.type-badge.website {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* Status Badge */
.status-cell .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-badge.online .status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-badge.offline {
  background: rgba(107, 114, 128, 0.1);
  color: #9ca3af;
}

.status-badge.offline .status-dot {
  background: #6b7280;
}

.status-badge.suspended {
  background: rgba(245, 158, 11, 0.1);
  color: #0099ff;
}

.status-badge.suspended .status-dot {
  background: #0099ff;
}

.status-badge.banned {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.status-badge.banned .status-dot {
  background: #ef4444;
}

/* Running Badge */
.running-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.running-badge.running {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.running-badge.running i {
  animation: pulse-green 2s infinite;
}

.running-badge.stopped {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

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

/* Uptime Cell */
.uptime-cell {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

/* IP Cell */
.ip-cell .ip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ip-cell .last-ip {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-primary);
}

.ip-cell .ip-count {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Logins Cell */
.logins-cell .login-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Actions Cell */
.actions-cell .action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
}

.action-icon-btn.view {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.action-icon-btn.edit {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.action-icon-btn.connect {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.action-icon-btn.more {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.action-icon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Action Dropdown */
.action-dropdown {
  position: relative;
}

.action-dropdown .dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  min-width: 180px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
}

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

.action-dropdown .dropdown-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.action-dropdown .dropdown-menu button:hover {
  background: rgba(99, 102, 241, 0.1);
}

.action-dropdown .dropdown-menu button.danger {
  color: #ef4444;
}

.action-dropdown .dropdown-menu button.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.action-dropdown .dropdown-menu button i {
  width: 16px;
  text-align: center;
}

/* Dropdown opens upward when near bottom of screen */
.action-dropdown .dropdown-menu.dropdown-up {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 8px;
  transform: translateY(10px);
}

.action-dropdown .dropdown-menu.dropdown-up.show {
  transform: translateY(0);
}

/* History Button Style */
.action-icon-btn.history {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.action-icon-btn.history:hover {
  background: rgba(168, 85, 247, 0.2);
}

/* Login History Modal */
.login-history-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.login-history-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.login-history-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-radius: 16px 16px 0 0;
}

.login-history-modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-history-modal-header h2 i {
  color: #a855f7;
}

.login-history-username {
  padding: 4px 12px;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 20px;
  font-size: 13px;
  color: #a855f7;
  font-weight: 600;
}

.login-history-modal-header .close-modal-btn {
  margin-left: auto;
}

.login-history-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.login-history-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.login-history-summary .summary-item {
  flex: 1;
  min-width: 150px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-history-summary .summary-item i {
  font-size: 20px;
  color: #a855f7;
}

.login-history-summary .summary-item span {
  font-size: 13px;
  color: var(--text-secondary);
}

.login-history-summary .summary-item strong {
  color: var(--text-primary);
  font-size: 16px;
}

.login-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-entry {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.login-entry:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

.login-entry.latest {
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.login-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.login-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.login-time i {
  color: #a855f7;
}

.login-time .date {
  font-weight: 600;
}

.login-time .time {
  color: var(--text-secondary);
}

.latest-badge {
  padding: 2px 8px;
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  margin-left: 8px;
}

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

.login-entry-details {
  padding: 12px 16px;
  display: grid;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.detail-label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-label i {
  width: 16px;
  text-align: center;
  color: #6b7280;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 500;
}

.detail-value.ip-value {
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.method-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.method-badge.standard {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.method-badge.discord {
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
}

.method-badge.admin {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.user-agent-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.user-agent-row .user-agent {
  font-size: 11px;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.4;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-history,
.error-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.no-history i,
.error-message i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-history p,
.error-message p {
  margin: 0;
  font-size: 14px;
}

/* Loading & Empty States */
.loading-cell,
.error-cell,
.empty-cell {
  text-align: center;
  padding: 60px !important;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.loading-spinner i {
  font-size: 20px;
  color: var(--primary);
}

.empty-cell i,
.error-cell i {
  font-size: 40px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.empty-cell p,
.error-cell p {
  color: var(--text-secondary);
  margin: 0;
}

/* Pagination */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

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

.pagination-info span {
  color: var(--text-primary);
  font-weight: 600;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled):not(.active) {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 8px;
  color: var(--text-secondary);
}

/* User Profile Modal */
.user-profile-modal,
.edit-user-modal,
.notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.profile-modal-content,
.edit-modal-content,
.notification-modal-content {
  background: var(--bg-secondary);
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.3s ease;
}

.profile-modal-header,
.edit-modal-header,
.notification-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.profile-modal-header h2,
.edit-modal-header h2,
.notification-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.profile-modal-header h2 i,
.edit-modal-header h2 i,
.notification-modal-header h2 i {
  color: var(--primary);
}

.close-modal-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.close-modal-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.profile-modal-body,
.edit-modal-body,
.notification-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 12px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.profile-avatar.online { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; }
.profile-avatar.offline { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); color: white; }
.profile-avatar.suspended { background: linear-gradient(135deg, #0099ff 0%, #0077cc 100%); color: white; }
.profile-avatar.banned { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; }

.profile-info h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.profile-info .discord-id {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: monospace;
  margin-bottom: 8px;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.profile-tabs .tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.profile-tabs .tab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.profile-tabs .tab-btn.active {
  background: var(--primary);
  color: white;
}

.profile-tab-content .tab-pane {
  display: none;
}

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

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

.profile-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.profile-section h4 i {
  color: var(--primary);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.info-grid .info-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.info-item .label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-item .value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.info-item .value.code {
  font-family: monospace;
  font-size: 12px;
  word-break: break-all;
}

.ip-list,
.device-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ip-tag,
.device-tag {
  padding: 6px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
  color: var(--text-primary);
}

.ban-alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.ban-alert.banned {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ban-alert.suspended {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ban-alert i {
  font-size: 24px;
}

.ban-alert.banned i { color: #ef4444; }
.ban-alert.suspended i { color: #0099ff; }

.ban-alert strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ban-alert p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}

.status-ok {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
}

.status-ok i {
  font-size: 24px;
  color: #10b981;
}

.status-ok span {
  color: var(--text-primary);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.activity-item .activity-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  color: var(--primary);
}

.activity-item .activity-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.activity-details span {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.no-data {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* Edit Modal Form */
.edit-modal-body .form-group {
  margin-bottom: 20px;
}

.edit-modal-body .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.edit-modal-body .form-group input,
.edit-modal-body .form-group select,
.edit-modal-body .form-group textarea,
.notification-modal-body .form-group input,
.notification-modal-body .form-group select,
.notification-modal-body .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.edit-modal-body .form-group input:focus,
.edit-modal-body .form-group select:focus,
.edit-modal-body .form-group textarea:focus,
.notification-modal-body .form-group input:focus,
.notification-modal-body .form-group select:focus,
.notification-modal-body .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.edit-modal-body textarea,
.notification-modal-body textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.cancel-btn {
  padding: 12px 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: var(--border-color);
}

.save-btn,
.send-notification-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.save-btn:hover,
.send-notification-btn:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.notification-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .user-mgmt-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .filter-row {
    flex-direction: column;
  }

  .search-filter {
    min-width: 100%;
  }

  .filter-group {
    width: 100%;
    justify-content: space-between;
  }

  .users-table-container {
    overflow-x: auto;
  }

  .users-modern-table {
    min-width: 900px;
  }
}

@media (max-width: 768px) {
  .user-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bulk-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bulk-buttons {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .pagination-section {
    flex-direction: column;
    gap: 16px;
  }

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

  .profile-modal-content,
  .edit-modal-content {
    width: 95%;
    max-height: 90vh;
  }
}

/* ===== Hosting Account Management Modal Styles ===== */
.hosting-acc-modal,
.add-hosting-acc-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.hosting-acc-modal-content,
.add-hosting-acc-modal-content {
  background: var(--bg-secondary);
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.2s ease;
}

.hosting-acc-modal-header,
.add-hosting-acc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.hosting-acc-modal-header h2,
.add-hosting-acc-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.hosting-acc-modal-header h2 i,
.add-hosting-acc-modal-header h2 i {
  color: var(--primary);
}

.hosting-acc-username {
  margin-left: 12px;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.hosting-acc-modal-body,
.add-hosting-acc-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.hosting-acc-modal-footer,
.add-hosting-acc-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.add-hosting-acc-btn {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.add-hosting-acc-btn:hover {
  background: #4f46e5;
}

/* Hosting Accounts List */
.hosting-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hosting-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-primary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.hosting-account-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hosting-account-card.python {
  border-left: 4px solid #3776ab;
}

.hosting-account-card.javascript {
  border-left: 4px solid #f7df1e;
}

.hosting-acc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hosting-account-card.python .hosting-acc-icon {
  background: linear-gradient(135deg, #3776ab 0%, #306998 100%);
  color: #ffd43b;
}

.hosting-account-card.javascript .hosting-acc-icon {
  background: linear-gradient(135deg, #f7df1e 0%, #e8d117 100%);
  color: #323330;
}

.hosting-acc-info {
  flex: 1;
}

.hosting-acc-info h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.hosting-acc-details {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.hosting-acc-details span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 3px 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.acc-id {
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 10px;
}

.acc-type.python {
  background: rgba(55, 118, 171, 0.2);
  color: #4d9dd4;
}

.acc-type.javascript {
  background: rgba(247, 223, 30, 0.2);
  color: #d4c82e;
}

.acc-status.online {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.acc-status.offline {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.hosting-acc-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.hosting-acc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hosting-acc-actions {
  display: flex;
  gap: 8px;
}

.acc-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.acc-action-btn.connect:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.acc-action-btn.remove:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

/* No Hosting Accounts State */
.no-hosting-accounts {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-secondary);
}

.no-hosting-accounts i {
  font-size: 40px;
  margin-bottom: 14px;
  opacity: 0.3;
}

.no-hosting-accounts p {
  font-size: 13px;
  margin: 0 0 6px 0;
}

.no-hosting-accounts .sub-text {
  font-size: 11px;
  opacity: 0.7;
}

/* Add Hosting Account Type Selection */
.modal-info {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
}

.hosting-type-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hosting-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.hosting-type-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.hosting-type-card.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.type-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 10px;
}

.type-icon.python {
  background: linear-gradient(135deg, #3776ab 0%, #306998 100%);
  color: #ffd43b;
}

.type-icon.javascript {
  background: linear-gradient(135deg, #f7df1e 0%, #e8d117 100%);
  color: #323330;
}

.type-info {
  text-align: center;
}

.type-info h4 {
  margin: 0 0 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.type-info p {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Hosting button in action buttons */
.action-icon-btn.hosting {
  color: #3b82f6;
}

.action-icon-btn.hosting:hover {
  background: #3b82f6;
  color: white;
}

/* ===== Suspension Overlay Styles ===== */
.suspension-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1f3c 0%, #0d1226 50%, #151a35 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
  animation: suspensionFadeIn 0.5s ease-out;
}

@keyframes suspensionFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.suspension-container {
  max-width: 600px;
  width: 100%;
  animation: suspensionSlideUp 0.6s ease-out;
}

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

.suspension-card {
  background: linear-gradient(145deg, #e8eaf0 0%, #d4d8e2 100%);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.suspension-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.suspension-illustration {
  margin-bottom: 32px;
  position: relative;
}

.suspension-icon-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.suspension-server-icon {
  position: relative;
  width: 80px;
  height: 90px;
  background: linear-gradient(145deg, #3d4a6a 0%, #2a3654 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(45, 55, 85, 0.5);
}

.suspension-server-icon i {
  font-size: 36px;
  color: #8892b0;
}

.suspension-x-mark {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  animation: xMarkPulse 2s infinite;
}

.suspension-x-mark i {
  font-size: 14px;
  color: white;
}

@keyframes xMarkPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
  }
}

.suspension-mascot {
  position: relative;
  width: 60px;
  height: 80px;
}

.mascot-body {
  width: 50px;
  height: 60px;
  background: linear-gradient(145deg, #4f8fcc 0%, #2c5aa0 100%);
  border-radius: 25px 25px 15px 15px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4);
}

.mascot-eye {
  width: 12px;
  height: 12px;
  background: #1a2640;
  border-radius: 50%;
  position: relative;
  animation: mascotBlink 3s infinite;
}

.mascot-eye::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

@keyframes mascotBlink {
  0%, 45%, 55%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.1);
  }
}

.mascot-antenna {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 20px;
  background: #4f8fcc;
}

.antenna-ball {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: linear-gradient(145deg, #5da5e0 0%, #3d7fc0 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(93, 165, 224, 0.5);
  animation: antennaBounce 2s ease-in-out infinite;
}

@keyframes antennaBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.suspension-monitor-icon {
  position: relative;
  width: 100px;
  height: 80px;
  background: linear-gradient(145deg, #3d4a6a 0%, #2a3654 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(45, 55, 85, 0.5);
}

.suspension-monitor-icon::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 8px;
  background: linear-gradient(145deg, #4a5980 0%, #3a4868 100%);
  border-radius: 0 0 6px 6px;
}

.suspension-monitor-icon i {
  font-size: 28px;
  color: #8892b0;
  margin-bottom: 8px;
}

.monitor-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 60%;
}

.screen-line {
  height: 3px;
  background: rgba(136, 146, 176, 0.3);
  border-radius: 2px;
}

.screen-line.short {
  width: 70%;
}

.suspension-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a2640;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.suspension-message {
  font-size: 16px;
  color: #5a6680;
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.suspension-details {
  background: rgba(26, 38, 64, 0.05);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
  text-align: left;
}

.suspension-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 38, 64, 0.1);
}

.suspension-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.suspension-detail-item:first-child {
  padding-top: 0;
}

.suspension-detail-item i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 10px;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: #8892a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-value {
  font-size: 14px;
  color: #1a2640;
  font-weight: 500;
  line-height: 1.5;
}

.suspension-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(26, 38, 64, 0.05);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
  text-align: left;
}

.suspension-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(26, 38, 64, 0.08);
}

.suspension-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.suspension-info-item:first-child {
  padding-top: 0;
}

.suspension-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 10px;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.suspension-info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suspension-info-label {
  font-size: 11px;
  color: #8892a0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.suspension-info-value {
  font-size: 14px;
  color: #1a2640;
  font-weight: 500;
  line-height: 1.4;
}

.suspension-footer-text {
  padding-top: 24px;
  border-top: 1px solid rgba(26, 38, 64, 0.1);
  text-align: center;
}

.suspension-footer-text p {
  margin: 0;
  font-size: 13px;
  color: #8892a0;
}

.suspension-footer-text .suspension-footer-sub {
  margin-top: 8px !important;
  font-size: 12px !important;
  color: #a0a8b8 !important;
}

.suspension-connector {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, rgba(26, 38, 64, 0.2), rgba(26, 38, 64, 0.1));
  border-radius: 1px;
}

.suspension-bot-antenna {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 12px;
  background: #4b5563;
  border-radius: 3px;
}

.suspension-bot-antenna::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: antennaBlink 1.5s ease-in-out infinite;
}

@keyframes antennaBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.vpn-bot-icon,
.banned-bot-icon {
  position: relative;
}

.banned-server-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.suspension-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.suspension-support-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.suspension-support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

.suspension-support-btn i {
  font-size: 18px;
}

.suspension-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(26, 38, 64, 0.1);
  color: #3d4a6a;
  border: 2px solid rgba(26, 38, 64, 0.2);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suspension-logout-btn:hover {
  background: rgba(26, 38, 64, 0.15);
  border-color: rgba(26, 38, 64, 0.3);
  transform: translateY(-2px);
}

.suspension-logout-btn i {
  font-size: 16px;
}

.suspension-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(26, 38, 64, 0.1);
}

.suspension-footer p {
  margin: 0;
  font-size: 13px;
  color: #8892a0;
}

.suspension-footer-sub {
  margin-top: 8px !important;
  font-size: 12px !important;
  color: #a0a8b8 !important;
}

/* Suspension Overlay Responsive */
@media (max-width: 640px) {
  .suspension-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .suspension-icon-group {
    flex-direction: column;
    gap: 16px;
  }

  .suspension-server-icon,
  .suspension-monitor-icon {
    width: 70px;
    height: 70px;
  }

  .suspension-monitor-icon::after {
    display: none;
  }

  .suspension-title {
    font-size: 26px;
  }

  .suspension-message {
    font-size: 14px;
  }

  .suspension-actions {
    flex-direction: column;
  }

  .suspension-support-btn,
  .suspension-logout-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== VPN Blocked Overlay Styles ===== */
.vpn-blocked-overlay {
  background: linear-gradient(135deg, #1a1f3c 0%, #2d1b1b 50%, #1a1f3c 100%);
}

.vpn-blocked-icon {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
}

.vpn-blocked-icon i {
  color: white;
  font-size: 48px;
}

.vpn-blocked-modal .suspension-title {
  color: #ef4444;
}

.vpn-blocked-details .suspension-detail-item i {
  color: #ef4444;
}

/* ===== Storage Management Page Styles ===== */
.storage-mgmt-container {
  padding: 24px;
}

.storage-mgmt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.storage-mgmt-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.storage-mgmt-title .title-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.storage-mgmt-title .title-text h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.storage-mgmt-title .title-text p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.storage-overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.storage-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.storage-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.storage-stat-card.total .stat-icon { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.storage-stat-card.usage .stat-icon { background: linear-gradient(135deg, #10b981, #059669); }
.storage-stat-card.limit .stat-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.storage-stat-card.warning .stat-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.storage-stat-card.caution .stat-icon { background: linear-gradient(135deg, #0099ff, #0077cc); }

.storage-stat-card .stat-info {
  display: flex;
  flex-direction: column;
}

.storage-stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.storage-stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.storage-filters-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.storage-filters-section .filter-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.storage-filters-section .search-filter {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
}

.storage-filters-section .search-filter input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
}

.storage-filters-section .filter-group {
  display: flex;
  gap: 12px;
}

.storage-filters-section .filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.storage-filters-section .filter-item label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.storage-filters-section .filter-item select {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
}

.storage-users-table-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.storage-users-table {
  width: 100%;
  border-collapse: collapse;
}

.storage-users-table thead {
  background: rgba(0, 0, 0, 0.2);
}

.storage-users-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.storage-users-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.storage-users-table tr:last-child td {
  border-bottom: none;
}

.storage-users-table tr.warning {
  background: rgba(245, 158, 11, 0.1);
}

.storage-users-table tr.critical {
  background: rgba(239, 68, 68, 0.1);
}

.user-info-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info-cell i {
  color: #5865f2;
  font-size: 18px;
}

.storage-usage-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-progress-bar {
  width: 100px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.mini-progress-fill.warning {
  background: linear-gradient(90deg, #0099ff, #0077cc);
}

.mini-progress-fill.critical {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.percentage-text {
  font-weight: 600;
  min-width: 50px;
}

.edit-limit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-limit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.storage-limit-modal {
  max-width: 480px;
}

.storage-edit-info {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.storage-edit-info p {
  margin: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.storage-edit-info strong,
.storage-edit-info code {
  color: var(--text-primary);
}

.storage-limit-input label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.storage-limit-input input {
  width: 100%;
  padding: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 12px;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-buttons button {
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  color: #10b981;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-buttons button:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.modal.active {
  display: flex;
}

.loading-cell, .empty-cell, .error-cell {
  text-align: center;
  padding: 40px !important;
  color: var(--text-secondary);
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0066ff, #0099ff);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.4);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.mobile-overlay.active {
  opacity: 1;
}

/* Mobile Responsive Breakpoints */
@media (max-width: 1024px) {
  .sidebar-modern {
    width: 240px;
  }
  
  .search-bar {
    width: 200px;
  }
  
  .top-bar {
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  /* Show mobile menu button */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Show overlay */
  .mobile-overlay {
    display: block;
  }
  
  /* Sidebar becomes slide-out menu */
  .sidebar-modern {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .sidebar-modern.active {
    left: 0;
  }
  
  /* Main content takes full width */
  .main-content {
    width: 100%;
    margin-left: 0;
  }
  
  /* Top bar adjustments */
  .top-bar {
    padding: 16px;
    padding-left: 76px;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .search-bar {
    width: 100%;
    order: 2;
  }
  
  .top-actions {
    gap: 10px;
    order: 1;
    margin-left: auto;
  }
  
  .notification-btn .notification-text {
    display: none;
  }
  
  /* Content area adjustments */
  .content-area {
    padding: 16px;
  }
  
  /* Dashboard grid */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  /* Stats cards */
  .stats-cards {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  
  /* Quick stats */
  .quick-stats-container {
    flex-direction: column;
  }
  
  /* Cards and panels */
  .card, .panel {
    border-radius: 12px;
  }
  
  /* Tables - make scrollable */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 600px;
  }
  
  /* Modal adjustments */
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* Admin connect banner */
  .admin-connect-banner {
    padding: 12px 16px;
    padding-left: 76px;
  }
  
  .admin-connect-banner-content {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .admin-connect-actions {
    width: 100%;
  }
  
  .admin-back-btn, .admin-disconnect-btn {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 8px 12px;
  }
  
  /* Server controls */
  .server-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .server-control-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  /* Console panel */
  .console-panel {
    height: 300px;
  }
  
  /* Form elements */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Buttons */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  /* File manager */
  .file-list {
    overflow-x: auto;
  }
  
  /* Account dropdown */
  .account-dropdown {
    padding: 8px 12px;
  }
  
  .account-dropdown span {
    display: none;
  }
  
  /* User menu positioning */
  .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    font-size: 20px;
    top: 12px;
    left: 12px;
  }
  
  .top-bar {
    padding: 12px;
    padding-left: 68px;
  }
  
  .stats-cards {
    grid-template-columns: 1fr !important;
  }
  
  .content-area {
    padding: 12px;
  }
  
  /* Smaller text */
  .page-title {
    font-size: 20px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  /* Server quick card */
  .server-quick-card {
    margin: 12px 8px;
    padding: 12px;
  }
  
  .server-action-buttons {
    gap: 6px;
  }
  
  .server-action-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  /* Navigation items */
  .nav-item-modern a {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  /* Console */
  .console-panel {
    height: 250px;
    font-size: 12px;
  }
  
  /* Notification panel */
  .notification-panel {
    right: 8px;
    left: 8px;
    width: auto;
  }
  
  /* Modals */
  .modal-content {
    padding: 16px;
  }
  
  .modal-header {
    padding: 12px 16px;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .modal-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .modal-footer .btn {
    flex: 1;
    min-width: 100px;
  }
}

/* Landscape phone fixes */
@media (max-width: 768px) and (orientation: landscape) {
  .sidebar-modern {
    width: 260px;
  }
  
  .modal-content {
    max-height: 85vh;
  }
  
  .console-panel {
    height: 200px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-item-modern a,
  .server-action-btn,
  .btn,
  .notification-btn {
    min-height: 44px;
  }
  
  .dropdown-menu-item {
    padding: 14px 16px;
  }
}

/* ===== PERMISSION MANAGEMENT STYLES ===== */
.permissions-management {
  padding: 24px;
}

.permissions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.permissions-header .icon-wrapper.perm-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.permissions-header h2 {
  margin: 0;
  font-size: 28px;
  color: var(--text-primary);
}

.permissions-header p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

.header-badge.authorized {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.permissions-grant-section,
.permissions-list-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.permissions-grant-section h3,
.permissions-list-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--text-primary);
}

.grant-form .form-group {
  margin-bottom: 20px;
}

.grant-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.input-with-btn {
  display: flex;
  gap: 12px;
}

.input-with-btn input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
}

.btn-lookup {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-lookup:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.lookup-result {
  margin: 16px 0;
}

.lookup-success,
.lookup-not-found,
.lookup-error {
  padding: 16px;
  border-radius: 12px;
}

.lookup-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-found-header,
.not-found-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 16px;
}

.lookup-success .user-found-header {
  color: #10b981;
}

.lookup-not-found {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.not-found-header {
  color: #f59e0b;
}

.lookup-not-found p {
  margin: 8px 0;
  color: var(--text-secondary);
}

.lookup-not-found .hint {
  font-size: 13px;
  font-style: italic;
}

.lookup-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.user-info-grid .info-item {
  background: var(--bg-primary);
  padding: 12px;
  border-radius: 8px;
}

.user-info-grid .label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.user-info-grid .value {
  font-weight: 600;
  color: var(--text-primary);
}

.user-info-grid .perm-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-primary);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  text-transform: capitalize;
}

.permission-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.permission-option {
  cursor: pointer;
}

.permission-option input[type="radio"] {
  display: none;
}

.permission-option .option-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.permission-option .option-card i {
  font-size: 32px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.permission-option .option-title {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.permission-option .option-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.permission-option input[type="radio"]:checked + .option-card {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

.permission-option input[type="radio"]:checked + .option-card i {
  color: var(--accent-primary);
}

.channel-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.channel-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.channel-checkbox:hover {
  border-color: var(--accent-primary);
}

.channel-checkbox input[type="checkbox"]:checked + * {
  color: var(--accent-primary);
}

.btn-grant {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  margin-top: 16px;
}

.btn-grant:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

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

.empty-permissions {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

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

.empty-permissions h4 {
  margin: 0 0 8px;
  color: var(--text-primary);
}

.permission-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.perm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.perm-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perm-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.perm-username {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.perm-discord-id {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.perm-type-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.perm-type-badge.full {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.perm-type-badge.all {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.perm-type-badge.channels {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.perm-card-body {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.perm-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perm-detail .perm-label {
  font-size: 12px;
  color: var(--text-muted);
}

.perm-detail .perm-value {
  font-weight: 500;
  color: var(--text-primary);
}

.perm-card-actions {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.btn-revoke {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-revoke:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* Unauthorized Permission Warning Page */
.permission-unauthorized-overlay {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0a0a 0%, #0f0f1a 50%, #0a0a1a 100%);
  padding: 40px 20px;
}

.unauthorized-container {
  max-width: 520px;
  text-align: center;
}

.unauthorized-icon-section {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}

.warning-shield {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(239, 68, 68, 0.4);
}

.warning-shield > i {
  font-size: 48px;
  color: white;
}

.warning-shield .shield-x {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  background: #1f1f23;
  border: 2px solid #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-shield .shield-x i {
  color: #ef4444;
  font-size: 16px;
}

.warning-pulse {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 28px;
  animation: pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

.unauthorized-title {
  font-size: 32px;
  font-weight: 800;
  color: #ef4444;
  margin: 0 0 8px;
  letter-spacing: 2px;
}

.unauthorized-code {
  font-family: monospace;
  font-size: 13px;
  color: #f87171;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
  display: inline-block;
}

.unauthorized-message {
  margin-bottom: 24px;
}

.unauthorized-message p {
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.unauthorized-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.unauthorized-info-box .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.unauthorized-info-box .info-row:last-child {
  border-bottom: none;
}

.unauthorized-info-box .info-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.unauthorized-info-box .info-value {
  color: var(--text-primary);
  font-family: monospace;
  font-size: 13px;
}

.unauthorized-warning-strip {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #fca5a5;
}

.unauthorized-warning-strip i {
  color: #ef4444;
}

.unauthorized-screenshot-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.unauthorized-back-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.unauthorized-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.unauthorized-footer {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 13px;
}

.unauthorized-footer .footer-sub {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.6;
}

/* Access Denied Overlay */
.access-denied-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.access-denied-container {
  max-width: 480px;
  text-align: center;
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.access-denied-icon {
  margin-bottom: 24px;
}

.access-denied-icon .shield-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.access-denied-icon .shield-icon > i {
  font-size: 36px;
  color: white;
}

.access-denied-icon .shield-x {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: #1f1f23;
  border: 2px solid #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-denied-icon .shield-x i {
  color: #f59e0b;
  font-size: 12px;
}

.access-denied-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.access-denied-message {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.access-denied-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-denied-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  text-decoration: none;
}

.access-denied-btn:first-child {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
}

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

.access-denied-btn:hover {
  transform: translateY(-2px);
}

.access-denied-footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   ENHANCED ACCESS DENIED OVERLAY STYLES
   ======================================== */

.access-denied-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease;
}

.access-denied-container {
  background: linear-gradient(180deg, #1a1a22 0%, #12121a 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 80px rgba(239, 68, 68, 0.15);
}

.access-denied-header {
  margin-bottom: 24px;
}

.access-denied-icon-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.access-denied-shield {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
}

.access-denied-shield i {
  font-size: 42px;
  color: white;
}

.access-denied-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(239, 68, 68, 0.5);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.access-denied-content {
  margin-bottom: 24px;
}

.access-denied-content .access-denied-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px;
}

.access-denied-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
  letter-spacing: 2px;
  margin: 0;
}

.access-denied-info-card {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  margin: 24px 0;
}

.access-denied-info-card .info-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.access-denied-info-card .info-card-icon i {
  color: #ef4444;
  font-size: 18px;
}

.access-denied-info-card .info-card-content p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.access-denied-info-card .info-card-content p:last-child {
  margin-bottom: 0;
}

.access-denied-info-card .highlight-page {
  color: #ef4444;
  font-weight: 600;
}

.access-denied-info-card .secondary-text {
  font-size: 13px;
  color: var(--text-muted);
}

.access-denied-details {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.access-denied-details .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.access-denied-details .detail-item:last-child {
  border-bottom: none;
}

.access-denied-details .detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.access-denied-details .detail-label i {
  color: #ef4444;
  width: 16px;
}

.access-denied-details .detail-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.access-denied-content .access-denied-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 24px;
}

.access-denied-content .access-denied-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.access-denied-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.access-denied-content .access-denied-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.access-denied-content .access-denied-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.access-denied-content .access-denied-footer {
  margin-top: 28px;
}

.access-denied-content .access-denied-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.access-denied-content .access-denied-footer .footer-sub {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 4px;
}

/* ========================================
   ENHANCED LOOKUP RESULT STYLES
   ======================================== */

.lookup-success-card {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
}

.lookup-success-card.editing-mode {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.lookup-success-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.editing-mode .lookup-success-header {
  border-color: rgba(59, 130, 246, 0.2);
}

.success-indicator {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-indicator.edit {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.success-indicator i {
  color: white;
  font-size: 16px;
}

.success-text {
  font-size: 16px;
  font-weight: 600;
  color: #10b981;
}

.editing-mode .success-text {
  color: #3b82f6;
}

.lookup-user-profile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .user-profile-row {
    grid-template-columns: 1fr;
  }
}

.profile-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon i {
  font-size: 18px;
  color: var(--text-secondary);
}

.username-item .profile-icon i { color: #5865F2; }
.discord-id-item .profile-icon i { color: #a855f7; }
.hosting-item .profile-icon i { color: #f59e0b; }
.perm-item .profile-icon i { color: #10b981; }

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.profile-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-all;
}

.profile-value.discord-id {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  color: #a855f7;
}

.profile-value.perm-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  width: fit-content;
}

.profile-value.perm-badge.full {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.profile-value.perm-badge.all {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.profile-value.perm-badge.channels {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.profile-value.no-perm {
  color: var(--text-muted);
  font-style: italic;
}

.edit-hint {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-hint i {
  font-size: 16px;
}

/* ========================================
   ENHANCED CHANNEL CHECKBOXES GRID
   ======================================== */

.channel-checkboxes-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-category {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.category-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title i {
  color: #3b82f6;
}

.channel-category .channel-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.channel-category .channel-checkbox:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.channel-category .channel-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.channel-category .channel-checkbox .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.channel-category .channel-checkbox .checkbox-label i {
  width: 18px;
  color: var(--text-secondary);
}

.channel-category .channel-checkbox:has(input:checked) {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.channel-category .channel-checkbox:has(input:checked) .checkbox-label {
  color: #3b82f6;
}

.channel-category .channel-checkbox:has(input:checked) .checkbox-label i {
  color: #3b82f6;
}

/* ========================================
   ENHANCED PERMISSION CARDS STYLES
   ======================================== */

.perm-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perm-discord-id-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Consolas', 'Monaco', monospace;
}

.perm-discord-id-display i {
  font-size: 11px;
  color: #a855f7;
}

.perm-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .perm-details-grid {
    grid-template-columns: 1fr;
  }
}

.perm-card-body .perm-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perm-card-body .perm-label {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.perm-card-body .perm-label i {
  font-size: 11px;
}

.perm-card-body .perm-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.perm-pages-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pages-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.pages-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-tag {
  padding: 5px 12px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  font-size: 12px;
  color: #60a5fa;
  font-weight: 500;
}

.permission-card .perm-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-edit-perm {
  flex: 1;
  padding: 10px 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-edit-perm:hover {
  background: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.permission-card .btn-revoke {
  flex: 1;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.permission-card .btn-revoke:hover {
  background: rgba(239, 68, 68, 0.25);
  transform: translateY(-2px);
}

.perm-card-header .perm-type-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.perm-type-badge.full {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.perm-type-badge.all {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.perm-type-badge.channels {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.perm-type-badge.none {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* ========================================
   PTERODACTYL-STYLE FILES PAGE
   ======================================== */

.files-page-pterodactyl {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #171a21;
  border-radius: 12px;
  overflow: hidden;
}

.files-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #1e222a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 20px;
  flex-wrap: wrap;
}

.files-breadcrumb-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.files-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #8b97a9;
}

.breadcrumb-separator {
  color: #4a5568;
}

.breadcrumb-item {
  color: #8b97a9;
  cursor: pointer;
  transition: color 0.2s;
}

.breadcrumb-item:hover,
.breadcrumb-item.active {
  color: #60a5fa;
}

.files-search-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  gap: 8px;
  min-width: 200px;
}

.files-search-container i {
  color: #6b7280;
  font-size: 13px;
}

.files-search-container input {
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 13px;
  width: 100%;
}

.files-search-container input::placeholder {
  color: #6b7280;
}

.files-action-buttons {
  display: flex;
  gap: 8px;
}

.files-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

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

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

.files-btn.upload-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.files-btn.new-file-btn:hover,
.files-btn.new-folder-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.files-table-container {
  flex: 1;
  overflow-y: auto;
}

.files-table-pterodactyl {
  width: 100%;
  border-collapse: collapse;
}

.files-table-pterodactyl thead {
  background: #1a1d24;
  position: sticky;
  top: 0;
  z-index: 10;
}

.files-table-pterodactyl th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: lowercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
}

.files-table-pterodactyl th:hover {
  color: #9ca3af;
}

.files-table-pterodactyl th i {
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.5;
}

.files-table-pterodactyl th.checkbox-col {
  width: 50px;
  cursor: default;
}

.files-table-pterodactyl th.actions-col {
  width: 60px;
  cursor: default;
}

.files-table-pterodactyl th.size-col {
  width: 120px;
}

.files-table-pterodactyl th.date-col {
  width: 200px;
}

.file-row {
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.file-row:hover {
  background: rgba(59, 130, 246, 0.08);
}

.file-row td {
  padding: 12px 16px;
  font-size: 14px;
  color: #e5e7eb;
}

.file-row td.checkbox-col input {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.file-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-name-cell .folder-icon {
  color: #60a5fa;
  font-size: 16px;
}

.file-name-cell .file-icon {
  color: #9ca3af;
  font-size: 16px;
}

.file-name-cell .file-name {
  cursor: pointer;
  transition: color 0.2s;
}

.file-name-cell .file-name:hover {
  color: #60a5fa;
}

.file-row .size-col,
.file-row .date-col {
  color: #9ca3af;
  font-size: 13px;
}

.file-action-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.file-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

.loading-cell,
.empty-cell {
  text-align: center;
  padding: 60px 20px !important;
  color: #6b7280;
}

.files-empty-state-pterodactyl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.files-empty-state-pterodactyl i {
  font-size: 48px;
  color: #4a5568;
}

.files-empty-state-pterodactyl p {
  color: #6b7280;
  margin: 0;
}

.files-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1a1d24;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #4a5568;
}

/* Context Menu - Pterodactyl Style */
.file-context-menu-pterodactyl {
  position: fixed;
  background: #1e222a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px;
  min-width: 160px;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.file-context-menu-pterodactyl button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
  text-align: left;
}

.file-context-menu-pterodactyl button:hover {
  background: rgba(59, 130, 246, 0.15);
}

.file-context-menu-pterodactyl button.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.file-context-menu-pterodactyl button i {
  width: 16px;
  text-align: center;
  color: #9ca3af;
}

.file-context-menu-pterodactyl .menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

/* Create Folder Modal */
.create-folder-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.create-folder-modal-content {
  background: #1e222a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  overflow: hidden;
}

.create-folder-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #171a21;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.create-folder-modal-header h3 {
  margin: 0;
  color: #e5e7eb;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.create-folder-modal-header h3 i {
  color: #60a5fa;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 18px;
  transition: color 0.2s;
}

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

.create-folder-modal-body {
  padding: 24px;
}

.create-folder-modal-body label {
  display: block;
  margin-bottom: 10px;
  color: #9ca3af;
  font-size: 13px;
}

.create-folder-modal-body input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.create-folder-modal-body input:focus {
  border-color: #3b82f6;
}

.create-folder-modal-body input::placeholder {
  color: #6b7280;
}

.create-folder-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: #171a21;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.create-folder-modal-footer .cancel-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.create-folder-modal-footer .cancel-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.create-folder-modal-footer .create-btn {
  padding: 10px 20px;
  background: #3b82f6;
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.create-folder-modal-footer .create-btn:hover {
  background: #2563eb;
}

/* ========================================
   SERVERS MANAGEMENT STYLES
   ======================================== */

.servers-management-section {
  margin-top: 24px;
}

.servers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.servers-header h3 {
  color: var(--text-primary);
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.servers-header h3 i {
  color: #3b82f6;
}

.add-server-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.add-server-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.servers-table {
  width: 100%;
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.servers-table th {
  background: var(--bg-elevated);
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.servers-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
}

.servers-table tr:last-child td {
  border-bottom: none;
}

.servers-table tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.server-status.online {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.server-status.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.server-status.maintenance {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

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

.server-action-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #9ca3af;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.server-action-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.server-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.empty-servers {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.empty-servers i {
  font-size: 40px;
  color: #4a5568;
  margin-bottom: 16px;
}

.empty-servers p {
  margin: 0;
}

/* User Management Tabs */
.user-mgmt-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.user-mgmt-tabs .tab-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.user-mgmt-tabs .tab-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
}

.user-mgmt-tabs .tab-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.user-mgmt-tabs .tab-btn i {
  font-size: 14px;
}

/* Server Type Badge */
.server-type-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.server-type-badge.production {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.server-type-badge.backup {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.server-type-badge.development {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.server-type-badge.general {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

/* Server Modal */
.server-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.server-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  overflow: hidden;
}

.server-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.server-modal-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-modal-header h2 i {
  color: #3b82f6;
}

.server-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.server-modal-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-modal-body .form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.server-modal-body .form-group input,
.server-modal-body .form-group select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.server-modal-body .form-group input:focus,
.server-modal-body .form-group select:focus {
  border-color: #3b82f6;
}

.server-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
}

.server-modal-footer .cancel-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.server-modal-footer .cancel-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.save-server-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.save-server-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Servers Button in User Management */
.action-icon-btn.servers {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.action-icon-btn.servers:hover {
  background: rgba(6, 182, 212, 0.2);
}

/* User Servers Modal */
.user-servers-modal,
.add-user-server-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.user-servers-modal-content,
.add-user-server-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.user-servers-modal-header,
.add-user-server-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-radius: 16px 16px 0 0;
}

.user-servers-modal-header h2,
.add-user-server-modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-servers-modal-header h2 i,
.add-user-server-modal-header h2 i {
  color: #06b6d4;
}

.user-servers-username {
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 20px;
  font-size: 13px;
  color: #06b6d4;
  font-weight: 600;
}

.user-servers-modal-header .close-modal-btn,
.add-user-server-modal-header .close-modal-btn {
  margin-left: auto;
}

.user-servers-modal-body,
.add-user-server-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.user-servers-modal-footer,
.add-user-server-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  border-radius: 0 0 16px 16px;
}

.add-user-server-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.add-user-server-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.user-servers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-server-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
}

.user-server-item:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.user-server-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-server-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06b6d4;
  font-size: 20px;
}

.user-server-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-server-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-server-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.user-server-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-server-meta .server-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-server-meta .server-status.online {
  color: #22c55e;
}

.user-server-meta .server-status.offline {
  color: #ef4444;
}

.user-server-meta .server-status.maintenance {
  color: #f59e0b;
}

.user-server-meta .server-status i {
  font-size: 8px;
}

.remove-user-server-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.remove-user-server-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

.empty-user-servers {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-user-servers i {
  font-size: 48px;
  color: rgba(6, 182, 212, 0.3);
  margin-bottom: 16px;
}

.empty-user-servers p {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--text-primary);
}

.empty-user-servers span {
  font-size: 13px;
}

.add-user-server-modal-content {
  max-width: 400px;
}

.add-user-server-modal-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-user-server-modal-body .form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.add-user-server-modal-body .form-group select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.add-user-server-modal-body .form-group select:focus {
  border-color: #06b6d4;
}

.add-user-server-modal-footer .cancel-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-user-server-modal-footer .cancel-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.add-user-server-modal-footer .save-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.add-user-server-modal-footer .save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* File row click improvements */
.file-row {
  cursor: pointer;
}

.file-row:hover {
  background: rgba(59, 130, 246, 0.05);
}

.file-row .actions-col {
  cursor: default;
}

.file-row .actions-col button {
  cursor: pointer;
}