/* Global.css */
:root {
  --bg-color:           #0a0a0a;
  --text-light:         #f0f0f0;
  --card-bg:            rgba(255,255,255,0.02);
  --border-gray:        rgba(255,255,255,0.10);
  --white:              #ffffff;
  --black:              #000000;

  --accent-col:         #00d1b2;
  --accent-col-darker:  #00d1b266; /* ~40% alpha */
  --accent-col-sidebar: #00d1b24d; /* ~30% alpha */
  --accent-col-darkest: #00d1b21a; /* ~10% alpha */

  /* Accent alphas used by effects */
  --accent-col-36a:     rgba(0, 209, 178, .36);
  --accent-col-45a:     rgba(0, 209, 178, .45);
  --accent-col-00a:     rgba(0, 209, 178, 0);

  --feat-accent-col: #00d1b2;

  /* Meteor Effect */
  --hero-star-color: rgba(255,255,255,.85);
  --hero-meteor-core: var(--white); /* bright core at trail start */
  --hero-meteor-head: color-mix(in oklab, var(--accent-col) 62%, white 38%);

  /* Shared tints used across pages */
  --teal-500:           #06b6d4;
  --cyan-400:           #22d3ee;
  --cyan-400-a-15:      rgba(34, 211, 238, .15);
  --cyan-400-a-55:      rgba(34, 211, 238, .55);

  --bullish:            #4ade80;
  --bullish-a-15:       rgba(74, 222, 128, .15);
  --bullish-a-55:       rgba(74, 222, 128, .55);

  --bearish:            #ef4444;
  --bearish-a-18:       rgba(239, 68, 68, .18);
  --bearish-a-60:       rgba(239, 68, 68, .60);

  --warning:            #eab308;

  --neutral:            #94a3b8; /* also used as general "neutral" */
  --zinc-400:           #a1a1aa;
  --zinc-400-a-15:      rgba(161, 161, 170, .15);
  --zinc-400-a-55:      rgba(161, 161, 170, .55);

  --amber:              #f59e0b;
  --amber-a-15:         rgba(245, 158, 11, .15);
  --amber-a-55:         rgba(245, 158, 11, .55);

  --cash-grey:          #c0c0c0;
  --cash-grey-dark:     #ffffff1a;

  --btc-orange:         #f59e0b;
  --btc-orange-dark:    #f7931a26;
  --btc-orange-a-18:    rgba(247, 147, 26, .18);
  --btc-orange-a-50:    rgba(247, 147, 26, .50);

  --eth-blue:           #3861FB;
  --eth-blue-dark:      #3b82f626;
  --eth-blue-a-18:      rgba(59, 130, 246, .18);
  --eth-blue-a-50:      rgba(59, 130, 246, .50);

  --sol-purple:         #a855f7;
  --sol-purple-dark:    #a855f726;
  --sol-purple-a-18:    rgba(168, 85, 247, .18);
  --sol-purple-a-50:    rgba(168, 85, 247, .50);

  --others-grey:        #53596A;
  --btc-dark:           #b45309; 
  --btc-light:          #f59e0b; 
  --alt-light:          #60a5fa; 
  --alt-dark:           #3861FB; 

  /* White/black alpha tokens (for borders/backgrounds) */
  --white-a-03: rgba(255,255,255,.03);
  --white-a-05: rgba(255,255,255,.05);
  --white-a-06: rgba(255,255,255,.06);
  --white-a-08: rgba(255,255,255,.08);
  --white-a-10: rgba(255,255,255,.10);
  --white-a-12: rgba(255,255,255,.12);
  --white-a-15: rgba(255,255,255,.15);
  --white-a-18: rgba(255,255,255,.18);
  --white-a-25: rgba(255,255,255,.25);
  --white-a-35: rgba(255,255,255,.35);

  --black-a-40: rgba(0,0,0,.40);
  --black-a-60: rgba(0,0,0,.60);

  --white-10:   #ffffff1a;

  --font-display: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Spacing Variables */
  --block-gap: 18px;
}

