@charset "UTF-8";
/**
 * Stitch Dashboard - QuantaPay 商户后台
 * 基于 Stitch AI 设计稿 (2026-02-01 更新)
 * 配色与 quantapay.app 官网统一 (#39e9c7 青绿主题)
 */
/*
* ==========================================================
* SHARED.SCSS - QuantaPay Design System
* ==========================================================
* 重构版本: 2026-01-31
* 主题: QuantaPay Brand (与官网统一配色)
*/
/*
* 
* ==========================================================
* ICONS.SCSS
* ==========================================================
*
* Icons file shared by admin and client
*
*/
@font-face {
  font-family: "Boxcoin Icons";
  src: url("../media/fonts/icons.ttf?v1") format("truetype"), url("../media/fonts/icons.woff?v1") format("woff"), url("../media/fonts/icons.svg?v1#Boxcoin-Icons") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
[class^=bxc-icon-]:before,
[class*=" bxc-icon-"]:before {
  font-family: "Boxcoin Icons" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bxc-icon-copy:before {
  content: "\e90d";
}

.bxc-icon-back:before {
  content: "\e90c";
}

.bxc-icon-search:before {
  content: "\e90b";
}

.bxc-icon-shuffle:before {
  content: "\e904";
}

.bxc-icon-automation:before {
  content: "\e905";
}

.bxc-icon-bar-chart:before {
  content: "\e906";
}

.bxc-icon-delete:before {
  content: "\e907";
}

.bxc-icon-menu:before {
  content: "\e908";
}

.bxc-icon-plus-2:before {
  content: "\e909";
}

.bxc-icon-settings:before {
  content: "\e90a";
}

.bxc-icon-close:before {
  content: "\e903";
}

.bxc-icon-help:before {
  content: "\e902";
}

.bxc-icon-check:before {
  content: "\e901";
}

.bxc-icon-loader:before {
  content: "\e900";
}

.bxc-icon-download:before {
  content: "f";
}

.bxc-icon-clip:before {
  content: "e";
}

.bxc-icon-filters:before {
  content: "\e90e";
}

.bxc-icon-arrow-down:before {
  content: "a";
}

.bxc-icon-user:before {
  content: "n";
}

.bxc-icon-arrow-right:before {
  content: "\ea3c";
}

.bxc-icon-arrow-left:before {
  content: "\ea40";
}

.bxc-icon-clock:before {
  content: "F";
}

.bxc-icon-calendar:before {
  content: "b";
}

.bxc-icon-image:before {
  content: "\e90f";
}

.bxc-icon-bar-chart-2:before {
  content: "\e906";
}

.bxc-icon-package:before {
  content: "\e905";
}

.bxc-icon-grid:before {
  content: "\e908";
}

.bxc-icon-arrow-up:before {
  content: "\ea38";
}

.bxc-icon-external-link:before {
  content: "\ea3c";
}

@font-face {
  font-family: "Boxcoin";
  src: url("../media/fonts/regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Boxcoin";
  src: url("../media/fonts/medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Boxcoin";
  src: url("../media/fonts/bold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}
@keyframes bxc-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes bxc-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes bxc-fade-bottom {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes bxc-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Boxcoin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0f1c;
  color: #e9f0ff;
  line-height: 1.5;
}

a {
  color: #39e9c7;
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #5ef0d8;
}

.bxc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  background: #39e9c7;
  color: #0a0f1c;
  height: auto;
  line-height: 1.5;
}
.bxc-btn:hover {
  background: #5ef0d8;
  color: #0a0f1c;
}
.bxc-btn i {
  font-size: 16px;
  color: inherit;
}
.bxc-btn.bxc-btn-border {
  background: transparent;
  border: 1px solid #223355;
  color: #e9f0ff;
}
.bxc-btn.bxc-btn-border:hover {
  border-color: #39e9c7;
  color: #39e9c7;
  background: rgba(57, 233, 199, 0.15);
}
.bxc-btn.bxc-btn-red {
  background: #ef4444;
  color: white;
}
.bxc-btn.bxc-btn-red:hover {
  background: #f87171;
}
.bxc-btn.bxc-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.bxc-btn.bxc-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 15, 28, 0.3);
  border-top-color: #0a0f1c;
  border-radius: 50%;
  animation: bxc-loading 0.6s linear infinite;
}
.bxc-btn.bxc-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.bxc-btn.bxc-btn-with-icon {
  gap: 12px;
}

.bxc-btn-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  background: #0a0f1c;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
  text-align: center;
}
.bxc-btn-icon-circle i {
  font-size: 11px;
  color: #39e9c7;
  font-weight: 600;
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
}
.bxc-btn-icon-circle i::before {
  display: block;
  line-height: 1;
}

.bxc-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #223355;
  background: transparent;
  color: #aab6cc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bxc-btn-icon i {
  font-size: 18px;
}
.bxc-btn-icon:hover {
  border-color: #39e9c7;
  color: #39e9c7;
  background: rgba(57, 233, 199, 0.15);
}

.bxc-input {
  margin-bottom: 16px;
}
.bxc-input span, .bxc-input label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #aab6cc;
  margin-bottom: 8px;
}
.bxc-input input, .bxc-input textarea, .bxc-input select {
  width: 100%;
  padding: 12px 16px;
  background: #162033;
  border: 1px solid #223355;
  border-radius: 6px;
  color: #e9f0ff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.bxc-input input::placeholder, .bxc-input textarea::placeholder, .bxc-input select::placeholder {
  color: #7a8ba8;
}
.bxc-input input:focus, .bxc-input textarea:focus, .bxc-input select:focus {
  outline: none;
  border-color: #39e9c7;
  box-shadow: 0 0 0 3px rgba(57, 233, 199, 0.15);
}
.bxc-input textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}
.bxc-input input[type=checkbox] {
  width: 20px;
  height: 20px;
  padding: 0;
  cursor: pointer;
  accent-color: #39e9c7;
}

.bxc-table {
  width: 100%;
  border-collapse: collapse;
}
.bxc-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #223355;
  background: #0d1425;
}
.bxc-table tbody tr {
  border-bottom: 1px solid #223355;
  transition: all 0.2s ease;
}
.bxc-table tbody tr:hover {
  background: #1a2844;
}
.bxc-table tbody td {
  padding: 16px;
  font-size: 14px;
  color: #e9f0ff;
}

.bxc-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bxc-card {
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 8px;
  padding: 24px;
}

hr {
  border: none;
  border-top: 1px solid #223355;
  margin: 24px 0;
}

.bxc-title {
  font-size: 24px;
  font-weight: 600;
  color: #e9f0ff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.bxc-text {
  font-size: 14px;
  color: #aab6cc;
  line-height: 1.6;
}

.bxc-link {
  color: #39e9c7;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bxc-link:hover {
  color: #5ef0d8;
}

.bxc-loading {
  position: relative;
  min-height: 100px;
}
.bxc-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid #223355;
  border-top-color: #39e9c7;
  border-radius: 50%;
  animation: bxc-loading 0.6s linear infinite;
}
.bxc-loading > * {
  opacity: 0.3;
}

