:root {
  --bg-primary: #07090e;
  --bg-card: #0d1117;
  --border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --success: #10b981;
  --accent: #fbbf24;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
}

.navbar {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
.logo-icon { font-size: 22px; }
.logo strong { color: var(--primary); }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-tool-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-tool-link:hover, .nav-tool-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.hero-section {
  text-align: center;
  margin-bottom: 32px;
}
.hero-section h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 40%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-section p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 720px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.calc-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
}
.input-with-prefix input {
  padding-left: 28px !important;
}
input, select {
  width: 100%;
  background: #060913;
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, select:focus {
  border-color: var(--primary);
}

.profit-highlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.profit-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.profit-amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin: 6px 0;
}
.profit-metrics {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}
.metric { display: flex; flex-direction: column; }
.m-label { font-size: 11px; color: var(--text-muted); }
.m-val { font-size: 15px; font-weight: 700; color: #fff; }

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.summary-item strong { color: #fff; }

.perks-rewards-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.perks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.perks-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}
.perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) { .perks-grid { grid-template-columns: 1fr; } }
.perk-card {
  background: #060913;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.perk-top { display: flex; gap: 12px; margin-bottom: 12px; }
.perk-icon-box { font-size: 24px; }
.perk-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.perk-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.perk-action-row { display: flex; justify-content: space-between; align-items: center; }
.perk-code-tag { font-size: 11px; font-weight: 700; color: #fbbf24; background: rgba(245, 158, 11, 0.1); padding: 2px 6px; border-radius: 4px; }
.perk-btn {
  background: #f59e0b;
  color: #000;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
