/* Dark Theme (Default) */
:root {
  --primary: #FF6701;
  --primary-hover: #a64180;
  --secondary: #5a7a5e;
  --accent: #c45a2b;
  --header-line:#FF6701;
  --bg-dark: #222222;
  --bg-darker: #222222;
  --bg-card: #24261e;
  --bg-card-var:#303030; 
  --bg-darker-var: #171711;  
  --bg-input: #1a1d15;
  --border: #2a2e24;
  --border-hover:#a64180;
  --border-light: #383d2f;
  --text: #d4d4c8;
  --text-muted: #8a8c7e;
  --success: #5a7a5e;
  --danger: #a8483b;
  --glow: rgba(217, 125, 63, 0.3);
  --header-var:#222222;
}

/* Light Theme */
[data-theme="light"] {
  --primary: #FF6701;
  --primary-hover: #a64180;
  --secondary: #a64180;
  --header-line:#FF6701;
  --accent: #c45a2b;
  --bg-dark: #ffffff;
  --bg-darker: #ffffff;
  --bg-card: #ffffff;
  --bg-card-var: #f9f9f9;
  --bg-darker-var: #ffffff;
  --bg-input: #f0f0eb;
  --border:#FF6701;
  --border-hover:#a64180;
  --border-light: #c4c4b8;
  --text: #1a1c14;
  --text-muted: #5a5c4e;
  --success: #5a7a5e;
  --danger: #a8483b;
  --glow: rgba(217, 125, 63, 0.2);
  --header-var:#ffffff;
}

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

html, body {
  height: 100%;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

/* Header */
.app-header {
  background: var(--header-var);
  border-bottom: 3px solid var(--header-line);
  border-image: transparent;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.app-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--glow),
               4px 2px 2px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 10px rgba(217, 125, 63, 0.4));
  flex: 1;
}

.subtitle {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.subtitle:hover {
  color: var(--primary-hover);
  text-shadow: 1 1 10px rgba(217, 125, 63, 0.6), 1px 1px 2px rgba(0, 2, 1, 0.9);
}

/* Theme Toggle */
.theme-toggle {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.1) 0%, rgba(90, 122, 94, 0.1) 100%),
              var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.2) 0%, rgba(90, 122, 94, 0.15) 100%),
              var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(217, 125, 63, 0.4);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-icon {
  color: var(--primary);
  transition: all 0.3s ease;
  position: absolute;
}

.sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* Light theme shadow overrides */
[data-theme="light"] .tool-section {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(217, 125, 63, 0.1);
}

[data-theme="light"] .app-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] select,
[data-theme="light"] textarea {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="number"]:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05),
              0 0 0 3px rgba(217, 125, 63, 0.15);
}

[data-theme="light"] .tab-nav {
  background: #ffffff;
}

[data-theme="light"] .tool-card {
  background: #ffffff;
}

/* Tab Navigation */
.tab-nav {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-darker) 100%);
  border-bottom: 3px solid var(--border);
  padding: 0 24px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-nav::-webkit-scrollbar {
  height: 4px;
}

.tab-nav::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

.tab-nav::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tab-btn:hover {
  color: white;
  background: linear-gradient(203deg,rgba(166, 65, 128, 1) 0%, rgba(255, 103, 1, 1) 75%);
    border-bottom:none;
  text-shadow: 0 0 8px var(--glow);
}

.tab-btn:hover::before {
  opacity: 0.05;
}

.tab-btn.active {
  color: white;
  border-bottom-color: white;
  background:linear-gradient(0deg,rgba(166, 65, 128, 1) 0%, rgba(255, 103, 1, 1) 63%);
  text-shadow: 0 0 10px var(--glow);
}

/* Tab Content */
.tab-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 28px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.tool-section {
  background: var(--bg-card-var), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(217, 125, 63, 0.1);
}

.tool-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), transparent) 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--glow);
}

/* Form Elements */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.checkbox-row {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s ease;
}

.checkbox-label:hover {
  color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  filter: drop-shadow(0 0 4px var(--glow));
}

/* Inputs */
input[type="text"],
input[type="number"],
select,
textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(217, 125, 63, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3),
              0 0 0 3px rgba(217, 125, 63, 0.15);
}

/* Enhanced Select Styling for Better Visibility */
select {
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d97d3f' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
  border: 2px solid var(--border-light);
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select:hover {
  border-color: var(--primary);
  background-color: rgba(217, 125, 63, 0.08);
}

select option {
  background: var(--bg-card);
  color: var(--text);
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
}

input[type="file"] {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  color: var(--text-muted);
  font-size: 13px;
  width: 100%;
  margin-bottom: 18px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

input[type="file"]:hover {
  border-color: var(--primary);
}

input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-right: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(217, 125, 63, 0.3);
}

input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: 0 6px 16px rgba(217, 125, 63, 0.5);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.1) 0%, rgba(90, 122, 94, 0.1) 100%),
              var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 20px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(217, 125, 63, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  border-radius: 50%;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.2) 0%, rgba(90, 122, 94, 0.15) 100%),
              var(--bg-card);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 125, 63, 0.25);
}

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