.bxc-select {
  position: relative;
  display: inline-block;
}
.bxc-select p {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #162033;
  border: 1px solid #223355;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #e9f0ff;
  transition: all 0.2s ease;
}
.bxc-select p::after {
  content: "\e90c";
  font-family: "Boxcoin Icons";
  font-size: 10px;
  color: #7a8ba8;
  margin-left: auto;
}
.bxc-select p:hover {
  border-color: #2d4470;
}
.bxc-select ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  margin-top: 4px;
  background: #111a2e;
  border: 1px solid #223355;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  list-style: none;
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.bxc-select ul li {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}
.bxc-select ul li:hover {
  background: #1a2844;
}
.bxc-select ul li.bxc-active {
  background: rgba(57, 233, 199, 0.15);
  color: #39e9c7;
}
.bxc-select.bxc-active ul {
  display: block;
  animation: bxc-fade-bottom 0.15s ease;
}

.bxc-tabs, .bxc-account-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #223355;
  margin-bottom: 24px;
}
.bxc-tabs .bxc-tab, .bxc-account-tabs .bxc-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: #7a8ba8;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}
.bxc-tabs .bxc-tab:hover, .bxc-account-tabs .bxc-tab:hover {
  color: #aab6cc;
}
.bxc-tabs .bxc-tab.bxc-active, .bxc-account-tabs .bxc-tab.bxc-active {
  color: #39e9c7;
  border-bottom-color: #39e9c7;
}
.bxc-tabs .bxc-tab i, .bxc-account-tabs .bxc-tab i {
  font-size: 16px;
}

.bxc-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.bxc-scrollbar::-webkit-scrollbar-track {
  background: #0d1425;
}
.bxc-scrollbar::-webkit-scrollbar-thumb {
  background: #223355;
  border-radius: 3px;
}
.bxc-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #2d4470;
}

.bxc-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bxc-hidden {
  display: none !important;
}

.bxc-info {
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}
.bxc-info:not(:empty) {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.bxc-not-found {
  text-align: center;
  padding: 32px 16px;
  color: #7a8ba8;
  font-size: 14px;
}

.bxc-toolip-cnt {
  position: relative;
}
.bxc-toolip-cnt .bxc-toolip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: #111a2e;
  border: 1px solid #223355;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  z-index: 100;
}
.bxc-toolip-cnt:hover .bxc-toolip {
  opacity: 1;
  visibility: visible;
}

.bxc-search {
  position: relative;
}
.bxc-search input {
  padding-left: 40px !important;
}
.bxc-search i, .bxc-search .bxc-icon-search {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a8ba8;
  font-size: 16px;
  pointer-events: none;
}

.bxc-box {
  max-width: 420px;
  margin: 60px auto;
  padding: 32px;
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 12px;
}
.bxc-box .bxc-top {
  text-align: center;
  margin-bottom: 24px;
}
.bxc-box .bxc-top img {
  height: 48px;
  margin-bottom: 16px;
}
.bxc-box .bxc-top .bxc-title {
  font-size: 20px;
  margin-bottom: 8px;
}
.bxc-box .bxc-bottom {
  margin-top: 24px;
  text-align: center;
}
.bxc-box .bxc-bottom .bxc-btn {
  width: 100%;
  padding: 16px;
}
.bxc-box .bxc-bottom .bxc-text {
  margin-top: 16px;
}

.bxc-body main [data-area=transactions].bxc-active,
.bxc-body main [data-area=balance].bxc-active,
.bxc-body main [data-area=analytics].bxc-active {
  margin: -24px -32px;
  width: calc(100% + 64px);
}

.stitch-header {
  height: 64px;
  border-bottom: 1px solid #223355;
  background: #0d1425;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.stitch-header .stitch-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stitch-header .stitch-header-left .stitch-page-title {
  font-size: 16px;
  font-weight: 700;
  color: #e9f0ff;
  letter-spacing: -0.3px;
}
.stitch-header .stitch-header-left .stitch-sub-nav {
  display: flex;
  gap: 24px;
}
.stitch-header .stitch-header-left .stitch-sub-nav a {
  font-size: 13px;
  font-weight: 500;
  color: #7a8ba8;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.stitch-header .stitch-header-left .stitch-sub-nav a:hover {
  color: #e9f0ff;
}
.stitch-header .stitch-header-left .stitch-sub-nav a.active {
  color: #39e9c7;
  border-bottom-color: #39e9c7;
}
.stitch-header .stitch-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stitch-header .stitch-header-right .stitch-env-switch {
  display: flex;
  background: #111a2e;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #223355;
}
.stitch-header .stitch-header-right .stitch-env-switch button {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: #7a8ba8;
}
.stitch-header .stitch-header-right .stitch-env-switch button.active {
  background: #39e9c7;
  color: #0a0f1c;
}
.stitch-header .stitch-header-right .stitch-env-switch button:not(.active):hover {
  color: #e9f0ff;
}
.stitch-header .stitch-header-right .stitch-user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stitch-header .stitch-header-right .stitch-user-area .stitch-user-info {
  text-align: right;
}
.stitch-header .stitch-header-right .stitch-user-area .stitch-user-info .stitch-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #e9f0ff;
}
.stitch-header .stitch-header-right .stitch-user-area .stitch-user-info .stitch-user-company {
  font-size: 11px;
  color: #7a8ba8;
}
.stitch-header .stitch-header-right .stitch-user-area .stitch-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111a2e;
  border: 2px solid #223355;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8ba8;
}
.stitch-header .stitch-header-right .stitch-user-area .stitch-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stitch-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stitch-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stitch-stat-card {
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.stitch-stat-card:hover {
  border-color: #2d4470;
}
.stitch-stat-card .stitch-stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stitch-stat-card .stitch-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 233, 199, 0.15);
}
.stitch-stat-card .stitch-stat-icon i {
  font-size: 18px;
  color: #39e9c7;
}
.stitch-stat-card .stitch-stat-icon.stitch-stat-icon-success {
  background: rgba(57, 233, 199, 0.15);
}
.stitch-stat-card .stitch-stat-icon.stitch-stat-icon-success i {
  color: #39e9c7;
}
.stitch-stat-card .stitch-stat-icon.stitch-stat-icon-warning {
  background: rgba(245, 166, 35, 0.15);
}
.stitch-stat-card .stitch-stat-icon.stitch-stat-icon-warning i {
  color: #f5a623;
}
.stitch-stat-card .stitch-stat-icon.stitch-stat-icon-info {
  background: rgba(83, 169, 255, 0.15);
}
.stitch-stat-card .stitch-stat-icon.stitch-stat-icon-info i {
  color: #53a9ff;
}
.stitch-stat-card .stitch-stat-change {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}
.stitch-stat-card .stitch-stat-change.positive {
  color: #39e9c7;
}
.stitch-stat-card .stitch-stat-change.negative {
  color: #ef4444;
}
.stitch-stat-card .stitch-stat-change i {
  font-size: 14px;
}
.stitch-stat-card .stitch-stat-label {
  font-size: 13px;
  color: #7a8ba8;
  margin-bottom: 4px;
}
.stitch-stat-card .stitch-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #e9f0ff;
  letter-spacing: -0.5px;
}
.stitch-stat-card .stitch-stat-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(57, 233, 199, 0.2);
}
.stitch-stat-card .stitch-stat-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress, 100%);
  background: #39e9c7;
  border-radius: 0 2px 2px 0;
}

.stitch-table-card {
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 12px;
  overflow: hidden;
}

