/* ------------------------------
   Portico – starter styles
   ------------------------------ */

:root {
  --bg: #17191a;
  --brand: #0b67ff; /* Portico blue */
  --brand-trans: #0b69ff41;
  --dark0: #111315;
  --dark1: #17191a;
  --dark2: #262a2e;
  --dark3: #3d3f45;
  --ok: #0ea5e9;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
  --shadow-sm: 0 2px 8px rgba(2, 6, 23, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
}
html {
  height: 100%;
}
html {
  scroll-behavior: smooth;
  background: var(--dark1);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: white;
  /* background: var(--bg); */
  /* background: linear-gradient(to bottom, var(--dark0) 0px, var(--dark0) 300px, var(--bg) 300px, var(--bg) 100%); */
  font-family: "Mundial", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(11, 103, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(11, 103, 255, 0.1), transparent 50%);
}
body.mobile-menu-opened {
  overflow: hidden;
}
h1 {
  font-size: 2rem;
  font-weight: 600;
}
h2 {
  font-size: 1.8rem;
  font-weight: 500;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
p {
  font-size: 1rem;
}

/* Utils */
.container {
  width: 100%;
  max-width: 80vw;
  margin: 0 auto;
}
.hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ------------------------------
   Header / Navbar
   ------------------------------ */
.portico-header {
  color: #fff;
}
.portico-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  width: 80vw;
}
.portico-header .nav.nav-login {
  justify-content: center;
}
.portico-header .nav.nav-login .menu {
  display: none;
}
.portico-header .nav.nav-login .brand {
  margin: 0;
  font-size: 2rem;
}
.brand {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
}
.brand .logo {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}
.menu a,
.menu button {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.2px;
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.menu a:hover,
.menu button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
#login-button {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#login-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
#logout {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#logout:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  padding: 0.25rem;
  position: relative;
}
.mobile-menu-line {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
  transform-origin: center;
  transform: translateX(-50%);
}

.mobile-menu-line:nth-of-type(1) {
  top: calc(50% - 6px);
}

.mobile-menu-line:nth-of-type(2) {
  top: 50%;
}

.mobile-menu-line:nth-of-type(3) {
  top: calc(50% + 6px);
}
.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .portico-header .nav {
    padding: 1.25rem 0;
    position: relative;
  }

  .portico-header {
    position: relative;
  }

  .portico-header .brand {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 230;
  }

  .portico-header.mobile-menu-open .brand {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 220;
  }

  .portico-header .nav.nav-login .mobile-menu-toggle {
    display: none;
  }

  .portico-header .menu {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.5rem;
    padding: 7rem 1.5rem 2.5rem;
    text-align: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    z-index: 210;
    color: #fff;
    transition: backdrop-filter 0.35s ease, opacity 0.35s ease;
  }

  .portico-header .menu::after {
    content: "";
    position: absolute;
    inset: 65% -20% 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
    opacity: 0.9;
    filter: blur(4px);
    pointer-events: none;
  }

  .portico-header.mobile-menu-open .menu {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(32px);
  }
  body.mobile-menu-opened .portico-header .menu #logout {
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    margin-top: auto;
    align-self: center;
    width: min(260px, 70%);
    padding: 0.9rem 1.75rem;
    border-radius: 40px;
  }

  .portico-header.mobile-menu-open .mobile-menu-line:nth-of-type(1) {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .portico-header.mobile-menu-open .mobile-menu-line:nth-of-type(2) {
    opacity: 0;
  }

  .portico-header.mobile-menu-open .mobile-menu-line:nth-of-type(3) {
    top: 50%;
    transform: translateX(-50%) rotate(-45deg);
  }

  body.mobile-menu-opened .portico-header .menu a,
  body.mobile-menu-opened .portico-header .menu button {
    width: 100%;
    justify-content: center;
    border-radius: 24px;
    padding: 0.85rem 1rem;
    font-size: 1.1rem;
  }

  body.mobile-menu-opened .portico-header .dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  body.mobile-menu-opened .portico-header .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    margin-top: 0.25rem;
    background: transparent;
    border: 0;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease, background 0.25s ease;
  }

  body.mobile-menu-opened .portico-header .dropdown > button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    justify-content: center;
    text-transform: none;
    letter-spacing: 0.6px;
    padding: 1rem 1.25rem;
    position: relative;
  }

  body.mobile-menu-opened .portico-header .dropdown > button::after {
    margin-left: auto;
    border-left-width: 6px;
    border-right-width: 6px;
    border-top-width: 7px;
    transform: rotate(0deg);
    transition: transform 0.25s ease;
  }

  body.mobile-menu-opened .portico-header .dropdown-open > button::after {
    transform: rotate(180deg);
  }

  body.mobile-menu-opened .portico-header .dropdown-menu a {
    border-radius: 16px;
    padding: 0.65rem 0.8rem;
  }

  body.mobile-menu-opened .portico-header .dropdown-open .dropdown-menu {
    max-height: 1000px;
    padding: 0.75rem 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
  }
}

