:root{
  --dash-bg:#050505;
  --dash-panel:#0f0f10;
  --dash-border:rgba(255,255,255,.10);
  --dash-text:rgba(255,255,255,.92);
  --dash-muted:rgba(255,255,255,.65);
  --dash-link:#7dd3fc;
  --dash-danger:#ff5a5a;

  --dash-radius:16px;

  /* Подгони под свой реальный хедер (влияет на flash и отступ контента) */
  --dash-nav-h: 56px;
  --dash-main-extra-top: 36px; /* доп. “воздух” под хедером */
  --dash-flash-h: 45px;
}

/* =========================
   Base
========================= */
.dashboard-body{
  background: linear-gradient(120deg, #000000, #06122a, #000000);
  background-size: 300% 300%;
  animation: dashGradient 14s ease infinite;
  color: var(--dash-text);
  min-height:100vh;

  display:flex;
  flex-direction:column;
}

@keyframes dashGradient{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce){
  .dashboard-body{ animation:none; }
}

/* =========================
   Layout
========================= */
.dash-main{
  padding-top: calc(var(--dash-nav-h) + var(--dash-main-extra-top));
  flex: 1 0 auto;
}

.dash-container{
  max-width: 100%;
  margin: 0;
  padding: 18px;
}

.dash-shell{
  display:flex;
  gap: 18px;
  align-items:flex-start;
}

.dash-sidebar{ width: 260px; flex: 0 0 260px; }
.dash-content{ flex: 1 1 auto; min-width: 0; }

@media (max-width: 980px){
  .dash-shell{ flex-direction: column; }
  .dash-sidebar{ width: 100%; flex: 1 1 auto; }
  .dash-content{ width: 100%; }
}

/* =========================
   Navbar
========================= */
.dash-navbar{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 9999;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dash-border);
}

.dash-navbar-inner{
  margin: 0;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.dash-navbar-left{
  display:flex;
  align-items:center;
  gap: 18px;
  min-width: 0;
}

.dash-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--dash-text);
  flex: 0 0 auto;
}

.dash-top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 0 0 auto;
}

/* Dashboard link in header */
.dash-top-dashboard-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  text-decoration:none;
  white-space: nowrap;
}

.dash-top-dashboard-link:hover{
  background: rgba(255,255,255,.08);
}

.dash-top-dashboard-text{
  color: rgba(183,190,255,.85);
}

.dash-top-dashboard-link:hover .dash-top-dashboard-text{
  color: rgba(183,190,255,.98);
}

/* =========================
   Flash bar (полоса уведомлений)
========================= */
.dash-flash{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--dash-nav-h);
  height: var(--dash-flash-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 16px;
  line-height: 1.2;
  z-index: 9998;

  background: #16a34a;
  color: #fff;

  transform: translateY(-120%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.dash-flash.is-show{
  transform: translateY(0);
  opacity: 1;
}
.dash-flash.is-danger{ background:#dc2626; }

/* =========================
   Sidebar
========================= */
.dash-sidebar-card{
  background: var(--dash-panel);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 14px;
}

.dash-nav{ display:flex; flex-direction:column; gap:6px; }

.dash-nav-title{
  color: var(--dash-muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 2px 4px 6px;
}

.dash-nav-sep{ height:1px; background: var(--dash-border); margin: 10px 0; }

.dash-nav-link{
  display:flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--dash-text);
  border: 1px solid transparent;
}

.dash-nav-link:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.06);
}

.dash-nav-link.is-active{
  background: rgba(125,211,252,.10);
  border-color: rgba(125,211,252,.22);
}

/* =========================
   Headings / helpers
========================= */
.dash-h1{ font-size: 28px; margin: 10px 0 14px; letter-spacing: -0.02em; }
.dash-muted{ color: var(--dash-muted); }
.dash-link{ color: var(--dash-link); text-decoration:none; }
.dash-link:hover{ text-decoration: underline; }
.dash-hint{ margin-top:6px; font-size:13px; opacity:.85; }

/* Header row / search */
.dash-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 10px 0 14px;
}
.dash-header-row .dash-h1{ margin:0; }

