@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Geist+Mono:ital,wght@0,100..900;1,100..900&family=Geist:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@100..900&display=swap");
:root {
  --brand: #6060ab;
  --brand-dark: #41436e;
  --brand-light: #9da8dc;
  --sidebar-bg: #11102d;
  --page-bg: #f3f3f3;
  --text-dark: #202020;
  --text-muted: #2b2b22;
  --white: #ffffff;
  --gradient-brand: linear-gradient(
    151deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  );
  --text-grad: linear-gradient(
    131deg,
    #4b4c88 8.2%,
    #6b6dc0 53.43%,
    #6060ab 99.2%
  );
  --primary-btn-bg: url("https://storage.perfectcdn.com/rqgep0/syks007p1kalcjia.svg");
  --white-btn-bg: url("https://storage.perfectcdn.com/rqgep0/713zxan2h5y7qf2q.svg");
  --logout-btn-bg: url("https://storage.perfectcdn.com/rqgep0/xpq1o9g6apnltper.png");
  --gradient-welcome: linear-gradient(154deg, #0e0d28 32.29%, #1d2047 72.2%);
  --shadow-sm: 4px 4px 12px rgba(0, 0, 0, 0.08);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-body: "Geist", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-detail: "Outfit", system-ui, sans-serif;

  /* Semantic theme tokens (light defaults) */
  --surface: #ffffff;
  --surface-muted: #f3f3f3;
  --border: #e8e8e3;
  --border-strong: #dedeff;
  --text-primary: #202020;
  --text-secondary: #2b2b22;
  --header-bg: #f3f3f3;
  --header-btn-bg: #ffffff;
  --header-btn-border: transparent;
  --header-chip-text: #6060ab;
  --card-bg: #ffffff;
  --card-border: rgba(96, 96, 171, 0.2);
  --card-header-bg: #f3f3f3;
  --card-header-image: none;
  --input-bg: #f3f3f3;
  --input-border: #e8e8e3;
  --input-text: #2b2b22;
  --table-border: #e8e8e3;
  --table-header-bg: #f2f2f2;
  --table-row-bg: #ffffff;
  --table-text: #202020;
  --charge-bg: rgba(152, 161, 216, 0.12);
  --charge-border: #6060ab;
  --platform-chip-bg: #ffffff;
  --platform-chip-border: rgba(96, 96, 171, 0.2);
  --notice-bg: #d1d2e9;
  --dropdown-bg: #ffffff;
  --scrollbar-size: 6px;
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(96, 96, 171, 0.4);
  --scrollbar-thumb-hover: rgba(96, 96, 171, 0.65);
}

[data-theme="dark"] {
  --page-bg: #0c0b21;
  --header-bg: #0c0b21;
  --text-dark: #ffffff;
  --text-muted: #dddddd;
  --text-primary: #ffffff;
  --text-secondary: #dddddd;
  --surface: rgba(45, 45, 45, 0.43);
  --surface-muted: rgba(250, 250, 250, 0.1);
  --border: rgba(204, 204, 204, 0.16);
  --border-strong: #6060ab;
  --header-btn-bg: transparent;
  --header-btn-border: #6060ab;
  --header-chip-text: #dddddd;
  --card-bg: rgba(45, 45, 45, 0.43);
  --dark-sec-bg: rgba(45, 45, 45, 0.43);
  --card-border: rgba(96, 96, 171, 0.2);
  --card-header-bg: #1e1e3f;
  --card-header-image: url("https://storage.perfectcdn.com/rqgep0/zaq8ns3ztwuq2aty.png");
  --input-bg: rgba(250, 250, 250, 0.1);
  --dash-dark-input: rgba(250, 250, 250, 0.1);
  --input-border: rgba(204, 204, 204, 0.16);
  --input-text: #dddddd;
  --table-border: rgba(96, 96, 171, 0.25);
  --table-header-bg: rgba(250, 250, 250, 0.08);
  --table-row-bg: rgba(45, 45, 45, 0.43);
  --table-text: #dddddd;
  --charge-bg: rgba(152, 161, 216, 0.18);
  --charge-border: #6060ab;
  --platform-chip-bg: rgba(250, 250, 250, 0.1);
  --platform-chip-border: rgba(96, 96, 171, 0.35);
  --notice-bg: rgba(45, 45, 45, 0.55);
  --dropdown-bg: #16152a;
  --shadow-sm: 4px 4px 12px rgba(0, 0, 0, 0.35);
  --scrollbar-track: #0c0b21;
  --scrollbar-thumb: #3a3958;
  --scrollbar-thumb-hover: #52517a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* No focus / click outline anywhere on the site */
*:focus,
*:focus-visible,
*:active {
  outline: none !important;
}

a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
[tabindex]:focus,
[tabindex]:focus-visible,
.form-control:focus,
.form-control:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  /* clip avoids creating a second scrollport (unlike overflow-x: hidden) */
  overflow-x: clip;
}

body.dashboard-body {
  font-family: var(--font-body);
  background: var(--sidebar-bg);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Shell */
.dashboard-shell {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding: 44px 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition:
    transform 0.3s ease,
    width 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.dashboard-sidebar.is-collapsed {
  width: 100px;
  padding: 24px 0 24px;
  gap: 16px;
  overflow: visible;
}

.dashboard-sidebar.is-collapsed .sidebar-logo-text,
.dashboard-sidebar.is-collapsed .sidebar-rank,
.dashboard-sidebar.is-collapsed .sidebar-balance-row,
.dashboard-sidebar.is-collapsed .nav-group-title span,
.dashboard-sidebar.is-collapsed .nav-group-header .nav-group-chevron,
.dashboard-sidebar.is-collapsed .nav-item-left > span:not(.nav-item-icon),
.dashboard-sidebar.is-collapsed .nav-item .nav-chevron-wrap,
.dashboard-sidebar.is-collapsed .nav-tree,
.dashboard-sidebar.is-collapsed
  .sidebar-logout
  > span:not(.sidebar-logout-icon) {
  display: none !important;
}

.dashboard-sidebar.is-collapsed .sidebar-logo-row {
  position: relative;
  justify-content: center;
  padding: 0 12px;
  width: 100%;
}

.dashboard-sidebar.is-collapsed .sidebar-logo {
  width: 28px;
  justify-content: center;
}

.dashboard-sidebar.is-collapsed .sidebar-collapse-btn {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  width: 28px;
  height: 28px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.dashboard-sidebar.is-collapsed .sidebar-collapse-btn img {
  width: 16px;
  height: 16px;
}

.dashboard-sidebar.is-collapsed .sidebar-inner {
  padding: 0 10px;
  gap: 14px;
  align-items: center;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.dashboard-sidebar.is-collapsed .sidebar-user-card {
  width: 80px;
  height: auto;
  min-height: 96px;
  padding: 12px 8px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.dashboard-sidebar.is-collapsed .sidebar-user-row {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dashboard-sidebar.is-collapsed .sidebar-user-left {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dashboard-sidebar.is-collapsed .sidebar-avatar {
  width: 48px;
  height: 48px;
}

.dashboard-sidebar.is-collapsed .sidebar-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  gap: 0;
}

.dashboard-sidebar.is-collapsed .sidebar-user-name {
  margin: 0;
  max-width: 72px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-sidebar.is-collapsed .sidebar-music {
  width: 80px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 16px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-thumb {
  width: 44px;
  height: 44px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-controls {
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-btns {
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.dashboard-sidebar.is-collapsed
  .sidebar-music-btns
  button:not(.sidebar-music-play):not(.sidebar-music-stop) {
  width: 18px;
  height: 18px;
}

.dashboard-sidebar.is-collapsed
  .sidebar-music-btns
  button:not(.sidebar-music-play):not(.sidebar-music-stop)
  img {
  width: 18px;
  height: 18px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-prev,
.dashboard-sidebar.is-collapsed .sidebar-music-next {
  width: 18px;
  height: 18px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-prev img,
.dashboard-sidebar.is-collapsed .sidebar-music-next img {
  width: 18px;
  height: 18px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-btns .sidebar-music-play {
  width: 22px;
  height: 22px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-play-icon,
.dashboard-sidebar.is-collapsed .sidebar-music-pause-icon {
  width: 14px;
  height: 14px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-btns .sidebar-music-stop {
  width: 12px;
  height: 12px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-volume {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 4px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-vol-icon {
  width: 12px;
  height: 12px;
}

.dashboard-sidebar.is-collapsed .sidebar-music-vol-slider {
  width: 48px;
  max-width: 48px;
  height: 4px;
}

.dashboard-sidebar.is-collapsed .sidebar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dashboard-sidebar.is-collapsed .nav-group {
  width: 100%;
  gap: 4px;
}

.dashboard-sidebar.is-collapsed .nav-group-header {
  display: none;
}

.dashboard-sidebar.is-collapsed .nav-group:not(.is-open) .nav-group-body,
.dashboard-sidebar.is-collapsed .nav-group-body {
  display: block !important;
  max-height: none !important;
  overflow: visible;
  width: 100%;
  margin: 0;
}

.dashboard-sidebar.is-collapsed .nav-group-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  width: 100%;
}

.dashboard-sidebar.is-collapsed .nav-group-items::before {
  display: none;
}

.dashboard-sidebar.is-collapsed .nav-item-row {
  width: 100%;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.dashboard-sidebar.is-collapsed .nav-item {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

.dashboard-sidebar.is-collapsed .nav-item-left {
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: none;
  flex: none;
}

.dashboard-sidebar.is-collapsed .nav-item-icon {
  width: 16px;
  height: 16px;
  margin: 0;
}

.dashboard-sidebar.is-collapsed .sidebar-logout-card {
  width: 80px;
  padding: 8px;
  display: flex;
  justify-content: center;
}

.dashboard-sidebar.is-collapsed .sidebar-logout {
  width: 48px;
  min-height: 48px;
  height: 48px;
  padding: 0;
  gap: 0;
  background-size: cover;
}

.dashboard-sidebar.is-collapsed .sidebar-logout-icon {
  width: 32px;
  height: 32px;
}

.dashboard-sidebar.is-collapsed .sidebar-logout-icon::before {
  width: 26px;
  height: 26px;
}

.dashboard-sidebar.is-collapsed .sidebar-logout-icon img {
  width: 16px;
  height: 16px;
}

.dashboard-main {
  flex: 1;
  margin: 20px 20px 20px 300px;
  min-width: 0;
  min-height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  border-radius: 48px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  transition: margin-left 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.dashboard-shell,
.dashboard-sidebar,
.dashboard-sidebar.is-collapsed .sidebar-inner,
.dashboard-main {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.dashboard-shell::-webkit-scrollbar,
.dashboard-sidebar::-webkit-scrollbar,
.dashboard-sidebar.is-collapsed .sidebar-inner::-webkit-scrollbar,
.dashboard-main::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.dashboard-shell::-webkit-scrollbar-track,
.dashboard-sidebar::-webkit-scrollbar-track,
.dashboard-sidebar.is-collapsed .sidebar-inner::-webkit-scrollbar-track,
.dashboard-main::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

.dashboard-shell::-webkit-scrollbar-thumb,
.dashboard-sidebar::-webkit-scrollbar-thumb,
.dashboard-sidebar.is-collapsed .sidebar-inner::-webkit-scrollbar-thumb,
.dashboard-main::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.dashboard-shell::-webkit-scrollbar-thumb:hover,
.dashboard-sidebar::-webkit-scrollbar-thumb:hover,
.dashboard-sidebar.is-collapsed .sidebar-inner::-webkit-scrollbar-thumb:hover,
.dashboard-main::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.dashboard-shell::-webkit-scrollbar-corner,
.dashboard-sidebar::-webkit-scrollbar-corner,
.dashboard-sidebar.is-collapsed .sidebar-inner::-webkit-scrollbar-corner,
.dashboard-main::-webkit-scrollbar-corner {
  background: transparent;
}

.dashboard-sidebar.is-collapsed + .dashboard-main,
body.sidebar-collapsed .dashboard-main {
  margin-left: 114px;
}

/* Sidebar logo */
.sidebar-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
  padding: 0 16px 0 32px;
  width: 100%;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  height: 28px;
  width: 193px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-logo-text {
  height: 18px;
  width: auto;
  margin-left: 8px;
  flex-shrink: 0;
}

.sidebar-collapse-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: url("https://storage.perfectcdn.com/rqgep0/jxhqzxizz9lbepz3.svg")
    center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.sidebar-collapse-btn img {
  width: 24px;
  height: 24px;
}

/* Mobile sidebar close — Figma 4445:50484 (≤992px only) */
.sidebar-mobile-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10.8px;
  background: #6060ab;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-mobile-close img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

/* Sidebar inner */
.sidebar-inner {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: center;
}

/* User card — Figma 4445:50547: 268×100 */
.sidebar-user-card {
  width: 268px;
  height: 100px;
  margin: 0;
  box-sizing: border-box;
  background-color: rgba(65, 67, 110, 0.2);
  background-image: var(--theme-avatar-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border: 0.5px solid #6060ab;
  border-radius: 12px;
  padding: 20px 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sidebar-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.sidebar-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0.5px solid var(--brand);
  background: var(--gradient-brand);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.sidebar-user-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.sidebar-balance-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.sidebar-balance-pill {
  background: var(--gradient-brand);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 2px 10px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  display: inline-block;
}

.sidebar-add-fund {
  width: 22px;
  height: 22px;
  border: 0.5px solid var(--brand);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
}

.sidebar-add-fund img {
  width: 12px;
  height: 12px;
}

.sidebar-rank {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.sidebar-rank:hover,
.sidebar-rank:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-rank img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Music widget */
.sidebar-music {
  width: 268px;
  margin: 0;
  background: linear-gradient(180deg, #41436e 0%, #34355b 100%);
  border: none;
  border-top: 1px solid var(--brand);
  border-radius: 12px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-music-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.132px solid var(--brand);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-music-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.sidebar-music-thumb img.is-rotating {
  animation: sidebar-music-spin 8s linear infinite;
}

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

.sidebar-music-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.sidebar-music-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-music-btns button {
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
}

.sidebar-music-prev,
.sidebar-music-next {
  width: 24px;
  height: 24px;
}

.sidebar-music-prev img,
.sidebar-music-next img {
  width: 24px;
  height: 24px;
  display: block;
}

.sidebar-music-btns .sidebar-music-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(103.88deg, #a081ff 0%, #5e91ff 100%);
  transition: transform 0.2s ease;
}

.sidebar-music-play-icon,
.sidebar-music-pause-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.sidebar-music-play-icon {
  margin-left: 1px;
}

.sidebar-music-pause-icon {
  display: none;
}

.sidebar-music-play.is-playing .sidebar-music-play-icon {
  display: none;
}

.sidebar-music-play.is-playing .sidebar-music-pause-icon {
  display: block;
}

.sidebar-music-btns .sidebar-music-stop {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(160, 129, 255, 0.55);
  background: transparent;
  opacity: 0.55;
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.sidebar-music-btns .sidebar-music-stop.is-autoplay-on {
  border-color: transparent;
  background: linear-gradient(103.88deg, #a081ff 0%, #5e91ff 100%);
  opacity: 1;
}

.sidebar-music-autoplay-icon {
  width: 10px;
  height: 10px;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-music-stop.is-autoplay-on .sidebar-music-autoplay-icon {
  opacity: 1;
}

.sidebar-music-volume {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-music-vol-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sidebar-music-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 96px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #9da8dc 40%,
    rgba(255, 255, 255, 0.28) 40%
  );
  outline: none;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  max-width: 120px;
}

.sidebar-music-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--brand);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.sidebar-music-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--brand);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.sidebar-music-vol-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

/* Nav — Figma node 6011:17140 */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 268px;
  margin: 0;
}

.nav-group {
  width: 268px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.primary-btn-bg,
.nav-group-header {
  background: var(--primary-btn-bg) no-repeat center / 100% 100%;
  border: none;
}

.logout-btn-bg,
.sidebar-logout {
  background-color: transparent;
  background-image: var(--logout-btn-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border: none;
}

.white-btn-bg,
.nav-item.is-active {
  background-color: rgba(255, 255, 255, 0.1);
  background-image: var(--white-btn-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border: none;
}

.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 268px;
  height: 48px;
  min-height: 48px;
  padding: 11px 10px 12px 15px;
  border-radius: 10px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.nav-group-title img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.nav-group-title span {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
}

.nav-group-header .nav-group-chevron {
  width: 11px;
  height: 20px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* Group headers use primary gradient — show white (active) chevron */
.nav-group-header .nav-chevron--idle {
  display: none;
}

.nav-group-header .nav-chevron--active {
  display: block;
}

.nav-group.is-open .nav-group-chevron {
  transform: rotate(90deg);
}

.nav-group:not(.is-open) .nav-group-chevron {
  transform: none;
}

.nav-group:not(.is-open) .nav-group-body {
  display: none;
}

.nav-group-body {
  display: block;
  position: relative;
  width: 240px;
  margin-top: 0;
}

.nav-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 28px;
  margin-left: 1px;
  position: relative;
  width: 240px;
}

.nav-group-items::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  bottom: 26px;
  width: 2px;
  background: #dddddd;
  border-radius: 1px;
  pointer-events: none;
}

.nav-item-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 48px;
}

.nav-tree {
  width: 18px;
  min-height: 48px;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
}

.nav-tree::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 18px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg width='18' height='22' viewBox='0 0 20 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 13C1 18.5228 5.47715 23 11 23H19' stroke='%23DDDDDD' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 18px 22px;
  pointer-events: none;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 222px;
  height: 48px;
  padding: 8px 5px 8px 12px;
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  transition: background 0.2s;
  flex-shrink: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none !important;
}

.nav-item:hover,
.nav-item:focus,
.nav-item:focus-visible,
.nav-item:active,
.nav-item:visited {
  text-decoration: none !important;
  color: var(--white);
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.nav-group-header,
.nav-group-header:hover,
.nav-group-header:focus,
.nav-group-header:focus-visible,
.nav-group-header:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f0ff;
}

.nav-item.is-active:hover {
  background: var(--white-btn-bg) no-repeat center / 100% 100%;
  color: var(--white);
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  max-width: 205px;
}

.nav-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-item-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* Animated brand gradient (text + icon) — Add Funds */
.nav-item.hue-text .nav-item-left > span:not(.nav-item-icon) {
  background-image: linear-gradient(
    90deg,
    #a081ff 0%,
    #5e91ff 28%,
    #6060ab 55%,
    #9da8dc 78%,
    #a081ff 100%
  );
  background-size: 280% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  animation: hue-gradient-shift 6s ease-in-out infinite;
  opacity: 1;
}

.nav-item.hue-text:hover .nav-item-left > span:not(.nav-item-icon),
.nav-item.hue-text:focus .nav-item-left > span:not(.nav-item-icon),
.nav-item.hue-text.is-active .nav-item-left > span:not(.nav-item-icon) {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.nav-item-icon--hue,
.nav-item.hue-text .nav-chevron--hue {
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.nav-item-icon--hue {
  width: 16px;
  height: 16px;
  opacity: 1;
}

.nav-item.hue-text .nav-chevron--hue {
  width: 6px;
  height: 11px;
  opacity: 1;
}

.nav-item.hue-text .nav-chevron--idle,
.nav-item.hue-text .nav-chevron--active {
  display: none;
}

@keyframes hue-gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-item.hue-text .nav-item-left > span:not(.nav-item-icon) {
    animation: none;
    background-position: 50% 50%;
  }

  .nav-item-icon--hue animate {
    display: none;
  }
}

.nav-chevron-wrap {
  width: 11px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(180deg);
}

.nav-chevron {
  width: 6px;
  height: 11px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.nav-chevron--active {
  display: none;
}

.nav-item.is-active .nav-chevron--idle {
  display: none;
}

.nav-item.is-active .nav-chevron--active {
  display: block;
}

/* Logout card */
.sidebar-logout-card {
  width: 268px;
  padding: 16px;
  margin-top: 0;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 57px;
  height: 57px;
  padding: 8px 20px;
  color: #da1e4e;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity 0.2s;
}

.sidebar-logout:hover {
  opacity: 0.92;
  color: #da1e4e;
  text-decoration: none;
}

.sidebar-logout-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1.5px solid #da1e4e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sidebar-logout-icon::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  background: #da1e4e;
  border-radius: 50%;
}

.sidebar-logout-icon img {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: block;
}

/* Header */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  background: var(--header-bg);
  border-bottom: 0.5px solid var(--border-strong);
  border-radius: 48px 48px 0 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 70;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-page-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  border: 0.21px solid rgba(100, 100, 205, 0.12);
  border-bottom-width: 1.575px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.35)
    ),
    #d6d6ff;
  box-sizing: border-box;
  position: relative;
}

.dashboard-page-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  /* white/nav glyphs → brand #6060ab */
  filter: brightness(0) saturate(100%) invert(42%) sepia(18%) saturate(1234%)
    hue-rotate(209deg) brightness(92%) contrast(87%);
}

/* Legacy mask support (same-origin --page-icon only) */
.dashboard-page-icon::after {
  content: none;
}

.dashboard-page-icon--addfund::after {
  content: none;
}

img.dashboard-page-icon {
  width: 42px;
  height: 42px;
  padding: 11px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(42%) sepia(18%) saturate(1234%)
    hue-rotate(209deg) brightness(92%) contrast(87%);
}

.dashboard-page-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--header-chip-text);
  margin: 0;
}

.dashboard-date {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--header-chip-text);
}

.dashboard-date-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  background: var(--header-btn-bg);
  border: 0.8px solid var(--header-btn-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 0;
}

.header-btn img {
  width: 20px;
  height: 20px;
}

.header-telegram-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.header-pill {
  background: var(--header-btn-bg);
  border-radius: 20px;
  height: 40px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 0.8px solid var(--header-btn-border);
  font-family: inherit;
  box-sizing: border-box;
}

.header-pill--balance {
  padding-right: 10px;
}

.header-pill--profile {
  min-width: 56px;
  padding-right: 8px;
}

.header-pill-wallet-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-pill-wallet-icon img {
  width: 14px;
  height: 14px;
}

.header-pill-text {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--header-chip-text);
  padding: 0 4px;
  white-space: nowrap;
}

.header-pill-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0.5px solid var(--brand);
  background: var(--gradient-brand);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

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

.header-pill-chevron {
  width: 12px;
  height: 7px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin: 0 2px;
  transition: transform 0.2s ease;
}

.dropdown-currencies,
.dropdown-profile {
  position: relative;
}

.dropdown-currencies.is-open .header-pill-chevron,
.dropdown-profile.is-open .header-pill-chevron {
  transform: rotate(180deg);
}

.header-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 16px;
  border: 0.5px solid #e8e8e3;
  background: #f3f3f3;
  box-shadow: 0 12px 28px rgba(65, 67, 110, 0.14);
  overflow: hidden;
}

.dropdown-currencies.is-open .header-dropdown-menu,
.dropdown-profile.is-open .header-dropdown-menu {
  display: block;
}

.header-currency-menu {
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}

.header-currency-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #202020;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

/* Perfect Panel reads $(event.target).data() — nested nodes must not be the click target */
#currencies-list #currencies-item *,
.header-currency-menu #currencies-item * {
  pointer-events: none;
}

.header-currency-menu li a:hover {
  background: rgba(96, 96, 171, 0.1);
  text-decoration: none;
  color: #202020;
}

.header-currency-menu li.active a {
  color: var(--brand);
  font-weight: 600;
  background: rgba(96, 96, 171, 0.12);
}

.header-currency-flag {
  display: inline-flex;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
}

.header-currency-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-currency-code {
  min-width: 36px;
}

.header-currency-symbol {
  color: #4a4a4a;
}

.header-currency-empty {
  padding: 16px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
}

.header-dropdown-menu.header-profile-menu {
  min-width: 180px;
  padding: 0;
  border: none;
  background: #f3f3f3;
  box-shadow: 0 10px 28px rgba(32, 32, 32, 0.14);
}

.header-profile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #202020;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  border: none;
  border-bottom: 0.5px solid #e8e8e3;
  background: #f3f3f3;
  outline: none;
  box-shadow: none;
}

.header-profile-item:last-child {
  border-bottom: none;
}

.header-profile-item:hover {
  background: rgba(96, 96, 171, 0.1);
  text-decoration: none;
  color: #202020;
}

.header-profile-item img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

/* White nav SVGs → dark so they’re visible on the light menu */
.header-profile-item:not(.header-profile-item--logout) img {
  filter: brightness(0) saturate(100%);
  opacity: 0.78;
}

.header-profile-item--logout {
  background: var(--brand);
  color: #fff;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0 0 16px 16px;
}

.header-profile-item--logout:hover {
  background: var(--brand-dark);
  color: #fff;
}

.header-profile-item--logout img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* Content */
.dashboard-content {
  flex: 1;
  padding: 26px;
  /* clip keeps horizontal bleed clipped without nested scroll trapping */
  overflow-x: clip;
  overflow-y: visible;
  background: var(--page-bg);
  border-radius: 0 0 48px 48px;
}

/* New Order Page */
.no-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero row */
.no-hero-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  width: 100%;
  overflow: visible;
}

.no-welcome-card {
  position: relative;
  flex: 866 1 0;
  min-width: 0;
  height: 200px;
  border-radius: 24px;
  background: url("https://storage.perfectcdn.com/rqgep0/tmegua7ekb8fr39t.png")
    center / cover no-repeat;
  overflow: hidden;
  padding: 44px 30px;
  z-index: 1;
}

.no-welcome-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.56px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.84) 1.56%,
    #fff 23.75%,
    #fff 50.16%,
    rgba(255, 255, 255, 0.75) 97.71%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0 0 12px;
  text-transform: capitalize;
  white-space: nowrap;
}

.no-welcome-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-welcome-name {
  white-space: nowrap;
}

.no-welcome-wave {
  flex-shrink: 0;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #f5c518;
  color: #f5c518;
}

.no-welcome-sub {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.no-welcome-sub + .no-welcome-sub,
.no-welcome-sub + .no-welcome-username {
  margin-top: 4px;
  opacity: 0.9;
}

.no-welcome-username {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 280px);
  position: relative;
  z-index: 2;
}

.no-welcome-username .no-welcome-sub {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-welcome-copy.mo-copy-btn {
  width: 20px;
  height: 20px;
  margin-left: -2px;
  border: none;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.no-welcome-copy.mo-copy-btn .mo-copy-icon {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.no-welcome-copy.mo-copy-btn:hover {
  background: transparent;
  opacity: 0.85;
}

.no-welcome-copy.mo-copy-btn.is-copied::after {
  bottom: auto;
  top: calc(100% + 6px);
}

.no-welcome-trophy {
  position: absolute;
  left: auto;
  right: 41px;
  top: 50%;
  transform: translateY(-50%);
  width: 249px;
  height: 140px;
  object-fit: contain;
  pointer-events: none;
}

.no-promo-card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: 0;
  background: url("https://storage.perfectcdn.com/rqgep0/nroi4qq006f97ha5.svg")
    center / 100% 100% no-repeat;
  overflow: hidden;
  padding: 54px 28px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.no-promo-card:hover,
a.no-promo-card:focus,
a.no-promo-card:active {
  text-decoration: none;
  color: inherit;
  outline: none;
}

.no-promo-slider-wrap {
  position: relative;
  flex: 650 1 0;
  min-width: 0;
  width: auto;
  max-width: 650px;
  height: 200px;
  z-index: 1;
  overflow: visible;
}

.no-promo-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  cursor: grab;
  --swiper-pagination-bottom: 0;
  touch-action: pan-y;
}

.no-promo-slider:active {
  cursor: grabbing;
}

/* Keep original Swiper-like layout; motion is transform-based (not overflow scroll) */
.no-promo-slider.no-promo-snap .swiper-wrapper,
.no-promo-slider .swiper-wrapper.no-promo-snap__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 100%;
  width: auto;
  margin: 0;
  padding: 0;
  gap: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  box-sizing: border-box;
}

.no-promo-slider.no-promo-snap.is-dragging .swiper-wrapper,
.no-promo-slider.no-promo-snap.is-dragging .swiper-wrapper.no-promo-snap__track {
  transition: none;
}

.no-promo-slider.no-promo-snap .swiper-slide {
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
  flex-grow: 0;
  /* JS sets width + margin-right (16px) for space between cards */
}

.no-promo-slider:not(.swiper-initialized):not(.no-promo-snap) .swiper-wrapper {
  display: flex;
  width: 100%;
}

.no-promo-slider:not(.swiper-initialized):not(.no-promo-snap)
  .swiper-slide:not(:first-child) {
  display: none;
}

.no-promo-slider .no-promo-card {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.no-promo-slider.no-promo-snap .no-promo-card {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.no-promo-card::before {
  content: none;
}

.no-promo-content {
  position: relative;
  z-index: 1;
  max-width: min(416px, calc(100% - 148px));
  width: 100%;
  box-sizing: border-box;
}

.no-promo-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 12px;
  text-transform: capitalize;
  letter-spacing: -0.56px;
  line-height: 1.4;
  max-width: 100%;
}

.no-promo-text {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
  max-width: 100%;
}

.no-promo-icon {
  position: absolute;
  left: auto;
  right: 29px;
  top: 47px;
  transform: none;
  width: 106px;
  height: 100px;
  background: rgba(255, 255, 255, 0.91);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-sizing: border-box;
  padding: 16px 20px;
  pointer-events: none;
}

.no-promo-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Under 1800px: smaller hero images (global) */
@media (max-width: 1800px) {
  .no-welcome-trophy,
  .af-welcome-icon {
    width: 180px;
    height: 100px;
    right: 24px;
  }

  .no-promo-content {
    max-width: min(416px, calc(100% - 112px));
  }

  .no-promo-icon {
    width: 78px;
    height: 74px;
    right: 20px;
    top: 42px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .no-promo-icon img {
    width: 48px;
    height: 48px;
  }
}

.no-promo-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1;
}

.no-promo-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.no-promo-dots span:first-child {
  background: var(--surface);
}

.no-promo-pagination,
.no-promo-slider-wrap
  > .swiper-pagination.no-promo-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  /* Figma: dots sit in the Subtract notch — keep full circles unclipped */
  bottom: 4px !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  z-index: 6;
  width: auto !important;
  min-width: 32px;
  height: auto !important;
  min-height: 14px;
  margin: 0 !important;
  padding: 2px 4px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: none;
  overflow: visible !important;
}

/* Curb is built into promo-card-subtract.svg — no CSS fillets */
.no-promo-pagination::before,
.no-promo-pagination::after {
  content: none;
}

.no-promo-pagination .swiper-pagination-bullet {
  flex-shrink: 0;
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(96, 96, 171, 0.45) !important;
  opacity: 1 !important;
  border: none !important;
  border-radius: 50%;
  box-shadow: none !important;
  outline: none !important;
  outline-offset: 0 !important;
  transform: none !important;
  scale: 1 !important;
  transition: background-color 0.2s ease;
}

.no-promo-pagination .swiper-pagination-bullet-active {
  width: 8px !important;
  height: 8px !important;
  background: #6060ab !important;
  opacity: 1 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  outline-offset: 0 !important;
  transform: none !important;
  scale: 1 !important;
}

/* Stats */
.no-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 16px;
}

.no-stat-card {
  --stat-transition: 0.35s ease;
  position: relative;
  width: 100%;
  height: 232px;
  /* Figma 3162:9693 — content at left 23.5 / top 31 inside 373×232 card */
  padding: 31px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  isolation: isolate;
  overflow: visible;
  color: var(--text-dark);
  background: none;
  border: none;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
}

a.no-stat-card:hover,
a.no-stat-card:focus-visible {
  color: var(--text-dark);
  text-decoration: none;
  outline: none;
}

.no-stat-card-layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity var(--stat-transition);
  /* Layers live inside card-bg / stat-card-hover — keep extras off */
  display: none;
}

/* Extra layers only when dark body is shown — light card-bg.svg already has tabs baked in */
.no-stat-card:hover .no-stat-card-layers,
.no-stat-card.is-hovered .no-stat-card-layers {
  opacity: 0;
}

.no-stat-card-layer {
  position: absolute;
  max-width: none;
  width: 68%;
  height: auto;
}

.no-stat-card-layer--1 {
  top: -8.4%;
  left: 31%;
  width: 57.4%;
  transform: rotate(5.44deg);
}

.no-stat-card-layer--2 {
  top: -9.3%;
  left: 35%;
  width: 60.6%;
  transform: rotate(14.11deg);
}

.no-stat-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--stat-transition);
}

.no-stat-card-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: fill;
}

.no-stat-card-bg--light {
  opacity: 1;
}

.no-stat-card-bg--dark {
  inset: 0;
  height: 100%;
  opacity: 0;
}

.no-stat-card:hover .no-stat-card-bg--light,
.no-stat-card.is-hovered .no-stat-card-bg--light {
  opacity: 0;
}

.no-stat-card:hover .no-stat-card-bg--dark,
.no-stat-card.is-hovered .no-stat-card-bg--dark {
  opacity: 1;
}

.no-stat-card > :not(.no-stat-card-layers):not(.no-stat-card-bg) {
  position: relative;
  z-index: 2;
}

.no-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(204, 204, 204, 0.32);
  border: 0.5px solid rgba(204, 204, 204, 0.16);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition:
    background-color var(--stat-transition),
    border-color var(--stat-transition);
}

.no-stat-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.no-stat-card:hover .no-stat-icon,
.no-stat-card.is-hovered .no-stat-icon {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.no-stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: -0.48px;
  text-transform: capitalize;
  color: var(--text-dark);
  transition: color var(--stat-transition);
}

.no-stat-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 18px;
  transition: color var(--stat-transition);
}

.no-stat-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--brand);
  margin-top: auto;
  transition: color var(--stat-transition);
}

.no-stat-card:hover .no-stat-value,
.no-stat-card:hover .no-stat-label,
.no-stat-card:hover .no-stat-link,
.no-stat-card.is-hovered .no-stat-value,
.no-stat-card.is-hovered .no-stat-label,
.no-stat-card.is-hovered .no-stat-link {
  color: var(--white);
}

/* My Balance default hover look (light mode only) — clears when another card is hovered */
html:not([data-theme="dark"])
  .no-stats-row:not(:has(.no-stat-card:not(.is-hover):hover))
  .no-stat-card.is-hover
  .no-stat-card-layers {
  opacity: 0;
}

html:not([data-theme="dark"])
  .no-stats-row:not(:has(.no-stat-card:not(.is-hover):hover))
  .no-stat-card.is-hover
  .no-stat-card-bg--light {
  opacity: 0;
}

html:not([data-theme="dark"])
  .no-stats-row:not(:has(.no-stat-card:not(.is-hover):hover))
  .no-stat-card.is-hover
  .no-stat-card-bg--dark {
  opacity: 1;
}

html:not([data-theme="dark"])
  .no-stats-row:not(:has(.no-stat-card:not(.is-hover):hover))
  .no-stat-card.is-hover
  .no-stat-icon {
  background: var(--table-header-bg);
  border-color: rgba(255, 255, 255, 0.16);
}

html:not([data-theme="dark"])
  .no-stats-row:not(:has(.no-stat-card:not(.is-hover):hover))
  .no-stat-card.is-hover
  .no-stat-value,
html:not([data-theme="dark"])
  .no-stats-row:not(:has(.no-stat-card:not(.is-hover):hover))
  .no-stat-card.is-hover
  .no-stat-label,
html:not([data-theme="dark"])
  .no-stats-row:not(:has(.no-stat-card:not(.is-hover):hover))
  .no-stat-card.is-hover
  .no-stat-link {
  color: var(--white);
}

/* Notice */
.no-notice {
  background: var(--notice-bg);
  color: var(--text-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
}

.no-notice a {
  color: var(--brand);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: underline;
}

/* Platform filters */
.no-platforms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.no-platforms-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.no-platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 16px 32px;
  border-radius: 16px;
  border: 1px solid var(--platform-chip-border);
  background: var(--platform-chip-bg);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.no-platform-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
  border-radius: 22.5%;
}

.no-platform-icon img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
  display: block;
}

.no-platform-label {
  font-family: var(--font-display);
  white-space: nowrap;
  line-height: 1.5;
}

.no-platform-btn.is-active {
  background: linear-gradient(
    141deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  );
  border: none;
  color: var(--white);
}

/* Brief press feedback on all devices (including mobile tap) */
.no-platform-btn:active:not(.is-active) {
  background: color-mix(in srgb, var(--platform-chip-bg) 88%, var(--text-primary) 12%);
  border-color: rgba(96, 96, 171, 0.08);
  color: var(--text-primary);
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .no-platform-btn:active:not(.is-active) {
    background: rgba(8, 8, 8, 0.04);
    border-color: rgba(96, 96, 171, 0.08);
    color: var(--text-primary);
  }
}

/* Hover only on desktop pointers — no sticky tap color on mobile */
@media (hover: hover) and (pointer: fine) {
  .no-platform-btn:hover:not(.is-active) {
    background: color-mix(in srgb, var(--platform-chip-bg) 88%, var(--text-primary) 12%);
    border-color: rgba(96, 96, 171, 0.08);
    color: var(--text-primary);
  }

  @supports not (background: color-mix(in srgb, white 50%, black)) {
    .no-platform-btn:hover:not(.is-active) {
      background: rgba(8, 8, 8, 0.04);
      border-color: rgba(96, 96, 171, 0.08);
      color: var(--text-primary);
    }
  }
}

/* Mini / laptop desktop: shrink platform chips so all 12 stay readable (labels stay until ≤992) */
@media (max-width: 1600px) {
  .no-page .no-platforms,
  .sv-page .no-platforms {
    gap: 10px;
  }

  .no-page .no-platforms-row,
  .sv-page .no-platforms-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  .no-page .no-platform-btn,
  .sv-page .no-platform-btn {
    min-height: 48px;
    padding: 8px 10px;
    gap: 6px;
    font-size: 13px;
    border-radius: 12px;
  }

  .no-page .no-platform-icon,
  .sv-page .no-platform-icon {
    width: 32px;
    height: 32px;
  }

  .no-page .no-platform-icon img,
  .sv-page .no-platform-icon img {
    width: 32px;
    height: 32px;
  }

  .no-page .no-platform-label,
  .sv-page .no-platform-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Platform filter toast */
.no-filter-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: min(380px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
}

.no-filter-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.no-filter-toast-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(151deg, #41436e 0%, #6060ab 55%, #9da8dc 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(14, 13, 40, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.no-filter-toast-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.no-filter-toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.no-filter-toast-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Order columns */
.no-order-row {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 24px;
  align-items: start;
}

.no-order-row > .no-card {
  min-width: 0;
  width: 100%;
}

.no-order-row > .no-card--details {
  max-width: none;
}

.no-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px 34px;
}

.no-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-header-bg);
  background-image: var(--card-header-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 8px 8px 8px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-height: 72px;
  box-sizing: border-box;
}

.no-card-header:has(.no-details-tabs) {
  justify-content: flex-start;
  /* Match left card header vertical padding so content tops align */
  padding: 8px 8px 8px 16px;
  min-height: 72px;
}

.no-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.no-card-tabs {
  display: flex;
  gap: 8px;
  background: var(--surface-muted);
  border: 0.4px solid rgba(96, 96, 171, 0.5);
  border-radius: 12px;
  padding: 8px;
}

.no-card-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-dark);
}

.no-card-tab.is-active {
  background: var(--surface-muted);
}

.no-card-tab--gradient.is-active {
  background: var(--gradient-brand);
  color: var(--white);
}

.no-add-fund-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid #6060ab;
  background: rgba(96, 96, 171, 0.12);
  color: #6060ab;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 1;
  /* Clip effects so New Order stays untouched */
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 0 rgba(96, 96, 171, 0.4);
  /* Border / bg / glow — purple ↔ blue */
  animation: no-add-fund-color 4s ease-in-out infinite;
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease,
    background-color 280ms ease;
}

/* Solid label text — black in light, white in dark */
.no-add-fund-label {
  position: relative;
  z-index: 1;
  color: #202020;
  -webkit-text-fill-color: #202020;
}

/* Continuous shine sweep — Add Fund only */
.no-add-fund-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 38%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.12) 62%,
    transparent 100%
  );
  background-size: 50% 100%;
  background-repeat: no-repeat;
  background-position: -60% 0;
  opacity: 1;
  animation: no-add-fund-shimmer 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.no-add-fund-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  animation: no-add-fund-icon-lift 1.8s ease-in-out infinite;
  transition: transform 280ms ease;
}

