/* Ticket Up — Calculator styles (brand-aligned) */

#page-calculators {
  padding: 0 0 80px;
}

.calc-header {
  padding: 32px 28px 0;
}

.calc-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--heading, #071426);
  letter-spacing: -0.02em;
}

.calc-header p {
  margin: 0;
  color: var(--text-muted, #7A8495);
  font-size: 14px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  padding: 20px 28px 28px;
}

.calc-card {
  border-radius: var(--r-xl, 20px);
  background: var(--card, #FFFFFF);
  border: 1px solid var(--border, #DDE5F0);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--blue-light, #EBF2FF);
  border-bottom: 1px solid var(--border, #DDE5F0);
}

.calc-icon {
  font-size: 24px;
  line-height: 1;
}

.calc-card-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading, #071426);
}

.calc-card-header p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted, #7A8495);
}

.calc-form {
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}

.calc-field {
  display: grid;
  gap: 6px;
}

.calc-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #7A8495);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-field input,
.calc-field select {
  font-size: 14px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg, #F7FAFF);
  border: 1.5px solid var(--border, #DDE5F0);
  border-radius: var(--r-sm, 8px);
  color: var(--text, #1F2937);
  transition: border-color 140ms, box-shadow 140ms;
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--blue, #126BFF);
  box-shadow: 0 0 0 3px rgba(18, 107, 255, 0.12);
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calc-submit {
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-sm, 8px);
  background: var(--gradient-btn, linear-gradient(135deg, #126BFF 0%, #0052CC 100%));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  box-shadow: var(--shadow-blue, 0 8px 20px rgba(18, 107, 255, 0.25));
  transition: opacity 120ms, transform 80ms;
}

.calc-submit:hover {
  opacity: 0.92;
}

.calc-submit:active {
  transform: scale(0.98);
}

.calc-output {
  margin: 0 20px 20px;
  border-radius: var(--r-md, 12px);
  font-size: 13px;
  line-height: 1.6;
  min-height: 0;
}

.calc-output:empty {
  display: none;
}

.calc-success {
  padding: 16px;
  background: rgba(18, 107, 255, 0.05);
  border: 1px solid rgba(18, 107, 255, 0.2);
  border-radius: var(--r-md, 12px);
}

.calc-error {
  padding: 14px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--r-md, 12px);
  color: #DC2626;
}

.calc-result-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue, #126BFF);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.calc-warn {
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: var(--r-sm, 8px);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #92400E;
  font-size: 12px;
}

.calc-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #DDE5F0);
  color: var(--text-muted, #7A8495);
  font-size: 11px;
  line-height: 1.6;
}

.calc-detail {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
}

.calc-detail span {
  color: var(--text-muted, #7A8495);
}

.calc-detail strong {
  color: var(--text, #1F2937);
  font-weight: 600;
  text-align: right;
}

/* ─── Bottom nav ──────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy, #071426);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  height: 64px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-nav-inner {
  display: flex;
  height: 100%;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
  transition: color 140ms;
}

.nav-tab .nav-icon {
  font-size: 20px;
  line-height: 1;
}

.nav-tab.active {
  color: var(--blue, #126BFF);
}

.nav-tab .nav-badge {
  position: relative;
  display: inline-block;
}

.nav-tab .badge-dot {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  border: 1.5px solid var(--navy, #071426);
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  #page-calculators {
    padding-bottom: 80px;
  }
}
