@font-face {
  font-family: 'IRANYekanX';
  src: url('../fonts/IRANYekanX-Regular.woff2') format('woff2'),
       url('../fonts/IRANYekanX-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekanX';
  src: url('../fonts/IRANYekanX-Medium.woff2') format('woff2'),
       url('../fonts/IRANYekanX-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekanX';
  src: url('../fonts/IRANYekanX-Bold.woff2') format('woff2'),
       url('../fonts/IRANYekanX-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekanX';
  src: url('../fonts/IRANYekanX-Bold.woff2') format('woff2'),
       url('../fonts/IRANYekanX-Bold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekanX';
  src: url('../fonts/IRANYekanX-Bold.woff2') format('woff2'),
       url('../fonts/IRANYekanX-Bold.ttf') format('truetype');
  font-weight: 850;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekanX';
  src: url('../fonts/IRANYekanX-Bold.woff2') format('woff2'),
       url('../fonts/IRANYekanX-Bold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekanX';
  src: url('../fonts/IRANYekanX-Bold.woff2') format('woff2'),
       url('../fonts/IRANYekanX-Bold.ttf') format('truetype');
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070a12;
  --bg-soft: #0d1322;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.118);
  --panel-soft: rgba(255, 255, 255, 0.052);
  --stroke: rgba(255, 255, 255, 0.15);
  --stroke-strong: rgba(255, 255, 255, 0.24);
  --text: #f8fafc;
  --text-dark: #121826;
  --muted: rgba(248, 250, 252, 0.64);
  --muted-soft: rgba(248, 250, 252, 0.45);
  --gold: #f6c65b;
  --gold-2: #d39a2e;
  --gold-3: #875b12;
  --gold-glow: rgba(246, 198, 91, 0.34);
  --green: #4ade80;
  --red: #fb7185;
  --blue: #60a5fa;
  --shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.24);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

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

html {
  min-height: 100%;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  padding: 28px 16px;
  color: var(--text);
  font-family: 'IRANYekanX', Vazirmatn, Tahoma, 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(246, 198, 91, 0.2), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(96, 165, 250, 0.16), transparent 32%),
    radial-gradient(circle at 52% 92%, rgba(211, 154, 46, 0.13), transparent 35%),
    linear-gradient(135deg, #050712 0%, #0c1220 48%, #111827 100%);
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
}

body::before {
  width: 520px;
  height: 520px;
  right: -220px;
  top: 60px;
  background: radial-gradient(circle, rgba(246, 198, 91, 0.24), transparent 66%);
}

body::after {
  width: 460px;
  height: 460px;
  left: -180px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 68%);
}

button,
input {
  font-family: inherit;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(246, 198, 91, 0.34);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.app-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(6, 10, 18, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.app-shell::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 8%;
  width: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 198, 91, 0.86), transparent);
  pointer-events: none;
}

.hero,
.content {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 80% 20%, rgba(246, 198, 91, 0.11), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.02));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  align-items: center;
  gap: 30px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #1d1607;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.16)),
    linear-gradient(135deg, #ffe69a 0%, #f6c65b 36%, #b66e15 100%);
  box-shadow: 0 22px 48px rgba(246, 198, 91, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -16px 28px rgba(116, 74, 14, 0.18);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 7px 13px rgba(65, 42, 3, 0.18));
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -1.2px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  max-width: 640px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.15;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.hero-badges span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold-glow);
}

.hero-visual {
  position: relative;
  min-height: 270px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 55% 42%, rgba(246, 198, 91, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(246, 198, 91, 0.22);
  border-radius: 50%;
  transform: rotate(-10deg) skewX(7deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -54px;
  top: -56px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 66%);
}

.visual-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 22, 0.66);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.31), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.primary-card {
  right: 28px;
  bottom: 28px;
  width: 244px;
  border-radius: 26px;
  padding: 22px;
}

.visual-label,
.floating-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 800;
}

.visual-card strong {
  display: block;
  direction: ltr;
  color: #fff;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.visual-card small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.floating-card {
  left: 28px;
  top: 32px;
  width: 118px;
  border-radius: 24px;
  padding: 18px;
}

