:root {
  --bg: #02050b;
  --bg-2: #06111e;
  --panel: rgba(5, 13, 26, 0.86);
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f8fbff;
  --muted: #aeb8c8;
  --muted-2: #7f8da3;
  --accent: #26d9ff;
  --accent-2: #8ff1ff;
  --danger: #ff4d5f;
  --success: #20e4a8;
  --silver: #e8edf4;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.68);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 12%, rgba(38, 217, 255, 0.24), transparent 27%),
    radial-gradient(circle at 92% 84%, rgba(143, 241, 255, 0.12), transparent 26%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(145deg, var(--bg), var(--bg-2) 45%, #010309);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255,255,255,0.04) 39%, transparent 40% 100%),
    linear-gradient(25deg, rgba(38,217,255,.05), transparent 24% 76%, rgba(255,255,255,.035));
  opacity: 0.85;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(13, 30, 52, 0.84), rgba(4, 10, 22, 0.88)),
    rgba(0,0,0,.3);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 56px);
  overflow: auto;
}

.watch-card::-webkit-scrollbar {
  width: 7px;
}

.watch-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}

.watch-header {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.bird-logo {
  width: 148px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(38, 217, 255, 0.22));
  margin-bottom: -4px;
}

.header-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.mini-label {
  display: block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.watch-header h1 {
  margin: 0;
  max-width: 390px;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 850;
  color: var(--silver);
  letter-spacing: .4px;
  text-transform: uppercase;
}

.update-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.update-box span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.update-box strong {
  direction: ltr;
  font-size: 13px;
  color: var(--text);
  font-weight: 750;
  white-space: nowrap;
}

.status {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 2px 14px;
  text-align: center;
}

.status.error {
  color: var(--danger);
}

.rates-list {
  display: grid;
  gap: 18px;
}

.market-section {
  display: grid;
  gap: 10px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 4px 0;
}

.section-heading h2 {
  margin: 0;
  color: var(--silver);
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.section-heading span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.section-heading b {
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  background: rgba(38, 217, 255, 0.10);
  border: 1px solid rgba(38, 217, 255, 0.22);
  font-size: 12px;
}

.section-list {
  display: grid;
  gap: 12px;
}

.rate-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 86px 142px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.20);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rate-row {
  position: relative;
  overflow: hidden;
}

.rate-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.rate-row.up::before {
  background: linear-gradient(180deg, var(--success), rgba(32, 228, 168, 0.22));
  box-shadow: 0 0 22px rgba(32, 228, 168, 0.25);
}

.rate-row.down::before {
  background: linear-gradient(180deg, var(--danger), rgba(255, 77, 95, 0.25));
  box-shadow: 0 0 22px rgba(255, 77, 95, 0.28);
}

.rate-row.same::before {
  background: linear-gradient(180deg, var(--accent), rgba(38, 217, 255, 0.18));
}

.rate-row:hover {
  transform: translateY(-2px);
  background: var(--card-strong);
  border-color: rgba(38, 217, 255, 0.30);
}

.icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 35% 20%, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.rate-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 999px;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.rate-info {
  min-width: 0;
  text-align: left;
}

.rate-info strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rate-info span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.rate-change {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 76px;
  justify-content: center;
  font-size: 13px;
  font-weight: 850;
}

.rate-change.up {
  color: var(--success);
}

.rate-change.down {
  color: var(--danger);
}

.rate-change.same {
  color: var(--muted);
}

.rate-price-wrap {
  direction: ltr;
  min-width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rate-price {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 920;
  letter-spacing: -0.7px;
  color: var(--text);
  text-align: center;
}

.rate-unit {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 4px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.stale-dot {
  display: inline-flex;
  margin-top: 5px;
  font-size: 10px;
  color: #ffc857;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.watch-footer {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 18px;
  padding: 8px 4px 0;
  text-align: center;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 460px);
    padding: 14px 0;
    align-items: flex-start;
  }

  .watch-card {
    border-radius: 28px;
    padding: 16px;
    max-height: none;
  }

  .bird-logo {
    width: 132px;
  }

  .watch-header h1 {
    font-size: 20px;
  }

  .update-box {
    padding: 12px 14px;
  }

  .update-box span,
  .update-box strong {
    font-size: 11px;
  }

  .rate-row {
    grid-template-columns: 50px minmax(0, 1fr) 112px;
    grid-template-areas:
      "icon info price"
      "icon change price";
    gap: 8px 10px;
    padding: 11px;
  }

  .icon-wrap {
    grid-area: icon;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .rate-icon {
    width: 42px;
    height: 42px;
  }

  .rate-info {
    grid-area: info;
  }

  .rate-change {
    grid-area: change;
    justify-content: flex-start;
    min-width: 0;
    font-size: 12px;
  }

  .rate-price-wrap {
    grid-area: price;
    min-width: 108px;
  }

  .rate-price {
    font-size: 20px;
  }
}

/* v1.5.0 refinements: nav, section accents, update animation, cached warning, about page */
.top-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: rgba(38, 217, 255, 0.35);
  background: rgba(38, 217, 255, 0.11);
  transform: translateY(-1px);
}

.status.cached-warning {
  color: #ffc857;
}

.rate-row.flash-up {
  animation: flashUp 1.15s ease;
}

.rate-row.flash-down {
  animation: flashDown 1.15s ease;
}

@keyframes flashUp {
  0% { border-color: rgba(32, 228, 168, 0.78); box-shadow: 0 0 0 rgba(32, 228, 168, 0); }
  35% { background: rgba(32, 228, 168, 0.13); box-shadow: 0 0 32px rgba(32, 228, 168, 0.18); }
  100% { border-color: rgba(255, 255, 255, 0.11); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.20); }
}