.stitch-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid #223355;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.stitch-toolbar .stitch-search {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  position: relative;
}
.stitch-toolbar .stitch-search > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a8ba8;
  font-size: 16px;
  z-index: 1;
}
.stitch-toolbar .stitch-search input {
  width: 100%;
  padding: 12px 60px 12px 40px;
  background: #111a2e;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 13px;
  color: #e9f0ff;
  transition: all 0.2s;
}
.stitch-toolbar .stitch-search input::placeholder {
  color: #7a8ba8;
}
.stitch-toolbar .stitch-search input:focus {
  outline: none;
  border-color: #39e9c7;
  box-shadow: 0 0 0 3px rgba(57, 233, 199, 0.15);
}
.stitch-toolbar .stitch-search .stitch-search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #7a8ba8;
  pointer-events: none;
}
.stitch-toolbar .stitch-search .stitch-search-shortcut span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #162033;
  border: 1px solid #223355;
  border-radius: 4px;
  font-size: 10px;
}
.stitch-toolbar .stitch-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.stitch-toolbar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #111a2e;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #aab6cc;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.stitch-toolbar-btn:hover {
  background: #1a2844;
  border-color: #2d4470;
  color: #e9f0ff;
}
.stitch-toolbar-btn i {
  font-size: 16px;
}
.stitch-toolbar-btn.stitch-btn-export {
  border-color: #39e9c7;
  color: #39e9c7;
}
.stitch-toolbar-btn.stitch-btn-export:hover {
  background: rgba(57, 233, 199, 0.15);
}

.stitch-status-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #223355;
}

.stitch-status-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid #223355;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #aab6cc;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  vertical-align: middle;
}
.stitch-status-filter-btn:hover {
  border-color: #2d4470;
  color: #e9f0ff;
}
.stitch-status-filter-btn.active {
  background: #39e9c7;
  border-color: #39e9c7;
  color: #0a0f1c;
}
.stitch-status-filter-btn i {
  font-size: 12px;
}

.stitch-table {
  width: 100%;
  border-collapse: collapse;
}
.stitch-table thead tr {
  background: rgba(255, 255, 255, 0.02);
}
.stitch-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #223355;
}
.stitch-table thead th.text-right {
  text-align: right;
}
.stitch-table tbody tr {
  border-bottom: 1px solid rgba(34, 51, 85, 0.5);
  transition: background 0.2s;
  cursor: pointer;
}
.stitch-table tbody tr:hover {
  background: rgba(57, 233, 199, 0.03);
}
.stitch-table tbody tr:last-child {
  border-bottom: none;
}
.stitch-table tbody td {
  padding: 16px 20px;
  font-size: 13px;
  color: #e9f0ff;
}
.stitch-table tbody td.text-right {
  text-align: right;
}

.stitch-tx-id {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stitch-tx-id .stitch-tx-hash {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 13px;
  color: #aab6cc;
}
.stitch-tx-id .stitch-copy-btn {
  opacity: 0;
  padding: 4px;
  background: transparent;
  border: none;
  color: #7a8ba8;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
}
.stitch-tx-id .stitch-copy-btn:hover {
  color: #39e9c7;
  background: rgba(57, 233, 199, 0.15);
}
tr:hover .stitch-tx-id .stitch-copy-btn {
  opacity: 1;
}

.stitch-date {
  font-size: 13px;
  color: #aab6cc;
}
.stitch-date .stitch-date-relative {
  display: block;
  font-size: 11px;
  color: #7a8ba8;
  margin-top: 2px;
}

.stitch-asset {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stitch-crypto-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111a2e;
  border: 1px solid #223355;
}
.stitch-crypto-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.stitch-asset-name {
  font-size: 13px;
  font-weight: 600;
  color: #e9f0ff;
}
.stitch-asset-name .stitch-asset-network {
  font-weight: 400;
  color: #7a8ba8;
  font-size: 12px;
}

.stitch-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.stitch-status.completed, .stitch-status.succeeded {
  background: rgba(57, 233, 199, 0.15);
  color: #39e9c7;
  border: 1px solid rgba(57, 233, 199, 0.3);
}
.stitch-status.pending {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.3);
}
.stitch-status.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.stitch-status.refunded {
  background: rgba(83, 169, 255, 0.15);
  color: #53a9ff;
  border: 1px solid rgba(83, 169, 255, 0.3);
}
.stitch-status.underpaid {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.3);
}
.stitch-status.expired {
  background: rgba(170, 182, 204, 0.12);
  color: #aab6cc;
  border: 1px solid rgba(170, 182, 204, 0.25);
}

.stitch-amount {
  text-align: right;
}
.stitch-amount .stitch-amount-crypto {
  font-size: 13px;
  font-weight: 600;
  color: #e9f0ff;
}
.stitch-amount .stitch-amount-crypto.positive {
  color: #39e9c7;
}
.stitch-amount .stitch-amount-fiat {
  font-size: 11px;
  color: #7a8ba8;
  margin-top: 2px;
}

.stitch-pagination {
  padding: 16px 20px;
  border-top: 1px solid #223355;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stitch-pagination .stitch-pagination-info {
  font-size: 13px;
  color: #7a8ba8;
}
.stitch-pagination .stitch-pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.stitch-pagination .stitch-pagination-controls button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #aab6cc;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.stitch-pagination .stitch-pagination-controls button:hover:not(:disabled) {
  background: #1a2844;
  color: #e9f0ff;
}
.stitch-pagination .stitch-pagination-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.stitch-pagination .stitch-pagination-controls button.active {
  background: #39e9c7;
  color: #0a0f1c;
  font-weight: 700;
}
.stitch-pagination .stitch-pagination-controls button i {
  font-size: 16px;
}
.stitch-pagination .stitch-pagination-controls .stitch-scroll-hint {
  font-size: 12px;
  color: #7a8ba8;
  font-style: italic;
}

.stitch-detail-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stitch-detail-panel.active {
  pointer-events: auto;
  opacity: 1;
}
.stitch-detail-panel.active .stitch-detail-drawer {
  transform: translateX(0);
}

.stitch-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.stitch-detail-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background: #0d1425;
  border-left: 1px solid #223355;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.stitch-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #223355;
  flex-shrink: 0;
}

.stitch-detail-title {
  font-size: 16px;
  font-weight: 700;
  color: #e9f0ff;
}

.stitch-detail-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #7a8ba8;
  cursor: pointer;
  transition: all 0.2s;
}
.stitch-detail-close:hover {
  background: #1a2844;
  color: #e9f0ff;
}

.stitch-detail-badge-row {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.stitch-detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #111a2e;
  color: #aab6cc;
  border: 1px solid #223355;
}

.stitch-detail-network-badge {
  background: #111a2e;
  color: #aab6cc;
  border: 1px solid #223355;
}

.stitch-detail-status-badge[data-status=completed], .stitch-detail-status-badge[data-status=succeeded] {
  background: rgba(57, 233, 199, 0.15);
  color: #39e9c7;
  border: 1px solid rgba(57, 233, 199, 0.3);
}
.stitch-detail-status-badge[data-status=pending] {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.3);
}
.stitch-detail-status-badge[data-status=failed] {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.stitch-detail-status-badge[data-status=refunded] {
  background: rgba(83, 169, 255, 0.15);
  color: #53a9ff;
  border: 1px solid rgba(83, 169, 255, 0.3);
}
.stitch-detail-status-badge[data-status=underpaid] {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.3);
}
.stitch-detail-status-badge[data-status=expired] {
  background: rgba(170, 182, 204, 0.12);
  color: #aab6cc;
  border: 1px solid rgba(170, 182, 204, 0.25);
}