.btn-primary {
  background:#FF6701;
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(217, 125, 63, 0.4);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: 0 6px 25px rgba(217, 125, 63, 0.6);
  transform: translateY(-3px);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #4a6a5e 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(90, 122, 94, 0.4);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-success:hover {
  background: linear-gradient(135deg, #6a9a7e 0%, var(--success) 100%);
  box-shadow: 0 6px 25px rgba(90, 122, 94, 0.6);
  transform: translateY(-3px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #8a3a2b 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(168, 72, 59, 0.4);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c8584b 0%, var(--danger) 100%);
  box-shadow: 0 6px 25px rgba(168, 72, 59, 0.6);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(90, 122, 94, 0.2);
  border: 1px solid var(--border-light);
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(217, 125, 63, 0.4);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-download:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: 0 6px 25px rgba(217, 125, 63, 0.6);
  transform: translateY(-3px);
}

/* Editor Split */
.editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

textarea {
  min-height: 320px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}

pre {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px;
  overflow: auto;
  max-height: 450px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Map Layout */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 1400px) {
  .map-layout {
    grid-template-columns: 1fr 350px;
  }
}

.map-area {
  position: relative;
  background: #0a0a0a;
  border: 2px solid var(--primary);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(217, 125, 63, 0.3);
  overflow: auto;
  max-height: 800px;
}

#spawnMap {
  display: block;
  cursor: crosshair;
  image-rendering: auto;
  -webkit-user-select: none;
  user-select: none;
  min-width: 3072px;
  min-height: 3072px;
}

.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
}

.map-control-btn {
  background: rgba(13, 14, 10, 0.95);
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.map-control-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(217, 125, 63, 0.5);
}

.tooltip {
  position: absolute;
  background: rgba(13, 14, 10, 0.98);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  pointer-events: none;
  display: none;
  z-index: 10;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spawn-list-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.spawn-list-box strong {
  color: var(--primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spawn-items {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spawn-item {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-family: monospace;
  transition: all 0.2s ease;
}

.spawn-item:hover {
  border-color: var(--primary);
  background: rgba(217, 125, 63, 0.05);
}

.spawn-coords {
  color: var(--text-muted);
}

.spawn-remove {
  background: var(--danger);
  border: none;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.spawn-remove:hover {
  background: #c8584b;
  box-shadow: 0 2px 8px rgba(168, 72, 59, 0.5);
}

/* Types Booster Advanced Styles */
.types-upload-section {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.types-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.types-summary h3 {
  color: var(--primary);
  margin: 0 0 16px 0;
  font-size: 18px;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat-box {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

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

.category-breakdown,
.usage-breakdown {
  margin-top: 12px;
  color: var(--text);
  font-size: 14px;
}

.category-breakdown strong,
.usage-breakdown strong {
  color: var(--primary);
}

.category-breakdown span,
.usage-breakdown span {
  color: var(--text-muted);
}

.types-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 125, 63, 0.1);
}

.filter-select {
  padding: 10px 14px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

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

.bulk-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.bulk-actions label {
  color: var(--text);
  font-weight: 600;
}

.bulk-actions input {
  width: 100px;
  padding: 8px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

.types-table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.types-table thead {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.15) 0%, rgba(21, 23, 16, 0.95) 100%);
  z-index: 10;
}

.types-table th {
  padding: 12px;
  text-align: left;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--border);
}

.types-table th:first-child {
  width: 40px;
  text-align: center;
}

.types-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.types-table tbody tr:hover {
  background: rgba(217, 125, 63, 0.05);
}

.types-table td {
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
}

.types-table td:first-child {
  text-align: center;
}

.types-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.types-table input[type="number"] {
  width: 80px;
  padding: 6px 8px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
}

.types-table input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 12px;
}

.types-table input:focus {
  outline: none;
  border-color: var(--primary);
}

.item-name-cell {
  font-weight: 600;
  color: var(--primary);
}

#modifiedXml {
  width: 100%;
  min-height: 300px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Economy Table */
.economy-guide {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.economy-guide strong {
  color: var(--text);
}

.economy-guide span {
  color: var(--primary);
  font-weight: 600;
}

.economy-table-wrapper {
  overflow-x: auto;
}

.economy-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.economy-table thead tr {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.15) 0%, rgba(21, 23, 16, 0.8) 100%);
}

.economy-table th {
  padding: 12px;
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
}

.economy-table th:first-child,
.economy-table th:last-child {
  text-align: left;
}

.economy-table th:not(:first-child):not(:last-child) {
  text-align: center;
}

.economy-table tbody tr {
  transition: background 0.2s ease;
}

.economy-table tbody tr:hover {
  background: rgba(217, 125, 63, 0.05);
}

.economy-table td {
  padding: 10px;
  border: 1px solid var(--border);
  color: var(--text);
}

.economy-table td:not(:first-child):not(:last-child) {
  text-align: center;
}

.economy-table td strong {
  color: var(--primary);
  font-weight: 600;
}

.economy-table td.desc {
  font-size: 13px;
  color: var(--text-muted);
}

.economy-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Footer */
.app-footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  
  .editor-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tab-content {
    padding: 18px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .app-header h1 {
    font-size: 22px;
  }
  
  .tool-section {
    padding: 20px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

.landing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.landing-hero {
  text-align: center;
  padding: 60px 0 40px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
  background: linear-gradient(180deg, rgba(217, 125, 63, 0.05) 0%, transparent 100%);
}

.landing-hero h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 16px;
  text-shadow: 0 0 30px var(--glow),
               3px 3px 6px rgba(0, 0, 0, 0.9);
  filter: drop-shadow(0 0 15px rgba(217, 125, 63, 0.5));
}

.landing-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.landing-about {
  padding: 40px 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}

.landing-about .logo-container {
  text-align: center;
  margin-bottom: 40px;
}

.landing-about .haventoolz-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(217, 125, 63, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(217, 125, 63, 0.2);
}

.landing-about .haventoolz-logo:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6),
              0 0 60px rgba(217, 125, 63, 0.5);
}

.landing-about h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--glow);
  text-align: center;
}