/* Dropdown (hover – simple) */
.dropdown {
  position: relative;
  display: inline-flex;
}
.dropdown > button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dropdown > button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid currentColor;
  transition: transform 120ms ease;
  margin-left: 0.35rem;
  position: relative;
  transform-origin: center;
}
.dropdown:hover > button::after,
.dropdown:focus-within > button::after {
  transform: translateY(-0.1rem) rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  background: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(10px); /* Gaussian blur */
  -webkit-backdrop-filter: blur(10px); /* for Safari */
  color: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.6rem);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
}
.dropdown-menu a:hover {
  background: var(--dark3);
  color: #fff;
}
.dropdown-menu .menu-platform {
  font-weight: 600;
  color: inherit;
}
.dropdown-menu .menu-meta {
  font-size: 0.8rem;
  color: #c8d3ff;
}

/* ------------------------------
   Main + Footer
   ------------------------------ */
.portico-main {
  width: 80vw;
  margin: 0 auto;
}
.portico-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  padding: 1rem 0;
}
.logged-in .portico-footer {
  margin-top: 3rem;
}

@media (max-width: 740px) {
  .logged-in .portico-footer {
    margin-top: 1rem;
  }
  body.page-template-page-home .portico-footer {
    border-top: none;
  }
}
.portico-footer .container {
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}
.portico-footer .footer-developed {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.portico-footer .footer-developed a {
  color: inherit;
  text-decoration: underline;
}
.portico-footer .footer-developed a:hover {
  color: #fff;
}

/* ------------------------------
   Hero / Home (rate card)
   ------------------------------ */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.page-template-page-home {
  min-height: 100vh;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 40px);
  text-align: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rate-card .sell strong,
.rate-card .buy strong {
  font-size: 1.35rem;
}
.rate-card .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.homepage-hero {
  margin: auto 0;
}
.homepage-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.hero-copy h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.12;
  max-width: 560px;
}
.hero-rate-card {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}
body.page-template-portico-home .homepage-hero {
  padding: 4.5rem 0 3.5rem;
}
body.page-template-portico-home .homepage-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 2.5rem;
}
body.page-template-portico-home .hero-copy {
  align-items: center;
  text-align: center;
  max-width: clamp(320px, 60vw, 65vw);
}
body.page-template-portico-home .hero-copy h1,
body.page-template-portico-home .hero-copy p {
  max-width: none;
}
.home-rate-card {
  width: 100%;
  max-width: 65vw;
  margin: 0 auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.home-rate-card .cotizacion-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.home-rate-card-body {
  display: grid;
  gap: 1rem;
  grid-template-columns: 6fr 1fr;
  align-items: start;
}
.home-rate-chart {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.home-rate-chart .home-prices {
  display: flex;
  justify-content: space-between;
}
.home-rate-chart .home-prices .right {
  text-align: right;
}
.home-rate-chart .chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-rate-chart .chart-range-selector {
  justify-content: flex-start;
  margin: 0;
}
.home-rate-chart .chart-canvas {
  height: 200px;
  margin-top: 0.5rem;
}
.home-rate-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  text-align: right;
  margin: auto 0;
}
.last-updated {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.35rem;
}

/* ------------------------------
   Cards / Grids / KPI
   ------------------------------ */
.intro {
  margin-bottom: 2rem;
}
.intro .platform-logo {
  height: 2rem;
}

.platform-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.platform-hero .intro {
  margin-bottom: 0;
}
.platform-hero__selector {
  margin-left: auto;
  flex-shrink: 0;
}
.admin-user-perspective {
  margin: 0;
}
.admin-user-perspective__selector {
  min-width: 12rem;
}
.platform-hero__selector .admin-user-perspective__selector {
  width: 100%;
}
.platform-hero__selector .balance-selector {
  width: 100%;
}
.platform-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}
.platform-hero__actions .btn {
  white-space: nowrap;
}
@media (max-width: 740px) {
  .platform-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .platform-hero__selector {
    margin-left: 0;
    width: 100%;
  }
  .admin-user-perspective__selector {
    min-width: auto;
  }
  .platform-hero__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .platform-hero__actions .btn {
    width: 100%;
  }
}