.dash-search{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.dash-search .dash-input{
  width: clamp(320px, 42vw, 680px);
  max-width:none;
  flex: 1 1 auto;
  min-width: 220px;
}
.dash-search .dash-btn{ flex: 0 0 auto; white-space: nowrap; }


.dash-header-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
}

.dash-search--compact .dash-input{
  width: clamp(220px, 24vw, 360px);
}

.dash-table--merchants thead th{ text-align:left; }

.dash-table--merchants tbody tr[data-row-href],
.dash-table--merchants tbody tr[data-row-href] td{
  cursor:pointer;
}

.dash-url{
  color: #555555;
  text-decoration:none;
  word-break:break-word;
}
.dash-url:hover{ text-decoration: underline; }

.dash-tabs--head{
  margin: 0;
  justify-content:flex-end;
}

.dash-header-row.dash-merchant-head{
  align-items:center;
}

body.dash-modal-open{ overflow:hidden; }


@media (max-width: 760px){
  .dash-header-row{ flex-wrap: wrap; }
  .dash-search{ width: 100%; }
  .dash-search .dash-input{ width: 100%; min-width: 0; }
}

/* =========================
   Cards
========================= */
.dash-card{
  background: var(--dash-panel);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

/* =========================
   Buttons
========================= */
.dash-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(125,211,252,.16);
  border: 1px solid rgba(125,211,252,.28);
  color: var(--dash-text);
  text-decoration:none;
  cursor:pointer;
  font-size: 14px;
}

.dash-btn:hover{ background: rgba(125,211,252,.22); }

.dash-btn:disabled,
.dash-btn[disabled]{
  opacity: .65;
  cursor: not-allowed;
}

/* алиас под твой класс "is-ghost" */
.dash-btn.is-ghost,
.dash-btn--ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.dash-btn.is-ghost:hover,
.dash-btn--ghost:hover{ background: rgba(255,255,255,.10); }

.dash-btn--small{ padding: 7px 10px; border-radius: 10px; font-size: 13px; }

/* =========================
   Forms
========================= */
.dash-form{ display:flex; flex-direction:column; gap:12px; }
.dash-field{ display:flex; flex-direction:column; gap:6px; margin-top:10px; }
.dash-label{ font-size:12px; color:var(--dash-muted); letter-spacing:.02em; }

.dash-input{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--dash-text);
  outline: none;
}

.dash-input:focus{
  border-color: rgba(125,211,252,.35);
  box-shadow: 0 0 0 3px rgba(125,211,252,.12);
}

.dash-input[disabled]{
  opacity: .75;
  cursor: not-allowed;
}

/* Form row (используешь в модалках/формах) */
.dash-form-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.dash-form-row > .dash-input{
  flex: 1 1 240px;
  min-width: 220px;
}
.dash-form-row > .dash-btn{ flex: 0 0 auto; }

/* Half-width inputs */
.dash-input--half{
  width: min(560px, 55%);
  max-width: 100%;
}
@media (max-width: 760px){
  .dash-input--half{ width: 100%; }
}

/* =========================
   Tables
========================= */
.dash-table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
}

.dash-table{
  width:100%;
  border-collapse:collapse;
  min-width: 720px;
  background: rgba(0,0,0,.10);
}

.dash-table thead th{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color: var(--dash-muted);
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.dash-table tbody td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:top;
}

.dash-table tbody tr:hover td{ background: rgba(255,255,255,.02); }

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

/* addresses table helper */
.dash-table-addresses thead th:last-child,
.dash-table-addresses tbody td:last-child{ text-align:right; }


/* Заголовки колонок — влево */
.dash-table thead th{
  text-align:left;
}

/* Кликабельная строка — курсор “рука” */
.dash-table tbody tr[data-row-href],
.dash-table tbody tr[data-row-href] td{
  cursor:pointer;
}

/* =========================
   Alerts
========================= */
.dash-alert{
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}

.dash-alert.is-danger{
  border-color: rgba(255,90,90,.35);
  background: rgba(255,90,90,.12);
}