.no-add-fund-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1486%)
    hue-rotate(204deg) brightness(95%) contrast(88%);
  animation: no-add-fund-icon-hue 4s ease-in-out infinite;
}

/* Coin / spark pops with every cycle */
.no-add-fund-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #fff9d6 0%,
    #ffd54a 45%,
    #f5a623 100%
  );
  box-shadow: 0 0 6px rgba(255, 200, 60, 0.85);
  opacity: 0;
  transform: translateY(0) scale(0.4);
  pointer-events: none;
  animation: no-add-fund-spark 1.8s ease-in-out infinite;
}

.no-add-fund-link:hover,
.no-add-fund-link:focus {
  text-decoration: none;
  border-color: #7c4dff;
  background: rgba(124, 77, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(96, 96, 171, 0.28);
  animation: none;
}

.no-add-fund-link:hover::before,
.no-add-fund-link:focus::before {
  animation: none;
  opacity: 0;
}

.no-add-fund-link:hover .no-add-fund-icon,
.no-add-fund-link:focus .no-add-fund-icon {
  animation: none;
  transform: translateY(-3px);
}

.no-add-fund-link:hover .no-add-fund-icon::after,
.no-add-fund-link:focus .no-add-fund-icon::after {
  animation: none;
  opacity: 0;
}

.no-add-fund-link:hover img,
.no-add-fund-link:focus img {
  animation: none;
}

.no-add-fund-link:hover .no-add-fund-label,
.no-add-fund-link:focus .no-add-fund-label {
  color: #202020;
  -webkit-text-fill-color: #202020;
}

/* Border / bg glow: purple ↔ soft blue (text uses gradient separately) */
@keyframes no-add-fund-color {
  0%,
  100% {
    border-color: #6060ab;
    background: rgba(96, 96, 171, 0.12);
    box-shadow: 0 0 0 0 rgba(96, 96, 171, 0.45);
  }
  50% {
    border-color: #6b7cff;
    background: rgba(107, 124, 255, 0.16);
    box-shadow: 0 0 16px rgba(107, 124, 255, 0.45);
  }
}

@keyframes no-add-fund-icon-hue {
  0%,
  100% {
    filter: brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1486%)
      hue-rotate(204deg) brightness(95%) contrast(88%);
  }
  50% {
    filter: brightness(0) saturate(100%) invert(42%) sepia(55%) saturate(1800%)
      hue-rotate(214deg) brightness(102%) contrast(96%);
  }
}

@keyframes no-add-fund-shimmer {
  0% {
    background-position: -70% 0;
    opacity: 0.35;
  }
  35% {
    opacity: 1;
  }
  55% {
    background-position: 160% 0;
    opacity: 0.85;
  }
  70%,
  100% {
    background-position: 160% 0;
    opacity: 0;
  }
}

@keyframes no-add-fund-icon-lift {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-1px);
  }
}

@keyframes no-add-fund-spark {
  0%,
  25% {
    opacity: 0;
    transform: translateY(0) scale(0.3);
  }
  38% {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
  }
  55% {
    opacity: 0.4;
    transform: translateY(-8px) scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(-9px) scale(0.3);
  }
}

/* Dark: purple ↔ soft blue glow */
@keyframes no-add-fund-color-dark {
  0%,
  100% {
    border-color: #b8b8ff;
    background: rgba(184, 184, 255, 0.18);
    box-shadow: 0 0 0 0 rgba(184, 184, 255, 0.55);
  }
  50% {
    border-color: #9eb0ff;
    background: rgba(158, 176, 255, 0.24);
    box-shadow: 0 0 18px rgba(158, 176, 255, 0.55);
  }
}

@keyframes no-add-fund-icon-hue-dark {
  0%,
  100% {
    filter: brightness(0) saturate(100%) invert(78%) sepia(28%) saturate(1200%)
      hue-rotate(204deg) brightness(108%) contrast(102%);
  }
  50% {
    filter: brightness(0) saturate(100%) invert(74%) sepia(35%) saturate(1400%)
      hue-rotate(214deg) brightness(110%) contrast(102%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .no-add-fund-link,
  .no-add-fund-link::before,
  .no-add-fund-link img,
  .no-add-fund-icon,
  .no-add-fund-icon::after {
    animation: none;
  }

  .no-add-fund-link:hover,
  .no-add-fund-link:focus {
    transform: none;
  }

  .no-add-fund-link:hover .no-add-fund-icon,
  .no-add-fund-link:focus .no-add-fund-icon {
    transform: none;
  }
}

/* Form */
.no-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.no-search-wrap {
  position: relative;
}

.no-search-wrap .search-dropdown {
  position: relative !important;
}

.no-search-wrap .input-wrapper {
  position: relative;
}

/* Real search icon (data-URI) — not FA, not CDN img */
.no-search-wrap .input-wrapper::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 18px !important;
  right: auto !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
  z-index: 6 !important;
  pointer-events: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 0 !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17 17L21 21M3 11C3 13.1217 3.84285 15.1566 5.34315 16.6569C6.84344 18.1571 8.87827 19 11 19C13.1217 19 15.1566 18.1571 16.6569 16.6569C18.1571 15.1566 19 13.1217 19 11C19 8.87827 18.1571 6.84344 16.6569 5.34315C15.1566 3.84285 13.1217 3 11 3C8.87827 3 6.84344 3.84285 5.34315 5.34315C3.84285 6.84344 3 8.87827 3 11Z' stroke='%236060ab' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.dashboard-body.rtl .no-search-wrap .input-wrapper::before {
  left: auto !important;
  right: 18px !important;
}

[data-theme="dark"] .no-search-wrap .input-wrapper::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17 17L21 21M3 11C3 13.1217 3.84285 15.1566 5.34315 16.6569C6.84344 18.1571 8.87827 19 11 19C13.1217 19 15.1566 18.1571 16.6569 16.6569C18.1571 15.1566 19 13.1217 19 11C19 8.87827 18.1571 6.84344 16.6569 5.34315C15.1566 3.84285 13.1217 3 11 3C8.87827 3 6.84344 3.84285 5.34315 5.34315C3.84285 6.84344 3 8.87827 3 11Z' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Hide platform button / FA / broken img so only ::before shows */
.no-search-wrap .input-wrapper > button,
.no-search-wrap .input-wrapper button,
.no-search-wrap .input-wrapper > .fas,
.no-search-wrap .input-wrapper > .fa,
.no-search-wrap .input-wrapper > .far,
.no-search-wrap .input-wrapper > [class*="fa-"],
.no-search-wrap .input-wrapper > i,
.no-search-wrap .input-wrapper > span.fas,
.no-search-wrap .input-wrapper > span.fa {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  font-size: 0 !important;
  color: transparent !important;
}

.no-search-wrap .input-wrapper button::before,
.no-search-wrap .input-wrapper button::after {
  content: none !important;
  display: none !important;
}

.no-field-input,
.no-form .form-control {
  width: 100%;
  background: var(--input-bg) !important;
  border: 0.5px solid var(--input-border) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--input-text) !important;
  height: auto !important;
  min-height: 56px;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

/* Search keeps extra left space for the icon (icon 18+24, gap 8) */
.no-search-wrap #template-input,
.no-search-wrap .input-wrapper > input.form-control,
.no-search-wrap .input-wrapper > input.select2-selection,
.no-search-wrap
  .search-dropdown.select2-container--default
  .input-wrapper
  input.select2-selection,
.no-search-wrap
  .search-dropdown.select2-container--open
  .input-wrapper
  input,
.no-search-wrap .search-dropdown .input-wrapper input {
  padding: 16px 18px 16px 50px !important;
  background-image: none !important;
  text-align: left !important;
}

.no-form #fields .form-control,
.no-form #order_link .form-control,
.no-form #order_quantity .form-control,
.no-form #dripfeed .form-control,
.no-form .form-group .form-control {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.no-search-wrap #template-input::placeholder {
  color: var(--input-text);
  opacity: 1;
}

.no-form select.form-control {
  padding-left: 18px !important;
  cursor: pointer;
}

.no-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.no-field-label,
.no-form .control-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

.no-field-input-wrap {
  position: relative;
}

/* New Order: keep main page scrollable while Select2 is open */
body.no-select2-scroll-bridge .dashboard-main {
  overflow-y: auto !important;
  touch-action: pan-y !important;
}

@media (max-width: 992px) {
  body.no-select2-scroll-bridge .dashboard-main {
    overflow: visible !important;
    touch-action: auto !important;
  }

  body.no-select2-scroll-bridge {
    overflow-y: auto !important;
    touch-action: pan-y !important;
  }
}

/* New Order custom dropdowns — same scroll-friendly pattern as Add Funds */
.no-page .no-field-input-wrap.af-select-wrap--select2 {
  position: relative;
  z-index: 2;
}

.no-page .no-field-input-wrap.af-select-wrap--select2.is-open {
  z-index: 10050;
}

.no-page .no-field-input-wrap--select.af-select-wrap--select2::after {
  display: none;
}

.no-page .no-field-input-wrap--select.af-select-wrap--select2 select.af-select-native,
.no-page .no-field-input-wrap--select.af-select-wrap--select2 select.form-control {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.no-page .no-order-select-trigger,
.no-page .no-field-input-wrap.af-select-wrap--select2 .af-select2-trigger,
.no-page #orderform-category-trigger,
.no-page #orderform-service-trigger {
  min-height: 56px;
  height: auto;
  padding: 16px 44px 16px 18px;
  justify-content: flex-start;
  text-align: left;
  background: var(--input-bg);
  border: 0.5px solid var(--input-border);
  color: var(--input-text);
}

.no-page .af-select2-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Empty/hidden icon must not reserve space (was pushing text right) */
.no-page .af-select2-trigger__icon[hidden],
.no-page #orderform-category-trigger .af-select2-trigger__icon:empty,
.no-page #orderform-service-trigger .af-select2-trigger__icon:empty {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.no-page #orderform-category-trigger .af-select2-trigger__text,
.no-page #orderform-service-trigger .af-select2-trigger__text,
.no-page .af-select2-trigger__text.select2-selection__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.no-page #orderform-service-trigger .select2-selection__text-inner {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Service ID pill — match search dropdown .select2-selection__id */
.no-page .select2-selection__id,
.no-page .badge.select2-selection__id,
.no-page .select2-results__option .select2-selection__id,
.no-page #orderform-service-results .select2-selection__id,
.no-page #orderform-service-trigger .select2-selection__id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin: 0;
  border-radius: 999px;
  background: #6c757d;
  background-color: #6c757d;
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

[data-theme="dark"] .no-page .select2-selection__id,
[data-theme="dark"] .no-page .badge.select2-selection__id,
[data-theme="dark"] .no-page .select2-results__option .select2-selection__id,
[data-theme="dark"] .no-page #orderform-service-results .select2-selection__id,
[data-theme="dark"] .no-page #orderform-service-trigger .select2-selection__id {
  background: #6c757d;
  background-color: #6c757d;
  color: #ffffff !important;
}

[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option.active .select2-selection__id,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option[aria-selected="true"] .select2-selection__id,
[data-theme="dark"] .no-page #orderform-service-results > li.active .select2-selection__id {
  background: rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}

.no-page .af-select2-dropdown .select2-results__option.active .select2-selection__id,
.no-page .af-select2-dropdown .select2-results__option[aria-selected="true"] .select2-selection__id,
.no-page #orderform-service-results > li.active .select2-selection__id,
.no-page .select2-results__options > li.active .select2-selection__id {
  background: rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}

.no-page .af-select2-trigger__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.no-page .no-search-wrap,
.no-page .no-search-wrap .search-dropdown,
.no-page #select-category-container {
  position: relative;
  overflow: visible !important;
}

.no-page .no-search-wrap .select2-dropdown,
.no-page #select-category-container .select2-dropdown {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 6px) !important;
  width: 100% !important;
  z-index: 10050 !important;
  border: 0.5px solid var(--border) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(14, 13, 40, 0.12) !important;
}

/* New Order — opaque dark dropdowns (search + category + service) */
[data-theme="dark"] .no-page .no-search-wrap .select2-dropdown,
[data-theme="dark"] .no-page .no-search-wrap .select2-dropdown.dropdown-menu,
[data-theme="dark"] .no-page #select-category-container .select2-dropdown,
[data-theme="dark"] .no-page .af-select2-dropdown,
[data-theme="dark"] .no-page .af-select2-dropdown.is-open,
[data-theme="dark"] .no-page .af-select-wrap--select2.is-open .af-select2-dropdown {
  background: #1a1a28 !important;
  background-color: #1a1a28 !important;
  border-color: rgba(204, 204, 204, 0.16) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
}

[data-theme="dark"] .no-page .no-search-wrap .select2-results,
[data-theme="dark"] .no-page .no-search-wrap .select2-results__options,
[data-theme="dark"] .no-page .no-search-wrap .select2-dropdown .dropdown-menu,
[data-theme="dark"] .no-page #select-category-container .select2-results,
[data-theme="dark"] .no-page #select-category-container .select2-results__options,
[data-theme="dark"] .no-page #select-category-container .select2-dropdown .dropdown-menu,
[data-theme="dark"] .no-page #select2-orderform-category-results,
[data-theme="dark"] .no-page #select2-orderform-service-results,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__options,
[data-theme="dark"] .no-page .af-select2-dropdown .dropdown-menu,
[data-theme="dark"] .no-page .af-select2-dropdown .dropdown-menu.show {
  background: #1a1a28 !important;
  background-color: #1a1a28 !important;
  opacity: 1 !important;
}

[data-theme="dark"] .no-page .no-search-wrap .select2-results__options > li,
[data-theme="dark"] .no-page .no-search-wrap .select2-results__options > li > a,
[data-theme="dark"] .no-page #select-category-container .select2-results__options > li,
[data-theme="dark"] .no-page #select-category-container .select2-results__options > li > a,
[data-theme="dark"] .no-page #select2-orderform-category-results > li,
[data-theme="dark"] .no-page #select2-orderform-category-results > li > a,
[data-theme="dark"] .no-page #select2-orderform-service-results > li,
[data-theme="dark"] .no-page #select2-orderform-service-results > li > a,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option > a {
  background: #1a1a28 !important;
  background-color: #1a1a28 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .no-page .no-search-wrap .select2-results__options > li:hover,
[data-theme="dark"] .no-page .no-search-wrap .select2-results__options > li:hover > a,
[data-theme="dark"] .no-page #select-category-container .select2-results__options > li:hover,
[data-theme="dark"] .no-page #select-category-container .select2-results__options > li:hover > a,
[data-theme="dark"] .no-page #select2-orderform-category-results > li:hover,
[data-theme="dark"] .no-page #select2-orderform-category-results > li:hover > a,
[data-theme="dark"] .no-page #select2-orderform-service-results > li:hover,
[data-theme="dark"] .no-page #select2-orderform-service-results > li:hover > a,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option:hover,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option:hover > a,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option--highlighted,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option--highlighted > a {
  background: #2a2a3d !important;
  background-color: #2a2a3d !important;
  color: #ffffff !important;
}

[data-theme="dark"] .no-page .no-search-wrap .select2-results__options > li.active,
[data-theme="dark"] .no-page .no-search-wrap .select2-results__options > li.active > a,
[data-theme="dark"] .no-page #select-category-container .select2-results__options > li.active,
[data-theme="dark"] .no-page #select-category-container .select2-results__options > li.active > a,
[data-theme="dark"] .no-page #select2-orderform-category-results > li.active,
[data-theme="dark"] .no-page #select2-orderform-category-results > li.active > a,
[data-theme="dark"] .no-page #select2-orderform-category-results > li[aria-selected="true"],
[data-theme="dark"] .no-page #select2-orderform-category-results > li[aria-selected="true"] > a,
[data-theme="dark"] .no-page #select2-orderform-service-results > li.active,
[data-theme="dark"] .no-page #select2-orderform-service-results > li.active > a,
[data-theme="dark"] .no-page #select2-orderform-service-results > li[aria-selected="true"],
[data-theme="dark"] .no-page #select2-orderform-service-results > li[aria-selected="true"] > a,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option.active,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option.active > a,
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option[aria-selected="true"],
[data-theme="dark"] .no-page .af-select2-dropdown .select2-results__option[aria-selected="true"] > a {
  background: #6060ab !important;
  background-color: #6060ab !important;
  color: #ffffff !important;
}

[data-theme="dark"] .no-page #orderform-category-trigger .af-select2-trigger__chevron,
[data-theme="dark"] .no-page #orderform-service-trigger .af-select2-trigger__chevron,
[data-theme="dark"] .no-page .af-select2-trigger__chevron,
[data-theme="dark"] .no-page .no-order-select-trigger .af-select2-trigger__chevron {
  filter: brightness(0) invert(1);
}

.no-field-input-wrap .form-control {
  padding-right: 48px !important;
}

.no-field-input-wrap--select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  background: url("https://storage.perfectcdn.com/rqgep0/pt406r5tcelf0ncx.svg")
    center / contain no-repeat;
  border: none;
  pointer-events: none;
}

.no-field-input-wrap input::after {
  display: none;
}

.no-field-input-wrap input.form-control::after,
.no-field-input-wrap input[type="text"]:not([readonly])::after {
  content: none;
}

.no-field-input-wrap input[readonly] {
  cursor: default;
}

.no-field-input-wrap.no-no-chevron::after {
  display: none;
}

.no-charge-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  min-height: 64px;
  padding: 18px;
  box-sizing: border-box;
  background: var(--charge-bg);
  border: 0.5px solid var(--charge-border);
  border-radius: 16px;
}

.no-charge-label {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0;
  flex-shrink: 0;
}

.no-charge-box .no-charge-value,
.no-form .no-charge-box .no-charge-value {
  font-family: var(--font-ui);
  font-size: 20px !important;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.2px;
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  max-width: 100%;
  flex: 1 1 auto;
  text-align: right;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: default;
}

.no-submit-btn,
.no-form .btn-primary {
  width: 100%;
  padding: 8px 24px;
  border: none;
  border-bottom: 1.6px solid var(--brand);
  border-radius: 12px;
  background: linear-gradient(
    173.3deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  ) !important;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1.35px 4.05px rgba(14, 35, 22, 0.2);
  cursor: pointer;
  min-height: 58px;
  transition: opacity 0.2s;
  box-shadow: none !important;
}

.no-submit-btn:hover,
.no-form .btn-primary:hover {
  opacity: 0.92;
}

.no-form #fields .form-group {
  margin-bottom: 0;
}

.no-form #fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.no-form .terms {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.no-form .terms a {
  color: var(--brand);
  text-decoration: underline;
}

/* Service details panel */
.no-details-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Same spacing under header as left card (avoid margin + gap stacking) */
.no-details-panel > .no-card-header {
  margin-bottom: 0;
}

.no-details-tabs {
  display: inline-flex;
  gap: 12px;
  background: var(--surface);
  border: 0.4px solid rgba(96, 96, 171, 0.5);
  border-radius: 12px;
  padding: 8px;
  width: fit-content;
}

.no-details-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-dark);
}

.no-details-tab.is-active {
  background: var(--gradient-brand);
  color: var(--white);
}

.no-instruction {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.no-instruction-box,
.no-instruction-note {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-sizing: border-box;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.no-instruction-note {
  gap: 0;
}

.no-instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.no-instruction-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
  object-fit: contain;
}

.no-instruction-item p,
.no-instruction-note p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-muted);
}

.no-instruction-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.no-instruction-note p {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.5;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.no-details-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.no-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.no-detail-readonly {
  background: var(--input-bg);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  min-height: 56px;
  font-family: var(--font-detail);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.no-detail-readonly--lg {
  min-height: 64px;
}

.no-details-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.no-description-box {
  background: var(--input-bg);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  min-height: 160px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-muted);
}

.no-form #service_description {
  display: none !important;
}

/* Alerts */
.no-alert {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  position: relative;
}

.no-alert--danger {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

.no-alert--success {
  background: #def7ec;
  color: #03543f;
  border: 1px solid #84e1bc;
}

.no-alert .close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
}

.no-page-text {
  background: var(--surface);
  border: 1px solid rgba(96, 96, 171, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}

/* Hide default bootstrap chrome */
.dashboard-body .navbar,
.dashboard-body .container > .row > .well {
  all: unset;
}

.dashboard-body .well {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* Select2 / custom select overrides (category/service only — not search input) */
.no-form
  .no-field-input-wrap--select
  .select2-container--default
  .select2-selection--single,
.no-form
  .no-field-input-wrap--select
  .select2-container--default
  .select2-selection--single.form-control {
  background: var(--input-bg) !important;
  border: 0.5px solid var(--border) !important;
  border-radius: 12px !important;
  min-height: 64px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  padding: 12px 48px 12px 18px !important;
}

.no-form
  .no-field-input-wrap--select
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 1.4 !important;
  font-size: 16px !important;
  color: var(--text-muted) !important;
  padding: 0 !important;
  margin: 0 !important;
  left: 0 !important;
  position: relative !important;
}

.no-form
  .no-field-input-wrap--select
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow,
.no-form
  .no-field-input-wrap--select
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  display: none !important;
}

.no-form .select2-container {
  width: 100% !important;
}

/* Native selects for addfunds / customer care pages */
.af-page .select2-container,
.cc-page .select2-container,
.af-page .bootstrap-select,
.cc-page .bootstrap-select {
  display: none !important;
}