#balance-card {
  background: var(--brand-trans);
  z-index: 10;
}

.home-two-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.home-column-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  width: 100%;
  gap: 1rem;
}
.platform-top-cards {
  grid-template-columns: 1fr 2fr;
}
.platform-top-cards #balance-graph-card {
  height: 15rem;
  display: flex;
  flex-direction: column;
}
.transactions-card {
  margin-top: 1rem;
  position: relative;
}
.transactions-card .loading-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 2;
}
.transactions-card .loading-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: portico-spin 0.8s linear infinite;
}
.transactions-card.is-loading .loading-indicator {
  opacity: 1;
  transform: scale(1);
}
.card {
  display: block;
  background: rgba(18, 18, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, box-shadow;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
.card.slow-anim:hover {
  transform: scale(1.005);
  box-shadow: var(--shadow);
}
.card.no-anim,
.card.no-anim:hover {
  transition: none !important;
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
}
.card-subtitle {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.card-title {
  font-weight: 600;
  font-size: 1.2rem;
}
.card h2 {
  font-size: 2rem;
}
.top-card-seven-days {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-card-seven-days .balance-graph-change {
  margin-top: 0.3rem;
}
.balance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.balance-card-header.no-space {
  margin-bottom: 0;
}
.balance-selector-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.balance-change-amount.is-positive {
  color: #4ade80;
}
.balance-change-amount.is-negative {
  color: #f87171;
}
.balance-change-amount.is-neutral {
  color: rgba(255, 255, 255, 0.85);
}
.breakdown-table {
  display: none;
}
.breakdown-table.is-active {
  display: block;
}
.balance-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  min-height: 2.4rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.balance-selector:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
.balance-selector::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(-50%);
  transform-origin: 50% 50%;
  pointer-events: none;
  transition: transform 0.2s ease;
}
.balance-selector--compact::after {
  display: none;
}
.balance-selector.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}
.balance-selector select {
  display: block;
  width: 100%;
  padding: 0.35rem 2.25rem 0.35rem 0.9rem;
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  appearance: none;
  cursor: pointer;
}
.balance-selector select:focus {
  outline: none;
}
.balance-selector select.balance-selector__native {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.balance-selector__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.35rem 2.25rem 0.35rem 0.9rem;
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}
.balance-selector__trigger:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.8);
  outline-offset: 2px;
}
.balance-selector__trigger:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.balance-selector.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.balance-selector.is-disabled::after {
  color: rgba(255, 255, 255, 0.45);
}
.balance-selector.is-disabled .balance-selector__trigger {
  cursor: not-allowed;
}
.balance-selector__menu {
  position: absolute;
  left: 50%;
  right: auto;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.35rem 0.4rem;
  list-style: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px) scale(0.95);
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.24s;
  pointer-events: none;
  max-height: 16rem;
  overflow-y: auto;
  z-index: 20;
  min-width: 6rem;
  width: max-content;
}
.balance-selector__menu::before {
  content: "";
  position: absolute;
  left: -1rem;
  right: -1rem;
  top: -1.1rem;
  height: 1.1rem;
}
.balance-selector.is-open .balance-selector__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
  pointer-events: auto;
}
.balance-selector__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.9);
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.balance-selector__option.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
  color: #fff;
}
.balance-selector__option.is-selected {
  font-weight: 600;
  color: #ffffff;
}
.balance-selector__option:not(.is-disabled):hover {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.balance-selector__option.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.balance-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.balance-total-usd {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.balance-graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.balance-graph-change {
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.85rem;
}
.balance-graph-change.is-positive {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
}
.balance-graph-change.is-negative {
  color: #f87171;
  background: rgba(248, 113, 113, 0.14);
}
.balance-graph-change.is-neutral {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}
.balance-graph {
  flex: 1;
  min-height: 8.5rem;
  max-height: 9.5rem;
  width: 100%;
}
.balance-graph.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  position: relative;
}
.balance-graph-empty-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}
.subtitle {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
}
.card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.card th,
.card td {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}

.card th {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75rem;
  color: #9ca3af;
  background-color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.05em;
}