/* =========================
   Hide inline alerts in content
   (оставляем только верхнюю flash-полоску #dashFlash)
   ========================= */
.dash-content .dash-alert:not([id]):not([data-keep-alert]){
  display: none;
}

/* =========================
   Dropdown
========================= */
.dash-dd{ position:relative; }

.dash-dd-btn{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--dash-border);
  color: var(--dash-text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
  font-size:14px;
  display:flex;
  align-items:center;
  gap:10px;
}

.dash-dd-menu{
  position:absolute;
  right:0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--dash-panel);
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  padding: 8px;
  display:none;
}

.dash-dd.is-open .dash-dd-menu{ display:block; }

.dash-dd-item{
  display:block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--dash-text);
  text-decoration:none;
  font-size:14px;
}

.dash-dd-item:hover{ background: rgba(255,255,255,.06); }

.dash-dd-item.is-danger{ color: var(--dash-danger); }

.dash-dd-head{
  padding: 10px 10px 8px;
  font-weight: 700;
}

.dash-dd-sep{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 6px 8px;
}

/* =========================
   Avatar
========================= */
.dash-avatar{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(125,211,252,.12);
  border: 1px solid rgba(125,211,252,.18);
  flex: 0 0 30px;
}

.dash-avatar-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.dash-avatar-initials{
  font-weight:700;
  font-size:12px;
  letter-spacing:.02em;
}

/* =========================
   SVG logos clamp
========================= */
/* =========================
   Logos
========================= */
.dash-logo-wrap{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  vertical-align:middle;
  line-height:0;
  flex:0 0 24px;
}

.dash-logo-wrap svg,
.dash-logo-wrap img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  display:block;
  object-fit:contain;
}

/* Pair: logo + title (used in tables) */
.dash-logo-pair{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

/* Currency logo with chain badge */
.dash-coin-stack{
  position:relative;
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.dash-coin-stack .dash-coin-logo{
  width:28px;
  height:28px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--dash-border);
  overflow:hidden;
}

.dash-chain-badge{
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:16px;
  height:16px;
  border-radius:999px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--dash-border);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  line-height:0;
}

.dash-chain-badge svg,
.dash-chain-badge img{
  width:12px !important;
  height:12px !important;
  max-width:12px !important;
  max-height:12px !important;
  display:block;
}

/* =========================
   Modals (общий стиль)
========================= */
.dash-modal{
  position: fixed;
  inset: 0;
  display: none;            /* по умолчанию закрыта */
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  background: rgba(0,0,0,.45);
}

/* если ты показываешь через hidden атрибут */
.dash-modal[hidden]{ display:none !important; }

/* если показываешь через класс */
.dash-modal.is-open{ display:flex; }

.dash-modal-backdrop{
  position:absolute;
  inset:0;
  background: transparent; /* фон уже есть у .dash-modal */
}

.dash-modal-card{
  position: relative;
  z-index: 1;
  background: var(--dash-panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.dash-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.dash-modal-title{ font-weight: 700; font-size: 16px; }

.dash-modal-x{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--dash-text);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.dash-modal-actions,
.dash-form-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top: 12px;
}

.dash-pre{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px;
  white-space:pre-wrap;
  word-break:break-word;
  margin-top:10px;
  min-height:64px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 12.5px;
}

/* Check modals - black background with green text */
.dash-modal pre#nodeCheckResult,
.dash-modal pre#currencyCheckResult{
  background: #000000 !important;
  color: #00ff00 !important;
  border: 1px solid #00ff00 !important;
}

/* =========================
   Status chips
========================= */
.dash-status{
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--dash-border);
  background: rgba(255,255,255,.04);
  color: var(--dash-text);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.dash-status.is-pending{ background: rgba(255,255,255,.06); }
.dash-status.is-paid{ background: rgba(125,211,252,.12); border-color: rgba(125,211,252,.35); }
.dash-status.is-confirmed{ background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }
.dash-status.is-expired,
.dash-status.is-failed{ background: rgba(255,90,90,.10); border-color: rgba(255,90,90,.35); }

