:root {
  color-scheme: light;
  --bg: #ffffff;
  --line: #e7e7e7;
  --line-strong: #d1d1d1;
  --text: #111111;
  --muted: #6d6d6d;
  --buy: #a30c28;
  --buy-bright: #a30c28;
  --sell: #075d25;
  --sell-bright: #075d25;
  --price-text: #ffffff;
  --managed-price-size: 30px;
  --managed-row-gap: 0px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: #ffffff;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: #ffffff;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

.page-glow { display: none; }

.site-header,
.dashboard,
.site-footer {
  width: min(1600px, calc(100% - 80px));
  margin-inline: auto;
}

.site-header {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(220px, 22vw, 310px);
  height: auto;
  filter: brightness(0);
}

.market-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #323232;
  font-size: 13px;
  font-weight: 600;
}

.market-date {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 500;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #18a957;
  box-shadow: 0 0 0 5px rgba(24, 169, 87, .1);
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.price-panel {
  order: 1;
  padding: 46px 0 38px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: none;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #8a641f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
}

h1,
h2 { text-wrap: balance; }

h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -.055em;
}

.legend {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-buy { background: var(--buy); }
.legend-sell { background: var(--sell); }

.headline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
  border-block: 1px solid var(--line);
}

.headline-card {
  min-height: 126px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.headline-card:last-child { border-right: 0; }
.headline-card span { color: #5e5e5e; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.headline-card strong { margin-block: 2px; font-size: clamp(34px, 4vw, 58px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.headline-card small { color: #8a8a8a; font-size: 9px; font-weight: 700; letter-spacing: .16em; }

.price-table { display: grid; gap: var(--managed-row-gap); }

.price-table-head,
.price-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(180px, 250px) minmax(180px, 250px);
  gap: 12px;
}

.price-table-head {
  padding: 0 14px 10px;
  color: #777777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-align: center;
}

.price-table-head span:first-child { text-align: left; }

.price-row {
  min-height: 68px;
  align-items: center;
  padding: 7px 6px 7px 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.price-row:last-child { border-bottom: 1px solid var(--line); }
.price-row > strong { font-size: clamp(18px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.025em; }
.price-row > strong small { color: var(--muted); font-size: .43em; letter-spacing: .1em; }

.board-price {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  color: var(--price-text);
  font-size: clamp(20px, 2vw, var(--managed-price-size));
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}

.price-buy { background: var(--buy); }
.price-sell { background: var(--sell); }
.trend-icon { width: 0; height: 0; opacity: .7; }
.trend-up { border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid currentColor; }
.trend-down { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid currentColor; }

@keyframes price-flash { 50% { filter: brightness(1.14); transform: scale(1.01); } }
.price-updated { animation: price-flash .5s ease; }
.disclaimer { margin: 15px 0 0; color: #858585; font-size: 10px; }

.calculator-panel {
  order: 2;
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(420px, 1.3fr) minmax(280px, .9fr);
  gap: 44px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.calculator-intro h2 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -.045em;
}

.calculator-intro > p:last-child {
  max-width: 48ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.calculator-form { display: grid; gap: 22px; }

.calculator-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 0;
  padding: 0;
  border: 0;
}

.calculator-modes legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.calculator-modes label { cursor: pointer; }
.calculator-modes input { position: absolute; opacity: 0; pointer-events: none; }

.calculator-modes span {
  display: block;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-strong);
  color: #777777;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  transition: border-color .2s ease, color .2s ease;
}

.calculator-modes input:checked + span { border-color: #111111; color: #111111; }
.calculator-modes input:focus-visible + span { outline: 2px solid #111111; outline-offset: 4px; }
.calculator-input-label { display: grid; gap: 7px; color: #666666; font-size: 10px; font-weight: 800; letter-spacing: .05em; }

.calculator-input-wrap {
  display: flex;
  min-height: 54px;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  background: #ffffff;
}

.calculator-input-wrap:focus-within { border-color: #111111; }
.calculator-input-wrap input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; color: #111111; background: transparent; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.calculator-input-wrap strong { padding-left: 14px; color: #111111; font-size: 11px; }

.calculator-output {
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
}

.calculator-output > span { color: #707070; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.calculator-output > strong { font-size: clamp(25px, 2.7vw, 40px); line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.calculator-output > small { color: #777777; font-size: 10px; line-height: 1.45; }
.calculator-note { grid-column: 1 / -1; margin: -22px 0 0; color: #8a8a8a; font-size: 9px; }

.contact-panel {
  order: 3;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(480px, 1.4fr) 220px;
  gap: 42px;
  align-items: center;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.contact-kicker { margin: 0; color: #8a641f; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.contact-panel h2 { margin: 8px 0 7px; font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.contact-copy { max-width: 48ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-details { display: grid; grid-template-columns: .85fr 1.4fr; gap: 24px; }

.contact-details a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
}

.detail-icon { display: none; }
.contact-details span:last-child { display: grid; gap: 3px; }
.contact-details small { color: #777777; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.contact-details strong { font-size: 11px; line-height: 1.4; }

.whatsapp-button {
  padding: 14px 18px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: #087a42;
}

.whatsapp-button:hover { background: #066b39; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px 28px;
  color: #777777;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

@media (max-width: 1080px) {
  .calculator-panel { grid-template-columns: 1fr 1.4fr; }
  .calculator-output { grid-column: 1 / -1; min-height: 100px; padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .contact-panel { grid-template-columns: 1fr 1.5fr; }
  .whatsapp-button { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header,
  .dashboard,
  .site-footer { width: min(100% - 28px, 1600px); }
  .site-header { min-height: 0; align-items: flex-start; flex-direction: column; gap: 22px; padding-block: 22px; }
  .brand-logo { width: 230px; }
  .market-state { width: 100%; flex-wrap: wrap; }
  .market-date { width: 100%; margin: 0 0 0 19px; }
  .price-panel { padding: 34px 0 30px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .headline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .headline-card { min-height: 105px; border-bottom: 1px solid var(--line); }
  .headline-card:nth-child(2) { border-right: 0; }
  .headline-card:nth-child(n+3) { border-bottom: 0; }
  .price-table-head { display: none; }
  .price-row { grid-template-columns: 1fr 1fr; gap: 7px; padding: 12px 0; }
  .price-row > strong { grid-column: 1 / -1; padding-bottom: 3px; font-size: 18px; }
  .board-price { min-height: 48px; font-size: 18px; }
  .price-buy::before,
  .price-sell::before { position: absolute; top: 5px; left: 6px; font-size: 6px; font-weight: 800; letter-spacing: .08em; opacity: .7; }
  .price-buy::before { content: "ALIŞ"; }
  .price-sell::before { content: "SATIŞ"; }
  .board-price .trend-icon { position: absolute; top: 7px; right: 6px; }
  .calculator-panel { grid-template-columns: 1fr; gap: 30px; padding: 38px 0; }
  .calculator-output { grid-column: auto; }
  .calculator-note { grid-column: auto; margin-top: -16px; }
  .contact-panel { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .contact-details { grid-template-columns: 1fr; gap: 18px; }
  .whatsapp-button { grid-column: auto; }
  .site-footer { flex-direction: column; gap: 5px; }
}

@media (max-width: 430px) {
  .calculator-modes { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