.card tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease;
}
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
}
.transactions-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.transactions-card-header .card-title {
  margin: 0;
}
.transactions-card-header .table-search {
  margin-left: auto;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-pill {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-pill.is-active,
.filter-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
.table-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
.table-search {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.2rem 0.5rem 0.2rem 0.9rem;
  transition: flex-basis 0.25s ease, max-width 0.25s ease;
  flex: 0 1 12rem;
  max-width: min(12rem, 100%);
  min-width: 9rem;
  margin-left: auto;
  overflow: hidden;
}
.table-search input {
  background: transparent;
  border: none;
  color: white;
  padding: 0.4rem 2rem 0.4rem 0;
  width: 100%;
  font-size: 0.9rem;
}
.table-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.table-search input:focus {
  outline: none;
}
.table-search svg {
  position: absolute;
  right: 0.8rem;
  width: 1rem;
  height: 1rem;
  fill: rgba(255, 255, 255, 0.7);
}
.table-search:focus-within {
  flex-basis: min(22rem, 100%);
  max-width: 100%;
}
.table-scroll {
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}
.table-scroll::-webkit-scrollbar {
  height: 8px;
}
.table-scroll::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-thumb {
  background: transparent;
}
.table-scroll.is-scrollbar-visible {
  -ms-overflow-style: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.6) rgba(15, 23, 42, 0.35);
}
.table-scroll.is-scrollbar-visible::-webkit-scrollbar-track {
  background: rgba(206, 206, 206, 0.682);
}
.table-scroll.is-scrollbar-visible::-webkit-scrollbar-thumb {
  background: rgba(209, 209, 209, 0.6);
  border-radius: 999px;
}
.table-scroll.is-scrollbar-visible::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 213, 225, 0.75);
}
.table-scroll table {
  min-width: 900px;
  position: relative;
}
.table-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #9ca3af;
  font-size: 0.85rem;
}
.table-footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  order: 1;
}
.table-stats {
  display: flex;
  gap: 0.35rem;
}
.items-per-page-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.35rem 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.items-per-page-selector:hover,
.items-per-page-selector:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
.items-per-page-selector__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  white-space: nowrap;
  color: inherit;
}
.items-per-page-selector .balance-selector {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  color: inherit;
  min-height: 0;
  padding: 0;
}
.items-per-page-selector:hover .balance-selector,
.items-per-page-selector:focus-within .balance-selector {
  color: inherit;
}
.items-per-page-selector .balance-selector--compact {
  min-height: 0;
  border-radius: 0;
}
.items-per-page-selector .balance-selector--compact::after {
  display: none;
}
.items-per-page-selector .balance-selector--compact .balance-selector__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 1.8rem 0.15rem 0.7rem;
  font-size: 0.82rem;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 600;
  color: inherit;
}
.items-per-page-selector .balance-selector--compact .balance-selector__trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(-50%);
  pointer-events: none;
}
.items-per-page-selector .balance-selector--compact .balance-selector__menu {
  min-width: 100%;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  order: 2;
}
.pagination-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  min-width: 2.2rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  font-weight: 600;
  font-size: 0.85rem;
}
.pagination-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}
.pagination-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  pointer-events: none;
}
.pagination-btn:not([disabled]):hover,
.pagination-btn:not([disabled]):focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}
.pagination-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
}
.pagination-ellipsis {
  color: rgba(255, 255, 255, 0.55);
  padding: 0 0.25rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 768px) {
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .table-actions {
    width: 100%;
    justify-content: space-between;
  }
  .table-search {
    flex: 1 1 100%;
    max-width: none;
  }
}

.card tr:last-child {
  border-bottom: none;
}

.card tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.card td {
  color: #f9fafb;
  font-weight: 500;
}

.card .line td {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Optional subtle glow on hover */
.card tr:hover td {
  color: #fff;
}

@keyframes portico-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.transactions-card table {
  border-collapse: separate;
  border-spacing: 0;
  border-bottom: none;
}
.transactions-card table thead th {
  border-bottom: none;
  background-color: rgba(255, 255, 255, 0.04);
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 14px;
}
.transactions-card table tbody td {
  padding: 10px 14px;
  color: #f9fafb;
  font-weight: 500;
}
.transactions-card table tbody tr {
  background-color: transparent;
}
.transactions-card table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.transactions-card .tx-details-text {
  white-space: nowrap;
}

.tooltip-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip-bubble[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #fff;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 12;
}

.tooltip-bubble[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.95);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 11;
}