.af-page select.af-select,
.af-page select.form-control,
.cc-page select.af-select,
.cc-page select.form-control,
.cc-page #ticket-fields select,
.cc-page #ticket-subcategory-fields select {
  display: block !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 16px 44px 16px 18px !important;
  border-radius: 12px !important;
  border: 0.5px solid var(--border) !important;
  background-color: var(--surface-muted) !important;
  background-image: url("https://storage.perfectcdn.com/rqgep0/pt406r5tcelf0ncx.svg") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 12px 7px !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer !important;
}

/* Category wrap already has a chevron img — hide CSS duplicate */
.cc-page .af-select-wrap select.af-select,
.cc-page .af-select-wrap select.form-control {
  background-image: none !important;
}

.cc-page #ticket-fields input.form-control,
.cc-page #ticket-fields input[type="text"],
.cc-page #ticket-subcategory-fields input.form-control,
.cc-page #ticket-subcategory-fields input[type="text"] {
  display: block !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 16px 18px !important;
  border-radius: 12px !important;
  border: 0.5px solid var(--border) !important;
  background: var(--surface-muted) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.cc-page #ticket-fields .form-group,
.cc-page #ticket-subcategory-fields .form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 24px;
}

.cc-page #ticket-fields .form-group > label,
.cc-page #ticket-subcategory-fields .form-group > label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

.af-page .af-select-wrap .af-select-leading + select.af-select,
.af-page .af-select-wrap .af-select-leading + select.form-control {
  padding-left: 50px !important;
}

/* Select2 + search dropdown list items */
.select2-container--open .select2-dropdown.select2-dropdown--below,
.select2-container--open .select2-dropdown.dropdown-menu {
  border: 0.5px solid var(--border) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(14, 13, 40, 0.12) !important;
}

#select2-orderform-service-results {
  max-height: 350px !important;
}

.select2-container--default .select2-results__option,
.select2-dropdown .select2-results__option,
.select2-results__options > li,
#select2-orderform-category-results > li,
#select2-orderform-service-results > li,
.no-search-wrap .search-dropdown .dropdown-menu > li,
.no-search-wrap .search-dropdown ul > li,
.search-dropdown .dropdown-menu > li {
  border-bottom: 1px dotted var(--border) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.select2-container--default .select2-results__option:last-child,
.select2-dropdown .select2-results__option:last-child,
.select2-results__options > li:last-child,
#select2-orderform-category-results > li:last-child,
#select2-orderform-service-results > li:last-child,
.no-search-wrap .search-dropdown .dropdown-menu > li:last-child,
.no-search-wrap .search-dropdown ul > li:last-child,
.search-dropdown .dropdown-menu > li:last-child {
  border-bottom: none !important;
}

.select2-container--default .select2-results__option a,
.select2-dropdown .select2-results__option a,
.select2-results__options > li > a,
#select2-orderform-category-results > li > a,
#select2-orderform-service-results > li > a,
.no-search-wrap .search-dropdown .dropdown-menu > li > a,
.no-search-wrap .search-dropdown ul > li > a,
.search-dropdown .dropdown-menu > li > a {
  display: block !important;
  padding: 10px 16px !important;
  border-bottom: 1px dotted var(--border) !important;
  color: var(--text-dark, #080808) !important;
  text-decoration: none !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

.select2-container--default .select2-results__option:last-child a,
.select2-dropdown .select2-results__option:last-child a,
.select2-results__options > li:last-child > a,
#select2-orderform-category-results > li:last-child > a,
#select2-orderform-service-results > li:last-child > a,
.no-search-wrap .search-dropdown .dropdown-menu > li:last-child > a,
.no-search-wrap .search-dropdown ul > li:last-child > a,
.search-dropdown .dropdown-menu > li:last-child > a {
  border-bottom: none !important;
}

.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted a,
.select2-results__options > li:hover > a,
#select2-orderform-category-results > li:hover > a,
#select2-orderform-service-results > li:hover > a,
.no-search-wrap .search-dropdown .dropdown-menu > li:hover > a,
.search-dropdown .dropdown-menu > li:hover > a {
  background: rgba(96, 96, 171, 0.08) !important;
  color: var(--brand, #6060ab) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default
  .select2-results__option[aria-selected="true"].select2-results__option--highlighted,
.select2-container--default .select2-results__option[aria-selected="true"] a,
.select2-container--default
  .select2-results__option[aria-selected="true"].select2-results__option--highlighted
  a,
.select2-results__options > li.active,
.select2-results__options > li.active > a,
.select2-results__options.dropdown-menu > .active > a,
.select2-results__options.dropdown-menu > .active > a:hover,
.select2-results__options.dropdown-menu > .active > a:focus,
.select2-dropdown .dropdown-menu > .active > a,
.select2-dropdown.dropdown-menu > .active > a,
#select2-orderform-category-results > li[aria-selected="true"],
#select2-orderform-category-results > li[aria-selected="true"] > a,
#select2-orderform-category-results > li.active > a,
#select2-orderform-service-results > li[aria-selected="true"],
#select2-orderform-service-results > li[aria-selected="true"] > a,
#select2-orderform-service-results > li.active > a,
.no-search-wrap .search-dropdown .dropdown-menu > li.active > a,
.search-dropdown .dropdown-menu > li.active > a {
  background: var(--brand, #6060ab) !important;
  background-color: var(--brand, #6060ab) !important;
  color: #ffffff !important;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--gradient-brand);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn img {
  width: 14px;
  height: 12px;
  display: block;
  object-fit: contain;
}

/* Mobile bottom nav — Figma 4445:46546 (small devices only) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  pointer-events: none;
  padding: 0 0 env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav__bar {
  position: relative;
  height: 68px;
  margin-top: 13px;
  background: #ffffff;
  box-shadow: 0 -6px 20px rgba(138, 138, 138, 0.2);
}

.mobile-bottom-nav__items {
  position: absolute;
  left: 6.82%;
  right: 6.82%;
  bottom: 10px;
  top: -13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  /* Let scroll gestures pass through gaps; only links capture taps */
  pointer-events: none;
}

.mobile-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 54px;
  min-height: 44px;
  text-decoration: none;
  pointer-events: auto;
  color: #6060ab;
  opacity: 0.85;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:focus,
.mobile-bottom-nav__item:focus-visible,
.mobile-bottom-nav__item:active,
.mobile-bottom-nav__item:visited {
  text-decoration: none;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #6060ab;
}

.mobile-bottom-nav__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.mobile-bottom-nav__item--featured {
  width: 72px;
  min-height: 71px;
  gap: 8px;
  opacity: 1;
}

.mobile-bottom-nav__item.is-active {
  opacity: 1;
}

.mobile-bottom-nav__item.is-active .mobile-bottom-nav__label {
  font-weight: 600;
}

.mobile-bottom-nav__icon--services {
  background-image: url("https://storage.perfectcdn.com/rqgep0/kph3q3cu2wa4hcse.svg");
}

.mobile-bottom-nav__icon--orders {
  background-image: url("https://storage.perfectcdn.com/rqgep0/6hc3o2t1r8z8pug0.svg");
}

.mobile-bottom-nav__icon--add-funds {
  background-image: url("https://storage.perfectcdn.com/rqgep0/i62fji07uqmp6c15.svg");
}

.mobile-bottom-nav__icon--account {
  background-image: url("https://storage.perfectcdn.com/rqgep0/w262ph6gak63etgg.svg");
}

.mobile-bottom-nav__fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(
    108.21deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  );
  box-shadow: 0 4px 15px rgba(31, 65, 187, 0.36);
}

.mobile-bottom-nav__fab-icon {
  display: block;
  width: 24px;
  height: 24px;
  background: url("https://storage.perfectcdn.com/rqgep0/knubbxafkr14fe76.svg")
    center / contain no-repeat;
}

.mobile-bottom-nav__label {
  margin: 0;
  width: 100%;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: #6060ab;
  white-space: nowrap;
}

.mobile-bottom-nav__item--featured .mobile-bottom-nav__label {
  font-weight: 500;
}

.mobile-bottom-nav__item--featured.is-active .mobile-bottom-nav__label {
  font-weight: 600;
}

.mobile-bottom-nav__item[data-mb-nav="addfunds"] {
  width: 64px;
}

.mobile-bottom-nav__item[data-mb-nav="account"] {
  width: auto;
  min-width: 48px;
}

[data-theme="dark"] .mobile-bottom-nav__bar {
  background: #16152e;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .mobile-bottom-nav__item,
[data-theme="dark"] .mobile-bottom-nav__label {
  color: #dddddd;
}

[data-theme="dark"] .mobile-bottom-nav__icon {
  filter: brightness(0) invert(1);
}

/* Add Funds page */
.af-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.af-welcome-card .af-welcome-icon {
  width: 249px;
  height: 140px;
  right: 41px;
}

.af-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.af-form-card,
.af-side-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.af-form-card .no-card-header {
  margin-bottom: 24px;
}

.af-side-card {
  gap: 30px;
  padding-bottom: 24px;
}

.af-side-card > .af-side-tabs-wrap {
  margin: 0;
}

.af-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.no-card-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.af-form-card .no-card-tab img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0);
}

.af-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.af-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  color: var(--text-dark);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.af-method-card.is-active,
.af-method-card.is-active:hover,
.af-method-card.is-active:focus,
button.af-method-card.is-active {
  background: var(--gradient-brand);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--white);
}

.af-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.af-method-icon img {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.af-method-label {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.af-field-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

.af-quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.af-amount-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 64px;
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--page-bg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  user-select: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.af-amount-chip.is-active,
.af-amount-chip.is-active:hover,
.af-amount-chip.is-active:focus,
button.af-amount-chip.is-active {
  background: var(--gradient-brand);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--white);
}

.af-select-wrap,
.af-input-wrap {
  position: relative;
  width: 100%;
}

.af-select-wrap .af-select,
.af-input-wrap .form-control,
.af-select-wrap .form-control {
  width: 100%;
  height: 64px;
  padding: 16px 44px 16px 50px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
}

.af-input-wrap .form-control {
  padding-left: 18px;
  padding-right: 18px;
}

/* Perfect Panel injects amount conversion + commission rows without .af-input-wrap */
.af-page #addfunds-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.af-page #addfunds-form > .form-group {
  margin-bottom: 0;
}

.af-page #amount-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  column-gap: 12px;
  row-gap: 12px;
  width: 100%;
}

.af-page #amount-fields > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.af-page #amount-converted-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1;
  cursor: default;
  align-self: end;
}

.af-page #amount-converted-icon .fa,
.af-page #amount-converted-icon .fas,
.af-page #amount-converted-icon i {
  display: block;
  line-height: 1;
  color: currentColor;
}

.af-page #amount-fields .control-label,
.af-page #addfunds-form [id^="order_"] .control-label,
.af-page #addfunds-form [id^="order_"] > label,
.af-page #addfunds-form .form-group.fields > label,
.af-page #addfunds-form .form-group.fields .control-label,
.af-page .commission-fields .control-label,
.af-page .commission-fields > label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 12px;
  display: block;
}

.af-page #amount-fields .form-control,
.af-page #amount-converted-input,
.af-page #addfunds-form [id^="order_"] .form-control,
.af-page #addfunds-form [id^="order_"] input,
.af-page #addfunds-form [id^="field-"],
.af-page #addfunds-form .form-group.fields .form-control,
.af-page #addfunds-form .form-group.fields input,
.af-page #addfunds-form .form-group.fields select,
.af-page #addfunds-form .form-group.fields textarea,
.af-page .commission-fields .form-control,
.af-page .commission-fields input {
  width: 100%;
  height: 64px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.af-page #addfunds-form .form-group.fields textarea,
.af-page #addfunds-form [id^="order_"] textarea {
  height: auto;
  min-height: 96px;
  resize: vertical;
}

.af-page #order_extra_fee,
.af-page #order_total,
.af-page #addfunds-form [id^="order_"],
.af-page #addfunds-form .form-group.fields,
.af-page .form-group.commission-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  width: 100%;
}

.af-page #addfunds-form [id^="order_"] .form-control[disabled],
.af-page #addfunds-form [id^="order_"] input[disabled],
.af-page #addfunds-form [id^="field-"][disabled],
.af-page #addfunds-form .form-group.fields .form-control[disabled],
.af-page #addfunds-form .form-group.fields input[disabled],
.af-page .commission-fields .form-control[disabled],
.af-page .commission-fields input[disabled],
.af-page #addfunds-form [id^="order_"] .form-control[readonly],
.af-page #addfunds-form [id^="order_"] input[readonly],
.af-page #addfunds-form [id^="field-"][readonly],
.af-page #addfunds-form .form-group.fields .form-control[readonly],
.af-page .commission-fields .form-control[readonly] {
  opacity: 1;
  color: var(--text-muted);
  background: var(--surface-muted);
  cursor: default;
}

.af-select-leading {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.af-select-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Select2-style payment method dropdown (Add Funds) */
.af-select-wrap--select2 {
  z-index: 2;
}

.af-select-wrap--select2.is-open {
  z-index: 40;
}

.af-page .af-select-wrap--select2 select.af-select-native,
.af-page .af-select-wrap--select2 select.af-select.af-select-native,
.af-page .af-select-wrap--select2 select.form-control.af-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: none !important;
  background-image: none !important;
  display: block !important; /* keep in layout for form submit; visually clipped */
  z-index: 0 !important;
}

.af-select-wrap--select2 .af-select2-trigger {
  position: relative;
  z-index: 2;
}

.af-select-wrap--select2 .af-select-leading[hidden],
.af-select-wrap--select2 .af-select-chevron[hidden] {
  display: none !important;
}

.af-select2-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  height: 64px;
  padding: 12px 44px 12px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.af-select2-trigger:focus {
  outline: none;
  border-color: var(--brand, #6060ab);
}

.af-select2-trigger__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.af-select2-trigger__icon[hidden] {
  display: none !important;
}

.af-select2-trigger__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.af-select2-trigger__chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 7px;
  pointer-events: none;
}

.af-select-wrap--select2.is-open .af-select2-trigger__chevron {
  transform: translateY(-50%) rotate(180deg);
}

.af-select2-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  margin: 0;
  padding: 0;
  border: 0.5px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--surface, #ffffff);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(14, 13, 40, 0.12) !important;
}

/* Bootstrap / Select2 hide .dropdown-menu & .select2-dropdown by default */
.af-select2-dropdown[hidden],
.af-select-wrap--select2:not(.is-open) .af-select2-dropdown {
  display: none !important;
}

.af-select-wrap--select2.is-open .af-select2-dropdown,
.af-select2-dropdown:not([hidden]),
.af-select2-dropdown.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.af-select-wrap--select2.is-open .af-select2-dropdown .select2-results,
.af-select-wrap--select2.is-open .af-select2-dropdown .select2-results__options,
.af-select-wrap--select2.is-open .af-select2-dropdown .dropdown-menu,
.af-select2-dropdown:not([hidden]) .select2-results,
.af-select2-dropdown:not([hidden]) .select2-results__options,
.af-select2-dropdown:not([hidden]) .dropdown-menu,
.af-select2-dropdown.is-open .select2-results,
.af-select2-dropdown.is-open .select2-results__options,
.af-select2-dropdown.is-open .dropdown-menu,
.af-select2-dropdown .dropdown-menu.show {
  display: block !important;
  position: static !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.af-select-wrap--select2.is-open {
  z-index: 40;
  overflow: visible !important;
}

/* Keep overflow changes local — changing .dashboard-content overflow jumps scroll to top */
.af-field-group:has(.af-select-wrap--select2.is-open),
.af-form:has(.af-select-wrap--select2.is-open) {
  overflow: visible;
}

.af-select2-dropdown .select2-results {
  display: block;
}

.af-select2-dropdown .select2-results__options {
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.af-select2-dropdown .select2-results__option > a,
.af-select2-dropdown .select2-results__option > .af-select2-option {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  box-sizing: border-box;
  cursor: pointer;
}

.af-select2-dropdown .select2-selection__icon,
.select2-results__option .select2-selection__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.af-select2-dropdown .select2-selection__icon img,
.select2-results__option .select2-selection__icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.af-select2-dropdown .select2-selection__text,
.select2-results__option .select2-selection__text {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.af-instruction-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--page-bg);
}

.af-instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.af-instruction-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.af-instruction-item p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-muted);
}

.af-instruction-item strong {
  font-weight: 600;
}

.af-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 18px 30px;
  border-radius: 16px;
  border: 0.5px solid var(--brand);
  background: rgba(152, 161, 216, 0.18);
}

.af-total-label,
.af-total-value {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

.af-total-label {
  font-size: 18px;
}

.af-total-value {
  font-size: 20px;
  letter-spacing: 0.2px;
}

.af-side-tabs-wrap {
  width: 100%;
  min-height: 80px;
  padding: 12px 8px 12px 16px;
  border-radius: 14px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Add Funds page only — Figma Das.Header bg */
.af-page:not(.cc-page):not(.ms-page):not(.cp-page):not(.ac-page)
  .af-side-tabs-wrap {
  background-color: var(--card-header-bg);
  background-image: var(--card-header-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.af-side-tabs {
  width: auto;
}

/* Tutorial Video tab — play-icon pulse stays on the button */
.af-page .af-video-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.af-page .af-video-tab .af-video-tab-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand, #6060ab);
  box-shadow: 0 0 0 0 rgba(96, 96, 171, 0.45);
}

.af-page .af-video-tab .af-video-tab-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
  z-index: 1;
}

.af-page .af-video-tab:not(.is-active) .af-video-tab-play {
  animation: af-video-play-pulse 1.4s ease-in-out infinite;
}

.af-page .af-video-tab.is-active .af-video-tab-play {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  animation: none;
}

.af-page .af-video-tab.is-active .af-video-tab-play::before {
  border-color: transparent transparent transparent var(--brand, #6060ab);
}

.af-page .af-video-tab:not(.is-active):hover .af-video-tab-play,
.af-page .af-video-tab:not(.is-active):focus .af-video-tab-play {
  animation: none;
  transform: scale(1.1);
  box-shadow: 0 0 8px 2px rgba(96, 96, 171, 0.4);
}

/* Soft pulse on the play button only — no outward ring */
@keyframes af-video-play-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(96, 96, 171, 0.55);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 10px 3px rgba(107, 124, 255, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-page .af-video-tab:not(.is-active) .af-video-tab-play {
    animation: none;
  }
}

.af-faq-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.af-faq {
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.af-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

.af-faq summary::-webkit-details-marker {
  display: none;
}

.af-faq summary img {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.af-faq[open] summary img {
  transform: rotate(180deg);
}

.af-faq-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.af-faq-body > p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-muted);
}

.af-support-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--page-bg);
}

.af-support-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.af-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 8px 12px 8px 6px;
  border-radius: 8px;
  background: #58c841;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.af-support-btn:hover,
.af-support-btn:focus,
.af-support-btn:active {
  color: var(--white);
  text-decoration: none;
  background: #58c841;
}

.af-support-wa-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.af-support-wa-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.af-history-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
}

.af-history-empty p {
  margin: 0;
}

.af-tutorial-video {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: min(560px, 70vh);
}

.af-tutorial-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.af-history-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.af-history-table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
}

.af-history-table thead th {
  padding: 16px 20px;
  background: #6d6eaf;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  border: 0;
  white-space: nowrap;
}

.af-history-table thead th:first-child {
  border-radius: 16px 0 0 0;
}

.af-history-table thead th:last-child {
  border-radius: 0 16px 0 0;
}

.af-history-table tbody td {
  padding: 16px 20px;
  vertical-align: middle;
  border: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #202020;
  background-clip: padding-box;
  white-space: nowrap;
}

.af-history-table tbody tr:nth-child(odd) td {
  background-color: #fff;
}

.af-history-table tbody tr:nth-child(even) td {
  background-color: #f3f3f3;
}

.af-history-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 16px;
}

.af-history-table tbody tr:last-child td:last-child {
  border-radius: 0 0 16px 0;
}

.af-history-id {
  width: 1%;
  white-space: nowrap;
}

.af-history-datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: normal;
}

.af-history-date,
.af-history-time {
  display: block;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.af-history-method {
  white-space: nowrap;
}

.af-history-amount {
  white-space: nowrap;
}

.af-history-amount span,
.af-history-amount a {
  display: block;
  white-space: nowrap;
}

.af-history-invoice {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.af-history-invoice:hover {
  text-decoration: underline;
}

.af-form-card .no-card-tab--gradient.is-active img {
  filter: brightness(0) invert(1);
}

.af-instruction-content {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.af-instruction-content p:last-child {
  margin-bottom: 0;
}

/* My Orders page */
.mo-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
}

.mo-search-card,
.mo-filters-card,
.mo-table-card {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.mo-search-card {
  padding: 24px 28px;
}

.mo-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-sizing: border-box;
  backdrop-filter: blur(40px);
}

.mo-search-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.mo-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-muted);
}

.mo-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.mo-filters-card {
  padding: 24px 28px;
}

.mo-filters-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  scrollbar-width: thin;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
}

.mo-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: 0;
  flex: 1 1 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: var(--surface-muted);
  color: var(--text-dark);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mo-filter:hover,
.mo-filter:focus,
.mo-filter:active,
.mo-filter:focus-visible {
  text-decoration: none;
}

.mo-filter span {
  flex-shrink: 0;
  white-space: nowrap;
}

.df-page .mo-filter {
  width: fit-content;
  flex: 0 0 auto;
  min-width: fit-content;
}

.mo-filter img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}

.mo-filter:not(.is-active) img {
  filter: brightness(0);
}

.mo-filter:hover {
  background: linear-gradient(
    142deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  );
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(96, 96, 171, 0.28);
}

.mo-filter:hover img {
  filter: brightness(0) invert(1);
}

.mo-filter.is-active {
  background: linear-gradient(
    142deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  );
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(96, 96, 171, 0.28);
}

.mo-filter.is-active:hover,
.mo-filter.is-active:focus,
.mo-filter.is-active:focus-visible {
  border-color: transparent;
  outline: none;
}

.mo-filter.is-active img {
  filter: brightness(0) invert(1);
}

.mo-table-card {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.mo-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.mo-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.mo-table th,
.mo-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
  box-sizing: border-box;
  white-space: nowrap;
}

.mo-table thead th {
  height: 70px;
  padding-top: 0;
  padding-bottom: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  background: var(--brand);
  white-space: nowrap;
  border-bottom: none;
}

.mo-table thead th:first-child {
  border-top-left-radius: 12px;
  padding-left: 32px;
}

.mo-table thead th:last-child {
  border-top-right-radius: 12px;
}

.mo-table tbody td {
  height: 74px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--table-text);
  background: var(--table-row-bg);
  border-bottom: none;
}

.mo-table tbody td:first-child {
  padding-left: 32px;
}

.mo-table tbody tr:nth-child(odd) td {
  background: rgba(96, 96, 171, 0.08);
}

.mo-table tbody tr:nth-child(even) td {
  background: rgba(96, 96, 171, 0.04);
}

.mo-table tbody tr:hover td {
  background: var(--surface-muted);
}

.mo-col-id {
  width: 10%;
}

.mo-col-date {
  width: 8%;
}

.mo-col-link {
  width: 140px;
  max-width: 160px;
}

.mo-col-num {
  width: 7%;
}

.mo-col-service {
  width: 180px;
  max-width: 200px;
  min-width: 0;
}

.mo-table th.mo-col-link,
.mo-table td.mo-col-link,
.mo-table th.mo-col-service,
.mo-table td.mo-col-service {
  white-space: normal;
  vertical-align: middle;
}

.mo-col-status,
.mo-col-action {
  width: 8%;
}

/* Drip Feed: full-width table, roomy Service */
.df-page .mo-table-card,
.df-page .mo-table-scroll {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.df-page .mo-table {
  width: 100%;
  min-width: 1100px;
  table-layout: fixed;
}

.df-page .mo-col-id {
  width: 7%;
  max-width: none;
  padding-left: 16px;
  padding-right: 8px;
}

.df-page .mo-col-date {
  width: 12%;
}

.df-page .mo-col-link {
  width: 14%;
}

.df-page .mo-col-num {
  width: 8%;
}

.df-page .mo-col-service {
  width: 16%;
  min-width: 0;
  max-width: none;
}

.df-page .mo-col-status {
  width: 9%;
}

.df-page .mo-service-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.df-page .mo-th-id,
.df-page .mo-id-cell {
  gap: 6px;
  max-width: 100%;
}

.mo-th-id,
.mo-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mo-check-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.mo-check-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.mo-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #202020;
  background: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
  pointer-events: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.mo-table thead .mo-check {
  border-color: rgba(255, 255, 255, 0.85);
}

.mo-check-input:checked + .mo-check {
  background: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l3 3 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.mo-table thead .mo-check-input:checked + .mo-check {
  background-color: var(--white);
  border-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236060ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l3 3 6-6'/%3E%3C/svg%3E");
}

.mo-check-input:indeterminate + .mo-check {
  background: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' d='M4 8h8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.mo-table thead .mo-check-input:indeterminate + .mo-check {
  background-color: var(--white);
  border-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236060ab' stroke-width='2' stroke-linecap='round' d='M4 8h8'/%3E%3C/svg%3E");
}

.mo-copy {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15 20H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1v1a2 2 0 0 1-2 2m1-4h1V8H8v1h6a2 2 0 0 1 2 2zm-2 2V11H7v7z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15 20H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1v1a2 2 0 0 1-2 2m1-4h1V8H8v1h6a2 2 0 0 1 2 2zm-2 2V11H7v7z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.mo-copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 1px solid var(--brand);
  border-radius: 4px;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}

.mo-copy-btn .mo-copy {
  width: 12px;
  height: 12px;
}

.mo-table thead .mo-copy-btn {
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
  color: var(--white);
}

.mo-table thead .mo-copy {
  background-color: var(--white);
}

.mo-table thead .mo-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mo-copy-btn.is-copied::after,
.mo-copy-tooltip {
  content: "Copied";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: #202020;
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
}

.mo-id-text {
  font-weight: 500;
  color: var(--text-dark);
}

.mo-date {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
}

.mo-link-text,
.mo-service-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.35;
  word-break: break-word;
  white-space: normal;
}

.mo-link-text {
  -webkit-line-clamp: 2;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.mo-link-text:hover,
.mo-link-text:focus,
.mo-link-text:active,
.mo-link-text:visited {
  color: var(--brand);
  text-decoration: none;
}

.mo-service-text {
  -webkit-line-clamp: 3;
}

.mo-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 97px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: var(--surface-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--brand);
  box-sizing: border-box;
  white-space: nowrap;
}

.mo-status--completed,
.mo-status--pending,
.mo-status--inprogress,
.mo-status--processing,
.mo-status--partial,
.mo-status--canceled,
.mo-status--cancelledled {
  background: var(--surface-muted);
  border-color: var(--brand);
  color: var(--brand);
}

.db-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.db-level-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 20px 24px;
  border-radius: 28px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.db-level-progress:hover,
.db-level-progress:focus-visible {
  border-color: rgba(96, 96, 171, 0.4);
  box-shadow: 0 8px 24px rgba(96, 96, 171, 0.12);
  outline: none;
}

.db-lp-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.db-lp-names {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.db-lp-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.db-lp-side--next {
  justify-content: flex-end;
  text-align: right;
}

.db-lp-title {
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.db-lp-icon {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.db-lp-bar {
  position: relative;
  width: 100%;
  height: 36px;
  border-radius: 100px;
  background: var(--surface-muted);
  overflow: hidden;
}

.db-lp-fill {
  box-sizing: border-box;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  width: 0%;
  border-radius: 100px;
  background: var(--gradient-brand);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.02);
  transition: width 0.45s ease;
}

.db-lp-pct {
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 4px 8px;
  border-radius: 50px;
  background: var(--white);
  color: #1a1a1a;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  pointer-events: none;
  transition: left 0.45s ease;
}

.db-lp-hint {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.db-bottom-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.db-profile-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 420px;
  max-width: 420px;
  min-width: 0;
}

.db-meta-wrap {
  width: 100%;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(96, 96, 171, 0.2);
  background: var(--surface);
  box-sizing: border-box;
}

.db-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.db-meta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 86px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-sizing: border-box;
}

.db-meta-label {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.db-meta-value {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}

.db-status-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(96, 96, 171, 0.2);
  background: var(--surface);
  box-sizing: border-box;
  overflow: visible;
}

.db-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  overflow: visible;
}

.db-status-user {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow: visible;
}

.db-status-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--brand);
  background: var(--surface-muted);
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.db-status-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}

.db-status-user-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}

.db-status-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.db-status-name {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.db-status-name-row .mo-copy-btn {
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  border-radius: 4px;
  border: 0.5px solid var(--brand);
  background: var(--surface-muted);
  flex-shrink: 0;
}

.db-status-name-row .mo-copy-icon {
  display: block;
  width: 10px;
  height: 10px;
  object-fit: contain;
}

.db-status-spent {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.db-status-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.db-status-rank:hover .db-status-rank-label,
.db-status-rank:focus-visible .db-status-rank-label {
  opacity: 0.85;
}

.db-status-rank:focus-visible {
  outline: none;
}

.db-status-rank-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: none;
}

.db-status-rank-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.48px;
  text-transform: capitalize;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.db-tier-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 14px;
  overflow: visible;
}

.db-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 57px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #6060ab 0%, #262640 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  box-sizing: border-box;
  margin-bottom: 4px;
}

.db-tier-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.db-tier-header span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
}

.db-tier-header-status {
  width: 140px;
}

.db-tier-header-discount {
  width: 110px;
}

.db-tier-header-support {
  width: 100px;
}

.db-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  position: relative;
  cursor: pointer;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
}

.db-tier-row:hover {
  background: rgba(96, 96, 171, 0.08);
}

.db-tier-row.is-active {
  background: rgba(96, 96, 171, 0.25);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.db-tier-row.is-active::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 30px;
  border-radius: 50px;
  background: var(--brand);
}

.db-tier-row-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.db-tier-name {
  width: 140px;
  padding: 6px 10px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  box-sizing: border-box;
}

.db-tier-discount {
  width: 110px;
  padding: 6px 10px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  box-sizing: border-box;
}

.db-tier-support {
  display: inline-flex;
  align-items: center;
  width: 100px;
  padding: 6px 10px;
  box-sizing: border-box;
}