.landing-about p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 900px;
}

.contributors-section {
  padding: 40px 0;
}

.contributors-section h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--glow);
  text-align: center;
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contributor-box {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.08) 0%, rgba(90, 122, 94, 0.05) 100%),
              var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.contributor-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(217, 125, 63, 0.3),
              0 0 20px rgba(217, 125, 63, 0.2);
}

.contributor-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px var(--glow),
              inset 0 0 10px rgba(0, 0, 0, 0.5);
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contributor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-avatar {
  font-size: 64px;
  color: var(--text-muted);
  font-weight: 300;
  opacity: 0.5;
}

.contributor-box h4 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contributor-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.contributor-placeholder {
  opacity: 0.7;
}

.contributor-placeholder:hover {
  opacity: 1;
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(90, 122, 94, 0.3),
              0 0 20px rgba(90, 122, 94, 0.2);
}

/* Team Section */
.team-section {
  margin-top: 60px;
}

.team-section h3 {
  font-size: 32px;
  margin-bottom: 32px;
  color: var(--accent);
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.team-member {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255, 103, 1, 0.2);
}

.team-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--accent);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h4 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.team-bio {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.team-message {
  margin-top: 40px;
  padding: 24px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
}

.team-message p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.landing-cta {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 2px solid var(--border);
}

.landing-cta p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 16px;
}

.landing-discord {
  margin-top: 24px;
}

.discord-link {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(217, 125, 63, 0.4);
}

.discord-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 125, 63, 0.6),
              0 0 30px rgba(217, 125, 63, 0.4);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent),
              linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

/* Responsive adjustments for landing page */
@media (max-width: 768px) {
  .landing-hero h2 {
    font-size: 32px;
  }
  
  .landing-subtitle {
    font-size: 16px;
  }
  
  .landing-about .haventoolz-logo {
    max-width: 300px;
  }
  
  .landing-about h3,
  .contributors-section h3 {
    font-size: 24px;
  }
  
  .contributors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contributor-image {
    width: 150px;
    height: 150px;
  }
}

/* ========================================
   VEHICLE EDITOR STYLES
   ======================================== */

.tool-description {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.select-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
}

.select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 125, 63, 0.1);
}

.range-value {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

.help-text {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
  font-style: italic;
}

.cargo-section {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.05) 0%, rgba(90, 122, 94, 0.03) 100%),
              var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.cargo-section h3 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cargo-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

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

.cargo-name {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  transition: all 0.3s ease;
}

.cargo-name:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 125, 63, 0.1);
}

.cargo-chance {
  width: 100px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  text-align: center;
  transition: all 0.3s ease;
}

.cargo-chance:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 125, 63, 0.1);
}

.vehicle-info {
  margin: 24px 0;
  padding: 16px;
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
}

.vehicle-info h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.vehicle-info p {
  color: var(--text);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217, 125, 63, 0.5);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(217, 125, 63, 0.7);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(217, 125, 63, 0.5);
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(217, 125, 63, 0.7);
}

/* Map Selector */
.map-selector {
  margin: 20px 0;
}

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

.map-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.map-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(217, 125, 63, 0.3);
}

.map-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.1) 0%, rgba(90, 122, 94, 0.05) 100%),
              var(--bg-card);
  box-shadow: 0 0 20px rgba(217, 125, 63, 0.4);
}

.map-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
  border: 1px solid var(--border-light);
}

.map-card h4 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: 700;
}

.map-card p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.08) 0%, rgba(90, 122, 94, 0.05) 100%),
              var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
  font-size: 13px;
  line-height: 1.6;
}

.info-box strong {
  color: var(--primary);
  font-weight: 600;
}

.form-section {
  margin: 25px 0;
}

.form-section h3 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 700;
}

/* Loadout Generator Styles */
.loadout-items-container {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px;
  min-height: 150px;
  max-height: 400px;
  overflow-y: auto;
}

.loadout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.loadout-item:hover {
  border-color: var(--primary);
  background: rgba(217, 125, 63, 0.05);
}

.loadout-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.loadout-item-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.loadout-item-details {
  flex: 1;
}

.loadout-item-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.loadout-item-classname {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

.loadout-item-remove {
  background: var(--danger);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.loadout-item-remove:hover {
  background: #b8584b;
}

/* Floating Donation Button */
.donate-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(217, 125, 63, 0.4),
              0 4px 12px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 2px solid transparent;
}

.donate-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(217, 125, 63, 0.6),
              0 6px 16px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

.donate-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.donate-btn svg {
  width: 24px;
  height: 24px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.donate-btn span {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Why Us Page */
.why-us-section {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.03) 0%, rgba(21, 23, 16, 0.95) 100%),
              var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.why-us-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--glow);
  text-align: center;
}

.why-us-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.1) 0%, rgba(21, 23, 16, 0.5) 100%);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.hero-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 2px 8px rgba(217, 125, 63, 0.3);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.why-card {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.05) 0%, rgba(21, 23, 16, 0.98) 100%),
              var(--bg-darker);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(217, 125, 63, 0.2);
}

.why-icon {
  font-size: 48px;
  margin-bottom: 16px;
  text-align: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.why-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.why-us-footer {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.08) 0%, rgba(21, 23, 16, 0.6) 100%);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

.why-us-footer h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.why-us-footer p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-cta {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 600;
}

.inline-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.inline-link:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
  text-shadow: 0 0 8px var(--glow);
}