@keyframes flashDown {
  0% { border-color: rgba(255, 77, 95, 0.78); box-shadow: 0 0 0 rgba(255, 77, 95, 0); }
  35% { background: rgba(255, 77, 95, 0.13); box-shadow: 0 0 32px rgba(255, 77, 95, 0.18); }
  100% { border-color: rgba(255, 255, 255, 0.11); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.20); }
}

.market-section[data-section="currency"] .section-heading b,
.rate-row[data-type="currency"] .icon-wrap {
  color: var(--accent-2);
  border-color: rgba(38, 217, 255, 0.24);
  background: rgba(38, 217, 255, 0.09);
}

.market-section[data-section="gold"] .section-heading b,
.rate-row[data-type="gold"] .icon-wrap {
  color: #ffe28a;
  border-color: rgba(255, 210, 82, 0.30);
  background: rgba(255, 210, 82, 0.10);
}

.market-section[data-section="commodities"] .section-heading b,
.rate-row[data-type="commodity"] .icon-wrap {
  color: #ffbd7a;
  border-color: rgba(255, 155, 73, 0.28);
  background: rgba(255, 155, 73, 0.10);
}

.market-section[data-section="crypto"] .section-heading b,
.rate-row[data-type="crypto"] .icon-wrap {
  color: #c8b4ff;
  border-color: rgba(145, 111, 255, 0.30);
  background: rgba(145, 111, 255, 0.10);
}

.rate-row[data-type="currency"]:hover {
  border-color: rgba(38, 217, 255, 0.34);
}

.rate-row[data-type="gold"]:hover {
  border-color: rgba(255, 210, 82, 0.36);
}

.rate-row[data-type="commodity"]:hover {
  border-color: rgba(255, 155, 73, 0.34);
}

.rate-row[data-type="crypto"]:hover {
  border-color: rgba(145, 111, 255, 0.36);
}

.stale-dot {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 200, 87, 0.10);
  border: 1px solid rgba(255, 200, 87, 0.24);
}

.about-shell {
  align-items: center;
}

.about-card {
  max-height: none;
}

.about-header {
  margin-bottom: 18px;
}

.about-content {
  display: grid;
  gap: 14px;
}

.about-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.hero-about {
  background:
    linear-gradient(135deg, rgba(38, 217, 255, 0.12), rgba(145, 111, 255, 0.08)),
    rgba(255, 255, 255, 0.065);
}

