:root {
  --bg: #f8f5f2;
  --text: #111111;
  --muted: #6a6663;
  --gold: #d8ad2d;
  --red: #a61e22;
  --ease: cubic-bezier(.22,.61,.36,1);
  --content-width: 1420px;
  --chart-width: 1320px;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden !important;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.aureus-app * {
  box-sizing: border-box;
}

.aureus-app {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% 108%, rgba(54,54,54,.13) 0%, rgba(120,116,110,.08) 32%, rgba(255,255,255,0) 76%),
    radial-gradient(900px 420px at 8% 100%, rgba(80,76,72,.10) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(900px 420px at 92% 100%, rgba(80,76,72,.10) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #fbf8f5 0%, #f8f5f2 58%, #ece8e3 100%);
}

.aureus-app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.32), rgba(255,255,255,0) 46%);
  mix-blend-mode: screen;
  opacity: .9;
}

.aureus-shell {
  position: relative;
  z-index: 1;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh;
  padding: 0 16px;
  display: grid;
  grid-template-rows: 72px auto minmax(0, 1fr) 58px;
  overflow: hidden;
}

.aureus-topbar,
.aureus-hero,
.aureus-footer-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.aureus-chart-card {
  width: 100%;
  max-width: var(--chart-width);
  margin: 0 auto;
}

.aureus-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(80,76,72,.10);
}

.aureus-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.aureus-brand-coin {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(180,130,20,.18));
  transform: translateY(.5px);
}

.aureus-logo-text {
  display: flex;
  align-items: center;
}

.aureus-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: #111;
}

.aureus-prices-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.aureus-prices-updated {
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  color: #8a827c;
  letter-spacing: .01em;
  padding-right: 2px;
}

.aureus-prices {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.aureus-price-card {
  min-width: 100px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
  backdrop-filter: blur(10px);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.aureus-price-card:hover {
  transform: translateY(-1px);
  border-color: rgba(216,173,45,.24);
  box-shadow: 0 8px 18px rgba(17,17,17,.04);
}

.aureus-price-label {
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.aureus-price-value {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.aureus-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 0 10px;
  text-align: center;
}

.aureus-copy {
  width: 100%;
  max-width: var(--chart-width);
  margin: 0 auto;
  animation: aureusFadeUp .7s var(--ease) both;
}

.aureus-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

.aureus-title {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 10px;
  font-size: clamp(34px, 3vw, 62px) !important;
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 700;
  text-align: center;
  white-space: nowrap !important;
}

.aureus-title span {
  display: inline;
}

.aureus-title-accent {
  color: var(--red);
  margin-left: 12px;
}

.aureus-chart-section {
  min-height: 0;
  overflow: hidden;
  padding: 8px 0 10px;
  animation: aureusFadeUp .95s var(--ease) both;
}

.aureus-chart-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.64) 100%);
  border: 1px solid rgba(80,76,72,.10);
  box-shadow:
    0 18px 48px rgba(17,17,17,.05),
    inset 0 1px 0 rgba(255,255,255,.42),
    0 0 24px rgba(80,76,72,.035);
  backdrop-filter: blur(12px);
}

.aureus-tv-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(80,76,72,.10);
  background:
    radial-gradient(circle at 50% 100%, rgba(199,165,75,.04), transparent 34%),
    linear-gradient(180deg, #fbf8f5 0%, #f8f5f2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 8px 18px rgba(17,17,17,.03);
}

.aureus-tv-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    radial-gradient(circle at 50% 120%, rgba(199,165,75,.03), rgba(255,255,255,0));
}

.aureus-tv-wrap .tradingview-widget-container,
.aureus-tv-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
}

.aureus-chart-fallback {
  display: none;
  position: absolute;
  inset: 18px;
  z-index: 5;
  border-radius: 18px;
  background: rgba(248,245,242,.92);
  border: 1px solid rgba(80,76,72,.10);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: #111;
  font-size: 14px;
}

.aureus-chart-fallback span {
  color: #665f5a;
  font-size: 13px;
}