/* Spawn Points Generator */
.spawn-map-container {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.08) 0%, rgba(90, 122, 94, 0.05) 100%),
              var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#spawnMapCanvas {
  border: 2px solid var(--primary);
  border-radius: 4px;
  cursor: crosshair;
  background: #1a1c14;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.map-coords-display {
  margin-top: 12px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}

.map-coords-display span {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

#currentMapCoords {
  color: var(--primary);
  font-weight: 600;
}

.spawn-groups-container {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.08) 0%, rgba(90, 122, 94, 0.05) 100%),
              var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
}

.spawn-groups-container h3 {
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spawn-group-item {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.spawn-group-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(217, 125, 63, 0.2);
}

.spawn-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.spawn-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.spawn-group-type {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  background: rgba(217, 125, 63, 0.1);
  padding: 4px 8px;
  border-radius: 3px;
}

.spawn-points-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.spawn-point-coord {
  font-size: 12px;
  color: var(--text);
  background: var(--bg-card);
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
  font-family: 'Courier New', monospace;
}

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

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

/* Events Editor */
.event-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-darker);
  border: 2px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97D3F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.event-select:hover {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(217, 125, 63, 0.2);
}

.event-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(217, 125, 63, 0.4);
}

.event-select option {
  background: var(--bg-darker);
  color: var(--text);
  padding: 8px;
  font-weight: 500;
}

.event-select optgroup {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 700;
  font-style: normal;
  padding: 4px 0;
}

.event-select option:hover,
.event-select option:checked {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.2) 0%, rgba(21, 23, 16, 0.9) 100%);
}

/* Events Tabs */
.events-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.events-tab-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 6px 6px 0 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.events-tab-btn:hover {
  background: var(--bg-darker);
  border-color: var(--primary);
  color: var(--text);
}

.events-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(217, 125, 63, 0.3);
}

.events-tab-content {
  display: none;
}

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

/* Vehicle Selection Grid */
.vehicle-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.vehicle-select-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.vehicle-select-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(217, 125, 63, 0.2);
  transform: translateY(-2px);
}

.vehicle-select-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.15) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 20px rgba(217, 125, 63, 0.3);
}

.vehicle-select-card.selected::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: var(--bg);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.vehicle-select-card h4 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.vehicle-select-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* Parameter Documentation */
.parameter-docs {
  background: var(--bg-darker);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.parameter-docs h4 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.param-help-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  transition: all 0.2s ease;
}

.param-help-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(217, 125, 63, 0.15);
}

.param-help-card strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}

.param-help-card p {
  color: var(--text);
  font-size: 12px;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.param-example {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-style: italic;
  margin-top: 4px;
}

/* Vehicle Parameter Forms */
#vehicleParamsContainer {
  margin-top: 24px;
}

.vehicle-param-form {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.vehicle-param-form h4 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vehicle-param-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.help-text {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Our Tools Page */
.tools-overview {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.03) 0%, rgba(21, 23, 16, 0.95) 100%),
              var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.tools-overview h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--glow);
}

.tools-intro {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tool-card {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.05) 0%, rgba(21, 23, 16, 0.98) 100%),
              var(--bg-darker);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.tool-card:hover::before {
  opacity: 0.1;
}

.tool-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(217, 125, 63, 0.3),
              0 6px 16px rgba(0, 0, 0, 0.6);
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.tool-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tool-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tool-card .btn {
  margin-top: auto;
  width: 100%;
}

.tool-card-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.tool-card-disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.1) 10px,
    rgba(0, 0, 0, 0.1) 20px
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 8px;
}

.tool-card-disabled:hover {
  transform: none;
  box-shadow: none;
}

.tool-card-disabled:hover::before {
  opacity: 0;
}

.badge-dev {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="light"] .badge-dev {
  background: var(--accent);
  color: white;
}

/* ==========================================
   RPT DIAGNOSTIC STYLES
   ========================================== */