/* Light theme overrides for global tokens */
[data-theme="light"] {
  --bg-color: #f5f5f5;
  --text-light: #1a1a1a;
  --card-bg: rgba(0, 0, 0, 0.03);
  --border-gray: rgba(0, 0, 0, 0.10);
  --white-a-03: rgba(0, 0, 0, 0.03);
  --white-a-05: rgba(0, 0, 0, 0.05);
  --white-a-06: rgba(0, 0, 0, 0.06);
  --white-a-08: rgba(0, 0, 0, 0.08);
  --white-a-10: rgba(0, 0, 0, 0.10);
  --white-a-12: rgba(0, 0, 0, 0.12);
  --white-a-15: rgba(0, 0, 0, 0.15);
  --white-a-18: rgba(0, 0, 0, 0.18);
  --white-a-25: rgba(0, 0, 0, 0.25);
  --white-a-35: rgba(0, 0, 0, 0.35);
  --white-10: rgba(0, 0, 0, 0.10);
}

/* Base HTML Elements */
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  font-family: var(--font-display);
}
body {
  position: relative;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  z-index: 0;
  background-color: var(--bg-color);
  color: var(--text-light);
  font-weight: 400;
  font-family: var(--font-display);
}
main {
  flex: 1;
  padding-top: 1rem;
}

.hidden {
  display: none !important;
}

/* Base Template Containers */
.site-container {
    width: 100%;
    box-sizing: border-box;
}
.layout-container{
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 80px);
  margin-top: 80px;
  margin-left: 310px;
}

.layout-main{
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Page Titles */
/* Page header: 2-column grid so links sit to the right */
.header {
  position: relative;                /* create positioning context */
  margin-bottom: 10px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto;   /* title/subtitle | docs link */
  grid-template-rows: auto auto;     /* row 1 = title, row 2 = subtitle */
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
}

/* Title/Subtitle live in column 1 */
.page-title{
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  color: var(--accent-col);
  margin: 0;
  font-weight: 400;
  padding-top: 10px;
}
.page-subtitle{
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem);
  font-weight: 100;
  color: var(--text-light);
  opacity: 0.7;
}

.last-updated {
  position: static;
  grid-column: 1;
  grid-row: 3;
  margin: 0.4rem 0 0;
  right: auto;
  bottom: auto;
  justify-self: start;
  font-size: 0.85rem;
  opacity: 0.8;
  letter-spacing: 0.01em;
}

/* Docs link(s) live in column 2; put one next to title and/or subtitle */
.docs-link,
.docs-link--sub{
  justify-self: end;            /* push to the right edge */
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-light);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.docs-link:hover,
.docs-link--sub:hover{
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

/* Explicit grid placement so they align with the correct row */
.docs-link{      grid-column: 2; grid-row: 1; }
.docs-link--sub{ grid-column: 2; grid-row: 2; }

/* Small screens: stack; place the docs link under the subtitle */
@media (max-width: 768px){
  .header{
    grid-template-columns: 1fr;   /* single column */
  }
  .docs-link,
  .docs-link--sub{
    grid-column: 1 !important;
    grid-row: auto;
    justify-self: start;          /* align left under text */
    margin-top: 4px;
  }
}

/* Make sure the grid doesn’t sneak up underneath */

/* Safety: if anything above floats, clear it so header fully contains children */
.header::after{
  content: "";
  display: block;
  clear: both;
}

/* Small screens: a bit more breathing room below the header */
@media (max-width: 768px){
  .page-subtitle{ font-size: 0.98rem; }
}

/* Basic Content Block */
.block {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  margin: 0 20px 20px;
}

/* Block Title */
.section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--color-primary);
}

/* Block header row */
.chart-header { 
  display:flex; 
  align-items:center; 
  gap:8px; 
}
.chart-header .section-title { margin-right:auto; }
.chart-header .controls,
.chart-header .block-controls { margin-left:0; }