.tooltip-bubble[data-tooltip]:hover::after,
.tooltip-bubble[data-tooltip]:hover::before,
.tooltip-bubble[data-tooltip]:focus-visible::after,
.tooltip-bubble[data-tooltip]:focus-visible::before {
  opacity: 1;
}

.tooltip-bubble[data-tooltip]:hover::after,
.tooltip-bubble[data-tooltip]:focus-visible::after {
  transform: translate(-50%, 0);
}

.tx-details-text.tooltip-bubble {
  cursor: help;
}

.transactions-card .paydo-id-chip {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.transactions-card .paydo-id-chip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.transactions-card .paydo-id-chip.is-copied {
  text-decoration: none;
  color: var(--paydo-success, #16a34a);
}

.transactions-card table th.is-column-hidden,
.transactions-card table td.is-column-hidden,
.transactions-card table th.is-hidden,
.transactions-card table td.is-hidden {
  display: none;
}

/* Optional: rounded corners for first and last row */
.card table tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

.card table tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

.card table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.card table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.cotizacion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cotizacion-header .card-title {
  margin: 0;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 222, 128, 0.12);
  /* match positive price change pill */
  color: #4ade80;
  /* same green as positive percentage */
  font-size: 0.75rem;
  font-weight: 400;
  padding: 3px 10px;
  border-radius: 9999px;
  /* pill shape */
  cursor: default;
  user-select: none;
}
.live.tooltip-bubble {
  cursor: default;
}

@media (max-width: 740px) {
  .live.tooltip-bubble[data-tooltip]::after,
  .live.tooltip-bubble[data-tooltip]::before {
    display: none;
  }
}

.live-indicator {
  display: inline-block;
  line-height: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.65);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.current-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.current-price h2 {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
}
.current-price .price-change {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  cursor: help;
}
.current-price .price-change::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #fff;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}
.current-price .price-change::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.95);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9;
}
.current-price .price-change:hover::after,
.current-price .price-change:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.current-price .price-change:hover::before,
.current-price .price-change:focus-visible::before {
  opacity: 1;
}
.price-change[data-change-direction="down"] {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}
.price-change[data-change-direction="up"] {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}
.price-change[data-change-direction="neutral"] {
  color: rgba(255, 255, 255, 0.7);
}

.price-change-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
}
.price-change-note {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 1);
  text-align: center;
}

.chart-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-range-selector {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 1rem;
}

.chart-range-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.4rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.chart-range-button:hover {
  color: #fff;
}

.chart-range-button.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.chart-canvas {
  margin-top: 1rem;
  width: 100%;
  height: 240px;
  position: relative;
}

.chart-canvas::after {
  content: attr(data-state-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.chart-canvas[data-state="loading"]::after,
.chart-canvas[data-state="error"]::after,
.chart-canvas[data-state="empty"]::after {
  opacity: 1;
}

.usdt-bob-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 1rem;
}

.usdt-bob-stats .left {
  text-align: left;
}

.usdt-bob-stats .right {
  text-align: right;
}

.stat-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.stat-value {
  font-weight: 600;
  font-size: 1rem;
}

.stat-value.spread-value {
  --spread-indicator-color: rgba(255, 255, 255, 0.35);
  --spread-indicator-glow: rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-item.right .stat-value.spread-value {
  justify-content: flex-end;
}

.stat-value.spread-value::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--spread-indicator-color);
  box-shadow: 0 0 8px var(--spread-indicator-glow);
  flex-shrink: 0;
}

.stat-value.spread-value.is-spread-low {
  --spread-indicator-color: #22c55e;
  --spread-indicator-glow: rgba(34, 197, 94, 0.6);
}

.stat-value.spread-value.is-spread-medium {
  --spread-indicator-color: #facc15;
  --spread-indicator-glow: rgba(250, 204, 21, 0.65);
}

.stat-value.spread-value.is-spread-high {
  --spread-indicator-color: #ef4444;
  --spread-indicator-glow: rgba(239, 68, 68, 0.5);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 0;
  vertical-align: middle;
  flex-shrink: 0;
  --status-indicator-glow: rgba(22, 163, 74, 0.6);
}

.status-indicator[data-tooltip] {
  position: relative;
  cursor: help;
}

.status-indicator__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 0;
  vertical-align: middle;
  flex-shrink: 0;
}

.status-indicator.status-indicator--success {
  --status-indicator-glow: rgba(22, 163, 74, 0.6);
}

