:root {
   --primary: #159447;
   --primary-rgb: 21, 148, 71;
   --primary-2: #44c875;
   --bg: #f4f8f5;
   --surface: #fff;
   --surface-2: #f7faf8;
   --border: #dce8df;
   --text: #13251a;
   --muted: #6c7d72;
   --sidebar: #fff;
   --shadow: 0 18px 50px rgba(22, 73, 40, 0.08);
   --radius: 16px;
   --sidebar-width: 254px;
   --header-height: 72px;
}

/* Regular */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* SemiBold */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* V5.2 transaction submenu */
.side-menu {
   display: block;
   margin: 2px 0;
}
.side-menu > summary {
   width: 100%;
   list-style: none;
   cursor: pointer;
   user-select: none;
}
.side-menu > summary::-webkit-details-marker {
   display: none;
}
.side-menu-chevron {
   min-width: auto !important;
   margin-left: auto;
   font-size: 0.72rem !important;
   transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.side-menu[open] > .side-link {
   color: var(--primary);
   background: rgba(var(--primary-rgb), 0.08);
}
.side-menu[open] .side-menu-chevron {
   transform: rotate(180deg);
}
.side-submenu {
   display: grid !important;
   grid-template-columns: minmax(0, 1fr) !important;
   gap: 2px;
   margin: 3px 0 6px 20px;
   padding: 3px 0 3px 12px;
   border-left: 1px solid rgba(var(--primary-rgb), 0.22);
   overflow: hidden;
   transform-origin: top;
   will-change: height, opacity, transform;
}
.side-submenu-link {
   width: 100% !important;
   min-width: 0;
   min-height: 37px;
   display: grid !important;
   grid-template-columns: 18px minmax(0, 1fr);
   align-items: center;
   column-gap: 8px;
   padding: 6px 9px;
   border-radius: 8px;
   color: var(--muted);
   font-size: 0.78rem;
   font-weight: 600;
   line-height: 1.25;
   white-space: normal;
}
.side-submenu-link i {
   font-size: 0.86rem;
   text-align: center;
}
.side-submenu-link:hover,
.side-submenu-link.active {
   color: var(--primary);
   background: rgba(var(--primary-rgb), 0.08);
}
.sidebar-collapsed .side-menu-chevron,
.sidebar-collapsed .side-submenu {
   display: none !important;
}
@media (prefers-reduced-motion: reduce) {
   .side-menu-chevron {
      transition: none;
   }
}
[data-theme="dark"] {
   --primary: #18c779;
   --primary-rgb: 24, 199, 121;
   --primary-2: #56e2a1;
   --bg: #061018;
   --surface: #0b1720;
   --surface-2: #101e28;
   --border: #203541;
   --text: #edf9f3;
   --muted: #91a5a0;
   --sidebar: #08141c;
   --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] {
   --primary: #1769ff;
   --primary-rgb: 23, 105, 255;
   --primary-2: #5e99ff;
   --bg: #f4f7fc;
   --surface: #fff;
   --surface-2: #f7f9fd;
   --border: #dce5f3;
   --text: #10213b;
   --muted: #70809a;
   --sidebar: #fff;
   --shadow: 0 18px 50px rgba(35, 70, 125, 0.09);
}

[data-theme="emerald"] {
   --primary: #10b981;
   --primary-rgb: 16, 185, 129;
   --primary-2: #34d399;
   --bg: #071713;
   --surface: #0d211b;
   --surface-2: #122b23;
   --border: #24483a;
   --text: #e8fff5;
   --muted: #91b5a6;
   --sidebar: #091c16;
   --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

[data-theme="light-blue"] {
   --primary: #168de2;
   --primary-rgb: 22, 141, 226;
   --primary-2: #57b7f2;
   --bg: #e4f2fc;
   --surface: #f1f8fd;
   --surface-2: #eaf5fc;
   --border: #c8e0f1;
   --text: #142d40;
   --muted: #607d91;
   --sidebar: #eaf5fc;
   --shadow: 0 18px 50px rgba(27, 105, 157, 0.1);
}

[data-theme="purple"] {
   --primary: #9a28ff;
   --primary-rgb: 154, 40, 255;
   --primary-2: #d653ff;
   --bg: #0b0619;
   --surface: #130a27;
   --surface-2: #1a0e33;
   --border: #34205b;
   --text: #f7efff;
   --muted: #aa98c5;
   --sidebar: #100822;
   --shadow: 0 20px 65px rgba(82, 16, 142, 0.3);
}

[data-theme="dark-blue"] {
  --primary: #4f8cff;
  --primary-rgb: 79, 140, 255;
  --primary-2: #83b2ff;
  --bg: #07111f;
  --surface: #0d1b2e;
  --surface-2: #132640;
  --border: #244064;
  --text: #eaf2ff;
  --muted: #9aafcc;
  --sidebar: #09172a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

[data-theme="glassy-dark"] {
  --primary: #9b8cff;
  --primary-rgb: 155, 140, 255;
  --primary-2: #c0b6ff;
  --bg: #090c16;
  --surface: rgba(20, 26, 43, 0.76);
  --surface-2: rgba(31, 39, 61, 0.68);
  --border: rgba(190, 200, 235, 0.16);
  --text: #f1f2ff;
  --muted: #a6acc4;
  --sidebar: rgba(13, 18, 32, 0.88);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

[data-theme="glassy-dark"] body {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(105, 87, 220, 0.2), transparent 38%),
    radial-gradient(ellipse at 90% 20%, rgba(35, 139, 190, 0.14), transparent 34%),
    var(--bg);
}

[data-theme="glassy-dark"] .card,
[data-theme="glassy-dark"] .card-ui,
[data-theme="glassy-dark"] .sidebar,
[data-theme="glassy-dark"] .app-header,
[data-theme="glassy-dark"] .dropdown-menu,
[data-theme="glassy-dark"] [id^="offcanvasAction"] {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="ocean-dark"] {
  --primary: #18c6b0;
  --primary-rgb: 24, 198, 176;
  --primary-2: #66e5d3;
  --bg: #061719;
  --surface: #0a2225;
  --surface-2: #103135;
  --border: #1d4a4c;
  --text: #e6fffb;
  --muted: #91b9b5;
  --sidebar: #071d20;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark-executive-maroon"] {
   --primary: #b83252;
   --primary-rgb: 184, 50, 82;
   --primary-2: #e06a7f;
   --bg: #10090d;
   --surface: #1b1016;
   --surface-2: #25151d;
   --border: #46232f;
   --text: #f8edf1;
   --muted: #b49aa3;
   --sidebar: #160c12;
   --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

[data-theme="dark-rose-gold"] {
   --primary: #c58b75;
   --primary-rgb: 197, 139, 117;
   --primary-2: #e2b49e;
   --bg: #110e0d;
   --surface: #1c1715;
   --surface-2: #28201d;
   --border: #49352f;
   --text: #f7eee9;
   --muted: #b8a49b;
   --sidebar: #171210;
   --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}


* {
   box-sizing: border-box;
   scrollbar-width: thin;
}
html, body {
   margin: 0;
   font-family: "Space Grotesk", sans-serif;
   background: var(--bg);
   color: var(--text);
   min-height: 100vh;
   transition: background 0.25s, color 0.25s;
   height: 100vh;
   overflow-x: hidden;
}

a {
   color: var(--primary);
   text-decoration: none;
}
a:hover {
   color: var(--primary-2);
}
.text-muted {
   color: var(--muted) !important;
}
.text-body {
   color: var(--text) !important;
}
.btn {
   min-height: 30px;
   border-radius: 8px;
   font-weight: 700;
   font-size: 0.88rem;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
}
.btn-primary {
   --bs-btn-bg: var(--primary);
   --bs-btn-border-color: var(--primary);
   --bs-btn-hover-bg: var(--primary-2);
   --bs-btn-hover-border-color: var(--primary-2);
}
.btn-soft {
   color: var(--primary);
   background: rgba(var(--primary-rgb), 0.1);
   border: 1px solid rgba(var(--primary-rgb), 0.14);
}
.btn-outline-ui {
   color: var(--text);
   border: 1px solid var(--border);
   background: var(--surface);
}
.form-control,
.form-select,
.input-group-text {
   min-height: 38px;
   border-radius: 10px;
   border-color: var(--border);
   background-color: var(--surface-2);
   color: var(--text);
   font-size: 0.88rem;
}
.form-control:focus,
.form-select:focus {
   background: var(--surface);
   color: var(--text);
   border-color: var(--primary);
   box-shadow: 0 0 0 0.22rem rgba(var(--primary-rgb), 0.12);
}
.form-control::placeholder {
   color: var(--muted);
}
.form-label {
   font-size: 0.8rem;
   font-weight: 700;
}
.form-check-input:checked {
   background-color: var(--primary);
   border-color: var(--primary);
}
.card-ui {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--radius);
   box-shadow: var(--shadow);
}
.card {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--radius);
   box-shadow: var(--shadow);
}
.accordion {
   --bs-accordion-color: var(--text);
   --bs-accordion-bg: var(--surface);
   --bs-accordion-border-color: var(--border);
   --bs-accordion-border-radius: 0.5rem;
   --bs-accordion-inner-border-radius: 0.45rem;
   --bs-accordion-btn-color: var(--text);
   --bs-accordion-btn-bg: var(--surface);
   --bs-accordion-btn-focus-border-color: var(--primary);
   --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem
      rgba(var(--primary-rgb), 0.25);
   --bs-accordion-active-color: var(--primary-2);
   --bs-accordion-active-bg: var(--surface-2);
   --bs-accordion-body-bg: var(--surface);
}
.accordion-button::after {
   background-image: none;
   width: 1rem;
   height: 1rem;
   background-color: var(--muted);
   -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")
      no-repeat center/contain;
   mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")
      no-repeat center/contain;
}
.accordion-button:not(.collapsed)::after {
   background-color: var(--primary-2);
}
.accordion-item {
   box-shadow: var(--shadow);
}
.brand {
   display: flex;
   align-items: center;
   gap: 0.65rem;
   color: var(--text);
   font-family: "Space Grotesk", sans-serif;
   font-weight: 800;
   letter-spacing: -0.03em;
}
.brand-mark {
   width: 36px;
   height: 36px;
   border-radius: 11px;
   display: grid;
   place-items: center;
   color: white;
   background: linear-gradient(135deg, var(--primary), var(--primary-2));
   box-shadow: 0 9px 22px rgba(var(--primary-rgb), 0.24);
}
.header-actions {
   display: flex;
   align-items: center;
   gap: 9px;
}
.header-icon-btn {
   width: 46px;
   padding: 0;
}
.notification-count {
   position: absolute;
   right: -4px;
   top: -5px;
   min-width: 19px;
   height: 19px;
   padding: 0 5px;
   border-radius: 99px;
   display: grid;
   place-items: center;
   background: #ef476f;
   color: #fff;
   border: 2px solid var(--surface);
   font-size: 0.61rem;
   font-weight: 800;
}
.header-dropdown .dropdown-menu {
   background: var(--surface);
   color: var(--text);
   border: 1px solid var(--border);
   box-shadow: var(--shadow);
   border-radius: 14px;
   padding: 0;
   overflow: hidden;
}
.notification-menu {
   width: 380px;
}
.dropdown-head {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 17px 18px;
   border-bottom: 1px solid var(--border);
}
.dropdown-head strong,
.dropdown-head small {
   display: block;
}
.dropdown-head small {
   color: var(--muted);
   font-size: 0.69rem;
}
.dropdown-head .btn-link {
   color: var(--primary);
   text-decoration: none;
   font-size: 0.7rem;
   font-weight: 800;
}
.notification-item {
   display: flex;
   gap: 12px;
   padding: 14px 17px;
   color: var(--text);
   border-bottom: 1px solid var(--border);
   position: relative;
}
.notification-item:hover {
   color: var(--text);
   background: var(--surface-2);
}
.notification-item.unread {
   background: rgba(var(--primary-rgb), 0.045);
}
.notification-icon {
   width: 38px;
   height: 38px;
   flex: 0 0 38px;
   border-radius: 11px;
   display: grid;
   place-items: center;
   color: var(--primary);
   background: rgba(var(--primary-rgb), 0.11);
}
.notification-icon.warning {
   color: #bd7b00;
   background: rgba(255, 174, 0, 0.12);
}
.notification-icon.info {
   color: #3379df;
   background: rgba(51, 121, 223, 0.12);
}
.notification-item strong,
.notification-item small,
.notification-item time {
   display: block;
}
.notification-item strong {
   font-size: 0.78rem;
}
.notification-item small {
   font-size: 0.71rem;
   color: var(--muted);
   margin: 3px 0;
}
.notification-item time {
   font-size: 0.64rem;
   color: var(--primary);
   font-weight: 700;
}
.unread-dot {
   width: 7px;
   height: 7px;
   border-radius: 50%;
   background: var(--primary);
   position: absolute;
   right: 15px;
   top: 19px;
}
.notification-item:not(.unread) .unread-dot {
   display: none;
}
.dropdown-footer {
   display: flex;
   justify-content: center;
   gap: 7px;
   padding: 13px;
   color: var(--primary);
   font-size: 0.73rem;
   font-weight: 800;
}
.account-trigger {
   border: 0;
   background: transparent;
   display: flex;
   align-items: center;
   gap: 6px;
   padding: 3px;
   color: var(--muted);
}
.account-menu {
   width: 300px;
   padding: 8px !important;
}
.account-summary {
   display: flex;
   gap: 11px;
   padding: 11px;
}
.avatar-lg {
   width: 46px;
   height: 46px;
   flex-basis: 46px;
}
.account-summary strong,
.account-summary small,
.account-summary em {
   display: block;
}
.account-summary small {
   font-size: 0.69rem;
   color: var(--muted);
}
.account-summary em {
   font-size: 0.65rem;
   color: var(--primary);
   font-style: normal;
}
.account-menu .dropdown-divider {
   border-color: var(--border);
}
.account-menu .dropdown-item {
   display: flex;
   align-items: center;
   gap: 11px;
   border-radius: 9px;
   padding: 9px 10px;
   color: var(--text);
}
.account-menu .dropdown-item > i {
   width: 32px;
   height: 32px;
   border-radius: 9px;
   display: grid;
   place-items: center;
   color: var(--primary);
   background: rgba(var(--primary-rgb), 0.09);
}
.account-menu .dropdown-item b,
.account-menu .dropdown-item small {
   display: block;
   font-size: 0.75rem;
}
.account-menu .dropdown-item small {
   color: var(--muted);
   font-size: 0.64rem;
}
.account-menu .dropdown-item:hover {
   background: var(--surface-2);
   color: var(--text);
}
.account-menu .logout-item,
.account-menu .logout-item > i {
   color: #e74a5f;
}

/* Auth */
.auth-page {
   min-height: 100vh;
   display: grid;
   grid-template-columns: minmax(380px, 0.92fr) 1.08fr;
   background: var(--surface);
}
.auth-form-pane {
   padding: 32px clamp(28px, 6vw, 90px);
   display: flex;
   flex-direction: column;
   justify-content: center;
   position: relative;
   z-index: 2;
}
.auth-top {
   position: absolute;
   top: 24px;
   left: clamp(28px, 6vw, 90px);
   right: clamp(28px, 6vw, 90px);
   display: flex;
   justify-content: space-between;
   align-items: center;
}
.auth-box {
   width: 100%;
   max-width: 460px;
   margin: 50px auto 0;
}
.auth-box.wide {
   max-width: 570px;
}
.eyebrow {
   color: var(--primary);
   font-weight: 800;
   font-size: 0.75rem;
   letter-spacing: 0.12em;
   text-transform: uppercase;
}
.auth-title {
   font-family: "Space Grotesk";
   font-size: clamp(1.25rem, 2.2vw, 2.0rem);
   font-weight: 600;
   letter-spacing: -0.045em;
   margin: 0.5rem 0;
}
.auth-art {
   position: relative;
   overflow: hidden;
   display: grid;
   place-items: center;
   padding: 7%;
   background: linear-gradient(
         145deg,
         rgba(var(--primary-rgb), 0.16),
         rgba(var(--primary-rgb), 0.03)
      ),
      var(--bg);
}
.auth-art::before,
.auth-art::after {
   content: "";
   position: absolute;
   border: 1px solid rgba(var(--primary-rgb), 0.18);
   border-radius: 50%;
   width: 520px;
   height: 520px;
}
.auth-art::after {
   width: 330px;
   height: 330px;
}
.crypto-orbit {
   width: min(360px, 75%);
   aspect-ratio: 1;
   border-radius: 50%;
   display: grid;
   place-items: center;
   position: relative;
   background: radial-gradient(
      circle,
      rgba(var(--primary-rgb), 0.2),
      transparent 66%
   );
}
.coin {
   width: 150px;
   height: 150px;
   border-radius: 50%;
   display: grid;
   place-items: center;
   color: #fff;
   font: 800 3.8rem "Space Grotesk";
   background: linear-gradient(145deg, var(--primary-2), var(--primary));
   border: 10px solid rgba(255, 255, 255, 0.18);
   box-shadow: 0 28px 80px rgba(var(--primary-rgb), 0.38);
   position: relative;
   z-index: 2;
}
.orbit-dot {
   position: absolute;
   width: 48px;
   height: 48px;
   border-radius: 14px;
   background: var(--surface);
   border: 1px solid var(--border);
   box-shadow: var(--shadow);
   display: grid;
   place-items: center;
   color: var(--primary);
   font-size: 1.25rem;
}
.orbit-dot.one {
   top: 3%;
   right: 17%;
}
.orbit-dot.two {
   bottom: 9%;
   left: 6%;
}
.orbit-dot.three {
   bottom: 2%;
   right: 10%;
}
.security-panel {
   position: relative;
   z-index: 2;
   max-width: 430px;
   margin-top: 24px;
   padding: 18px 20px;
   background: rgba(var(--primary-rgb), 0.1);
   border: 1px solid rgba(var(--primary-rgb), 0.2);
   border-radius: 14px;
}
.password-wrap {
   position: relative;
}
.password-wrap .form-control {
   padding-right: 45px;
}
.password-eye {
   position: absolute;
   right: 12px;
   top: 50%;
   transform: translateY(-50%);
   border: 0;
   background: transparent;
   color: var(--muted);
}
.stepper {
   display: flex;
   align-items: center;
   margin: 1.4rem 0;
}
.step {
   display: flex;
   align-items: center;
   gap: 0.45rem;
   color: var(--muted);
   font-size: 0.75rem;
   font-weight: 700;
   flex: 1;
}
.step:not(:last-child)::after {
   content: "";
   height: 1px;
   background: var(--border);
   flex: 1;
}
.step-num {
   width: 24px;
   height: 24px;
   border-radius: 50%;
   display: grid;
   place-items: center;
   background: var(--surface-2);
   border: 1px solid var(--border);
}
.step.active {
   color: var(--primary);
}
.step.active .step-num {
   color: white;
   background: var(--primary);
   border-color: var(--primary);
}

/* App shell */
.sidebar {
   position: fixed;
   inset: 0 auto 0 0;
   width: var(--sidebar-width);
   background: var(--sidebar);
   border-right: 1px solid var(--border);
   z-index: 1040;
   display: flex;
   flex-direction: column;
   transition: width 0.25s, transform 0.25s;
}
.sidebar-head {
   height: var(--header-height);
   display: flex;
   align-items: center;
   padding: 0 20px;
   border-bottom: 1px solid var(--border);
}
.sidebar-nav {
   padding: 18px 12px;
   overflow-y: auto;
   flex: 1;
}
.nav-caption {
   padding: 11px 12px 7px;
   color: var(--muted);
   font-size: 0.65rem;
   text-transform: uppercase;
   letter-spacing: 0.12em;
   font-weight: 800;
   white-space: nowrap;
}
.side-link {
   min-height: 43px;
   padding: 0 12px;
   display: flex;
   align-items: center;
   gap: 12px;
   border-radius: 10px;
   color: var(--muted);
   font-size: 0.86rem;
   font-weight: 600;
   margin: 2px 0;
   white-space: nowrap;
   overflow: hidden;
}
.side-link i {
   font-size: 1.08rem;
   min-width: 20px;
}
.side-link:hover,
.side-link.active {
   color: var(--primary);
   background: rgba(var(--primary-rgb), 0.1);
}
.sidebar-foot {
   padding: 12px;
   border-top: 1px solid var(--border);
}
.sidebar-user {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 8px;
   border-radius: 10px;
   background: var(--surface-2);
   overflow: hidden;
   white-space: nowrap;
}
.avatar {
   width: 36px;
   height: 36px;
   flex: 0 0 36px;
   border-radius: 50%;
   display: grid;
   place-items: center;
   background: linear-gradient(135deg, var(--primary), var(--primary-2));
   color: #fff;
   font-weight: 800;
   font-size: 0.75rem;
}

input[type=number]{
    appearance: textfield;
    -moz-appearance: textfield;
}

.table img {
	width: 50px;
	height: 50px;
	border-radius: 10px;
}

/*
input[type="radio"] {
  -ms-transform: scale(1.5); 
  -webkit-transform: scale(1.5); 
  transform: scale(1.5);
}
*/
.app-header {
   position: fixed;
   top: 0;
   right: 0;
   left: var(--sidebar-width);
   height: var(--header-height);
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 26px;
   background: color-mix(in srgb, var(--surface) 90%, transparent);
   backdrop-filter: blur(16px);
   border-bottom: 1px solid var(--border);
   z-index: 1030;
   transition: left 0.25s;
}
.header-search {
   width: min(390px, 38vw);
   position: relative;
}
.header-search i {
   position: absolute;
   left: 14px;
   top: 50%;
   transform: translateY(-50%);
   color: var(--muted);
}
.header-search input {
   padding-left: 40px;
}
.app-main {
   margin-left: var(--sidebar-width);
   padding: calc(var(--header-height) + 28px) 20px 36px;
   min-height: 100vh;
   transition: margin-left 0.25s;
}
.sidebar-collapsed .sidebar {
   width: 78px;
}
.sidebar-collapsed .app-header {
   left: 78px;
}
.sidebar-collapsed .app-main {
   margin-left: 78px;
}
.sidebar-collapsed .brand-name,
.sidebar-collapsed .link-label,
.sidebar-collapsed .nav-caption,
.sidebar-collapsed .user-copy {
   display: none;
}
.sidebar-collapsed .sidebar-head {
   justify-content: center;
   padding: 0;
}
.sidebar-collapsed .side-link {
   justify-content: center;
   padding: 0;
}
.sidebar-collapsed .sidebar-user {
   justify-content: center;
   padding: 8px 0;
}
.page-title {
   font: 600 clamp(1.35rem, 2.2vw, 1.7rem) "Space Grotesk";
   letter-spacing: -0.035em;
   margin: 0;
}
.page-subtitle {
   font-size: 0.85rem;
   color: var(--muted);
   margin: 0.3rem 0 0;
}
.section-title {
   font: 700 1rem "Space Grotesk";
   margin: 0;
}
.stat-card {
   padding: 20px;
   height: 100%;
}
.stat-label {
   font-size: 0.7rem;
   color: var(--muted);
   font-weight: 700;
}

.stat-label-md {
   font-size: 1rem;
   color: var(--muted);
   font-weight: 700;
}
.stat-value {
   font: 700 1.1rem "Space Grotesk";
   letter-spacing: -0.04em;
   margin: 0.55rem 0;
}
.metric {
   font-size: 0.72rem;
   font-weight: 700;
   color: var(--primary);
}
.icon-box {
   width: 42px;
   height: 42px;
   border-radius: 12px;
   display: grid;
   place-items: center;
   color: var(--primary);
   background: rgba(var(--primary-rgb), 0.1);
   font-size: 1.15rem;
}
.mini-icon {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   display: grid;
   place-items: center;
   background: rgba(var(--primary-rgb), 0.1);
   color: var(--primary);
}
.chart {
   height: 180px;
   display: flex;
   align-items: flex-end;
   gap: 8px;
   padding-top: 20px;
}
.chart span {
   flex: 1;
   border-radius: 7px 7px 2px 2px;
   background: linear-gradient(
      to top,
      rgba(var(--primary-rgb), 0.18),
      var(--primary)
   );
   min-height: 16px;
   opacity: 0.85;
}
.table-ui {
   --bs-table-bg: transparent;
   --bs-table-color: var(--text);
   margin: 0;
}
.table-ui th {
   padding: 0.85rem 0.5rem;
   color: var(--muted);
   font-size: 0.68rem;
   text-transform: uppercase;
   letter-spacing: 0.07em;
   border-color: var(--border);
   font-weight: 800;
}
.table-ui td {
   padding: 0.6rem;
   vertical-align: middle;
   border-color: var(--border);
   font-size: 0.8rem;
}
.badge-soft {
   display: inline-flex;
   padding: 0.38rem 0.6rem;
   border-radius: 99px;
   color: var(--primary);
   background: rgba(var(--primary-rgb), 0.1);
   font-size: 0.68rem;
   font-weight: 800;
}
.badge-warning {
   color: #bb7500;
   background: rgba(255, 174, 0, 0.12);
}
.badge-danger {
   color: #e74a5f;
   background: rgba(231, 74, 95, 0.12);
}
.asset-pill {
   display: flex;
   align-items: center;
   gap: 0.65rem;
}
.asset-icon {
   width: 34px;
   height: 34px;
   border-radius: 50%;
   display: grid;
   place-items: center;
   color: white;
   background: linear-gradient(135deg, var(--primary), var(--primary-2));
   font-weight: 800;
}
.filter-bar {
   padding: 14px;
   display: flex;
   gap: 10px;
   flex-wrap: wrap;
}
.filter-bar .form-control,
.filter-bar .form-select {
   min-height: 42px;
}
.deposit-steps {
   counter-reset: deposit;
}
.deposit-step {
   position: relative;
   padding-left: 48px;
   margin-bottom: 23px;
}
.deposit-step::before {
   counter-increment: deposit;
   content: counter(deposit);
   position: absolute;
   left: 0;
   top: 0;
   width: 30px;
   height: 30px;
   border-radius: 50%;
   display: grid;
   place-items: center;
   background: var(--primary);
   color: #fff;
   font-weight: 800;
   font-size: 0.75rem;
}
.deposit-box {
   padding: 24px;
}
.qr-box {
   width: 250px;
   height: 250px;
   padding: 10px;
   border-radius: 12px;
   background: #fff;
   border: 1px solid var(--border);
   display: block;
   grid-template-columns: repeat(7, 1fr);
   gap: 3px;
}
.qr-box span {
   background: #111;
   border-radius: 1px;
}
.qr-box span:nth-child(3n) {
   background: #fff;
}
.address-box {
   display: flex;
   align-items: center;
   gap: 8px;
   background: var(--surface-2);
   border: 1px solid var(--border);
   border-radius: 10px;
   padding: 11px 12px;
   font-family: "Space Grotesk";
   font-size: 0.78rem;
   word-break: break-all;
}
.notice {
   padding: 14px;
   border-radius: 11px;
   background: rgba(255, 174, 0, 0.09);
   border: 1px solid rgba(255, 174, 0, 0.25);
   font-size: 0.78rem;
}

.profile-banner {
   height: 150px;
   border-radius: var(--radius) var(--radius) 0 0;
   background: linear-gradient(125deg, var(--primary), var(--primary-2));
   position: relative;
   overflow: hidden;
}
.profile-banner::after {
   content: "";
   position: absolute;
   width: 300px;
   height: 300px;
   border: 55px solid rgba(255, 255, 255, 0.1);
   border-radius: 50%;
   right: -70px;
   top: -130px;
}
.profile-avatar {
   width: 92px;
   height: 92px;
   border: 5px solid var(--surface);
   margin: -46px 0 0 24px;
   position: relative;
   font-size: 1.35rem;
}

.profile-banner-short {
   height: 80px;
   border-radius: var(--radius) var(--radius) 0 0;
   background: linear-gradient(125deg, var(--primary), var(--primary-2));
   position: relative;
   overflow: hidden;
}

[data-theme="dark"] .profile-banner,
[data-theme="dark"] .profile-banner-short {
   background: linear-gradient(
      125deg,
      rgba(var(--primary-rgb), 0.28),
      var(--surface-2)
   );
}

[data-theme="dark"] .avatar {
   background: linear-gradient(135deg, #153811, #167899);
   color: #fff;
}
.profile-banner-short::after {
   content: "";
   position: absolute;
   width: 300px;
   height: 300px;
   border: 55px solid rgba(255, 255, 255, 0.1);
   border-radius: 50%;
   right: -70px;
   top: -130px;
}

.sidebar-backdrop {
   display: none;
}

@media (max-width: 991.98px) {
   .auth-page {
      grid-template-columns: 1fr;
   }
   .auth-art {
      display: none;
   }
   .auth-form-pane {
      min-height: 100vh;
   }
   .sidebar {
      transform: translateX(-100%);
      width: var(--sidebar-width) !important;
   }
   .sidebar-open .sidebar {
      transform: translateX(0);
   }
   .sidebar-open .sidebar-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.52);
      z-index: 1035;
   }
   .app-header,
   .sidebar-collapsed .app-header {
      left: 0;
   }
   .app-main,
   .sidebar-collapsed .app-main {
      margin-left: 0;
      padding-left: 15px;
      padding-right: 15px;
   }
   .brand-name,
   .link-label,
   .nav-caption,
   .user-copy {
      display: block !important;
   }
   .side-link {
      justify-content: flex-start !important;
      padding: 0 12px !important;
   }
   .header-search {
      display: none;
   }
}
@media (max-width: 575.98px) {
   .auth-form-pane {
      padding: 24px 20px;
   }
   .auth-top {
      left: 20px;
      right: 20px;
   }
   .auth-box {
      margin-top: 70px;
   }
   .app-header {
      padding: 0 16px;
   }
   .app-main {
      padding-top: calc(var(--header-height) + 20px);
   }
   .table-responsive {
      border-radius: var(--radius);
   }
   .deposit-box {
      padding: 18px;
   }
   .page-actions .btn span {
      display: none;
   }
}
@media (max-width: 575.98px) {
   .header-actions {
      gap: 5px;
   }
   .account-trigger > .bi-chevron-down {
      display: none;
   }
   .header-icon-btn {
      width: 43px;
   }
   .notification-menu {
      width: min(360px, calc(100vw - 20px));
   }
   .account-menu {
      width: min(300px, calc(100vw - 20px));
   }
}

/* Member mobile fragments and Android-style bottom navigation */
.member-fragment {
   display: none;
}
.member-fragment.active {
   display: block;
}
.member-bottom-nav {
   display: none;
}
.member-tab-control {
   position: fixed;
   opacity: 0;
   pointer-events: none;
   width: 1px;
   height: 1px;
}
.member-tab-control:checked ~ .app-main .member-fragment {
   display: none;
}
#member-tab-home:checked ~ .app-main [data-member-view="home"],
#member-tab-profile:checked ~ .app-main [data-member-view="profile"],
#member-tab-deposit:checked ~ .app-main [data-member-view="deposit"],
#member-tab-more:checked ~ .app-main [data-member-view="more"] {
   display: block;
}
@media (max-width: 991.98px) {
   body {
      overflow-x: hidden;
   }
   .sidebar-backdrop {
      display: none !important;
   }
   .sidebar {
      transform: translateX(-100%);
      box-shadow: none;
   }
   .app-header,
   .app-main,
   .member-bottom-nav {
      transition: transform 0.25s ease;
   }
   .sidebar-open .sidebar {
      transform: translateX(0);
   }
   .sidebar-open .app-header,
   .sidebar-open .app-main,
   .sidebar-open .member-bottom-nav {
      transform: translateX(var(--sidebar-width));
   }
   .sidebar-open {
      overflow: hidden;
   }
   .sidebar-open .app-main {
      pointer-events: none;
   }
   body[data-app-page="dashboard"] .app-main {
      padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
   }
   .member-fragment {
      min-height: calc(
         100dvh - var(--header-height) - 84px - env(safe-area-inset-bottom)
      );
   }
   .member-bottom-nav {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: calc(74px + env(safe-area-inset-bottom));
      z-index: 1025;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
      background: color-mix(in srgb, var(--surface) 97%, transparent);
      border: 0;
      border-top: 1px solid var(--border);
      border-radius: 0;
      box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(16px);
   }
   .member-bottom-nav button {
      min-height: 56px;
      border: 0;
      background: transparent;
      color: var(--muted);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      font-size: 0.65rem;
      font-weight: 700;
   }
   .member-bottom-nav button i {
      font-size: 1.18rem;
   }
   .member-bottom-nav button.active {
      color: var(--primary);
      background: rgba(var(--primary-rgb), 0.1);
   }
   .member-bottom-nav label {
      min-height: 56px;
      border: 0;
      background: transparent;
      color: var(--muted);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      font-size: 0.65rem;
      font-weight: 700;
      cursor: pointer;
   }
   .member-bottom-nav label i {
      font-size: 1.18rem;
   }
   #member-tab-home:checked ~ .member-bottom-nav label[for="member-tab-home"],
   #member-tab-profile:checked
      ~ .member-bottom-nav
      label[for="member-tab-profile"],
   #member-tab-deposit:checked
      ~ .member-bottom-nav
      label[for="member-tab-deposit"],
   #member-tab-more:checked ~ .member-bottom-nav label[for="member-tab-more"] {
      color: var(--primary);
      background: rgba(var(--primary-rgb), 0.1);
   }
}