.aureus-chart-fallback a {
  margin-top: 6px;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.aureus-footer {
  border-top: 1px solid rgba(80,76,72,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 100%);
}

.aureus-footer-inner {
  height: 100%;
  padding: 0 4px;
  display: grid;
  grid-template-columns: .72fr 1.38fr .9fr;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  color: #665f5a;
}

.aureus-footer-left {
  justify-self: start;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.aureus-footer-center {
  justify-self: center;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.aureus-footer-right {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: nowrap;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.aureus-footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(216,173,45,.72);
  flex: 0 0 auto;
}

.aureus-loading {
  opacity: .55;
}

@keyframes aureusFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET / SMALL DESKTOP */
@media (max-width: 1180px) {
  html,
  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
  }

  .aureus-app,
  .aureus-shell {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
  }

  .aureus-shell {
    display: flex;
    flex-direction: column;
    padding: 0 18px;
  }

  .aureus-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 14px;
    gap: 14px;
  }

  .aureus-prices-wrap {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .aureus-prices {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .aureus-price-card {
    min-width: 0;
    width: 100%;
  }

  .aureus-title {
    font-size: clamp(30px, 5vw, 54px) !important;
    white-space: normal !important;
  }

  .aureus-title span {
    display: block;
    margin-top: 4px;
  }

  .aureus-title-accent {
    margin-left: 0;
  }

  .aureus-chart-section {
    min-height: unset;
    padding: 0 0 22px;
  }

  .aureus-chart-card {
    min-height: 620px;
  }

  .aureus-footer-inner {
    min-height: 92px;
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .aureus-footer-center,
  .aureus-footer-right {
    text-align: left;
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .aureus-shell {
    padding: 0 12px;
  }

  .aureus-topbar {
    padding: 10px 0 10px;
    gap: 8px;
  }

  .aureus-brand {
    gap: 10px;
  }

  .aureus-brand-coin {
    width: 22px;
    height: 22px;
  }

  .aureus-name {
    font-size: 18px;
    line-height: 1;
  }

  .aureus-prices-wrap {
    width: 100%;
    gap: 6px !important;
  }

  .aureus-prices-updated {
    font-size: 12px !important;
    margin: 2px 0;
    padding-left: 2px;
    opacity: .82;
  }

  .aureus-prices {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .aureus-price-card {
    min-height: 64px;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.62);
  }

  .aureus-price-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 4px);
  }

  .aureus-price-label {
    font-size: 9px !important;
    margin-bottom: 5px !important;
    letter-spacing: .09em;
  }

  .aureus-price-value {
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .aureus-hero {
    padding: 12px 0 6px;
  }

  .aureus-eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: .16em;
  }

  .aureus-title {
    font-size: clamp(26px, 8.5vw, 38px) !important;
    line-height: .92 !important;
    letter-spacing: -.055em !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .aureus-title .aureus-title-accent {
    display: block !important;
    margin-top: 4px !important;
    margin-left: 0 !important;
  }

  .aureus-chart-section {
    padding: 6px 0 22px !important;
  }

  .aureus-chart-card {
    height: 540px !important;
    min-height: 540px !important;
    padding: 8px !important;
    border-radius: 22px !important;
  }

  .aureus-tv-wrap {
    border-radius: 18px !important;
  }

  .aureus-tv-wrap,
  .aureus-tv-wrap .tradingview-widget-container,
  .aureus-tv-wrap iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .aureus-footer {
    margin-top: 6px;
  }

  .aureus-footer-inner {
    padding: 12px 0;
    gap: 6px;
  }

  .aureus-footer-left,
  .aureus-footer-center,
  .aureus-footer-right {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  .aureus-footer-center,
  .aureus-footer-right {
    font-size: 10px;
    line-height: 1.4;
  }
}

/* COMPACT DESKTOP */
@media (max-width: 1440px) and (max-height: 950px) and (min-width: 1190px) {
  .aureus-shell {
    grid-template-rows: 60px auto minmax(0, 1fr) 48px;
    padding: 0 14px;
  }

  .aureus-topbar,
  .aureus-hero,
  .aureus-footer-inner {
    max-width: 1320px;
  }

  .aureus-chart-card {
    max-width: 1240px;
  }

  .aureus-prices-updated {
    font-size: 10px;
  }

  .aureus-price-card {
    min-width: 92px;
    padding: 7px 9px;
  }

  .aureus-price-label {
    font-size: 8.5px;
    margin-bottom: 4px;
  }

  .aureus-price-value {
    font-size: 13.5px;
  }

  .aureus-hero {
    padding: 16px 0 8px;
  }

  .aureus-title {
    font-size: clamp(30px, 2.35vw, 50px) !important;
    white-space: nowrap !important;
  }

  .aureus-title span {
    display: inline;
  }

  .aureus-title-accent {
    margin-left: 10px;
  }

  .aureus-chart-section {
    padding: 6px 0 8px;
  }

  .aureus-chart-card {
    padding: 10px;
    border-radius: 24px;
  }

  .aureus-tv-wrap {
    border-radius: 20px;
  }

  .aureus-footer-inner {
    min-height: 48px;
    gap: 14px;
    font-size: 11px;
    grid-template-columns: .65fr 1.3fr 1fr;
  }

  .aureus-footer-center {
    font-size: 10px;
  }

  .aureus-footer-right {
    gap: 7px;
    font-size: 10.5px;
  }
}

/* LARGE SCREENS */
@media (min-width: 1800px) {
  :root {
    --content-width: 1680px;
    --chart-width: 1560px;
  }

  .aureus-shell {
    grid-template-rows: 76px auto minmax(0, 1fr) 64px;
    padding: 0 24px;
  }

  .aureus-price-card {
    min-width: 112px;
    padding: 10px 13px;
  }

  .aureus-price-value {
    font-size: 17px;
  }

  .aureus-hero {
    padding: 26px 0 14px;
  }

  .aureus-title {
    font-size: clamp(44px, 2.55vw, 64px) !important;
    white-space: nowrap !important;
  }

  .aureus-chart-card {
    padding: 16px;
    border-radius: 32px;
  }

  .aureus-tv-wrap {
    border-radius: 26px;
  }

  .aureus-footer-inner {
    min-height: 64px;
    font-size: 13px;
    grid-template-columns: .75fr 1.35fr .9fr;
  }
}

@media (min-width: 2200px) {
  :root {
    --content-width: 1840px;
    --chart-width: 1700px;
  }

  .aureus-title {
    font-size: clamp(52px, 2.6vw, 82px) !important;
  }

  .aureus-chart-card {
    padding: 18px;
  }
}