/* =========================
   Utilities
========================= */
.t-left{ text-align:left !important; }
.t-center{ text-align:center !important; }
.t-right{ text-align:right !important; }

.dash-th-left, .dash-td-left{ text-align:left !important; }
.dash-th-center, .dash-td-center{ text-align:center !important; }
.dash-th-right, .dash-td-right{ text-align:right !important; }

.dash-actions-cell{ white-space:nowrap; }

.dash-cell-inline{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.dash-mono,
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,"Liberation Mono","Courier New", monospace;
  font-size: 12.5px;
  word-break: break-all;
}

/* =========================
   Footer
========================= */
.dash-footer{
  margin-top:auto;
  width:100%;
  border-top: 1px solid var(--dash-border);
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(12px);
}

.dash-footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  padding: 20px 48px;
  flex-wrap: nowrap;
}

.dash-footer-left{
  display:flex;
  flex-direction:column;
  gap: 2px;
  font-size: 12px;
  letter-spacing:.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-footer-brand{ 
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  font-weight: 700;
}
.dash-footer-ver{ 
  color: rgba(255,255,255,.3);
  font-size: 11px;
}

.dash-footer-center{
  display:flex;
  align-items:center;
  flex-shrink: 0;
}

.dash-footer-right{
  display:flex;
  align-items:center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-footer-link{
  color: rgba(255,255,255,.55);
  text-decoration:none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.dash-footer-link:hover{
  color: #fff;
  background: rgba(255,255,255,.07);
  text-decoration: none;
}

/* Footer language button (opens modal) */
.dash-lang-btn{
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
  min-width: auto;
  justify-content: flex-start;
}

.dash-lang-btn:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.dash-lang-btn .dash-lang-line{
  display:inline-flex;
  gap:8px;
  align-items:center;
  white-space:nowrap;
}

.dash-lang-btn .dash-caret{
  opacity:.7;
  font-size: 12px;
}

/* Flag circle */
.dash-flag-circle{
  font-size: 22px;
  line-height: 1;
}

/* Language modal */
.dash-lang-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.dash-lang-modal.is-open{
  display: flex;
}

.dash-lang-modal .dash-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.dash-lang-modal .dash-modal-card{
  position: relative;
  background: #16162a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  width: 340px;
  max-width: 95vw;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  z-index: 1;
}

.dash-lang-modal .dash-modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dash-lang-modal .dash-modal-title{
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.dash-lang-modal .dash-modal-x{
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.dash-lang-modal .dash-modal-x:hover{
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.dash-lang-modal .dash-lang-list{
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-lang-modal .dash-dd-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.8) !important;
  transition: background 0.2s;
}

.dash-lang-modal .dash-dd-item:hover{
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}

.dash-lang-modal .dash-dd-item.is-active{
  background: rgba(120,61,244,0.15) !important;
}

@media (max-width: 980px){
  .dash-footer-inner{ 
    flex-wrap: wrap; 
    justify-content: center;
    padding: 20px 24px;
  }
  .dash-footer-left,
  .dash-footer-center,
  .dash-footer-right {
    width: auto;
  }
}

@media (max-width: 640px){
  .dash-footer-inner{
    flex-direction: column;
    text-align: center;
    padding: 20px 24px;
  }
  .dash-footer-left,
  .dash-footer-center,
  .dash-footer-right {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   Merchants (logo + tabs)
   ========================= */

.dash-copy-field{
  position:relative;
  display:inline-flex;
  align-items:center;
  width: 100%;
  max-width: 420px;
}

.dash-input--key{
  width: 100%;
  max-width: 420px;
  padding-right: 44px;
}

.dash-copy-btn{
  position:absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--dash-border);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.dash-copy-btn:hover{ background: rgba(255,255,255,.10); }

.dash-merchant-titlebox{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.dash-merchant-titlebox .dash-h1{
  margin:0;
}

.dash-merchant-idline{
  font-size: 13px;
  color: var(--dash-muted);
}

.dash-merchant-badge{
  display:flex;
  align-items:center;
  gap:10px;
}

.dash-merchant-head{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-width: 0;
}

.dash-merchant-logo{
  width:34px;
  height:34px;
  border-radius:999px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--dash-border);
  background: rgba(255,255,255,.06);
  flex: 0 0 34px;
}

.dash-merchant-logo-btn{
  width:44px;
  height:44px;
  border-radius:999px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--dash-border);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  padding:0;
  flex: 0 0 44px;
}
.dash-merchant-logo-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.dash-merchant-logo-initial{
  font-weight:800;
  font-size:14px;
  color: rgba(255,255,255,.92);
}

.dash-merchant-logo.is-lg{
  width:44px;
  height:44px;
  flex-basis:44px;
}
.dash-merchant-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.dash-merchant-initials{
  font-weight:700;
  letter-spacing:.02em;
  color: rgba(255,255,255,.92);
  font-size: 12px;
}
.dash-merchant-logo.is-lg .dash-merchant-initials{ font-size: 14px; }

.dash-section-title{
  margin: 12px 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
}

.dash-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 10px 0 0;
}

.dash-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--dash-border);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  text-decoration:none;
  font-size: 16px;
  line-height: 1;
}

.dash-tab:hover{ background: rgba(255,255,255,.06); }
.dash-tab.is-active{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.dash-inline{
  display:flex;
  align-items:center;
  gap:10px;
}

.dash-mono,
.dash-input.dash-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.dash-big{
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 8px;
}

.dash-currency-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 920px){
  .dash-currency-grid{ grid-template-columns: 1fr; }
}

.dash-currency-tile{
  border: 1px solid var(--dash-border);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--dash-text);
  cursor:pointer;
  text-align:left;
}

.dash-currency-tile:hover{ background: rgba(255,255,255,.07); }

.dash-currency-tile.is-on{
  border-color: rgba(34,197,94,.55);
  background: rgba(34,197,94,.10);
}

.dash-currency-title{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width:0;
}

.dash-currency-name{
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.dash-currency-code{
  font-size: 12px;
  color: var(--dash-muted);
}

.dash-logo-modal-card{ max-width: 420px; }

.dash-logo-preview{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--dash-border);
  background: rgba(255,255,255,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.dash-logo-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.dash-logo-empty{
  color: var(--dash-muted);
  font-weight: 700;
}

/* Logo modal tweaks */
.dash-logo-modal-card .dash-modal-head{
  justify-content: flex-end;
}

.dash-logo-modal-card .dash-modal-actions{
  justify-content: center;
}

/* Merchant header title layout */
.dash-merchant-titlebox{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.dash-merchant-title{
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}
.dash-merchant-id{
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.dash-logo-modal-card .dash-modal-head{
  justify-content: flex-end;
}
.dash-logo-modal-card .dash-modal-actions{
  justify-content: center;
}

.dash-node-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(280px, 520px));
  gap:12px 18px;
  align-items:start;
}

.dash-node-col{
  width:100%;
  max-width:520px;
}

.dash-node-col--wide{
  grid-column:1 / -1;
  max-width:1060px;
}

.dash-node-input{
  width:100%;
  max-width:520px;
}

.dash-node-col--wide .dash-node-input{
  max-width:1060px;
}

@media (max-width: 980px){
  .dash-node-grid{
    grid-template-columns: 1fr;
  }

  .dash-node-col,
  .dash-node-col--wide,
  .dash-node-input,
  .dash-node-col--wide .dash-node-input{
    max-width:none;
  }
}

/* =========================
   Toggle Switch
========================= */
.dash-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.dash-toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
  z-index: 2;
}

.dash-toggle input:checked + span {
  background-color: #4f46e5;
}

.dash-toggle input:checked + span span {
  transform: translateX(24px);
}

.dash-toggle span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
  display: block;
}

.dash-toggle span span {
  position: absolute;
  content: '';
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: block;
}

/* Clickable table rows */
.dash-clickable-row {
  transition: background 0.2s;
}

.dash-clickable-row:hover {
  background: rgba(79, 70, 229, 0.08);
}

.dash-clickable-row:hover td {
  background: transparent;
}