:root {
  --bg: #0f172a;
  --bg-card: #020617;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2933;
  --radius-xl: 18px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #000 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app {
  width: 100%;
  max-width: 960px;
  background: linear-gradient(145deg, rgba(15,23,42,0.95), rgba(15,23,42,0.98));
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(148,163,184,0.1);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(15,23,42,0.8);
  backdrop-filter: blur(18px);
}

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

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

.title h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.lang-switch label {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.lang-select {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.9);
  color: var(--muted);
  font-size: 11px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #4ade80, #16a34a);
  box-shadow: 0 0 12px rgba(34,197,94,0.7);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 20px;
}

.card {
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,1));
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  border: 1px solid rgba(30,64,175,0.35);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(148,163,184,0.18);
  pointer-events: none;
  opacity: 0.5;
}

.card.secondary {
  border-color: rgba(55,65,81,0.9);
}

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

.card-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.card-subtitle {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.85;
}

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

label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--muted);
}

.helper {
  font-size: 11px;
  opacity: 0.8;
}

select,
input {
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

select:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.6);
  background: rgba(15,23,42,1);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

input[type="range"] {
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 999px;
  margin-top: 4px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(55,65,81,1), rgba(59,130,246,0.9));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.9);
}

.btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 0% 0%, #60a5fa, #2563eb);
  color: white;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 12px 30px rgba(37,99,235,0.6),
    0 0 22px rgba(59,130,246,0.9);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 18px 40px rgba(37,99,235,0.8),
    0 0 28px rgba(59,130,246,1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 5px 18px rgba(15,23,42,1),
    0 0 16px rgba(59,130,246,0.9);
}

.output-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fps-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 50%, rgba(52,211,153,0.25), rgba(15,23,42,0.98));
  border: 1px solid rgba(52,211,153,0.5);
  font-size: 13px;
}

.fps-pill span.value {
  font-size: 18px;
  font-weight: 600;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(55,65,81,0.9);
  color: var(--muted);
}

.settings-list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--muted);
}

.settings-list li {
  margin-bottom: 3px;
}

.tips {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15,23,42,0.96);
  border: 1px dashed rgba(75,85,99,0.9);
  font-size: 12px;
  color: var(--muted);
}

.tips strong {
  color: #e5e7eb;
  font-weight: 500;
}

.footer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  opacity: 0.85;
}

@media (max-width: 780px) {
  .app {
    padding: 18px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer {
    flex-direction: column;
  }
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}


.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