.about-kicker {
  display: block;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-panel h2,
.about-panel h3 {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.25;
}

.about-panel h2 {
  font-size: 22px;
}

.about-panel h3 {
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.about-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.disclaimer-panel {
  border-color: rgba(255, 200, 87, 0.22);
  background: rgba(255, 200, 87, 0.06);
}

.social-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.social-link {
  text-decoration: none;
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.065);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
}

.social-link span {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.social-link strong {
  color: var(--text);
  font-size: 14px;
}

.social-link.telegram:hover {
  border-color: rgba(38, 217, 255, 0.42);
}

.social-link.instagram:hover {
  border-color: rgba(255, 95, 155, 0.42);
}

.social-link.support:hover {
  border-color: rgba(255, 200, 87, 0.45);
}

@media (max-width: 560px) {
  .top-nav {
    margin-bottom: 12px;
  }

  .nav-link {
    font-size: 10px;
    padding: 8px 11px;
  }

  .about-grid,
  .social-panel {
    grid-template-columns: 1fr;
  }

  .about-panel {
    padding: 16px;
  }

  .about-panel h2 {
    font-size: 19px;
  }
}


/* v1.6.0 language switch and Persian/RTL support */
.top-nav {
  align-items: center;
  justify-content: space-between;
}

.nav-links,
.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.language-switch {
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
}

.lang-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--text);
  background: rgba(38, 217, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(38, 217, 255, 0.26);
}

body.is-fa {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

body.is-fa .mini-label,
body.is-fa .watch-header h1,
body.is-fa .update-box span,
body.is-fa .section-heading h2,
body.is-fa .section-heading span,
body.is-fa .rate-info span,
body.is-fa .rate-unit,
body.is-fa .watch-footer,
body.is-fa .nav-link,
body.is-fa .about-kicker,
body.is-fa .about-panel h3,
body.is-fa .social-link span,
body.is-fa .stale-dot {
  letter-spacing: 0;
  text-transform: none;
}

body.is-fa .watch-header h1 {
  font-weight: 900;
}

body.is-fa .rate-info {
  text-align: right;
}

body.is-fa .rate-info span,
body.is-fa .rate-price-wrap,
body.is-fa .rate-change,
body.is-fa .update-box strong {
  direction: ltr;
}

body.is-fa .rate-unit,
body.is-fa .stale-dot {
  direction: rtl;
}

body.is-fa .about-panel,
body.is-fa .social-link {
  text-align: right;
}

body.is-fa .about-panel p {
  line-height: 1.95;
}

@media (max-width: 560px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
  }

  .language-switch {
    width: max-content;
  }
}

/* v1.7.0 about page service panels */
.expertise-panel {
  border-color: rgba(38, 217, 255, 0.22);
  background: linear-gradient(135deg, rgba(38, 217, 255, 0.08), rgba(255,255,255,0.055));
}

.subscription-panel {
  border-color: rgba(32, 228, 168, 0.24);
  background: linear-gradient(135deg, rgba(32, 228, 168, 0.08), rgba(255,255,255,0.055));
}

/* v2.1.0 responsive dashboard + admin panel */
.nav-links,
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.language-switch {
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.lang-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 1px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--text);
  background: rgba(38, 217, 255, 0.16);
  transform: translateY(-1px);
}

body.is-fa {
  font-family: Tahoma, Vazirmatn, Segoe UI, Arial, sans-serif;
}

body.is-fa .rate-info,
body.is-fa .section-heading,
body.is-fa .about-panel,
body.is-fa .admin-card {
  text-align: right;
}

body.is-fa .rate-info span,
body.is-fa .section-heading h2,
body.is-fa .section-heading span,
body.is-fa .mini-label,
body.is-fa .watch-footer,
body.is-fa .nav-link {
  letter-spacing: 0;
}

@media (min-width: 920px) {
  .page-shell {
    width: min(1180px, calc(100% - 64px));
    padding: 38px 0;
    align-items: flex-start;
  }

  .watch-card {
    padding: 28px;
    max-height: none;
  }

  .watch-header {
    grid-template-columns: 158px minmax(0, 1fr) minmax(260px, auto);
    justify-items: start;
    align-items: center;
    text-align: left;
    gap: 22px;
    margin-bottom: 22px;
  }

  body.is-fa .watch-header {
    text-align: right;
  }

  .header-copy {
    justify-items: start;
  }

  body.is-fa .header-copy {
    justify-items: end;
  }

  .bird-logo {
    width: 154px;
    margin-bottom: 0;
  }

  .watch-header h1 {
    max-width: 520px;
    font-size: 31px;
  }

  .update-box {
    width: auto;
    min-width: 260px;
  }

  .rates-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .market-section {
    align-self: start;
  }

  .rate-row {
    grid-template-columns: 54px minmax(0, 1fr) 78px 128px;
  }

  .rate-price {
    font-size: 22px;
  }

  .about-shell,
  .admin-shell {
    width: min(1080px, calc(100% - 64px));
  }
}