.stitch-detail-amount {
  text-align: center;
  padding: 20px 24px 16px;
  flex-shrink: 0;
}
.stitch-detail-amount .stitch-detail-amount-main {
  font-size: 32px;
  font-weight: 700;
  color: #e9f0ff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.stitch-detail-amount .stitch-detail-amount-fiat {
  font-size: 14px;
  color: #7a8ba8;
}

.stitch-detail-fields {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stitch-detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(34, 51, 85, 0.5);
  position: relative;
}
.stitch-detail-field:last-child {
  border-bottom: none;
}

.stitch-detail-label {
  font-size: 10px;
  font-weight: 600;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stitch-detail-value {
  font-size: 14px;
  color: #e9f0ff;
  word-break: break-all;
  padding-right: 32px;
}
.stitch-detail-value.stitch-link {
  color: #39e9c7;
  cursor: pointer;
}
.stitch-detail-value.stitch-link:hover {
  text-decoration: underline;
}

.stitch-copy-btn {
  position: absolute;
  right: 0;
  bottom: 12px;
  padding: 4px;
  background: transparent;
  border: none;
  color: #7a8ba8;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s;
}
.stitch-copy-btn:hover {
  color: #39e9c7;
  opacity: 1;
}

.stitch-detail-field:hover .stitch-copy-btn {
  opacity: 1;
}

.stitch-detail-notes {
  margin: 8px 24px 16px;
  padding: 16px;
  background: #111a2e;
  border-radius: 8px;
  flex-shrink: 0;
}
.stitch-detail-notes .stitch-detail-notes-title {
  font-size: 10px;
  font-weight: 600;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.stitch-detail-notes .stitch-detail-notes-content {
  font-size: 13px;
  color: #e9f0ff;
  line-height: 1.5;
}
.stitch-detail-notes .stitch-detail-notes-fee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 51, 85, 0.5);
  font-size: 13px;
}
.stitch-detail-notes .stitch-detail-notes-fee .fee-label {
  color: #7a8ba8;
}
.stitch-detail-notes .stitch-detail-notes-fee .fee-value {
  color: #39e9c7;
  font-weight: 600;
}

.stitch-detail-actions {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  border-top: 1px solid #223355;
}

.stitch-btn-primary {
  width: 100%;
  padding: 12px 16px;
  background: #39e9c7;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0a0f1c;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.stitch-btn-primary i {
  font-size: 14px;
  color: inherit;
}
.stitch-btn-primary:hover {
  background: #5ef0d8;
}

.stitch-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stitch-btn-outline {
  padding: 10px 12px;
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #aab6cc;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stitch-btn-outline:hover {
  background: #111a2e;
  border-color: #2d4470;
  color: #e9f0ff;
}
.stitch-btn-outline.stitch-btn-danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}
.stitch-btn-outline.stitch-btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
}

.stitch-empty-state {
  padding: 64px;
  text-align: center;
}
.stitch-empty-state .stitch-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 12px;
  background: #111a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stitch-empty-state .stitch-empty-icon i {
  font-size: 32px;
  color: #7a8ba8;
  margin-bottom: 0;
}
.stitch-empty-state > i {
  font-size: 48px;
  color: #7a8ba8;
  margin-bottom: 16px;
  display: block;
}
.stitch-empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e9f0ff;
  margin-bottom: 8px;
}
.stitch-empty-state p {
  font-size: 14px;
  color: #aab6cc;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.stitch-empty-state .stitch-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #39e9c7;
  color: #0a0f1c;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.stitch-empty-state .stitch-btn-primary:hover {
  background: #5ef0d8;
  transform: translateY(-1px);
}
.stitch-empty-state .stitch-btn-primary i {
  font-size: 14px;
  color: inherit;
  margin-bottom: 0;
}

.stitch-loading {
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stitch-loading::after {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid #223355;
  border-top-color: #39e9c7;
  border-radius: 50%;
  animation: stitch-spin 0.6s linear infinite;
}

@keyframes stitch-spin {
  to {
    transform: rotate(360deg);
  }
}
.stitch-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: #39e9c7;
  color: #0a0f1c;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  animation: stitch-toast-in 0.3s ease;
}

@keyframes stitch-toast-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes stitch-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}
@media (max-width: 1024px) {
  .stitch-stats-row {
    grid-template-columns: 1fr;
  }
  .stitch-header {
    padding: 0 16px;
  }
  .stitch-header .stitch-sub-nav {
    display: none;
  }
  .stitch-header .stitch-user-info {
    display: none !important;
  }
  .stitch-content {
    padding: 16px;
  }
  .stitch-toolbar .stitch-search {
    min-width: 100%;
    order: 1;
  }
}
@media (max-width: 768px) {
  .stitch-table thead th,
  .stitch-table tbody td {
    padding: 12px 16px;
  }
  .stitch-env-switch {
    display: none !important;
  }
  .stitch-detail-drawer {
    width: 100%;
  }
  .stitch-detail-btn-group {
    grid-template-columns: 1fr;
  }
}
.bxc-body main [data-area=checkouts].bxc-active {
  display: block !important;
  margin: -24px -32px;
  width: calc(100% + 64px);
}

.stitch-checkouts-content .stitch-toolbar {
  margin-bottom: 24px;
}

.stitch-checkouts-table .checkout-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stitch-checkouts-table .checkout-type-badge.type-inline {
  background: rgba(57, 233, 199, 0.15);
  color: #39e9c7;
  border: 1px solid rgba(57, 233, 199, 0.3);
}
.stitch-checkouts-table .checkout-type-badge.type-link {
  background: rgba(83, 169, 255, 0.15);
  color: #53a9ff;
  border: 1px solid rgba(83, 169, 255, 0.3);
}
.stitch-checkouts-table .checkout-type-badge.type-popup {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.stitch-checkouts-table .checkout-type-badge.type-hidden {
  background: rgba(122, 139, 168, 0.15);
  color: #7a8ba8;
  border: 1px solid rgba(122, 139, 168, 0.3);
}
.stitch-checkouts-table .checkout-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.stitch-checkouts-table .checkout-actions .stitch-action-btn {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid #223355;
  border-radius: 6px;
  color: #aab6cc;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.stitch-checkouts-table .checkout-actions .stitch-action-btn:hover {
  background: #111a2e;
  border-color: #39e9c7;
  color: #39e9c7;
}
.stitch-checkouts-table .checkout-actions .stitch-action-btn i {
  font-size: 12px;
}

.stitch-empty-state .stitch-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 12px;
  background: #111a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stitch-empty-state .stitch-empty-icon i {
  font-size: 32px;
  color: #7a8ba8;
  margin: 0;
}
.stitch-empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e9f0ff;
  margin-bottom: 8px;
}
.stitch-empty-state p {
  margin-bottom: 24px;
}

.stitch-checkouts-form-view {
  max-width: 1200px;
}

.stitch-form-header {
  margin-bottom: 24px;
}

.stitch-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: #7a8ba8;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 16px;
}
.stitch-back-btn i {
  font-size: 14px;
}
.stitch-back-btn:hover {
  color: #39e9c7;
}

