:root {
  --bg-color: #121213;
  --panel-bg: #121213;
  --border-color: #1f1f1f;
  --text-primary: #f5f5f5;
  --text-secondary: #888888;
  --primary-color: #ff6600;
  --primary-hover: #ff8533;
  --accent-color: #ff6600;
  --accent-hover: #ff8533;
  --danger-color: #ef4444;
  --warning-color: #ff6600;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 20px -10px rgba(0, 0, 0, 0.6);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-family);
  font-size: 14px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: #121213;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (max-width: 600px) {
  header {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  background: #ff6600;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

nav a:hover {
  color: var(--text-primary);
  background: #1a1a1b;
}

nav a.active {
  color: #ffffff;
  background: #ff6600;
  border-color: #ff6600;
}

.container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 16px;
  flex-grow: 1;
  animation: fadeIn 0.3s ease-out forwards;
}

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

.card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

.card h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tabs {
  display: flex;
  background: #121213;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

.tab.active {
  background: #1a1a1b;
  color: #ff6600;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.dropzone {
  border: 1px dashed #2a2a2a;
  border-radius: 8px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #121213;
}

.dropzone:hover, .dropzone.over {
  border-color: #ff6600;
  background: #121213;
}

.dropzone p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

label.filebtn {
  display: inline-block;
  padding: 8px 20px;
  background: #ff6600;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
  user-select: none;
}

label.filebtn:hover {
  background: #ff8533;
}

input[type=text], select {
  width: 100%;
  padding: 10px 12px;
  background: #121213;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 12px;
  outline: none;
  font-family: var(--font-family);
  transition: all 0.15s ease;
}

input[type=text]:focus, select:focus {
  border-color: #ff6600;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.1);
}

select option {
  background: #121213;
  color: var(--text-primary);
}

.row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.row input, .row select {
  margin-bottom: 0;
}

button {
  padding: 9px 20px;
  background: #ff6600;
  color: #ffffff;
  border: 1px solid #ff6600;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button:hover {
  background: #ff8533;
  border-color: #ff8533;
}

button:disabled {
  background: #1a1a1b;
  color: var(--text-secondary);
  border-color: var(--border-color);
  cursor: not-allowed;
}

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

button.ghost:hover {
  background: #1a1a1b;
  border-color: #2a2a2a;
}

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

.stat {
  background: #121213;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
}

.stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat-value {
  font-weight: 700;
  font-size: 14px;
  color: #ff6600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modlist {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 16px;
  background: #121213;
}

.moditem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.moditem:last-child {
  border-bottom: none;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #ff6600;
  flex-shrink: 0;
  transition: all .25s ease;
}

.dot.ok {
  background: #ff6600;
}

.dot.err {
  background: transparent;
  border: 1px dashed #888888;
}

.dot.busy {
  background: #ff6600;
  animation: flash 1s infinite alternate;
}

@keyframes flash {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.modname {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.modsz {
  color: var(--text-secondary);
  font-size: 11px;
}

.progress {
  display: none;
  margin-bottom: 16px;
}

.progress.show {
  display: block;
}

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

.bar {
  background: #1a1a1b;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.bar-fill {
  height: 100%;
  background: #ff6600;
  border-radius: 99px;
  transition: width 0.2s ease-out;
  width: 0;
}

.log {
  display: none;
  background: #121213;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 11px;
  font-family: var(--font-mono);
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #cccccc;
}

.log.show {
  display: block;
}

.log div {
  margin-bottom: 2px;
}

.log .ok { color: #ff6600; font-weight: 600; }
.log .err { color: #ef4444; }
.log .info { color: #888888; }

.errbox {
  display: none;
  padding: 10px 14px;
  background: #1a1213;
  border: 1px solid #3a1010;
  border-radius: 6px;
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 16px;
}

.errbox.show {
  display: block;
}

.note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

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

footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 32px 16px 20px;
  border-top: 1px solid var(--border-color);
  background: #121213;
  margin-top: auto;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.15s ease;
}

footer a:hover {
  color: #ff6600;
  text-decoration: underline;
}

.static-content {
  line-height: 1.7;
}

.static-content h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.static-content h2 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.static-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.static-content ul {
  margin-bottom: 20px;
  margin-left: 20px;
  color: var(--text-secondary);
}

.static-content li {
  margin-bottom: 6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #121213;
  overflow: hidden;
  transition: all 0.15s ease;
}

.faq-question {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.15s ease;
}

.faq-question:hover {
  background: #1a1a1b;
}

.faq-answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-secondary);
  font-size: 13px;
}

.faq-item.active {
  border-color: #ff6600;
  background: #121213;
}

.faq-item.active .faq-question {
  color: #ff6600;
}

.faq-item.active .faq-answer {
  padding: 0 18px 14px;
  max-height: 200px;
}

.faq-icon {
  font-size: 11px;
  transition: transform 0.15s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

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

.feature-card {
  background: #121213;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  transition: all 0.15s ease;
}

.feature-card:hover {
  border-color: #ff6600;
}

.feature-icon {
  font-size: 20px;
  margin-bottom: 8px;
  color: #ff6600;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 12px;
  margin-bottom: 0;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-method-icon {
  font-size: 16px;
  color: #ff6600;
  background: #121213;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-method p {
  font-size: 12px;
  margin-bottom: 0;
}