@media (max-width: 760px) {
  .top-nav {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .language-switch {
    justify-content: center;
  }

  .section-heading {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: calc(100% - 14px);
    padding: 7px 0;
  }

  .watch-card {
    border-radius: 22px;
    padding: 12px;
  }

  .top-nav {
    margin-bottom: 12px;
  }

  .nav-link,
  .lang-btn {
    font-size: 10px;
    padding: 7px 10px;
  }

  .bird-logo {
    width: 112px;
  }

  .mini-label {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .watch-header h1 {
    font-size: 18px;
  }

  .update-box {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .rate-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "icon info"
      "icon change"
      "price price";
  }

  .rate-price-wrap {
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .rate-price {
    font-size: 21px;
  }
}

.admin-body {
  background:
    radial-gradient(circle at 12% 10%, rgba(38, 217, 255, 0.18), transparent 26%),
    radial-gradient(circle at 86% 90%, rgba(145, 111, 255, 0.15), transparent 28%),
    linear-gradient(145deg, var(--bg), var(--bg-2) 45%, #010309);
}

.admin-shell {
  width: min(1120px, calc(100% - 28px));
  align-items: flex-start;
}

.login-shell {
  width: min(480px, calc(100% - 28px));
  align-items: center;
}

.admin-card {
  max-height: none;
}

.admin-nav {
  justify-content: space-between;
}

.danger-link:hover,
.danger-link.active {
  border-color: rgba(255, 77, 95, 0.34);
  background: rgba(255, 77, 95, 0.10);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 20px;
}

.admin-header.compact {
  display: grid;
  justify-items: center;
  text-align: center;
}

.admin-logo {
  width: 118px;
}

.admin-header h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.25;
}

.admin-header p,
.admin-note,
.form-field small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.admin-version {
  direction: ltr;
  color: var(--accent-2);
  border: 1px solid rgba(38, 217, 255, 0.22);
  background: rgba(38, 217, 255, 0.09);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-form,
.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-panel {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.058);
}

.admin-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-panel-heading h2 {
  margin: 0;
  font-size: 17px;
}

.admin-panel-heading span {
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  direction: ltr;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.form-field input,
.order-input {
  width: 100%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus,
.order-input:focus {
  border-color: rgba(38, 217, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(38, 217, 255, 0.08);
}

.readonly-box {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px;
}

.readonly-box strong,
.admin-note code {
  direction: ltr;
  display: inline-block;
  color: var(--accent-2);
}

.admin-alert {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.admin-alert.success {
  color: var(--success);
  background: rgba(32, 228, 168, 0.10);
  border: 1px solid rgba(32, 228, 168, 0.22);
}

.admin-alert.error {
  color: var(--danger);
  background: rgba(255, 77, 95, 0.10);
  border: 1px solid rgba(255, 77, 95, 0.22);
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-table td small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 4px;
  direction: ltr;
}

.group-pill {
  direction: ltr;
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(38, 217, 255, 0.08);
  border: 1px solid rgba(38, 217, 255, 0.18);
  font-size: 11px;
}

.order-input {
  max-width: 92px;
  text-align: center;
  direction: ltr;
}

.toggle-check {
  display: inline-flex;
  cursor: pointer;
}

.toggle-check input {
  display: none;
}

.toggle-check span {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: background .2s ease, border-color .2s ease;
}

.toggle-check span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--text);
  transition: transform .2s ease;
}

.toggle-check input:checked + span {
  background: rgba(32, 228, 168, 0.24);
  border-color: rgba(32, 228, 168, 0.38);
}

.toggle-check input:checked + span::after {
  transform: translateX(20px);
  background: var(--success);
}

.admin-actions {
  position: sticky;
  bottom: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px;
  border-radius: 20px;
  background: rgba(3, 8, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
}

.admin-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  border: 1px solid transparent;
}

.admin-btn.primary {
  color: #001018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.admin-btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

@media (max-width: 780px) {
  .admin-header,
  .admin-panel-heading,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-grid.two-cols,
  .admin-grid.three-cols {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    position: static;
  }

  .admin-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .admin-table {
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
  }

  .admin-table td {
    border: 0;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .order-input {
    max-width: 120px;
  }
}

/* v2.2.0: indices, forex and crypto market-cap section accents */
.market-section[data-section="indices"] .section-heading b,
.rate-row[data-type="index"] .icon-wrap,
.rate-row[data-type="forex"] .icon-wrap {
  color: #a7f3ff;
  border-color: rgba(78, 205, 255, 0.30);
  background: rgba(78, 205, 255, 0.10);
}

.market-section[data-section="marketcap"] .section-heading b,
.rate-row[data-type="marketcap"] .icon-wrap {
  color: #b7ffd9;
  border-color: rgba(58, 255, 164, 0.28);
  background: rgba(58, 255, 164, 0.10);
}

.rate-row[data-type="index"]:hover,
.rate-row[data-type="forex"]:hover {
  border-color: rgba(78, 205, 255, 0.36);
}

.rate-row[data-type="marketcap"]:hover {
  border-color: rgba(58, 255, 164, 0.36);
}

/* v2.3.0: provider source badges and fallback-source indicator */
.rate-meta-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 128px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  color: rgba(222, 239, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-badge.fallback-source {
  color: #9fffd8;
  background: rgba(32, 228, 168, 0.10);
  border-color: rgba(32, 228, 168, 0.24);
}

body.is-fa .source-badge {
  letter-spacing: 0;
  font-size: 10px;
}

@media (max-width: 560px) {
  .rate-meta-badges {
    gap: 4px;
  }

  .source-badge {
    max-width: 112px;
    font-size: 8.5px;
    padding: 3px 6px;
  }
}

.full-span { grid-column: 1 / -1; }
.data-health-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.data-health-toolbar small {
  color: var(--muted-2);
  line-height: 1.8;
}
.data-health-wrap .admin-table td,
.data-health-wrap .admin-table th {
  white-space: nowrap;
}

/* v2.6.0: Nexito homepage, market category tabs and admin source center */
.landing-shell {
  width: min(1120px, calc(100% - 28px));
  align-items: flex-start;
}

.landing-card {
  max-height: none;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 18px;
}

.landing-copy,
.landing-brand-card,
.landing-feature,
.landing-contact-panel {
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.06);
  border-radius: 26px;
  padding: 22px;
}

.landing-copy {
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 10% 10%, rgba(38,217,255,.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(29px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.4px;
  color: var(--silver);
}

.landing-copy p,
.landing-feature p,
.landing-contact-panel p,
.landing-brand-card span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.landing-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.landing-actions.compact {
  justify-content: flex-end;
  margin-top: 0;
}

.landing-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.13);
}

.landing-btn.primary {
  color: #001018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.landing-btn.secondary {
  color: var(--text);
  background: rgba(255,255,255,.07);
}

.landing-brand-card {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 18%, rgba(38,217,255,.16), transparent 34%),
    rgba(255,255,255,.055);
}

.landing-logo {
  width: min(210px, 80%);
  filter: drop-shadow(0 22px 32px rgba(38, 217, 255, 0.24));
}

.landing-brand-card strong {
  font-size: 34px;
  letter-spacing: 1px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 16px;
}

.landing-feature span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent-2);
  border: 1px solid rgba(38,217,255,.22);
  background: rgba(38,217,255,.08);
  font-weight: 900;
  direction: ltr;
}

.landing-feature h2,
.landing-contact-panel h2 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.landing-contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  border-color: rgba(32,228,168,.22);
  background: linear-gradient(135deg, rgba(32,228,168,.08), rgba(255,255,255,.055));
}

.category-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 14px;
  margin: -2px 0 8px;
  background: linear-gradient(180deg, rgba(5, 13, 26, .94), rgba(5, 13, 26, .72));
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.category-tab:hover,
.category-tab.active {
  color: var(--text);
  border-color: rgba(38,217,255,.34);
  background: rgba(38,217,255,.13);
  transform: translateY(-1px);
}

.category-tab b {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(38,217,255,.12);
  font-size: 10px;
  direction: ltr;
}

.market-section {
  scroll-margin-top: 92px;
}

.provider-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.provider-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.052);
}

.provider-card h3 {
  margin: 0;
  font-size: 14px;
}

.provider-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.provider-flow {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.provider-flow span {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent-2);
  border: 1px solid rgba(38,217,255,.18);
  background: rgba(38,217,255,.08);
  font-size: 11px;
  font-weight: 850;
}

.security-note {
  border-color: rgba(255, 200, 87, .22);
  background: rgba(255, 200, 87, .06);
}

body.is-fa .landing-copy,
body.is-fa .landing-feature,
body.is-fa .landing-contact-panel,
body.is-fa .landing-brand-card,
body.is-fa .provider-card {
  text-align: right;
}

body.is-fa .landing-copy h1 {
  letter-spacing: 0;
  line-height: 1.22;
}

body.is-fa .category-tab {
  letter-spacing: 0;
}

@media (max-width: 820px) {
  .landing-hero,
  .landing-grid,
  .provider-map-grid {
    grid-template-columns: 1fr;
  }

  .landing-copy {
    min-height: 0;
  }

  .landing-contact-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-actions.compact {
    justify-content: stretch;
  }

  .landing-actions.compact .landing-btn {
    flex: 1 1 140px;
  }
}

@media (max-width: 430px) {
  .category-tabs {
    margin-left: -4px;
    margin-right: -4px;
    padding-inline: 4px;
  }

  .category-tab {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .landing-card {
    padding: 12px;
  }

  .landing-copy,
  .landing-brand-card,
  .landing-feature,
  .landing-contact-panel {
    padding: 16px;
    border-radius: 20px;
  }
}