.stitch-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid #223355;
  border-radius: 8px;
  color: #aab6cc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: max-content;
}
.stitch-btn-back i {
  font-size: 14px;
  flex-shrink: 0;
}
.stitch-btn-back:hover {
  border-color: #39e9c7;
  color: #39e9c7;
  background: rgba(57, 233, 199, 0.05);
}

.stitch-form-title {
  font-size: 24px;
  font-weight: 700;
  color: #e9f0ff;
  letter-spacing: -0.3px;
}

.stitch-form-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .stitch-form-layout {
    grid-template-columns: 1fr;
  }
}

.stitch-form-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stitch-form-section {
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 12px;
  padding: 24px;
}

.stitch-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #e9f0ff;
  margin-bottom: 20px;
}

.stitch-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 16px;
}
.stitch-section-header .stitch-section-title {
  margin-bottom: 0;
}
.stitch-section-header .stitch-collapse-icon {
  font-size: 14px;
  color: #7a8ba8;
  transition: transform 0.2s;
}

.stitch-collapsible.collapsed .stitch-collapsible-content {
  display: none;
}
.stitch-collapsible.collapsed .stitch-collapse-icon {
  transform: rotate(-90deg);
}

.stitch-form-group {
  margin-bottom: 20px;
}
.stitch-form-group:last-child {
  margin-bottom: 0;
}

.stitch-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .stitch-form-row {
    grid-template-columns: 1fr;
  }
}

.stitch-form-group-half {
  margin-bottom: 0;
}

.stitch-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stitch-input,
.stitch-textarea,
.stitch-select {
  width: 100%;
  padding: 12px 16px;
  background: #162033;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 15px;
  color: #e9f0ff;
  transition: all 0.2s;
}
.stitch-input::placeholder,
.stitch-textarea::placeholder,
.stitch-select::placeholder {
  color: #7a8ba8;
}
.stitch-input:hover,
.stitch-textarea:hover,
.stitch-select:hover {
  border-color: #2d4470;
}
.stitch-input:focus,
.stitch-textarea:focus,
.stitch-select:focus {
  outline: none;
  border-color: #39e9c7;
  box-shadow: 0 0 0 3px rgba(57, 233, 199, 0.15);
}

.stitch-textarea {
  resize: vertical;
  min-height: 80px;
}

.stitch-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8ba8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.stitch-input-with-prefix {
  display: flex;
  align-items: stretch;
}
.stitch-input-with-prefix .stitch-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #111a2e;
  border: 1px solid #223355;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  color: #7a8ba8;
  white-space: nowrap;
}
.stitch-input-with-prefix .stitch-input {
  border-radius: 0 8px 8px 0;
}

.stitch-input-hint {
  display: block;
  font-size: 12px;
  color: #7a8ba8;
  margin-top: 8px;
}

.stitch-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stitch-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #162033;
  border-radius: 8px;
}

.stitch-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stitch-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #e9f0ff;
}

.stitch-toggle-desc {
  font-size: 12px;
  color: #7a8ba8;
}

.stitch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.stitch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.stitch-toggle input:checked + .stitch-toggle-slider {
  background: #39e9c7;
}
.stitch-toggle input:checked + .stitch-toggle-slider::before {
  transform: translateX(20px);
}

.stitch-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #111a2e;
  border-radius: 9999px;
  transition: all 0.2s;
}
.stitch-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.2s;
}

.stitch-form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 1024px) {
  .stitch-form-sidebar {
    order: -1;
  }
}

.stitch-sidebar-card {
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 12px;
  padding: 20px;
}

.stitch-sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e9f0ff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #223355;
}
.stitch-sidebar-card-header i {
  font-size: 16px;
  color: #39e9c7;
}

.stitch-integration-item {
  margin-bottom: 16px;
}
.stitch-integration-item:last-child {
  margin-bottom: 0;
}

.stitch-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #162033;
  border-radius: 6px;
  margin-top: 8px;
}

.stitch-code-text {
  flex: 1;
  font-family: monospace;
  font-size: 12px;
  color: #aab6cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stitch-copy-btn {
  padding: 8px;
  background: transparent;
  border: none;
  color: #7a8ba8;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}
.stitch-copy-btn:hover {
  background: #111a2e;
  color: #39e9c7;
}
.stitch-copy-btn i {
  font-size: 14px;
}

.stitch-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stitch-stats-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.stitch-stats-label {
  font-size: 13px;
  color: #7a8ba8;
}

.stitch-stats-value {
  font-size: 13px;
  font-weight: 500;
  color: #e9f0ff;
}
.stitch-stats-value.stitch-stats-mono {
  font-family: monospace;
  color: #39e9c7;
}
.stitch-stats-value.stitch-stats-success {
  color: #39e9c7;
}

.stitch-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #223355;
}

.stitch-form-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stitch-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid #ef4444;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s;
}
.stitch-btn-danger i {
  font-size: 14px;
}
.stitch-btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.stitch-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #aab6cc;
  cursor: pointer;
  transition: all 0.2s;
}
.stitch-btn-outline:hover {
  background: #111a2e;
  border-color: #2d4470;
  color: #e9f0ff;
}

.stitch-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 1024px) {
  .stitch-balance-grid {
    grid-template-columns: 1fr;
  }
}

.stitch-balance-card {
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.stitch-balance-card-main {
  background: linear-gradient(135deg, rgba(57, 233, 199, 0.12) 0%, #0d1425 60%);
  border-color: rgba(57, 233, 199, 0.25);
}
.stitch-balance-card-main .stitch-balance-card-bg {
  position: absolute;
  right: 20px;
  bottom: 20px;
  opacity: 0.12;
  pointer-events: none;
}
.stitch-balance-card-main .stitch-balance-card-bg i {
  font-size: 80px;
  color: #39e9c7;
  filter: blur(1px);
}
.stitch-balance-card-main .stitch-balance-card-content {
  position: relative;
  z-index: 1;
}

.stitch-balance-label {
  font-size: 13px;
  font-weight: 500;
  color: #7a8ba8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stitch-balance-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.stitch-balance-amount {
  font-size: 32px;
  font-weight: 700;
  color: #e9f0ff;
  letter-spacing: -0.5px;
}

.stitch-balance-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 9999px;
}
.stitch-balance-change.positive {
  color: #39e9c7;
  background: rgba(57, 233, 199, 0.15);
}
.stitch-balance-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
.stitch-balance-change i {
  font-size: 12px;
}

.stitch-balance-actions {
  display: flex;
  gap: 12px;
}
.stitch-balance-actions .stitch-btn {
  flex: 1;
  min-width: 140px;
}
.stitch-balance-actions .stitch-btn-outline {
  background: transparent;
  border: 1px solid rgba(57, 233, 199, 0.4);
  color: #39e9c7;
}
.stitch-balance-actions .stitch-btn-outline:hover {
  background: rgba(57, 233, 199, 0.1);
  border-color: #39e9c7;
}
.stitch-balance-actions .stitch-btn-outline i {
  opacity: 0.8;
}

.stitch-allocation-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stitch-allocation-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.stitch-allocation-title i {
  color: #39e9c7;
  font-size: 16px;
}

.stitch-allocation-bar {
  display: flex;
  height: 10px;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(122, 139, 168, 0.1);
  margin-bottom: 20px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stitch-allocation-segment {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.stitch-allocation-segment::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 9999px 9999px 0 0;
}
.stitch-allocation-segment:first-child {
  border-radius: 9999px 0 0 9999px;
}
.stitch-allocation-segment:last-child {
  border-radius: 0 9999px 9999px 0;
}
.stitch-allocation-segment:only-child {
  border-radius: 9999px;
}

.stitch-allocation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: auto;
}

.stitch-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #223355;
}