.db-levels-card {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.db-levels-scroll {
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.db-levels-table {
  width: 100%;
  min-width: 860px;
  min-height: 500px;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.db-levels-table th,
.db-levels-table td {
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
  border: none;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  box-sizing: border-box;
}

.db-levels-table tbody td {
  height: calc((500px - 118px) / 6);
}

.db-levels-table tbody tr:nth-child(odd) td {
  background: rgba(96, 96, 171, 0.06);
}

.db-levels-table tbody tr:nth-child(even) td {
  background: rgba(96, 96, 171, 0.12);
}

.db-levels-table tbody td:not(:first-child) {
  text-align: center;
}

.db-levels-table tbody td:not(:first-child) img {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto;
}

.db-levels-table th:first-child,
.db-levels-table td:first-child {
  text-align: left;
  padding-left: 20px;
  padding-right: 16px;
  width: 18%;
  min-width: 140px;
}

.db-levels-table thead th:not(:first-child) {
  text-align: center;
  width: calc(82% / 6);
  min-width: 110px;
  padding: 10px 4px;
  overflow: hidden;
}

.db-levels-table thead th.is-current-level {
  background: var(--brand);
}

.db-levels-table thead th {
  height: auto;
  min-height: 118px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.db-levels-table thead th:first-child {
  font-size: 16px;
  font-weight: 600;
}

.db-level-head {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.db-level-name {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.db-level-badge {
  width: 60px;
  height: 40px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.db-level-range {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.db-level-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  height: 16px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(98deg, #ff9a4d 0%, #f06a1a 48%, #e25500 100%);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.up-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.up-page .mo-table-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.up-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.up-table .mo-col-id {
  width: 180px;
}

.up-table .mo-col-service {
  width: 180px;
  max-width: 220px;
  min-width: 0;
}

.up-table th.mo-col-service,
.up-table td.mo-col-service,
.up-table th.mo-col-status,
.up-table td.mo-col-status {
  white-space: normal;
  vertical-align: middle;
}

.up-table .mo-col-date {
  width: 160px;
}

.up-table .mo-col-status {
  width: 180px;
  max-width: 220px;
}

.up-table .mo-service-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.up-table thead th:first-child {
  padding-left: 32px;
}

.up-table tbody td:first-child {
  padding-left: 32px;
}

.up-table tbody tr:nth-child(odd) td {
  background: rgba(96, 96, 171, 0.08);
  border-bottom: none;
}

.up-table tbody tr:nth-child(even) td {
  background: rgba(96, 96, 171, 0.04);
  border-bottom: none;
}

.up-table .up-status,
.up-table .mo-status.up-status {
  display: inline;
  align-items: unset;
  justify-content: unset;
  min-width: 0;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
}

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

/* Account page */
.ac-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.ac-tabs-bar {
  width: 100%;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-sizing: border-box;
}

.ac-tabs-bar .no-card-tabs {
  width: fit-content;
}

.ac-tabs-bar .no-card-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-dark);
}

.ac-tabs-bar .no-card-tab.is-active {
  color: var(--white);
}

.ac-tabs-bar .no-card-tab img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0);
}

.ac-tabs-bar .no-card-tab.is-active img,
.ac-tabs-bar .no-card-tab--gradient.is-active img {
  filter: brightness(0) invert(1);
}

.ac-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

.ac-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(96, 96, 171, 0.2);
  background: var(--surface);
  box-sizing: border-box;
  min-width: 0;
}

.ac-card--full {
  width: 100%;
}

.ac-card .no-card-header {
  margin-bottom: 0;
  min-height: 80px;
  height: 80px;
  box-sizing: border-box;
}

.ac-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex: 1;
}

.ac-card-body .no-submit-btn,
.ac-card-body .btn-primary {
  margin-top: auto;
}

.ac-password-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.ac-input-wrap .form-control {
  padding-left: 48px;
}

.ac-input-wrap--plain .form-control {
  padding-left: 18px;
  padding-right: 18px;
}

.ac-input-wrap--password .form-control {
  padding-left: 18px;
  padding-right: 48px;
}

.ac-page .af-select-wrap .form-control {
  padding-left: 18px;
  padding-right: 44px;
}

.ac-input-leading {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 1;
}

.ac-input-leading img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.ac-password-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.ac-password-toggle img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.ac-info-box {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 0.5px solid var(--brand);
  background: rgba(152, 161, 216, 0.18);
  box-sizing: border-box;
}

.ac-info-box p,
.ac-2fa-sent {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-muted);
}

.ac-2fa-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

#2fa-approve-form.ac-2fa-form,
#2fa-generate-form.ac-2fa-form {
  flex-direction: column !important;
  gap: 20px !important;
}

#2fa-approve-form.ac-2fa-form[style*="display: block"],
#2fa-approve-form.ac-2fa-form[style*="display:block"],
#2fa-approve-form.ac-2fa-form[style*="display: flex"],
#2fa-approve-form.ac-2fa-form[style*="display:flex"],
#2fa-generate-form.ac-2fa-form[style*="display: block"],
#2fa-generate-form.ac-2fa-form[style*="display:block"],
#2fa-generate-form.ac-2fa-form[style*="display: flex"],
#2fa-generate-form.ac-2fa-form[style*="display:flex"] {
  display: flex !important;
}

#2fa-approve-form.ac-2fa-form[style*="display: none"],
#2fa-approve-form.ac-2fa-form[style*="display:none"],
#2fa-generate-form.ac-2fa-form[style*="display: none"],
#2fa-generate-form.ac-2fa-form[style*="display:none"] {
  display: none !important;
}

.ac-2fa-form > .ac-2fa-sent,
.ac-2fa-form > .ac-info-box {
  margin-bottom: 0;
}

.ac-2fa-form > .af-field-group {
  margin-top: 0;
  margin-bottom: 0;
}

.ac-2fa-form .no-submit-btn {
  margin-top: auto;
}

.ac-2fa-enabled {
  font-weight: 500;
  color: var(--brand);
}

.ac-help {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

.ac-textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  resize: vertical;
  box-shadow: none;
}

.ac-textarea:focus {
  outline: none;
  border-color: rgba(96, 96, 171, 0.5);
}

.ac-readonly-span {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  box-sizing: border-box;
}

/* Change Email modal — project theme */
#changeEmailModal.ac-email-modal .modal-dialog,
.ac-email-modal .modal-dialog {
  width: calc(100% - 32px) !important;
  max-width: 560px !important;
  margin: 48px auto !important;
}

#changeEmailModal .modal-content,
.ac-email-modal-content {
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(96, 96, 171, 0.2) !important;
  border-radius: 28px !important;
  background: var(--white) !important;
  box-shadow: 0 24px 48px rgba(65, 67, 110, 0.16) !important;
  overflow: hidden !important;
}

#changeEmailModal .modal-header,
.ac-email-modal-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 20px 28px !important;
  border: none !important;
  border-bottom: none !important;
  background: #f3f3f3 !important;
  text-align: left !important;
}

#changeEmailModal .modal-header::before,
#changeEmailModal .modal-header::after,
.ac-email-modal-header::before,
.ac-email-modal-header::after {
  display: none !important;
  content: none !important;
}

#changeEmailModal .modal-title,
.ac-email-modal-title {
  float: none !important;
  order: 1 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  margin-right: auto !important;
  padding: 0 !important;
  text-align: left !important;
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #202020 !important;
}

#changeEmailModal .ac-email-modal-close,
.ac-email-modal-close {
  float: none !important;
  order: 2 !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #41436e !important;
  font-size: 28px !important;
  line-height: 1 !important;
  opacity: 0.7 !important;
  cursor: pointer !important;
  text-shadow: none !important;
}

.ac-email-modal-close:hover {
  opacity: 1 !important;
  background: rgba(96, 96, 171, 0.1) !important;
}

#changeEmailModal .modal-body,
.ac-email-modal-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  padding: 28px !important;
}

.ac-email-modal-body .af-field-group {
  width: 100%;
  margin: 0 !important;
}

.ac-email-modal-body .af-field-label {
  font-size: 16px !important;
  font-weight: 600 !important;
}

.ac-email-modal-body .af-input-wrap,
.ac-email-modal-body .ac-readonly-span {
  width: 100%;
}

#changeEmailModal .modal-footer,
.ac-email-modal-footer {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 28px 28px !important;
  border: none !important;
  border-top: none !important;
  background: transparent !important;
  text-align: left !important;
}

#changeEmailModal .modal-footer::before,
#changeEmailModal .modal-footer::after,
.ac-email-modal-footer::before,
.ac-email-modal-footer::after {
  display: none !important;
  content: none !important;
}

#changeEmailModal .modal-footer .ac-email-modal-btn,
.ac-email-modal-footer .ac-email-modal-btn {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 8px 20px !important;
  border-radius: 12px !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease;
}

.ac-email-modal-btn--ghost {
  border: 0.5px solid rgba(96, 96, 171, 0.35) !important;
  background: #f3f3f3 !important;
  color: #41436e !important;
}

.ac-email-modal-btn--ghost:hover {
  opacity: 0.92;
}

.ac-email-modal-btn--primary {
  border: none !important;
  border-bottom: 1.6px solid var(--brand) !important;
  background: linear-gradient(
    173.3deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  ) !important;
  color: #fff !important;
}

.ac-email-modal-btn--primary:hover {
  opacity: 0.92;
}

@media (max-width: 560px) {
  #changeEmailModal .modal-footer,
  .ac-email-modal-footer {
    flex-direction: column !important;
  }

  #changeEmailModal .modal-footer .ac-email-modal-btn,
  .ac-email-modal-footer .ac-email-modal-btn {
    width: 100% !important;
  }
}

/* Account / Notifications two-pane stack → ≤992 (see shared tablet block) */

@media (max-width: 768px) {
  .ac-tabs-bar {
    padding: 16px;
  }

  .ac-tabs-bar .no-card-tabs {
    width: 100%;
    flex-wrap: wrap;
  }

  .ac-card {
    padding: 20px;
    border-radius: 20px;
    gap: 16px;
  }

  .ac-card .no-card-header {
    min-height: 50px;
    height: 50px;
  }
}

/* Notifications page */
.nt-page .nt-grid {
  align-items: start;
}

.nt-telegram-card {
  height: auto;
  align-self: start;
}

.nt-pref-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.nt-pref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 61px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 0.5px solid var(--brand);
  background: rgba(152, 161, 216, 0.18);
  box-sizing: border-box;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  width: 100%;
}

.nt-pref-head > span:first-child,
.nt-pref-name {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 45%;
}

.nt-pref-head > span:not(:first-child) {
  flex: 0 0 70px;
  width: 70px;
  text-align: center;
}

.nt-pref-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  border: 0.5px dashed var(--brand);
  background: var(--surface-muted);
  box-sizing: border-box;
  width: 100%;
}

.nt-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.nt-pref-row > :not(:first-child) {
  flex: 0 0 70px;
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nt-pref-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}

.nt-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.nt-switch-ui {
  position: relative;
  display: block;
  width: 40px;
  height: 24px;
  border-radius: 100px;
  background: #d9d9d9;
  transition: background 0.2s;
  box-sizing: border-box;
  padding: 3px;
}

.nt-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.nt-switch input:checked + .nt-switch-ui {
  background: linear-gradient(
    118.73deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  );
}

.nt-switch input:checked + .nt-switch-ui::after {
  transform: translateX(16px);
}

.nt-switch input:disabled + .nt-switch-ui {
  opacity: 0.5;
  cursor: not-allowed;
}

.nt-switch input:focus-visible + .nt-switch-ui {
  outline: 2px solid rgba(96, 96, 171, 0.45);
  outline-offset: 2px;
}

.nt-telegram-info {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 111px;
}

.nt-telegram-info-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
}

.nt-telegram-info p {
  width: 100%;
}

@media (max-width: 1100px) {
  .nt-pref-head > span:first-child,
  .nt-pref-name {
    max-width: 40%;
  }
}

@media (max-width: 640px) {
  .nt-pref-head,
  .nt-pref-row {
    gap: 10px;
  }

  .nt-pref-head > span:not(:first-child),
  .nt-pref-row > :not(:first-child) {
    flex-basis: 48px;
    width: 48px;
  }

  .nt-pref-head {
    font-size: 12px;
    padding: 14px 12px;
  }

  .nt-pref-body {
    gap: 20px;
    padding: 14px 12px;
  }

  .nt-pref-name {
    font-size: 13px;
    max-width: none;
    white-space: normal;
  }
}

/* FAQ page */
.fq-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.fq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  align-items: start;
}

.fq-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  align-items: stretch;
  contain: layout;
}

.fq-item {
  width: 100%;
  padding: 20px 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-sizing: border-box;
  align-self: start;
  overflow: hidden;
}

.fq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
}

.fq-item summary::-webkit-details-marker {
  display: none;
}

.fq-item summary span {
  flex: 1 1 auto;
  min-width: 0;
}

.fq-item summary img {
  flex-shrink: 0;
  width: 12px;
  height: 7px;
  transition: transform 0.3s ease;
}

.fq-item[open] summary img {
  transform: rotate(180deg);
}

.fq-item-body {
  margin-top: 0;
  padding-top: 4px;
  overflow: hidden;
}

.fq-item[open] .fq-item-body {
  margin-top: 12px;
}

.fq-item-body p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.fq-content--enhanced {
  display: block;
}

.fq-content--enhanced .fq-grid {
  display: grid;
}

.fq-content > * {
  min-width: 0;
}

.fq-content details,
.fq-content .panel,
.fq-content .well,
.fq-content .fq-item,
.fq-content > div,
.fq-content > section {
  grid-column: span 1;
  width: 100%;
  margin: 0;
  padding: 20px 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-sizing: border-box;
}

.fq-content .panel-heading,
.fq-content h3,
.fq-content h4,
.fq-content summary,
.fq-content .panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
}

.fq-content .panel-body,
.fq-content p {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}

.fq-content details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.fq-content details summary::-webkit-details-marker {
  display: none;
}

/* FAQ two-pane stack → ≤992 (see shared tablet block) */

@media (max-width: 768px) {
  .fq-item,
  .fq-content details,
  .fq-content .panel,
  .fq-content .well,
  .fq-content > div,
  .fq-content > section {
    padding: 16px 18px;
  }

  .fq-item summary,
  .fq-content .panel-heading,
  .fq-content h3,
  .fq-content h4,
  .fq-content summary,
  .fq-content .panel-title {
    font-size: 16px;
  }
}

.mo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 79px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: linear-gradient(
    126deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  );
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none !important;
}

.mo-action-btn:hover,
.mo-action-btn:focus,
.mo-action-btn:active,
.mo-action-btn:visited {
  text-decoration: none !important;
  color: #ffffff !important;
  opacity: 1;
  background: linear-gradient(
    126deg,
    #b4bce8 8.2%,
    #7272be 53.43%,
    #52548a 99.2%
  );
  border-color: #7272be;
}

.mo-action-btn--cancel {
  background: rgba(96, 96, 171, 0.15);
  color: #6060ab !important;
  border-color: transparent;
}

.mo-action-btn--cancel:hover,
.mo-action-btn--cancel:focus,
.mo-action-btn--cancel:active {
  background: rgba(96, 96, 171, 0.28);
  color: #41436e !important;
  text-decoration: none !important;
}

.mo-action-btn.is-disabled,
.mo-action-btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.mo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.mo-col-action {
  white-space: normal;
}

.mo-table th.mo-col-action,
.mo-table td.mo-col-action {
  white-space: normal;
}

.mo-cancel-requested {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 88px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--table-text);
  white-space: normal;
  word-break: break-word;
  text-align: left;
}

.mo-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.mo-pagination li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(96, 96, 171, 0.08);
  color: var(--brand);
  font-weight: 600;
}

.mo-pagination li.active a {
  background: linear-gradient(103.88deg, #a081ff 0%, #5e91ff 100%);
  color: var(--white);
}

.mo-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
}

/* Customer Care page */
.cc-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.cc-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px 36px 60px;
  /* Let WhatsApp glow waves radiate past the button */
  overflow: visible;
}

.cc-hero-copy {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.cc-hero-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.cc-hero-list li + li {
  margin-top: 0;
}

.cc-hero-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
  z-index: 1;
}

.cc-hero-contact-label {
  margin: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.cc-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 8px 12px 8px 6px;
  border-radius: 8px;
  background: #58c841;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: visible;
  animation: cc-wa-bounce 1.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
}

.cc-wa-btn:hover,
.cc-wa-btn:focus {
  text-decoration: none;
  color: var(--white);
}

/* Soft glow rings — same timeline as bounce */
.cc-wa-btn::before,
.cc-wa-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(88, 200, 65, 0.55);
  z-index: -1;
  pointer-events: none;
  animation: cc-wa-glow-wave 1.8s cubic-bezier(0.33, 0.1, 0.25, 1) infinite;
}

.cc-wa-btn::after {
  background: rgba(88, 200, 65, 0.35);
  animation-name: cc-wa-glow-wave-soft;
}

.cc-wa-btn > * {
  position: relative;
  z-index: 1;
}

.cc-wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--surface);
  flex-shrink: 0;
}

.cc-wa-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Gentle breathe up → settle → rest */
@keyframes cc-wa-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.015);
  }
  28% {
    transform: scale(1.05);
  }
  42% {
    transform: scale(1.012);
  }
  55%,
  100% {
    transform: scale(1);
  }
}

@keyframes cc-wa-glow-wave {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  12% {
    transform: scale(1.08);
    opacity: 0.45;
  }
  28% {
    transform: scale(1.22);
    opacity: 0.32;
  }
  48% {
    transform: scale(1.48);
    opacity: 0.08;
  }
  58%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes cc-wa-glow-wave-soft {
  0% {
    transform: scale(1);
    opacity: 0.32;
  }
  12% {
    transform: scale(1.1);
    opacity: 0.28;
  }
  28% {
    transform: scale(1.3);
    opacity: 0.18;
  }
  48% {
    transform: scale(1.58);
    opacity: 0.05;
  }
  58%,
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-wa-btn,
  .cc-wa-btn::before,
  .cc-wa-btn::after {
    animation: none;
  }
}

.cc-card-title-bar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 80px;
  padding: 8px 8px 8px 20px;
  margin-bottom: 24px;
  border-radius: 14px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-sizing: border-box;
  backdrop-filter: blur(20px);
}

.cc-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
}

.cc-form .af-select-wrap .af-select,
.cc-form .af-select-wrap .form-control {
  padding-left: 18px;
}

.cc-message-wrap .cc-message,
.cc-message-wrap textarea.form-control {
  height: 200px;
  min-height: 200px;
  resize: vertical;
  padding: 16px 18px;
  line-height: 1.35;
}

.cc-attach {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 64px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.cc-attach:hover {
  border-color: var(--brand);
}

.cc-attach-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.cc-page .tickets-uploader {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-page .tickets-uploader.cc-uploader-enhanced #uploader-button {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cc-page .tickets-uploader.cc-uploader-enhanced .files-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  align-items: start;
}

.cc-page
  .tickets-uploader.cc-uploader-enhanced
  .files-wrapper
  > #uploader-button {
  grid-column: 1 / -1;
}

.cc-page .tickets-uploader .files-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  box-sizing: border-box;
}

.cc-page .tickets-uploader .files-item a {
  color: var(--brand);
  text-decoration: underline;
  word-break: break-word;
}

.cc-page .tickets-uploader .files-item button,
.cc-page .tickets-uploader .files-item .btn,
.cc-page .tickets-uploader .files-item [class*="remove"],
.cc-page .tickets-uploader .files-item [class*="delete"],
.cc-page .tickets-uploader .files-item [class*="close"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 0 6px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-dark) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  align-self: center !important;
}

.cc-page .tickets-uploader .files-wrapper ul,
.cc-page .tickets-uploader .qq-upload-list {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-page .tickets-uploader .files-wrapper img,
.cc-page .tickets-uploader .qq-thumbnail-selector,
.cc-page .tickets-uploader .qq-thumbnail-wrapper img {
  width: 32px !important;
  height: 32px !important;
  object-fit: cover !important;
  border-radius: 6px;
  border: 0.5px solid var(--border);
  flex-shrink: 0;
}

.cc-page .tickets-uploader > .btn,
.cc-page .tickets-uploader > button:not(.cc-attach-facade),
.cc-page .tickets-uploader .qq-upload-button,
.cc-page .tickets-uploader label.qq-upload-button,
.cc-page .tickets-uploader .files-wrapper > label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 64px !important;
  padding: 16px 18px !important;
  border-radius: 12px !important;
  border: 0.5px solid var(--border) !important;
  background: var(--surface-muted) !important;
  color: var(--text-muted) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  align-self: stretch !important;
}

@media (max-width: 700px) {
  .cc-page .tickets-uploader.cc-uploader-enhanced .files-wrapper {
    grid-template-columns: 1fr;
  }
}

.cc-page .tickets-uploader .cc-attach-facade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 64px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: none;
  box-sizing: border-box;
  cursor: pointer;
  order: -1;
}

.cc-page .tickets-uploader .cc-attach-facade:hover {
  border-color: var(--brand);
}

.cc-page .tickets-uploader .cc-attach-facade img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.cc-page .tickets-uploader .cc-attach-previews {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  order: 2;
}

.cc-page .tickets-uploader .cc-attach-previews.has-files {
  display: flex;
}

.cc-page .tickets-uploader .cc-attach-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  flex-shrink: 0;
}

.cc-page .tickets-uploader .cc-attach-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-page .tickets-uploader .cc-attach-preview-item.is-file {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  width: auto;
  min-width: 80px;
  max-width: 160px;
  height: auto;
  min-height: 48px;
}

.cc-page .tickets-uploader .cc-attach-preview-item.is-file span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  word-break: break-word;
  text-align: center;
  line-height: 1.3;
}

.cc-history {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cc-history-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-sizing: border-box;
}

.cc-history-search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.75;
}

.cc-history-search input,
.cc-history-search input.form-control {
  flex: 1 1 auto;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-muted);
  line-height: 1.4;
}

.cc-history-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-height: 560px;
  overflow-x: auto;
  overflow-y: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  padding-top: 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.cc-ticket-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(140px, 1fr) 88px 148px;
  align-items: start;
  column-gap: 20px;
  width: 100%;
  min-width: 520px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.cc-ticket-row:last-child {
  border-bottom: 0.5px solid var(--border);
}

.cc-ticket-row:hover {
  border-color: rgba(96, 96, 171, 0.45);
  background: var(--surface-muted);
  box-shadow: 0 4px 16px rgba(96, 96, 171, 0.08);
  text-decoration: none;
  color: inherit;
  opacity: 1;
}

.cc-ticket-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cc-ticket-col--id {
  flex-shrink: 0;
}

.cc-ticket-col--subject {
  min-width: 0;
}

.cc-ticket-col--status {
  flex-shrink: 0;
  align-items: flex-start;
  text-align: left;
}

.cc-ticket-col--date {
  flex-shrink: 0;
  align-items: flex-end;
  text-align: right;
}

.cc-ticket-label {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.cc-ticket-value {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cc-ticket-value--accent {
  color: var(--brand);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.cc-ticket-unread {
  position: absolute;
  top: -12px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(
    128deg,
    #9da8dc 8.2%,
    #6060ab 53.43%,
    #41436e 99.2%
  );
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.2),
    0 24px 16px rgba(0, 0, 0, 0.08);
}

.cc-chat-card,
.cc-info-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.cc-chat-title-bar,
.cc-info-title-bar {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 8px 8px 8px 20px;
  border-radius: 14px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-sizing: border-box;
}

.cc-chat-title {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.cc-chat-subtitle,
.cc-info-lead {
  margin: 4px 0 0;
  color: #6b6b6b;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.cc-info-lead {
  margin: 0;
}

.cc-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  padding: 32px 20px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-sizing: border-box;
}

.cc-msg {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.cc-msg--user {
  justify-content: flex-end;
  gap: 24px;
}

.cc-msg-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 0.5px solid var(--brand);
  background: var(--surface);
  overflow: hidden;
}

.cc-msg-avatar--user {
  width: 40px;
  height: 40px;
}

.cc-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-msg-avatar-letter {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: lowercase;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cc-msg-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.cc-msg--user .cc-msg-body {
  align-items: flex-end;
}

.cc-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.cc-msg-author {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cc-msg-time {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
}

.cc-msg-bubble {
  max-width: min(500px, 100%);
  padding: 16px 20px;
  border-radius: 12px;
  box-sizing: border-box;
}

.cc-msg-bubble--support {
  border: 1px solid var(--brand);
  background: var(--surface-muted);
  color: #020618;
}

.cc-msg-bubble--user {
  width: 80%;
  max-width: 80%;
  background: var(--text-grad);
  color: var(--white);
}

.cc-msg-bubble p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.cc-msg-bubble--user p {
  font-weight: 500;
}

.cc-msg-bubble p + p {
  margin-top: 0;
}

.cc-msg-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.cc-msg-files a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  word-break: break-word;
  text-decoration: underline;
}

.cc-msg-bubble--user .cc-msg-files a {
  color: #fff;
}

.cc-msg-bubble--user .cc-msg-files a:hover {
  color: #fff;
  opacity: 0.9;
}

.cc-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  box-sizing: border-box;
}

.cc-info-label {
  margin: 0;
  color: #6b6b6b;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.cc-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 60%;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-info-badge--id {
  border-color: #f59a2a;
  background: rgba(245, 154, 42, 0.12);
  color: #f59a2a;
}

.cc-info-badge--subject {
  border-color: #3d4f8f;
  background: rgba(61, 79, 143, 0.1);
  color: #3d4f8f;
}

.cc-info-badge--status {
  border-color: #22a05a;
  background: rgba(34, 160, 90, 0.1);
  color: #1f8a4c;
}

.cc-info-badge--pending {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.cc-info-badge--answered {
  border-color: var(--brand);
  background: rgba(96, 96, 171, 0.1);
  color: var(--brand);
}

.cc-info-badge--closed {
  border-color: #e36a6a;
  background: rgba(227, 106, 106, 0.12);
  color: #e36a6a;
}

.cc-info-badge--priority {
  border-color: #9b1c2e;
  background: rgba(155, 28, 46, 0.1);
  color: #9b1c2e;
}

.cc-info-badge--department {
  border-color: #2bb8c8;
  background: rgba(43, 184, 200, 0.12);
  color: #2bb8c8;
}

.cc-info-badge--response {
  border-color: #22a05a;
  background: rgba(34, 160, 90, 0.12);
  color: #1f8a4c;
}

.cc-info-note {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(96, 96, 171, 0.25);
  background: rgba(96, 96, 171, 0.06);
}

.cc-info-note-title {
  margin: 0 0 6px;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.cc-info-note-text {
  margin: 0;
  color: #4a4a4a;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.cc-page[data-cc-mode="history"] .af-side-card {
  flex: 0 1 650px;
  max-width: 650px;
}

.cc-history-table {
  min-width: 0;
}

.cc-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.cc-pagination li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(96, 96, 171, 0.1);
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.cc-pagination li a:hover {
  background: rgba(96, 96, 171, 0.18);
  color: var(--brand);
  text-decoration: none;
}

.cc-pagination li.active a {
  background: var(--gradient-brand);
  color: var(--white);
}

@media (max-width: 1100px) {
  .cc-ticket-row {
    grid-template-columns: 56px minmax(140px, 1fr) 72px 120px;
    column-gap: 12px;
    padding: 14px 16px;
    min-width: 480px;
  }

  .cc-ticket-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
  }

  .cc-ticket-value--time {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .cc-ticket-grid {
    grid-template-columns: 1fr;
  }

  .cc-history-list {
    max-height: 480px;
  }
}

.cc-page .af-side-tabs .no-card-tab {
  white-space: nowrap;
}

/* Mass Order page */
.ms-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ms-form {
  gap: 24px;
}

.ms-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ms-form .af-field-group {
  gap: 12px;
}

.ms-form .cc-message-wrap textarea.form-control,
.ms-form .cc-message-wrap .cc-message {
  height: 200px;
  min-height: 200px;
}

.ms-side-card .af-side-tabs .no-card-tab {
  pointer-events: none;
  cursor: default;
}

.ms-instruction-box {
  width: 100%;
}

/* Child Panel page */
.cp-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cp-welcome-icon {
  width: 249px;
  height: 140px;
  right: 41px;
  object-fit: contain;
}

/* Affiliates page */
.ab-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ab-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  width: 100%;
}

.ab-stat-card {
  /* SVG shape is 500×202 — keep ratio so content sits inside the fill */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 500 / 202;
  padding: 18px 20px 20px;
  box-sizing: border-box;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

.ab-stat-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ab-stat-card-bg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

.ab-stat-card-bg--light {
  opacity: 1;
}

.ab-stat-card-bg--dark {
  opacity: 0;
}

.ab-stat-card > :not(.ab-stat-card-bg) {
  position: relative;
  z-index: 1;
}

.ab-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 12px;
  border: 0.5px solid rgba(204, 204, 204, 0.16);
  background: rgba(204, 204, 204, 0.32);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-sizing: border-box;
  flex-shrink: 0;
}

.ab-stat-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ab-stat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: auto;
  min-width: 0;
  width: 100%;
  flex: 0 1 auto;
}

.ab-stat-label {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.ab-stat-value {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: break-word;
  max-width: 100%;
}

.ab-stat-value--link {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-all;
  max-width: 100%;
}

.ab-payout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--gradient-brand);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.ab-payout-btn:hover {
  color: var(--white);
  opacity: 0.92;
}

.ab-payments-card {
  width: 100%;
}

/* Giveaway page */
.gw-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gw-tasks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.gw-task-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 280px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.gw-task-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 48px;
  overflow: hidden;
}

.gw-task-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gw-task-logo .gw-logo-dark {
  display: none;
}

[data-theme="dark"] .gw-task-logo .gw-logo-light {
  display: none;
}

[data-theme="dark"] .gw-task-logo .gw-logo-dark {
  display: block;
}

.gw-task-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.gw-task-title {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.gw-task-reward {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  background: linear-gradient(
    145deg,
    #4b4c88 8.2%,
    #6b6dc0 53.43%,
    #6060ab 99.2%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gw-task-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: var(--gradient-brand);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.2),
    0 24.721px 16.129px rgba(0, 0, 0, 0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.gw-task-btn:hover,
.gw-task-btn:focus,
.gw-task-btn:active {
  color: var(--white);
  opacity: 0.94;
  text-decoration: none;
}

/* Giveaway Learn More detail modal (SMMSun layout, SMMGrower theme) */
.gw-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.gw-detail-modal[hidden] {
  display: none !important;
}

.gw-detail-modal.is-open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.gw-detail-modal.is-open[hidden] {
  display: flex !important;
}

.gw-detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 43, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.gw-detail-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(17, 16, 43, 0.22);
  overflow: hidden;
}

.gw-detail-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--gradient-brand);
}

.gw-detail-modal__header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.gw-detail-modal__icon-slot {
  flex-shrink: 0;
}

.gw-detail-modal__icon-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.gw-detail-modal__icon-inner img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.gw-detail-modal__bar-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
}

.gw-detail-modal__close {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.gw-detail-modal__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gw-detail-modal__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.gw-detail-modal__headline {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gw-detail-modal__section {
  margin-bottom: 18px;
}

.gw-detail-modal__section:last-of-type {
  margin-bottom: 12px;
}

.gw-detail-modal__section-title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.gw-detail-modal__list {
  margin: 0;
  padding-left: 1.15em;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

.gw-detail-modal__list li {
  margin-bottom: 8px;
}

.gw-detail-modal__list li:last-child {
  margin-bottom: 0;
}

.gw-detail-modal__footnote {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.gw-detail-modal__footnote:last-child {
  margin-bottom: 0;
}

.gw-detail-modal__footnotes {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.gw-detail-modal .gw-detail-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gw-detail-modal .gw-detail-link:hover {
  color: var(--brand-dark);
}

.gw-detail-modal__footer {
  flex-shrink: 0;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.gw-detail-modal__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

.gw-detail-modal__cta:hover {
  opacity: 0.92;
  color: var(--white) !important;
}

body.gw-detail-modal-open {
  overflow: hidden;
}

[data-theme="dark"] .gw-detail-modal__dialog {
  background: #16152e;
  border-color: var(--border);
}

[data-theme="dark"] .gw-detail-modal__footer {
  background: rgba(250, 250, 250, 0.06);
}

[data-theme="dark"] .gw-detail-modal__headline,
[data-theme="dark"] .gw-detail-modal__section-title {
  color: #ffffff;
}

[data-theme="dark"] .gw-detail-modal__list,
[data-theme="dark"] .gw-detail-modal__footnote {
  color: #dddddd;
}

@media (max-width: 640px) {
  .gw-detail-modal {
    padding: 10px;
  }

  .gw-detail-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 14px;
  }

  .gw-detail-modal__body {
    padding: 16px 14px 12px;
  }

  .gw-detail-modal__headline {
    font-size: 20px;
  }
}

.gw-participate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 60px;
  border-radius: 24px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.gw-participate-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 416px;
  text-align: center;
}

.gw-participate-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.48px;
  text-transform: capitalize;
  background: linear-gradient(
    169deg,
    #4b4c88 8.2%,
    #6b6dc0 53.43%,
    #6060ab 99.2%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gw-participate-sub {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.gw-steps {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.gw-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 1 0;
  width: auto;
  max-width: 324px;
  min-width: 0;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--brand);
  background: var(--surface-muted);
  box-sizing: border-box;
}

.gw-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--brand);
  background: var(--surface);
  box-sizing: border-box;
}

.gw-step-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.gw-step-label {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.gw-step-connector {
  display: flex;
  flex: 1 1 80px;
  align-items: center;
  align-self: center;
  gap: 2px;
  width: auto;
  max-width: 210px;
  min-width: 48px;
  height: 11px;
}

.gw-step-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c8083d;
  flex-shrink: 0;
}

.gw-step-line {
  display: block;
  flex: 1 1 auto;
  width: auto;
  height: 2px;
  min-width: 12px;
  border: none;
  border-radius: 0;
  background: repeating-linear-gradient(
    90deg,
    #c8083d 0 5px,
    transparent 5px 10px
  );
}

.gw-how {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.gw-how-header {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 20px 28px;
  background: var(--brand);
  border-radius: 16px 16px 0 0;
  box-sizing: border-box;
}

.gw-how-title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.gw-how-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin: 20px 28px 28px;
  padding: 30px 20px;
  box-sizing: border-box;
  background: var(--page-bg);
  border: 1px solid var(--brand);
  border-radius: 24px;
}

.gw-how-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.gw-how-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
}

.gw-how-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.gw-rules-title {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.gw-rules-lead {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.gw-rules-text {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.api-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.api-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.api-section-header {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 21px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #6060ab 0%, #262640 100%);
  box-sizing: border-box;
}

.api-section-title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.api-type-params {
  display: none;
}

.api-type-params.is-active {
  display: grid !important;
}

.api-cell {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 16px 20px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  box-sizing: border-box;
}

.api-cell--label {
  background: var(--surface);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.api-cell--value {
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}

.api-link {
  color: var(--brand);
  text-decoration: none;
}

.api-link:hover {
  text-decoration: underline;
}

.api-type-select {
  margin: 0;
  max-width: 420px;
}

.api-type-select .af-select-wrap {
  width: 100%;
}

.api-type-params[hidden] {
  display: none !important;
}

.api-type-select .form-control,
.api-type-select select {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

.api-example {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.api-example-title {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.api-code {
  margin: 0;
  padding: 20px 28px;
  border: 1px solid var(--brand);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  box-sizing: border-box;
}

.api-php-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--brand);
  background: var(--surface);
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.api-php-link:hover,
.api-php-link:focus,
.api-php-link:active {
  background: var(--surface);
  color: var(--brand);
  text-decoration: none;
  border-color: var(--brand);
}

.cp-form {
  gap: 24px;
}

.cp-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-form .af-field-group {
  gap: 12px;
}

.cp-side-card .af-side-tabs .no-card-tab {
  pointer-events: none;
  cursor: default;
}

.cp-ns-box {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-sizing: border-box;
}

.cp-ns-title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand);
}

.cp-ns-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-ns-list li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0.85;
}

.cp-instruction-box {
  width: 100%;
}

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

.cp-panels-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}

.cp-panels-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
}

.cp-panels-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  white-space: nowrap;
}

.cp-panels-table .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: var(--surface-muted);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.cp-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Services page */
.sv-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sv-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-sizing: border-box;
}