.rpt-summary {
  margin: 32px 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.summary-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

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

.summary-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.summary-label {
  font-size: 14px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-critical {
  border-color: #dc3545;
}

.summary-critical .summary-number {
  color: #dc3545;
}

.summary-error {
  border-color: #ff6b6b;
}

.summary-error .summary-number {
  color: #ff6b6b;
}

.summary-warning {
  border-color: #ffa500;
}

.summary-warning .summary-number {
  color: #ffa500;
}

.summary-info {
  border-color: var(--accent);
}

.summary-info .summary-number {
  color: var(--accent);
}

.issue-card {
  background: var(--card-bg);
  border-left: 4px solid;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

.issue-card.critical {
  border-left-color: #dc3545;
}

.issue-card.error {
  border-left-color: #ff6b6b;
}

.issue-card.warning {
  border-left-color: #ffa500;
}

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

.issue-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.issue-type.critical {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.issue-type.error {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.issue-type.warning {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
}

.issue-count {
  opacity: 0.7;
  font-size: 14px;
}

.issue-message {
  font-family: 'Consolas', 'Monaco', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 4px;
  margin: 12px 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}

.file-location-box {
  background: linear-gradient(135deg, rgba(255, 103, 1, 0.15), rgba(166, 65, 128, 0.15));
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 14px;
  margin: 10px 0 15px 0;
  box-shadow: 0 2px 8px rgba(255, 103, 1, 0.2);
}

[data-theme="light"] .file-location-box {
  background: linear-gradient(135deg, rgba(255, 103, 1, 0.08), rgba(166, 65, 128, 0.08));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-location-header {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.file-location-file {
  font-size: 13px;
  margin: 6px 0;
  color: var(--text-color);
}

.file-location-file code {
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  color: #4fc3f7;
  font-weight: 600;
  word-break: break-all;
}

[data-theme="light"] .file-location-file code {
  background: rgba(0, 0, 0, 0.08);
  color: #0277bd;
}

.file-location-line {
  font-size: 14px;
  margin: 6px 0;
  color: var(--text-color);
}

.file-location-line strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.issue-solution {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 103, 1, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

[data-theme="light"] .issue-solution {
  background: rgba(255, 103, 1, 0.03);
}

.issue-solution strong {
  color: var(--accent);
}

.issue-impact {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  border-radius: 4px;
}

[data-theme="light"] .issue-impact {
  background: rgba(255, 193, 7, 0.05);
}

.issue-impact strong {
  color: #ffc107;
}

.issue-console-action {
  margin-top: 12px;
  padding: 12px;
  background: rgba(33, 150, 243, 0.1);
  border-left: 3px solid #2196f3;
  border-radius: 4px;
}

[data-theme="light"] .issue-console-action {
  background: rgba(33, 150, 243, 0.05);
}

.issue-console-action strong {
  color: #2196f3;
}

.fixable-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
}

.fixable-badge.can-fix {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid #4caf50;
}

.fixable-badge.cannot-fix {
  background: rgba(158, 158, 158, 0.2);
  color: #9e9e9e;
  border: 1px solid #9e9e9e;
}

.recommendation-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.recommendation-card h4 {
  color: var(--accent);
  margin-bottom: 12px;
}

.recommendation-card ul {
  margin: 12px 0;
  padding-left: 20px;
}

.recommendation-card li {
  margin: 8px 0;
  line-height: 1.6;
}

.issues-overview-list {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-top: 16px;
}

.overview-category {
  margin-bottom: 24px;
}

.overview-category:last-child {
  margin-bottom: 0;
}

.overview-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.overview-category-header.critical {
  border-bottom-color: #dc3545;
}

.overview-category-header.error {
  border-bottom-color: #ff6b6b;
}

.overview-category-header.warning {
  border-bottom-color: #ffa500;
}

.overview-category-title {
  font-size: 18px;
  font-weight: 600;
}

.overview-category-title.critical {
  color: #dc3545;
}

.overview-category-title.error {
  color: #ff6b6b;
}

.overview-category-title.warning {
  color: #ffa500;
}

.overview-issue-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border-left: 3px solid;
}

[data-theme="light"] .overview-issue-item {
  background: rgba(0, 0, 0, 0.03);
}

.overview-issue-item.critical {
  border-left-color: #dc3545;
}

.overview-issue-item.error {
  border-left-color: #ff6b6b;
}

.overview-issue-item.warning {
  border-left-color: #ffa500;
}

.overview-issue-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.overview-issue-content {
  flex: 1;
}

.overview-issue-name {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
}

.overview-issue-description {
  opacity: 0.8;
  font-size: 14px;
  margin-bottom: 4px;
}

.overview-issue-count {
  font-size: 13px;
  opacity: 0.7;
  font-style: italic;
}

.no-issues-message {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  opacity: 0.8;
}

.no-issues-message .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #4caf50;
}

/* ==========================================
   SERVER INTEGRATION STYLES
   ========================================== */

.integration-section {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.integration-section h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--accent);
}

.integration-intro {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.integration-status-box {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.status-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.integration-disconnected h3,
.integration-connected h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.integration-disconnected p,
.integration-connected p {
  opacity: 0.8;
  margin-bottom: 24px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-large svg {
  fill: currentColor;
}

.integration-features {
  background: rgba(255, 103, 1, 0.05);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 24px;
  margin: 24px auto;
  max-width: 600px;
  text-align: left;
}

[data-theme="light"] .integration-features {
  background: rgba(255, 103, 1, 0.03);
}

.integration-features h4 {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 18px;
}

.integration-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.integration-features li {
  padding: 8px 0;
  font-size: 16px;
}

.integration-security {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.security-note {
  background: rgba(100, 100, 100, 0.1);
  border-left: 4px solid var(--secondary-accent);
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

[data-theme="light"] .security-note {
  background: rgba(0, 0, 0, 0.03);
}

.server-list {
  margin: 32px 0;
}

.server-list h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.server-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
}

.server-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 103, 1, 0.2);
}

.server-card h5 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--accent);
}

.server-card p {
  font-size: 14px;
  opacity: 0.7;
  margin: 4px 0;
}

.server-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
}

.server-status.online {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border: 1px solid rgba(0, 255, 0, 0.3);
}

.server-status.offline {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.integration-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-danger {
  background: #dc3545;
  border: 2px solid #dc3545;
}

.btn-danger:hover {
  background: #c82333;
  border-color: #c82333;
}

.integration-faq {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
}

.integration-faq h3 {
  font-size: 28px;
  margin-bottom: 32px;
  color: var(--accent);
}

.faq-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.faq-item p {
  opacity: 0.8;
  line-height: 1.7;
  font-size: 16px;
}

/* Responsive adjustments for vehicle editor */
@media (max-width: 768px) {
  .cargo-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .cargo-chance {
    width: 100%;
  }
  
  .map-grid {
    grid-template-columns: 1fr;
  }
  
  .loadout-item-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .donate-btn {
    right: 20px;
    bottom: 20px;
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .donate-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-overview {
    padding: 20px;
  }
}

/* Teleporter Generator Styles */
.teleporter-coords-section {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.coords-group {
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.05) 0%, rgba(90, 122, 94, 0.05) 100%),
              var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.coords-group h3 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.coords-arrow {
  text-align: center;
  font-size: 32px;
  color: var(--primary);
  font-weight: bold;
  margin: 8px 0;
}

.teleport-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(217, 125, 63, 0.05) 0%, rgba(90, 122, 94, 0.05) 100%),
              var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.preview-box {
  flex: 1;
  text-align: center;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.preview-box h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.preview-box div {
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.preview-arrow {
  font-size: 32px;
  color: var(--primary);
  font-weight: bold;
}

.output-tabs {
  display: flex;
  gap: 4px;
  margin: 24px 0 0 0;
  border-bottom: 2px solid var(--border);
}

.output-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  position: relative;
}

.output-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.output-tab.active {
  color: var(--primary);
}

.output-tab.active::after {
  transform: scaleX(1);
}

.output-tab:hover {
  color: var(--primary);
  background: rgba(217, 125, 63, 0.05);
}

.output-content {
  display: none;
  margin-top: 20px;
}

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

.instructions-display {
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  color: var(--text);
  line-height: 1.8;
  font-size: 14px;
  max-height: 600px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.instructions-display h1,
.instructions-display h2,
.instructions-display h3 {
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.instructions-display h1 {
  font-size: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.instructions-display h2 {
  font-size: 20px;
}

.instructions-display h3 {
  font-size: 16px;
}

.instructions-display code {
  background: var(--bg-darker);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--accent);
}

.instructions-display pre {
  background: var(--bg-darker);
  padding: 16px;
  border-radius: 6px;
  border-left: 4px solid var(--primary);
  overflow-x: auto;
  margin: 12px 0;
}

.instructions-display ul,
.instructions-display ol {
  margin-left: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.instructions-display li {
  margin-bottom: 6px;
}

.instructions-display strong {
  color: var(--primary);
  font-weight: 700;
}

/* Weather Editor Preset Buttons */
.preset-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.preset-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
}

.preset-btn:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 103, 1, 0.1), rgba(166, 65, 128, 0.1));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow);
}

.preset-btn strong {
  display: block;
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 6px;
}

.preset-btn p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* Slider Row for Dual Sliders */
.slider-row {
  display: flex;
  gap: 12px;
}

.slider-row input[type="range"] {
  flex: 1;
}

/* Range Slider Styling */
input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid var(--bg-darker);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid var(--bg-darker);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

input[type="range"]:hover::-webkit-slider-thumb {
  background: var(--primary-hover);
  transform: scale(1.1);
}

input[type="range"]:hover::-moz-range-thumb {
  background: var(--primary-hover);
  transform: scale(1.1);
}

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

/* Tools Search and Filter */
.tools-search-filter {
  margin-bottom: 30px;
}

.search-box {
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 103, 1, 0.1);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 103, 1, 0.1), rgba(166, 65, 128, 0.1));
  transform: translateY(-1px);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-color: var(--primary);
  color: #ffffff;
}

