:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --danger: #dc2626;
  --success: #16a34a;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
}

/* Header / Nav */
.topbar {
  background: #0f172a;
  color: #e5e7eb;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge {
  background: #1e293b;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher select {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
}

.main-nav {
  background: #111827;
  color: #e5e7eb;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links a {
  color: #e5e7eb;
  margin-right: 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.currency {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-primary-small {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-primary-small:hover {
  background: var(--primary-dark);
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 1.5rem auto 3rem auto;
  padding: 0 1rem;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs span {
  margin: 0 0.25rem;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
  margin-bottom: 1rem;
}

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

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

.card-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.field-group {
  margin-bottom: 0.75rem;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.field-label span {
  color: var(--text-muted);
  font-weight: 400;
}

.field-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.input,
select {
  width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
  background: white;
}

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

.field-inline .input,
.field-inline select {
  flex: 1;
  min-width: 120px;
}

.toggle-group {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.75rem;
}

.toggle-option {
  padding: 0.2rem 0.8rem;
  cursor: pointer;
  background: #f9fafb;
}

.toggle-option.active {
  background: var(--primary);
  color: white;
}

.hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.small-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border);
  background: white;
  color: var(--text-main);
}

.btn-outline:hover {
  background: #f9fafb;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pill-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  background: #f9fafb;
}

.pill.active {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.divider {
  border-top: 1px dashed var(--border);
  margin: 1rem 0;
}

.tag-danger {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-info {
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 500;
}

.list {
  font-size: 0.8rem;
  padding-left: 1.1rem;
  margin: 0.25rem 0 0 0;
}

.list li {
  margin-bottom: 0.1rem;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.share-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  background: white;
  cursor: pointer;
}

/* Right column */
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value-strong {
  font-weight: 600;
}

.price-big {
  font-size: 1.4rem;
  font-weight: 700;
}

.badge-soft {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-soft span {
  font-size: 0.8rem;
}

.tip-block {
  background: #eff6ff;
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  border: 1px solid #dbeafe;
}

.tip-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: #1d4ed8;
}

.warning-block {
  background: #fef2f2;
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  border: 1px solid #fee2e2;
  color: #b91c1c;
}

.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  background: #0f172a;
  color: #e5e7eb;
  padding: 0.25rem 0.45rem;
  border-radius: 0.35rem;
}

.code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  background: #020617;
  color: #e5e7eb;
  padding: 0.5rem 0.7rem;
  border-radius: 0.45rem;
  margin-top: 0.35rem;
  overflow-x: auto;
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.8rem;
}

.link:hover {
  text-decoration: underline;
}