.stitch-table-title {
  font-size: 15px;
  font-weight: 600;
  color: #e9f0ff;
}

.stitch-table-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stitch-refresh-timer {
  font-size: 12px;
  color: #7a8ba8;
}
.stitch-refresh-timer span {
  font-weight: 600;
  color: #39e9c7;
}

.stitch-refresh-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #223355;
  border-radius: 6px;
  color: #7a8ba8;
  cursor: pointer;
  transition: all 0.2s;
}
.stitch-refresh-btn:hover {
  background: #111a2e;
  color: #39e9c7;
  border-color: #39e9c7;
}
.stitch-refresh-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.stitch-table-wrapper {
  overflow-x: auto;
}

.stitch-assets-table th, .stitch-assets-table td {
  padding: 16px 20px;
}
.stitch-assets-table .stitch-asset-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stitch-assets-table .stitch-asset-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stitch-assets-table .stitch-asset-icon img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.stitch-assets-table .stitch-asset-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stitch-assets-table .stitch-asset-name {
  font-weight: 600;
  font-size: 14px;
  color: #e9f0ff;
}
.stitch-assets-table .stitch-asset-symbol {
  font-size: 12px;
  color: #7a8ba8;
  text-transform: uppercase;
}
.stitch-assets-table .stitch-price-cell {
  font-weight: 500;
  font-size: 14px;
  color: #aab6cc;
}
.stitch-assets-table .stitch-balance-cell {
  font-weight: 600;
  font-size: 14px;
  color: #e9f0ff;
}
.stitch-assets-table .stitch-network-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(57, 233, 199, 0.1);
  border: 1px solid rgba(57, 233, 199, 0.2);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #39e9c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stitch-assets-table .stitch-value-cell {
  font-weight: 600;
  font-size: 14px;
  color: #e9f0ff;
}

.stitch-table-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: #111a2e;
  border-top: 1px solid #223355;
  font-size: 12px;
  color: #7a8ba8;
}
.stitch-table-footer i {
  color: #39e9c7;
}

.stitch-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 12px;
  margin-top: 24px;
}
.stitch-info-card.stitch-info-card-blue {
  background: rgba(57, 233, 199, 0.08);
  border-color: rgba(57, 233, 199, 0.2);
}

.stitch-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 233, 199, 0.15);
  border-radius: 8px;
  flex-shrink: 0;
}
.stitch-info-icon i {
  font-size: 20px;
  color: #39e9c7;
}

.stitch-info-content {
  flex: 1;
}

.stitch-info-title {
  font-size: 14px;
  font-weight: 600;
  color: #e9f0ff;
  margin-bottom: 4px;
}

.stitch-info-text {
  font-size: 13px;
  color: #aab6cc;
  line-height: 1.5;
}

.bxc-body main [data-area=account].bxc-active {
  margin: -24px -32px;
  width: calc(100% + 64px);
}

.stitch-credit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.stitch-credit-title-area {
  display: flex;
  flex-direction: column;
}

.stitch-credit-label {
  font-size: 11px;
  font-weight: 600;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stitch-credit-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stitch-credit-currency {
  font-size: 16px;
  font-weight: 500;
  color: #7a8ba8;
}

.stitch-credit-amount {
  font-size: 48px;
  font-weight: 700;
  color: #e9f0ff;
  letter-spacing: -2px;
  line-height: 1;
}

.stitch-credit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 233, 199, 0.08);
  border: 1px solid rgba(57, 233, 199, 0.3);
  border-radius: 8px;
  color: rgba(57, 233, 199, 0.7);
}
.stitch-credit-icon svg {
  width: 22px;
  height: 22px;
}

.stitch-topup-custom-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.stitch-topup-custom-row .stitch-custom-input-wrap {
  flex: 1;
  min-width: 0;
}
.stitch-topup-custom-row .stitch-btn.stitch-btn-primary {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 0 24px !important;
  font-size: 13px !important;
}

.stitch-custom-input-wrap {
  display: flex;
  align-items: center;
  background: #162033;
  border: 1px solid #223355;
  border-radius: 8px;
  overflow: hidden;
}
.stitch-custom-input-wrap .stitch-custom-prefix {
  padding: 0 8px 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: #7a8ba8;
}
.stitch-custom-input-wrap .stitch-custom-input {
  flex: 1;
  padding: 16px 16px 16px 0;
  background: transparent;
  border: none;
  font-size: 16px;
  color: #e9f0ff;
  outline: none;
  min-width: 0;
}
.stitch-custom-input-wrap .stitch-custom-input::placeholder {
  color: #7a8ba8;
}
.stitch-custom-input-wrap:focus-within {
  border-color: #39e9c7;
  box-shadow: 0 0 0 3px rgba(57, 233, 199, 0.15);
}

.stitch-plan-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: start;
}

.stitch-plan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.stitch-plan-title {
  font-size: 16px;
  font-weight: 600;
  color: #e9f0ff;
}

.stitch-plan-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.stitch-plan-expiry {
  font-size: 13px;
  color: #7a8ba8;
  margin: 0;
  text-align: right;
}

.stitch-plan-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.stitch-credential-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.stitch-credential-field {
  flex: 1;
  padding: 12px 16px;
  background: #162033;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 14px;
  color: #e9f0ff;
  font-family: "SF Mono", "Monaco", monospace;
}

.stitch-url-input-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
}

.stitch-url-field {
  flex: 1;
  padding: 12px 16px;
  background: #162033;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 13px;
  color: #e9f0ff;
}
.stitch-url-field:focus {
  outline: none;
  border-color: #39e9c7;
  box-shadow: 0 0 0 3px rgba(57, 233, 199, 0.15);
}

.stitch-btn.stitch-btn-save {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 0 24px !important;
  font-size: 12px !important;
  background: transparent !important;
  border: 1px solid #39e9c7 !important;
  color: #39e9c7 !important;
  border-radius: 8px;
  cursor: pointer;
}
.stitch-btn.stitch-btn-save:hover {
  background: rgba(57, 233, 199, 0.1) !important;
}

.stitch-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stitch-status-badge.completed {
  background: rgba(57, 233, 199, 0.15);
  color: #39e9c7;
}
.stitch-status-badge.pending {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
}

.stitch-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.stitch-date-cell {
  white-space: nowrap;
  font-size: 13px;
  color: #aab6cc;
}

.stitch-icon-btn-sm {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #223355;
  border-radius: 6px;
  color: #7a8ba8;
  cursor: pointer;
  transition: all 0.2s;
}
.stitch-icon-btn-sm:hover {
  background: #111a2e;
  color: #39e9c7;
  border-color: #39e9c7;
}

.stitch-code-input {
  width: 120px;
  padding: 12px 16px;
  background: #162033;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 14px;
  color: #e9f0ff;
  text-align: center;
  letter-spacing: 2px;
}
.stitch-code-input:focus {
  outline: none;
  border-color: #39e9c7;
}

.stitch-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.stitch-alert > i {
  font-size: 18px;
  flex-shrink: 0;
}
.stitch-alert > span {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}
.stitch-alert.stitch-alert-warning {
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: #f5a623;
}
.stitch-alert.stitch-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.stitch-alert.stitch-alert-info {
  background: rgba(83, 169, 255, 0.12);
  border: 1px solid rgba(83, 169, 255, 0.3);
  color: #53a9ff;
}