.category-btn span {
  font-weight: 600;
}

.tool-card.hidden {
  display: none;
}

.no-results-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 18px;
}

.no-results-message strong {
  color: var(--text);
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

/* Validator Styles */
.validator-section {
  margin: 20px 0;
}

.validator-summary {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.validator-summary.valid {
  background: linear-gradient(135deg, rgba(40, 180, 99, 0.15), rgba(0, 150, 136, 0.1));
  border: 2px solid #28b463;
  color: #28b463;
}

.validator-summary.invalid {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.1));
  border: 2px solid #e74c3c;
  color: #e74c3c;
}

.validator-summary .summary-details {
  font-size: 14px;
  font-weight: 400;
  margin-top: 10px;
  opacity: 0.9;
}

.validator-issues, .validator-warnings {
  margin-top: 20px;
}

.validator-issue, .validator-warning {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 12px;
  border-left: 4px solid;
}

.validator-issue {
  background: rgba(231, 76, 60, 0.1);
  border-left-color: #e74c3c;
}

.validator-warning {
  background: rgba(241, 196, 15, 0.1);
  border-left-color: #f1c40f;
}

.validator-issue-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.validator-issue-type {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.validator-issue.error .validator-issue-type {
  color: #e74c3c;
}

.validator-warning .validator-issue-type {
  color: #f39c12;
}

.validator-issue-line {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.validator-issue-message {
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}

.validator-suggestion {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-muted);
  border-left: 3px solid var(--primary);
  margin-top: 8px;
}

.validator-suggestion strong {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

#validatorContent {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: var(--bg-input);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

#validatorContent:focus {
  outline: none;
  border-color: var(--primary);
}

/* User Auth Section */
.user-auth-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-discord {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #5865F2;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-1px);
}

.user-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 103, 1, 0.1);
}