.status-indicator.status-indicator--pending {
  --status-indicator-glow: rgba(245, 158, 11, 0.6);
}

.status-indicator__icon .status-indicator__svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px var(--status-indicator-glow));
}

.status-indicator[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  font-size: 0.7rem;
  line-height: 1.2;
  color: #fff;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 12;
}

.status-indicator[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.95);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 11;
}

.status-indicator[data-tooltip]:hover::after,
.status-indicator[data-tooltip]:hover::before,
.status-indicator[data-tooltip]:focus-visible::after,
.status-indicator[data-tooltip]:focus-visible::before {
  opacity: 1;
}

.status-indicator[data-tooltip]:hover::after,
.status-indicator[data-tooltip]:focus-visible::after {
  transform: translate(-50%, 0);
}

.fee-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
  position: relative;
}

.fee-cell__amount {
  line-height: 1.2;
}

.fee-cell[data-tooltip] {
  cursor: help;
}

.fee-cell[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #fff;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 12;
}

.fee-cell[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.95);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 11;
}

.fee-cell[data-tooltip]:hover::after,
.fee-cell[data-tooltip]:hover::before,
.fee-cell[data-tooltip]:focus-visible::after,
.fee-cell[data-tooltip]:focus-visible::before {
  opacity: 1;
}

.fee-cell[data-tooltip]:hover::after,
.fee-cell[data-tooltip]:focus-visible::after {
  transform: translate(-50%, 0);
}

/* Pills / Badges */
.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}
.pill.ok {
  background: #e0f2fe;
  color: #0369a1;
}
.pill.warn {
  background: #fef3c7;
  color: #92400e;
}
.pill.muted {
  background: #f1f5f9;
  color: #334155;
}

/* Back link */
.back {
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--brand);
}
.back:hover {
  text-decoration: underline;
}

/* ------------------------------
   Auth (Login)
   ------------------------------ */
body.page-template-page-login {
  min-height: 100vh;
}
.auth {
  position: relative;
  display: grid;
  place-items: center;
  margin: auto;
  /* overflow: hidden; */
  isolation: isolate;
  min-width: 420px;
}
/* .auth::before,
.auth::after {
  content: "";
  position: absolute;
  inset: 20%;
  z-index: -1;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.35;
}
.auth::before {
  background: rgba(11, 103, 255, 0.35);
  top: -15%;
  left: -25%;
  right: auto;
  bottom: auto;
}
.auth::after {
  background: rgba(15, 118, 110, 0.25);
  bottom: -30%;
  right: -20%;
  left: auto;
  top: auto;
} */
/* .auth .container {
  width: 100%;
  margin: 0 auto;
} */
.auth-card h1 {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: 2.1rem;
}
.auth-card form > p {
  margin: 0 0 1.2rem;
}
.auth-card label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #f3f4f6;
}
.auth-card input[type="text"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.6);
  color: #f8fafc;
  max-width: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.auth-card input[type="text"]::placeholder,
.auth-card input[type="password"]::placeholder {
  color: rgba(148, 163, 184, 0.9);
}
.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 103, 255, 0.35);
  background: rgba(15, 16, 20, 1);
  outline: none;
}
.auth-card .password-field-wrapper {
  position: relative;
}
.auth-card .password-field-wrapper input[type="password"] {
  padding-right: 4.5rem;
}
.auth-card .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.auth-card .password-toggle:hover,
.auth-card .password-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}
.auth-card .login-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -0.4rem 0 1rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}
.auth-card .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-weight: 400;
}
.auth-card .login-remember input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 16, 20, 0.9);
  position: relative;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.auth-card .login-remember input[type="checkbox"]:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.auth-card .login-remember input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
}
.auth-card .login-remember input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 2px rgba(11, 103, 255, 0.35);
  outline: none;
}
.auth-card .login-submit {
  text-align: center;
  margin: 1.5rem 0 0;
}
.auth-card .demo-login-button {
  background: transparent;
  color: #9aa0a6;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.75rem 2rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  letter-spacing: 0.2px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  display: block;
  text-align: center;
  width: 100%;
  border-radius: 30px;
}
.auth-card .auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
  color: #8b9299;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: lowercase;
}
.auth-card .auth-divider::before,
.auth-card .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
}
.auth-card .auth-divider span {
  line-height: 1;
}
.auth-card .demo-login-button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}
.auth-card .demo-login-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(143, 160, 183, 0.35);
}
.auth-card input[type="submit"] {
  background: #0b69ff9e;
  color: #fff;
  border: 0;
  padding: 0.9rem 3rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.4px;
  /* box-shadow: 0 15px 35px rgba(12, 35, 66, 0.65); */
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.auth-card input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 45px rgba(12, 35, 66, 0.75);
  filter: brightness(1.1);
  background: var(--brand);
}
.auth-card input[type="submit"]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 4px;
}
.auth-card a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}
.auth-card a:hover {
  text-decoration: underline;
}
.auth-card .message {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e0f2fe;
  font-size: 0.95rem;
}
.auth-card .message.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
.auth-notice {
  margin: 0 0 1.35rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  font-size: 0.95rem;
  line-height: 1.5;
}
.auth-notice.notice-success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.12);
  color: #dcfce7;
}
.auth-notice.notice-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