.sv-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 0.4px solid rgba(96, 96, 171, 0.5);
  background: var(--surface);
  flex-shrink: 0;
}

.sv-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
}

.sv-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.sv-chip-chevron {
  width: 12px !important;
  height: 7px !important;
  margin-left: 0;
}

.sv-chip--gradient {
  background: var(--gradient-brand);
  color: var(--white);
}

.sv-chip--gradient img {
  color: var(--white);
}

.sv-chip--muted {
  background: var(--surface-muted);
  color: var(--text-dark);
}

.sv-filter-dropdown,
.sv-currency-dropdown {
  position: relative;
}

.sv-filter-dropdown .dropdown-menu,
.sv-currency-dropdown .dropdown-menu,
.sv-filter-dropdown .sv-dropdown-menu,
.sv-currency-dropdown .sv-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 200px;
  margin: 0;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(32, 32, 32, 0.08);
  padding: 8px;
  list-style: none;
}

.sv-filter-dropdown .dropdown-menu,
.sv-filter-dropdown .sv-dropdown-menu {
  width: 420px;
  max-width: min(420px, calc(100vw - 48px));
  max-height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sv-filter-dropdown.is-open .dropdown-menu,
.sv-currency-dropdown.is-open .dropdown-menu,
.sv-filter-dropdown.is-open .sv-dropdown-menu,
.sv-currency-dropdown.is-open .sv-dropdown-menu {
  display: block;
}

.sv-filter-dropdown .dropdown-menu > li > a,
.sv-currency-dropdown .dropdown-menu > li > a,
.sv-filter-dropdown .sv-dropdown-menu > li > a,
.sv-currency-dropdown .sv-dropdown-menu > li > a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.sv-filter-dropdown .dropdown-menu > li > a,
.sv-filter-dropdown .sv-dropdown-menu > li > a {
  white-space: normal;
  align-items: flex-start;
  line-height: 1.4;
}

.sv-filter-dropdown .sv-filter-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1 1 auto;
}

.sv-filter-dropdown .sv-filter-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.sv-filter-dropdown .dropdown-menu > li > a:hover,
.sv-currency-dropdown .dropdown-menu > li > a:hover,
.sv-filter-dropdown .sv-dropdown-menu > li > a:hover,
.sv-currency-dropdown .sv-dropdown-menu > li > a:hover,
.sv-filter-dropdown .dropdown-menu > li.active > a,
.sv-currency-dropdown .dropdown-menu > li.active > a {
  background: var(--surface-muted);
  color: var(--brand);
}

.sv-chip.dropdown-toggle::after {
  display: none;
}

.sv-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--surface-muted);
  box-sizing: border-box;
}

.sv-search-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.sv-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-muted);
}

.sv-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.sv-table-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-sizing: border-box;
}

.sv-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sv-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  table-layout: fixed;
}

.sv-table th,
.sv-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  box-sizing: border-box;
}

.sv-table thead {
  background: var(--brand);
}

.sv-table thead th {
  height: 70px;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  background: var(--brand);
  white-space: nowrap;
  border-bottom: none;
}

.sv-table thead th:first-child {
  padding-left: 32px;
  border-top-left-radius: 16px;
}

.sv-table thead th:last-child {
  padding-right: 16px;
  border-top-right-radius: 16px;
}

.sv-col-id {
  width: 12%;
}

.sv-col-service {
  width: 30%;
}

.sv-col-rate {
  width: 12%;
}

.sv-col-num {
  width: 10%;
}

.sv-col-avg {
  width: 16%;
}

.sv-col-desc {
  width: 14%;
  text-align: center;
}

.sv-table thead th.sv-col-desc,
.sv-table tbody td.sv-col-desc {
  text-align: center;
  padding-left: 16px;
  padding-right: 16px;
}

.sv-table--no-avg .sv-col-service {
  width: 46%;
}

.sv-table tbody td {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--table-text);
  background: var(--table-row-bg);
  border-bottom: 0.5px solid var(--table-border);
}

.sv-table tbody td.sv-col-id {
  padding-left: 32px;
  color: #848484;
  font-weight: 500;
}

.sv-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sv-id-text {
  color: #848484;
}

.sv-table tbody tr:not(.sv-category-row):hover td {
  background: #fafafa;
}

.sv-category-row td {
  padding: 10px 32px !important;
  background: var(--surface) !important;
  border-bottom: 0.5px solid var(--border) !important;
}

.sv-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  padding: 10px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sv-category-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sv-category-left strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
}

.sv-category-platform {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.sv-category-globe {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.sv-category-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 4px;
  border: 0.5px solid var(--brand);
  background: var(--white);
  box-sizing: border-box;
  flex-shrink: 0;
}

.sv-category-chevron img {
  width: 9px;
  height: 5px;
  transition: transform 0.2s ease;
}

.sv-category-row.is-open .sv-category-chevron img {
  transform: rotate(180deg);
}

.sv-table tbody tr.sv-service-hidden,
.sv-table tbody tr.sv-platform-hidden,
.sv-table tbody tr.sv-lazy-hidden {
  display: none;
}

.sv-infinite-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 12px 8px;
  min-height: 28px;
}

.sv-infinite-footer[hidden] {
  display: none !important;
}

.sv-infinite-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.sv-infinite-hint {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #848484;
}

[data-theme="dark"] .sv-infinite-hint {
  color: #b8b8b8;
}

.sv-service-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-tags[hidden] {
  display: none !important;
}

.sv-tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 4px;
  border: 0.5px solid transparent;
  background: #f3f3f3;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: #6060ab;
  white-space: nowrap;
}

.sv-service-name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.sv-service-name img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

.sv-service-name span,
.sv-service-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-dark);
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

.sv-col-rate {
  font-weight: 600;
}

.sv-avg {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}

.sv-avg span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-dark);
}

.sv-avg-chevron {
  margin-top: 4px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sv-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.sv-view-btn:hover {
  background: var(--brand);
  color: var(--white);
}

/* Service details modal — screenshot layout, project brand colors */
.sv-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.sv-modal[hidden] {
  display: none !important;
}

.sv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 43, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sv-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 56px rgba(17, 16, 43, 0.28);
  overflow: hidden;
}

.sv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px 12px 20px;
  background: var(--brand);
  box-sizing: border-box;
  flex-shrink: 0;
}

.sv-modal-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.sv-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sv-modal-close:hover {
  background: rgba(255, 255, 255, 0.34);
}

.sv-modal-close svg {
  width: 12px;
  height: 12px;
  display: block;
}

.sv-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
  -webkit-overflow-scrolling: touch;
}

.sv-modal-body::-webkit-scrollbar {
  width: 6px;
}

.sv-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.sv-modal-body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.sv-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.sv-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sv-modal-stat,
.sv-modal-desc {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 0.5px solid var(--border);
  box-sizing: border-box;
  min-height: 70px;
}

.sv-modal-stat-label,
.sv-modal-desc-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #848484;
}

.sv-modal-stat-value {
  margin: 0;
  min-height: 1.25em;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  word-break: break-word;
}

.sv-modal-desc {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 200px;
  max-height: 340px;
  padding: 14px 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.sv-modal-desc-label {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.sv-modal-desc-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dark);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.sv-modal-desc-content::-webkit-scrollbar {
  width: 4px;
}

.sv-modal-desc-content::-webkit-scrollbar-track {
  background: transparent;
}

.sv-modal-desc-content::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.sv-modal-desc-content::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.sv-modal-desc-content p {
  margin: 0 0 4px;
}

.sv-modal-desc-content p:last-child {
  margin-bottom: 0;
}

.sv-modal-desc-content strong {
  font-weight: 600;
}

.sv-modal-desc-content ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.sv-modal-desc-content li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 7px;
  line-height: 1.45;
}

.sv-modal-desc-content li:last-child {
  margin-bottom: 0;
}

.sv-modal-desc-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 14px;
  height: 14px;
  background: url("https://storage.perfectcdn.com/rqgep0/q4jw3g4o57utn7pt.svg")
    center / contain no-repeat;
}

.sv-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 18px;
  background: var(--surface);
  flex-shrink: 0;
}

.sv-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.sv-modal-btn:hover {
  opacity: 0.9;
}

.sv-modal-btn--close {
  background: var(--brand);
  color: var(--white);
}

.sv-modal-btn--order {
  background: var(--brand-dark);
  color: var(--white);
}

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

.al-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.al-modal[hidden] {
  display: none !important;
}

.al-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 43, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.al-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 24px), 1080px);
  max-height: min(94vh, 880px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(17, 16, 43, 0.28);
  border: 1px solid var(--border);
  overflow: hidden;
}

.al-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--gradient-brand);
  box-sizing: border-box;
}

.al-modal-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18PX;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.al-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 20PX;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.al-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.al-modal-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 12px 14px;
  -webkit-overflow-scrolling: touch;
}

/* Account levels — SMMSun card layout, SMMGrower colors */
.al-levels-container {
  display: flex;
  gap: 8px;
  padding: 14px 2px 12px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}

/* Big desktop modal: fit all columns, no horizontal scroll */
@media (min-width: 1100px) {
  #al-levels-modal .al-modal-body {
    overflow-x: hidden;
  }

  #al-levels-modal .al-levels-container {
    overflow-x: hidden;
    gap: 6px;
    padding-left: 0;
    padding-right: 0;
  }

  #al-levels-modal .al-level-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  #al-levels-modal .al-level-features {
    flex: 1.55 1 0;
    min-width: 0;
    max-width: none;
  }

  #al-levels-modal .al-level-header {
    min-width: 0;
    overflow: hidden;
  }

  #al-levels-modal .al-level-name-wrap {
    flex-wrap: wrap;
    max-width: 100%;
  }

  #al-levels-modal .al-level-price {
    font-size: 12px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #al-levels-modal .al-level-name {
    font-size: 0.9rem;
  }

  #al-levels-modal .al-level-bonus {
    font-size: 0.72rem;
  }

  #al-levels-modal .al-level-features .al-level-row {
    font-size: 12px;
  }
}

.al-levels-container::-webkit-scrollbar {
  height: 6px;
}

.al-levels-container::-webkit-scrollbar-track {
  background: transparent;
}

.al-levels-container::-webkit-scrollbar-thumb {
  background-color: var(--brand);
  border-radius: 10px;
}