.floating-card strong {
  color: var(--gold);
  font-size: 32px;
}

.gold-orbit {
  position: absolute;
  width: 142px;
  height: 142px;
  right: 104px;
  top: 38px;
  border-radius: 999px;
  border: 1px dashed rgba(246, 198, 91, 0.35);
  box-shadow: 0 0 48px rgba(246, 198, 91, 0.08) inset;
}

.gold-coin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #271a04;
  font-weight: 950;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.14)),
    linear-gradient(135deg, #ffe596, #f6c65b 48%, #c67c1b);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 34px rgba(246, 198, 91, 0.2), inset 0 -10px 18px rgba(127, 79, 12, 0.16);
}

.coin-a {
  right: 128px;
  top: 82px;
}

.coin-b {
  left: 96px;
  bottom: 52px;
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.content {
  padding: 24px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.058);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.tab-btn {
  position: relative;
  min-height: 58px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 21px;
  cursor: pointer;
  color: rgba(248, 250, 252, 0.58);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.tab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.055);
}

.tab-btn.active {
  color: #211804;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, #ffe291, #f6c65b 44%, #c87c19);
  box-shadow: 0 18px 42px rgba(246, 198, 91, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.tab-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  color: currentColor;
  font-weight: 950;
}

.tab-btn.active .tab-icon {
  background: rgba(33, 24, 4, 0.09);
}

.tab-pane {
  display: none;
  animation: paneIn 0.28s cubic-bezier(.2,.8,.2,1);
}

.tab-pane.active {
  display: block;
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.section-title h2 {
  margin-top: 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.section-title p {
  max-width: 560px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 2;
  text-align: right;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.field-card,
.metric-card,
.info-card,
.switch-card,
.formula-box,
details.calculation-details,
.result-card {
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.046));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.field-card {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 17px;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.field-card::before {
  content: attr(data-icon);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: rgba(246, 198, 91, 0.92);
  background: rgba(246, 198, 91, 0.1);
  border: 1px solid rgba(246, 198, 91, 0.16);
  font-size: 13px;
  font-weight: 950;
}

.field-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246, 198, 91, 0.12), transparent 67%);
  pointer-events: none;
}

.field-card:hover,
.field-card:has(input:focus) {
  border-color: rgba(246, 198, 91, 0.36);
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(246, 198, 91, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.field-card label {
  display: block;
  padding-left: 42px;
  margin-bottom: 13px;
  color: rgba(248, 250, 252, 0.74);
  font-size: 13px;
  font-weight: 900;
}

.input-wrap {
  position: relative;
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  outline: none;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.084), rgba(255, 255, 255, 0.042)),
    rgba(4, 7, 13, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  font-size: 17px;
  font-weight: 950;
  padding: 10px 14px 10px 66px;
  direction: ltr;
  text-align: right;
  transition: 0.22s ease;
}

.input-wrap input::placeholder {
  color: rgba(248, 250, 252, 0.26);
  font-weight: 700;
}

.input-wrap input:focus {
  border-color: rgba(246, 198, 91, 0.64);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.056)),
    rgba(4, 7, 13, 0.52);
  box-shadow: 0 0 0 5px rgba(246, 198, 91, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.input-wrap .unit {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(248, 250, 252, 0.48);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.metric-card,
.info-card {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 18px;
}

.metric-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold), rgba(246, 198, 91, 0));
}

.metric-card::after,
.info-card::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.label,
.result-label {
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.9;
}

.metric-card .value,
.info-card .value {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 950;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

.metric-card .hint,
.info-card .hint {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.9;
}

.result-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 26px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 13% 10%, rgba(255, 255, 255, 0.13), transparent 28%),
    radial-gradient(circle at 76% 110%, rgba(246, 198, 91, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.118), rgba(255, 255, 255, 0.052));
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(246, 198, 91, 0.58), rgba(255, 255, 255, 0.08), rgba(96, 165, 250, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.result-card::after {
  content: "";
  position: absolute;
  top: -110px;
  left: -78px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246, 198, 91, 0.18), transparent 66%);
  pointer-events: none;
}