/* Block Setting Buttons Styles */
.block-controls { 
  display:flex; gap:8px; align-items:center; flex-wrap:wrap; 
}
.controls{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap; 
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px; padding:6px 12px; height:32px;
  font-size:12px; line-height:1; cursor:pointer;
  transition: background .2s ease, border-color .2s ease;
}
.btn--ghost{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-light);
}
.btn--ghost:hover{
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--text-light) !important;
}
.btn.is-active,
.btn[aria-pressed="true"]{
  background: var(--white-a-12);
  border-color: var(--white-a-35);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--white-a-18) inset;
  font-weight: 700;
}
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 1px var(--white-a-18) inset;
}

.btn-block,
.ui-btn{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-light);
  border-radius: 8px;
  padding: 6px 12px;
  box-sizing: border-box;
  height: 32px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.btn-block:hover,
.ui-btn:hover{
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}
/* Active state — class or aria */
.btn-block.is-active,
.btn-block[aria-pressed="true"],
.ui-btn.is-active,
.ui-btn[aria-pressed="true"]{
  background: var(--white-a-12);
  border-color: var(--white-a-35);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--white-a-18) inset;
  font-weight: 700;
}
.btn-block:focus-visible,
.ui-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 1px var(--white-a-18) inset;
}

/* Date input styled as a control (alias old + new) */
.controls input[type="date"].btn, /* NEW primary */
.block-controls input[type="date"].btn-block,
.block-controls input[type="date"].ui-input{
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.03);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 12px;
  box-sizing: border-box;
  height: 32px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1;
}
.controls input[type="date"].btn:hover,
.block-controls input[type="date"].btn-block:hover,
.block-controls input[type="date"].ui-input:hover{
  border-color: var(--white-a-35);
  background: var(--white-a-06);
}
.controls input[type="date"].btn:focus-visible,
.block-controls input[type="date"].btn-block:focus-visible,
.block-controls input[type="date"].ui-input:focus-visible{
  outline: none;
  box-shadow: 0 0 0 1px var(--white-a-18) inset;
}
.controls input[type="date"].btn::-webkit-calendar-picker-indicator,
.block-controls input[type="date"].btn-block::-webkit-calendar-picker-indicator,
.block-controls input[type="date"].ui-input::-webkit-calendar-picker-indicator{
  filter: invert(1) opacity(.9);
  cursor: pointer;
  margin-left: .25rem;
}
.controls input[type="date"].btn::-webkit-datetime-edit,
.controls input[type="date"].btn::-webkit-datetime-edit-fields-wrapper,
.controls input[type="date"].btn::-webkit-datetime-edit-text,
.controls input[type="date"].btn::-webkit-datetime-edit-month-field,
.controls input[type="date"].btn::-webkit-datetime-edit-day-field,
.controls input[type="date"].btn::-webkit-datetime-edit-year-field,
.block-controls input[type="date"].btn-block::-webkit-datetime-edit,
.block-controls input[type="date"].btn-block::-webkit-datetime-edit-fields-wrapper,
.block-controls input[type="date"].btn-block::-webkit-datetime-edit-text,
.block-controls input[type="date"].btn-block::-webkit-datetime-edit-month-field,
.block-controls input[type="date"].btn-block::-webkit-datetime-edit-day-field,
.block-controls input[type="date"].btn-block::-webkit-datetime-edit-year-field,
.block-controls input[type="date"].ui-input::-webkit-datetime-edit,
.block-controls input[type="date"].ui-input::-webkit-datetime-edit-fields-wrapper,
.block-controls input[type="date"].ui-input::-webkit-datetime-edit-text,
.block-controls input[type="date"].ui-input::-webkit-datetime-edit-month-field,
.block-controls input[type="date"].ui-input::-webkit-datetime-edit-day-field,
.block-controls input[type="date"].ui-input::-webkit-datetime-edit-year-field{
  color: inherit; padding: 0;
}
.block-controls input[type="date"].btn-block::-ms-clear,
.block-controls input[type="date"].ui-input::-ms-clear { display: none; }

/* Optional micro-lift (timeframe cluster only) */
#tf-controls .ui-btn:hover { transform: translateY(-1px); }