.stitch-alert-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.stitch-alert-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.stitch-alert-dismiss {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 4px;
  transition: opacity 0.2s;
}
.stitch-alert-dismiss:hover {
  opacity: 1;
}

.stitch-account-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1200px) {
  .stitch-account-grid {
    grid-template-columns: 1fr;
  }
}

.stitch-account-left,
.stitch-account-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stitch-card {
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 12px;
  padding: 24px;
}

.stitch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stitch-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #e9f0ff;
  margin: 0;
}

.stitch-card-desc {
  font-size: 13px;
  color: #7a8ba8;
  margin-bottom: 20px;
}

.stitch-credit-card {
  background: linear-gradient(135deg, rgba(57, 233, 199, 0.08) 0%, #0d1425 60%);
  border-color: rgba(57, 233, 199, 0.2);
}

.stitch-credit-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.stitch-credit-currency {
  font-size: 18px;
  font-weight: 500;
  color: #7a8ba8;
}

.stitch-credit-amount {
  font-size: 42px;
  font-weight: 700;
  color: #e9f0ff;
  letter-spacing: -1px;
}

.stitch-credit-topup {
  border-top: 1px solid #223355;
  padding-top: 20px;
}

.stitch-topup-label {
  font-size: 12px;
  font-weight: 600;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.stitch-topup-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.stitch-topup-btn {
  flex: 1;
  padding: 12px 16px;
  background: #111a2e;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e9f0ff;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}
.stitch-topup-btn:hover {
  background: #1a2844;
  border-color: #39e9c7;
  color: #39e9c7;
}

.stitch-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stitch-plan-badge.stitch-badge-pro {
  background: rgba(57, 233, 199, 0.15);
  color: #39e9c7;
  border: 1px solid rgba(57, 233, 199, 0.3);
}
.stitch-plan-badge.stitch-badge-free {
  background: rgba(122, 139, 168, 0.15);
  color: #7a8ba8;
  border: 1px solid rgba(122, 139, 168, 0.3);
}

.stitch-plan-badge-large {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stitch-plan-badge-large.stitch-badge-pro {
  background: linear-gradient(135deg, rgba(57, 233, 199, 0.2), rgba(57, 233, 199, 0.1));
  color: #39e9c7;
  border: 1px solid rgba(57, 233, 199, 0.4);
}
.stitch-plan-badge-large.stitch-badge-free {
  background: rgba(122, 139, 168, 0.1);
  color: #7a8ba8;
  border: 1px solid rgba(122, 139, 168, 0.3);
}

.stitch-plan-expiry {
  font-size: 13px;
  color: #7a8ba8;
  margin-bottom: 16px;
}

.stitch-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.stitch-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #7a8ba8;
}
.stitch-feature-item i {
  font-size: 14px;
  color: #7a8ba8;
  opacity: 0.5;
}
.stitch-feature-item.active {
  color: #e9f0ff;
}
.stitch-feature-item.active i {
  color: #39e9c7;
  opacity: 1;
}

.stitch-subscription-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stitch-btn-block {
  width: 100%;
}

.stitch-btn-dark {
  background: #111a2e;
  border: 1px solid #223355;
  color: #aab6cc;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.stitch-btn-dark:hover {
  background: #1a2844;
  border-color: #2d4470;
}

.stitch-tabs-underline {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #223355;
  margin-bottom: 20px;
}

.stitch-tab-underline {
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: #7a8ba8;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.stitch-tab-underline:hover:not(.active) {
  color: #e9f0ff;
}
.stitch-tab-underline.active {
  color: #39e9c7;
  font-weight: 600;
  border-bottom-color: #39e9c7;
}

.stitch-billing-panel {
  display: none;
}
.stitch-billing-panel.active {
  display: block;
}

.stitch-billing-table th, .stitch-billing-table td {
  padding: 12px 16px;
}
.stitch-billing-table th {
  font-size: 11px;
}
.stitch-billing-table td {
  font-size: 13px;
}
.stitch-billing-table .stitch-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stitch-billing-table .stitch-status.completed {
  background: rgba(57, 233, 199, 0.15);
  color: #39e9c7;
}
.stitch-billing-table .stitch-status.pending {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
}

.stitch-mono {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 12px;
}

.stitch-amount-cell {
  font-weight: 600;
  color: #39e9c7;
}

.stitch-invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #39e9c7;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.stitch-invoice-link:hover {
  opacity: 0.8;
}

.stitch-text-muted {
  color: #7a8ba8;
}

.stitch-text-error {
  color: #ef4444 !important;
}

.stitch-table-footer-link {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid #223355;
}
.stitch-table-footer-link a {
  font-size: 13px;
  font-weight: 500;
}

.stitch-empty-state-small {
  padding: 32px 16px;
  text-align: center;
}
.stitch-empty-state-small p {
  font-size: 13px;
  color: #7a8ba8;
  margin: 0;
}

.stitch-credential-row {
  margin-bottom: 20px;
}
.stitch-credential-row:last-child {
  margin-bottom: 0;
}

.stitch-credential-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.stitch-credential-input .stitch-input {
  flex: 1;
}

.stitch-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111a2e;
  border: 1px solid #223355;
  border-radius: 6px;
  color: #7a8ba8;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.stitch-icon-btn:hover {
  background: #1a2844;
  color: #39e9c7;
  border-color: #39e9c7;
}

.stitch-input-hint {
  font-size: 12px;
  color: #7a8ba8;
  margin-top: 8px;
}

.stitch-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(34, 51, 85, 0.5);
}
.stitch-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.stitch-detail-row:first-child {
  padding-top: 0;
}
.stitch-detail-row.stitch-detail-plan {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.stitch-detail-label {
  font-size: 12px;
  font-weight: 500;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stitch-detail-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #e9f0ff;
}

.stitch-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #111a2e;
  border-radius: 8px;
  margin-bottom: 16px;
}

.stitch-security-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stitch-security-label {
  font-size: 14px;
  font-weight: 500;
  color: #e9f0ff;
}

.stitch-security-desc {
  font-size: 12px;
  color: #7a8ba8;
}

.stitch-security-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.stitch-2fa-verify {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-divider {
  border: none;
  border-top: 1px solid #223355;
  margin: 16px 0;
}

.stitch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #39e9c7;
  text-decoration: none;
  transition: opacity 0.2s;
}
.stitch-link:hover {
  opacity: 0.8;
}

.stitch-link-primary {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #39e9c7;
  text-decoration: none;
  margin-top: 16px;
  transition: opacity 0.2s;
  cursor: pointer;
}
.stitch-link-primary:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.stitch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.stitch-btn i {
  font-size: 14px;
}

.stitch-btn-primary {
  background: #39e9c7;
  color: #0a0f1c;
}
.stitch-btn-primary:hover {
  background: #5ef0d8;
}

.stitch-btn-outline {
  background: transparent;
  border: 1px solid #223355;
  color: #aab6cc;
}
.stitch-btn-outline:hover {
  background: #111a2e;
  border-color: #39e9c7;
  color: #39e9c7;
}