.result-card.result-positive {
  background:
    radial-gradient(circle at 13% 10%, rgba(255, 255, 255, 0.13), transparent 28%),
    radial-gradient(circle at 76% 110%, rgba(251, 113, 133, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.118), rgba(255, 255, 255, 0.052));
}

.result-card.result-negative {
  background:
    radial-gradient(circle at 13% 10%, rgba(255, 255, 255, 0.13), transparent 28%),
    radial-gradient(circle at 76% 110%, rgba(74, 222, 128, 0.15), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.118), rgba(255, 255, 255, 0.052));
}

.result-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.result-side {
  min-width: 205px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-big {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 950;
  line-height: 1.28;
  letter-spacing: -1px;
}

.result-desc {
  max-width: 620px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.positive {
  color: var(--red) !important;
}

.negative {
  color: var(--green) !important;
}

.gold-text {
  color: var(--gold) !important;
  text-shadow: 0 0 32px rgba(246, 198, 91, 0.16);
}

.switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}

.switch-info strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  margin-bottom: 5px;
}

.switch-info span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.switch input {
  display: none;
}

.slider {
  position: relative;
  width: 64px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transition: 0.22s ease;
}

.slider::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(145deg, #fff, #dbe3ef);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: 0.22s cubic-bezier(.2,.8,.2,1);
}

.switch input:checked + .slider {
  background: linear-gradient(145deg, rgba(255, 229, 150, 0.95), rgba(211, 154, 46, 0.95));
  border-color: rgba(246, 198, 91, 0.42);
  box-shadow: 0 0 0 5px rgba(246, 198, 91, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.switch input:checked + .slider::after {
  right: 30px;
}

.round-deduct {
  color: var(--red) !important;
  font-weight: 900;
}

.formula-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 58px;
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  color: rgba(248, 250, 252, 0.66);
  direction: ltr;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 2;
}

.formula-box span {
  display: inline-flex;
  direction: rtl;
  padding: 6px 11px;
  color: #231804;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe39a, #f6c65b);
  font-size: 11px;
  font-weight: 950;
}

details.calculation-details {
  overflow: hidden;
  border-radius: var(--radius-md);
}

details.calculation-details summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(248, 250, 252, 0.76);
  font-size: 14px;
  font-weight: 950;
}

details.calculation-details summary::-webkit-details-marker {
  display: none;
}

details.calculation-details summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #241804;
  background: linear-gradient(135deg, #ffe39a, #f6c65b);
  box-shadow: 0 14px 28px rgba(246, 198, 91, 0.16);
  font-size: 20px;
}

details.calculation-details[open] summary::after {
  content: "−";
}

.steps {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 250, 252, 0.68);
  font-size: 13px;
  line-height: 2.45;
}

[hidden] {
  display: none !important;
}

#globalPrice,
#localPrice,
#bubbleAmount,
#bubblePercent,
#sellCoeff,
#sellBase,
#sellFinal,
#sellProfit,
#ujratBase,
#ujratAddedAmount,
#ujratPercentResult,
#ujratTotalCoeff {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 230px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-title p {
    text-align: right;
  }
}

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .app-shell {
    border-radius: 28px;
  }

  .hero,
  .content {
    padding: 18px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 20px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badges span {
    font-size: 11px;
  }

  .hero-visual {
    display: none;
  }

  .tabs,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    min-height: 52px;
  }

  .result-row {
    flex-direction: column;
  }

  .result-side {
    width: 100%;
    min-width: 0;
  }

  .switch-card {
    align-items: flex-start;
  }

  .input-wrap input {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .hero,
  .content {
    padding: 15px;
  }

  h1 {
    font-size: 25px;
  }

  .subtitle {
    font-size: 12.5px;
  }

  .field-card,
  .metric-card,
  .info-card,
  .result-card,
  .switch-card {
    border-radius: 20px;
    padding: 15px;
  }

  .result-big {
    font-size: 29px;
  }
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .app-shell,
  .field-card,
  .metric-card,
  .info-card,
  .switch-card,
  .formula-box,
  details.calculation-details,
  .result-card,
  .tabs,
  .visual-card {
    background: #111827;
  }
}