/* =========================
   Shared Button Styles (Landing / Navbar / Global)
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
  line-height: 1;
  min-height: 3rem;
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0,209,178,0.14), rgba(0,209,178,0.06));
  color: #00d1b2;
  border: 1px solid rgba(0,209,178,0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,209,178,0.22), rgba(0,209,178,0.10));
  border-color: rgba(0,209,178,0.8);
  color: #fff;
}

.btn-primary-alt {
  background: var(--text-light, #fafafa);
  color: var(--accent-col, #00d1b2);
  border: 1px solid var(--text-light, #fafafa);
}

.btn-primary-alt:hover {
  background: rgba(255,255,255,0.9);
}

.btn-primary-dark {
  background: rgba(255,255,255,0.03);
  color: var(--accent-col, #00d1b2);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-primary-dark:hover {
  background: rgba(0,209,178,0.08);
  border-color: rgba(0,209,178,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-light, #fafafa);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light, #fafafa);
  border: none;
  padding: 0.75rem 1rem;
}

.btn-ghost:hover {
  color: var(--accent-col, #00d1b2);
}

.btn-lg {
  padding: 1.25rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  font-size: 1rem;
}

/* =========================
   Global Pills (default grey)
   ========================= */
.pill-standard,
.pill-standard-bold{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--white-a-18);
  background:var(--white-a-06);
  color:var(--white);
  font-size:.82rem;     /* unified size */
  line-height:1.1;
}
.pill-standard-bold{
  font-weight:700;
}

/* Consistent breathing room under all block headers */
.block > .chart-header,
.block > .section-title {
  margin-bottom: 8px; /* tweak to 10–12px if you want more space */
}

/* Let containers control spacing with gap */
.block{ margin: 0; }

/* Utility you can use anywhere to stack blocks */
.blocks-stack{ display:grid; gap: var(--block-gap); }

/* ===== Global rule for block labels ===== */
.block-label{
  color: var(--white);
  font-size: 0.8rem;
}

/* ===== Global Info Button + Popover Modal Styles ===== */
.info-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.info-btn{
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--white-a-18);
  background: var(--white-a-06);
  color: var(--white); font-size: 12px; line-height: 1; cursor: pointer;
  transition: all .15s ease;
}
.info-btn:hover{ border-color: var(--white-a-35); background: var(--white-a-10); }

.info-popover {
  position: absolute;
  z-index: 99999;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  min-width: 220px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15,18,24,.98);
  border: 1px solid var(--white-a-18);
  color: var(--white);
  font-size: .86rem;
  line-height: 1.35;
  box-shadow: 0 8px 30px rgba(0,0,0,.55);
  white-space: normal;
  overflow-wrap: break-word;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.info-popover.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
  pointer-events: auto;
}

.info-popover-title { font-weight: 700; margin-bottom: 6px; font-size: .9rem; }
.info-popover-body { opacity: .9; }

/* Responsive alignment (desktop → mobile) */
@media (max-width: 768px) {
  .info-popover {
    max-width: min(260px, calc(100vw - 24px));
    font-size: .82rem;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .info-popover {
    /* Move to center of screen */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    max-width: 90vw;
    width: auto;
    min-width: 200px;
    height: auto;
    max-height: 80vh;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
  }
  .info-popover.is-open {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ===== Fancy Accent Spinner ===== */
.spinner {
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 50%;
  /* conic ring in accent, masked to make it a ring */
  background: conic-gradient(
    from 0deg,
    var(--accent-col, #00d1b2) 0 30%,
    rgba(0,0,0,0) 30% 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
  animation: sqspin 0.9s linear infinite, sqpulse 1.2s ease-in-out infinite alternate;
  margin: 10px auto 14px;
}

.spinner::after {
  /* little orbiting dot */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, #fff 0 20%, rgba(255,255,255,0) 21% 100%);
  animation: sqorbit 1.2s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
  opacity: 0.9;
}

@keyframes sqspin { to { transform: rotate(360deg); } }
@keyframes sqpulse { from { filter: drop-shadow(0 0 0 rgba(0,0,0,.0)); } to { filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); } }
@keyframes sqorbit { to { transform: rotate(360deg); } }

input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  aspect-ratio: 1 / 1;
  border: 1.6px solid rgba(255,255,255,.3);
  border-radius: 4px;
  background: transparent;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  box-sizing: content-box;           /* keep width/height exact */
  transition: border-color .15s ease, background-color .15s ease;
}
input[type="checkbox"]::after{
  content: "";
  width: 10px; height: 10px;
  transform: scale(0);
  transition: transform .12s ease-in-out;
  background: var(--accent-col);
}
input[type="checkbox"]:checked{
  border-color: var(--accent-col);
}
input[type="checkbox"]:checked::after{
  transform: scale(1);
}

/* Scrollbar styling */
/* Width and height of the scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 10px;
}

/* Track (the background of the scrollbar) */
::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

/* Thumb (the draggable part) */
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.10);
  border-radius: 10px;
}

/* Hover effect */
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.18);
}