/* ------------------------------
   Hero / Home (rate card)
   ------------------------------ */
.dashboard-home .intro {
  color: white;
}

.dashboard-home .intro h1 {
  font-weight: 600;
}

/* ------------------------------
   Tables (Transactions)
   ------------------------------ */
.table {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  text-align: left;
  font-size: 0.9rem;
  color: var(--muted);
  position: sticky;
  top: 0;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}
.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.table tbody tr:hover {
  background: #fbfdff;
}

/* ------------------------------
   Forms / Filters (search, per-page)
   ------------------------------ */
.input,
.select {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.btn {
  appearance: none;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover {
  background: var(--brand-600);
}
.platform-hero__actions .btn {
  border-radius: 30px;
  padding: 0.6rem 1rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-size: 1rem;
}
.platform-hero__actions .btn:hover,
.platform-hero__actions .btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}
.report-modal__actions .btn {
  border-radius: 30px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.report-modal__cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.report-modal__download {
  background: var(--brand);
  border: 1px solid var(--brand);
  transition: filter 0.2s ease;
}
.report-modal__cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}
.report-modal__download:hover {
  filter: brightness(1.05);
}
.btn.ghost {
  background: #eef4ff;
  color: var(--brand);
}
.btn.ghost:hover {
  background: #e1ecff;
}

.report-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 220;
}
.report-modal.is-visible {
  display: flex;
}
.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 20, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.report-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  background: #0000001f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  padding: 1.6rem;
  color: #f8fafc;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.report-modal__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 3rem;
}
.report-modal__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.report-modal__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
}
.report-modal__subtitle {
  margin: 0.35rem 0 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.9rem;
}
.report-modal__close {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  position: absolute;
  right: 0rem;
  top: 0rem;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.report-modal__close:hover,
.report-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}
.report-modal__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.report-modal__ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.report-range-btn {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border 0.15s ease, transform 0.15s ease;
}
.report-range-btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.report-range-btn:hover,
.report-range-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}
.report-modal__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.report-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #cbd5e1;
  font-weight: 600;
  position: relative;
}
.report-field__input {
  position: relative;
}
.report-field__input input {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.report-field__input input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}
.report-field__clear {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.report-field__clear.is-visible {
  display: inline-flex;
}
.report-modal__error {
  margin: 0;
  color: #fca5a5;
  font-weight: 700;
  display: block;
}
.report-modal__error:empty {
  display: none;
}
.report-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.report-modal__actions .btn {
  min-width: 8.5rem;
}
.report-modal.is-loading .report-modal__dialog {
  opacity: 0.92;
  pointer-events: none;
}
body.report-modal-open {
  overflow: hidden;
}
.report-modal__dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 20px;
  opacity: 0.9;
}

body.logged-in main {
  margin: 1rem auto 2rem;
}

@media (max-width: 740px) {
  .report-modal__dialog {
    width: min(96vw, 520px);
    padding: 1.25rem;
  }
  .report-modal__header {
    align-items: flex-start;
  }
  .report-modal__actions {
    justify-content: stretch;
  }
  .report-modal__actions .btn {
    width: 100%;
  }
}

.mobile-only {
  display: none;
}
.desktop-only {
  display: inline-block;
}

/* ------------------------------
   Responsive
   ------------------------------ */