.stitch-input {
  width: 100%;
  padding: 12px 16px;
  background: #162033;
  border: 1px solid #223355;
  border-radius: 8px;
  font-size: 14px;
  color: #e9f0ff;
  transition: all 0.2s;
}
.stitch-input::placeholder {
  color: #7a8ba8;
}
.stitch-input:hover {
  border-color: #2d4470;
}
.stitch-input:focus {
  outline: none;
  border-color: #39e9c7;
  box-shadow: 0 0 0 3px rgba(57, 233, 199, 0.15);
}

.stitch-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #7a8ba8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stitch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.stitch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.stitch-toggle input:checked + .stitch-toggle-slider {
  background: #39e9c7;
}
.stitch-toggle input:checked + .stitch-toggle-slider::before {
  transform: translateX(20px);
}

.stitch-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #111a2e;
  border: 1px solid #223355;
  border-radius: 9999px;
  transition: all 0.2s;
}
.stitch-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: all 0.2s;
}

.stitch-stats-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) {
  .stitch-stats-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .stitch-stats-row-4 {
    grid-template-columns: 1fr;
  }
}

[data-area=analytics].bxc-active {
  margin: -24px -32px;
  width: calc(100% + 64px);
}
[data-area=analytics] .stitch-period-selector {
  display: flex;
  background: #111a2e;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid #223355;
  gap: 2px;
}
[data-area=analytics] .stitch-period-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #7a8ba8;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
[data-area=analytics] .stitch-period-btn:hover {
  color: #e9f0ff;
  background: rgba(57, 233, 199, 0.1);
}
[data-area=analytics] .stitch-period-btn.active {
  background: #39e9c7;
  color: #0a0f1c;
}
[data-area=analytics] .stitch-btn-outline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #aab6cc;
  background: transparent;
  border: 1px solid #223355;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
[data-area=analytics] .stitch-btn-outline i {
  font-size: 14px;
}
[data-area=analytics] .stitch-btn-outline:hover {
  border-color: #39e9c7;
  color: #39e9c7;
}
[data-area=analytics] .stitch-analytics-chart-card {
  margin-bottom: 20px;
}
[data-area=analytics] .stitch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #223355;
}
[data-area=analytics] .stitch-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #e9f0ff;
  margin: 0;
}
[data-area=analytics] .stitch-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
[data-area=analytics] .stitch-card-link {
  font-size: 13px;
  font-weight: 500;
  color: #39e9c7;
  text-decoration: none;
  transition: color 0.2s;
}
[data-area=analytics] .stitch-card-link:hover {
  color: #5ef0d8;
}
[data-area=analytics] .stitch-select-minimal {
  position: relative;
}
[data-area=analytics] .stitch-select-minimal .stitch-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #aab6cc;
  background: #111a2e;
  border: 1px solid #223355;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
[data-area=analytics] .stitch-select-minimal .stitch-select-btn i {
  font-size: 12px;
  transition: transform 0.2s;
}
[data-area=analytics] .stitch-select-minimal .stitch-select-btn:hover {
  border-color: #2d4470;
  color: #e9f0ff;
}
[data-area=analytics] .stitch-select-minimal.active .stitch-select-btn i {
  transform: rotate(180deg);
}
[data-area=analytics] .stitch-select-minimal .stitch-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 160px;
  background: #111a2e;
  border: 1px solid #223355;
  border-radius: 8px;
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
[data-area=analytics] .stitch-select-minimal .stitch-select-dropdown li {
  padding: 8px 12px;
  font-size: 13px;
  color: #aab6cc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
[data-area=analytics] .stitch-select-minimal .stitch-select-dropdown li:hover {
  background: rgba(57, 233, 199, 0.1);
  color: #e9f0ff;
}
[data-area=analytics] .stitch-select-minimal .stitch-select-dropdown li.active {
  color: #39e9c7;
  background: rgba(57, 233, 199, 0.15);
}
[data-area=analytics] .stitch-select-minimal.active .stitch-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
[data-area=analytics] .stitch-chart-container {
  padding: 20px;
  height: 320px;
  position: relative;
}
[data-area=analytics] .stitch-chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}
[data-area=analytics] .stitch-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  [data-area=analytics] .stitch-analytics-grid {
    grid-template-columns: 1fr;
  }
}
[data-area=analytics] .stitch-status-list {
  padding: 16px 20px;
}
[data-area=analytics] .stitch-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(34, 51, 85, 0.5);
}
[data-area=analytics] .stitch-status-item:last-child {
  border-bottom: none;
}
[data-area=analytics] .stitch-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
[data-area=analytics] .stitch-status-dot.stitch-status-dot-success {
  background: #39e9c7;
  box-shadow: 0 0 8px rgba(57, 233, 199, 0.5);
}
[data-area=analytics] .stitch-status-dot.stitch-status-dot-pending {
  background: #f5a623;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.5);
}
[data-area=analytics] .stitch-status-dot.stitch-status-dot-expired {
  background: #7a8ba8;
  box-shadow: 0 0 8px rgba(122, 139, 168, 0.3);
}
[data-area=analytics] .stitch-status-dot.stitch-status-dot-underpaid {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
[data-area=analytics] .stitch-status-label {
  flex: 1;
  font-size: 14px;
  color: #aab6cc;
}
[data-area=analytics] .stitch-status-count {
  font-size: 15px;
  font-weight: 600;
  color: #e9f0ff;
  font-variant-numeric: tabular-nums;
}
[data-area=analytics] .stitch-currency-list {
  padding: 16px 20px;
}
[data-area=analytics] .stitch-currency-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(34, 51, 85, 0.5);
}
[data-area=analytics] .stitch-currency-item:last-child {
  border-bottom: none;
}
[data-area=analytics] .stitch-currency-item .stitch-crypto-icon {
  flex-shrink: 0;
}
[data-area=analytics] .stitch-currency-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #e9f0ff;
}
[data-area=analytics] .stitch-currency-amount {
  font-size: 14px;
  font-weight: 600;
  color: #39e9c7;
  margin-right: 8px;
}
[data-area=analytics] .stitch-currency-count {
  font-size: 12px;
  color: #7a8ba8;
  padding: 4px 8px;
  background: #111a2e;
  border-radius: 4px;
}
[data-area=analytics] .stitch-empty-state {
  text-align: center;
  padding: 32px 16px;
  color: #7a8ba8;
  font-size: 14px;
}

.stitch-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.stitch-modal.active {
  opacity: 1;
  visibility: visible;
}
.stitch-modal.active .stitch-modal-content {
  transform: translateY(0) scale(1);
}

.stitch-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.stitch-modal-content {
  position: relative;
  background: #0d1425;
  border: 1px solid #223355;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.stitch-modal-content.stitch-modal-sm {
  max-width: 500px;
}

.stitch-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #223355;
}

.stitch-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #e9f0ff;
  margin: 0;
}

.stitch-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #7a8ba8;
  font-size: 24px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}
.stitch-modal-close:hover {
  background: #111a2e;
  color: #e9f0ff;
}

.stitch-modal-body {
  padding: 20px;
}

.stitch-modal-desc {
  font-size: 14px;
  color: #aab6cc;
  margin: 0 0 16px;
  line-height: 1.5;
}

.stitch-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #223355;
}

.stitch-qr-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 0;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  overflow: hidden;
}
.stitch-qr-container iframe {
  width: 280px;
  height: 280px;
  border: none;
  overflow: hidden;
  display: block;
}
.stitch-qr-container iframe::-webkit-scrollbar {
  display: none;
}
.stitch-qr-container iframe {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