/* Optional corner (when both scrolls appear) */
::-webkit-scrollbar-corner {
  background: transparent;
}

@media (max-width: 1024px){
  .layout-container{ margin-left: 0; margin-top: 120px; }
}

.site-container {
  padding-top: var(--sq-banner-h, 0px);
}

.last-updated {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
}

/* Chrome / Edge / Safari */
::selection {
  background: var(--accent-col); /* or any color you like */
  color: #0c0c0c;               /* text color while selected */
}

/* === Free Trial Banner === */
.sq-trial-banner {
  position: fixed;       /* <— fixed keeps it at top of viewport */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--accent-col-darker);
  color: var(--text, #e8eef6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.sq-trial-inner {
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center; /* center the text */
  position: relative; /* allows absolutely positioning the close button */
  text-align: center;
}

.sq-trial-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.sq-trial-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sq-trial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent-col, #00d1b2);
  color: #061018;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.sq-trial-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.sq-trial-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.sq-trial-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
}

/* Small screens */
@media (max-width: 640px) {
  .sq-trial-inner { grid-template-columns: 1fr auto; gap: 8px; }
  .sq-trial-text { font-size: 0.9rem; gap: 8px; }
  .sq-trial-btn { padding: 7px 10px; font-size: 0.9rem; }
}

:root {
  --sq-banner-h: 0px; /* dynamic height set by JS */
}

/* keep banner above nav */
.sq-trial-banner { z-index: 1100; }

/* push the navbar down by the banner height (works for fixed or sticky nav) */
header, .site-header, .navbar, header .navbar {
  top: var(--sq-banner-h, 0px);
}

/* If your header isn't fixed/sticky, this adds spacing for normal flow too */
.sq-trial-banner + header {
  margin-top: var(--sq-banner-h, 0px);
}

/* === PWA Install Banner === */
.sq-pwa-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1101;
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-light, #f0f0f0);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  font-family: var(--font-mono, 'DM Mono', monospace);
}

.sq-pwa-inner {
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sq-pwa-copy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.sq-pwa-copy i {
  color: var(--accent-col, #00d1b2);
  font-size: 1.1rem;
}

.sq-pwa-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sq-pwa-desc {
  font-size: 0.9rem;
  color: var(--zinc-400, #a1a1aa);
}

.sq-pwa-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sq-pwa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
  border: 1px solid rgba(0,209,178,0.45);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(0,209,178,0.14), rgba(0,209,178,0.06));
  color: #00d1b2;
}

.sq-pwa-btn:hover {
  background: linear-gradient(135deg, rgba(0,209,178,0.22), rgba(0,209,178,0.10));
  border-color: rgba(0,209,178,0.8);
  color: #fff;
}

.sq-pwa-dismiss {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
}

.sq-pwa-dismiss:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

@media (max-width: 640px) {
  .sq-pwa-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .sq-pwa-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* PWA standalone: improve input focus/keyboard behavior on mobile */
@media (display-mode: standalone) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea {
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
  }
}
