:root {
  color-scheme: dark;
  --bg: #021718;
  --panel: rgba(2, 28, 29, 0.88);
  --panel-strong: #031f20;
  --line: rgba(218, 179, 88, 0.18);
  --gold: #d9b45b;
  --gold-bright: #f1d487;
  --text: #f7f7f2;
  --muted: #9fb0ad;
  --buy: #a30c28;
  --buy-bright: #c81739;
  --sell: #075d25;
  --sell-bright: #0b7c34;
  --price-text: #ffffff;
  --managed-price-size: 29px;
  --managed-row-gap: 7px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 108, 77, 0.32), transparent 30rem),
    radial-gradient(circle at 10% 10%, rgba(23, 82, 92, 0.28), transparent 36rem),
    linear-gradient(135deg, #041b20 0%, #02231f 54%, #003d30 100%);
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.site-header,
.dashboard,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1880px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 20px 14px;
}

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

.brand-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 212, 135, .7);
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: -2px;
  transform: rotate(45deg);
  box-shadow: inset 0 0 20px rgba(217, 180, 91, .08);
}

.brand-mark::first-line { transform: rotate(-45deg); }
.brand-mark { text-indent: -1px; }
.brand-mark { line-height: 1; }
.brand-mark { --rotation: -45deg; }

.brand-mark::before { content: ""; }

.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: clamp(20px, 2vw, 30px); letter-spacing: .12em; }
.brand-copy small { color: var(--gold); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

.market-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  color: #dce7e4;
  font-size: 13px;
}

.market-date { color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #28d765; box-shadow: 0 0 0 6px rgba(40, 215, 101, .12); }

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.price-panel,
.contact-panel {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(3, 31, 32, .95), rgba(1, 20, 21, .92));
  box-shadow: var(--shadow);
}

.price-panel { padding: 24px; }

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

.eyebrow { margin: 0 0 4px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .24em; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.035em; }

.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; font-weight: 700; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend-buy { background: var(--buy-bright); }
.legend-sell { background: var(--sell-bright); }

.headline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.headline-card {
  min-height: 114px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 12px;
  border: 1px solid rgba(217, 180, 91, .24);
  border-radius: 14px;
  background: linear-gradient(180deg, #070808, #020303);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.headline-card span { color: #c9d2d0; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.headline-card strong { margin-block: 2px; font-size: clamp(30px, 3.4vw, 50px); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.headline-card small { color: #647371; font-size: 9px; font-weight: 800; letter-spacing: .18em; }

.price-table { display: grid; gap: var(--managed-row-gap); }
.price-table-head,
.price-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(125px, 190px) minmax(125px, 190px); gap: 7px; }
.price-table-head { padding-inline: 16px; color: #849693; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-align: center; }
.price-table-head span:first-child { text-align: left; }

.price-row {
  min-height: 58px;
  align-items: center;
  padding: 5px 6px 5px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(2,30,29,.72));
  transition: border-color .2s ease, transform .2s ease;
}

.price-row:hover { border-color: rgba(217, 180, 91, .27); transform: translateX(2px); }
.price-row > strong { font-size: clamp(17px, 1.65vw, 26px); letter-spacing: .01em; }
.price-row > strong small { color: var(--muted); font-size: .45em; letter-spacing: .1em; }

.board-price {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  color: var(--price-text);
  font-size: clamp(18px, 1.75vw, var(--managed-price-size));
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.price-buy { background: linear-gradient(135deg, var(--buy), var(--buy-bright)); }
.price-sell { background: linear-gradient(135deg, var(--sell), var(--sell-bright)); }
.trend-icon { width: 0; height: 0; opacity: .65; }
.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.35); transform: scale(1.015); } }
.price-updated { animation: price-flash .55s ease; }

.disclaimer { margin: 16px 4px 0; color: #71827f; font-size: 11px; }

.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 25px 25px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 5%, rgba(217, 180, 91, .14), transparent 18rem),
    linear-gradient(180deg, rgba(7, 40, 38, .98), rgba(1, 19, 20, .98));
}

.contact-logo {
  width: 158px;
  height: 158px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(241,212,135,.6);
  border-radius: 50%;
  outline: 1px solid rgba(241,212,135,.16);
  outline-offset: 8px;
  color: var(--gold-bright);
  font-family: Georgia, serif;
}

.contact-logo span { font-size: 32px; letter-spacing: .08em; }
.contact-logo small { font-family: inherit; font-size: 9px; letter-spacing: .28em; }
.gold-rule { width: 74px; height: 1px; margin: 28px 0 16px; background: var(--gold); }
.contact-kicker { margin: 0; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.contact-panel h2 { margin: 10px 0 8px; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.contact-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.contact-details { width: 100%; display: grid; gap: 8px; margin-top: 28px; text-align: left; }
.contact-details a { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; color: inherit; text-decoration: none; background: rgba(0,0,0,.16); }
.contact-details a:hover { border-color: rgba(217,180,91,.4); }
.detail-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(217,180,91,.12); color: var(--gold-bright); }
.contact-details span:last-child { display: grid; gap: 3px; }
.contact-details small { color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.contact-details strong { font-size: 12px; line-height: 1.35; }

.whatsapp-button { width: 100%; margin-top: auto; padding: 14px; border-radius: 11px; color: #fff; font-size: 13px; font-weight: 900; text-decoration: none; background: #087a42; box-shadow: 0 8px 22px rgba(8,122,66,.22); }
.whatsapp-button:hover { background: #0a9250; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 16px 22px; color: #71827f; font-size: 10px; font-weight: 700; letter-spacing: .11em; }

@media (max-width: 1100px) {
  .dashboard { grid-template-columns: 1fr; }
  .contact-panel { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 30px; text-align: left; }
  .contact-logo { grid-row: span 5; width: 130px; height: 130px; text-align: center; }
  .gold-rule { display: none; }
  .contact-details { grid-template-columns: 1fr 1.5fr; margin-top: 6px; }
  .whatsapp-button { text-align: center; }
}

@media (max-width: 720px) {
  .site-header, .dashboard, .site-footer { width: min(100% - 24px, 1880px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 14px; padding-top: 14px; }
  .brand-mark { width: 48px; height: 48px; font-size: 18px; }
  .brand-copy strong { font-size: 20px; }
  .market-state { width: 100%; flex-wrap: wrap; border-radius: 13px; }
  .price-panel { padding: 14px; border-radius: 16px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .headline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .headline-card { min-height: 94px; }
  .price-table-head { display: none; }
  .price-row { grid-template-columns: 1fr 1fr; padding: 10px; }
  .price-row > strong { grid-column: 1 / -1; padding: 2px 3px 5px; font-size: 18px; }
  .board-price { min-height: 43px; font-size: 18px; }
  .price-buy::before, .price-sell::before { font-size: 8px; font-weight: 900; letter-spacing: .1em; opacity: .7; }
  .price-buy::before { content: "ALIŞ"; }
  .price-sell::before { content: "SATIŞ"; }
  .contact-panel { display: flex; padding: 28px 18px 18px; text-align: center; }
  .contact-logo { width: 130px; height: 130px; }
  .contact-details { grid-template-columns: 1fr; }
  .whatsapp-button { margin-top: 16px; }
  .site-footer { flex-direction: column; gap: 4px; }
}

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