@media (max-width: 740px) {
  .mobile-only {
    display: inline-block;
  }
  .desktop-only {
    display: none;
  }
  /* Header / Navbar */
  .brand {
    font-size: 1.3rem;
    font-family: "mundial", sans-serif;
    font-weight: 600;
  }
  .portico-main {
    width: 90vw;
    padding: 0;
  }
  .container {
    max-width: 90vw;
  }
  .container.nav {
    padding: 1.5rem 0;
    width: 90vw;
  }

  /* Cards / Grids / KPI */
  .cards {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .homepage-hero-grid {
    grid-template-columns: 1fr;
  }
  .home-rate-card-body {
    grid-template-columns: 1fr;
  }

  /* Auth (Login) */
  .auth {
    width: 90vw;
    min-width: auto;
  }
  .auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
  }
  .auth-card label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  body.page-template-page-login .auth-card input[type="text"],
  body.page-template-page-login .auth-card input[type="password"] {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  /* Hero / Home (rate card) */
  .homepage-hero {
    width: 100%;
  }
  .homepage-flex {
    gap: 1.5rem;
  }
  .hero-copy h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .current-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .price-change-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .price-change.mobile-only {
    text-align: center;
    margin: 0.25rem 0 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
  }
  .home-rate-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .home-rate-card {
    padding: 1.25rem;
    max-width: 90vw;
  }
  .stat-item--right {
    text-align: right;
  }
  .stat-item--left {
    text-align: left;
  }

  /* Dashboard */
  .dashboard-home .intro h1 {
    font-size: 1.75rem;
  }
  .home-two-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-home .card .balance-card-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .dashboard-home .card .balance-card-header p {
    text-align: left;
    width: 100%;
  }
  .dashboard-home .current-price {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  /* General */
  body.logged-in main {
    margin: 1rem auto 2rem;
  }
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .card td {
    font-size: 0.8rem;
  }
  .table-footer {
    flex-direction: column;
  }
  .table-footer-left {
    order: 2;
    flex-direction: column;
    gap: 0.5rem;
  }
  .pagination {
    order: 1;
  }
}

/* Air Datepicker override */
.air-datepicker-global-container {
  z-index: 1000 !important;
}

/* ------------------------------
   Air Datepicker Customization
   ------------------------------ */
.air-datepicker {
  background: rgba(9, 11, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.7);
  font-family: "Mundial", sans-serif;
  color: #f8fafc;
  width: 270px; /* Slightly wider for better spacing */
  --adp-day-name-color: rgba(248, 250, 252, 0.6);
  --adp-day-name-color-hover: #fff;
  --adp-cell-background-color-selected: var(--brand);
  --adp-cell-background-color-selected-hover: var(--brand);
  --adp-cell-background-color-in-range: rgba(11, 103, 255, 0.25);
  --adp-cell-background-color-in-range-hover: rgba(11, 103, 255, 0.35);
  --adp-cell-border-color-in-range: transparent;
  --adp-btn-color: var(--brand);
  --adp-btn-color-hover: #fff;
}

.air-datepicker-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.air-datepicker-nav--title,
.air-datepicker-nav--action {
  color: #f8fafc;
  border-radius: 20px;
}

.air-datepicker-nav--title {
  padding: 0 0.1rem;
}

.air-datepicker-nav--title:hover,
.air-datepicker-nav--action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.air-datepicker-body--day-name {
  color: var(--adp-day-name-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.air-datepicker-cell {
  border-radius: 10px;
  color: rgba(248, 250, 252, 0.9);
  font-weight: 500;
}

.air-datepicker-cell.-current- {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.air-datepicker-cell.-selected- {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 103, 255, 0.4);
}

.air-datepicker-cell.-in-range- {
  background: rgba(11, 103, 255, 0.2);
  color: #fff;
}

.air-datepicker-cell.-range-from- {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  background: var(--brand);
}

.air-datepicker-cell.-range-to- {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background: var(--brand);
}

.air-datepicker-cell.-day-.-other-month-,
.air-datepicker-cell.-year-.-other-decade- {
  color: rgba(248, 250, 252, 0.3);
}

.air-datepicker-cell:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  color: #fff;
}

.air-datepicker--pointer {
  display: none; /* Hide the arrow pointer */
}

.air-datepicker-buttons {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
}

.air-datepicker-button {
  color: rgba(248, 250, 252, 0.8);
  font-weight: 500;
  border-radius: 8px;
}

.air-datepicker-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.air-datepicker--buttons,
.air-datepicker--time {
  border-top: none;
}

.air-datepicker.-is-mobile- {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 400px) {
  .home-column-left,
  .home-column-right {
    width: 90vw;
  }
  .home-column-left .balance-selector-group {
    justify-content: center;
  }
}