[id^="offcanvasAction"],
[id^="offcanvasAction"] .form-label,
[id^="offcanvasAction"] .offcanvas-title,
[id^="offcanvasAction"] label {
   color: var(--po-text);
}
.pointer,
.slider,
.toggle-btn {
   cursor: pointer;
}

.toggle-btn {
   padding: 0;
   height: 40px;
   padding: 2px;
   border: 2px var(--border) solid;
}
.toggle-btn:hover {
   border: 2px var(--primary) solid !important;
}
.toggle-btn i {
   font-size: 30px;
   margin: 7px 5px 5px 3px;
}

@media (max-width: 991.98px) {
   .toggle-btn:hover {
      border: 1px var(--primary) solid !important;
   }
   .toggle-btn i {
      font-size: 30px;
      margin: 7px 5px 5px 3px;
   }
}
@media (max-width: 575.98px) {
   .toggle-btn:hover {
      border: 1px var(--primary) solid !important;
   }
   .toggle-btn i {
      font-size: 30px;
      margin: 7px 5px 5px 3px;
   }
}

.custom-dt-search,
.dataTables_wrapper .dt-buttons {
   display: inline-flex;
   align-items: left;
}
.dataTables_wrapper .dt-buttons {
   flex-wrap: nowrap;
}
.dt-buttons {
   min-height: 44px;
   margin-bottom: 2px;
}
.custom-dt-search {
   margin-left: 0;
   flex-shrink: 0;
}
.custom-dt-search-input {
   width: 350px;
   padding: 8px;
   border-radius: 10px;
   margin-right: 3px;
   margin-top: 7px;
}
[id^="offcanvasAction"] {
   --po-bg: var(--surface, var(--bs-body-bg, #ffffff));
   --po-surface-soft: var(--surface-2, var(--bs-tertiary-bg, #f8f9fa));
   --po-surface-hover: var(--surface-2, var(--bs-secondary-bg, #e9ecef));
   --po-text: var(--text, var(--bs-body-color, #212529));
   --po-heading: var(--text, var(--bs-heading-color, #212529));
   --po-muted: var(--muted, var(--bs-secondary-color, #6c757d));
   --po-border: var(--border, var(--bs-border-color, #dee2e6));
   --po-primary: var(--primary, var(--bs-primary, #0d6efd));
   --po-primary-rgb: var(--primary-rgb, var(--bs-primary-rgb, 13, 110, 253));
   background-color: var(--po-bg);
   border: 0;
   box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 4px 18px rgba(0, 0, 0, 0.12);
   overflow: hidden;
}
[id^="offcanvasAction"] .offcanvas-body,
[id^="offcanvasAction"] .offcanvas-header {
   color: var(--po-text);
   background-color: var(--po-bg);
   border-color: var(--po-border);
}
[id^="offcanvasAction"] .form-text,
[id^="offcanvasAction"] .text-muted {
   color: var(--po-muted) !important;
}
[id^="offcanvasAction"] .form-control,
[id^="offcanvasAction"] .form-select {
   color: var(--po-text);
   background-color: var(--po-surface-soft);
   border-color: var(--po-border);
}
[id^="offcanvasAction"] .form-control::placeholder {
   color: var(--po-muted);
}
[id^="offcanvasAction"] .form-control:focus,
[id^="offcanvasAction"] .form-select:focus {
   color: var(--po-text);
   background-color: var(--po-bg);
   border-color: var(--po-primary);
   box-shadow: 0 0 0 4px rgba(var(--po-primary-rgb), 0.14);
}
[id^="offcanvasAction"] .form-select option {
   color: var(--po-text);
   background-color: var(--po-bg);
}
[id^="offcanvasAction"] .btn-close {
   position: relative;
   flex: 0 0 38px;
   width: 38px;
   height: 38px;
   margin: 0;
   padding: 0;
   background-color: var(--po-surface-soft);
   background-image: none;
   border: 1px solid var(--po-border);
   border-radius: 10px;
   opacity: 1;
   filter: none !important;
   transition: color 0.2s, background-color 0.2s, border-color 0.2s,
      transform 0.25s, box-shadow 0.2s;
}
[id^="offcanvasAction"] .btn-close::after,
[id^="offcanvasAction"] .btn-close::before {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 16px;
   height: 2px;
   background-color: var(--po-muted);
   border-radius: 10px;
   content: "";
   transition: background-color 0.2s;
}
[id^="offcanvasAction"] .btn-close::before {
   transform: translate(-50%, -50%) rotate(45deg);
}
[id^="offcanvasAction"] .btn-close::after {
   transform: translate(-50%, -50%) rotate(-45deg);
}
[id^="offcanvasAction"] .btn-close:hover {
   background-color: rgba(var(--po-primary-rgb), 0.1);
   border-color: rgba(var(--po-primary-rgb), 0.35);
   transform: rotate(90deg);
}
[id^="offcanvasAction"] .btn-close:hover::after,
[id^="offcanvasAction"] .btn-close:hover::before {
   background-color: var(--po-primary);
}
[id^="offcanvasAction"] .btn-close:focus {
   outline: 0;
   box-shadow: 0 0 0 4px rgba(var(--po-primary-rgb), 0.14);
}
[id^="offcanvasAction"] .offcanvas-body {
   background: linear-gradient(
         180deg,
         rgba(var(--po-primary-rgb), 0.055),
         transparent 190px
      ),
      var(--po-bg);
}
@media (max-width: 991.98px) {
   [id^="offcanvasAction"].offcanvas-bottom {
      --bs-offcanvas-height: min(720px, calc(100dvh - 10px));
      width: 100%;
      height: var(--bs-offcanvas-height) !important;
      max-height: calc(100dvh - 10px);
      border-radius: 22px 22px 0 0;
   }
   [id^="offcanvasAction"].offcanvas-bottom::before {
      position: absolute;
      top: 8px;
      left: 50%;
      z-index: 10;
      width: 42px;
      height: 4px;
      background-color: var(--po-border);
      border-radius: 20px;
      content: "";
      transform: translateX(-50%);
   }
   [id^="offcanvasAction"] .offcanvas-header {
      flex-shrink: 0;
      padding: 24px 20px 15px;
   }
   [id^="offcanvasAction"] .offcanvas-body {
      flex: 1 1 auto;
      padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
   }
   [id^="offcanvasAction"] .form-group {
      margin-bottom: 12px;
   }
   [id^="offcanvasAction"] .form-control,
   [id^="offcanvasAction"] .form-select {
      min-height: 48px;
      padding: 10px 14px;
   }
   [id^="offcanvasAction"] .btn:not(.btn-close) {
      min-height: 48px;
      padding: 10px 16px;
   }
}


[id^="offcanvasAction"] .nav-item .active, span, h6 {
	color: var(--text) !important;
}


.form-check-input {
   transform: scale(1.5) !important;
}
.switch {
   position: relative;
   display: inline-block;
   width: 50px;
   height: 25px;
}
.heading-title,
.section-title {
   display: flex;
   gap: 9px;
   font-weight: 800;
   text-transform: uppercase;
   letter-spacing: 0.09em;
   font-size: 11px;
}
.switch input {
   opacity: 0;
   width: 0;
   height: 0;
}
.slider {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: #ccc;
   -webkit-transition: 0.4s;
   transition: 0.4s;
}
.slider:before {
   position: absolute;
   content: "";
   height: 18px;
   width: 18px;
   left: 4px;
   bottom: 4px;
   background-color: #fff;
   -webkit-transition: 0.4s;
   transition: 0.4s;
}
input:checked + .slider {
   background-color: #2196f3;
}
input:focus + .slider {
   box-shadow: 0 0 1px #2196f3;
}
input:checked + .slider:before {
   -webkit-transform: translateX(18px);
   -ms-transform: translateX(18px);
   transform: translateX(18px);
}
.slider.round {
   border-radius: 20px;
}
.heading-title::before,
.section-title::before {
   content: "";
   width: 4px;
   height: 16px;
   border-radius: 999px;
}
.slider.round:before {
   border-radius: 50%;
}
.heading-title {
   align-items: center;
   margin: 15px 0 12px;
   color: var(--muted);
}
.heading-title::before {
   background: var(--primary);
}
.section-title {
   align-items: center;
   margin: 0 0 12px;
   color: var(--muted);
}
.section-title::before {
   background: var(--primary);
}
.user-copy strong {
   font-size: 11px;
   margin-left: 5px;
   word-wrap: break-word;
}
.user-copy small {
   font-size: 10px;
   font-weight: 700;
   margin-left: 15px;
}
.avatar img {
   width: 50px;
   height: 50px;
   margin: -10px 10px 0 0;
}
.width-70 {
   width: 70%;
   margin-left: 10px;
}
@media (max-width: 576px) {
   .custom-dt-search-input {
      width: 290px;
      min-width: 60px;
      padding: 8px;
      font-size: 0.85rem;
      border-radius: 10px;
   }
   .dataTables_wrapper .dt-buttons .btn {
      padding: 0.25rem 0.4rem;
      font-size: 0.75rem;
   }
   .width-70 {
      width: 100%;
      margin-top: 15px;
   }
}
@media (max-width: 400px) {
   .custom-dt-search-input {
      width: 210px;
      padding: 8px;
      border-radius: 10px;
   }
   .width-70 {
      width: 100%;
      margin-top: 15px;
   }
}
.wonder-bs {
   box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
   padding: 20px;
   border-radius: 25px;
}

.wonder-bs-reg {
   box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
   padding: 20px;
   border-radius: 20px;
}


#reg-form label {
	margin-bottom: 0 !important;
}

.border-tree {
    border-bottom: 2px #888 dashed;
}
.tree_member_name {
	font-size: 11px;
    display: block;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.level-tree-ul {
	padding: 0 !important;
	margin: 0 !important;
	list-style-type: none;
}

.level-tree-ul li {
	width: 100% !important;
	border: .02rem var(--border) solid;
	margin: 0 !important;
	padding: 8px 15px !important;
}

.popover {background: #0080c0; min-width: 276px !important; border-radius: 0px;}
.popover.right .arrow::after {border-bottom-color: var(--darkbg); }
.popover-content {background: var(--darkbg);}
.popover-header { background: var(--bg); color: var(--text) }
.popover-body {
    padding: 2px;
}

.popover .popover-arrow::before, .popover .popover-arrow::after {
    border-color: #0080c0 !important;  /* this example changes the arrow to orange color... You can always replace with any color you choose. */
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
}

.tree-pop {
    margin: 0px !important;
    padding: 0px !important;
    min-width: 270px !important;
}

.tree-pop td {
    font-size: 12px;
	font-weight: 600;
}

.green_node {
    border: 1px #16661f solid;
    padding: 6px 10px 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    color: #16661f;
	font-size: 13px;
}

.red_node {
    border: 1px #F00000 solid;
    padding: 6px 10px 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    color: #F00000;
	font-size: 13px;
}

.blank_node {
    border: 1px #CCCCCC solid;
    padding: 6px 10px 5px 10px;
    cursor: pointer;
    border-radius: 5px;
	font-size: 12px;
}

.green_node:hover, .red_node:hover {
    border: 1px #404bf3 solid;
    color: #404bf3;
}

.help-actions {
	margin: 15px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 10px;
	align-items: center;
}

.help-actions a {
	display: flex;
	flex-direction: column;
	gap: 5px !important;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
.blink {
    color: #61c461;
    animation: blink 1s infinite;
}

.label {
  background: transparent!important;
  color: white;
  padding: 10px;
  margin-left: 5px;
  margin-right: 5px;

  box-shadow: 
    inset 0 0 15px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(246, 188, 2, 0.9),
    0 6px 15px rgba(0, 0, 0, 0.7),
    0 10px 25px rgba(0, 0, 0, 1);
}

.label1 {
  background: transparent!important;
  color: white;
  padding: 10px;
  margin-left: 5px;
  margin-right: 5px;
  min-width: 140px;
  box-shadow: 
    inset 0 0 15px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(246, 188, 2, 0.9),
    0 6px 15px rgba(0, 0, 0, 0.7),
    0 10px 25px rgba(0, 0, 0, 1);
}

[id^="offcanvasAction"] .offcanvas-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--po-border);
}

[id^="offcanvasAction"] .offcanvas-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

[id^="offcanvasAction"] .btn-close {
  margin-left: auto !important;
  flex: 0 0 38px;
}

[id^="offcanvasAction"] .offcanvas-title {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 !important;
}

[id^="offcanvasAction"] .offcanvas-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px 22px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 96% 0%,
      rgba(var(--po-primary-rgb), 0.12),
      transparent 38%
    ),
    var(--po-bg);
  border-bottom: 1px solid var(--po-border);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
}

[id^="offcanvasAction"] .offcanvas-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin: 0;
  color: var(--po-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

[id^="offcanvasAction"] .offcanvas-title::before {
  content: "";
  width: 4px;
  height: 28px;
  flex: 0 0 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--po-primary), var(--po-primary-2, var(--po-primary)));
  box-shadow: 0 2px 8px rgba(var(--po-primary-rgb), 0.3);
}

[id^="offcanvasAction"] .btn-close {
  margin-left: auto !important;
  border-radius: 12px;
  background-color: rgba(var(--po-primary-rgb), 0.08);
}

.scrolldiv {
	overflow: scroll !important;
	scrollbar-width: none !important;
}

.scrolldiv::-webkit-scrollbar {
  width: 3px;
  background: #999;
}


/* utils */
/* Subtle royal finish */
:root {
  --royal-glow: 0 12px 32px rgba(var(--primary-rgb), 0.12);
  --royal-border: rgba(var(--primary-rgb), 0.22);
}

::selection {
  color: #fff;
  background: var(--primary);
}

/* Header */
.app-header {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* Page title accent */
.page-title {
  position: relative;
  padding-left: 14px;
}

.page-title::before {
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.35);
  content: "";
}

/* Sidebar links */
.side-link {
  position: relative;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.side-link:hover {
  transform: translateX(3px);
}

.side-link.active,
.side-menu[open] > .side-link {
  background: linear-gradient(
    100deg,
    rgba(var(--primary-rgb), 0.17),
    rgba(var(--primary-rgb), 0.055)
  );
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.12);
}

.side-link.active::before,
.side-menu[open] > .side-link::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
  content: "";
}

/* Cards and panels */
.card,
.card-ui,
.stat-card {
  border-color: var(--royal-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.card-ui:hover,
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), var(--royal-glow);
}

/* Buttons */
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 5px 14px rgba(var(--primary-rgb), 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-soft,
.btn-outline-ui {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-soft:hover,
.btn-outline-ui:hover {
  border-color: var(--royal-border);
  transform: translateY(-1px);
}

/* Inputs and keyboard focus */
.form-control,
.form-select,
.input-group-text {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.35);
  outline-offset: 2px;
}

/* Keep motion gentle for users who request reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Premium dashboard stat widget */
.stat-card {
  --widget-glow: rgba(var(--primary-rgb), 0.14);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, var(--widget-glow), transparent 38%),
    linear-gradient(145deg, var(--surface), var(--surface-2));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card::before {
  position: absolute;
  z-index: -1;
  top: -50px;
  right: -45px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(var(--primary-rgb), 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(var(--primary-rgb), 0.035),
    0 0 0 38px rgba(var(--primary-rgb), 0.025);
  content: "";
  pointer-events: none;
}

.stat-card::after {
  position: absolute;
  top: 0;
  left: 22px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.42);
  content: "";
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.34);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.17),
    0 0 24px rgba(var(--primary-rgb), 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-label {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.stat-value {
  margin: 0.65rem 0 0.45rem;
  color: var(--text);
  font: 700 clamp(1.0rem, 2.2vw, 1.4rem) "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.09);
  color: var(--primary-2);
  font-size: 0.7rem;
  font-weight: 700;
}

.icon-box {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    rgba(var(--primary-rgb), 0.2),
    rgba(var(--primary-rgb), 0.07)
  );
  box-shadow:
    0 8px 18px rgba(var(--primary-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--primary-2);
  font-size: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .stat-card {
    transition: none;
  }

  .stat-card:hover {
    transform: none;
  }
}

.avatar-img {
   margin: 1px !important;
   width: 35px !important;
   height: 35px !important;
   border-radius: 50%;
}

.spinner {
  background: #000;
  opacity: .8;
  z-index: 2000;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.imageLoader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin:-50px 0 0 -50px;
    -webkit-animation:spin 1s linear infinite;
    -moz-animation:spin 1s linear infinite;
    animation:spin 1s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
  width: 50px;
  height: 50px;
}

.hidden {
	display: none;
}

/*   DAPP    */
.top-actions {
	display: flex;
	align-items: center;
	gap: 10px
}
.network {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 7px 10px;
	color: #bdc3c6;
	font-size: 10px;
	background: transparent;
	cursor: pointer;
	white-space: nowrap
}
.network .dot {
	width: 6px;
	height: 6px
}
.network-logo {
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	flex: none
}
.chain-logo {
	width: 27px;
	height: 27px;
	display: block;
	flex: none
}
.network-logo .chain-logo {
	width: 20px;
	height: 20px
}
.connect {
	border: 0;
	border-radius: 8px;
	background: linear-gradient(110deg, #22d8df, #00a9c7);
	color: #062126;
	font-weight: 750;
	font-size: 11px;
	padding: 0 15px;
	height: 38px
}

.layer {
	position: fixed;
	inset: 0;
	z-index: 10;
	background: #000b;
	backdrop-filter: blur(7px);
	display: grid;
	place-items: center;
	padding: 18px
}
.layer[hidden] {
	display: none
}
.selector-modal .modal-dialog {
	max-width: 440px;
	width: calc(100% - 1.5rem)
}
.selector-modal .wallet-modal {
	width: 100%;
	max-height: min(85vh, 720px);
	overflow: auto
}
.network-offcanvas {
--bs-offcanvas-width:min(100vw, 440px);
	background: #202123;
	color: #f4f6f7;
	border-left: 1px solid #3a3c3e;
	box-shadow: -24px 0 70px #0007
}
.network-offcanvas .offcanvas-header {
	padding: 18px 20px 8px
}
.network-offcanvas .offcanvas-header h2 {
	font-size: 16px;
	margin: 0
}
.network-offcanvas .wallet-list {
	padding: 8px 10px 0
}
.network-offcanvas .chain-prompt {
	margin: 8px 20px 3px
}
.network-offcanvas .modal-foot {
	padding: 14px 18px
}
.wallet-modal {
	width: min(100%, 440px);
	max-height: 85vh;
	overflow: auto;
	border: 1px solid #3a3c3e;
	background: #202123;
	border-radius: 19px;
	box-shadow: 0 30px 90px #0009;
	padding: 16px 17px 12px
}
.modal-head {
	display: grid;
	grid-template-columns: 30px 1fr 30px;
	align-items: center;
	text-align: center;
	height: 43px
}
.modal-head h2 {
	font-size: 15px;
	margin: 0;
	color: var(--muted);
}

.help {
	width: 17px;
	height: 17px;
	border: 2px solid #d7dcde;
	border-radius: 50%;
	font-size: 10px;
	line-height: 13px
}
.close {
	border: 0;
	background: none;
	color: #ddd;
	font-size: 24px
}
.wallet-list {
	padding-top: 10px
}
.wallet-row {
	width: 100%;
	min-height: 60px;
	border: 0;
	background: transparent;
	color: #f4f5f6;
	border-radius: 9px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 11px;
	text-align: left
}
.wallet-row:hover {
	background: #2a2c2e
}
.wallet-icon {
	width: 37px;
	height: 37px;
	background: #343638;
	border-radius: 9px;
	display: grid;
	place-items: center;
	font-size: 18px;
	overflow: hidden
}
.wallet-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover
}
.row-name {
	font-size: 13px;
	flex: 1
}
.arrow {
	font-size: 22px;
	color: #a0a6a9
}
.chain-meta {
	font-size: 10px;
	color: #8f989d;
	margin-top: 3px
}
.chain-id {
	font-size: 9px;
	color: #38d2e0;
	background: #18343a;
	padding: 4px 7px;
	border-radius: 5px
}
.chain-prompt {
	margin: 12px 10px 3px;
	padding: 11px 12px;
	border: 1px solid #76612d;
	background: #312918;
	border-radius: 9px;
	color: #f2d796;
	font-size: 11px
}
.chain-prompt strong {
	display: block;
	color: #ffe8a6;
	font-size: 12px;
	margin-bottom: 3px
}
.search {
	height: 53px;
	border-radius: 9px;
	background: #2a2c2e;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 11px;
	margin-top: 7px;
	color: #aab0b2
}
.search input {
	border: 0;
	outline: 0;
	background: transparent;
	color: white;
	min-width: 0;
	flex: 1;
	font-size: 11px
}
.search-count {
	font-size: 9px;
	color: #c0c4c5;
	background: #3b3d3f;
	border-radius: 5px;
	padding: 4px 6px
}
.modal-foot {
	text-align: center;
	color: #858c90;
	font-size: 9px;
	padding: 14px 4px 2px
}
.toast {
	position: fixed;
	z-index: 20;
	bottom: 20px;
	left: 50%;
	transform: translate(-50%, 15px);
	opacity: 0;
	pointer-events: none;
	border: 1px solid #ffffff22;
	border-radius: 9px;
	background: #242729;
	color: white;
	padding: 10px 14px;
	font-size: 11px;
	max-width: 90vw;
	transition: .2s
}
.toast.show {
	opacity: 1;
	transform: translate(-50%, 0)
}
.toast.error {
	border-color: #884242;
	color: #ffd0d0
}
.toast.success {
	border-color: #347157;
	color: #b9efd0
}

.account-body {
	text-align: center;
	padding: 12px 8px 8px
}
.account-orb {
	width: 66px;
	height: 66px;
	margin: 0 auto 14px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 35% 30%, #aaf5ff, #24bfd5 58%, #167d95);
	font-size: 28px;
	color: #e6fdff
}
.address-copy {
	border: 0;
	background: transparent;
	color: #e7e9ea;
	font-size: 12px;
	padding: 7px 10px
}
.address-copy span {
	color: #8c969b;
	margin-left: 5px
}
.account-balance {
	font-size: 29px;
	font-weight: 600;
	margin: 12px 0 2px
}

#account-title {
	color: varr(--muted);
}
.account-chain {
	font-size: 10px;
	color: #8f989d
}
.account-actions {
	display: grid;
	gap: 9px;
	margin-top: 23px
}
.account-actions .secondary {
	height: 42px
}

.refresh, .secondary {
	background: transparent;
	border: 1px solid var(--line);
	color: #bac1c4;
	border-radius: 8px;
	padding: 7px 11px;
	font-size: 11px
}
.refresh:disabled {
	opacity: .4;
	cursor: not-allowed
}
.notice {
	border: 1px solid #00c9e829;
	background: #00c9e80c;
	color: #b4d6d9;
	padding: 11px 13px;
	border-radius: 9px;
	font-size: 11px;
	margin-bottom: 17px
}
.notice.error {
	border-color: #873f3f;
	background: #3b2020;
	color: #ffd0d0
}
.notice.warning {
	border-color: #76612d;
	background: #312918;
	color: #f2d796
}
.notice.success {
	border-color: #286a50;
	background: #152b23;
	color: #ace9ca
}


/* Select2 — theme-aware styling */
.select2-container {
  width: 100% !important;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Single select */
.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 38px 0 12px;
  color: var(--text);
  line-height: normal;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 7px;
  width: 28px;
  height: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--muted) transparent transparent;
}

/* Multiple select */
.select2-container--default .select2-selection--multiple {
  padding: 4px 8px;
  cursor: text;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin: 2px 0;
  padding: 3px 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 7px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 5px;
  color: var(--primary);
}

.select2-container--default .select2-selection--multiple .select2-search__field {
  margin: 3px 0;
  color: var(--text);
  font-family: inherit;
}

/* Focus and open states */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

/* Dropdown and search */
.select2-dropdown {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 1060;
}

.select2-container--default .select2-search--dropdown {
  padding: 8px;
  background: var(--surface);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

/* Options */
.select2-results__options {
  max-height: 260px;
  background: var(--surface);
}

.select2-container--default .select2-results__option {
  padding: 9px 12px;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-weight: 700;
}

/* Disabled select */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile sizing */
@media (max-width: 575.98px) {
  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple {
    min-height: 44px;
  }
}

.select2-container--default .select2-results__option {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: rgba(var(--primary-rgb), 0.1) !important;
  color: var(--primary) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(var(--primary-rgb), 0.18) !important;
  color: var(--text) !important;
  box-shadow: inset 3px 0 0 var(--primary);
}

/* Select2 — theme-aware styling ends */

input[type="file"] {
  min-height: 44px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  margin: 0 12px 0 0;
  padding: 7px 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.24);
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.13);
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

input[type="file"]:hover::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

input[type="file"]:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* product */
.prd-box {
   position: relative;
   display: flex;
   flex-direction: column;
   height: 100%;
   padding: 14px;
   overflow: hidden;
   color: var(--text);
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: 20px;
   box-shadow: var(--shadow);
   transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.prd-box::before {
   position: absolute;
   inset: 0 0 auto;
   height: 4px;
   content: "";
   background: linear-gradient(90deg, var(--primary), var(--primary-2));
   opacity: 0.85;
}

.prd-box:hover {
   transform: translateY(-5px);
   border-color: rgba(var(--primary-rgb), 0.4);
   box-shadow: 0 20px 45px rgba(var(--primary-rgb), 0.14);
}

.prd-box > img {
   display: block;
   width: 100%;
   height: 205px;
   padding: 14px;
   object-fit: contain;
   background:
      radial-gradient(circle at 50% 35%, rgba(var(--primary-rgb), 0.1), transparent 65%),
      var(--surface-2);
   border: 1px solid var(--border);
   border-radius: 15px;
}

.prd-box > h5 {
   display: -webkit-box;
   min-height: 48px;
   margin: 15px 2px 13px;
   overflow: hidden;
   color: var(--text);
   font-size: 1rem;
   font-weight: 700;
   line-height: 1.45;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 2;
}

.prd-box .prd-info {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(min(100%, 78px), 1fr));
   gap: 8px;
   margin-top: auto;
}

.prd-box .prd-info h5 {
   display: flex;
   min-width: 0;
   min-height: 66px;
   flex-direction: column;
   justify-content: center;
   gap: 5px;
   margin: 0;
   padding: 9px 6px;
   text-align: center;
   background: var(--surface-2);
   border: 1px solid var(--border);
   border-radius: 12px;
}

.prd-box .prd-info span {
   color: var(--muted);
   font-size: 0.68rem;
   font-weight: 600;
   line-height: 1.2;
   text-transform: uppercase;
   letter-spacing: 0.045em;
}

.prd-box .prd-info strong {
   overflow-wrap: anywhere;
   color: var(--text);
   font-size: 0.84rem;
   font-weight: 700;
   line-height: 1.25;
}

.prd-box .prd-info .prd-offer {
   background: rgba(var(--primary-rgb), 0.09);
   border-color: rgba(var(--primary-rgb), 0.3);
}

.prd-box .prd-info .prd-offer strong {
   color: var(--primary);
}

.prd-box .prd-action {
   margin-top: 18px;
   display: flex;
   justify-content: center;
	align-items: center;
   gap: 15px;
	
}

/*
.prd-box .prd-action .btn {
   width: 100%;
   min-height: 43px;
   color: var(--primary);
   border: 1px solid rgba(var(--primary-rgb), 0.45);
   border-radius: 12px;
   font-weight: 700;
   transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
*/

/*
.prd-box .prd-action .btn:hover,
.prd-box .prd-action .btn:focus-visible {
   color: #fff;
   background: linear-gradient(135deg, var(--primary), var(--primary-2));
   border-color: transparent;
}
*/

@media (max-width: 575.98px) {
   .prd-box {
      padding: 11px;
      border-radius: 16px;
   }

   .prd-box > img {
      height: 165px;
   }

   .prd-box .prd-info {
      gap: 5px;
   }

   .prd-box .prd-info h5 {
      min-height: 60px;
      padding: 7px 3px;
   }

   .prd-box .prd-info span {
      font-size: 0.61rem;
   }

   .prd-box .prd-info strong {
      font-size: 0.75rem;
   }
}

@media (prefers-reduced-motion: reduce) {
   .prd-box,
   .prd-box .prd-action .btn {
      transition: none;
   }
}

/* Product details card content only */
#packCard {
   --pack-primary-rgb: var(--primary-rgb, 22, 141, 226);

   color: var(--text, #173047);
}

#packCard .product-details-layout {
   display: grid;
   grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
   gap: 16px;
   align-items: stretch;
}

#packCard .product-details-image-wrap {
   min-height: 300px;
   overflow: hidden;
   padding: 0;
   background: var(--surface-2, #eef6fc);
   border: 1px solid var(--border, #c8e0f1);
   border-radius: 16px;
}

#packCard .product-details-image {
   display: block;
   width: 100%;
   height: 100%;
   min-height: 300px;
   object-fit: cover;
   object-position: center;
}

#packCard .product-details-content {
   display: flex;
   align-items: center;
   min-width: 0;
}

#packCard .product-price-grid {
   display: grid;
   width: 100%;
   grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
   gap: 10px;
}

#packCard .product-price-item {
   display: flex;
   min-height: 82px;
   flex-direction: column;
   justify-content: center;
   gap: 7px;
   padding: 13px 15px;
   background: var(--surface-2, #eef6fc);
   border: 1px solid var(--border, #c8e0f1);
   border-radius: 14px;
}

#packCard .product-price-item span {
   color: var(--muted, #607d91);
   font-size: 0.76rem;
   font-weight: 600;
}

#packCard .product-price-item strong {
   color: var(--text, #173047);
   font-size: 1.15rem;
   font-weight: 700;
}

#packCard .product-price-item.product-price-offer {
   background: rgba(var(--pack-primary-rgb), 0.1);
   border-color: rgba(var(--pack-primary-rgb), 0.35);
}

#packCard .product-price-item.product-price-offer strong {
   color: var(--primary, #168de2);
}

#packCard .product-description-block {
   width: 100%;
   margin-top: 16px;
   padding: 16px 18px;
   background: var(--surface-2, #eef6fc);
   border: 1px solid var(--border, #c8e0f1);
   border-radius: 14px;
}

#packCard .product-description-block h6 {
   margin: 0 0 7px;
   color: var(--text, #173047);
   font-size: 1rem;
   font-weight: 700;
}

#packCard .product-description-block p {
   margin: 0;
   color: var(--muted, #607d91);
   font-size: 0.95rem;
   line-height: 1.6;
   white-space: pre-line;
}

@media (max-width: 575.98px) {
   #packCard .product-details-layout {
      grid-template-columns: 1fr;
   }

   #packCard .product-details-image-wrap {
      min-height: 0;
      height: clamp(220px, 35vh, 300px);
   }

   #packCard .product-details-image {
      min-height: 0;
   }

   #packCard .product-price-grid {
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
   }
}

#packCard .pack-purchase {
   display: flex;
   align-items: end;
   justify-content: space-between;
   gap: 14px;
   margin-top: 16px;
   padding-top: 16px;
   border-top: 1px solid var(--border, #c8e0f1);
}

#packCard .pack-quantity {
   display: grid;
   gap: 7px;
}

#packCard .pack-quantity > label {
   color: var(--muted, #607d91);
   font-size: 0.78rem;
   font-weight: 600;
}

#packCard .pack-quantity-control {
   display: flex;
   width: 148px;
   height: 46px;
   align-items: center;
   overflow: hidden;
   background: var(--surface-2, #eef6fc);
   border: 1px solid var(--border, #c8e0f1);
   border-radius: 12px;
}

#packCard .pack-quantity-control button {
   display: grid;
   width: 42px;
   height: 100%;
   flex: 0 0 42px;
   place-items: center;
   color: var(--primary, #168de2);
   background: transparent;
   border: 0;
   font-size: 1.1rem;
}

#packCard .pack-quantity-control button:hover {
   background: rgba(var(--primary-rgb, 22, 141, 226), 0.1);
}

#packCard .pack-quantity-control input {
   width: 100%;
   min-width: 0;
   height: 100%;
   padding: 0;
   color: var(--text, #173047);
   background: transparent;
   border: 0;
   outline: 0;
   font-weight: 700;
   text-align: center;
   appearance: textfield;
   -moz-appearance: textfield;
}

#packCard .pack-quantity-control input::-webkit-inner-spin-button,
#packCard .pack-quantity-control input::-webkit-outer-spin-button {
   margin: 0;
   -webkit-appearance: none;
}

#packCard .pack-buy-button {
   display: inline-flex;
   min-height: 46px;
   flex: 1;
   align-items: center;
   justify-content: center;
   gap: 9px;
   padding: 0 22px;
   color: #fff;
   background: linear-gradient(135deg, var(--primary, #168de2), var(--primary-2, #57b7f2));
   border: 0;
   border-radius: 12px;
   box-shadow: 0 8px 20px rgba(var(--primary-rgb, 22, 141, 226), 0.22);
   font-weight: 700;
   transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#packCard .pack-buy-button:hover {
   transform: translateY(-2px);
   box-shadow: 0 11px 25px rgba(var(--primary-rgb, 22, 141, 226), 0.3);
}

@media (max-width: 420px) {
   #packCard .pack-purchase {
      align-items: stretch;
      flex-direction: column;
   }

   #packCard .pack-quantity-control {
      width: 100%;
   }
}


/* checkout */
.checkout-modal {
   --checkout-rgb: var(--primary-rgb, 22, 141, 226);
}

.checkout-modal .modal-content {
   color: var(--text);
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: 20px;
   box-shadow: var(--shadow);
}

.checkout-modal .modal-header,
.checkout-modal .modal-footer {
   padding: 18px 22px;
   background: var(--surface);
   border-color: var(--border);
}

.checkout-eyebrow {
   color: var(--primary);
   font-size: 0.68rem;
   font-weight: 700;
   letter-spacing: 0.12em;
}

.checkout-modal .modal-title {
   margin-top: 3px;
   color: var(--text);
   font-weight: 700;
}

.checkout-modal .modal-body {
   padding: 22px;
}

.checkout-grid {
   display: grid;
   grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
   gap: 20px;
}

.checkout-main {
   display: grid;
   gap: 16px;
}

.checkout-section,
.checkout-summary {
   padding: 18px;
   background: var(--surface-2);
   border: 1px solid var(--border);
   border-radius: 15px;
}

.checkout-section-title {
   margin: 0 0 14px;
   color: var(--text);
   font-size: 0.95rem;
   font-weight: 700;
}

.checkout-item {
   display: grid;
   grid-template-columns: 76px minmax(0, 1fr) auto;
   gap: 14px;
   align-items: center;
}

.checkout-item > img {
   width: 76px;
   height: 76px;
   object-fit: cover;
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: 12px;
}

.checkout-item-info {
   display: grid;
   gap: 5px;
   color: var(--muted);
   font-size: 0.82rem;
}

.checkout-item-info strong,
.checkout-line-total {
   color: var(--text);
   font-size: 0.95rem;
}

.checkout-item-info label {
   margin-top: 4px;
   color: var(--muted);
}

.checkout-item-info input {
   width: 90px;
}

.checkout-address-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 10px;
}

.checkout-modal .form-control {
   color: var(--text);
   background-color: var(--surface);
   border-color: var(--border);
}

.checkout-modal .form-control:focus {
   border-color: var(--primary);
   box-shadow: 0 0 0 0.2rem rgba(var(--checkout-rgb), 0.15);
}

.payment-choice {
   display: flex;
   gap: 11px;
   align-items: flex-start;
   margin-bottom: 9px;
   padding: 12px;
   cursor: pointer;
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: 12px;
}

.payment-choice:has(input:checked) {
   background: rgba(var(--checkout-rgb), 0.08);
   border-color: rgba(var(--checkout-rgb), 0.45);
}

.payment-choice input {
   margin-top: 4px;
   accent-color: var(--primary);
}

.payment-choice span {
   display: grid;
   gap: 3px;
}

.payment-choice strong {
   color: var(--text);
   font-size: 0.86rem;
}

.payment-choice small,
.checkout-note {
   color: var(--muted);
   font-size: 0.75rem;
   line-height: 1.45;
}

.split-wallet-panel,
.qr-payment-panel {
   margin-top: 12px;
   padding: 14px;
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: 12px;
}

.split-wallet-panel label {
   display: block;
   margin-bottom: 7px;
   color: var(--text);
   font-size: 0.82rem;
   font-weight: 600;
}

.split-wallet-panel small {
   display: block;
   margin-top: 8px;
   color: var(--muted);
}

.company-qr-wrap {
   display: grid;
   justify-items: center;
   gap: 8px;
   margin-bottom: 14px;
   text-align: center;
}

.company-qr-wrap img {
   width: 160px;
   height: 160px;
   padding: 8px;
   object-fit: contain;
   background: #fff;
   border: 1px solid var(--border);
   border-radius: 12px;
}

.company-qr-wrap span {
   color: var(--muted);
   font-size: 0.8rem;
}

.company-qr-wrap strong {
   color: var(--text);
   font-size: 0.9rem;
}

.checkout-summary {
   align-self: start;
}

.summary-row,
.summary-total {
   display: flex;
   justify-content: space-between;
   gap: 12px;
   padding: 9px 0;
   color: var(--muted);
   font-size: 0.86rem;
   border-bottom: 1px solid var(--border);
}

.summary-row strong {
   color: var(--text);
}

.summary-total {
   margin-top: 4px;
   color: var(--text);
   font-size: 1rem;
   font-weight: 700;
   border-bottom: 0;
}

.summary-total strong {
   color: var(--primary);
   font-size: 1.2rem;
}

.checkout-submit {
   width: 100%;
   min-height: 46px;
   margin-top: 12px;
   color: #fff;
   background: linear-gradient(135deg, var(--primary), var(--primary-2));
   border: 0;
   border-radius: 12px;
   font-weight: 700;
}

.checkout-note {
   display: block;
   margin-top: 10px;
}

@media (max-width: 767.98px) {
   .checkout-grid {
      grid-template-columns: 1fr;
   }

   .checkout-summary {
      order: -1;
   }
}

@media (max-width: 480px) {
   .checkout-modal .modal-body {
      padding: 14px;
   }

   .checkout-section,
   .checkout-summary {
      padding: 14px;
   }

   .checkout-address-grid {
      grid-template-columns: 1fr;
   }

   .checkout-item {
      grid-template-columns: 60px minmax(0, 1fr);
   }

   .checkout-item > img {
      width: 60px;
      height: 60px;
   }

   .checkout-line-total {
      grid-column: 2;
   }
}

.checkout-modal .modal-dialog {
   height: calc(100dvh - 2rem);
   max-height: calc(100dvh - 2rem);
}

.checkout-modal .modal-content {
   display: flex;
   height: 100%;
   max-height: 100%;
   flex-direction: column;
   overflow: hidden;
}

.checkout-modal .modal-content > form {
   display: flex;
   min-height: 0;
   flex: 1 1 auto;
   flex-direction: column;
   overflow: hidden;
}

.checkout-modal .modal-body {
   min-height: 0;
   flex: 1 1 auto;
   overflow-x: hidden;
   overflow-y: auto !important;
   -webkit-overflow-scrolling: touch;
}