.user-profile:hover .user-dropdown {
  display: block;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.user-status-badge,
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-status-badge.premium,
.status-badge.premium {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
}

.user-status-badge.free,
.status-badge.free {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  overflow: hidden;
}

.dropdown-header {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.dropdown-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.dropdown-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
}

.dropdown-status {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.dropdown-features {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-features span {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-features span::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

.dropdown-logout {
  display: block;
  padding: 12px 16px;
  text-align: center;
  color: #e74c3c;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.dropdown-logout:hover {
  background: rgba(231, 76, 60, 0.1);
}

/* Spawn Points Configuration */
.config-section {
  margin: 20px 0;
  padding: 15px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.config-section summary {
  cursor: pointer;
  padding: 10px;
  user-select: none;
  font-size: 16px;
}

.config-section summary:hover {
  background: rgba(255, 103, 1, 0.1);
  border-radius: 4px;
}

.config-tabs {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  border-bottom: 2px solid var(--border);
}

.config-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.config-tab:hover {
  color: var(--primary);
}

.config-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.config-content {
  display: none;
  padding: 20px 0;
}

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

.config-content h4 {
  color: var(--primary);
  margin: 20px 0 10px 0;
  font-size: 18px;
}

/* Live Users Banner */
.live-users-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--primary) 0%, #d97d3f 100%);
  color: var(--bg-dark);
  padding: 8px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 -2px 10px rgba(255, 103, 1, 0.3);
  z-index: 999;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
}

#activeUserCount,
#filesGenerated {
  font-weight: 700;
  font-size: 16px;
}

.stats-separator {
  color: var(--bg-dark);
  opacity: 0.6;
  font-weight: 400;
  padding: 0 4px;
}

/* Bulk Edit Section */
.bulk-edit-section {
  margin: 20px 0;
  border: 2px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
}

.bulk-edit-header {
  background: linear-gradient(135deg, var(--primary) 0%, #d97d3f 100%);
  color: var(--bg-dark);
  padding: 15px 20px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  user-select: none;
  transition: background 0.3s ease;
}

.bulk-edit-header:hover {
  background: linear-gradient(135deg, #d97d3f 0%, var(--primary) 100%);
}

.toggle-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.bulk-edit-header.active .toggle-icon {
  transform: rotate(-180deg);
}

.bulk-edit-content {
  padding: 20px;
  background: var(--bg-medium);
}

.bulk-edit-description {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 14px;
}

.bulk-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.bulk-edit-categories h5,
.bulk-edit-values h5 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.category-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-checkboxes label:hover {
  border-color: var(--primary);
  background: rgba(255, 103, 1, 0.1);
}

.category-checkboxes input[type="checkbox"] {
  cursor: pointer;
}

.bulk-custom-category {
  margin-top: 15px;
}

.bulk-custom-category label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.bulk-custom-category input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

.bulk-value-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bulk-value-inputs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.bulk-value-inputs input {
  padding: 10px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
}

.bulk-value-inputs input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 103, 1, 0.2);
}

.bulk-edit-results {
  margin-top: 20px;
  padding: 15px;
  background: var(--bg-dark);
  border: 1px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .bulk-edit-grid {
    grid-template-columns: 1fr;
  }
  
  .category-checkboxes {
    grid-template-columns: 1fr;
  }
}

/* Sponsors Page */
.sponsors-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.sponsors-section h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.sponsors-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.sponsor-cta-box {
  background: linear-gradient(135deg, rgba(255, 103, 1, 0.1) 0%, rgba(166, 65, 128, 0.1) 100%);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-bottom: 50px;
}

.sponsor-cta-box h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.sponsor-cta-box p {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.sponsor-tier-title {
  color: var(--primary);
  font-size: 1.8rem;
  margin: 40px 0 25px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.featured-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.regular-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.sponsor-card {
  background: var(--bg-medium);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sponsor-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 103, 1, 0.3);
}

.sponsor-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--bg-medium) 0%, rgba(255, 103, 1, 0.05) 100%);
  padding: 30px;
}

.sponsor-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #d97d3f 100%);
  color: var(--bg-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sponsor-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.sponsor-card.featured .sponsor-logo {
  width: 180px;
  height: 180px;
}

.sponsor-logo-placeholder {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary) 0%, #a64180 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 20px;
}

.sponsor-card.featured .sponsor-logo-placeholder {
  width: 180px;
  height: 180px;
  font-size: 5rem;
}

.sponsor-name {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.sponsor-card.featured .sponsor-name {
  font-size: 1.8rem;
}

.sponsor-description {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.sponsor-info {
  width: 100%;
  margin-top: auto;
}

.sponsor-ip {
  background: var(--bg-dark);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.9rem;
}

.sponsor-ip code {
  background: rgba(255, 103, 1, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--primary);
  font-family: monospace;
  font-size: 0.95rem;
}

.sponsor-link {
  margin-top: 8px;
}

.sponsor-link a {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 600;
}

.sponsor-link a:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.sponsor-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  justify-content: center;
}

.feature-tag {
  background: rgba(255, 103, 1, 0.2);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.no-sponsors {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .featured-sponsors-grid,
  .regular-sponsors-grid {
    grid-template-columns: 1fr;
  }
  
  .sponsor-card.featured {
    padding: 25px;
  }
  
  .sponsor-logo,
  .sponsor-card.featured .sponsor-logo {
    width: 120px;
    height: 120px;
  }
  
  .sponsor-logo-placeholder,
  .sponsor-card.featured .sponsor-logo-placeholder {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }
}

/* FAFO Green Flame Effect */
.sponsor-card.fafo-flames {
  position: relative;
  overflow: visible;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.4), 0 0 80px rgba(0, 255, 0, 0.2);
  animation: fafo-pulse 2s ease-in-out infinite;
}

/* Ensure content is above flames */
.sponsor-card.fafo-flames > * {
  position: relative;
  z-index: 2;
}

@keyframes fafo-pulse {
  0%, 100% {
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.4), 0 0 80px rgba(0, 255, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 60px rgba(0, 255, 0, 0.6), 0 0 120px rgba(0, 255, 0, 0.3);
  }
}

.flame-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.flame {
  position: absolute;
  width: 80px;
  height: 140px;
  background: radial-gradient(ellipse at center bottom, 
    rgba(0, 255, 0, 0.9) 0%,
    rgba(50, 205, 50, 0.7) 20%,
    rgba(0, 204, 0, 0.5) 40%,
    rgba(34, 139, 34, 0.3) 60%,
    transparent 80%
  );
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: blur(8px);
  animation: flicker 0.8s ease-in-out infinite;
  transform-origin: bottom center;
}

.flame::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 80px;
  background: radial-gradient(ellipse at center,
    rgba(144, 238, 144, 0.9) 0%,
    rgba(0, 255, 0, 0.6) 30%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(6px);
  animation: innerFlame 1.2s ease-in-out infinite;
}

.flame::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(144, 238, 144, 0.6) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(4px);
}