.al-level-card {
  min-width: 104px;
  flex: 0 0 auto;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e2e6;
  padding: 6px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.al-level-features {
  min-width: min(200px, 48vw);
  max-width: 240px;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  box-shadow: none;
}

.al-level-header {
  height: auto;
  min-height: 88px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.al-level-features .al-level-header {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-bottom: 6px;
  min-height: 88px;
}

.al-level-title {
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--text-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
}

.al-level-badge-box {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.al-level-name-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.al-level-name-wrap .al-level-badge,
.al-level-badge {
  max-width: 36px;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.al-level-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.al-level-price {
  font-size: clamp(11px, 2.5vw, 16px);
  font-weight: 600;
  background: var(--text-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  padding: 0 2px;
}

.al-level-bonus {
  font-size: 0.9rem;
  color: #a0a0a0;
  font-weight: 500;
}

.al-level-row {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  position: relative;
  font-size: 0.95rem;
  color: #666;
}

.al-level-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 1px;
  background: #e8e8e8;
}

.al-level-features .al-level-row {
  justify-content: flex-start;
  font-weight: 500;
  color: #1a1a1a;
  padding-left: 10px;
  padding-right: 8px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.al-level-features .al-level-row:not(:last-child)::after {
  left: 10px;
  right: 10px;
}

.al-level-check {
  max-width: 20px;
  max-height: 20px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.al-level-card:not(.al-level-features):hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--brand);
}

.al-level-card.al-level-card--current:not(.al-level-features) {
  position: relative;
  overflow: visible;
  padding-top: 14px;
  border-color: var(--brand);
  border-width: 2px;
  box-shadow:
    0 0 0 1px rgba(96, 96, 171, 0.22),
    0 10px 32px rgba(96, 96, 171, 0.14);
}

.al-level-card-current-cap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.al-level-card-current-cap-label {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(96, 96, 171, 0.28);
}

.db-levels-card {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  padding: 12px 8px 16px;
}

.db-levels-card .al-levels-container {
  min-height: 100%;
  padding: 18px 8px 12px;
  gap: 12px;
}

.db-levels-card .al-level-card {
  min-width: 128px;
  flex: 1;
  padding: 10px;
  border-radius: 15px;
  overflow: hidden;
}

.db-levels-card .al-level-features {
  min-width: 220px;
  max-width: 280px;
}

.db-levels-card .al-level-header {
  min-height: 110px;
  padding: 16px 10px;
  gap: 8px;
}

.db-levels-card .al-level-features .al-level-header {
  min-height: 110px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.db-levels-card .al-level-title {
  font-size: 1.25rem;
}

.db-levels-card .al-level-name {
  font-size: 1rem;
}

.db-levels-card .al-level-price {
  font-size: clamp(11px, 1.6vw, 15px);
}

.db-levels-card .al-level-bonus {
  font-size: 0.95rem;
}

.db-levels-card .al-level-row {
  height: 56px;
  font-size: 12px;
  padding: 0 16px;
}

.db-levels-card .al-level-features .al-level-row {
  height: 56px;
  font-size: 12px;
  padding-left: 16px;
}

.db-levels-card .al-level-row:not(:last-child)::after {
  left: 16px;
  right: 16px;
}

.db-levels-card .al-level-badge-box {
  width: 50px;
  height: 50px;
  right: 16px;
}

.db-levels-card .al-level-card-current-cap-label {
  font-size: 9px;
  padding: 4px 12px;
}

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

[data-theme="dark"] .al-level-card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .al-level-features {
  background: var(--surface-muted);
  border-color: var(--border);
}

[data-theme="dark"] .al-level-features .al-level-header {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .al-level-name {
  color: var(--text-primary);
}

[data-theme="dark"] .al-level-features .al-level-row {
  color: var(--text-primary);
}

[data-theme="dark"] .al-level-row {
  color: var(--text-secondary);
}

[data-theme="dark"] .al-level-row:not(:last-child)::after {
  background: var(--border);
}

[data-theme="dark"] .al-level-badge-box {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .al-modal-dialog {
  background: #16152e;
  border-color: var(--border);
}

@media (max-width: 720px) {
  .al-modal {
    padding: 10px;
  }

  .al-modal-dialog {
    width: 100%;
    max-height: 96vh;
    border-radius: 14px;
  }

  .al-level-card {
    min-width: 110px;
    overflow: hidden;
  }

  .al-level-features {
    min-width: min(150px, 48vw);
  }

  .al-level-price {
    font-size: 11px;
    letter-spacing: -0.02em;
  }

  .db-levels-card .al-level-card {
    min-width: 118px;
    padding: 8px 6px;
  }

  .db-levels-card .al-level-price {
    font-size: 11px;
  }

  .db-levels-card .al-level-header {
    padding: 12px 4px;
  }

  .al-level-row,
  .al-level-features .al-level-row {
    height: 54px;
    font-size: 12PX;
  }
}

.sv-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #c4c4c4;
  line-height: 1;
  flex-shrink: 0;
}

.sv-fav-btn .fa-star,
.sv-fav-btn [data-favorite-icon] {
  font-size: 14px;
}

.sv-fav-btn.favorite-active,
.sv-fav-btn .favorite-active {
  color: #f5b400;
}

/* Mobile overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

/* Responsive — shared shell (Figma 4442:43199)
   Rule: two-pane layouts stay side-by-side on laptop (≤1400);
   they stack only on tablet/mobile shell (≤992). */
@media (max-width: 1400px) {
  .no-order-row,
  .af-main-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }

  .no-promo-card,
  .no-card--details,
  .af-side-card {
    max-width: 100%;
  }

  .no-stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Compact content layout (Figma mobile cards) */
  .no-page,
  .af-page,
  .ms-page,
  .cp-page,
  .ab-page,
  .gw-page,
  .api-page,
  .db-page,
  .ac-page,
  .nt-page,
  .fq-page,
  .mo-page,
  .up-page,
  .db-page,
  .sv-page,
  .cc-page {
    gap: 16px;
  }

  .cc-page[data-cc-mode="history"] .af-side-card {
    flex: 1 1 auto;
    max-width: none;
  }

  .cc-chat-thread {
    min-height: 220px;
    max-height: 360px;
    padding: 20px 14px;
  }

  .cc-msg {
    gap: 12px;
  }

  .no-hero-row {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
  }

  .no-welcome-card,
  .no-promo-slider-wrap {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .no-welcome-card {
    height: 93px;
    border-radius: 12px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Customer Care hero has list + WhatsApp — never clip to 93px */
  .cc-page .no-welcome-card.cc-hero-card {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 18px;
    overflow: hidden;
  }

  .cc-page .cc-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
    z-index: 1;
  }

  .cc-page .cc-hero-card .no-welcome-title {
    max-width: none;
    margin: 0 0 4px;
    font-size: 15px;
  }

  .cc-page .cc-hero-list {
    margin: 0;
    padding-left: 16px;
    font-size: 10px;
    line-height: 1.4;
  }

  .cc-page .cc-hero-contact {
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    z-index: 2;
  }

  .cc-page .cc-hero-contact-label {
    font-size: 12px;
  }

  .cc-page .cc-wa-btn {
    font-size: 13px;
    height: 32px;
    padding: 6px 10px 6px 5px;
  }

  .cc-page .no-hero-row {
    align-items: stretch;
  }

  /* Match promo height to Support Center card; keep icon + dots centered/bottom */
  .cc-page .no-promo-slider-wrap {
    height: auto;
    min-height: 93px;
    max-height: none;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  .cc-page .no-promo-slider {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
  }

  .cc-page .no-promo-slider .swiper-wrapper {
    height: 100%;
  }

  .cc-page .no-promo-slider .swiper-slide {
    height: 100% !important;
    min-height: 93px;
  }

  .cc-page .no-promo-card {
    height: 100%;
    min-height: 93px;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background-size: 100% 100%;
  }

  .cc-page .no-promo-icon {
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
  }

  .cc-page .no-promo-content {
    max-width: calc(100% - 90px);
  }

  .cc-page .no-promo-slider-wrap > .swiper-pagination.no-promo-pagination {
    bottom: 4px !important;
  }

  /* Fill both columns — avoid half-width empty gap beside side card */
  .cc-page .af-main-row {
    align-items: stretch;
    gap: 12px;
  }

  .cc-page .af-form-card,
  .cc-page .af-side-card,
  .cc-page[data-cc-mode="history"] .af-side-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    align-self: stretch;
  }

  .no-welcome-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    margin: 0 0 6px;
    max-width: calc(100% - 88px);
    width: auto;
    white-space: nowrap;
  }

  .no-welcome-sub {
    font-size: 8px;
    font-weight: 500;
    line-height: 1.5;
    max-width: calc(100% - 88px);
  }

  .no-welcome-sub + .no-welcome-sub,
  .no-welcome-sub + .no-welcome-username {
    margin-top: 2px;
  }

  .no-welcome-username {
    max-width: calc(100% - 88px);
    gap: 3px;
  }

  .no-welcome-copy.mo-copy-btn {
    width: 18px;
    height: 18px;
    margin-left: -2px;
    border: none;
    background: transparent;
    border-radius: 0;
  }

  .no-welcome-copy.mo-copy-btn .mo-copy-icon {
    width: 14px;
    height: 14px;
  }

  .no-welcome-copy.mo-copy-btn.is-copied::after {
    font-size: 9px;
    padding: 3px 6px;
  }

  .no-welcome-trophy,
  .af-welcome-card .af-welcome-icon {
    width: 115px;
    height: 65px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .no-promo-slider-wrap,
  .no-promo-card {
    height: 93px;
  }

  .no-promo-slider .swiper-slide {
    height: 93px;
  }

  .no-promo-card {
    padding: 16px 18px;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .no-promo-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 7px;
    max-width: calc(100% - 80px);
  }

  .no-promo-text {
    font-size: 8px;
    line-height: 1.5;
    max-width: calc(100% - 80px);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .no-promo-icon {
    width: 65px;
    height: 62px;
    border-radius: 15px;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 12px;
  }

  .no-promo-icon img {
    width: 40px;
    height: 40px;
  }

  .no-stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .no-stat-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 373 / 232;
    min-height: 0;
    container-type: inline-size;
    padding: 12px 10px 10px;
    box-sizing: border-box;
    overflow: visible;
  }

  .no-stat-card-bg {
    overflow: hidden;
    border-radius: 0;
  }

  .no-stat-card-bg img {
    object-fit: fill;
  }

  .no-stat-value {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 2px;
    letter-spacing: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .no-stat-label {
    font-size: 8px;
    line-height: 1.35;
    margin: 0 0 4px;
  }

  .no-stat-link {
    font-size: 10px;
    line-height: 1.35;
    margin-top: auto;
  }

  .no-stat-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
    border-radius: 6px;
    padding: 2px;
  }

  .no-stat-icon img {
    width: 16px;
    height: 16px;
  }

  .ab-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .gw-how-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin: 16px 16px 20px;
    padding: 24px 16px;
  }

  .api-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* Dashboard: side-by-side only on larger laptops; tablet stacks full-width below */
  .db-levels-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .db-levels-table {
    min-width: 860px;
  }

  .db-meta-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .db-meta-wrap,
  .db-status-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
    border-radius: 20px;
    padding: 14px;
  }

  .db-status-head {
    gap: 8px;
    min-width: 0;
  }

  .db-status-user {
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
  }

  .db-status-avatar {
    width: 48px;
    height: 48px;
  }

  .db-status-avatar img {
    width: 38px;
    height: 38px;
  }

  .db-status-name {
    font-size: 16px;
  }

  .db-status-rank {
    gap: 8px;
    flex-shrink: 0;
  }

  .db-status-rank-label {
    font-size: 16px;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Keep Status / Discount / Support inside the card (no spill into levels) */
  .db-tier-table {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .db-tier-header,
  .db-tier-row {
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 10px;
    min-height: 48px;
  }

  .db-tier-header-status,
  .db-tier-name {
    flex: 1 1 34%;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 4px 6px;
  }

  .db-tier-header-right,
  .db-tier-row-right {
    flex: 1 1 66%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
    min-width: 0;
    align-items: center;
  }

  .db-tier-header-discount,
  .db-tier-discount,
  .db-tier-header-support,
  .db-tier-support {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: center;
    text-align: center;
    padding: 4px 2px;
    box-sizing: border-box;
  }

  .db-tier-support img {
    width: 20px;
    height: 20px;
  }

  .api-section-header {
    min-height: 56px;
    padding: 16px 18px;
    border-radius: 12px;
  }

  .api-section-title {
    font-size: 18px;
  }

  .api-cell {
    min-height: 48px;
    padding: 12px 16px;
  }

  .api-code {
    padding: 16px 18px;
    font-size: 14px;
    border-radius: 12px;
  }

  .gw-how-visual {
    min-height: 0;
  }

  /* Affiliates — under 1400px: smaller type only (3-col desktop stays until 992px) */
  .ab-page .ab-stat-label {
    font-size: 13px;
  }

  .ab-page .ab-stat-value {
    font-size: 18px;
  }

  .ab-page .ab-stat-value--link {
    font-size: 13px;
    line-height: 1.35;
  }

  .ab-page .ab-payout-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Child Panel — under 1400px: smaller type only */
  .cp-page .cc-card-title {
    font-size: 17px;
  }

  .cp-page .af-field-label {
    font-size: 15px;
  }

  .cp-page .cp-ns-title {
    font-size: 14px;
  }

  .cp-page .cp-ns-list li,
  .cp-page .af-instruction-item p {
    font-size: 13px;
  }

  .cp-page .no-submit-btn {
    font-size: 14px;
  }

  .cp-page .af-side-tabs {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
  }

  .cp-page .af-side-tabs .no-card-tab {
    flex: 0 0 auto;
  }

  /* Wider 2-col cards (tablet); phones stay compact */
  @container (min-width: 300px) {
    .no-stat-value {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 600;
      line-height: 1.2;
      margin: 0 0 6px;
      letter-spacing: -0.4px;
    }

    .no-stat-label {
      font-size: 15px;
      line-height: 1.5;
      margin: 0 0 12px;
    }

    .no-stat-link {
      font-size: 15px;
      line-height: 1.5;
    }

    .no-stat-icon {
      width: 48px;
      height: 48px;
      margin-bottom: 16px;
      border-radius: 10px;
      padding: 4px;
    }

    .no-stat-icon img {
      width: 26px;
      height: 26px;
    }
  }

  /* Large / laptop cards — Figma type on descendants (container is the card) */
  @container (min-width: 400px) {
    .no-stat-value {
      font-size: 24px;
      line-height: 1.1;
      margin: 0 0 8px;
      letter-spacing: -0.48px;
    }

    .no-stat-label {
      font-size: 16px;
      margin: 0 0 18px;
    }

    .no-stat-link {
      font-size: 16px;
    }

    .no-stat-icon {
      width: 60px;
      height: 60px;
      margin-bottom: 20px;
      border-radius: 12px;
      padding: 5px;
    }

    .no-stat-icon img {
      width: 32px;
      height: 32px;
    }
  }

  .no-notice {
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 12px;
  }

  .no-promo-slider-wrap {
    overflow: visible;
    padding-bottom: 2px;
  }

  .no-promo-pagination,
  .no-promo-slider-wrap
    > .swiper-pagination.no-promo-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
    min-width: 24px;
    min-height: 10px;
    gap: 5px;
    /* Laptop ≤1400: more space above the dots in the notch */
    padding: 8px 2px 1px;
    bottom: 0 !important;
  }

  .no-promo-pagination .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    outline: none !important;
    outline-offset: 0 !important;
    transform: none !important;
  }

  .no-promo-pagination .swiper-pagination-bullet-active {
    width: 6px !important;
    height: 6px !important;
    outline: none !important;
    transform: none !important;
  }

  .no-order-row,
  .af-main-row {
    gap: 16px;
  }

  .no-card {
    padding: 16px;
    border-radius: 16px;
  }

  .no-card-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
  }

  .no-card-title {
    font-size: 16px;
  }

  .no-card-tabs {
    width: 100%;
  }

  .no-card-tab {
    flex: 1 1 0;
    justify-content: center;
    font-size: 13px;
    padding: 8px 10px;
  }

  /* New Order form header — compact single-row (Figma 4445:47733) */
  .no-order-row > .no-card:not(.no-card--details) > .no-card-header {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px 6px 10px;
    border-radius: 10px;
    min-height: 0;
    min-width: 0;
    margin-bottom: 16px;
    overflow: hidden;
  }

  .no-order-row
    > .no-card:not(.no-card--details)
    > .no-card-header
    .no-card-title {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
  }

  .no-order-row
    > .no-card:not(.no-card--details)
    > .no-card-header
    .no-card-tabs {
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    min-width: 0;
    gap: 5px;
    padding: 5px;
    border-radius: 7px;
    background: var(--surface);
    box-sizing: border-box;
  }

  .no-order-row
    > .no-card:not(.no-card--details)
    > .no-card-header
    .no-card-tab {
    flex: 0 1 auto;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    min-width: 0;
  }

  .no-order-row
    > .no-card:not(.no-card--details)
    > .no-card-header
    .no-add-fund-link {
    gap: 4px;
    /* Keep animated colors — do not flatten to muted/primary */
  }

  .no-order-row
    > .no-card:not(.no-card--details)
    > .no-card-header
    .no-add-fund-link
    img {
    width: 12px;
    height: 12px;
  }

  /* New Order — shared small-device type (tablet → mobile) */
  .no-page .no-field-label,
  .no-page .no-form .control-label {
    font-size: 16px;
  }

  .no-page .no-field-input,
  .no-page .no-form .form-control,
  .no-page .no-search-wrap #template-input,
  .no-page .no-search-wrap .input-wrapper > input.form-control,
  .no-page .no-search-wrap .input-wrapper > input.select2-selection,
  .no-page .no-search-wrap .search-dropdown .input-wrapper input {
    font-size: 14px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    border-radius: 10px !important;
  }

  /* Keep icon gutter on search (incl. Select2-transformed input) */
  .no-page .no-search-wrap #template-input,
  .no-page .no-search-wrap .input-wrapper > input.form-control,
  .no-page .no-search-wrap .input-wrapper > input.select2-selection,
  .no-page .no-search-wrap .search-dropdown .input-wrapper input {
    padding-left: 50px !important;
  }

  /* Select2 category/service — match other input height on compact/mobile */
  .no-page
    .no-form
    .no-field-input-wrap--select
    .select2-container--default
    .select2-selection--single,
  .no-page
    .no-form
    .no-field-input-wrap--select
    .select2-container--default
    .select2-selection--single.form-control {
    min-height: 44px !important;
    height: 44px !important;
    padding: 8px 40px 8px 14px !important;
    border-radius: 10px !important;
  }

  /* Custom category/service triggers — same 44px height as other fields */
  .no-page .no-order-select-trigger,
  .no-page .no-field-input-wrap.af-select-wrap--select2 .af-select2-trigger,
  .no-page #orderform-category-trigger,
  .no-page #orderform-service-trigger {
    min-height: 44px !important;
    height: 44px !important;
    padding: 8px 40px 8px 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    gap: 8px;
    box-sizing: border-box;
  }

  .no-page #orderform-category-trigger .af-select2-trigger__text,
  .no-page #orderform-service-trigger .af-select2-trigger__text,
  .no-page .af-select2-trigger__text.select2-selection__text {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .no-page
    .no-form
    .no-field-input-wrap--select
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .no-page .no-search-wrap #template-input::placeholder,
  .no-page .no-form .form-control::placeholder {
    font-size: 14px;
  }

  .no-page .no-charge-box {
    height: 50px;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .no-page .no-charge-label,
  .no-page .no-charge-box .no-charge-value,
  .no-page .no-form .no-charge-box .no-charge-value {
    font-size: 14px !important;
  }

  /* Category / service dropdown lists — slightly taller on compact screens */
  .no-page .af-select2-dropdown .select2-results__options,
  .no-page .af-select2-dropdown .dropdown-menu,
  .no-page #orderform-category-results,
  .no-page #orderform-service-results,
  .no-page #select2-orderform-category-results,
  .no-page #select2-orderform-service-results {
    max-height: min(52vh, 350px) !important;
  }

  /* Service details header + fields — match form compact type */
  .no-order-row > .no-card--details .no-card-header:has(.no-details-tabs) {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    min-height: 0;
    height: auto;
    margin-bottom: 16px;
  }

  .no-order-row > .no-card--details .no-details-tabs {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 5px;
    padding: 5px;
    border-radius: 7px;
    background: var(--surface);
  }

  .no-order-row > .no-card--details .no-details-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
  }

  .no-order-row > .no-card--details .no-detail-readonly {
    font-family: var(--font-body);
    font-size: 14px;
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
    box-sizing: border-box;
  }

  /* Long service name / example link: grow with text instead of overflowing */
  .no-order-row > .no-card--details .no-detail-readonly--lg,
  .no-order-row > .no-card--details #no-service-name,
  .no-order-row > .no-card--details #no-example-link {
    height: auto;
    min-height: 44px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.4;
  }

  .no-order-row > .no-card--details .no-description-box {
    font-size: 14px;
  }

  .no-submit-btn,
  .no-form .btn-primary {
    width: 100%;
    height: 44px;
    min-height: 44px;
    margin-top: 4px;
    font-size: 14px;
    padding: 8px 16px;
  }

  /* Add Fund form card — match New Order compact (tablet → mobile) */
  .af-main-row > .af-form-card > .no-card-header {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px 6px 10px;
    border-radius: 10px;
    min-height: 0;
    margin-bottom: 16px;
  }

  .af-main-row > .af-form-card > .no-card-header .no-card-title {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
  }

  .af-main-row > .af-form-card > .no-card-header .no-card-tabs {
    width: auto;
    flex-shrink: 0;
    max-width: 100%;
    gap: 5px;
    padding: 5px;
    border-radius: 7px;
    background: var(--surface);
  }

  .af-main-row > .af-form-card > .no-card-header .no-card-tab {
    flex: 0 0 auto;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    gap: 4px;
  }

  .af-main-row > .af-form-card > .no-card-header .no-card-tab:not(.is-active) {
    background: var(--surface-muted);
    color: var(--text-primary);
  }

  .af-main-row > .af-form-card > .no-card-header .no-card-tab img {
    width: 12px;
    height: 12px;
  }

  .af-page .af-field-label {
    font-size: 16px;
  }

  /* Payment methods grid — compact 3-col (Figma 4445:49582) */
  .af-page .af-methods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
  }

  .af-page .af-method-card {
    gap: 6px;
    min-height: 0;
    padding: 6px;
    border-radius: 8px;
    border-width: 0.5px;
  }

  .af-page .af-method-card.is-active {
    border-bottom: 0.8px solid var(--brand) !important;
  }

  .af-page .af-method-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border-width: 0.25px;
  }

  .af-page .af-method-icon img {
    max-width: 12px;
    max-height: 12px;
  }

  .af-page .af-method-label {
    font-size: 9px;
    font-weight: 500;
    line-height: normal;
  }

  .af-page .af-select-wrap .af-select,
  .af-page .af-input-wrap input.form-control,
  .af-page .af-select-wrap .form-control,
  .af-page #amount-fields .form-control,
  .af-page #amount-converted-input,
  .af-page #addfunds-form [id^="order_"] .form-control,
  .af-page #addfunds-form [id^="order_"] input,
  .af-page #addfunds-form [id^="field-"],
  .af-page #addfunds-form .form-group.fields .form-control,
  .af-page #addfunds-form .form-group.fields input,
  .af-page #addfunds-form .form-group.fields select,
  .af-page .commission-fields .form-control,
  .af-page .commission-fields input,
  .cc-page select.af-select,
  .cc-page select.form-control,
  .cc-page #ticket-fields select,
  .cc-page #ticket-subcategory-fields select,
  .cc-page #ticket-fields input.form-control,
  .cc-page #ticket-subcategory-fields input.form-control,
  .ac-page .af-input-wrap .form-control,
  .ac-page .af-select-wrap .form-control,
  .ac-page .af-select-wrap .af-select,
  .ms-page .af-input-wrap input.form-control,
  .ms-page .af-select-wrap .af-select,
  .cp-page .af-input-wrap input.form-control,
  .cp-page .af-select-wrap .af-select,
  .nt-page .af-input-wrap input.form-control,
  .nt-page .af-select-wrap .af-select {
    font-size: 14px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .af-page #amount-converted-icon {
    height: 44px;
  }

  /* Mass Order / Support message textareas — keep full height under 1400px */
  .ms-page .ms-form .cc-message-wrap textarea.form-control,
  .ms-page .ms-form .cc-message-wrap .cc-message,
  .cc-page .cc-form .cc-message-wrap textarea.form-control,
  .cc-page .cc-form .cc-message-wrap .cc-message {
    height: 200px !important;
    min-height: 200px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .af-page .af-input-wrap .form-control::placeholder {
    font-size: 14px;
  }

  .af-page .af-faq {
    min-height: 44px;
    height: auto;
    padding: 10px 14px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .af-page .af-faq summary {
    min-height: 24px;
    line-height: 1.4;
  }

  .af-page .af-instruction-item img {
    width: 18px;
    height: 18px;
  }

  .af-page .af-instruction-item p,
  .af-page .af-instruction-content,
  .af-page .af-instruction-content p,
  .af-page .af-faq-body,
  .af-page .af-faq-body > p {
    font-size: 12px;
  }

  .af-page .af-total-box {
    height: 50px;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .af-page .af-total-label,
  .af-page .af-total-value {
    font-size: 14px;
  }

  .af-page .no-submit-btn,
  .af-page .af-form .btn-primary,
  .ac-page .no-submit-btn,
  .nt-page .no-submit-btn,
  .ms-page .no-submit-btn,
  .cp-page .no-submit-btn,
  .cc-page .no-submit-btn {
    height: 44px;
    min-height: 44px;
    font-size: 14px;
  }

  .af-page .af-support-title,
  .af-page .af-support-btn {
    font-size: 14px;
  }

  /* My Orders / Drip Feed — match form pages; skip .mo-filters-card */
  .mo-page .mo-search-card,
  .df-page .mo-search-card {
    padding: 16px;
    border-radius: 16px;
  }

  .mo-page .mo-search-field,
  .df-page .mo-search-field {
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 12px;
    gap: 8px;
  }

  .mo-page .mo-search-input,
  .df-page .mo-search-input {
    font-size: 14px;
  }

  .mo-page .mo-search-input::placeholder,
  .df-page .mo-search-input::placeholder {
    font-size: 14px;
  }

  .mo-page .mo-search-icon,
  .df-page .mo-search-icon {
    width: 20px;
    height: 20px;
  }

  .mo-page .mo-table-card,
  .df-page .mo-table-card,
  .up-page .mo-table-card {
    border-radius: 16px;
    overflow: hidden;
  }

  .mo-page .mo-table-scroll,
  .df-page .mo-table-scroll,
  .up-page .mo-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mo-page .mo-table,
  .df-page .mo-table,
  .up-page .mo-table,
  .up-page .up-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
  }

  .df-page .mo-table {
    width: 100%;
    min-width: 1100px;
    table-layout: fixed;
  }

  .mo-page .mo-table th,
  .mo-page .mo-table td,
  .df-page .mo-table th,
  .df-page .mo-table td {
    white-space: nowrap;
    vertical-align: middle;
  }

  .mo-page .mo-table thead th,
  .df-page .mo-table thead th {
    font-size: 14px;
    height: 56px;
  }

  .mo-page .mo-table tbody td,
  .df-page .mo-table tbody td {
    font-size: 14px;
    height: 56px;
    padding: 12px 16px;
  }

  .mo-page .mo-table tbody td:first-child,
  .df-page .mo-table tbody td:first-child,
  .mo-page .mo-table thead th:first-child,
  .df-page .mo-table thead th:first-child {
    padding-left: 20px;
  }

  .mo-page .mo-col-id,
  .df-page .mo-col-id {
    min-width: 140px;
  }

  .mo-page .mo-col-date,
  .df-page .mo-col-date {
    min-width: 160px;
  }

  .mo-page .mo-col-link,
  .df-page .mo-col-link {
    width: 140px;
    max-width: 160px;
    min-width: 0;
    white-space: normal;
  }

  .mo-page .mo-col-num,
  .df-page .mo-col-num {
    min-width: 88px;
  }

  .mo-page .mo-col-service,
  .df-page .mo-col-service,
  .up-page .up-table .mo-col-service {
    width: 180px;
    max-width: 220px;
    min-width: 0;
    white-space: normal;
  }

  .mo-page .mo-date,
  .df-page .mo-date {
    white-space: nowrap;
  }

  .mo-page .mo-link-text,
  .df-page .mo-link-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
  }

  .mo-page .mo-service-text,
  .df-page .mo-service-text,
  .up-page .up-table .mo-service-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
  }

  .mo-page .mo-status,
  .mo-page .mo-action-btn,
  .df-page .mo-status,
  .df-page .mo-action-btn {
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  /* Mass Order — match Add Fund / New Order compact headers */
  .ms-page .af-form-card > .cc-card-title-bar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 10px;
    border-radius: 10px;
    min-height: 50px;
    height: 50px;
    margin-bottom: 16px;
  }

  .ms-page .af-form-card > .cc-card-title-bar .cc-card-title {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
  }

  .ms-page .af-side-tabs-wrap {
    min-height: 0;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .ms-page .af-side-tabs {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 5px;
    padding: 5px;
    border-radius: 7px;
    background: var(--surface);
  }

  .ms-page .af-side-tabs .no-card-tab {
    flex: 0 0 auto;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 5px 10px;
    border-radius: 5px;
  }

  .ms-page .ms-form .cc-message-wrap textarea.form-control,
  .ms-page .ms-form .cc-message-wrap .cc-message {
    font-size: 14px;
  }

  .sv-page .sv-category-left strong {
    font-size: 18px;
  }

  .ac-page .ac-info-box,
  .ac-page .ac-info-box p,
  .ac-page .ac-2fa-sent {
    font-size: 14px;
  }

  .fq-page .fq-item-body,
  .fq-page .fq-item-body p {
    font-size: 14px;
  }

  /* Support Center — match New Order / Add Fund compact */
  .cc-page .af-form-card > .cc-card-title-bar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 10px;
    border-radius: 10px;
    min-height: 50px;
    height: 50px;
    margin-bottom: 16px;
  }

  .cc-page .af-form-card > .cc-card-title-bar .cc-card-title {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
  }

  .cc-page .af-side-tabs-wrap {
    min-height: 0;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .cc-page .af-side-tabs {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 5px;
    padding: 5px;
    border-radius: 7px;
    background: var(--surface);
  }

  .cc-page .af-side-tabs .no-card-tab {
    flex: 0 0 auto;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
  }

  .cc-page .af-side-tabs .no-card-tab:not(.is-active) {
    background: var(--surface-muted);
    color: var(--text-primary);
  }

  .cc-page .cc-hero-contact-label {
    font-size: 12px;
  }

  .cc-page .cc-wa-btn {
    font-size: 14px;
  }

  .cc-page #ticket-fields .form-group > label,
  .cc-page #ticket-subcategory-fields .form-group > label {
    font-size: 16px;
  }

  .cc-page .cc-form .cc-message-wrap textarea.form-control,
  .cc-page .cc-form .cc-message-wrap .cc-message {
    font-size: 14px;
  }

  .cc-page .cc-attach,
  .cc-page .tickets-uploader .cc-attach-facade {
    font-size: 14px;
    min-height: 52px;
    height: auto;
  }

  .cc-page .cc-attach-icon,
  .cc-page .tickets-uploader .cc-attach-facade img {
    width: 18px;
    height: 18px;
  }

  .cc-page .af-faq summary {
    font-size: 14px;
  }

  .cc-page .cc-history-search {
    min-height: 48px;
    padding: 12px 14px;
    gap: 8px;
  }

  .cc-page .cc-history-search input,
  .cc-page .cc-history-search input.form-control {
    font-size: 14px;
  }

  .cc-page .cc-history-search img {
    width: 18px;
    height: 18px;
  }

  .cc-page .cc-ticket-row {
    padding: 12px 14px;
    column-gap: 12px;
  }

  .cc-page .cc-ticket-label {
    font-size: 11px;
  }

  .cc-page .cc-ticket-value {
    font-size: 12px;
  }

  .no-form #fields {
    gap: 12px;
  }

  /* Shared small-device heights: inputs 44 / buttons 44 / title bars 50 */
  .no-card-header,
  .ac-card .no-card-header,
  .nt-page .no-card-header,
  .cc-card-title-bar,
  .cc-chat-title-bar,
  .cc-info-title-bar,
  .cp-page .cc-card-title-bar {
    height: 50px;
    min-height: 50px;
    box-sizing: border-box;
  }

  .no-order-row > .no-card:not(.no-card--details) > .no-card-header,
  .no-order-row > .no-card--details .no-card-header:has(.no-details-tabs),
  .af-main-row > .af-form-card > .no-card-header {
    height: auto;
    min-height: 0;
  }

  /* Giveaway — under 1400px: smaller type only (layout stays desktop until 992px) */
  .gw-page .gw-task-title {
    font-size: 12px;
  }

  .gw-page .gw-task-reward {
    font-size: 16px;
  }

  .gw-page .gw-task-btn {
    font-size: 14px;
  }

  .gw-page .gw-participate-title {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .gw-page .gw-participate-sub {
    font-size: 12px;
  }

  /* Steps stay horizontal under 1400; shrink so labels fit inside cards */
  .gw-page .gw-participate {
    padding: 40px 28px;
    gap: 28px;
  }

  .gw-page .gw-steps {
    gap: 4px;
  }

  .gw-page .gw-step-card {
    padding: 20px 16px;
    gap: 14px;
    border-radius: 16px;
    max-width: none;
  }

  .gw-page .gw-step-icon {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 10px;
  }

  .gw-page .gw-step-icon img {
    width: 28px;
    height: 28px;
  }

  .gw-page .gw-step-label {
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
  }

  .gw-page .gw-step-connector {
    flex: 0 1 40px;
    min-width: 24px;
    max-width: 72px;
  }

  .gw-page .gw-how-title {
    font-size: 17px;
  }

  .gw-page .gw-rules-title {
    font-size: 20px;
  }

  .gw-page .gw-rules-lead,
  .gw-page .gw-rules-text {
    font-size: 13px;
  }
}

@media (min-width: 993px) {
  .mo-page .mo-filters-track,
  .df-page .mo-filters-track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 8px;
  }

  .mo-page .mo-filter,
  .df-page .mo-filter {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    height: 40px;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    font-size: 14px;
  }

  .mo-page .mo-filter img,
  .df-page .mo-filter img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
}

@media (min-width: 1401px) {
  .mo-filters-track {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .mo-filter {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    justify-content: center;
    padding: 8px 12px;
    font-size: 15px;
  }

  .mo-filter img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
}

@media (min-width: 1600px) {
  .mo-filters-track {
    overflow: hidden;
  }

  .mo-filter {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 16px;
    font-size: 16px;
  }

  .mo-filter span {
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .mo-filter img {
    width: 24px;
    height: 24px;
  }
}

/* Hero welcome + promo: side-by-side on laptop; stack on tablet → ≤992 */

/* Dashboard: side-by-side only on larger laptops */
@media (min-width: 1101px) and (max-width: 1400px) {
  .db-bottom-row {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
  }

  .db-profile-col {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    min-width: 300px;
  }

  .db-levels-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
  }

  .db-meta-row {
    grid-template-columns: 1fr;
  }
}

/* Tablet: profile + status cards full width, stacked above levels */
@media (max-width: 1100px) {
  .db-level-progress {
    padding: 16px 18px;
  }

  .db-lp-title {
    font-size: 16px;
  }

  .db-bottom-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .db-profile-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .db-levels-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .db-meta-wrap,
  .db-status-card {
    width: 100%;
    max-width: none;
  }

  .db-meta-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* Laptop (~1024–1400): 4-across cards need height for content (aspect-ratio was clipping CTA) */
@media (min-width: 1024px) and (max-width: 1400px) {
  .no-stats-row {
    gap: 16px;
  }

  .no-stats-row .no-stat-card {
    padding: 16px 14px 14px;
    height: auto;
    aspect-ratio: unset;
    min-height: 168px;
  }

  .no-stats-row .no-stat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
  }

  .no-stats-row .no-stat-icon img {
    width: 20px;
    height: 20px;
  }

  .no-stats-row .no-stat-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 4px;
    letter-spacing: -0.36px;
  }

  .no-stats-row .no-stat-label {
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 8px;
  }

  .no-stats-row .no-stat-link {
    font-size: 13px;
    line-height: 1.35;
    margin-top: auto;
  }
}

/* <1024: 2 stats cards per row — larger type (cards are wider than 4-up) */
@media (max-width: 1023.98px) {
  .no-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .no-stats-row .no-stat-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: unset;
    min-height: 168px;
    container-type: inline-size;
    padding: 18px 14px 14px;
    box-sizing: border-box;
    overflow: visible;
  }

  .no-stats-row .no-stat-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 4px;
  }

  .no-stats-row .no-stat-icon img {
    width: 24px;
    height: 24px;
  }

  .no-stats-row .no-stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 6px;
    letter-spacing: -0.4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .no-stats-row .no-stat-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 10px;
  }

  .no-stats-row .no-stat-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: auto;
  }
}

