body {
  margin: 0;
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  background: #0b1220;
  color: #e9f0ff;
}

.wrap {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: 24px;
}

.card {
  background: #121a2b;
  border: 1px solid #1d2842;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.grid {
  display: grid;
  grid-gap: 16px;
}

.controls {
  padding: 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

label {
  display: block;
  font-size: 12px;
  color: #8aa0c6;
  margin-bottom: 6px;
}

input,
button {
  background: #0e1527;
  color: #e9f0ff;
  border: 1px solid #263252;
  border-radius: 8px;
  padding: 10px 12px;
}

input:focus,
button:focus {
  outline: none;
  border-color: #4cc9f0;
  box-shadow: 0 0 0 3px rgba(76, 201, 240, .15);
}



/* --- NAVIGATION BAR (matches ROI calculator style) --- */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

nav.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

nav.row a.pill {
  background: #1f2a48;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.3;
  border: 1px solid #2a355a;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

nav.row a.pill:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

/* optional “active” highlight for the current page */
nav.row a.pill.active {
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  border-color: #22c55e;
  font-weight: 600;
}

button {
  cursor: pointer;
}

.primary {
  background: linear-gradient(135deg, #3a86ff, #00b4d8);
  border: none;
}

.ghost {
  background: transparent;
  border: 1px dashed #2d3a5c;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
}

@media (max-width:900px) {
  .cols {
    grid-template-columns: 1fr;
  }
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

thead th {
  font-size: 12px;
  color: #8aa0c6;
  text-align: left;
  padding: 6px 8px;
}

tbody td {
  background: #0e1527;
  border: 1px solid #243152;
  border-left: none;
  border-right: none;
  padding: 10px 12px;
}

tbody td:first-child {
  border-left: 1px solid #243152;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

tbody td:last-child {
  border-right: 1px solid #243152;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.muted {
  color: #8aa0c6;
}

.pill {
  background: #0e1527;
  border: 1px solid #263252;
  border-radius: 14px;
  padding: 10px 12px;
  display: inline-block;
  margin-right: 8px;
}

.disclaimer {
  font-size: 12px;
  color: #9fb3da;
}

@media (max-width: 700px) {
  .row {
    flex-direction: column;
    align-items: stretch;
  }

  input,
  button {
    width: 100%;
  }

  .cols {
    grid-template-columns: 1fr;
  }

  /* Stacked table for mobile */
  table.stack-table thead {
    display: none;
  }

  table.stack-table tbody tr {
    display: block;
    margin-bottom: 12px;
  }

  table.stack-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  table.stack-table tbody td::before {
    content: attr(data-label);
    color: #8aa0c6;
    /* muted */
    font-size: 12px;
    margin-right: 8px;
  }
}

/* --- Affiliate Button Styling --- */
.button-affiliate {
  background: linear-gradient(135deg, #06d6a0, #00b4d8);
  color: #fff;
  border: none;
  font-size: 18px;
  border-radius: 12px;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
  transition: transform 0.15s ease, opacity 1s ease;
  opacity: 0;
}

.button-affiliate:hover {
  transform: scale(1.04);
}

.button-affiliate.visible {
  opacity: 1;
}

/* --- Container positioning --- */
.affiliate-container-top {
  text-align: center;
  margin: 20px 0;
}

/* --- Mobile fixed button --- */
@media (max-width: 768px) {
  .affiliate-container-top {
    display: none;
    /* hide top button on mobile */
  }

  .affiliate-container-fixed {
    position: fixed;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
  }

  .button-affiliate {
    width: 90%;
    max-width: 400px;
    font-size: 16px;
    padding: 14px;
    border-radius: 10px;
  }
}

.title-gradient-glow {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #22c55e);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
  text-align: center;
}

.title-gradient {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 8px;
}

#texit-sidebar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #151c2f;
  color: #e9f0ff;
  width: 250px;
  border-left: 2px solid #2a355a;
  border-radius: 16px 0 0 16px;
  padding: 20px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  font-family: Arial, Helvetica, sans-serif;
  z-index: 9999;
}

.half-block {
  background: #0f172a;
  border: 1px solid #2a355a;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
}

.half-title {
  font-size: 13px;
  font-weight: 600;
  color: #9fb4ff;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.half-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.half-label {
  color: #9fb4ff;
  font-size: 12px;
}

.half-val {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.half-val.highlight {
  color: #fde047;
}

.progress-wrap {
  margin-top: 10px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #1e253d;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #2a355a;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #22c55e);
  width: 0%;
  transition: width 0.4s linear;
}

.progress-text {
  text-align: center;
  font-size: 11px;
  color: #9fb4ff;
  margin-top: 4px;
}

.half-est {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #9fb4ff;
}

.half-est-value {
  color: #fff;
  font-weight: 600;
  display: block;
}

.half-est-sub {
  color: #22c55e;
  font-size: 11px;
  margin-top: 2px;
}

.divider {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid #2a355a;
}

#texit-sidebar h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #3b82f6;
  text-align: center;
}

#texit-sidebar .label {
  font-size: 13px;
  color: #9fb4ff;
  margin-top: 10px;
}

#texit-sidebar .value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

#texit-sidebar .price {
  color: #22c55e;
}

#texit-sidebar .timestamp {
  font-size: 11px;
  color: #9fb4ff;
  text-align: center;
  margin-top: 8px;
}

body {
  margin-right: 270px;
}

@media (max-width:768px) {
  #texit-sidebar {
    display: none;
  }

  body {
    margin-right: 0;
  }
}

/* hidden by default on desktop */
#texit-sidebar-mobile {
  display: none;
}

/* Mobile layout */
@media (max-width:768px) {
  #texit-sidebar {
    display: none;
  }

  body {
    margin-right: 0;
  }

}

/* Outer bar styling */
.txc-ticker-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;

  background: #0f172a;
  color: #e9f0ff;
  border-bottom: 1px solid #2a355a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.4;

  /* you can adjust this padding if you want the bar taller/shorter */
  padding: 6px 0;
}

/* make sure page content isn't hidden under fixed bar */
body {
  padding-top: 32px;
}

/* viewport: hides overflow */
.txc-ticker-viewport {
  overflow: hidden;
  white-space: nowrap;
}
/* Pause on hover */
.txc-ticker-wrap:hover .txc-ticker-track {
  animation-play-state: paused;
}

/* track: super wide strip that moves left */
.txc-ticker-track {
  display: flex;
  flex-wrap: nowrap;
  /* we animate this */
  animation: txc-scroll 20s linear infinite;
  will-change: transform;
}

/* each segment: one full copy of the ticker content */
.txc-segment {
  display: inline-block;
  padding-right: 4rem;
  /* gap between end of first copy and start of second */
  color: #e9f0ff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* accent classes you already use in JS string */
.txc-label {
  color: #9fb4ff;
  font-weight: 500;
  margin-right: 0.25rem;
}

.txc-val {
  color: #fff;
  font-weight: 600;
}

.txc-val.highlight {
  color: #fde047;
}

.txc-val.price {
  color: #22c55e;
}

/* seamless scroll:
   we move the whole track left by 50% of its width.
   since segment A + segment B are identical back-to-back,
   at -50% we're lined up exactly where we started visually. */
@keyframes txc-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 20px));
  }
}

/* responsive text sizing */
@media (max-width:480px) {
  .txc-ticker-wrap {
    font-size: 12px;
  }
}