.flame-1 {
  top: -50px;
  left: -40px;
  animation-delay: 0s;
}

.flame-2 {
  top: -50px;
  right: -40px;
  animation-delay: 0.2s;
}

.flame-3 {
  bottom: -50px;
  left: -40px;
  transform: rotate(180deg);
  animation-delay: 0.4s;
}

.flame-4 {
  bottom: -50px;
  right: -40px;
  transform: rotate(180deg);
  animation-delay: 0.6s;
}

@keyframes flicker {
  0%, 100% {
    transform: scaleY(1) scaleX(0.95);
    opacity: 0.9;
  }
  25% {
    transform: scaleY(1.15) scaleX(0.9);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.95) scaleX(1);
    opacity: 0.85;
  }
  75% {
    transform: scaleY(1.08) scaleX(0.92);
    opacity: 0.95;
  }
}

@keyframes innerFlame {
  0%, 100% {
    transform: translateX(-50%) scaleY(1);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-50%) scaleY(1.2);
    opacity: 1;
  }
}

/* Add flame particles */
.flame-1::before {
  animation-delay: 0.1s;
}

.flame-2::before {
  animation-delay: 0.3s;
}

.flame-3::before {
  animation-delay: 0.5s;
}

.flame-4::before {
  animation-delay: 0.7s;
}

/* Responsive flame adjustments */
@media (max-width: 768px) {
  .flame {
    width: 60px;
    height: 100px;
    filter: blur(6px);
  }
  
  .flame-1, .flame-2 {
    top: -30px;
  }
  
  .flame-3, .flame-4 {
    bottom: -30px;
  }
  
  .flame-1, .flame-3 {
    left: -30px;
  }
  
  .flame-2, .flame-4 {
    right: -30px;
  }
}

/* Success and Warning Boxes */
.success-box {
  background: rgba(46, 204, 113, 0.1);
  border: 2px solid #2ecc71;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.success-box strong {
  color: #2ecc71;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.success-box p {
  color: var(--text);
  margin: 0;
}

.warning-box {
  background: rgba(241, 196, 15, 0.1);
  border: 2px solid #f1c40f;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.warning-box strong {
  color: #f39c12;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.warning-box p {
  color: var(--text);
  margin: 0;
}

/* Loadout Generator - Builder Style */
.loadout-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.slot-btn {
  background: var(--bg-medium);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 15px 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

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

.slot-btn.has-item {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 103, 1, 0.2) 0%, rgba(166, 65, 128, 0.1) 100%);
}

.loadout-current-display {
  background: var(--bg-medium);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
}

.loadout-equipped-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.equipped-item-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
}

.equipped-item-card h4 {
  color: var(--primary);
  font-size: 0.9rem;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.equipped-item-card .item-name {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.equipped-item-card .item-attrs {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.equipped-item-card button {
  margin-top: 8px;
  font-size: 0.8rem;
  padding: 4px 8px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 30px;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
}

.modal-content h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.modal-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 20px 0;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: var(--bg-medium);
  border-radius: 6px;
}

.modal-item-btn {
  background: var(--bg-medium);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.modal-item-btn:hover {
  border-color: var(--primary);
  background: rgba(255, 103, 1, 0.1);
}

.modal-item-btn.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 103, 1, 0.3) 0%, rgba(166, 65, 128, 0.2) 100%);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.survivor-select {
  width: 100%;
  padding: 10px;
  background: var(--bg-input);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.survivor-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==========================================
   GAS ZONE MAKER STYLES
   ========================================== */

.accordion-section {
  margin: 24px 0;
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-header:hover {
  border-color: var(--accent);
  background: var(--bg-dark);
}

.accordion-header::after {
  content: '▼';
  transition: transform 0.3s ease;
}

.accordion-header.active::after {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 2000px;
  padding-top: 20px;
}

.zones-container {
  margin: 24px 0;
}

.zone-card {
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

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

.zone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.zone-card-header h4 {
  color: var(--accent);
  margin: 0;
  font-size: 18px;
}

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

.zone-card-actions button {
  padding: 6px 12px;
  font-size: 14px;
}

.zone-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.zone-input-group {
  display: flex;
  flex-direction: column;
}

.zone-input-group label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.zone-input-group input {
  padding: 10px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

.zone-input-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.preset-btn {
  padding: 10px 20px;
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preset-btn:hover {
  border-color: var(--accent);
  background: var(--bg-dark);
  transform: translateY(-2px);
}

.parameter-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.parameter-card h4 {
  color: var(--accent);
  margin: 0 0 12px 0;
  font-size: 16px;
}

.parameter-card p {
  color: var(--text);
  margin: 8px 0;
  line-height: 1.6;
}

.parameter-card ul {
  margin: 8px 0;
  padding-left: 20px;
}

.parameter-card li {
  color: var(--text-secondary);
  margin: 4px 0;
  line-height: 1.5;
}

.parameter-card .range-info {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 103, 1, 0.1);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}
