:root {
  --primary: #f5b731;
  --bg: #0c0c0c;
  --card: #1e1e1e;
  --text: #e8e8e8;
  --border: rgba(255,255,255,0.1);
}

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

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container { max-width: 700px; width: 100%; text-align: center; }

.gradient-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--primary), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #a0a0a0;
  margin-bottom: 2rem;
}

.converter-container {
  background: var(--card);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab {
  flex: 1;
  padding: 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: #a0a0a0;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

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

.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

.converter-panel {
  display: none;
}

.converter-panel.active {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.input-group, .output-group {
  flex: 1;
  text-align: center;
}

.input-group input, select {
  width: 100%;
  padding: 1.2rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  transition: border 0.3s;
}

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

select {
  font-size: 1rem;
  cursor: pointer;
}

.result {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--primary), #ffd700);
  color: #000;
  border-radius: 12px;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-all;
}

.arrow {
  font-size: 3rem;
  color: var(--primary);
}

.btn-back {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 600px) {
  .converter-panel.active {
    flex-direction: column;
    gap: 1rem;
  }
  .arrow { transform: rotate(90deg); }
  .tabs { flex-direction: column; }
  .result { font-size: 1.5rem; }
}