@media (max-width: 992px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.is-mobile-open {
    transform: translateX(0);
    overflow: visible;
  }

  .dashboard-sidebar.is-mobile-open .sidebar-inner {
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* User card — keep Figma 4445:50547 sizing in mobile drawer */
  .sidebar-user-card {
    width: 268px;
    max-width: 100%;
    height: 100px;
    box-sizing: border-box;
  }

  .sidebar-collapse-btn {
    display: none !important;
  }

  .sidebar-logo-row {
    position: relative;
  }

  .sidebar-mobile-close {
    display: flex;
    position: absolute;
    top: -1px;
    right: -18px;
    z-index: 5;
  }

  .nav-group-header,
  .nav-group-title span {
    font-size: 14px;
  }

  .sidebar-logout,
  .sidebar-logout > span:not(.sidebar-logout-icon) {
    font-size: 14px;
  }

  .nav-item,
  .nav-item-left span {
    font-size: 15px;
  }

  /* Native document scroll on mobile — nested max-height + overflow-y
     scrollports cause sticky / stuck momentum scrolling on iOS. */
  body.dashboard-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-shell {
    min-height: 100%;
  }

  .dashboard-main {
    margin: 0 !important;
    border-radius: 0;
    background: transparent;
    min-height: 100%;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior-y: auto;
  }

  .dashboard-header {
    background: #1f2248;
    border-bottom: none;
    border-radius: 0;
    padding: 14px 20px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 70;
  }

  .dashboard-page-icon,
  .dashboard-page-title,
  .dashboard-date {
    display: none;
  }

  .dashboard-header-left {
    gap: 0;
  }

  .dashboard-header-right {
    gap: 6px;
  }

  .header-btn {
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .header-btn img {
    width: 12px;
    height: 12px;
  }

  .header-btn .header-telegram-icon {
    width: 18px;
    height: 18px;
  }

  .header-pill {
    height: 24px;
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
    box-shadow: none;
  }

  .header-pill-wallet-icon {
    width: 18px;
    height: 18px;
  }

  .header-pill-wallet-icon img {
    width: 10px;
    height: 10px;
  }

  .header-pill-text {
    font-size: 10px;
    padding-right: 4px;
  }

  .header-pill-avatar {
    width: 18px;
    height: 18px;
  }

  .header-pill-chevron {
    width: 10px;
    height: 6px;
    margin: 0;
  }

  .header-pill--profile {
    min-width: 0;
    width: auto;
    padding: 3px;
  }

  .header-pill--balance {
    padding-right: 6px;
  }

  .dashboard-content {
    border-radius: 28px 28px 0 0;
    background: var(--page-bg);
    padding: 20px 14px;
    /* Keep padding fixed so showing/hiding the nav doesn't add extra scroll at the bottom */
    padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom, 0px));
    min-height: 0;
  }

  /* New Order mobile — Figma 4442:44815 */
  .no-page {
    gap: 16px;
  }

  .no-notice {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
  }

  .no-stats-row {
    gap: 12px;
    padding-top: 0;
  }

  .no-stats-row .no-stat-card {
    min-height: 0;
    height: 121px;
    padding: 12px;
    overflow: hidden;
  }

  .no-stats-row .no-stat-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 6px;
    padding: 2.5px;
  }

  .no-stats-row .no-stat-icon img {
    width: 18px;
    height: 18px;
  }

  .no-stats-row .no-stat-value {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    margin: 0 0 4px;
  }

  .no-stats-row .no-stat-label {
    font-size: 8px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 8px;
  }

  .no-stats-row .no-stat-link {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: auto;
  }

  .no-page .no-card {
    padding: 20px;
    border-radius: 20px;
    gap: 0;
  }

  .no-order-row > .no-card:not(.no-card--details) > .no-card-header {
    height: 48px;
    min-height: 48px;
    margin-bottom: 24px;
  }

  .no-page .no-form {
    gap: 24px;
  }

  .sidebar-backdrop.is-visible {
    display: block;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-bottom-nav {
    display: block;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    transition:
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease;
    will-change: transform, opacity;
  }

  .mobile-bottom-nav.is-hidden {
    transform: translate3d(0, 110px, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    /* Instant hide on scroll down */
    transition: none;
  }

  .mobile-bottom-nav.is-hidden .mobile-bottom-nav__items {
    pointer-events: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-bottom-nav {
      transition: none;
    }
  }

  /* Tablet / mobile shell: stack all two-pane page layouts */
  .no-order-row,
  .af-main-row,
  .ac-grid,
  .ac-password-row,
  .fq-grid,
  .fq-content,
  .gw-how-body,
  .api-grid,
  .api-type-params.is-active {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .no-hero-row {
    flex-direction: column;
    gap: 12px;
  }

  .no-welcome-card,
  .no-promo-slider-wrap {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .db-bottom-row {
    flex-direction: column;
    width: 100%;
  }

  .db-profile-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .db-levels-card {
    width: 100%;
    max-width: none;
  }

  .db-meta-row {
    grid-template-columns: 1fr;
  }

  .gw-how-body {
    margin: 16px 16px 20px;
    padding: 24px 16px;
  }

  .af-form-card,
  .af-side-card,
  .mo-search-card,
  .mo-filters-card {
    border-radius: 16px;
    padding: 16px;
  }

  /* Add Funds history — compact scrollable table on mobile */
  .af-page .af-history-table-wrap {
    margin: 0 -4px;
    padding: 0 4px;
    border-radius: 12px;
  }

  .af-page .af-history-table {
    min-width: 480px;
  }

  .af-page .af-history-table thead th {
    padding: 12px 12px;
    font-size: 13px;
  }

  .af-page .af-history-table tbody td {
    padding: 12px;
    font-size: 12px;
    height: auto;
  }

  .af-page .af-history-datetime {
    gap: 1px;
  }

  .sv-table-card,
  .mo-table-card,
  .mo-page .mo-table-card,
  .df-page .mo-table-card,
  .up-page .mo-table-card {
    border-radius: 16px;
    padding: 0;
  }

  .cc-card-title-bar {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 50px;
    height: 50px;
    padding: 12px;
    margin-bottom: 16px;
  }

  .cc-card-title {
    font-size: 16px;
  }

  .af-side-tabs-wrap {
    min-height: 56px;
    padding: 8px;
  }

  .af-side-tabs {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: stretch;
    gap: 6px;
  }

  .af-side-tabs .no-card-tab {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    font-size: 12px;
    padding: 8px 6px;
    white-space: nowrap;
  }

  /* Small device: keep Place New Order header on one line (same as tablet) */
  .no-order-row > .no-card:not(.no-card--details) > .no-card-header,
  .af-main-row > .af-form-card > .no-card-header {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 6px 5px 8px;
    overflow: hidden;
    min-width: 0;
  }

  .no-order-row
    > .no-card:not(.no-card--details)
    > .no-card-header
    .no-card-title,
  .af-main-row > .af-form-card > .no-card-header .no-card-title {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .no-order-row
    > .no-card:not(.no-card--details)
    > .no-card-header
    .no-card-tabs,
  .af-main-row > .af-form-card > .no-card-header .no-card-tabs {
    width: auto;
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
    padding: 4px;
  }

  .no-order-row
    > .no-card:not(.no-card--details)
    > .no-card-header
    .no-card-tab,
  .af-main-row > .af-form-card > .no-card-header .no-card-tab {
    flex: 0 1 auto;
    min-width: 0;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .no-order-row
    > .no-card:not(.no-card--details)
    > .no-card-header
    .no-add-fund-link
    img,
  .af-main-row > .af-form-card > .no-card-header .no-card-tab img {
    width: 11px;
    height: 11px;
  }

  .sv-modal-btn {
    width: 100%;
  }

  .af-methods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .af-support-bar {
    flex-wrap: wrap;
  }

  .af-side-tabs {
    flex-wrap: nowrap;
  }

  .no-details-row {
    grid-template-columns: 1fr;
  }

  .sv-table {
    min-width: 980px;
  }

  .mo-search-card,
  .mo-filters-card {
    padding: 16px;
    border-radius: 16px;
  }

  .mo-page .mo-filters-track,
  .df-page .mo-filters-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0;
  }

  .mo-page .mo-filter,
  .df-page .mo-filter {
    flex: none;
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 10px 12px;
    font-size: 14px;
  }

  .mo-page .mo-filter img,
  .df-page .mo-filter img {
    width: 22px;
    height: 22px;
  }

  .mo-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
  }

  .mo-table th,
  .mo-table td {
    padding: 12px 14px;
    white-space: nowrap;
  }

  .mo-table thead th {
    font-size: 14px;
    height: 56px;
  }

  .mo-table tbody td {
    height: 56px;
    font-size: 14px;
  }

  .mo-date {
    white-space: nowrap;
  }

  .mo-link-text,
  .mo-service-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    max-width: 100%;
    overflow: hidden;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
  }

  .mo-link-text {
    -webkit-line-clamp: 2;
  }

  .mo-service-text {
    -webkit-line-clamp: 3;
  }

  .cc-hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    height: auto;
    min-height: 0;
  }

  /* Platforms: icon-only — Figma 4445:47684 (56×40, r12, icon ~20) */
  .no-page .no-platforms,
  .sv-page .no-platforms {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .no-page .no-platforms-row,
  .sv-page .no-platforms-row {
    display: contents;
  }

  .no-page .no-platform-btn,
  .sv-page .no-platform-btn {
    position: relative;
    min-height: 40px;
    height: 40px;
    width: 100%;
    padding: 8px 0;
    border-radius: 12px;
    gap: 0;
    box-sizing: border-box;
  }

  .no-page .no-platform-label,
  .sv-page .no-platform-label {
    display: none;
  }

  .no-page .no-platform-icon,
  .sv-page .no-platform-icon {
    width: 20px;
    height: 20px;
  }

  .no-page .no-platform-icon img,
  .sv-page .no-platform-icon img {
    width: 20px;
    height: 20px;
  }

  /* Services toolbar: stack only on mobile (≤992); desktop row above */
  .sv-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .sv-toolbar-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .sv-filter-dropdown {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .sv-filter-dropdown .sv-chip {
    width: 100%;
  }

  /* Giveaway: compact tasks/steps only on mobile (≤992); 4-col desktop above */
  .gw-tasks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .gw-task-card {
    min-height: 240px;
    padding: 24px;
    gap: 24px;
    border-radius: 16px;
  }

  .gw-participate {
    padding: 32px 20px;
    gap: 28px;
  }

  .gw-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .gw-step-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .gw-step-connector {
    flex: 0 0 auto;
    flex-direction: column;
    width: 11px;
    max-width: 11px;
    min-width: 11px;
    height: 56px;
    min-height: 56px;
    margin: 0 auto;
    transform: none;
  }

  .gw-step-line {
    width: 2px;
    height: auto;
    min-width: 0;
    min-height: 12px;
    flex: 1 1 auto;
    background: repeating-linear-gradient(
      180deg,
      #c8083d 0 5px,
      transparent 5px 10px
    );
  }

  /* Affiliates: compact grid only on mobile (≤992); 3-col desktop above */
  .ab-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .ab-stat-card {
    gap: 8px;
    min-height: 0;
    aspect-ratio: 500 / 202;
    padding: 14px 16px 16px;
  }

  .ab-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .ab-stat-icon img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 640px) {
  .dashboard-content {
    padding: 20px 12px;
    padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px 28px 0 0;
  }

  .no-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 0;
  }

  .no-stat-card {
    padding: 12px;
  }

  .api-grid,
  .api-type-params.is-active {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    padding: 12px 16px;
  }

  .no-welcome-sub {
    max-width: calc(100% - 88px);
  }

  .no-welcome-username {
    max-width: calc(100% - 88px);
  }

  .no-welcome-title {
    max-width: calc(100% - 88px);
  }

  .no-page .no-platforms,
  .sv-page .no-platforms {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .no-page .no-platform-btn,
  .sv-page .no-platform-btn {
    padding: 8px 0;
    height: 40px;
    min-height: 40px;
    border-radius: 12px;
  }

  .af-methods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ab-stats-grid {
    grid-template-columns: 1fr;
  }

  .ab-stat-card {
    gap: 12px;
    min-height: 0;
    aspect-ratio: 500 / 202;
    padding: 14px 20px 16px;
  }

  .ab-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .ab-stat-icon img {
    width: 28px;
    height: 28px;
  }

  .ab-page .ab-stat-label {
    font-size: 16px;
    line-height: 1.4;
  }

  .ab-page .ab-stat-value {
    font-size: 24px;
    line-height: 1.15;
  }

  .ab-page .ab-stat-value--link {
    font-size: 14px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .ab-page .ab-payout-btn {
    font-size: 14px;
    padding: 8px 14px;
  }

  .gw-tasks-grid {
    grid-template-columns: 1fr;
  }

  .gw-step-label {
    white-space: normal;
  }

  .gw-step-card {
    padding: 24px;
  }

  .af-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .af-field-label,
  .no-field-label,
  .no-form .control-label {
    font-size: 16px;
  }

  .no-field-input,
  .no-form .form-control,
  .no-search-wrap #template-input,
  .no-search-wrap .input-wrapper > input.form-control {
    font-size: 14px !important;
  }

  .no-search-wrap #template-input::placeholder,
  .no-form .form-control::placeholder {
    font-size: 14px;
  }

  .no-charge-label,
  .no-charge-box .no-charge-value,
  .no-form .no-charge-box .no-charge-value {
    font-size: 14px !important;
  }

  .af-input-wrap .form-control,
  .af-select-wrap .af-select,
  .af-select-wrap .form-control {
    height: 52px;
    font-size: 14px;
  }

  .mo-page,
  .up-page,
  .db-page,
  .ac-page,
  .nt-page,
  .fq-page,
  .sv-page,
  .ms-page,
  .cp-page,
  .af-page,
  .cc-page,
  .api-page,
  .no-page {
    gap: 16px;
  }

  .mo-search-field {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .mo-search-input,
  .sv-search-input {
    font-size: 14px;
  }

  .mo-filters-card {
    padding: 12px;
  }

  .mo-page .mo-filters-track,
  .df-page .mo-filters-track {
    gap: 8px;
  }

  .mo-page .mo-filter,
  .df-page .mo-filter {
    height: 40px;
    gap: 8px;
    font-size: 13px;
    padding: 8px 10px;
    justify-content: center;
  }

  .mo-page .mo-filter img,
  .df-page .mo-filter img {
    width: 20px;
    height: 20px;
  }

  .mo-table-card,
  .sv-table-card {
    border-radius: 12px;
  }

  .mo-status,
  .mo-action-btn {
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .sv-chip {
    height: 36px;
    font-size: 14px;
    padding: 6px 12px;
  }

  .sv-search {
    height: 48px;
    padding: 12px 14px;
  }

  .cc-hero-list {
    font-size: 11px;
    white-space: normal;
  }

  .cc-card-title-bar {
    min-height: 50px;
    height: 50px;
    padding-left: 12px;
  }

  .cc-attach {
    height: auto;
    min-height: 52px;
    white-space: normal;
    text-align: left;
  }

  /* Mass Order textarea stays 200px (set under 1400px); do not shrink further */
}

@media (max-width: 560px) {
  .sv-modal {
    padding: 12px;
  }

  /* Keep 2 stats per row on mobile */
  .sv-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sv-modal-stat {
    min-height: 0;
    padding: 10px 12px;
  }

  .sv-modal-stat-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .sv-modal-stat-value {
    font-size: 16px;
  }

  .sv-modal-footer {
    flex-direction: column-reverse;
  }

  .sv-modal-btn {
    width: 100%;
  }

  .no-page .no-platforms,
  .sv-page .no-platforms {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .no-page .no-platform-btn,
  .sv-page .no-platform-btn {
    min-height: 40px;
    height: 40px;
    padding: 8px 0;
    border-radius: 12px;
  }

  .no-page .no-platform-icon,
  .sv-page .no-platform-icon {
    width: 20px;
    height: 20px;
  }

  .no-page .no-platform-icon img,
  .sv-page .no-platform-icon img {
    width: 20px;
    height: 20px;
  }

  .no-promo-pagination,
  .no-promo-slider-wrap
    > .swiper-pagination.no-promo-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
    min-width: 22px;
    min-height: 8px;
    gap: 4px;
    bottom: 1px !important;
  }

  .no-promo-pagination .swiper-pagination-bullet {
    width: 5px !important;
    height: 5px !important;
    outline: none !important;
    outline-offset: 0 !important;
    transform: none !important;
  }

  .no-promo-pagination .swiper-pagination-bullet-active {
    width: 5px !important;
    height: 5px !important;
    outline: none !important;
    transform: none !important;
  }
}

/* RTL */
.dashboard-body.rtl .dashboard-sidebar {
  left: auto;
  right: 0;
}

.dashboard-body.rtl .dashboard-main {
  margin: 20px 300px 20px 20px;
}

@media (max-width: 992px) {
  .dashboard-body.rtl .dashboard-main {
    margin: 0 !important;
  }
}

.dashboard-body.rtl.sidebar-collapsed .dashboard-main {
  margin-right: 114px;
}

.dashboard-body.rtl .dashboard-sidebar.is-collapsed .sidebar-collapse-btn {
  right: auto;
  left: -14px;
  transform: translateY(-50%) rotate(0deg);
}

.dashboard-body.rtl .no-search-wrap #template-input,
.dashboard-body.rtl .no-search-wrap .input-wrapper > input.form-control,
.dashboard-body.rtl .no-search-wrap .input-wrapper > input.select2-selection,
.dashboard-body.rtl .no-search-wrap .search-dropdown .input-wrapper input {
  padding-left: 18px !important;
  padding-right: 50px !important;
}

/* ========== Dark theme polish ========== */
[data-theme="dark"] body.dashboard-body {
  color: var(--text-primary);
}

[data-theme="dark"] .dashboard-page-title {
  color: #ffffff;
}

[data-theme="dark"] .dashboard-date {
  color: #dddddd;
}

[data-theme="dark"] .header-pill-text {
  color: #dddddd;
}

.header-btn[aria-label="Theme"] .theme-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.header-btn--theme {
  position: relative;
  color: #6060ab;
  overflow: hidden;
}

.header-btn--theme .theme-toggle-icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
}

.header-btn--theme .theme-icon {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  display: block;
  transition: opacity 0.35s ease;
  transform-origin: center center;
  pointer-events: none;
}

/* Light: sun visible + continuous rotate */
.header-btn--theme .theme-icon--sun {
  opacity: 1;
  color: #6060ab;
  animation: theme-sun-idle 10s linear infinite;
}

.header-btn--theme .theme-icon--moon {
  opacity: 0;
  color: #d0d0ff;
  animation: none;
  transform: rotate(-90deg) scale(0.35);
}

/* Dark: moon visible + continuous gentle float */
[data-theme="dark"] .header-btn--theme {
  color: #d0d0ff;
}

[data-theme="dark"] .header-btn--theme .theme-icon--sun {
  opacity: 0;
  animation: none;
  transform: rotate(90deg) scale(0.35);
}

[data-theme="dark"] .header-btn--theme .theme-icon--moon {
  opacity: 1;
  animation: theme-moon-idle 2.8s ease-in-out infinite;
}

/* Soft continuous glow on the button */
.header-btn--theme {
  animation: theme-btn-glow 3.2s ease-in-out infinite;
}

[data-theme="dark"] .header-btn--theme {
  animation: theme-btn-glow-dark 3.2s ease-in-out infinite;
}

@keyframes theme-sun-idle {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes theme-moon-idle {
  0%,
  100% {
    transform: rotate(0deg) scale(1) translateY(0);
  }
  50% {
    transform: rotate(-10deg) scale(1.08) translateY(-1px);
  }
}

@keyframes theme-btn-glow {
  0%,
  100% {
    box-shadow:
      0 0 4px 0 rgba(96, 96, 171, 0.18),
      0 0 8px 1px rgba(96, 96, 171, 0.1);
  }
  50% {
    box-shadow:
      0 0 16px 4px rgba(96, 96, 171, 0.55),
      0 0 28px 8px rgba(96, 96, 171, 0.3);
  }
}

@keyframes theme-btn-glow-dark {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(184, 184, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 14px 1px rgba(184, 184, 255, 0.45);
  }
}

/* Extra spin on click */
.header-btn--theme.is-theme-toggling .theme-toggle-icon {
  animation: theme-toggle-spin 0.5s ease;
}

.header-btn--theme.is-theme-toggling .theme-icon--sun,
.header-btn--theme.is-theme-toggling .theme-icon--moon {
  animation-play-state: paused;
}

@keyframes theme-toggle-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  45% {
    transform: rotate(160deg) scale(0.82);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-btn--theme,
  .header-btn--theme .theme-icon--sun,
  .header-btn--theme .theme-icon--moon,
  .header-btn--theme.is-theme-toggling .theme-toggle-icon {
    animation: none !important;
  }

  .header-btn--theme .theme-icon {
    transition: opacity 0.15s ease;
  }
}

[data-theme="dark"] .header-pill-chevron {
  filter: brightness(0) invert(0.85);
}

[data-theme="dark"] .header-dropdown-menu {
  background: #2d2d2d;
  border-color: rgba(204, 204, 204, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .header-dropdown-menu.header-profile-menu {
  background: #2d2d2d;
  border: 0.5px solid rgba(204, 204, 204, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .header-currency-menu li a {
  color: #ffffff;
}

[data-theme="dark"] .header-currency-menu li a:hover {
  background: rgba(96, 96, 171, 0.22);
  color: #ffffff;
}

[data-theme="dark"] .header-currency-menu li.active a {
  color: #9da8dc;
  background: rgba(96, 96, 171, 0.28);
}

[data-theme="dark"] .header-currency-symbol {
  color: #dddddd;
}

[data-theme="dark"] .header-currency-empty {
  color: #dddddd;
}

[data-theme="dark"] .header-profile-item {
  background: #2d2d2d;
  color: #ffffff;
  border-bottom-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .header-profile-item:hover {
  background: rgba(96, 96, 171, 0.22);
  color: #ffffff;
}

[data-theme="dark"] .header-profile-item:not(.header-profile-item--logout) img {
  filter: none;
  opacity: 1;
}

[data-theme="dark"] .header-profile-item--logout {
  background: var(--brand);
  color: #ffffff;
}

[data-theme="dark"] .header-profile-item--logout:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

[data-theme="dark"] .dashboard-date-icon {
  filter: brightness(0) invert(0.85);
}

/* Stat cards in dark theme: dark hover composite includes baked layers */
[data-theme="dark"] .no-stat-card .no-stat-card-layers {
  opacity: 0;
  display: none;
}

[data-theme="dark"] .no-stat-card .no-stat-card-bg--light {
  opacity: 0;
}

[data-theme="dark"] .no-stat-card .no-stat-card-bg--dark {
  opacity: 1;
}

[data-theme="dark"] .no-stat-card .no-stat-icon {
  background: rgba(250, 250, 250, 0.1);
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .no-stat-card .no-stat-value {
  color: #ffffff;
}

[data-theme="dark"] .no-stat-card .no-stat-label,
[data-theme="dark"] .no-stat-card .no-stat-link {
  color: #dddddd;
}

[data-theme="dark"] .no-stat-card .no-stat-icon img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .no-stat-card:hover .no-stat-card-bg--light,
[data-theme="dark"] .no-stat-card.is-hovered .no-stat-card-bg--light {
  opacity: 0;
}

[data-theme="dark"] .no-stat-card:hover .no-stat-card-bg--dark,
[data-theme="dark"] .no-stat-card.is-hovered .no-stat-card-bg--dark {
  opacity: 1;
}

[data-theme="dark"] .no-stat-card:hover .no-stat-icon,
[data-theme="dark"] .no-stat-card.is-hovered .no-stat-icon {
  background: rgba(250, 250, 250, 0.1);
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .no-stat-card:hover .no-stat-value,
[data-theme="dark"] .no-stat-card.is-hovered .no-stat-value {
  color: #ffffff;
}

[data-theme="dark"] .no-stat-card:hover .no-stat-label,
[data-theme="dark"] .no-stat-card:hover .no-stat-link,
[data-theme="dark"] .no-stat-card.is-hovered .no-stat-label,
[data-theme="dark"] .no-stat-card.is-hovered .no-stat-link {
  color: #dddddd;
}

[data-theme="dark"] .no-card-title,
[data-theme="dark"] .no-field-label,
[data-theme="dark"] .no-form .control-label {
  color: #ffffff;
}

[data-theme="dark"] .no-page .no-add-fund-link {
  color: inherit;
  border-color: #b8b8ff;
  background: rgba(184, 184, 255, 0.18);
  animation-name: no-add-fund-color-dark;
}

[data-theme="dark"] .no-page .no-add-fund-link .no-add-fund-label,
[data-theme="dark"] .no-page .no-add-fund-link:hover .no-add-fund-label,
[data-theme="dark"] .no-page .no-add-fund-link:focus .no-add-fund-label {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

[data-theme="dark"] .no-page .no-add-fund-link::before {
  background-image: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 100%
  );
}

[data-theme="dark"] .no-page .no-add-fund-link:hover,
[data-theme="dark"] .no-page .no-add-fund-link:focus {
  border-color: #d0d0ff;
  background: rgba(208, 208, 255, 0.24);
  box-shadow: 0 4px 16px rgba(184, 184, 255, 0.28);
}

[data-theme="dark"]
  .no-page
  .no-card-tab:not(.is-active):not(.no-card-tab--gradient):not(
    .no-add-fund-link
  ) {
  color: #ffffff;
}

[data-theme="dark"]
  .no-page
  .no-card-tab:not(.is-active):not(.no-add-fund-link)
  img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .no-page .no-add-fund-link img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(28%) saturate(1200%)
    hue-rotate(204deg) brightness(108%) contrast(102%);
  animation-name: no-add-fund-icon-hue-dark;
}

[data-theme="dark"] .no-field-input-wrap--select::after {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .no-details-tabs {
  background: var(--surface-muted);
}

[data-theme="dark"] .no-details-tab:not(.is-active) {
  color: #ffffff;
}

[data-theme="dark"] .no-instruction-box,
[data-theme="dark"] .no-instruction-note {
  background: var(--surface-muted);
  border-color: var(--border);
}

[data-theme="dark"] .no-instruction-item p {
  color: #dddddd;
}

[data-theme="dark"] .no-instruction-label,
[data-theme="dark"] .no-instruction-note p {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #ffffff;
}

[data-theme="dark"] .no-platform-btn.is-active {
  color: #ffffff;
}

[data-theme="dark"] .no-platform-btn:active:not(.is-active) {
  background: rgba(250, 250, 250, 0.14);
  border-color: rgba(204, 204, 204, 0.1);
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  [data-theme="dark"] .no-platform-btn:hover:not(.is-active) {
    background: rgba(250, 250, 250, 0.14);
    border-color: rgba(204, 204, 204, 0.1);
    color: var(--text-primary);
  }
}

[data-theme="dark"] .mo-search-card,
[data-theme="dark"] .mo-filters-card {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
  border-radius: 16px;
  color: var(--text-primary);
}

[data-theme="dark"] .mo-page .mo-search-field,
[data-theme="dark"] .df-page .mo-search-field {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .mo-page .mo-filters-track,
[data-theme="dark"] .df-page .mo-filters-track {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border: 1px solid rgba(204, 204, 204, 0.16);
  border-radius: 12px;
  padding: 8px;
}

[data-theme="dark"] .mo-page .mo-filter:not(.is-active),
[data-theme="dark"] .df-page .mo-filter:not(.is-active) {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: transparent;
  color: #ffffff;
  height: 40px;
}

[data-theme="dark"] .mo-page .mo-filter.is-active,
[data-theme="dark"] .df-page .mo-filter.is-active,
[data-theme="dark"] .mo-page .mo-filter.is-active:hover,
[data-theme="dark"] .df-page .mo-filter.is-active:hover,
[data-theme="dark"] .mo-page .mo-filter.is-active:focus,
[data-theme="dark"] .df-page .mo-filter.is-active:focus {
  border-color: transparent;
  outline: none;
  height: 40px;
}

[data-theme="dark"] .mo-page .mo-filter img,
[data-theme="dark"] .df-page .mo-filter img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .mo-page .mo-table-card,
[data-theme="dark"] .df-page .mo-table-card {
  background: transparent;
  border-color: rgba(204, 204, 204, 0.16);
  border-radius: 28px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
  color: var(--text-primary);
}

[data-theme="dark"] .mo-page .mo-table tbody tr:nth-child(odd) td,
[data-theme="dark"] .df-page .mo-table tbody tr:nth-child(odd) td {
  background: rgba(45, 45, 45, 0.83);
}

[data-theme="dark"] .mo-page .mo-table tbody tr:nth-child(even) td,
[data-theme="dark"] .df-page .mo-table tbody tr:nth-child(even) td {
  background: rgba(45, 45, 45, 0.43);
}

[data-theme="dark"] .mo-page .mo-table tbody tr:hover td,
[data-theme="dark"] .df-page .mo-table tbody tr:hover td {
  background: rgba(250, 250, 250, 0.12);
}

[data-theme="dark"] .mo-page .mo-table tbody .mo-check,
[data-theme="dark"] .df-page .mo-table tbody .mo-check {
  border-color: #ffffff;
}

[data-theme="dark"] .mo-page .mo-table tbody .mo-copy-btn,
[data-theme="dark"] .df-page .mo-table tbody .mo-copy-btn {
  border-color: #ffffff;
  background: transparent;
  color: #ffffff;
}

[data-theme="dark"] .mo-page .mo-table tbody .mo-copy,
[data-theme="dark"] .df-page .mo-table tbody .mo-copy {
  background-color: #ffffff;
}

[data-theme="dark"] .mo-page:not(.up-page) .mo-status,
[data-theme="dark"] .df-page .mo-status {
  background: rgba(45, 45, 45, 0.83);
  border-color: #6060ab;
  color: #dddddd;
}

[data-theme="dark"] .mo-page .mo-search-icon,
[data-theme="dark"] .df-page .mo-search-icon {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .af-card,
[data-theme="dark"] .cc-card,
[data-theme="dark"] .ac-card {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--text-primary);
}

[data-theme="dark"] .sv-toolbar {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
  color: var(--text-primary);
}

[data-theme="dark"] .sv-toolbar-filters {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .sv-chip--muted {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  color: #dddddd;
}

[data-theme="dark"] .sv-chip--muted img,
[data-theme="dark"] .sv-chip-chevron {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .sv-search {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .sv-search-icon {
  filter: brightness(0) invert(0.85);
}

[data-theme="dark"] .sv-table-card {
  background: var(--dark-sec-bg, rgba(45, 45, 45, 0.43));
  border-color: rgba(204, 204, 204, 0.16);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .sv-category-row td {
  background: transparent !important;
  border-bottom-color: #6060ab !important;
}

[data-theme="dark"] .sv-category-left strong {
  color: #dddddd;
}

[data-theme="dark"] .sv-category-chevron {
  background: var(--gradient-brand);
  border-color: #6060ab;
}

[data-theme="dark"] .sv-category-chevron img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .sv-view-btn {
  background: var(--gradient-brand);
  border-color: #6060ab;
  color: #ffffff;
}

[data-theme="dark"] .sv-view-btn:hover {
  background: var(--gradient-brand);
  color: #ffffff;
  opacity: 0.92;
}

[data-theme="dark"] .sv-tag {
  background: transparent;
  border: 0.5px solid #9da8dc;
  color: #ffffff;
}

[data-theme="dark"] .sv-service-name span,
[data-theme="dark"] .sv-avg span {
  color: #dddddd;
}

[data-theme="dark"] .ac-tabs-bar {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .ac-tabs-bar .no-card-tab {
  color: #ffffff;
}

[data-theme="dark"] .ac-tabs-bar .no-card-tab img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .no-add-fund-link img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(28%) saturate(1200%)
    hue-rotate(204deg) brightness(108%) contrast(102%);
  animation-name: no-add-fund-icon-hue-dark;
}

[data-theme="dark"] .no-field-input-wrap--select::after {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .ac-card {
  background: var(--dark-sec-bg, rgba(45, 45, 45, 0.43));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .ac-card .no-card-header {
  background-color: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  background-image: none;
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .ac-input-leading img,
[data-theme="dark"] .ac-password-toggle img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .ac-info-box {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .ac-textarea,
[data-theme="dark"] .ac-readonly-span {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
  color: #dddddd;
}

[data-theme="dark"] .cp-page .af-form-card,
[data-theme="dark"] .cp-page .af-side-card,
[data-theme="dark"] .cp-page .cp-side-card,
[data-theme="dark"] .cp-page .no-card {
  background: var(--dark-sec-bg, rgba(45, 45, 45, 0.43));
  border-color: var(--card-border);
  color: var(--text-primary);
}

[data-theme="dark"] .cp-page .cp-ns-box,
[data-theme="dark"] .cp-page .cp-instruction-box,
[data-theme="dark"] .cp-page .af-instruction-box {
  background: var(--dark-sec-bg, rgba(45, 45, 45, 0.43));
  border-color: var(--card-border);
  color: var(--text-primary);
}

[data-theme="dark"] .sv-chip--gradient {
  background: var(--gradient-brand);
  color: #ffffff;
}

[data-theme="dark"] .sv-filter-dropdown .dropdown-menu,
[data-theme="dark"] .sv-currency-dropdown .dropdown-menu,
[data-theme="dark"] .sv-filter-dropdown .sv-dropdown-menu,
[data-theme="dark"] .sv-currency-dropdown .sv-dropdown-menu,
[data-theme="dark"] .dropdown-menu {
  background: var(--dropdown-bg);
  border: 0.5px solid var(--border);
  color: var(--text-primary);
}

[data-theme="dark"] .sv-filter-dropdown .dropdown-menu > li > a,
[data-theme="dark"] .sv-currency-dropdown .dropdown-menu > li > a,
[data-theme="dark"] .sv-filter-dropdown .sv-dropdown-menu > li > a,
[data-theme="dark"] .sv-currency-dropdown .sv-dropdown-menu > li > a {
  color: #ffffff;
}

[data-theme="dark"] .sv-filter-dropdown .dropdown-menu > li > a:hover,
[data-theme="dark"] .sv-currency-dropdown .dropdown-menu > li > a:hover,
[data-theme="dark"] .sv-filter-dropdown .sv-dropdown-menu > li > a:hover,
[data-theme="dark"] .sv-currency-dropdown .sv-dropdown-menu > li > a:hover,
[data-theme="dark"] .sv-filter-dropdown .dropdown-menu > li.active > a,
[data-theme="dark"] .sv-currency-dropdown .dropdown-menu > li.active > a,
[data-theme="dark"] .sv-filter-dropdown .dropdown-menu > li > a:focus,
[data-theme="dark"] .sv-currency-dropdown .dropdown-menu > li > a:focus,
[data-theme="dark"] .sv-filter-dropdown .sv-dropdown-menu > li > a:focus,
[data-theme="dark"] .sv-currency-dropdown .sv-dropdown-menu > li > a:focus {
  color: #ffffff;
  background: rgba(250, 250, 250, 0.08);
}

[data-theme="dark"] .sv-modal-dialog,
[data-theme="dark"] .sv-modal-body,
[data-theme="dark"] .sv-modal-footer {
  background: rgb(45, 45, 45);
}

[data-theme="dark"] .sv-modal-stat,
[data-theme="dark"] .sv-modal-desc {
  background: rgb(65, 65, 65);
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .sv-modal-stat-label,
[data-theme="dark"] .sv-modal-desc-label {
  color: #b8b8b8;
}

[data-theme="dark"] .sv-modal-stat-value,
[data-theme="dark"] .sv-modal-desc-content {
  color: #ffffff;
}

[data-theme="dark"] .sv-table tbody td.sv-col-id,
[data-theme="dark"] .mo-table tbody td {
  color: var(--table-text);
}

[data-theme="dark"] .sv-table tbody td.sv-col-id,
[data-theme="dark"] .sv-id-text {
  color: #dddddd;
}

[data-theme="dark"] .sv-table tbody tr:not(.sv-category-row):hover td {
  background: var(--surface-muted);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] input.form-control,
[data-theme="dark"] select.form-control,
[data-theme="dark"] textarea.form-control {
  background: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--input-text) !important;
}

[data-theme="dark"] .cc-page .cc-history-search {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .cc-page .cc-history-search input,
[data-theme="dark"] .cc-page .cc-history-search input.form-control {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #dddddd !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

[data-theme="dark"] .cc-page .cc-history-search input::placeholder,
[data-theme="dark"]
  .cc-page
  .cc-history-search
  input.form-control::placeholder {
  color: rgba(221, 221, 221, 0.7) !important;
}

[data-theme="dark"] .cc-page .cc-history-search-icon {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

[data-theme="dark"] .cc-page .cc-ticket-value--accent {
  color: #ffffff;
}

[data-theme="dark"] .cc-page .tickets-uploader .cc-attach-facade img,
[data-theme="dark"] .cc-page .cc-attach-icon {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .cc-page .cc-msg-author,
[data-theme="dark"] .vt-page .cc-msg-author {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #ffffff;
}

[data-theme="dark"] .cc-page .cc-info-card,
[data-theme="dark"] .vt-page .cc-info-card {
  background: var(--dark-sec-bg, rgba(45, 45, 45, 0.43));
  border-color: rgba(96, 96, 171, 0.2);
}

[data-theme="dark"] .cc-page .cc-info-title-bar,
[data-theme="dark"] .cc-page .cc-chat-title-bar,
[data-theme="dark"] .vt-page .cc-info-title-bar,
[data-theme="dark"] .vt-page .cc-chat-title-bar {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .cc-page .cc-chat-title,
[data-theme="dark"] .vt-page .cc-chat-title {
  color: #ffffff;
}

[data-theme="dark"] .cc-page .cc-info-lead,
[data-theme="dark"] .vt-page .cc-info-lead {
  color: #dddddd;
}

[data-theme="dark"] .cc-page .cc-info-row,
[data-theme="dark"] .vt-page .cc-info-row {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .cc-page .cc-info-label,
[data-theme="dark"] .vt-page .cc-info-label {
  color: #dddddd;
}

[data-theme="dark"] .cc-page .cc-info-badge--id,
[data-theme="dark"] .vt-page .cc-info-badge--id {
  border-color: #f59a2a;
  background: rgba(245, 154, 42, 0.18);
  color: #ffb14d;
}

[data-theme="dark"] .cc-page .cc-info-badge--subject,
[data-theme="dark"] .vt-page .cc-info-badge--subject {
  border-color: #9da8dc;
  background: rgba(157, 168, 220, 0.16);
  color: #c5ccef;
}

[data-theme="dark"] .cc-page .cc-info-badge--status,
[data-theme="dark"] .vt-page .cc-info-badge--status {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

[data-theme="dark"] .cc-page .cc-info-badge--pending,
[data-theme="dark"] .vt-page .cc-info-badge--pending {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

[data-theme="dark"] .cc-page .cc-info-badge--answered,
[data-theme="dark"] .vt-page .cc-info-badge--answered {
  border-color: #9da8dc;
  background: rgba(96, 96, 171, 0.28);
  color: #c5ccef;
}

[data-theme="dark"] .cc-page .cc-info-badge--closed,
[data-theme="dark"] .vt-page .cc-info-badge--closed {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

[data-theme="dark"] .cc-page .cc-info-badge--priority,
[data-theme="dark"] .vt-page .cc-info-badge--priority {
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.16);
  color: #fda4af;
}

[data-theme="dark"] .cc-page .cc-info-badge--department,
[data-theme="dark"] .vt-page .cc-info-badge--department {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.14);
  color: #67e8f9;
}

[data-theme="dark"] .cc-page .cc-info-badge--response,
[data-theme="dark"] .vt-page .cc-info-badge--response {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

[data-theme="dark"] .cc-page .cc-info-note,
[data-theme="dark"] .vt-page .cc-info-note {
  background: rgba(96, 96, 171, 0.18);
  border-color: rgba(96, 96, 171, 0.35);
}

[data-theme="dark"] .cc-page .cc-info-note-title,
[data-theme="dark"] .vt-page .cc-info-note-title {
  color: #ffffff;
}

[data-theme="dark"] .cc-page .cc-info-note-text,
[data-theme="dark"] .vt-page .cc-info-note-text {
  color: #dddddd;
}

[data-theme="dark"] .cc-page .cc-chat-thread,
[data-theme="dark"] .vt-page .cc-chat-thread {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .cc-page .cc-msg-time,
[data-theme="dark"] .vt-page .cc-msg-time {
  color: #dddddd;
}

[data-theme="dark"] .cc-page .cc-msg-bubble--support,
[data-theme="dark"] .vt-page .cc-msg-bubble--support {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(96, 96, 171, 0.45);
  color: #dddddd;
}

[data-theme="dark"] .cc-page .cc-msg-avatar,
[data-theme="dark"] .vt-page .cc-msg-avatar {
  background: rgba(250, 250, 250, 0.08);
}

[data-theme="dark"] .cc-page .cc-info-card .api-php-link,
[data-theme="dark"] .vt-page .cc-info-card .api-php-link {
  color: #ffffff;
}

[data-theme="dark"] .cc-page #ticket-fields select,
[data-theme="dark"] .cc-page #ticket-subcategory-fields select,
[data-theme="dark"] .cc-page select.form-control {
  color: #ffffff !important;
  background-color: var(--dash-dark-input, rgba(250, 250, 250, 0.1)) !important;
  border-color: rgba(204, 204, 204, 0.16) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M6 4.6L1.4 0 0 1.4 6 7.4 12 1.4 10.6 0 6 4.6z' fill='%23ffffff'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 12px 7px !important;
}

[data-theme="dark"] .cc-page .af-select-wrap select.af-select,
[data-theme="dark"] .cc-page .af-select-wrap select.form-control {
  background-image: none !important;
}

[data-theme="dark"] .cc-page .af-select-chevron {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--input-text) !important;
  opacity: 0.75;
}

[data-theme="dark"] .select2-container--default .select2-selection--single,
[data-theme="dark"] .select2-container--default .select2-results__option {
  background: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--input-text) !important;
}

/* Opaque dropdown panel — dark --surface/--input-bg are translucent */
[data-theme="dark"] .select2-dropdown,
[data-theme="dark"] .af-select2-dropdown,
[data-theme="dark"] .af-select2-dropdown.is-open,
[data-theme="dark"] .af-select-wrap--select2.is-open .af-select2-dropdown {
  background: #1a1a28 !important;
  background-color: #1a1a28 !important;
  border-color: rgba(204, 204, 204, 0.16) !important;
  color: var(--input-text) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="dark"] .af-select2-dropdown .select2-results,
[data-theme="dark"] .af-select2-dropdown .select2-results__options,
[data-theme="dark"] .af-select2-dropdown .dropdown-menu,
[data-theme="dark"] .af-select2-dropdown .dropdown-menu.show,
[data-theme="dark"] .select2-dropdown .select2-results,
[data-theme="dark"] .select2-dropdown .select2-results__options,
[data-theme="dark"] .select2-dropdown .dropdown-menu {
  background: #1a1a28 !important;
  background-color: #1a1a28 !important;
  opacity: 1 !important;
}

[data-theme="dark"] .af-select2-dropdown .select2-results__option,
[data-theme="dark"] .af-select2-dropdown .select2-results__option > a,
[data-theme="dark"] .select2-dropdown .select2-results__option,
[data-theme="dark"] .select2-dropdown .select2-results__option > a {
  background: #1a1a28 !important;
  background-color: #1a1a28 !important;
  color: #ffffff !important;
}

[data-theme="dark"]
  .select2-container--default
  .select2-results__option--highlighted,
[data-theme="dark"]
  .select2-container--default
  .select2-results__option--highlighted
  a,
[data-theme="dark"] .select2-results__options > li:hover,
[data-theme="dark"] .select2-results__options > li:hover > a,
[data-theme="dark"] #select2-orderform-category-results > li:hover > a,
[data-theme="dark"] #select2-orderform-service-results > li:hover > a,
[data-theme="dark"]
  .no-search-wrap
  .search-dropdown
  .dropdown-menu
  > li:hover
  > a,
[data-theme="dark"] .search-dropdown .dropdown-menu > li:hover > a,
[data-theme="dark"] .af-select2-dropdown .select2-results__option:hover,
[data-theme="dark"] .af-select2-dropdown .select2-results__option:hover > a,
[data-theme="dark"] .af-select2-dropdown .select2-results__option--highlighted,
[data-theme="dark"] .af-select2-dropdown .select2-results__option--highlighted > a,
[data-theme="dark"] .select2-dropdown .select2-results__option:hover,
[data-theme="dark"] .select2-dropdown .select2-results__option:hover > a {
  background: #2a2a3d !important;
  background-color: #2a2a3d !important;
  color: var(--input-text) !important;
}

[data-theme="dark"]
  .select2-container--default
  .select2-results__option[aria-selected="true"],
[data-theme="dark"]
  .select2-container--default
  .select2-results__option[aria-selected="true"].select2-results__option--highlighted,
[data-theme="dark"]
  .select2-container--default
  .select2-results__option[aria-selected="true"]
  a,
[data-theme="dark"]
  .select2-container--default
  .select2-results__option[aria-selected="true"].select2-results__option--highlighted
  a,
[data-theme="dark"] .select2-results__options > li.active,
[data-theme="dark"] .select2-results__options > li.active > a,
[data-theme="dark"] .select2-results__options.dropdown-menu > .active > a,
[data-theme="dark"] .select2-results__options.dropdown-menu > .active > a:hover,
[data-theme="dark"] .select2-results__options.dropdown-menu > .active > a:focus,
[data-theme="dark"] .select2-dropdown .dropdown-menu > .active > a,
[data-theme="dark"] .select2-dropdown.dropdown-menu > .active > a,
[data-theme="dark"]
  #select2-orderform-category-results
  > li[aria-selected="true"],
[data-theme="dark"]
  #select2-orderform-category-results
  > li[aria-selected="true"]
  > a,
[data-theme="dark"] #select2-orderform-category-results > li.active > a,
[data-theme="dark"]
  #select2-orderform-service-results
  > li[aria-selected="true"],
[data-theme="dark"]
  #select2-orderform-service-results
  > li[aria-selected="true"]
  > a,
[data-theme="dark"] #select2-orderform-service-results > li.active > a,
[data-theme="dark"]
  .no-search-wrap
  .search-dropdown
  .dropdown-menu
  > li.active
  > a,
[data-theme="dark"] .search-dropdown .dropdown-menu > li.active > a {
  background: var(--brand, #6060ab) !important;
  background-color: var(--brand, #6060ab) !important;
  color: #ffffff !important;
}

.select2-dropdown,
.select2-results,
.select2-results__options,
.no-search-wrap .search-dropdown .dropdown-menu,
.search-dropdown .select2-results__options {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.select2-dropdown::-webkit-scrollbar,
.select2-results::-webkit-scrollbar,
.select2-results__options::-webkit-scrollbar,
.no-search-wrap .search-dropdown .dropdown-menu::-webkit-scrollbar,
.search-dropdown .select2-results__options::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.select2-dropdown::-webkit-scrollbar-track,
.select2-results::-webkit-scrollbar-track,
.select2-results__options::-webkit-scrollbar-track,
.no-search-wrap .search-dropdown .dropdown-menu::-webkit-scrollbar-track,
.search-dropdown .select2-results__options::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

.select2-dropdown::-webkit-scrollbar-thumb,
.select2-results::-webkit-scrollbar-thumb,
.select2-results__options::-webkit-scrollbar-thumb,
.no-search-wrap .search-dropdown .dropdown-menu::-webkit-scrollbar-thumb,
.search-dropdown .select2-results__options::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.select2-dropdown::-webkit-scrollbar-thumb:hover,
.select2-results::-webkit-scrollbar-thumb:hover,
.select2-results__options::-webkit-scrollbar-thumb:hover,
.no-search-wrap .search-dropdown .dropdown-menu::-webkit-scrollbar-thumb:hover,
.search-dropdown .select2-results__options::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

[data-theme="dark"] .no-page-text,
[data-theme="dark"] .mo-page,
[data-theme="dark"] .sv-page,
[data-theme="dark"] .af-page,
[data-theme="dark"] .cc-page,
[data-theme="dark"] .ac-page,
[data-theme="dark"] .db-page,
[data-theme="dark"] .fq-page,
[data-theme="dark"] .nt-page,
[data-theme="dark"] .api-page,
[data-theme="dark"] .up-page,
[data-theme="dark"] .gw-page,
[data-theme="dark"] .cp-page,
[data-theme="dark"] .ab-page {
  color: var(--text-primary);
}

[data-theme="dark"] .af-page .af-form-card,
[data-theme="dark"] .af-page .af-side-card {
  background: var(--dark-sec-bg, rgba(45, 45, 45, 0.43));
  border-color: rgba(96, 96, 171, 0.2);
}

[data-theme="dark"] .af-page .no-card-header,
[data-theme="dark"] .af-page .af-side-tabs-wrap {
  background-color: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  background-image: none;
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .af-page .no-card-tab:not(.is-active) {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  color: #ffffff;
}

[data-theme="dark"] .af-page .af-video-tab:not(.is-active) .af-video-tab-play {
  background: #b8b8ff;
  animation-name: af-video-play-pulse-dark;
}

[data-theme="dark"]
  .af-page
  .af-video-tab:not(.is-active)
  .af-video-tab-play::before {
  border-color: transparent transparent transparent #1a1a2e;
}

[data-theme="dark"] .af-page .af-video-tab.is-active .af-video-tab-play {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"]
  .af-page
  .af-video-tab.is-active
  .af-video-tab-play::before {
  border-color: transparent transparent transparent #6060ab;
}

@keyframes af-video-play-pulse-dark {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(184, 184, 255, 0.5);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 12px 3px rgba(158, 176, 255, 0.65);
  }
}

[data-theme="dark"] .af-page .no-card-tab:not(.is-active) img,
[data-theme="dark"] .af-page .af-form-card .no-card-tab:not(.is-active) img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .af-page .af-method-card:not(.is-active),
[data-theme="dark"] .af-page .af-method-icon,
[data-theme="dark"] .af-page .af-amount-chip:not(.is-active),
[data-theme="dark"] .af-page .af-instruction-box,
[data-theme="dark"] .af-page .af-faq,
[data-theme="dark"] .af-page .af-select-wrap .af-select,
[data-theme="dark"] .af-page .af-select-wrap .form-control,
[data-theme="dark"] .af-page .af-select2-trigger,
[data-theme="dark"] .af-page .af-input-wrap .form-control,
[data-theme="dark"] .af-page #amount-fields .form-control,
[data-theme="dark"] .af-page #amount-converted-input,
[data-theme="dark"] .af-page #addfunds-form [id^="order_"] .form-control,
[data-theme="dark"] .af-page #addfunds-form [id^="order_"] input,
[data-theme="dark"] .af-page #addfunds-form [id^="field-"],
[data-theme="dark"] .af-page #addfunds-form .form-group.fields .form-control,
[data-theme="dark"] .af-page #addfunds-form .form-group.fields input,
[data-theme="dark"] .af-page #addfunds-form .form-group.fields select,
[data-theme="dark"] .af-page #addfunds-form .form-group.fields textarea,
[data-theme="dark"] .af-page .commission-fields .form-control,
[data-theme="dark"] .af-page .commission-fields input {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .af-page #amount-fields .control-label,
[data-theme="dark"] .af-page #addfunds-form [id^="order_"] .control-label,
[data-theme="dark"] .af-page #addfunds-form [id^="order_"] > label,
[data-theme="dark"] .af-page #addfunds-form .form-group.fields > label,
[data-theme="dark"] .af-page #addfunds-form .form-group.fields .control-label,
[data-theme="dark"] .af-page .commission-fields .control-label,
[data-theme="dark"] .af-page .commission-fields > label {
  color: var(--text-dark);
}

[data-theme="dark"] .af-page .af-select-wrap--select2.is-open {
  z-index: 2147483000 !important;
  position: relative;
}

[data-theme="dark"] .af-page .af-select2-dropdown,
[data-theme="dark"] .af-page .af-select2-dropdown.is-open,
[data-theme="dark"] .af-page .af-select-wrap--select2.is-open .af-select2-dropdown {
  z-index: 2147483000 !important;
  background: #1a1a28 !important;
  background-color: #1a1a28 !important;
  border-color: rgba(204, 204, 204, 0.16) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
}

[data-theme="dark"] .af-page .af-select2-dropdown .select2-results,
[data-theme="dark"] .af-page .af-select2-dropdown .select2-results__options,
[data-theme="dark"] .af-page .af-select2-dropdown .dropdown-menu,
[data-theme="dark"] .af-page .af-select2-dropdown .dropdown-menu.show,
[data-theme="dark"] .af-page .af-select2-dropdown.is-open .select2-results,
[data-theme="dark"] .af-page .af-select2-dropdown.is-open .select2-results__options,
[data-theme="dark"] .af-page .af-select2-dropdown.is-open .dropdown-menu {
  background: #1a1a28 !important;
  background-color: #1a1a28 !important;
  opacity: 1 !important;
}

[data-theme="dark"] .af-page .af-select2-dropdown .select2-results__option,
[data-theme="dark"] .af-page .af-select2-dropdown .select2-results__option > a {
  background: #1a1a28 !important;
  background-color: #1a1a28 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .af-page .af-select2-dropdown .select2-results__option:hover,
[data-theme="dark"] .af-page .af-select2-dropdown .select2-results__option:hover > a,
[data-theme="dark"]
  .af-page
  .af-select2-dropdown
  .select2-results__option--highlighted,
[data-theme="dark"]
  .af-page
  .af-select2-dropdown
  .select2-results__option--highlighted
  > a {
  background: #2a2a3d !important;
  background-color: #2a2a3d !important;
}

[data-theme="dark"] .af-page .af-select2-dropdown .select2-results__option.active,
[data-theme="dark"] .af-page .af-select2-dropdown .select2-results__option.active > a,
[data-theme="dark"]
  .af-page
  .af-select2-dropdown
  .select2-results__option[aria-selected="true"],
[data-theme="dark"]
  .af-page
  .af-select2-dropdown
  .select2-results__option[aria-selected="true"]
  > a {
  background: #6060ab !important;
  background-color: #6060ab !important;
  color: #ffffff !important;
}

[data-theme="dark"] .af-page .af-select2-trigger__text,
[data-theme="dark"] .af-page .af-select2-dropdown .select2-selection__text {
  color: #ffffff;
}

[data-theme="dark"] .af-page .af-field-label,
[data-theme="dark"] .af-page .af-method-label,
[data-theme="dark"] .af-page .af-faq summary,
[data-theme="dark"] .af-page .af-total-label,
[data-theme="dark"] .af-page .af-total-value,
[data-theme="dark"] .af-page .af-support-title {
  color: #ffffff;
}

[data-theme="dark"] .af-page .af-amount-chip:not(.is-active) {
  color: #ffffff;
}

[data-theme="dark"] .af-page .af-instruction-item p,
[data-theme="dark"] .af-page .af-faq-body,
[data-theme="dark"] .af-page .af-faq-body > p {
  color: #dddddd;
}

[data-theme="dark"] .af-page .af-select-chevron,
[data-theme="dark"] .af-page .af-select2-trigger__chevron,
[data-theme="dark"] .af-page .af-faq summary img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .af-page .af-history-table-wrap {
  border: 1px solid rgba(204, 204, 204, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: #1e1e21;
}

[data-theme="dark"] .af-page .af-history-table thead th {
  background: #6d6eaf;
  color: #ffffff;
}

[data-theme="dark"] .af-page .af-history-table tbody td {
  color: #c8c8c8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .af-page .af-history-table tbody tr:nth-child(odd) td {
  background-color: #242427;
}

[data-theme="dark"] .af-page .af-history-table tbody tr:nth-child(even) td {
  background-color: #1e1e21;
}

[data-theme="dark"] .af-page .af-history-table tbody tr:last-child td {
  border-bottom: 0;
}

[data-theme="dark"] .af-page .af-history-invoice {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #9da8dc;
}

[data-theme="dark"] .cc-page .cc-history-search img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .fq-item,
[data-theme="dark"] .fq-content details,
[data-theme="dark"] .fq-content .panel,
[data-theme="dark"] .fq-content .well,
[data-theme="dark"] .fq-content > div,
[data-theme="dark"] .fq-content > section {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .fq-item summary,
[data-theme="dark"] .fq-content .panel-heading,
[data-theme="dark"] .fq-content h3,
[data-theme="dark"] .fq-content h4,
[data-theme="dark"] .fq-content summary,
[data-theme="dark"] .fq-content .panel-title {
  color: #ffffff;
}

[data-theme="dark"] .fq-item-body p,
[data-theme="dark"] .fq-content .panel-body,
[data-theme="dark"] .fq-content p {
  color: #dddddd;
}

[data-theme="dark"] .fq-item summary img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .up-page .mo-table-card {
  background: transparent;
  border-color: rgba(204, 204, 204, 0.16);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .up-table tbody tr:nth-child(odd) td {
  background: rgba(45, 45, 45, 0.83);
}

[data-theme="dark"] .up-table tbody tr:nth-child(even) td {
  background: rgba(45, 45, 45, 0.43);
}

[data-theme="dark"] .up-table .up-status,
[data-theme="dark"] .up-table .mo-status.up-status {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #ffffff;
  min-width: 0;
  height: auto;
  padding: 0;
}

[data-theme="dark"] .api-cell {
  border-color: rgba(204, 204, 204, 0.16);
  background: transparent;
}

[data-theme="dark"] .api-cell--label {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  color: #ffffff;
}

[data-theme="dark"] .api-cell--value {
  color: #ffffff;
}

[data-theme="dark"] .api-code {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
  color: #ffffff;
}

[data-theme="dark"] .api-example-title {
  color: #ffffff;
}

[data-theme="dark"] .api-type-select .form-control,
[data-theme="dark"] .api-type-select select,
[data-theme="dark"] .api-php-link {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .api-php-link,
[data-theme="dark"] .api-php-link:hover,
[data-theme="dark"] .api-php-link:focus,
[data-theme="dark"] .api-php-link:active {
  color: #ffffff;
  text-decoration: none;
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .db-meta-value,
[data-theme="dark"] .db-status-name,
[data-theme="dark"] .db-status-rank-label {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #ffffff;
}

[data-theme="dark"] .db-status-avatar {
  border: none;
}

[data-theme="dark"] .db-status-name-row .mo-copy-btn {
  border-color: #ffffff;
  background: transparent;
  color: #ffffff;
}

[data-theme="dark"] .db-status-name-row .mo-copy-icon {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .db-levels-card {
  background: rgba(45, 45, 45, 0.24);
  border-color: rgba(204, 204, 204, 0.16);
  box-shadow: none;
}

[data-theme="dark"] .db-level-progress {
  background: linear-gradient(
    154deg,
    rgba(14, 13, 40, 0.96) 32.29%,
    rgba(65, 67, 110, 0.9) 72.2%
  );
  border-color: rgba(96, 96, 171, 0.35);
  box-shadow: none;
}

[data-theme="dark"] .db-level-progress:hover,
[data-theme="dark"] .db-level-progress:focus-visible {
  border-color: rgba(157, 168, 220, 0.55);
  box-shadow: 0 8px 24px rgba(17, 16, 43, 0.22);
}

[data-theme="dark"] .db-lp-labels,
[data-theme="dark"] .db-lp-hint {
  color: rgba(245, 246, 247, 0.95);
}

[data-theme="dark"] .db-lp-title {
  color: var(--white);
}

[data-theme="dark"] .db-lp-bar {
  background: rgba(214, 214, 214, 0.23);
}

[data-theme="dark"] .db-levels-table tbody tr:nth-child(odd) td {
  background: rgba(45, 45, 45, 0.43);
}

[data-theme="dark"] .db-levels-table tbody tr:nth-child(even) td {
  background: rgba(45, 45, 45, 0.83);
}

[data-theme="dark"] .db-levels-table th,
[data-theme="dark"] .db-levels-table td {
  color: #ffffff;
}

[data-theme="dark"] .gw-how-body {
  background: var(--dash-dark-input, rgba(250, 250, 250, 0.1));
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .gw-rules-lead {
  color: #dddddd;
}

[data-theme="dark"] .ab-stat-card {
  background: none;
}

[data-theme="dark"] .ab-stat-card-bg--light {
  opacity: 0;
}

[data-theme="dark"] .ab-stat-card-bg--dark {
  opacity: 1;
}

[data-theme="dark"] .ab-stat-icon {
  background: rgba(250, 250, 250, 0.1);
  border-color: rgba(204, 204, 204, 0.16);
}

[data-theme="dark"] .ab-stat-icon img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .ab-stat-label,
[data-theme="dark"] .ab-stat-value,
[data-theme="dark"] .ab-stat-value--link {
  color: #ffffff;
}

[data-theme="dark"] .ab-payments-card {
  background: var(--dark-sec-bg, rgba(45, 45, 45, 0.43));
}

[data-theme="dark"] .no-alert--danger {
  background: rgba(157, 28, 28, 0.25);
  color: #fecaca;
  border-color: rgba(248, 180, 180, 0.4);
}

[data-theme="dark"] .no-alert--success {
  background: rgba(3, 84, 63, 0.3);
  color: #a7f3d0;
  border-color: rgba(132, 225, 188, 0.35);
}

/* ========== Sign Up (auth) ========== */
.su-body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  font-family: var(--font-body);
  color: var(--text-dark);
}

.su-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

.su-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-sizing: border-box;
}

.su-form-inner {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.su-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  height: 26px;
}

.su-logo-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.su-logo-text {
  height: 16px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.su-reviews {
  display: flex;
  align-items: center;
  gap: 15px;
}

.su-review {
  display: flex;
  align-items: center;
  gap: 5px;
}

.su-review-brand {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.su-review-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.su-review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.su-review-stars img,
.su-review-stars .hero-star-pop {
  width: 16px;
  height: 16px;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

/* Exact IconSMM hero-star-pop */
.hero-star-pop {
  animation: 2.4s ease-out infinite hero-star-pop;
}

@keyframes hero-star-pop {
  0% {
    transform: scale(0);
  }
  10% {
    transform: scale(1.1);
  }
  15%,
  85% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-star-pop,
  .su-review-stars img {
    animation: none !important;
    transform: none !important;
  }
}

.su-star-half-clip {
  clip-path: inset(0 40% 0 0);
}

.su-review-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #232323;
  white-space: nowrap;
}

.su-review-score--google {
  color: #ffa828;
}

.su-review-score--tp {
  color: #05c191;
}

.su-reviews-divider {
  width: 1px;
  height: 28px;
  border-radius: 100px;
  background: #5a5a5a;
  flex-shrink: 0;
}

.su-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 100%;
  max-width: 386px;
}

.su-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.56px;
  text-transform: capitalize;
  color: #202020;
}

.su-subtitle {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #2b2b22;
}

.su-tabs {
  display: flex;
  width: 100%;
  height: 56px;
  padding: 4px;
  box-sizing: border-box;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: #fff;
}

.su-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  box-sizing: border-box;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #202020;
  background: #fff;
}

.su-tab:hover,
.su-tab:focus,
.su-tab:focus-visible,
.su-tab:active {
  text-decoration: none;
  color: #202020;
  outline: none;
  box-shadow: none;
}

.su-tab img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0);
}

.su-tab--active {
  background: var(--gradient-brand);
  color: #fff;
  pointer-events: none;
}

.su-tab--active img {
  filter: brightness(0) invert(1);
}

.su-btn--primary img,
.su-btn-icon--light {
  filter: brightness(0) invert(1);
}

.su-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.su-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.su-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.su-field-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.su-field--half {
  flex: 1;
  min-width: 0;
}

.su-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #202020;
}

.su-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #e8e8e3;
  background: #f6f6f6;
}

.su-input-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.su-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #2b2b22;
  -webkit-text-fill-color: #2b2b22;
  box-shadow: none;
  caret-color: #2b2b22;
}

/* Keep placeholders visible on light auth fields (overrides dark-theme input::placeholder) */
.su-body .su-input::placeholder,
.su-body .su-input::-webkit-input-placeholder,
.su-body .su-input::-moz-placeholder,
.su-body .su-input:-ms-input-placeholder {
  color: #7a7a72 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #7a7a72 !important;
}

[data-theme="dark"] .su-body .su-input::placeholder,
[data-theme="dark"] .su-body .su-input::-webkit-input-placeholder,
[data-theme="dark"] .su-body .su-input::-moz-placeholder,
[data-theme="dark"] .su-body .su-input:-ms-input-placeholder {
  color: #7a7a72 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #7a7a72 !important;
}

.su-eye-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.su-eye-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.su-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.su-agree-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.su-agree-box {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid #e8e8e3;
  background: #f6f6f6;
  box-sizing: border-box;
}

.su-agree-input:checked + .su-agree-box {
  background: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}

.su-agree-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #2b2b22;
}

.su-agree-text a {
  font-weight: 500;
  text-decoration: none;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.su-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.su-remember {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.su-remember-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #2b2b22;
  white-space: nowrap;
}

.su-forgot {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
  white-space: nowrap;
  background: linear-gradient(113deg, #c8083d 2.35%, #ff345d 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.su-forgot:hover,
.su-forgot:focus,
.su-forgot:focus-visible,
.su-forgot:active {
  outline: none;
  box-shadow: none;
  text-decoration: underline;
}

.su-auth-text {
  width: 100%;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #2b2b22;
  text-align: center;
}

.su-captcha {
  width: 100%;
}

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

.su-actions-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.su-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}

.su-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.su-btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow:
    0 24.721px 32.257px 0 #eff0ff,
    0 2px 6px 0 #e7e8ff;
}

.su-btn--primary img {
  filter: brightness(0) invert(1);
}

.su-btn--full {
  width: 100%;
  flex: none;
}

.su-form-inner--reset {
  max-width: 460px;
}

.su-otp {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.su-otp-digit {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 64px;
  height: 56px;
  padding: 0;
  border: 1px solid #e8e8e3;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #202020;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.su-otp-digit::-webkit-outer-spin-button,
.su-otp-digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.su-otp-digit:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(96, 96, 171, 0.15);
}

.su-btn--google {
  gap: 8px;
  padding: 6px 16px;
  background: #f6f6f6;
  border: 1px solid #e8e8e3;
  color: #202020;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
}

.su-btn--google img {
  width: 18px;
  height: 18px;
  filter: none;
  flex-shrink: 0;
}

.su-google-wrap.su-btn,
.su-btn.su-google-wrap {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.su-google-wrap .g_id_signin {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
  opacity: 0.02;
  z-index: 2;
  overflow: hidden;
}

.su-google-wrap .g_id_signin > div,
.su-google-wrap .g_id_signin iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  max-height: 48px !important;
}

.su-google-fallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  white-space: nowrap;
}

.su-google-fallback img {
  width: 18px;
  height: 18px;
}

.su-signin-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px dashed #e8e8e3;
  background: #f3f3f3;
}

.su-signin-bar p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #2b2b22;
  text-align: center;
}

.su-signin-bar a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-position: from-font;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.su-alert {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.su-alert--error {
  background: rgba(220, 53, 69, 0.1);
  color: #b42318;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.su-alert--success {
  background: rgba(5, 193, 145, 0.12);
  color: #067647;
  border: 1px solid rgba(5, 193, 145, 0.3);
}

.su-visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 28px 12px;
  box-sizing: border-box;
  overflow: visible;
}

.su-visual {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 720 / 880;
  overflow: visible;
}

.su-visual-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Character sits at the bottom and may bleed past the purple sides */
.su-visual-media {
  position: absolute;
  left: 50%;
  bottom: 0;
  top: 6%;
  width: 132%;
  transform: translateX(-58%);
  z-index: 1;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.su-visual-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* Pin Back into the top-left notch of the purple frame */
.su-back {
  position: absolute;
  top: 10px;
  left: 4px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px 6px 6px;
  border-radius: 100px;
  border: 1px solid #9da8dc;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

.su-back-icon {
  width: 32px;
  height: 32px;
  display: block;
  transform: rotate(180deg);
}

.su-back span {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.su-quote {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  bottom: 6%;
  z-index: 3;
}

.su-quote .swiper-wrapper {
  align-items: stretch;
}

.su-quote-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
  color: #fff;
  width: 100%;
  min-height: 248px;
  height: 100%;
}

.su-quote-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
}

.su-quote-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.6px;
  min-height: calc(1.2em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.su-quote-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  min-height: calc(1.45em * 3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.su-quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  flex-shrink: 0;
}

.su-quote-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.su-quote-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.su-quote-role {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.su-quote-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.su-quote-stars {
  width: 108px;
  height: 20px;
  display: block;
  overflow: visible;
}

.su-quote-star {
  fill: #6060ab;
  transform-origin: center;
  transform-box: fill-box;
  animation: su-star-twinkle 1.8s ease-in-out infinite;
}

.su-quote-star:nth-child(1) {
  animation-delay: 0s;
}
.su-quote-star:nth-child(2) {
  animation-delay: 0.18s;
}
.su-quote-star:nth-child(3) {
  animation-delay: 0.36s;
}
.su-quote-star:nth-child(4) {
  animation-delay: 0.54s;
}
.su-quote-star:nth-child(5) {
  animation-delay: 0.72s;
}

@keyframes su-star-twinkle {
  0%,
  100% {
    opacity: 0.55;
    fill: #6060ab;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    fill: #9a9ae0;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .su-quote-star {
    animation: none;
    opacity: 1;
    fill: #6060ab;
    transform: none;
  }
}

.su-quote-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.su-quote-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.su-quote-btn img {
  width: 12px;
  height: 24px;
  display: block;
}

.su-quote-btn--prev {
  background: #fff;
}

.su-quote-btn--prev img {
  transform: scaleX(-1);
  filter: brightness(0) saturate(100%) invert(42%) sepia(18%) saturate(1234%)
    hue-rotate(209deg) brightness(92%) contrast(87%);
}

.su-quote-btn--next {
  background: var(--gradient-brand);
}

.su-quote-btn--next img {
  filter: brightness(0) invert(1);
}

.su-quote .swiper {
  width: 100%;
  overflow: hidden;
  /* Keep card border inside the clip edge (avoids missing right border) */
  padding: 1px;
  margin: -1px;
  box-sizing: content-box;
}

.su-quote .swiper-slide {
  height: auto;
  box-sizing: border-box;
  display: flex;
}

@media (max-width: 992px) {
  .su-page {
    grid-template-columns: 1fr;
  }

  .su-visual-col {
    display: none;
  }

  .su-quote-title {
    font-size: 26px;
  }

  .su-quote-body {
    font-size: 14px;
  }

  .su-quote-card {
    padding: 20px 22px;
    gap: 16px;
    border-radius: 24px;
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .su-form-col {
    padding: 24px 16px 40px;
  }

  .su-form-inner {
    gap: 24px;
  }

  .su-field-row {
    flex-direction: column;
  }

  .su-actions-row {
    flex-direction: column;
  }

  .su-google-wrap.su-btn,
  .su-btn.su-google-wrap {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }

  .su-reviews {
    flex-wrap: wrap;
    justify-content: center;
  }

  .su-title {
    font-size: 24px;
  }

  .su-quote-title {
    font-size: 22px;
  }

  .su-quote-card {
    min-height: 220px;
  }

  .su-quote-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .su-quote-aside {
    align-items: flex-start;
    width: 100%;
  }
}
