/* ==========================================================================
   GetMyFollow — Layout (sidebar + header)
   ========================================================================== */

:root {
  --gmf-orange: #ff7f00;
  --gmf-orange-dark: #532e17;
  --gmf-orange-50: rgba(255, 127, 0, 0.5);
  --gmf-orange-25: rgba(255, 127, 0, 0.25);
  --gmf-orange-15: rgba(255, 127, 0, 0.15);
  --gmf-orange-08: rgba(255, 127, 0, 0.08);
  --gmf-border: #8f542e;
  --dash-border-color: #8f542e;
  --gmf-text: #232323;
  --gmf-text-muted: #5a5a5a;
  --gmf-text-brown: #a1480b;
  --gmf-bg: #fffcf2;
  --gmf-content-bg: #ffe3c7;
  --gmf-cream: #fffaec;
  --gmf-dash-bg: #fff6ed;
  --gmf-neworder-field-bg: rgb(245, 234, 224);
  --gmf-white: #ffffff;
  --gmf-teal: #16a8b8;
  --gmf-teal-dark: #128a97;
  --gmf-giveaway-green: #16b364;
  --gmf-giveaway-teal: #16a8b8;
  --gmf-giveaway-cyan: #3dd6c8;
  --gmf-sidebar-width: 260px;
  --gmf-content-max-width: 1560px;
  --gmf-font-heading: 'Parkinsans', sans-serif;
  --gmf-font-body: 'Inter', sans-serif;
  --gmf-font-step-number: 'New Amsterdam', sans-serif;
  --gmf-icon-shadow: 0 2px 2px rgba(0, 0, 0, 0.12);
  --gmf-scrollbar-size: 6px;
  --gmf-scrollbar-track: transparent;
  --gmf-scrollbar-thumb: rgba(143, 84, 46, 0.35);
  --gmf-scrollbar-thumb-hover: rgba(255, 127, 0, 0.55);

  /* Sidebar toggle shine: short pause between sweeps (see gmf-shine-sweep keyframes) */
  --gmf-shine-degree: 115deg;
  --gmf-shine-color: rgba(255, 255, 255, 0.72);
  --gmf-shine-cycle: 2.2s;
  --gmf-select2-hover-bg: rgba(35, 35, 35, 0.14);
  --gmf-select2-id-badge-width: 40px;
  --gmf-select2-id-badge-height: 18px;
  --gmf-select2-id-badge-font-size: 10px;
  --gmf-select2-dropdown-bg: var(--gmf-neworder-field-bg);
  --gmf-select2-item-border: #d9d9d9;
}

.hidden {
  display: none !important;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--gmf-scrollbar-thumb) var(--gmf-scrollbar-track);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--gmf-scrollbar-thumb) var(--gmf-scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--gmf-scrollbar-size);
  height: var(--gmf-scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--gmf-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--gmf-scrollbar-thumb);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--gmf-scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body.app-body--dashboard a:focus,
body.app-body--dashboard a:focus-visible,
body.app-body--dashboard button:focus,
body.app-body--dashboard button:focus-visible,
body.app-body--dashboard .btn:focus,
body.app-body--dashboard .btn:focus-visible,
body.app-body--dashboard [role='button']:focus,
body.app-body--dashboard [role='button']:focus-visible,
body.app-body--dashboard [tabindex]:focus,
body.app-body--dashboard [tabindex]:focus-visible,
body.app-body--auth a:focus,
body.app-body--auth a:focus-visible,
body.app-body--auth button:focus,
body.app-body--auth button:focus-visible,
body.app-body--auth .btn:focus,
body.app-body--auth .btn:focus-visible,
body.app-body--auth [role='button']:focus,
body.app-body--auth [role='button']:focus-visible,
body.app-body--auth [type='button']:focus,
body.app-body--auth [type='button']:focus-visible,
body.app-body--auth [type='submit']:focus,
body.app-body--auth [type='submit']:focus-visible,
body.app-body--auth [tabindex]:focus,
body.app-body--auth [tabindex]:focus-visible {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

body.app-body--dashboard,
body.app-body--guest:not(.app-body--auth) {
  background-color: transparent;
  background-image: var(--body-bg-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.app-body--auth:not(.app-body--dashboard) {
  background-color: transparent;
  background-image: var(--auth-bg-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.app-body--dashboard {
  margin: 0;
  padding-bottom: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
}

body.theme-dark.app-body--dashboard,
body.theme-dark.app-body--guest:not(.app-body--auth) {
  background-color: transparent;
  background-image: var(--body-bg-image-dark);
}

body.theme-dark.app-body--auth:not(.app-body--dashboard) {
  background-color: transparent;
  background-image: var(--auth-bg-image);
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
}

.app-sidebar-overlay.is-visible {
  display: block;
}

.app-sidebar-edge-toggle {
  display: none;
  position: fixed;
  top: calc(var(--app-header-height, 68px) / 2);
  left: var(--gmf-sidebar-width);
  z-index: 1070;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--gmf-orange);
  border-radius: 8px;
  background: linear-gradient(104.27deg, #a1480b 14.36%, #ff7f00 91.55%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  overflow: hidden;
  transform: translate(-50%, -50%);
  transition:
    left 0.25s ease,
    transform 0.25s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.app-sidebar-edge-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    var(--gmf-shine-degree),
    transparent 0%,
    transparent 30%,
    var(--gmf-shine-color) 50%,
    transparent 70%,
    transparent 100%
  );
  pointer-events: none;
  animation: gmf-shine-sweep var(--gmf-shine-cycle) linear infinite;
}

@keyframes gmf-shine-sweep {
  0% {
    left: -120%;
  }

  52%,
  100% {
    left: 120%;
  }
}

.app-sidebar-edge-toggle:hover,
.app-sidebar-edge-toggle:focus {
  filter: brightness(1.06);
  outline: none;
}

.app-sidebar-edge-toggle__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* Sidebar */
.app-sidebar {
  width: var(--gmf-sidebar-width);
  flex-shrink: 0;
  background-color: transparent;
  background-image: none;
  border: 0;
  border-inline-end: 1px solid var(--gmf-border);
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1050;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.app-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.app-sidebar__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 28px 16px 40px;
}

.app-sidebar__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.app-sidebar__close {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0.2px solid var(--gmf-border);
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(161, 72, 11, 0.85) 0%,
    rgba(255, 127, 0, 0.9) 100%
  );
  box-shadow: 0 2px 8px rgba(143, 84, 46, 0.28);
  color: var(--gmf-white);
  cursor: pointer;
  transition:
    filter 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.app-sidebar__close:hover,
.app-sidebar__close:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(255, 127, 0, 0.35);
  outline: none;
}

.app-sidebar__close:active {
  transform: scale(0.96);
}

.app-sidebar__logo {
  display: flex;
  justify-content: center;
}

.app-sidebar__logo-img {
  max-width: 210px;
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* User card */
.app-sidebar__user-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(189, 155, 115, 0.25) 68.578%,
    rgba(255, 127, 0, 0.25) 90.693%
  );
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.app-sidebar__level-badge-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.app-sidebar__level-badge-btn:hover,
.app-sidebar__level-badge-btn:focus-visible {
  transform: scale(1.05);
  opacity: 0.92;
}

.app-sidebar__level-badge-btn:focus-visible {
  outline: 2px solid var(--gmf-orange);
  outline-offset: 2px;
}

.app-sidebar__level-badge {
  position: static;
  width: 40px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.app-sidebar__avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
}

.app-sidebar__avatar-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--gmf-orange);
  filter: blur(10px);
  opacity: 0.5;
}

.app-sidebar__avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gmf-border);
  object-fit: cover;
}

.app-sidebar__user-info {
  text-align: center;
}

.app-sidebar__user-name {
  margin: 0 0 5px;
  font-family: var(--gmf-font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--gmf-text-brown);
}

.app-sidebar__balance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.app-sidebar__balance {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 4px;
  background: linear-gradient(
    105deg,
    #ff7f00 0.64%,
    #cc5c02 50.34%,
    #ff7f00 100%
  );
  color: var(--gmf-white);
  font-family: var(--gmf-font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}

.app-sidebar__add-funds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 25px;
  border: 1px solid var(--gmf-border);
  border-radius: 4px;
  color: var(--gmf-border);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.app-sidebar__add-funds:hover {
  background: var(--gmf-orange-08);
  color: var(--gmf-orange);
  text-decoration: none;
}

/* Sidebar navigation */
.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.app-sidebar__nav-others {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.app-sidebar__group {
  width: 100%;
}

.app-sidebar__group-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-bottom: 12px;
}

.app-sidebar__group--expandable:not(.is-open) .app-sidebar__group-inner,
.app-sidebar__group--link .app-sidebar__group-inner {
  padding-bottom: 0;
  gap: 0;
}

.app-sidebar__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 6px;
  border: none;
  border-radius: 8px;
  background: #ff7f0080;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.app-sidebar__group-header--link.is-active .app-sidebar__group-title {
  color: var(--gmf-orange);
}

.app-sidebar__group-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-sidebar__group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 8px;
  border-radius: 6px;
  box-sizing: border-box;
}

.app-sidebar__group-icon--cream {
  background: var(--gmf-cream);
}

body.theme-dark .app-sidebar__group-icon img[src*='giveaway-orange.svg'] {
  filter: brightness(0) invert(1);
}

.app-sidebar__group-icon--white {
  background: var(--gmf-white);
}

.app-sidebar__group-title {
  font-family: var(--gmf-font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar__group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 6px;
  color: var(--gmf-orange);
  transition: transform 0.2s ease;
}

.app-sidebar__group-chevron img {
  display: block;
  width: 9px;
  height: 5px;
  object-fit: contain;
}

.app-sidebar__group-chevron--cream {
  background: var(--gmf-cream);
}

.app-sidebar__group-chevron--white {
  background: var(--gmf-white);
}

.app-sidebar__group.is-open .app-sidebar__group-chevron {
  transform: rotate(180deg);
}

.app-sidebar__group-chevron--right {
  transform: rotate(-90deg);
}

.app-sidebar__group.is-open .app-sidebar__group-chevron--right {
  transform: rotate(-90deg);
}

.app-sidebar__group-body {
  display: none;
  width: 100%;
}

.app-sidebar__group.is-open .app-sidebar__group-body {
  display: block;
}

/* Menu tree — Figma curved branch lines */
.app-sidebar__tree {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding-left: 13px;
  box-sizing: border-box;
}

.app-sidebar__tree-rail {
  position: relative;
  align-self: stretch;
  width: 14px;
  flex-shrink: 0;
  pointer-events: none;
}

.app-sidebar__tree-svg {
  display: block;
  width: 14px;
  height: 100%;
  overflow: visible;
}

.app-sidebar__tree-path {
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.app-sidebar__tree-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.app-sidebar__menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--gmf-text);
}

.app-sidebar__menu-item:hover {
  text-decoration: none;
}

.app-sidebar__menu-item:hover
  .app-sidebar__menu-label:not(.app-sidebar__menu-label--giveaway-aurora) {
  color: var(--gmf-orange);
}

.app-sidebar__menu-item:hover .app-sidebar__menu-label--giveaway-aurora,
.app-sidebar__menu-item.is-active .app-sidebar__menu-label--giveaway-aurora {
  color: transparent;
}

.app-sidebar__menu-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 6px;
  background: var(--gmf-cream);
  border-width: 0.2px;
  border-style: solid;
  border-color: var(--gmf-orange);
  box-shadow: var(--gmf-icon-shadow);
  box-sizing: border-box;
}

.app-sidebar__menu-icon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

body.app-body--dashboard:not(.theme-dark)
  .app-sidebar__menu-item:not(.is-active)
  .app-sidebar__menu-icon
  img:not(.app-sidebar__menu-icon-img--dual-tone) {
  filter: brightness(0) saturate(100%) invert(14%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(100%) contrast(100%);
}

body.app-body--dashboard:not(.theme-dark)
  .app-sidebar__menu-icon
  img.app-sidebar__menu-icon-img--dual-tone,
body.app-body--dashboard:not(.theme-dark)
  .app-sidebar__menu-icon
  img.app-sidebar__menu-icon-img--social {
  filter: none;
}

.app-sidebar__menu-item.is-active .app-sidebar__menu-icon {
  background: var(--gmf-orange);
  border-width: 0.2px;
  border-style: solid;
  border-color: var(--gmf-orange);
}

.app-sidebar__menu-item.is-active
  .app-sidebar__menu-icon
  img:not(.app-sidebar__menu-icon-img--tickets-active):not(
    [src*='tickets-active']
  ) {
  filter: brightness(0) invert(1);
}

.app-sidebar__menu-item.is-active
  .app-sidebar__menu-icon
  img.app-sidebar__menu-icon-img--dual-tone,
body.theme-dark
  .app-sidebar__menu-icon
  img.app-sidebar__menu-icon-img--dual-tone,
.app-sidebar__menu-icon img.app-sidebar__menu-icon-img--tickets-active,
.app-sidebar__menu-icon img[src*='tickets-active'],
.app-header__page-icon > img.app-sidebar__menu-icon-img--tickets-active,
.app-header__page-icon > img[src*='tickets-active'] {
  filter: none;
}

.app-sidebar__menu-label {
  flex: 1;
  min-width: 0;
  font-family: var(--gmf-font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--gmf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar__menu-item.is-active
  .app-sidebar__menu-label:not(.app-sidebar__menu-label--giveaway-aurora) {
  color: var(--gmf-orange);
  font-weight: 600;
}

.app-sidebar__menu-label--giveaway-aurora {
  display: inline-block;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  font-weight: 600;
  background-image: linear-gradient(
    to right,
    var(--gmf-giveaway-green) 0%,
    var(--gmf-giveaway-green) 12%,
    var(--gmf-giveaway-teal) 28%,
    var(--gmf-giveaway-cyan) 38%,
    var(--gmf-giveaway-teal) 48%,
    var(--gmf-giveaway-green) 50%,
    var(--gmf-giveaway-green) 62%,
    var(--gmf-giveaway-teal) 78%,
    var(--gmf-giveaway-cyan) 88%,
    var(--gmf-giveaway-teal) 98%,
    var(--gmf-giveaway-green) 100%
  );
  background-size: 200% auto;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: app-sidebar-giveaway-shine 4s linear infinite;
}

.app-sidebar__menu-item.is-active .app-sidebar__menu-label--giveaway-aurora,
body.theme-dark
  .app-sidebar__menu-item.is-active
  .app-sidebar__menu-label--giveaway-aurora {
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@keyframes app-sidebar-giveaway-shine {
  0% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

body.theme-dark .app-sidebar__menu-label--giveaway-aurora {
  background-image: linear-gradient(
    to right,
    #34d399 0%,
    #34d399 12%,
    var(--gmf-teal) 28%,
    #5eead4 38%,
    var(--gmf-teal) 48%,
    #34d399 50%,
    #34d399 62%,
    var(--gmf-teal) 78%,
    #5eead4 88%,
    var(--gmf-teal) 98%,
    #34d399 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar__menu-label--giveaway-aurora {
    animation: none;
    background-image: linear-gradient(
      to right,
      var(--gmf-giveaway-green),
      var(--gmf-giveaway-cyan)
    );
    background-size: 100% auto;
    background-position: 0% center;
  }

  body.theme-dark .app-sidebar__menu-label--giveaway-aurora {
    background-image: linear-gradient(to right, #34d399, #5eead4);
  }
}

/* Logout */
.app-sidebar__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 24px;
  margin-top: 24px;
  border-radius: 8px;
  background: var(--gmf-orange-50);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--gmf-text);
  transition: background 0.2s;
}

.app-sidebar__logout:hover {
  background: rgba(255, 127, 0, 0.65);
  text-decoration: none;
  color: var(--gmf-text);
}

.app-sidebar__logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 8px;
  border-radius: 8px;
  background: var(--gmf-white);
  box-sizing: border-box;
}

.app-sidebar__logout-icon img {
  display: block;
  width: 16px;
  height: 16px;
}

.app-sidebar__icon--dark,
.app-sidebar__logout-icon img.app-sidebar__icon--dark,
.app-sidebar__menu-icon img.app-sidebar__icon--dark {
  display: none;
}

.app-sidebar__logout-label {
  font-family: var(--gmf-font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

/* Main area */
.app-main {
  flex: 1;
  margin-left: var(--gmf-sidebar-width);
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--app-header-height, 68px);
  padding: 20px 40px;
  background: var(--gmf-bg);
  border-bottom: 1px solid var(--gmf-border);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  transition: padding 0.25s ease;
}

.app-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--gmf-orange);
  border-radius: 8px;
  background: #ff7f00;
  color: var(--gmf-white);
  cursor: pointer;
  box-sizing: border-box;
}

.app-header__logo {
  display: none;
  align-items: center;
  flex-shrink: 0;
}

.app-header__logo-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.app-header__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-header__page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 8px;
  border-radius: 6px;
  background-color: var(--gmf-orange);
  border: 0.2px solid var(--gmf-orange);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12);
  color: var(--gmf-white);
  flex-shrink: 0;
  box-sizing: border-box;
}

.app-header__page-icon > img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.app-header__page-icon
  > img:not(.app-sidebar__menu-icon-img--dual-tone):not(
    .app-sidebar__menu-icon-img--tickets-active
  ) {
  filter: brightness(0) invert(1);
}

.app-header__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: var(--gmf-text);
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 32px;
}

.app-header__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.app-header__theme-track {
  display: block;
  position: relative;
  width: 62px;
  height: 32px;
  border: 1px solid var(--gmf-border);
  border-radius: 100px;
  background-color: var(--gmf-white);
  background-image: var(--theme-toggle-bg-light);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  box-sizing: border-box;
  transition: background-image 0.2s ease;
}

body.theme-dark .app-header__theme-track {
  background-color: var(--gmf-white);
  background-image: var(--theme-toggle-bg-dark);
}

.app-header__theme-thumb {
  position: absolute;
  left: 1px;
  top: 1px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: #8f542e;
  box-sizing: border-box;
  transition:
    left 0.2s ease,
    background 0.2s ease;
}

body.theme-dark .app-header__theme-thumb {
  left: 31px;
  background: var(--gmf-white);
}

.app-header__theme-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.app-header__theme-icon--moon {
  display: none;
}

body.theme-dark .app-header__theme-icon--sun {
  display: none;
}

body.theme-dark .app-header__theme-icon--moon {
  display: block;
}

.app-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--gmf-border);
  border-radius: 100px;
  background: transparent;
  box-sizing: border-box;
  text-decoration: none;
}

.app-header__icon-btn img {
  display: block;
  width: 20px;
  height: 20px;
}

.app-header__icon--dark,
.app-header__icon-btn img.app-header__icon--dark {
  display: none;
}

.app-header__icon-btn:hover {
  background: var(--gmf-orange-08);
  text-decoration: none;
}

.app-header__currency-btn,
.app-header__account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  max-height: 32px;
  min-height: 32px;
  padding: 0 6px;
  border: 1px solid var(--gmf-border);
  border-radius: 100px;
  background: transparent;
  color: var(--gmf-border);
  font-family: var(--gmf-font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
}

.app-header__currency-btn img,
.app-header__account-btn img {
  display: block;
  flex-shrink: 0;
}

.app-header__currency-btn .app-header__icon--light,
.app-header__currency-btn .app-header__icon--dark,
.app-header__account-btn .app-header__chevron {
  width: 16px;
  height: 16px;
}

.app-header__currency-btn .app-header__icon--dark,
.app-header__account-btn .app-header__chevron.app-header__icon--dark {
  display: none;
}

body.theme-dark .app-header__currency-btn .app-header__icon--light,
body.theme-dark
  .app-header__account-btn
  .app-header__chevron.app-header__icon--light {
  display: none;
}

body.theme-dark .app-header__currency-btn .app-header__icon--dark,
body.theme-dark
  .app-header__account-btn
  .app-header__chevron.app-header__icon--dark {
  display: block;
}

.app-header__currency-btn.dropdown-toggle::after,
.app-header__account-btn.dropdown-toggle::after,
.services-toolbar__btn--currency.dropdown-toggle::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  vertical-align: unset;
}

.app-header__currency-btn iconify-icon {
  color: var(--gmf-border);
}

.app-header__currency {
  position: relative;
}

.app-currency-flag {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.app-currency-flag--menu {
  width: 18px;
  height: 18px;
}

.app-header__currency .dropdown-menu > li > a,
.services-toolbar__currency .dropdown-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-toolbar__btn--currency:has([data-currency-flag])
  .services-toolbar__btn-icon--currency-fallback {
  display: none;
}

.app-header__currency-label {
  white-space: nowrap;
}

.dropdown-currencies.is-loading > .dropdown-toggle {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.65;
}

.app-header__currency.open > .dropdown-menu,
.app-header__account.open > .dropdown-menu,
.services-toolbar__currency.open > .dropdown-menu,
.dropdown.open > .dropdown-menu,
.app-header__currency .dropdown-menu.show,
.app-header__account .dropdown-menu.show {
  display: block;
}

.app-header__currency .dropdown-menu,
.services-toolbar__currency .dropdown-menu {
  z-index: 1060;
  min-width: 140px;
  max-width: calc(100vw - 24px);
  max-height: min(320px, calc(100dvh - 96px));
  padding: 8px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  margin-top: 8px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  right: 0;
  left: auto;
}

.app-header__currency .dropdown-menu > li > a,
.services-toolbar__currency .dropdown-menu > li > a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--gmf-border);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.app-header__currency .dropdown-menu > li > a:hover,
.app-header__currency .dropdown-menu > li > a:focus,
.app-header__currency .dropdown-menu > .active > a,
.services-toolbar__currency .dropdown-menu > li > a:hover,
.services-toolbar__currency .dropdown-menu > li > a:focus,
.services-toolbar__currency .dropdown-menu > .active > a {
  background: var(--gmf-orange-08);
  color: var(--gmf-border);
}

.app-header__currency-btn:focus,
.app-header__account-btn:focus {
  outline: none;
}

.app-header__account-btn {
  padding: 2px 6px 2px 2px;
}

.app-header__currency-btn .app-currency-flag {
  width: 18px;
  height: 18px;
}

.app-header__account-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 100px;
  background: var(--gmf-border);
  overflow: hidden;
  flex-shrink: 0;
}

.app-header__account-avatar {
  display: block;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 100px;
  object-fit: cover;
}

.app-header__balance-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gmf-border);
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  color: var(--gmf-border);
}

.app-header__account {
  position: relative;
}

/* Account menu — Figma 7599:25911 */
.app-header__account .dropdown-menu,
.app-header__account-menu {
  z-index: 1060;
  width: max-content;
  min-width: 200px;
  max-width: calc(100vw - 24px);
  padding: 0;
  margin: 8px 0 0;
  border: 1px solid #8f542e;
  border-radius: 12px;
  background: #fff6ed;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.32);
  list-style: none;
  overflow: hidden;
  right: 0;
  left: auto;
}

.app-header__account-menu__item {
  margin: 0;
  border-bottom: 1px solid #8f542e;
}

.app-header__account-menu__item--logout,
.app-header__account-menu__item:last-child {
  border-bottom: none;
}

.app-header__account
  .app-header__account-menu
  > .app-header__account-menu__item
  > .app-header__account-menu__link {
  display: flex !important;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 20px;
  color: #232323;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  clear: none;
}

.app-header__account-menu__label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.app-header__account-menu__link:hover,
.app-header__account-menu__link:focus {
  background: rgba(143, 84, 46, 0.06);
  color: #232323;
  text-decoration: none;
}

.app-header__account-menu__avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 100px;
  background: var(--gmf-border);
  flex-shrink: 0;
  overflow: hidden;
}

.app-header__account-menu__avatar {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 100px;
  object-fit: cover;
}

.app-header__account-menu__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: inherit;
}

.app-header__account-menu__icon iconify-icon {
  display: block;
  width: 20px;
  height: 20px;
  color: inherit;
}

.app-header__account-menu__icon img {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.app-header__account-menu__icon .app-header__account-menu__icon-img--light {
  display: block;
}

.app-header__account-menu__icon .app-header__account-menu__icon-img--dark {
  display: none;
}

.app-header__account-menu__link--logout,
.app-header__account-menu__link--logout .app-header__account-menu__label {
  color: #fb4f4f;
}

.app-header__account-menu__link--logout .app-header__account-menu__icon {
  color: #fb4f4f;
}

.app-header__account-menu__link--logout:hover,
.app-header__account-menu__link--logout:focus {
  background: rgba(251, 79, 79, 0.1);
  color: #fb4f4f;
}

/* Header — dark mode (Figma 5351:17911) */
body.theme-dark .app-header {
  background: var(--app-header-bg-dark, #171415);
  border-bottom-color: var(--gmf-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

body.theme-dark .app-header__title {
  color: var(--gmf-white);
}

body.theme-dark .app-header__page-icon {
  background-color: #3e3638;
  border: 0.2px solid var(--gmf-border);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  color: #d2d2d2;
}

body.theme-dark
  .app-header__page-icon
  > img:not(.app-sidebar__menu-icon-img--dual-tone):not(
    .app-sidebar__menu-icon-img--tickets-active
  ) {
  filter: brightness(0) invert(1);
}

body.theme-dark
  .app-header__page-icon
  > img.app-sidebar__menu-icon-img--dual-tone {
  filter: none;
}

body.theme-dark .app-header__menu-btn {
  background: #ff7f00;
  border-color: #ff7f00;
  color: var(--gmf-white);
}

body.theme-dark .app-header__icon-btn {
  border-color: var(--gmf-border);
  background: transparent;
}

body.theme-dark .app-header__icon-btn:hover {
  background: rgba(255, 127, 0, 0.12);
}

body.theme-dark .app-header__icon--light,
body.theme-dark .app-header__icon-btn img.app-header__icon--light {
  display: none;
}

body.theme-dark .app-header__icon--dark,
body.theme-dark .app-header__icon-btn img.app-header__icon--dark {
  display: block;
}

body.theme-dark .app-header__currency-btn,
body.theme-dark .app-header__account-btn {
  border-color: var(--gmf-border);
  color: #d2d2d2;
  background: transparent;
}

body.theme-dark .app-header__currency-btn iconify-icon {
  color: #d2d2d2;
}

body.theme-dark .app-header__currency-btn:hover,
body.theme-dark .app-header__account-btn:hover {
  background: rgba(255, 127, 0, 0.12);
  color: #d2d2d2;
}

body.theme-dark .app-header__account-avatar-wrap {
  background: var(--gmf-border);
}

body.theme-dark .app-header__balance-pill {
  border-color: var(--gmf-border);
  color: #d2d2d2;
}

body.theme-dark .app-header__currency .dropdown-menu,
body.theme-dark .services-toolbar__currency .dropdown-menu {
  background: #2a2526;
  border-color: var(--gmf-border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

body.theme-dark .app-header__currency .dropdown-menu > li > a,
body.theme-dark .services-toolbar__currency .dropdown-menu > li > a {
  color: #d2d2d2;
}

body.theme-dark .app-header__currency .dropdown-menu > li > a:hover,
body.theme-dark .app-header__currency .dropdown-menu > li > a:focus,
body.theme-dark .app-header__currency .dropdown-menu > .active > a,
body.theme-dark .services-toolbar__currency .dropdown-menu > li > a:hover,
body.theme-dark .services-toolbar__currency .dropdown-menu > li > a:focus,
body.theme-dark .services-toolbar__currency .dropdown-menu > .active > a {
  background: rgba(255, 127, 0, 0.12);
  color: #ffffff;
}

/* Account menu — dark mode (matches header currency dropdown) */
body.theme-dark .app-header__account .dropdown-menu,
body.theme-dark .app-header__account-menu {
  background: #2a2526 !important;
  border-color: var(--gmf-border) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28) !important;
}

body.theme-dark .app-header__account-menu__item {
  border-bottom-color: var(--gmf-border);
}

body.theme-dark
  .app-header__account
  .app-header__account-menu
  > .app-header__account-menu__item
  > .app-header__account-menu__link {
  color: #d2d2d2 !important;
}

body.theme-dark .app-header__account-menu__link:hover,
body.theme-dark .app-header__account-menu__link:focus {
  background: rgba(255, 127, 0, 0.12);
  color: #ffffff !important;
}

body.theme-dark
  .app-header__account-menu__icon
  .app-header__account-menu__icon-img--light {
  display: none;
}

body.theme-dark
  .app-header__account-menu__icon
  .app-header__account-menu__icon-img--dark {
  display: block;
}

body.theme-dark .app-header__account-menu__link--logout,
body.theme-dark
  .app-header__account-menu__link--logout
  .app-header__account-menu__label {
  color: #fb4f4f !important;
}

body.theme-dark .app-header__account-menu__link--logout:hover,
body.theme-dark .app-header__account-menu__link--logout:focus {
  background: rgba(251, 79, 79, 0.12);
  color: #fb4f4f !important;
}

/* ==========================================================================
   Dashboard dark mode — layout + neworder (Figma 5329:49318)
   Light mode tokens/layout remain unchanged.
   ========================================================================== */
body.theme-dark {
  --gmf-bg: #1d1717;
  --gmf-content-bg: #0c0909;
  --gmf-dash-bg: #151515;
  --gmf-cream: #292425;
  --gmf-text: #ffffff;
  --gmf-text-muted: #d2d2d2;
  --gmf-text-brown: #ff7f00;
  --gmf-scrollbar-thumb: rgba(255, 127, 0, 0.35);
  --gmf-scrollbar-thumb-hover: rgba(255, 127, 0, 0.55);
  --gmf-select2-hover-bg: rgba(255, 255, 255, 0.16);
  --gmf-select2-dropdown-bg: #1d1717;
  --gmf-select2-item-border: rgba(255, 255, 255, 0.14);
  background-color: transparent;
}

body.theme-dark.app-body--dashboard {
  color: #d2d2d2;
}

body.theme-dark .app-main {
  background: transparent;
}

body.theme-dark .app-content {
  position: relative;
  isolation: isolate;
  background-color: transparent;
  background-image: none;
}

body.theme-dark.app-body--dashboard .app-content {
  position: relative;
  z-index: 1;
}

body.theme-dark .app-sidebar {
  background-color: transparent;
  background-image: none;
  border: 0;
  border-inline-end: 1px solid var(--gmf-border);
  box-shadow: none;
}

body.theme-dark .app-sidebar__user-name {
  color: var(--gmf-orange);
}

body.theme-dark .app-sidebar__add-funds {
  border-color: #ff7f00;
  color: #ff7f00;
}

body.theme-dark .app-sidebar__add-funds:hover {
  background: rgba(255, 127, 0, 0.12);
  color: #ff7f00;
}

body.theme-dark .app-sidebar__close {
  border-color: var(--gmf-border);
  background: linear-gradient(
    135deg,
    rgba(161, 72, 11, 0.95) 0%,
    rgba(255, 127, 0, 0.85) 100%
  );
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

body.theme-dark .app-sidebar__logout-icon {
  background: #292425;
}

body.theme-dark .app-sidebar__icon--light,
body.theme-dark .app-sidebar__logout-icon img.app-sidebar__icon--light,
body.theme-dark .app-sidebar__menu-icon img.app-sidebar__icon--light {
  display: none;
}

body.theme-dark .app-sidebar__icon--dark,
body.theme-dark .app-sidebar__logout-icon img.app-sidebar__icon--dark,
body.theme-dark .app-sidebar__menu-icon img.app-sidebar__icon--dark {
  display: block;
}

body.theme-dark .app-sidebar__menu-icon {
  background: #3e3638;
  border-width: 0.2px;
  border-style: solid;
  border-color: var(--gmf-border);
}

body.theme-dark
  .app-sidebar__menu-icon
  img:not(.app-sidebar__menu-icon-img--dual-tone):not(
    .app-sidebar__menu-icon-img--tickets-active
  ):not([src*='tickets-active']) {
  filter: brightness(0) invert(1);
}

body.theme-dark .app-sidebar__menu-icon img.app-sidebar__menu-icon-img--social {
  filter: brightness(0) invert(1);
}

body.theme-dark .app-sidebar__menu-item.is-active .app-sidebar__menu-icon {
  background: var(--gmf-orange);
  border-width: 0.2px;
  border-style: solid;
  border-color: var(--gmf-orange);
}

body.theme-dark
  .app-sidebar__menu-item.is-active
  .app-sidebar__menu-label:not(.app-sidebar__menu-label--giveaway-aurora) {
  color: var(--gmf-orange);
}

body.theme-dark
  .app-sidebar__menu-label:not(.app-sidebar__menu-label--giveaway-aurora) {
  color: #ffffff;
}

body.theme-dark .app-sidebar__group-header {
  background: linear-gradient(
    91.55deg,
    rgba(255, 127, 0, 0.6) 17.44%,
    rgba(161, 72, 11, 0.6) 100%
  );
}

body.theme-dark .app-sidebar__group-icon--cream,
body.theme-dark .app-sidebar__group-chevron--cream {
  background: #292425;
}

body.theme-dark .app-sidebar__group-icon img,
body.theme-dark .app-sidebar__group-chevron img {
  filter: brightness(0) invert(1);
}

body.theme-dark .app-sidebar__group-title {
  color: #ffffff;
}

body.theme-dark .app-sidebar__tree-path {
  stroke: rgba(210, 210, 210, 0.45);
}

/* New Order — dark */
body.theme-dark .page-hero__subtitle {
  color: #d2d2d2;
}

body.theme-dark .neworder-page .neworder-stat,
body.theme-dark article.neworder-stat {
  background: #151515 !important;
  background-color: #151515 !important;
  border-color: var(--gmf-border);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

body.theme-dark .neworder-stat__icon {
  background: #1d1717 !important;
  background-color: #1d1717 !important;
  border-color: var(--gmf-border);
}

body.theme-dark .neworder-stat__value {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--gmf-orange);
}

body.theme-dark .neworder-stat__label {
  color: #d2d2d2;
}

body.theme-dark .neworder-platform {
  background: #151515;
  border-color: var(--gmf-border);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.theme-dark .neworder-platform:hover {
  border-color: var(--gmf-orange);
  color: #ffffff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.24);
}

body.theme-dark .neworder-platform.is-active {
  border: none;
  background: linear-gradient(95deg, #461d04 1%, #ff7f00 89%);
  color: #ffffff;
}

body.theme-dark .neworder-panel {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .neworder-form,
body.theme-dark #order-form,
body.theme-dark .neworder-details__body {
  background: #1d1717 !important;
  background-color: #1d1717 !important;
}

body.theme-dark .neworder-tab {
  background: #1d1717;
  border-color: var(--gmf-orange);
  color: #ffffff;
}

body.theme-dark .neworder-tab:hover,
body.theme-dark .neworder-tab:focus {
  color: #ffffff;
}

body.theme-dark .neworder-tab.is-active {
  background: #1d1717;
  border-color: var(--gmf-orange);
  color: #ffffff;
}

body.theme-dark .neworder-tab .neworder-tab__icon,
body.theme-dark .neworder-tab.is-active .neworder-tab__icon {
  filter: brightness(0) invert(1);
}

body.theme-dark .neworder-form .control-label,
body.theme-dark .neworder-form label.control-label {
  color: #d2d2d2;
}

body.theme-dark .neworder-form .form-control,
body.theme-dark
  .neworder-form
  .select2-container--default
  .select2-selection--single {
  background: #1a1a1a !important;
  border-color: var(--gmf-border) !important;
  color: #d2d2d2 !important;
}

body.theme-dark
  .neworder-form
  .select2-container--default:not(.search-dropdown)
  .select2-selection--single
  .select2-selection__rendered {
  color: #d2d2d2 !important;
}

body.theme-dark
  .neworder-form
  .select2-container--default:not(.search-dropdown)
  .select2-selection--single
  .select2-selection__arrow
  b {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

body.theme-dark .neworder-form .help-block,
body.theme-dark .neworder-form #fields .help-block {
  color: #d2d2d2;
}

body.theme-dark .neworder-detail-card {
  background: #1a1a1a;
  border-color: var(--gmf-border);
}

body.theme-dark .neworder-detail-card__label,
body.theme-dark .neworder-detail-card__value,
body.theme-dark .neworder-detail-card__desc,
body.theme-dark .neworder-detail-card__placeholder {
  color: #d2d2d2;
}

body.theme-dark .neworder-search .select2-dropdown,
body.theme-dark .neworder-search .select2-dropdown.dropdown-menu,
body.theme-dark .select2-container--open .select2-dropdown,
body.theme-dark span.select2-dropdown,
body.theme-dark span.select2-dropdown.dropdown-menu {
  background: var(--gmf-select2-dropdown-bg) !important;
  border-color: var(--gmf-border) !important;
  color: #ffffff !important;
}

body.theme-dark .neworder-search .select2-results__option,
body.theme-dark .select2-results__option,
body.theme-dark .select2-container--open .select2-results__option,
body.theme-dark .select2-dropdown .select2-results__option,
body.theme-dark .select2-results__option > a,
body.theme-dark .select2-results__option .select2-result-label,
body.theme-dark .select2-results__option .dropdown-item {
  color: #ffffff !important;
}

/* Content */
.app-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
  padding: 24px 40px 40px;
  background: transparent;
  box-sizing: border-box;
}

body.app-body--dashboard .app-content {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  align-items: center;
}

body.app-body--dashboard .app-content__container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--gmf-content-max-width);
  margin-inline: auto;
  min-width: 0;
  box-sizing: border-box;
  transition: max-width 0.25s ease;
}

body.app-body--dashboard .app-content__container > * {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

body.app-body--dashboard .app-content > .container,
body.app-body--dashboard .app-content > .container-fluid {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.app-content--guest {
  padding-top: 0;
}

.app-content--auth {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  max-height: 100%;
  padding-block-start: 0;
  padding-block-end: max(24px, env(safe-area-inset-bottom, 0px));
  padding-inline: 24px;
  padding-inline-start: max(24px, env(safe-area-inset-left, 0px));
  padding-inline-end: max(24px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  background: transparent;
  box-sizing: border-box;
}

/* Guest navigation */
body.app-body--guest {
  margin: 0;
  font-family: var(--gmf-font-body);
}

html:has(body.app-body--auth) {
  height: 100%;
  overflow: hidden;
}

body.app-body--auth {
  --auth-back-top: max(32px, env(safe-area-inset-top, 0px));
  --auth-back-chip-height: 46px;
  --auth-back-gap: 16px;
  --auth-content-offset-top: calc(
    var(--auth-back-top) + var(--auth-back-chip-height) + var(--auth-back-gap)
  );
  --auth-back-inline-size: 7.5rem;
  --auth-back-inline-offset: 40px;
  --auth-back-inline-clearance: 1rem;
  --auth-back-inline-reserve: calc(
    var(--auth-back-inline-offset) + var(--auth-back-inline-size) +
      var(--auth-back-inline-clearance)
  );
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.app-body--auth > main.app-content--auth {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.auth-back-home {
  position: fixed;
  top: var(--auth-back-top, max(32px, env(safe-area-inset-top, 0px)));
  right: 40px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px 6px 6px;
  border: 1px solid var(--gmf-orange);
  border-radius: 100px;
  background: var(--gmf-dash-bg);
  color: var(--gmf-orange);
  font-family: var(--gmf-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: filter 0.2s ease;
}

.auth-back-home:hover,
.auth-back-home:focus {
  color: var(--gmf-orange);
  text-decoration: none;
  filter: brightness(1.03);
}

.auth-back-home__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gmf-orange);
}

.auth-back-home__icon {
  display: block;
  width: 7px;
  height: 12px;
  flex-shrink: 0;
}

.auth-back-home__text {
  display: block;
}

.rtl .auth-back-home {
  right: auto;
  left: 40px;
  padding: 6px 6px 6px 20px;
  flex-direction: row-reverse;
}

.guest-nav {
  background: var(--gmf-bg);
  border-bottom: 1px solid var(--gmf-border);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}

.guest-nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.guest-nav__brand img {
  height: 36px;
  width: auto;
}

.guest-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--gmf-border);
  border-radius: 8px;
  background: var(--gmf-white);
  cursor: pointer;
}

.guest-nav__toggle-bar {
  display: block;
  height: 2px;
  background: var(--gmf-text);
  border-radius: 1px;
}

.guest-nav__collapse {
  width: 100%;
}

.guest-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-nav__menu--right {
  margin-left: auto;
}

.guest-nav__menu li a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--gmf-text);
  text-decoration: none;
  font-weight: 500;
}

.guest-nav__menu li.active a,
.guest-nav__menu li a:hover {
  background: var(--gmf-orange-08);
  color: var(--gmf-orange);
}

/* Iconify alignment */
iconify-icon {
  display: inline-flex;
  vertical-align: middle;
}

@media (min-width: 992px) {
  .app-sidebar-edge-toggle {
    display: inline-flex;
  }

  .app-sidebar {
    transition: transform 0.25s ease;
  }

  .app-main {
    transition: margin 0.25s ease;
    overflow-x: visible;
  }

  .app-layout.is-sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
  }

  .app-layout.is-sidebar-collapsed .app-main {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .app-layout.is-sidebar-collapsed .app-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .app-layout.is-sidebar-collapsed .app-content__container {
    width: 100%;
    max-width: min(
      100%,
      calc(var(--gmf-content-max-width) + var(--gmf-sidebar-width))
    );
    margin-inline: auto;
  }

  .app-layout.is-sidebar-collapsed .app-header {
    padding-left: 56px;
  }

  .app-layout.is-sidebar-collapsed .app-sidebar-edge-toggle {
    left: 12px;
    transform: translateY(-50%);
  }

  .rtl .app-sidebar-edge-toggle {
    right: var(--gmf-sidebar-width);
    left: auto;
    transform: translate(50%, -50%);
  }

  .rtl .app-layout.is-sidebar-collapsed .app-sidebar-edge-toggle {
    right: 12px;
    left: auto;
    transform: translateY(-50%);
  }

  .app-layout.is-sidebar-collapsed .app-sidebar-edge-toggle__icon {
    transform: rotate(180deg);
  }

  .rtl .app-layout.is-sidebar-collapsed .app-header {
    padding-right: 56px;
    padding-left: 40px;
  }

  .rtl .app-layout.is-sidebar-collapsed .app-sidebar {
    transform: translateX(100%);
  }

  .rtl .app-layout.is-sidebar-collapsed .app-main {
    margin-right: 0;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    background-color: var(--gmf-white);
    background-image: var(--sidebar-bg-image);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }

  body.theme-dark .app-sidebar {
    background-color: #1d1717;
    background-image: var(--sidebar-bg-image-dark);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .app-sidebar__brand {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .app-sidebar__logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  .app-sidebar__logo-img {
    max-width: 200px;
    height: 34px;
  }

  .app-sidebar__close {
    display: inline-flex;
    width: 26px;
    height: 26px;
    box-shadow: 0 1px 4px rgba(143, 84, 46, 0.22);
  }

  .rtl .app-sidebar__brand {
    flex-direction: row-reverse;
  }

  /* Sidebar — slight mobile scale-down (readable, not cramped) */
  .app-sidebar__inner {
    padding: 22px 14px 28px;
  }

  .app-sidebar__top {
    gap: 24px;
  }

  .app-sidebar__user-card {
    padding: 14px 12px;
  }

  .app-sidebar__level-badge {
    width: 36px;
  }

  .app-sidebar__avatar-wrap,
  .app-sidebar__avatar {
    width: 50px;
    height: 50px;
  }

  .app-sidebar__user-name {
    font-size: 15px;
  }

  .app-sidebar__balance {
    font-size: 13px;
  }

  .app-sidebar__nav,
  .app-sidebar__nav-others {
    gap: 10px;
  }

  .app-sidebar__group-inner {
    gap: 10px;
    padding-bottom: 10px;
  }

  .app-sidebar__group-header {
    min-height: 36px;
    padding: 5px;
  }

  .app-sidebar__group-left {
    gap: 10px;
  }

  .app-sidebar__group-icon,
  .app-sidebar__group-chevron {
    width: 26px;
    height: 26px;
    padding: 6px;
  }

  .app-sidebar__group-title {
    font-size: 13px;
  }

  .app-sidebar__tree-items {
    gap: 7px;
  }

  .app-sidebar__menu-item {
    gap: 10px;
  }

  .app-sidebar__menu-icon {
    width: 30px;
    height: 30px;
    padding: 7px;
  }

  .app-sidebar__menu-icon img {
    width: 15px;
    height: 15px;
  }

  .app-sidebar__menu-label {
    font-size: 15px;
    line-height: 1.45;
  }

  .app-sidebar__logout {
    min-height: 40px;
    margin-top: 18px;
    padding: 7px 20px;
  }

  .app-sidebar__logout-icon {
    width: 26px;
    height: 26px;
    padding: 6px;
  }

  .app-sidebar__logout-icon img {
    width: 15px;
    height: 15px;
  }

  .app-sidebar__logout-label {
    font-size: 15px;
  }

  .app-main {
    margin-left: 0;
  }

  .app-sidebar-edge-toggle {
    display: inline-flex;
    top: calc(var(--app-header-height, 56px) / 2);
    left: 14px;
    transform: translateY(-50%);
  }

  .app-sidebar.is-open + .app-sidebar-edge-toggle {
    display: none;
  }

  .app-sidebar-edge-toggle .app-sidebar-edge-toggle__icon {
    transform: rotate(180deg);
  }

  .rtl .app-sidebar-edge-toggle {
    right: 14px;
    left: auto;
    transform: translateY(-50%);
  }

  .rtl .app-sidebar-edge-toggle .app-sidebar-edge-toggle__icon {
    transform: rotate(0deg);
  }

  .app-header__logo {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .app-header__logo-img {
    height: 36px;
    max-width: min(180px, 100%);
  }

  .app-header__title-wrap {
    display: none;
  }

  .app-header__icon-btn {
    display: none;
  }

  .app-header {
    --app-header-height: 60px;
    gap: 8px;
    min-height: var(--app-header-height);
    padding: 12px 16px;
  }

  .app-header__left {
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    padding-inline-start: 42px;
  }

  .app-header__right {
    gap: 8px;
    flex-shrink: 0;
    min-height: 30px;
  }

  .app-header__theme-toggle {
    display: block;
    flex-shrink: 0;
    height: 30px;
  }

  .app-header__theme-track {
    width: 56px;
    height: 30px;
  }

  .app-header__theme-thumb {
    width: 24px;
    height: 24px;
  }

  body.theme-dark .app-header__theme-thumb {
    left: 30px;
  }

  .app-header__theme-icon {
    width: 15px;
    height: 15px;
  }

  .app-header__currency-btn,
  .app-header__account-btn {
    height: 30px;
    max-height: 30px;
    min-height: 30px;
    padding: 0 6px;
    gap: 5px;
    font-size: 13px;
  }

  .app-header__currency-btn iconify-icon {
    font-size: 20px;
  }

  .app-header__currency-label {
    max-width: 3.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-header__currency-btn .app-header__icon--light,
  .app-header__currency-btn .app-header__icon--dark {
    width: 16px;
    height: 16px;
  }

  .app-header__account-btn {
    padding: 3px 6px 3px 3px;
  }

  .app-header__currency-btn .app-currency-flag {
    width: 18px;
    height: 18px;
  }

  .app-header__account-avatar-wrap {
    width: 24px;
    height: 24px;
  }

  .app-header__account-avatar {
    width: 22px;
    height: 22px;
  }

  .app-header__chevron {
    width: 16px;
    height: 16px;
  }

  .app-content {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .guest-nav__toggle {
    display: flex;
  }

  .guest-nav__collapse:not(.in) {
    display: none;
  }

  .guest-nav__collapse.in {
    display: block;
    padding-top: 16px;
  }

  .guest-nav__menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .guest-nav__menu--right {
    margin-left: 0;
  }

  .app-header__currency-label,
  .app-header__currency-btn .app-header__icon--light,
  .app-header__currency-btn .app-header__icon--dark,
  body.theme-dark .app-header__currency-label,
  body.theme-dark .app-header__currency-btn .app-header__icon--light,
  body.theme-dark .app-header__currency-btn .app-header__icon--dark {
    display: none;
  }

  .app-header__currency-btn {
    width: 30px;
    min-width: 30px;
    padding: 0;
    justify-content: center;
  }

  .app-header__account-btn .app-header__chevron,
  .app-header__account-btn .app-header__chevron.app-header__icon--light,
  .app-header__account-btn .app-header__chevron.app-header__icon--dark,
  body.theme-dark .app-header__account-btn .app-header__chevron,
  body.theme-dark
    .app-header__account-btn
    .app-header__chevron.app-header__icon--light,
  body.theme-dark
    .app-header__account-btn
    .app-header__chevron.app-header__icon--dark {
    display: none;
  }

  .app-header__account-btn {
    width: 30px;
    min-width: 30px;
    padding: 3px;
  }

  .app-header__logo-img {
    height: 30px;
    max-width: min(150px, 45vw);
  }

  .app-sidebar__logo-img {
    height: 28px;
    max-width: 160px;
  }
}

/* RTL */
.rtl .app-header__account .dropdown-menu,
.rtl .app-header__account-menu,
.rtl .app-header__currency .dropdown-menu {
  right: auto;
  left: 0;
}

.rtl .app-sidebar {
  left: auto;
  right: 0;
}

.rtl .app-main {
  margin-left: 0;
  margin-right: var(--gmf-sidebar-width);
}

.rtl .app-sidebar__tree {
  padding-left: 0;
  padding-right: 13px;
  flex-direction: row-reverse;
}

.rtl .app-sidebar__tree-svg {
  transform: scaleX(-1);
  transform-origin: center;
}

@media (max-width: 991px) {
  .rtl .app-sidebar {
    transform: translateX(100%);
  }

  .rtl .app-sidebar.is-open {
    transform: translateX(0);
  }

  .rtl .app-main {
    margin-right: 0;
  }
}

/* ==========================================================================
   New Order page
   ========================================================================== */

.neworder-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: min(1560px, 100%);
  min-width: 0;
  box-sizing: border-box;
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 180px;
  padding-block: 25px;
  padding-inline: 60px 120px;
  overflow: hidden;
  border-radius: 20px;
  background-color: transparent;
  background-image: var(--section-header-bg-image) !important;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.theme-dark .page-hero {
  background-image: var(--section-header-bg-image-dark) !important;
}

.rtl .page-hero {
  padding-inline: 120px 60px;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.page-hero__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.56px;
  color: var(--gmf-white);
  text-transform: capitalize;
}

.page-hero__subtitle {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-white);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.page-hero__badge {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 140px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.neworder-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.neworder-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 142px;
  padding: 28px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
}

.neworder-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  padding: 5px;
  border: 0.5px solid var(--gmf-border);
  border-radius: 8px;
  background: var(--gmf-dash-bg);
}

.neworder-stat__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.neworder-stat__copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.neworder-stat__value {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  background: linear-gradient(113deg, #461d04 14%, #ff950a 103%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neworder-stat__label {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.neworder-platforms {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.neworder-platform {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 6px 20px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  color: var(--gmf-text);
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.neworder-platform:hover {
  border-color: var(--gmf-orange);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.24);
}

.neworder-platform.is-active {
  border: none;
  background: linear-gradient(95deg, #461d04 1%, #ff7f00 89%);
  color: var(--gmf-white);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.neworder-platform__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.neworder-platform__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.neworder-platform__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.neworder-grid > section.neworder-panel .neworder-form {
  flex: 1 1 auto;
}

.neworder-grid > .neworder-details .neworder-details__body {
  flex: 1 1 auto;
}

.neworder-grid > .neworder-details .neworder-detail-card--desc {
  flex: 1 1 auto;
}

.neworder-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  overflow: hidden;
}

.neworder-panel__head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 30px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.neworder-panel__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-white);
}

.neworder-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.neworder-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 4px 16px;
  border: 0.5px solid var(--gmf-orange);
  border-radius: 8px;
  background: var(--gmf-white);
  color: var(--gmf-text);
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.neworder-tab__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.neworder-tab:hover,
.neworder-tab:focus {
  color: var(--gmf-text);
  text-decoration: none;
}

.neworder-tab.is-active {
  box-shadow: none;
}

.neworder-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  min-width: 0;
  max-width: 100%;
  border-radius: 0 0 16px 16px;
  box-sizing: border-box;
}

.neworder-form .form-group {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
  position: relative;
}

/* PerfectPanel injects link, quantity, comments, etc. into #fields at runtime */
.neworder-form #fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

/* Platform toggles .hidden on each field group per selected service */
.neworder-form #fields .form-group.hidden,
.neworder-form #fields .form-group[hidden] {
  display: none !important;
}

.neworder-form #fields .form-group:not(.hidden):not([hidden]) {
  display: block;
}

.neworder-form .control-label,
.neworder-form label.control-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
}

.neworder-category-field {
  position: relative;
}

.neworder-category-field .control-label {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding-right: 5.5rem;
  box-sizing: border-box;
}

.neworder-category-field .neworder-clear {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.rtl .neworder-category-field .neworder-clear {
  right: auto;
  left: 0;
}

.rtl .neworder-category-field .control-label {
  padding-right: 0;
  padding-left: 5.5rem;
}

.neworder-clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gmf-orange);
  font-family: var(--gmf-font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.neworder-clear:hover {
  text-decoration: underline;
}

/* Platform filter toast — bottom right */
.neworder-toast-stack {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 10080;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}

.neworder-toast {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--gmf-border);
  background: linear-gradient(135deg, #461d04 0%, #a1480b 55%, #ff7f00 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  pointer-events: auto;
  animation: neworder-toast-in 0.3s ease;
}

.neworder-toast.is-leaving {
  animation: neworder-toast-out 0.22s ease forwards;
}

@keyframes neworder-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neworder-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.neworder-form .form-control,
.neworder-form .select2-container--default .select2-selection--single {
  height: 48px !important;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--gmf-border) !important;
  border-radius: 14px !important;
  background: var(--gmf-neworder-field-bg) !important;
  box-shadow: none !important;
  color: var(--gmf-text-muted);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}

.neworder-form .form-control:not(.select2-selection) {
  padding: 14px 20px;
}

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

.neworder-form
  .select2-container--default:not(.search-dropdown)
  .select2-selection--single {
  display: flex !important;
  align-items: center;
  padding: 0 40px 0 20px !important;
  overflow: hidden;
}

.neworder-form
  .select2-container--default:not(.search-dropdown)
  .select2-selection--single
  .select2-selection__rendered {
  display: block !important;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  color: var(--gmf-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neworder-form
  .select2-container--default:not(.search-dropdown)
  .select2-selection--single
  .select2-selection__arrow {
  position: absolute !important;
  top: 0 !important;
  right: 12px !important;
  width: 20px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.neworder-form
  .select2-container--default:not(.search-dropdown)
  .select2-selection--single
  .select2-selection__arrow
  b {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  border: none !important;
  background-color: transparent !important;
  background-image: url('https://storage.perfectcdn.com/70llv9/e8w3zs66qohs191i.png') !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.neworder-form .select2-selection__rendered > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neworder-form .select2-selection__id,
.neworder-form .badge.select2-selection__id,
.neworder-form .select2-selection__id.badge-pill,
.neworder-form .select2-selection__id.rounded-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--gmf-select2-id-badge-width);
  width: var(--gmf-select2-id-badge-width);
  min-width: var(--gmf-select2-id-badge-width);
  max-width: var(--gmf-select2-id-badge-width);
  flex-shrink: 0;
  height: var(--gmf-select2-id-badge-height);
  padding: 1px 3px !important;
  box-sizing: border-box;
  border: 1px solid var(--gmf-orange) !important;
  border-radius: 48px !important;
  background: var(--gmf-orange) !important;
  color: #fff !important;
  font-family: var(--gmf-font-body);
  font-size: var(--gmf-select2-id-badge-font-size) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Dropdown results: same orange service ID pill */
.select2-container--open .select2-results__option .select2-selection__id,
.select2-dropdown .select2-selection__id,
.select2-results__option .badge.select2-selection__id {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--gmf-select2-id-badge-width);
  width: var(--gmf-select2-id-badge-width);
  min-width: var(--gmf-select2-id-badge-width);
  max-width: var(--gmf-select2-id-badge-width);
  height: var(--gmf-select2-id-badge-height);
  padding: 1px 3px !important;
  border: 1px solid var(--gmf-orange) !important;
  border-radius: 48px !important;
  background: var(--gmf-orange) !important;
  color: #fff !important;
  font-size: var(--gmf-select2-id-badge-font-size) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin-right: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Force Select2 menus visible (Bootstrap .dropdown-menu sets display:none) */
.neworder-page .select2-container {
  z-index: 1;
}

.neworder-page .select2-container--open,
.select2-container--open {
  z-index: 1060 !important;
}

.select2-container--open > .select2-dropdown,
.select2-container--open .select2-dropdown.dropdown-menu,
span.select2-dropdown.select2-dropdown--below,
span.select2-dropdown.select2-dropdown--above {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  z-index: 1060 !important;
  padding: 0;
  border: 1px solid var(--gmf-border) !important;
  background: var(--gmf-select2-dropdown-bg) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden !important;
}

/* Flush panel: square top on menu, square bottom on trigger when open below */
.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--open.select2-container--below .select2-selection {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom: none !important;
}

.select2-container--open .select2-dropdown.select2-dropdown--below,
span.select2-dropdown.select2-dropdown--below {
  margin-top: 0 !important;
  border-top: 1px solid var(--gmf-select2-item-border) !important;
  border-radius: 0 0 12px 12px !important;
}

.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--open.select2-container--above .select2-selection {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-top: none !important;
}

.select2-container--open .select2-dropdown.select2-dropdown--above,
span.select2-dropdown.select2-dropdown--above {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--gmf-select2-item-border) !important;
  border-radius: 12px 12px 0 0 !important;
}

.select2-container--open .select2-results,
.select2-dropdown .select2-results,
.select2-container--open .select2-results > div,
.select2-dropdown .select2-results > div {
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.select2-container--open .select2-results__options,
.select2-dropdown .select2-results__options,
.select2-container--open ul.select2-results__options.dropdown-menu,
.select2-dropdown ul.select2-results__options.dropdown-menu,
ul.select2-results__options.dropdown-menu {
  display: block !important;
  float: none !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  height: auto !important;
  max-height: 280px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.select2-container--open .select2-results__option,
.select2-dropdown .select2-results__option {
  margin: 0;
  padding: 3px 11px;
  border-bottom: 1px solid var(--gmf-select2-item-border);
  background: var(--gmf-select2-dropdown-bg) !important;
  background-image: none !important;
  color: var(--gmf-text) !important;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.select2-container--open .select2-results__option:last-child,
.select2-dropdown .select2-results__option:last-child {
  border-bottom: none;
}

.select2-container--open .select2-results__option > a,
.select2-dropdown .select2-results__option > a,
.select2-results__option .select2-result-label,
.select2-results__option .dropdown-item {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.select2-results__option .select2-selection__id,
.select2-results__option .badge.select2-selection__id {
  align-self: flex-start;
  margin-top: 1px;
}

.select2-results__option > a.select2-result-row--grid {
  display: grid !important;
  grid-template-columns: var(--gmf-select2-id-badge-width) minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 0;
  align-items: start;
  gap: 0;
}

.select2-results__option > a.select2-result-row--grid.select2-result-row--icon {
  grid-template-columns: 20px minmax(0, 1fr);
}

.select2-results__option > a.select2-result-row--grid .select2-selection__id,
.select2-results__option > a.select2-result-row--grid > img:first-child {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: 1px;
}

.select2-results__option
  > a.select2-result-row--grid
  .select2-service-result-text,
.select2-results__option > a.select2-result-row--grid .select2-result-label {
  grid-column: 2;
  display: block;
  min-width: 0;
  padding: 0;
}

.select2-results__option .select2-result-label > img:first-child,
.select2-results__option > a > img:first-child,
.select2-results__option .dropdown-item > img:first-child {
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  object-fit: contain;
}

/* Full-row gray hover — beat Select2 default blue (#5897fb) + Bootstrap .active */
.select2-container--default .select2-results__option--highlighted,
.select2-container--default
  .select2-results__option--highlighted[aria-selected],
.select2-container--default
  .select2-results__option--highlighted[aria-selected='true'],
.select2-container--default
  .select2-results__option--highlighted[aria-selected='false'],
.select2-container--default .select2-results__option.active,
.select2-container--default
  .select2-results__option.active.select2-results__option--highlighted,
.select2-container--open .select2-results__option--highlighted,
.select2-container--open .select2-results__option.active,
.select2-container--open .select2-results__option[aria-selected='true'],
.select2-dropdown .select2-results__option--highlighted,
.select2-dropdown .select2-results__option.active,
.select2-dropdown .select2-results__option[aria-selected='true'] {
  width: 100% !important;
  margin: 0 !important;
  background: var(--gmf-select2-hover-bg) !important;
  background-color: var(--gmf-select2-hover-bg) !important;
  background-image: none !important;
  color: var(--gmf-text) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Kill nested blue bars from Perfect Panel / Bootstrap wrappers */
.select2-container--default .select2-results__option--highlighted > *,
.select2-container--default
  .select2-results__option--highlighted[aria-selected]
  > *,
.select2-container--default .select2-results__option.active > *,
.select2-container--open .select2-results__option--highlighted > *,
.select2-container--open .select2-results__option.active > *,
.select2-container--open .select2-results__option[aria-selected='true'] > *,
.select2-dropdown .select2-results__option--highlighted > *,
.select2-dropdown .select2-results__option.active > *,
.select2-results__option .dropdown-item,
.select2-results__option .dropdown-item.active,
.select2-results__option .dropdown-item:active,
.select2-results__option .list-group-item,
.select2-results__option .list-group-item.active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

.select2-container--default .select2-results__option--highlighted *,
.select2-container--default .select2-results__option.active *,
.select2-container--open .select2-results__option--highlighted *,
.select2-container--open .select2-results__option.active *,
.select2-container--open .select2-results__option[aria-selected='true'] *,
.select2-dropdown .select2-results__option--highlighted *,
.select2-dropdown .select2-results__option.active * {
  color: var(--gmf-text) !important;
}

/* ID badge stays orange on gray hover row */
.select2-container--default
  .select2-results__option--highlighted
  .select2-selection__id,
.select2-container--default
  .select2-results__option.active
  .select2-selection__id,
.select2-container--open
  .select2-results__option--highlighted
  .select2-selection__id,
.select2-container--open .select2-results__option.active .select2-selection__id,
.select2-container--open
  .select2-results__option[aria-selected='true']
  .select2-selection__id,
.select2-dropdown .select2-results__option--highlighted .select2-selection__id,
.select2-dropdown .select2-results__option.active .select2-selection__id {
  border-color: var(--gmf-orange) !important;
  background: var(--gmf-orange) !important;
  background-color: var(--gmf-orange) !important;
  color: #fff !important;
}

.select2-container--open .select2-search--dropdown,
.select2-dropdown .select2-search--dropdown {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gmf-select2-item-border);
  background: var(--gmf-select2-dropdown-bg);
}

.select2-container--open .select2-search--dropdown .select2-search__field,
.select2-dropdown .select2-search--dropdown .select2-search__field {
  width: 100%;
  height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--gmf-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--gmf-text);
  outline: none;
  box-shadow: none !important;
}

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

.neworder-search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  transform: translateY(-50%);
  pointer-events: none;
}

.neworder-search-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Panel-injected search control (Select2) — neworder/search.png */
.neworder-page .neworder-search-group .input-wrapper__prepend,
.neworder-page .search-dropdown.select2-container .input-wrapper__prepend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  min-width: 14px;
  padding: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background-color: transparent !important;
  background-image: var(--gmf-neworder-search-icon) !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  filter: none;
  pointer-events: none;
}

.neworder-page .neworder-search-group .input-wrapper__prepend::before,
.neworder-page .neworder-search-group .input-wrapper__prepend::after,
.neworder-page
  .search-dropdown.select2-container
  .input-wrapper__prepend::before,
.neworder-page
  .search-dropdown.select2-container
  .input-wrapper__prepend::after {
  display: none !important;
  content: none !important;
}

.neworder-page .neworder-search-group .input-wrapper__prepend img,
.neworder-page .search-dropdown.select2-container .input-wrapper__prepend img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

body.theme-dark .neworder-page .neworder-search-group .input-wrapper__prepend,
body.theme-dark
  .neworder-page
  .search-dropdown.select2-container
  .input-wrapper__prepend,
body.theme-dark
  .neworder-page
  .neworder-search-group
  .input-wrapper__prepend
  img,
body.theme-dark
  .neworder-page
  .search-dropdown.select2-container
  .input-wrapper__prepend
  img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.neworder-page .search-dropdown .input-wrapper__append,
.neworder-page .neworder-search-group .input-wrapper__append,
.neworder-page .search-dropdown .select2-selection__clear,
.neworder-page .neworder-search-group .select2-selection__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gmf-text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.neworder-page .search-dropdown .input-wrapper__append:hover,
.neworder-page .neworder-search-group .input-wrapper__append:hover,
.neworder-page .search-dropdown .select2-selection__clear:hover,
.neworder-page .neworder-search-group .select2-selection__clear:hover {
  color: var(--gmf-text);
}

body.theme-dark .neworder-page .search-dropdown .input-wrapper__append,
body.theme-dark .neworder-page .neworder-search-group .input-wrapper__append,
body.theme-dark .neworder-page .search-dropdown .select2-selection__clear,
body.theme-dark
  .neworder-page
  .neworder-search-group
  .select2-selection__clear {
  color: #ffffff !important;
  opacity: 0.85;
}

body.theme-dark .neworder-page .search-dropdown .input-wrapper__append:hover,
body.theme-dark
  .neworder-page
  .neworder-search-group
  .input-wrapper__append:hover,
body.theme-dark .neworder-page .search-dropdown .select2-selection__clear:hover,
body.theme-dark
  .neworder-page
  .neworder-search-group
  .select2-selection__clear:hover {
  color: #ffffff !important;
  opacity: 1;
}

body.theme-dark .neworder-page .search-dropdown .input-wrapper__append img,
body.theme-dark
  .neworder-page
  .neworder-search-group
  .input-wrapper__append
  img,
body.theme-dark .neworder-page .search-dropdown .input-wrapper__append svg,
body.theme-dark
  .neworder-page
  .neworder-search-group
  .input-wrapper__append
  svg,
body.theme-dark .neworder-page .search-dropdown .input-wrapper__append i,
body.theme-dark .neworder-page .neworder-search-group .input-wrapper__append i {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Select2 service search — icon + input in one row, vertically centered */
.neworder-page .search-dropdown.select2-container > .input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gmf-border);
  border-radius: 14px;
  background: var(--gmf-neworder-field-bg);
  box-sizing: border-box;
}

.neworder-page
  .search-dropdown.select2-container
  > .input-wrapper
  .input-wrapper__prepend {
  align-self: center;
  margin: 0;
  transform: translateY(6px);
}

.neworder-page
  .search-dropdown.select2-container
  > .input-wrapper
  input.select2-selection,
.neworder-page
  .search-dropdown.select2-container
  > .input-wrapper
  .select2-selection {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 12px 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.5;
}

.neworder-page .search-dropdown.select2-container.select2-container--default {
  width: 100% !important;
}

body.theme-dark
  .neworder-page
  .search-dropdown.select2-container
  > .input-wrapper {
  background: #151515 !important;
  border-color: var(--gmf-border) !important;
}

body.theme-dark .neworder-page .neworder-search-group input,
body.theme-dark .neworder-page .neworder-search-group input.select2-selection,
body.theme-dark .neworder-page .neworder-search-group .form-control,
body.theme-dark
  .neworder-page
  .search-dropdown.select2-container
  > .input-wrapper
  input.select2-selection,
body.theme-dark
  .neworder-page
  .search-dropdown.select2-container
  > .input-wrapper
  .select2-selection,
body.theme-dark .neworder-page .neworder-search-wrap .form-control,
body.theme-dark .neworder-page #template-input {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-dark .neworder-page .neworder-search-group input::placeholder,
body.theme-dark
  .neworder-page
  .neworder-search-group
  input::-webkit-input-placeholder,
body.theme-dark .neworder-page .neworder-search-group input::-moz-placeholder,
body.theme-dark
  .neworder-page
  .neworder-search-group
  input:-ms-input-placeholder,
body.theme-dark
  .neworder-page
  .search-dropdown.select2-container
  > .input-wrapper
  input.select2-selection::placeholder,
body.theme-dark
  .neworder-page
  .search-dropdown.select2-container
  > .input-wrapper
  input.select2-selection::-webkit-input-placeholder,
body.theme-dark .neworder-page .neworder-search-wrap .form-control::placeholder,
body.theme-dark
  .neworder-page
  .neworder-search-wrap
  .form-control::-webkit-input-placeholder,
body.theme-dark .neworder-page #template-input::placeholder,
body.theme-dark .neworder-page #template-input::-webkit-input-placeholder {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

.neworder-search-wrap .form-control,
.neworder-search-wrap .select2-selection {
  display: block !important;
  padding: 14px 20px 14px 48px !important;
}

/* ------------------------------------------------------------------ */
/* Service search dropdown (#select-category-container)               */
/* ------------------------------------------------------------------ */

.neworder-search,
.neworder-search-group,
#new-order-search,
#select-category-container {
  position: relative;
}

.neworder-search .select2-dropdown,
.neworder-search .select2-dropdown.dropdown-menu,
#select-category-container .select2-dropdown,
#select-category-container .select2-dropdown.dropdown-menu,
.search-dropdown .select2-dropdown,
.search-dropdown .select2-dropdown.dropdown-menu {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--gmf-border) !important;
  background: var(--gmf-select2-dropdown-bg) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  z-index: 1060 !important;
}

.neworder-search .select2-dropdown.select2-dropdown--below,
#select-category-container .select2-dropdown.select2-dropdown--below,
.search-dropdown .select2-dropdown.select2-dropdown--below {
  border-top: 1px solid var(--gmf-select2-item-border) !important;
  border-radius: 0 0 12px 12px !important;
}

.neworder-search .select2-dropdown.select2-dropdown--above,
#select-category-container .select2-dropdown.select2-dropdown--above,
.search-dropdown .select2-dropdown.select2-dropdown--above {
  border-bottom: 1px solid var(--gmf-select2-item-border) !important;
  border-radius: 12px 12px 0 0 !important;
}

/* Collapse Perfect Panel wrapper divs — they cause empty scroll space */
.neworder-search .select2-results,
.neworder-search .select2-results > div,
#select-category-container .select2-results,
#select-category-container .select2-results > div,
.search-dropdown .select2-results,
.search-dropdown .select2-results > div {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Only the options list scrolls */
.neworder-search .select2-results__options,
#select-category-container .select2-results__options,
.search-dropdown .select2-results__options,
.neworder-search ul.select2-results__options.dropdown-menu,
#select-category-container ul.select2-results__options.dropdown-menu {
  display: block !important;
  height: auto !important;
  max-height: 260px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  float: none !important;
  position: static !important;
}

.neworder-search .select2-results__option,
#select-category-container .select2-results__option,
.search-dropdown .select2-results__option {
  margin: 0 !important;
  padding: 3px 11px !important;
  border-bottom: 1px solid var(--gmf-select2-item-border) !important;
  background: var(--gmf-select2-dropdown-bg) !important;
  color: var(--gmf-text) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.neworder-search .select2-results__option:last-child,
#select-category-container .select2-results__option:last-child,
.search-dropdown .select2-results__option:last-child {
  border-bottom: none !important;
}

.neworder-search .select2-results__option > a,
#select-category-container .select2-results__option > a,
.search-dropdown .select2-results__option > a,
.neworder-search .select2-results__option .select2-result-label,
#select-category-container .select2-results__option .select2-result-label,
.search-dropdown .select2-results__option .select2-result-label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  padding: 0 !important;
  color: var(--gmf-text) !important;
  font-size: 14px !important;
  text-decoration: none !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  background: transparent !important;
  min-width: 0;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
}

.neworder-search .select2-results__option:hover,
.neworder-search .select2-results__option.active,
.neworder-search .select2-results__option--highlighted,
#select-category-container .select2-results__option:hover,
#select-category-container .select2-results__option.active,
#select-category-container .select2-results__option--highlighted,
.search-dropdown .select2-results__option:hover,
.search-dropdown .select2-results__option.active,
.search-dropdown .select2-results__option--highlighted {
  background: var(--gmf-select2-hover-bg) !important;
  background-color: var(--gmf-select2-hover-bg) !important;
}

.neworder-search .select2-results__option:hover > a,
.neworder-search .select2-results__option.active > a,
.neworder-search .select2-results__option--highlighted > a,
#select-category-container .select2-results__option:hover > a,
#select-category-container .select2-results__option.active > a,
#select-category-container .select2-results__option--highlighted > a,
.search-dropdown .select2-results__option:hover > a,
.search-dropdown .select2-results__option.active > a,
.search-dropdown .select2-results__option--highlighted > a {
  color: var(--gmf-text) !important;
  background: transparent !important;
}

.neworder-form #fields .help-block,
.neworder-form .help-block {
  margin-top: 8px;
  color: var(--gmf-text-muted);
  font-size: 14px;
}

.neworder-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: radial-gradient(120% 180% at 50% -20%, #21bacb 0%, #168c99 100%);
  color: var(--gmf-white);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.15s ease;
}

.neworder-submit:hover {
  filter: brightness(1.05);
  color: var(--gmf-white);
}

.neworder-submit:active {
  transform: translateY(1px);
}

.neworder-details__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border-radius: 0 0 16px 16px;
  min-width: 0;
}

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

.neworder-detail-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-neworder-field-bg);
}

.neworder-detail-card__label {
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
}

.neworder-detail-card__value {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gmf-text);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.neworder-detail-card__desc,
.neworder-detail-card__placeholder {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gmf-text);
  word-break: break-word;
}

.neworder-detail-card__desc ul {
  margin: 0;
  padding-left: 21px;
}

.neworder-detail-card__desc li + li {
  margin-top: 4px;
}

.neworder-detail-card__placeholder {
  color: var(--gmf-text-muted);
}

.neworder-page .alert {
  border-radius: 12px;
}

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

/* Dense desktop — keep full layout; shrink type/spacing under 1600px */
@media (max-width: 1599px) {
  .neworder-page {
    gap: 18px;
  }

  .page-hero {
    min-height: 160px;
    padding-block: 25px;
    padding-inline: clamp(28px, 3vw, 40px) clamp(40px, 6vw, 80px);
    border-radius: 18px;
  }

  .rtl .page-hero {
    padding-inline: clamp(40px, 6vw, 80px) clamp(28px, 3vw, 40px);
  }

  .page-hero__title {
    font-size: 24px;
    letter-spacing: -0.4px;
  }

  .page-hero__subtitle {
    font-size: 14px;
  }

  .page-hero__badge {
    max-width: 120px;
    max-height: 120px;
  }

  .neworder-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .neworder-stat {
    min-height: 112px;
    padding: 22px 18px;
    gap: 12px;
    border-radius: 14px;
  }

  .neworder-stat__icon {
    width: 48px;
    height: 48px;
  }

  .neworder-stat__icon img {
    width: 34px;
    height: 34px;
  }

  .neworder-stat__value {
    font-size: 18px;
  }

  .neworder-stat__label {
    font-size: 12px;
  }

  .neworder-platforms {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
  }

  .neworder-platform {
    height: 44px;
    padding: 6px 10px;
    gap: 8px;
    font-size: 13px;
    border-radius: 12px;
  }

  .neworder-platform__icon,
  .neworder-platform__icon img {
    width: 22px;
    height: 22px;
  }

  .neworder-grid {
    gap: 14px;
  }

  .neworder-panel__head {
    min-height: 64px;
    padding: 12px 20px;
  }

  .neworder-panel__title {
    font-size: 18px;
  }

  .neworder-tab {
    height: 36px;
    padding: 4px 12px;
    font-size: 13px;
  }

  .neworder-form,
  .neworder-details__body {
    padding: 20px;
    gap: 10px;
  }

  .neworder-form .control-label,
  .neworder-form label.control-label,
  .neworder-detail-card__label {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .neworder-form .form-control,
  .neworder-form .select2-container--default .select2-selection--single {
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 13px;
  }

  .neworder-form .form-control:not(.select2-selection) {
    padding: 12px 16px;
  }

  .neworder-page .search-dropdown.select2-container > .input-wrapper {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .neworder-page
    .search-dropdown.select2-container
    > .input-wrapper
    input.select2-selection,
  .neworder-page
    .search-dropdown.select2-container
    > .input-wrapper
    .select2-selection {
    padding: 10px 0 !important;
  }

  .neworder-form
    .select2-container--default:not(.search-dropdown)
    .select2-selection--single {
    padding: 0 36px 0 16px !important;
  }

  .neworder-detail-card {
    padding: 12px 14px;
  }

  .neworder-detail-card__value,
  .neworder-detail-card__desc,
  .neworder-detail-card__placeholder {
    font-size: 13px;
  }

  .neworder-submit {
    height: 44px;
    margin-top: 8px;
  }
}

/* Tablet — stack form + details, compact stats/platforms under 1200px */
@media (max-width: 1199px) {
  .neworder-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .neworder-stat {
    min-height: 0;
    padding: 18px 16px;
    gap: 12px;
  }

  .neworder-stat__copy {
    flex-direction: column;
    gap: 4px;
  }

  .neworder-stat__value {
    font-size: 18px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .neworder-platforms {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
  }

  .neworder-platform {
    justify-content: center;
    gap: 0;
    height: 48px;
    padding: 8px;
  }

  .neworder-platform__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .neworder-platform__icon,
  .neworder-platform__icon img {
    width: 28px;
    height: 28px;
  }

  .page-hero {
    padding-block: 25px;
    padding-inline: clamp(20px, 4vw, 32px) clamp(28px, 5vw, 56px);
  }

  .rtl .page-hero {
    padding-inline: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 32px);
  }

  .page-hero__badge {
    max-width: 108px;
    max-height: 108px;
  }
}

@media (max-width: 1023px) {
  .neworder-page {
    gap: 20px;
  }

  .neworder-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .neworder-grid > .neworder-panel {
    height: auto;
    min-height: 0;
  }

  .neworder-grid > section.neworder-panel .neworder-form,
  .neworder-grid > .neworder-details .neworder-details__body {
    flex: none;
  }

  .neworder-stat {
    min-height: 0;
    padding: 16px 14px;
  }

  .neworder-stat__value {
    font-size: 17px;
  }

  .neworder-stat__icon {
    width: 48px;
    height: 48px;
  }

  .neworder-stat__icon img {
    width: 34px;
    height: 34px;
  }
}

/* Mobile — SMMSun: keep 2-col stats, 6-col platform icons */
@media (max-width: 767px) {
  .neworder-page {
    gap: 16px;
  }

  .page-hero {
    min-height: 0;
    padding-block: 25px;
    padding-inline: 16px 20px;
    border-radius: 16px;
    gap: 12px;
  }

  .rtl .page-hero {
    padding-inline: 20px 16px;
  }

  .page-hero__content {
    flex: 1 1 auto;
    min-width: 0;
  }

  .page-hero__title {
    font-size: 18px;
    letter-spacing: -0.3px;
  }

  .page-hero__subtitle {
    font-size: 13px;
    max-width: none;
    white-space: normal;
  }

  .page-hero__badge {
    max-width: 72px;
    max-height: 72px;
  }

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

  .neworder-stat {
    flex-direction: row;
    align-items: center;
    min-height: 88px;
    padding: 16px 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .neworder-stat__icon {
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 10px;
  }

  .neworder-stat__icon img {
    width: 36px;
    height: 36px;
  }

  .neworder-stat__copy {
    flex-direction: column;
    gap: 4px;
  }

  .neworder-stat__value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: unset;
  }

  .neworder-stat__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--gmf-text-muted);
  }

  .neworder-detail-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .neworder-platforms {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
  }

  .neworder-platform {
    justify-content: center;
    gap: 0;
    height: 48px;
    min-height: 48px;
    padding: 6px;
    border-radius: 12px;
  }

  .neworder-platform__icon,
  .neworder-platform__icon img {
    width: 26px;
    height: 26px;
  }

  .neworder-panel {
    border-radius: 14px;
  }

  .neworder-panel__head {
    min-height: 64px;
    padding: 12px 16px;
    border-radius: 14px 14px 0 0;
  }

  .neworder-panel__title {
    font-size: 16px;
  }

  .neworder-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .neworder-tab {
    height: 36px;
    padding: 4px 12px;
    font-size: 13px;
  }

  .neworder-tab__icon {
    width: 14px;
    height: 14px;
  }

  .neworder-form,
  .neworder-details__body {
    padding: 16px;
    gap: 10px;
  }

  .neworder-form .control-label,
  .neworder-form label.control-label,
  .neworder-detail-card__label {
    font-size: 13px;
  }

  .neworder-form .form-control,
  .neworder-form .select2-container--default .select2-selection--single {
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 14px;
  }

  .neworder-form .form-control:not(.select2-selection) {
    padding: 12px 16px;
  }

  .neworder-page .search-dropdown.select2-container > .input-wrapper {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .neworder-search-wrap .form-control,
  .neworder-search-wrap .select2-selection {
    padding: 12px 16px 12px 44px !important;
  }

  .neworder-search-icon {
    left: 14px;
  }

  .neworder-detail-card {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .neworder-detail-card__value,
  .neworder-detail-card__desc,
  .neworder-detail-card__placeholder {
    font-size: 13px;
  }

  .neworder-submit {
    height: 44px;
    margin-top: 8px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .neworder-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .neworder-stat {
    min-height: 80px;
    padding: 14px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .neworder-stat__icon {
    width: 44px;
    height: 44px;
  }

  .neworder-stat__icon img {
    width: 32px;
    height: 32px;
  }

  .neworder-stat__value {
    font-size: clamp(14px, 4vw, 16px);
  }

  .neworder-stat__label {
    font-size: 11px;
  }

  .neworder-platforms {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }

  .neworder-platform {
    height: 40px;
    min-height: 40px;
  }

  .neworder-platform__icon,
  .neworder-platform__icon img {
    width: 23px;
    height: 23px;
  }

  .page-hero {
    padding-block: 25px;
    padding-inline: 14px 16px;
    min-height: 0;
  }

  .rtl .page-hero {
    padding-inline: 16px 14px;
  }

  .page-hero__title {
    font-size: 16px;
  }

  .page-hero__subtitle {
    font-size: 12px;
  }

  .neworder-tabs {
    width: 100%;
  }

  .neworder-tab {
    flex: 1 1 auto;
    justify-content: center;
  }

  .neworder-detail-row {
    gap: 8px;
  }
}

.rtl .neworder-search-icon {
  left: auto;
  right: 20px;
}

.rtl .neworder-search-wrap .form-control,
.rtl .neworder-search-wrap .select2-selection {
  padding: 14px 48px 14px 20px !important;
}

@media (max-width: 767px) {
  .rtl .neworder-search-icon {
    right: 14px;
  }

  .rtl .neworder-search-wrap .form-control,
  .rtl .neworder-search-wrap .select2-selection {
    padding: 12px 44px 12px 16px !important;
  }
}

.rtl .neworder-detail-card__desc ul {
  padding-left: 0;
  padding-right: 21px;
}

/* ==========================================================================
   Dashboard panels, forms, tables (shared)
   ========================================================================== */

.addfunds-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.addfunds-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.addfunds-grid > .dash-panel {
  height: auto;
}

.dash-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
}

/* Inner fills must match panel radius (avoids square corners bleeding past the border) */
.dash-panel > .dash-form:last-child,
.dash-panel > .dash-panel__body:last-child,
.dash-panel > .tickets-history:last-child,
.dash-panel > .ticket-info:last-child,
.dash-panel > .faq-panel__body:last-child,
.dash-panel > .support-cards:last-child,
.dash-panel > .account-form:last-child,
.dash-panel > .notifications-form:last-child,
.dash-panel > .viewticket-messages:last-child,
.dash-panel > .viewticket-reply-form:last-child {
  border-radius: 0 0 15px 15px;
}

.dash-panel__head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 30px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.dash-panel__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-white);
}

.dash-panel__body {
  padding: 30px;
}

.dash-panel__body--content {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text);
}

.dash-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  margin-bottom: 0px;
}

.addfunds-grid .dash-submit {
  margin-top: 24px;
}

.addfunds-grid > .dash-panel > .dash-form {
  gap: 0;
  flex: 0 0 auto;
  background: #fff6ed;
}

.addfunds-grid > .dash-panel > .dash-form .form-group:has(#amount-fields) {
  margin-top: 12px;
}

.dash-form .form-group {
  margin-bottom: 0;
}

.dash-form .instruction {
  margin-top: 24px;
}

.dash-form .control-label,
.dash-form label.control-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
}

input[type='checkbox'] {
  background-color: transparent;
  accent-color: var(--gmf-orange);
}

.dash-form .form-control {
  height: 48px;
  padding: 14px 20px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  box-shadow: none;
  color: var(--gmf-text-muted);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
}

.dash-form .form-control:focus {
  border-color: var(--gmf-border);
  box-shadow: 0 0 0 2px var(--gmf-orange-15);
  color: var(--gmf-text);
}

.dash-select {
  position: relative;
}

.dash-select .form-control {
  appearance: none;
  padding-right: 48px;
}

.dash-select__arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--gmf-text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.addfunds-page .dash-select__chevron-icon {
  display: block;
  width: 16px;
  height: 16px;
  filter: brightness(0);
}

body.theme-dark .addfunds-page .dash-select__chevron-icon {
  filter: brightness(0) invert(1);
}

.dash-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 0;
  border: 0;
  border-radius: 12px;
  background: radial-gradient(120% 180% at 50% -20%, #21bacb 0%, #168c99 100%);
  color: var(--gmf-white);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.15s ease;
}

.dash-submit:hover {
  filter: brightness(1.05);
  color: var(--gmf-white);
}

.dash-submit:active {
  transform: translateY(1px);
}

.dash-panel--support {
  container-type: inline-size;
  container-name: support-panel;
}

.support-cards {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  padding: 12px 30px;
  background: #fff6ed;
}

.support-card {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 48px 40px 40px;
  border-radius: 16px;
  color: var(--gmf-white);
  text-decoration: none;
  transition:
    filter 0.2s ease,
    transform 0.15s ease;
}

.support-card--telegram {
  height: 132px;
  background: linear-gradient(
    137.69deg,
    #a1480b 0%,
    #cc5c02 49.2%,
    #823c0c 99%
  );
}

.support-card--whatsapp {
  height: 127px;
  background: linear-gradient(
    138.79deg,
    #a1480b 0%,
    #cc5c02 49.2%,
    #823c0c 99%
  );
}

.support-card:hover,
.support-card:focus {
  filter: brightness(1.05);
  color: var(--gmf-white);
  text-decoration: none;
}

.support-card:active {
  transform: translateY(1px);
}

.support-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 416px;
}

.support-card__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: capitalize;
}

.support-card__desc {
  margin: 0;
  max-width: 345px;
  overflow: hidden;
  font-family: var(--gmf-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.support-card__icon-wrap {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 100px;
  padding: 8px;
}

.support-card__icon-wrap--telegram {
  background: #1fa7d9;
}

.support-card__icon-wrap--whatsapp {
  background: #58c841;
}

.support-card__icon {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: cover;
}

/* Shrink copy + icon whenever the support panel is narrow (including 1199px) */
@container support-panel (max-width: 460px) {
  .support-card {
    gap: 10px;
    padding: 14px 12px;
    overflow: hidden;
  }

  .support-card__copy {
    flex: 1;
    min-width: 0;
    gap: 4px;
    max-width: none;
  }

  .support-card__title {
    font-size: 16px;
    line-height: 1.3;
  }

  .support-card__desc {
    max-width: none;
    font-size: 11px;
    line-height: 1.35;
  }

  .support-card__icon-wrap {
    width: 48px;
    height: 48px;
    padding: 4px;
  }

  .support-card__icon {
    width: 40px;
    height: 40px;
  }
}

.dash-table {
  overflow: hidden;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}

.dash-table__scroll {
  overflow-x: auto;
}

.dash-table__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

/* Panel tables (not services): full size ≥1600px; compact fluid fit below */
.dash-table__table:not(.services-table):not(#service-table),
table.table:not(.services-table):not(#service-table) {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

@media (min-width: 1600px) {
  .dash-table__table:not(.services-table):not(#service-table) .dash-table__th {
    height: auto;
    min-height: 72px;
    padding-block: 23px;
    padding-inline: 10px;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .dash-table__table:not(.services-table) .orders-table__th--link,
  .dash-table__table:not(.services-table) .orders-table__td--link {
    width: 14%;
    min-width: 180px;
    overflow: hidden;
  }
}

@media (max-width: 1599px) and (min-width: 1300px) {
  .dash-table__scroll {
    overflow-x: hidden;
  }

  .dash-table__table:not(.services-table):not(#service-table),
  table.table:not(.services-table):not(#service-table) {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }

  .dash-table__table:not(.services-table):not(#service-table) .dash-table__th {
    height: auto;
    min-height: 52px;
    max-width: 0;
    padding-block: 14px;
    padding-inline: 6px;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
  }

  .dash-table__table:not(.services-table):not(#service-table) .dash-table__td {
    height: auto;
    min-height: 48px;
    padding-block: 12px;
    padding-inline: 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  table:not(.services-table):not(#service-table) thead th {
    max-width: 0;
    padding-block: 14px;
    padding-inline: 6px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .orders-table thead .orders-table__th-id {
    justify-content: center;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .orders-table thead .orders-table__th-id > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dash-table__table:not(.services-table) .orders-table__th--link,
  .dash-table__table:not(.services-table) .orders-table__td--link {
    width: 11%;
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }

  .dash-table__table:not(.services-table) .orders-table__th--service,
  .dash-table__table:not(.services-table) .orders-table__td--service {
    width: auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }

  .dash-table__table:not(.services-table) .orders-table__td--service {
    max-width: 100%;
  }

  .orders-table__th--check,
  .orders-table__td--check {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }

  .orders-table__th--check {
    max-width: 44px;
  }

  .orders-page .orders-table .dash-table__th--id,
  .orders-page .orders-table .dash-table__td--id {
    width: 7%;
    min-width: 0;
    max-width: none;
    padding-block: 14px;
    padding-inline: 4px;
  }

  .orders-page .orders-table thead th:nth-child(3),
  .orders-page .orders-table tbody td:nth-child(3) {
    width: 10%;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
  }

  .orders-page .orders-table thead th:nth-child(5),
  .orders-page .orders-table tbody td:nth-child(5),
  .orders-page .orders-table thead th:nth-child(6),
  .orders-page .orders-table tbody td:nth-child(6),
  .orders-page .orders-table thead th:nth-child(7),
  .orders-page .orders-table tbody td:nth-child(7),
  .orders-page .orders-table thead th:nth-child(8),
  .orders-page .orders-table tbody td:nth-child(8) {
    width: 6%;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
  }

  .orders-page .orders-table .orders-table__th--status,
  .orders-page .orders-table .orders-table__td--status {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    overflow: hidden;
    padding-inline: 4px;
    box-sizing: border-box;
  }

  .orders-page .orders-table .dash-table__th--action,
  .orders-page .orders-table .dash-table__td--action {
    width: 84px;
    min-width: 84px;
    max-width: 84px;
    overflow: hidden;
    padding-inline: 4px;
    box-sizing: border-box;
  }

  .orders-page .orders-table .dash-table__th.orders-table__th--status {
    max-width: 96px;
  }

  .orders-page .orders-table .dash-table__th--action {
    max-width: 84px;
  }

  .orders-page .orders-table .orders-table__td--status {
    text-align: center;
  }

  .orders-page .orders-table .orders-table__status {
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .orders-page .orders-table .orders-table__reorder {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
  }

  .orders-table__task-btn {
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.3;
  }

  .orders-table__task-btn--cancel {
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    min-width: 72px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
  }

  .orders-table__task-note {
    font-size: 10px;
    line-height: 1.35;
  }

  .dash-table__table:not(.services-table) .dash-table__th--id,
  .dash-table__table:not(.services-table) .dash-table__td--id {
    padding-inline: 6px;
  }
}

/* Below 1300px: original table widths + horizontal scroll */
@media (max-width: 1299px) {
  .dash-table__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .well.well-float {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .dash-table__table:not(.services-table):not(#service-table),
  table.table:not(.services-table):not(#service-table) {
    width: max-content;
    min-width: var(--gmf-table-scroll-min-width, 960px);
    table-layout: fixed;
  }

  .orders-page .orders-table__table {
    width: 1588px;
    min-width: 1588px;
  }

  .drip-feed-table__table {
    width: 1320px;
    min-width: 1320px;
  }

  .subscriptions-table__table {
    width: 1680px;
    min-width: 1680px;
  }

  .updates-table__table {
    width: 860px;
    min-width: 860px;
  }

  .dash-table__table:not(.services-table):not(#service-table) .dash-table__th {
    height: 72px;
    min-height: 72px;
    max-width: none;
    padding-block: 23px;
    padding-inline: 20px;
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  .dash-table__table:not(.services-table):not(#service-table) .dash-table__td {
    height: 74px;
    min-height: 74px;
    padding-block: 16px;
    padding-inline: 20px;
    font-size: 14px;
    line-height: 1.5;
  }

  table:not(.services-table):not(#service-table) thead th {
    max-width: none;
    padding-block: 23px;
    padding-inline: 20px;
    font-size: 16px;
  }

  .dash-table__table:not(.services-table) .orders-table__th--link,
  .dash-table__table:not(.services-table) .orders-table__td--link {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    overflow: hidden;
  }

  .dash-table__table:not(.services-table) .orders-table__th--service,
  .dash-table__table:not(.services-table) .orders-table__td--service {
    width: 280px;
    min-width: 280px;
    max-width: 300px;
    overflow: hidden;
  }

  .orders-table__th--check,
  .orders-table__td--check {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
  }

  .orders-page .orders-table .dash-table__th--id,
  .orders-page .orders-table .dash-table__td--id {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    padding-block: 23px;
    padding-inline-start: 0;
    padding-left: 0;
    padding-inline-end: 12px;
    padding-right: 12px;
  }

  .orders-page .orders-table thead th:nth-child(3),
  .orders-page .orders-table tbody td:nth-child(3) {
    width: 168px;
    min-width: 168px;
    max-width: 168px;
    white-space: nowrap;
  }

  .orders-page .orders-table thead th:nth-child(5),
  .orders-page .orders-table tbody td:nth-child(5) {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    white-space: nowrap;
  }

  .orders-page .orders-table thead th:nth-child(6),
  .orders-page .orders-table tbody td:nth-child(6) {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    white-space: nowrap;
  }

  .orders-page .orders-table thead th:nth-child(7),
  .orders-page .orders-table tbody td:nth-child(7) {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    white-space: nowrap;
  }

  .orders-page .orders-table thead th:nth-child(8),
  .orders-page .orders-table tbody td:nth-child(8) {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    white-space: nowrap;
  }

  .orders-page .orders-table .orders-table__th--status,
  .orders-page .orders-table .orders-table__td--status {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
  }

  .orders-page .orders-table .dash-table__th--action,
  .orders-page .orders-table .dash-table__td--action {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
  }

  .orders-page .orders-table .dash-table__th.orders-table__th--status,
  .orders-page .orders-table .dash-table__th--action {
    max-width: none;
  }
}

/* Table headings: single line, no word-breaking (services table excluded) */
table:not(.services-table):not(#service-table) thead th {
  padding-block: 23px;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.dash-table__table thead tr {
  border-radius: 0;
  background-color: transparent;
  background-image: var(--dash-header-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.dash-table__th {
  height: 70px;
  padding-block: 23px;
  padding-inline: 20px;
  border: 0;
  overflow: hidden;
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-white);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.dash-table__th--id {
  width: 300px;
  padding-left: 32px;
  padding-right: 32px;
}

.dash-table__th--action {
  width: 120px;
}

.dash-table__td {
  height: 74px;
  padding: 16px 20px;
  border: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
  vertical-align: middle;
}

.dash-table__td--id {
  padding-left: 32px;
  padding-right: 32px;
}

.dash-table__td--action {
  text-align: right;
}

.dash-table__table tbody tr:nth-child(odd) {
  background: var(--gmf-dash-bg);
}

.dash-table__table tbody tr:nth-child(even) {
  background: var(--gmf-white);
}

body.theme-dark .dash-table__table tbody tr:nth-child(odd) {
  background: #151515;
}

body.theme-dark .dash-table__table tbody tr:nth-child(even) {
  background: #0c0909;
}

body.theme-dark .dash-table__table tbody tr:nth-child(odd) > td,
body.theme-dark .dash-table__table tbody tr:nth-child(even) > td {
  background-color: inherit;
}

.dash-table__date,
.dash-table__time {
  display: block;
}

.dash-table__date {
  white-space: nowrap;
}

.dash-table__link {
  color: var(--gmf-teal);
  font-weight: 600;
  text-decoration: none;
}

.dash-table__link:hover,
.dash-table__link:focus {
  color: var(--gmf-teal-dark);
  text-decoration: underline;
}

/* Pagination — Figma 7600:25937 */
.dash-pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
}

.dash-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-pagination .pagination::before,
.dash-pagination .pagination::after {
  display: none;
  content: none;
}

.dash-pagination .pagination > li {
  float: none !important;
  display: flex;
  margin: 0;
}

.dash-pagination .pagination .dash-pagination__link,
.dash-pagination .pagination > li > a,
.dash-pagination .pagination > li > span,
.dash-pagination .pagination > li > .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 39px;
  height: 36px;
  padding: 8px 16px;
  border: 1px solid var(--gmf-border);
  border-radius: 8px;
  background: var(--gmf-dash-bg);
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: none;
}

.dash-pagination .pagination .dash-pagination__link:hover,
.dash-pagination .pagination .dash-pagination__link:focus,
.dash-pagination .pagination > li > a:hover,
.dash-pagination .pagination > li > a:focus,
.dash-pagination .pagination > li > .page-link:hover,
.dash-pagination .pagination > li > .page-link:focus {
  background: var(--gmf-dash-bg);
  border-color: var(--gmf-border);
  color: var(--gmf-text);
  text-decoration: none;
}

.dash-pagination .pagination > .active > a,
.dash-pagination .pagination > .active > span,
.dash-pagination .pagination > li.active > a,
.dash-pagination .pagination > li.active > .dash-pagination__link,
.dash-pagination .pagination > li.active > .page-link {
  background: var(--gmf-border);
  border-color: var(--gmf-border);
  color: var(--gmf-dash-bg);
}

.dash-pagination
  .pagination
  > li.dash-pagination__item--prev
  .dash-pagination__link,
.dash-pagination .pagination > li.dash-pagination__item--prev > a,
.dash-pagination .pagination > li.dash-pagination__item--prev > span {
  padding-inline: 10px 16px;
}

.dash-pagination
  .pagination
  > li.dash-pagination__item--next
  .dash-pagination__link,
.dash-pagination .pagination > li.dash-pagination__item--next > a,
.dash-pagination .pagination > li.dash-pagination__item--next > span {
  padding-inline: 16px 10px;
}

.dash-pagination
  .pagination
  > li.is-disabled
  .dash-pagination__link.is-disabled,
.dash-pagination .pagination > li.is-disabled > span.dash-pagination__link {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.dash-pagination__icon {
  flex-shrink: 0;
  display: block;
}

.dash-pagination__label {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .dash-pagination
    .pagination
    > li.dash-pagination__item--prev
    .dash-pagination__label,
  .dash-pagination
    .pagination
    > li.dash-pagination__item--next
    .dash-pagination__label {
    display: none;
  }

  .dash-pagination
    .pagination
    > li.dash-pagination__item--prev
    .dash-pagination__link,
  .dash-pagination
    .pagination
    > li.dash-pagination__item--next
    .dash-pagination__link {
    gap: 0;
    min-width: 36px;
    padding: 8px;
  }
}

/* Dash pagination — dark mode (Figma 7600:25937) */
body.theme-dark .dash-pagination .pagination .dash-pagination__link,
body.theme-dark .dash-pagination .pagination > li > a,
body.theme-dark .dash-pagination .pagination > li > span,
body.theme-dark .dash-pagination .pagination > li > .page-link {
  background: #151515;
  border-color: var(--gmf-border);
  color: #d2d2d2;
  box-shadow: none;
}

body.theme-dark .dash-pagination .pagination > li > a:hover,
body.theme-dark .dash-pagination .pagination > li > a:focus {
  background: #292425;
  border-color: var(--gmf-border);
  color: #ffffff;
}

body.theme-dark .dash-pagination .pagination > .active > a,
body.theme-dark .dash-pagination .pagination > .active > span,
body.theme-dark .dash-pagination .pagination > li.active > a,
body.theme-dark .dash-pagination .pagination > li.active > a:hover,
body.theme-dark .dash-pagination .pagination > li.active > a:focus,
body.theme-dark .dash-pagination .pagination > .active > a:hover,
body.theme-dark .dash-pagination .pagination > .active > a:focus {
  background: var(--gmf-border);
  border-color: var(--gmf-border);
  color: #ffffff;
}

body.theme-dark
  .dash-pagination
  .pagination
  > li.is-disabled
  .dash-pagination__link.is-disabled,
body.theme-dark
  .dash-pagination
  .pagination
  > li.is-disabled
  > span.dash-pagination__link {
  opacity: 0.4;
}

.addfunds-page .alert {
  border-radius: 12px;
}

.addfunds-page #amount::placeholder {
  color: #5a5a5a;
  opacity: 1;
}

/* Add Funds — dark mode colors only (Figma 5436:60959) */
body.theme-dark .addfunds-page .page-hero__title {
  color: #ffffff;
}

body.theme-dark .addfunds-page .page-hero__subtitle {
  color: #d2d2d2;
}

body.theme-dark .addfunds-page .dash-panel {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .addfunds-page .addfunds-grid > .dash-panel > .dash-form,
body.theme-dark .addfunds-page .support-cards {
  background: #1d1717;
}

body.theme-dark .addfunds-page .dash-form .control-label,
body.theme-dark .addfunds-page .dash-form label.control-label {
  color: #d2d2d2;
}

body.theme-dark .addfunds-page .dash-form .form-control {
  background: #1d1717;
  border-color: var(--gmf-border);
  color: #d2d2d2;
}

body.theme-dark .addfunds-page .dash-form .form-control:focus {
  border-color: var(--gmf-border);
  box-shadow: 0 0 0 2px rgba(255, 127, 0, 0.25);
  color: #ffffff;
}

body.theme-dark .addfunds-page .dash-select .form-control {
  background: #1d1717;
  color: #d2d2d2;
}

body.theme-dark .addfunds-page #amount::placeholder {
  color: #d2d2d2;
  opacity: 0.7;
}

body.theme-dark .addfunds-page .dash-panel__body--content {
  color: #d2d2d2;
}

body.theme-dark .addfunds-page .dash-table {
  background: #151515;
  border-color: var(--gmf-border);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.theme-dark .addfunds-page .dash-table__td {
  color: #d2d2d2;
}

body.theme-dark .addfunds-page .dash-table__link {
  color: #16a8b8;
}

body.theme-dark .addfunds-page .dash-table__link:hover,
body.theme-dark .addfunds-page .dash-table__link:focus {
  color: #21bacb;
}

body.theme-dark .addfunds-page .dash-empty__title {
  color: #ffffff;
}

body.theme-dark .addfunds-page .dash-empty__text {
  color: #d2d2d2;
}

.addfunds-transaction-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.addfunds-transaction-card {
  padding: 20px 16px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}

.addfunds-transaction-card__section--center {
  text-align: center;
}

.addfunds-transaction-card__section--center
  + .addfunds-transaction-card__section--center {
  margin-top: 16px;
}

.addfunds-transaction-card__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--gmf-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--gmf-text-muted);
}

.addfunds-transaction-card__value {
  display: block;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gmf-text);
  overflow-wrap: anywhere;
}

.addfunds-transaction-card__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 20px;
}

.addfunds-transaction-card__field--date {
  text-align: end;
}

.addfunds-transaction-card__value--amount {
  font-weight: 600;
  color: var(--gmf-orange);
}

.addfunds-transaction-card__value--date {
  font-size: 13px;
  line-height: 1.45;
}

.addfunds-transaction-card__invoice {
  margin-top: 16px;
  text-align: center;
}

.addfunds-transaction-card__invoice-link {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gmf-orange);
  text-decoration: none;
}

.addfunds-transaction-card__invoice-link:hover,
.addfunds-transaction-card__invoice-link:focus {
  text-decoration: underline;
}

body.theme-dark .addfunds-page .addfunds-transaction-card {
  background: #242931;
  border-color: var(--gmf-border);
}

body.theme-dark .addfunds-page .addfunds-transaction-card__label {
  color: #9ca3af;
}

body.theme-dark .addfunds-page .addfunds-transaction-card__value {
  color: #ffffff;
}

body.theme-dark .addfunds-page .addfunds-transaction-card__value--amount {
  color: var(--gmf-orange);
}

/* Add funds transactions: container-based responsive (addfunds page only) */
.addfunds-page .addfunds-transactions {
  container-type: inline-size;
  container-name: addfunds-transactions;
  width: 100%;
  min-width: 0;
}

.addfunds-page .addfunds-transaction-cards {
  display: none;
}

.addfunds-page .addfunds-transactions__table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@container addfunds-transactions (max-width: 47.9375rem) {
  .addfunds-page .addfunds-transaction-cards {
    display: flex;
  }

  .addfunds-page .addfunds-transactions__table-wrap {
    display: none;
  }
}

@container addfunds-transactions (min-width: 48rem) {
  .addfunds-page .addfunds-transactions__table-wrap .dash-table__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
  }

  .addfunds-page
    .addfunds-transactions__table-wrap
    .dash-table__table.addfunds-transactions__table {
    width: 100%;
    min-width: min(100%, 42rem);
  }
}

@container addfunds-transactions (min-width: 48rem) and (max-width: 56.25rem) {
  .addfunds-page
    .addfunds-transactions__table-wrap
    .dash-table__table.addfunds-transactions__table {
    min-width: 48rem;
  }

  .addfunds-page
    .addfunds-transactions__table-wrap
    table.addfunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__th {
    padding-inline: clamp(0.75rem, 2cqi, 1.25rem);
    font-size: clamp(0.875rem, 2.2cqi, 1rem);
  }

  .addfunds-page
    .addfunds-transactions__table-wrap
    table.addfunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__td {
    padding-inline: clamp(0.75rem, 2cqi, 1.25rem);
    font-size: clamp(0.8125rem, 2cqi, 0.875rem);
  }
}

@container addfunds-transactions (min-width: 56.25rem) {
  .addfunds-page
    .addfunds-transactions__table-wrap
    .dash-table__table.addfunds-transactions__table {
    min-width: 0;
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 767px) {
    .addfunds-page .addfunds-transaction-cards {
      display: flex;
    }

    .addfunds-page .addfunds-transactions__table-wrap {
      display: none;
    }
  }
}

/* Add funds payment history: keep full table layout (skip compact panel table rules) */
.addfunds-transactions__table-wrap .dash-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table {
  width: 100%;
  table-layout: fixed;
}

.addfunds-transactions__table-wrap
  table.addfunds-transactions__table.dash-table__table:not(#service-table)
  .dash-table__th,
.addfunds-transactions__table-wrap
  table.addfunds-transactions__table.dash-table__table:not(#service-table)
  .dash-table__td,
.addfunds-transactions__table-wrap
  table.addfunds-transactions__table.dash-table__table:not(#service-table)
  thead
  th.dash-table__th {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  text-align: start;
  vertical-align: middle;
}

.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table
  .dash-table__th,
.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table
  .dash-table__td {
  text-align: start;
}

.addfunds-transactions__table-wrap
  table.addfunds-transactions__table.dash-table__table:not(#service-table)
  thead
  th.dash-table__th {
  text-align: start;
}

.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table
  .dash-table__date,
.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table
  .dash-table__time {
  display: inline;
  text-align: start;
  white-space: nowrap;
}

.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table
  .dash-table__time {
  margin-inline-start: 0.35em;
}

/* Column split: date wide enough for full timestamp; method flexible */
.addfunds-transactions__table .addfunds-transactions__col--id {
  width: 9%;
}

.addfunds-transactions__table .addfunds-transactions__col--date {
  width: 21%;
}

.addfunds-transactions__table .addfunds-transactions__col--method {
  width: 46%;
}

.addfunds-transactions__table .addfunds-transactions__col--amount {
  width: 8%;
}

.addfunds-transactions__table .addfunds-transactions__col--invoice {
  width: 16%;
}

.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table
  .dash-table__th--id,
.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table
  .dash-table__td--id {
  width: 9%;
  min-width: 4.5rem;
  max-width: none;
  padding-inline: 16px;
  white-space: nowrap;
}

.addfunds-transactions__table-wrap
  .addfunds-transactions__table
  thead
  th:nth-child(2),
.addfunds-transactions__table-wrap
  .addfunds-transactions__table
  tbody
  td:nth-child(2) {
  width: 21%;
  min-width: 12.75rem;
  max-width: none;
  padding-inline-end: 12px;
  white-space: nowrap;
  overflow: visible;
}

.addfunds-transactions__table-wrap
  .addfunds-transactions__table
  thead
  th:nth-child(3),
.addfunds-transactions__table-wrap
  .addfunds-transactions__table
  tbody
  td:nth-child(3) {
  width: 46%;
  min-width: 0;
  max-width: none;
  padding-inline-start: 12px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.addfunds-transactions__table-wrap
  .addfunds-transactions__table
  thead
  th:nth-child(4),
.addfunds-transactions__table-wrap
  .addfunds-transactions__table
  tbody
  td:nth-child(4) {
  width: 8%;
  max-width: none;
  white-space: nowrap;
}

.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table
  .dash-table__th--action,
.addfunds-transactions__table-wrap
  .dash-table__table.addfunds-transactions__table
  .dash-table__td--action {
  width: 16%;
  max-width: none;
  white-space: nowrap;
  text-align: start;
}

@media (max-width: 1599px) and (min-width: 1300px) {
  .addfunds-transactions__table-wrap .dash-table__scroll {
    overflow-x: auto;
  }

  .addfunds-transactions__table-wrap
    .dash-table__table.addfunds-transactions__table {
    width: 100%;
    table-layout: fixed;
    font-size: 14px;
  }

  .addfunds-transactions__table-wrap
    table.addfunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__th,
  .addfunds-transactions__table-wrap
    table.addfunds-transactions__table.dash-table__table:not(#service-table)
    thead
    th.dash-table__th {
    max-width: none;
    height: auto;
    min-height: 72px;
    padding-block: 23px;
    padding-inline: 20px;
    font-size: 16px;
    line-height: 1.5;
    text-align: start;
  }

  .addfunds-transactions__table-wrap
    table.addfunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__td {
    max-width: none;
    height: auto;
    min-height: 74px;
    padding-block: 16px;
    padding-inline: 20px;
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 1299px) {
  .addfunds-transactions__table-wrap
    .dash-table__table.addfunds-transactions__table {
    width: 100%;
    table-layout: fixed;
  }

  .addfunds-transactions__table-wrap
    table.addfunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__th,
  .addfunds-transactions__table-wrap
    table.addfunds-transactions__table.dash-table__table:not(#service-table)
    thead
    th.dash-table__th {
    max-width: none;
    height: 72px;
    min-height: 72px;
    padding-block: 23px;
    padding-inline: 20px;
    font-size: 16px;
    line-height: 1.5;
    text-align: start;
  }

  .addfunds-transactions__table-wrap
    table.addfunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__td {
    max-width: none;
    height: auto;
    min-height: 74px;
    padding-block: 16px;
    padding-inline: 20px;
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Refunds table: same layout rules as add funds transactions */
.refunds-page .refunds-transactions {
  container-type: inline-size;
  container-name: refunds-transactions;
  width: 100%;
  min-width: 0;
}

.refunds-page .refunds-transactions__table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@container refunds-transactions (min-width: 48rem) {
  .refunds-page .refunds-transactions__table-wrap .dash-table__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
  }

  .refunds-page
    .refunds-transactions__table-wrap
    .dash-table__table.refunds-transactions__table {
    width: 100%;
    min-width: min(100%, 36rem);
  }
}

@container refunds-transactions (min-width: 48rem) and (max-width: 56.25rem) {
  .refunds-page
    .refunds-transactions__table-wrap
    .dash-table__table.refunds-transactions__table {
    min-width: 42rem;
  }

  .refunds-page
    .refunds-transactions__table-wrap
    table.refunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__th {
    padding-inline: clamp(0.75rem, 2cqi, 1.25rem);
    font-size: clamp(0.875rem, 2.2cqi, 1rem);
  }

  .refunds-page
    .refunds-transactions__table-wrap
    table.refunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__td {
    padding-inline: clamp(0.75rem, 2cqi, 1.25rem);
    font-size: clamp(0.8125rem, 2cqi, 0.875rem);
  }
}

@container refunds-transactions (min-width: 56.25rem) {
  .refunds-page
    .refunds-transactions__table-wrap
    .dash-table__table.refunds-transactions__table {
    min-width: 0;
  }
}

.refunds-transactions__table-wrap .dash-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.refunds-transactions__table-wrap
  .dash-table__table.refunds-transactions__table {
  width: 100%;
  table-layout: fixed;
}

.refunds-transactions__table-wrap
  table.refunds-transactions__table.dash-table__table:not(#service-table)
  .dash-table__th,
.refunds-transactions__table-wrap
  table.refunds-transactions__table.dash-table__table:not(#service-table)
  .dash-table__td,
.refunds-transactions__table-wrap
  table.refunds-transactions__table.dash-table__table:not(#service-table)
  thead
  th.dash-table__th {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  text-align: start;
  vertical-align: middle;
}

.refunds-transactions__table-wrap
  .dash-table__table.refunds-transactions__table
  .dash-table__th,
.refunds-transactions__table-wrap
  .dash-table__table.refunds-transactions__table
  .dash-table__td {
  text-align: start;
}

.refunds-transactions__table-wrap
  table.refunds-transactions__table.dash-table__table:not(#service-table)
  thead
  th.dash-table__th {
  text-align: start;
}

.refunds-transactions__table-wrap
  .dash-table__table.refunds-transactions__table
  .dash-table__date,
.refunds-transactions__table-wrap
  .dash-table__table.refunds-transactions__table
  .dash-table__time {
  display: inline;
  text-align: start;
  white-space: nowrap;
}

.refunds-transactions__table-wrap
  .dash-table__table.refunds-transactions__table
  .dash-table__time {
  margin-inline-start: 0.35em;
}

.refunds-transactions__table .refunds-transactions__col--id {
  width: 14%;
}

.refunds-transactions__table .refunds-transactions__col--amount {
  width: 16%;
}

.refunds-transactions__table .refunds-transactions__col--status {
  width: 22%;
}

.refunds-transactions__table .refunds-transactions__col--date {
  width: 28%;
}

.refunds-transactions__table-wrap
  .dash-table__table.refunds-transactions__table
  .dash-table__th--id,
.refunds-transactions__table-wrap
  .dash-table__table.refunds-transactions__table
  .dash-table__td--id {
  width: 14%;
  min-width: 4.5rem;
  max-width: none;
  padding-inline: 16px;
  white-space: nowrap;
}

.refunds-transactions__table-wrap
  .refunds-transactions__table
  thead
  th:nth-child(2),
.refunds-transactions__table-wrap
  .refunds-transactions__table
  tbody
  td:nth-child(2) {
  width: 16%;
  max-width: none;
  white-space: nowrap;
}

.refunds-transactions__table-wrap
  .refunds-transactions__table
  thead
  th:nth-child(3),
.refunds-transactions__table-wrap
  .refunds-transactions__table
  tbody
  td:nth-child(3) {
  width: 22%;
  min-width: 0;
  max-width: none;
  white-space: normal;
}

.refunds-transactions__table-wrap
  .refunds-transactions__table
  thead
  th:nth-child(4),
.refunds-transactions__table-wrap
  .refunds-transactions__table
  tbody
  td:nth-child(4) {
  width: 28%;
  min-width: 12.75rem;
  max-width: none;
  padding-inline-end: 12px;
  white-space: nowrap;
  overflow: visible;
}

.refunds-transactions__table-wrap .orders-table__id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.refunds-transactions__table-wrap .orders-table__id-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1599px) and (min-width: 1300px) {
  .refunds-transactions__table-wrap .dash-table__scroll {
    overflow-x: auto;
  }

  .refunds-transactions__table-wrap
    .dash-table__table.refunds-transactions__table {
    width: 100%;
    table-layout: fixed;
    font-size: 14px;
  }

  .refunds-transactions__table-wrap
    table.refunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__th,
  .refunds-transactions__table-wrap
    table.refunds-transactions__table.dash-table__table:not(#service-table)
    thead
    th.dash-table__th {
    max-width: none;
    height: auto;
    min-height: 72px;
    padding-block: 23px;
    padding-inline: 20px;
    font-size: 16px;
    line-height: 1.5;
    text-align: start;
  }

  .refunds-transactions__table-wrap
    table.refunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__td {
    max-width: none;
    height: auto;
    min-height: 74px;
    padding-block: 16px;
    padding-inline: 20px;
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 1299px) {
  .refunds-transactions__table-wrap
    .dash-table__table.refunds-transactions__table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .refunds-transactions__table-wrap
    table.refunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__th,
  .refunds-transactions__table-wrap
    table.refunds-transactions__table.dash-table__table:not(#service-table)
    thead
    th.dash-table__th {
    max-width: none;
    height: 72px;
    min-height: 72px;
    padding-block: 23px;
    padding-inline: 20px;
    font-size: 16px;
    line-height: 1.5;
    text-align: start;
  }

  .refunds-transactions__table-wrap
    table.refunds-transactions__table.dash-table__table:not(#service-table)
    .dash-table__td {
    max-width: none;
    height: auto;
    min-height: 74px;
    padding-block: 16px;
    padding-inline: 20px;
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 1199px) {
  .addfunds-grid {
    grid-template-columns: 1fr;
  }

  .addfunds-grid > .dash-panel {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .addfunds-page {
    gap: 16px;
  }

  .dash-form,
  .dash-panel__head,
  .support-cards {
    padding-left: 20px;
    padding-right: 20px;
  }

  .support-cards {
    gap: 10px;
  }

  .dash-form {
    padding-bottom: 20px;
  }

  .support-card {
    flex-direction: row;
    align-items: center;
  }

  .support-card--telegram {
    height: 132px;
  }

  .support-card--whatsapp {
    height: 127px;
  }

  .support-card__icon-wrap {
    align-self: center;
  }

  .dash-table__th--id,
  .dash-table__td--id {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 520px) {
  .support-card {
    gap: 12px;
    padding: 16px;
    overflow: hidden;
  }

  .support-card__copy {
    flex: 1;
    min-width: 0;
    gap: 4px;
    max-width: none;
  }

  .support-card__title {
    font-size: 16px;
    line-height: 1.3;
  }

  .support-card__desc {
    max-width: none;
    font-size: 11px;
    line-height: 1.35;
  }

  .support-card__icon-wrap {
    width: 48px;
    height: 48px;
    padding: 4px;
  }

  .support-card__icon {
    width: 40px;
    height: 40px;
  }
}

.rtl .dash-select__arrow {
  right: auto;
  left: 20px;
}

.rtl .dash-select .form-control {
  padding-right: 20px;
  padding-left: 48px;
}

.rtl .dash-table__th {
  text-align: center;
}

.rtl .dash-table__td {
  text-align: right;
}

.rtl .dash-table__td--action {
  text-align: left;
}

/* Provider payment modals use Bootstrap 3 `.in`; theme CSS only fades `.show` */
.modal-backdrop {
  z-index: 1060 !important;
}

.modal {
  z-index: 1070 !important;
}

.modal-backdrop.in,
.modal-backdrop.fade.in {
  opacity: 0.5;
}

body.modal-open .app-sidebar,
body.modal-open .app-sidebar-overlay {
  z-index: auto;
}

body.modal-open .app-sidebar-edge-toggle {
  z-index: 1040;
}

body.app-body--dashboard.modal-open .app-header {
  z-index: 1030;
}

/* Center provider verification modals on auth pages (Bootstrap 3 `.in` + BS5 `.show`) */
body.app-body--auth.modal-open .modal,
body.app-body--auth .modal.in,
body.app-body--auth .modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

body.app-body--auth.modal-open .modal .modal-dialog,
body.app-body--auth .modal.in .modal-dialog,
body.app-body--auth .modal.show .modal-dialog,
body.app-body--auth .modal.fade.in .modal-dialog {
  margin: 0 auto;
  transform: none !important;
  width: calc(100% - 32px);
  max-width: 500px;
}

body.app-body--auth .modal .modal-content {
  width: 100%;
}

body.app-body--auth .modal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

body.app-body--auth .modal .modal-body .form-group {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.app-body--auth .modal .modal-body .form-control {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

body.app-body--auth .modal .modal-body .g-recaptcha,
body.app-body--auth .modal .modal-body iframe,
body.app-body--auth .modal .modal-body .cf-turnstile {
  margin: 0 auto;
}

/* ==========================================================================
   Auth pages (signin / signup)
   ========================================================================== */

.auth-page {
  /* Scale from design size (556×~760px) to fit viewport; width & height stay in ratio */
  --auth-s: min(
    1,
    calc((100dvh - 4.5rem) / 47.5rem),
    calc((100vw - 2rem) / 34.75rem)
  );
  --auth-card-width: calc(34.75rem * var(--auth-s));
  --auth-form-width: 100%;
  --auth-card-padding-inline: 36px;
  --auth-card-padding-top: 40px;
  --auth-card-padding-bottom: 32px;
  --auth-header-gap: 12px;
  --auth-form-gap: calc(1.5rem * var(--auth-s));
  --auth-control-height: calc(3.5rem * var(--auth-s));
  --auth-submit-height: calc(3rem * var(--auth-s));
  --auth-ui-radius: calc(0.75rem * var(--auth-s));
  --auth-card-radius: calc(1.25rem * var(--auth-s));
  --auth-font-title: calc(2rem * var(--auth-s));
  --auth-font-body: calc(1rem * var(--auth-s));
  --auth-font-small: calc(0.875rem * var(--auth-s));
  width: var(--auth-card-width);
  min-width: 0;
  max-width: min(var(--auth-card-width), 100%);
  margin-top: 16px;
  margin-inline: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: calc(1.25rem * var(--auth-s));
  padding-block-end: calc(1.5rem * var(--auth-s));
  padding-block-start: 0;
  box-sizing: border-box;
}

.auth-card {
  width: var(--auth-card-width);
  min-width: 0;
  max-width: var(--auth-card-width);
  padding-top: var(--auth-card-padding-top);
  padding-bottom: var(--auth-card-padding-bottom);
  padding-inline: var(--auth-card-padding-inline);
  flex-shrink: 0;
  border: 1px solid var(--gmf-border);
  border-radius: var(--auth-card-radius);
  background: var(--gmf-dash-bg);
  box-shadow: 0 4px 4px rgba(255, 127, 0, 0.25);
  box-sizing: border-box;
}

.auth-card--content {
  padding: 30px;
  color: var(--gmf-text);
  font-size: 14px;
  line-height: 1.5;
}

.auth-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(0.5rem * var(--auth-s));
  width: 100%;
  margin-bottom: var(--auth-header-gap);
  text-align: center;
  flex-shrink: 0;
}

.auth-card__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: var(--auth-font-title);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: calc(-0.08rem * var(--auth-s));
  color: var(--gmf-text);
}

.auth-card__subtitle {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: var(--auth-font-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.auth-card__subtitle--single-line {
  white-space: nowrap;
  font-size: var(--auth-font-small);
}

.auth-card__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--auth-form-gap);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}

.auth-card__form--compact {
  gap: 12px;
}

.auth-card__form .auth-field__input.form-control {
  margin: 0;
}

.auth-card__form > input[type='hidden'] {
  display: none;
}

.auth-card__google-onload {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.auth-card__google {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: var(--auth-control-height);
  flex-shrink: 0;
}

.auth-card__google-btn {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.5rem * var(--auth-s));
  height: var(--auth-control-height);
  padding: calc(0.875rem * var(--auth-s)) calc(1.25rem * var(--auth-s));
  border: 1px solid var(--gmf-border);
  border-radius: var(--auth-ui-radius);
  background: var(--gmf-dash-bg);
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
  font-size: var(--auth-font-body);
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  box-sizing: border-box;
}

.auth-card__google-btn img {
  display: block;
  width: calc(1.25rem * var(--auth-s));
  height: calc(1.25rem * var(--auth-s));
  flex-shrink: 0;
}

.auth-card__google-widget {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: var(--auth-control-height);
  overflow: hidden;
  border-radius: var(--auth-ui-radius);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card__google.is-google-ready .auth-card__google-widget {
  visibility: visible !important;
}

.auth-card__google-widget .g_id_signin {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: var(--auth-control-height) !important;
  margin: 0 !important;
  overflow: hidden;
  opacity: 0 !important;
  pointer-events: none !important;
}

.auth-card__google-widget .g_id_signin > div {
  width: 100% !important;
  height: var(--auth-control-height) !important;
  margin: 0 !important;
  opacity: 0 !important;
}

.auth-card__google-widget iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--auth-control-height) !important;
  min-width: 100% !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.auth-card__google-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--auth-ui-radius);
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: none;
}

.auth-card__google-hit:focus,
.auth-card__google-hit:focus-visible,
.auth-card__google-hit:active {
  outline: none;
  box-shadow: none;
}

.auth-field__eye:focus,
.auth-field__eye:focus-visible,
.auth-field__eye:active {
  outline: none;
  box-shadow: none;
}

.auth-back-home:focus,
.auth-back-home:focus-visible,
.auth-back-home:active {
  outline: none;
  box-shadow: none;
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: calc(1rem * var(--auth-s));
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

.auth-card__divider-line {
  flex: 1;
  height: 1px;
  background: var(--gmf-border);
  opacity: 0.45;
}

.auth-card__divider-text {
  font-family: var(--gmf-font-body);
  font-size: var(--auth-font-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
}

.auth-card__fields {
  display: flex;
  flex-direction: column;
  gap: calc(1rem * var(--auth-s));
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-card__fields--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(0.75rem * var(--auth-s));
  row-gap: calc(1rem * var(--auth-s));
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-field--full {
  grid-column: 1 / -1;
}

.auth-field--half {
  grid-column: span 1;
}

.auth-field__hint {
  grid-column: 1 / -1;
  margin: calc(-0.375rem * var(--auth-s)) 0 0;
  font-family: var(--gmf-font-body);
  font-size: calc(0.75rem * var(--auth-s));
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.auth-field__input[readonly] {
  background: var(--gmf-cream);
  cursor: default;
}

.auth-card__terms {
  grid-column: 1 / -1;
  margin: 0;
}

.auth-card__terms .auth-field__remember-text {
  font-size: var(--auth-font-small);
  line-height: 1.5;
  white-space: normal;
}

.auth-card__terms .auth-field__remember-text a {
  color: var(--gmf-orange);
  font-weight: 600;
  text-decoration: underline;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: calc(0.625rem * var(--auth-s));
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.auth-field__label {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: var(--auth-font-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
}

.auth-field__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 16px;
}

.auth-field__remember {
  position: relative;
  display: inline-grid;
  grid-template-columns: 16px auto;
  align-items: center;
  column-gap: 8px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.auth-field__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  outline: none;
  box-shadow: none;
}

.auth-field__checkbox:focus,
.auth-field__checkbox:active,
.auth-field__checkbox:checked {
  outline: none;
  box-shadow: none;
}

.auth-field__checkbox-ui {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gmf-border);
  border-radius: 4px;
  background: transparent;
  box-sizing: border-box;
  flex-shrink: 0;
}

.auth-field__checkbox:checked + .auth-field__checkbox-ui {
  background: var(--gmf-orange);
  border-color: var(--gmf-orange);
}

.auth-field__checkbox:checked + .auth-field__checkbox-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--gmf-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-field__checkbox:focus-visible + .auth-field__checkbox-ui {
  box-shadow: none;
}

.auth-field__remember-text {
  display: block;
  height: 16px;
  font-family: var(--gmf-font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--gmf-text-muted);
}

.auth-field__forgot {
  display: inline-flex;
  align-items: center;
  font-family: var(--gmf-font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--gmf-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.auth-field__forgot:hover,
.auth-field__forgot:focus {
  color: var(--gmf-orange);
  text-decoration: underline;
}

.auth-field__remember:hover .auth-field__remember-text,
.auth-field__remember:focus-within .auth-field__remember-text {
  color: var(--gmf-text);
}

.auth-field__password {
  position: relative;
  width: 100%;
  max-width: var(--auth-form-width);
  flex-shrink: 0;
}

.auth-field__input.form-control {
  display: block;
  width: 100%;
  max-width: var(--auth-form-width);
  height: var(--auth-control-height);
  padding: calc(0.875rem * var(--auth-s)) calc(1.25rem * var(--auth-s));
  border: 1px solid var(--gmf-border);
  border-radius: var(--auth-ui-radius);
  background: var(--gmf-dash-bg);
  box-shadow: none;
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
  font-size: var(--auth-font-small);
  font-weight: 500;
  line-height: 1.5;
  box-sizing: border-box;
  flex-shrink: 0;
}

.auth-field__password .auth-field__input.form-control {
  padding-right: calc(3.25rem * var(--auth-s));
}

.auth-field__input.form-control::placeholder {
  color: var(--gmf-text-muted);
}

.auth-field__input.form-control:focus {
  border-color: var(--gmf-border);
  box-shadow: 0 0 0 2px var(--gmf-orange-15);
  outline: none;
}

.auth-field__eye {
  position: absolute;
  top: 50%;
  right: calc(1rem * var(--auth-s));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(1.25rem * var(--auth-s));
  height: calc(1.25rem * var(--auth-s));
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-field__eye img {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-card__captcha {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-card__captcha > * {
  margin: 0 auto;
}

.auth-card__submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: var(--auth-submit-height);
  flex-shrink: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: var(--auth-ui-radius);
  background: linear-gradient(99.88deg, #461d04 1.18%, #ff7f00 89.1%);
  background-image: linear-gradient(99.88deg, #461d04 1.18%, #ff7f00 89.1%);
  color: var(--gmf-white);
  font-family: var(--gmf-font-body);
  font-size: var(--auth-font-body);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.auth-card__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  transition: background-color 0.2s ease;
  pointer-events: none;
}

.auth-card__submit:hover {
  background: linear-gradient(99.88deg, #461d04 1.18%, #ff7f00 89.1%);
  background-image: linear-gradient(99.88deg, #461d04 1.18%, #ff7f00 89.1%);
  filter: none;
  box-shadow: none;
  color: var(--gmf-white);
}

.auth-card__submit:focus,
.auth-card__submit:focus-visible,
.auth-card__submit:active {
  background: linear-gradient(99.88deg, #461d04 1.18%, #ff7f00 89.1%);
  background-image: linear-gradient(99.88deg, #461d04 1.18%, #ff7f00 89.1%);
  filter: none;
  box-shadow: none;
  outline: none;
  color: var(--gmf-white);
}

.auth-card__submit:hover::before {
  background-color: rgba(255, 255, 255, 0.08);
}

.auth-card__submit:focus::before,
.auth-card__submit:focus-visible::before,
.auth-card__submit:active::before {
  background-color: transparent;
}

.auth-card__footer {
  margin: 0;
  text-align: center;
  font-family: var(--gmf-font-body);
  font-size: var(--auth-font-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
}

.auth-card__footer a {
  color: var(--gmf-orange);
  font-weight: 600;
  text-decoration: underline;
}

.auth-card__footer a:hover,
.auth-card__footer a:focus {
  color: var(--gmf-orange);
}

.auth-card .alert {
  border-radius: 12px;
}

/* Center the card in the viewport; avoid a nested scroll pane when the form fits */
@media (min-width: 768px) {
  html:has(body.app-body--auth) {
    overflow: auto;
    height: auto;
    min-height: 100%;
  }

  body.app-body--auth {
    overflow: visible;
    height: auto;
    min-height: 100dvh;
    max-height: none;
  }

  body.app-body--auth > main.app-content--auth {
    overflow: visible;
    max-height: none;
    min-height: 100dvh;
  }

  .app-content--auth {
    overflow-x: visible;
    overflow-y: visible;
  }

  @media (max-width: 920px) {
    body.app-body--auth .auth-page {
      margin-top: 86px;
    }
  }
}

@media (max-width: 767px) {
  html:has(body.app-body--auth) {
    overflow: auto;
    height: auto;
    min-height: 100%;
  }

  body.app-body--auth {
    overflow: visible;
    height: auto;
    min-height: 100dvh;
    max-height: none;
  }

  body.app-body--auth > main.app-content--auth {
    overflow: visible;
    max-height: none;
  }

  body.app-body--auth {
    --auth-back-top: max(16px, env(safe-area-inset-top, 0px));
    --auth-back-chip-height: 36px;
    --auth-back-gap: 12px;
    --auth-content-offset-top: calc(
      var(--auth-back-top) + var(--auth-back-chip-height) + var(--auth-back-gap)
    );
    --auth-back-inline-offset: 16px;
    --auth-back-inline-size: 6.75rem;
  }

  .app-content--auth {
    padding-block-start: 0;
    padding-block-end: max(24px, env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
    align-items: center;
    min-height: 100dvh;
    overflow: visible;
    overscroll-behavior: auto;
  }

  .auth-page {
    --auth-mobile-available-w: calc(
      100vw - 2.75rem - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    );
    /* Narrower card; extra vertical rhythm (content-sized height) */
    --auth-s: 1;
    --auth-card-width: min(31.5rem, calc(var(--auth-mobile-available-w) * 0.9));
    --auth-form-width: 100%;
    --auth-card-padding-inline: 36px;
    --auth-card-padding-top: 40px;
    --auth-card-padding-bottom: 32px;
    --auth-header-gap: 12px;
    --auth-form-gap: 1.375rem;
    --auth-control-height: 3.25rem;
    --auth-submit-height: 2.875rem;
    --auth-ui-radius: 0.75rem;
    --auth-card-radius: 1.25rem;
    --auth-font-title: 1.625rem;
    --auth-font-body: 1rem;
    --auth-font-small: 0.8125rem;
    gap: 1.25rem;
    width: var(--auth-card-width);
    max-width: var(--auth-mobile-available-w);
    padding-block: 0;
    margin-top: var(--auth-content-offset-top);
    margin-inline: auto;
    flex: 0 0 auto;
  }

  .auth-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: var(--auth-card-width);
    height: auto;
    max-width: var(--auth-mobile-available-w);
    max-height: none;
    padding-top: var(--auth-card-padding-top);
    padding-bottom: var(--auth-card-padding-bottom);
    padding-inline: var(--auth-card-padding-inline);
    box-sizing: border-box;
    overflow: visible;
  }

  .auth-card__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--auth-form-gap);
    flex: 0 0 auto;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .auth-page .auth-card__fields,
  .auth-page .auth-card__fields--grid {
    max-height: none;
    overflow: visible;
  }

  .auth-card__form,
  .auth-card__fields,
  .auth-card__fields--grid,
  .auth-card__google,
  .auth-card__divider,
  .auth-card__submit {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: 0;
  }

  .auth-card__fields--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-field__input.form-control,
  .auth-field__password {
    max-width: 100%;
  }

  .auth-page .auth-card__header {
    width: 100%;
    gap: 0.375rem;
  }

  .auth-page .auth-card__title {
    letter-spacing: -0.04rem;
  }

  .auth-page .auth-card__subtitle {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .auth-page .auth-field__label {
    font-size: 0.875rem;
  }

  .auth-page .auth-field__input.form-control {
    padding: 0.625rem 1rem;
    font-size: var(--auth-font-small);
  }

  .auth-page .auth-field__password .auth-field__input.form-control {
    padding-right: 2.75rem;
  }

  .auth-page .auth-field__eye {
    right: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
  }

  .auth-page .auth-card__submit {
    font-size: 0.9375rem;
  }

  .auth-page .auth-field {
    gap: 0.625rem;
    width: 100%;
  }

  .auth-page .auth-card__fields {
    gap: 1.125rem;
    width: 100%;
  }

  .auth-page .auth-card__divider {
    gap: 0.75rem;
  }

  .auth-page .auth-card__divider-text {
    font-size: 0.875rem;
  }

  .auth-page .auth-card__google-btn {
    gap: 0.4375rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }

  .auth-page .auth-card__google-btn img {
    width: 1.125rem;
    height: 1.125rem;
  }

  .auth-field__options {
    min-height: 1rem;
    gap: 0.75rem;
  }

  .auth-page .auth-field__remember {
    column-gap: 0.5rem;
    grid-template-columns: 1rem auto;
  }

  .auth-page .auth-field__checkbox-ui {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
  }

  .auth-field__remember-text,
  .auth-field__forgot {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .auth-page .auth-card__footer {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .auth-field__remember-text {
    height: auto;
  }

  .auth-card__header {
    flex-shrink: 0;
    margin-bottom: var(--auth-header-gap);
  }

  .auth-card__subtitle--single-line {
    white-space: normal;
  }

  .auth-back-home {
    top: var(--auth-back-top);
    right: 16px;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    font-size: 14px;
  }

  .auth-back-home__icon-wrap {
    width: 28px;
    height: 28px;
  }

  .auth-back-home__icon {
    width: 6px;
    height: 10px;
  }

  .rtl .auth-back-home {
    right: auto;
    left: 16px;
    padding: 4px 4px 4px 14px;
  }

  @media (max-width: 500px) {
    .app-content--auth {
      padding-inline-start: max(24px, env(safe-area-inset-left, 0px));
      padding-inline-end: max(24px, env(safe-area-inset-right, 0px));
    }

    .auth-card__fields--grid {
      grid-template-columns: 1fr;
    }

    .auth-card__fields--grid .auth-field--half {
      grid-column: 1 / -1;
    }

    .auth-page {
      --auth-control-height: 2.75rem;
      --auth-submit-height: 2.5rem;
    }

    .auth-page .auth-field__label {
      font-size: 0.8125rem;
    }

    .auth-page .auth-field {
      gap: 0.5rem;
    }

    .auth-page .auth-field__input.form-control {
      height: var(--auth-control-height);
      min-height: var(--auth-control-height);
      padding: 0.5rem 0.875rem;
      font-size: 0.8125rem;
    }

    .auth-page .auth-field__password .auth-field__input.form-control {
      padding-right: 2.25rem;
    }

    .auth-page .auth-field__eye {
      right: 0.75rem;
      width: 1rem;
      height: 1rem;
    }

    .auth-page .auth-card__google {
      height: var(--auth-control-height);
    }

    .auth-page .auth-card__google-btn {
      height: var(--auth-control-height);
      padding: 0.5rem 0.875rem;
      font-size: 0.875rem;
    }

    .auth-page .auth-card__google-btn img {
      width: 1rem;
      height: 1rem;
    }

    .auth-page .auth-card__submit {
      height: var(--auth-submit-height);
      min-height: var(--auth-submit-height);
      font-size: 0.875rem;
    }
  }

  @media (max-width: 480px) {
    .auth-page {
      --auth-card-width: min(500px, var(--auth-mobile-available-w));
      --auth-form-gap: 12px;
      --auth-card-padding-inline: 36px;
      --auth-card-padding-top: 40px;
      --auth-card-padding-bottom: 32px;
      width: var(--auth-card-width);
      max-width: min(500px, var(--auth-mobile-available-w));
    }

    .auth-page .auth-card {
      width: var(--auth-card-width);
      max-width: min(500px, var(--auth-mobile-available-w));
      padding-top: var(--auth-card-padding-top);
      padding-bottom: var(--auth-card-padding-bottom);
      padding-inline: var(--auth-card-padding-inline);
    }
  }

  @media (max-width: 450px) {
    .auth-page {
      --auth-font-title: 1.375rem;
    }

    .auth-page .auth-card__title {
      letter-spacing: -0.03rem;
    }

    .auth-page .auth-card__subtitle {
      font-size: 0.8125rem;
      line-height: 1.4;
    }

    .auth-page .auth-card__header {
      gap: 0.3125rem;
    }
  }

  @media (max-width: 420px) {
    .auth-page {
      --auth-card-padding-inline: 20px;
    }
  }
}

/* ==========================================================================
   Services page
   ========================================================================== */

.services-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.services-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 28px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.04);
}

.services-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(480px, 50%);
}

.services-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 6px 32px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.services-toolbar__btn--filter {
  width: auto;
  min-width: 140px;
  max-width: 100%;
  border: none;
  background: linear-gradient(93deg, #461d04 1%, #ff7f00 89%);
  color: var(--gmf-white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  justify-content: flex-start;
}

.services-toolbar__btn--filter .services-toolbar__btn-icon {
  width: 14px;
  height: 14px;
}

.services-toolbar__btn--currency {
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: none;
  min-width: 140px;
  height: 52px;
  padding: 8px 16px;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  overflow: visible;
}

.services-toolbar__btn--currency .services-toolbar__btn-icon--sm {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.services-toolbar__btn--currency .services-toolbar__btn-label,
.services-toolbar__btn--currency .services-toolbar__currency-label {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  text-align: center;
}

.services-toolbar__currency-chevron {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #232323;
}

.services-toolbar__btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.services-toolbar__btn-icon--sm {
  width: 20px;
  height: 20px;
}

.services-toolbar__btn-label {
  flex-shrink: 0;
}

.services-toolbar__chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.services-toolbar__filter {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
}

.services-toolbar__currency {
  position: relative;
  flex: 0 0 auto;
  z-index: 5;
}

.services-toolbar__currency.open {
  z-index: 1060;
}

a.services-toolbar__btn {
  text-decoration: none;
  color: inherit;
}

.services-toolbar__btn--currency .services-toolbar__chevron {
  display: block;
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%);
}

.services-toolbar__dropdown > li > a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  color: var(--gmf-text);
  font-size: 14px;
  line-height: 1.4;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration: none;
}

.services-toolbar__dropdown > li > a:hover,
.services-toolbar__dropdown > li > a:focus {
  background: var(--gmf-orange-08);
  color: var(--gmf-text);
}

.services-toolbar__filter-active:not(:empty)::before {
  content: none;
  margin: 0;
}

.services-toolbar__filter-active {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.services-toolbar__filter-active:not(:empty) {
  font-size: 16px;
}

.services-toolbar__btn--filter:has(.services-toolbar__filter-active:not(:empty))
  .services-toolbar__btn-label {
  display: none;
}

.services-toolbar__dropdown {
  width: min(280px, calc(100vw - 48px));
  min-width: 200px;
  max-width: min(280px, calc(100vw - 48px));
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.services-toolbar__filter .dropdown-menu.services-toolbar__dropdown {
  width: min(280px, calc(100vw - 48px)) !important;
  max-width: min(280px, calc(100vw - 48px)) !important;
}

.services-toolbar__dropdown .dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  color: var(--gmf-text);
  font-size: 14px;
  line-height: 1.4;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.services-toolbar__dropdown .dropdown-item > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.services-toolbar__dropdown .dropdown-item:hover,
.services-toolbar__dropdown .dropdown-item:focus {
  background: var(--gmf-orange-08);
  color: var(--gmf-text);
}

.services-toolbar__search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
}

.services-toolbar__search-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
}

.services-toolbar__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.services-toolbar__search-input::placeholder {
  color: #232323;
  opacity: 1;
}

.services-toolbar__search .form-control:focus,
.services-toolbar__search .form-control:focus-visible,
.services-toolbar__search-input:focus,
.services-toolbar__search-input:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent;
  outline: none;
  box-shadow: none !important;
}

.services-toolbar__search-btn {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.services-table-card {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Auto layout: every column except service is exactly as wide as its one-line content.
   The service column's 100% width makes it take all remaining space, so it is the only one
   that shrinks (down to --services-name-min, with names wrapping); past that the table
   overflows and .services-table-card scrolls. */
.services-table {
  --services-cell-px: 16px;
  --services-name-min: 200px;
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}

.services-table.table {
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-color: var(--gmf-text);
  --bs-table-border-color: transparent;
  margin-bottom: 0;
}

.services-table.table > :not(caption) > * > * {
  box-shadow: none;
}

.services-table__col--id,
.services-table__col--rate,
.services-table__col--min,
.services-table__col--max,
.services-table__col--time,
.services-table__col--actions {
  width: auto;
}

.services-table__col--name {
  width: 100%;
}

.services-table__id,
.services-table__actions {
  white-space: nowrap;
}

.services-table thead {
  background-color: #321401;
  background-image:
    var(--services-table-header-bg, none),
    linear-gradient(168deg, #321401 6.76%, #a1480b 49.41%, #321401 92.57%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.services-table thead tr {
  background: transparent;
}

#service-table > thead > tr > th.services-table__th {
  height: auto;
  min-height: 72px;
  padding: 0;
  border: 0 !important;
  overflow: hidden;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  background: transparent !important;
  background-image: none !important;
  color: var(--gmf-white) !important;
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: start !important;
  vertical-align: middle !important;
}

.services-table__th-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  align-content: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 72px;
  height: auto;
  padding-block: 16px;
  padding-inline: var(--services-cell-px);
  box-sizing: border-box;
  text-align: start;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.35;
  hyphens: none;
}

.services-table__service-row {
  content-visibility: auto;
  contain-intrinsic-size: auto 52px;
}

.services-table tbody tr:not(.services-table__category-row) {
  background: var(--gmf-dash-bg);
}

.services-table__category-row > td {
  padding: 0 !important;
  border-top: 1px solid rgba(143, 84, 46, 0.2) !important;
  border-bottom: 1px solid rgba(143, 84, 46, 0.2) !important;
  background: rgba(243, 243, 243, 0.75) !important;
}

.services-table__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 16px 30px 16px var(--services-cell-px);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s ease;
}

.services-table__category-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.services-table__category:hover,
.services-table__category:focus {
  background: rgba(255, 127, 0, 0.06);
  outline: none;
}

.services-table__category-chevron {
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.services-table__category-row.is-collapsed .services-table__category-chevron {
  transform: rotate(-90deg);
}

.services-table__category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.services-table__category-icon--image {
  object-fit: contain;
}

.services-table__category strong {
  font-family: var(--gmf-font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
}

.services-table tbody tr:not(.services-table__category-row) > td {
  height: 52px;
  padding: 12px var(--services-cell-px);
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  color: #202020;
  font-family: var(--gmf-font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
}

.services-table__rate,
.services-table__min,
.services-table__max,
.services-table__time {
  text-align: start;
}

.services-table__rate,
.services-table__min,
.services-table__max,
.services-table__time {
  white-space: nowrap;
}

.services-table
  tbody
  tr:not(.services-table__category-row)
  > td.services-table__time,
.services-table__th--time .services-table__th-label {
  padding-inline-end: calc(var(--services-cell-px) - 2px);
}

.services-table__th--max .services-table__th-label {
  padding-inline-end: max(10px, var(--services-cell-px));
}

.services-table__th--time .services-table__th-label {
  padding-inline-start: 10px;
}

#service-table > tbody > tr > td.services-table__max,
#service-table > thead > tr > th.services-table__th--max {
  text-align: start !important;
  min-width: max-content;
}

#service-table > tbody > tr > td.services-table__max {
  padding-inline-end: max(10px, var(--services-cell-px));
}

#service-table > tbody > tr > td.services-table__time {
  padding-inline-start: 10px;
}

#service-table
  > thead
  > tr
  > th.services-table__th--max
  .services-table__th-label {
  justify-content: flex-start;
}

#service-table > thead > tr > th.services-table__th--id {
  text-align: center !important;
}

.services-table__th--id .services-table__th-label {
  justify-content: center;
  text-align: center;
}

.services-table__id {
  text-align: center;
}

.services-table__id-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.services-table__id-inner [role='button'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--gmf-text-muted);
  line-height: 1;
}

.services-table__id-inner .favorite-active,
.services-table__id-inner .fas.fa-star {
  color: var(--gmf-orange);
}

.services-table__th--name .services-table__th-label {
  min-width: var(--services-name-min);
}

.services-table__name {
  text-align: start;
  word-break: normal;
  overflow-wrap: anywhere;
}

.services-table__th--actions .services-table__th-label {
  padding-inline: 10px;
}

.services-table
  tbody
  tr:not(.services-table__category-row)
  > td.services-table__actions {
  padding-block: 8px;
  padding-inline: 10px;
}

.services-table__action-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.services-table__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    background 0.2s ease;
}

.services-table__btn--view {
  border: 1px solid var(--gmf-border);
  background: var(--gmf-dash-bg);
  color: var(--gmf-text);
}

.services-table__btn--view:hover,
.services-table__btn--view:focus {
  background: var(--gmf-orange-08);
  color: var(--gmf-text);
}

.services-table__btn--order {
  border: 0;
  background: var(--gmf-orange);
  color: var(--gmf-white);
}

.services-table__btn--order:hover,
.services-table__btn--order:focus {
  color: var(--gmf-white);
  filter: brightness(1.05);
}

@media (max-width: 1449px) {
  .services-table {
    --services-cell-px: 10px;
  }

  #service-table > thead > tr > th.services-table__th {
    font-size: 13px;
  }
}

@media (max-width: 1249px) {
  .services-table
    tbody
    tr:not(.services-table__category-row)
    > td:not(.services-table__id):not(.services-table__name):not(
      .services-table__actions
    ),
  .services-table
    tbody
    tr:not(.services-table__category-row)
    > td.services-table__time {
    padding-inline: 0;
  }

  #service-table
    > thead
    > tr
    > th:not(.services-table__th--id):not(.services-table__th--name):not(
      .services-table__th--actions
    )
    .services-table__th-label {
    padding-inline: 5px;
  }

  #service-table > tbody > tr > td.services-table__max {
    padding-inline-start: 0;
    padding-inline-end: 10px;
  }

  #service-table > tbody > tr > td.services-table__time {
    padding-inline-start: 10px;
    padding-inline-end: 0;
  }

  #service-table
    > thead
    > tr
    > th.services-table__th--max
    .services-table__th-label {
    padding-inline-start: 5px;
    padding-inline-end: 10px;
  }

  #service-table
    > thead
    > tr
    > th.services-table__th--time
    .services-table__th-label {
    padding-inline-start: 10px;
    padding-inline-end: 5px;
  }
}

.services-page__text {
  width: 100%;
}

.services-page__text-card {
  padding: 30px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text);
}

@media (max-width: 1199px) {
  .services-toolbar {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .services-toolbar__search {
    flex: 1 1 auto;
    min-width: 0;
  }

  .services-page .services-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .services-table {
    min-width: 1100px;
  }
}

@media (max-width: 767px) {
  .services-page {
    gap: 16px;
  }

  .services-toolbar {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 16px 20px;
  }

  .services-toolbar__actions {
    display: flex;
    width: 100%;
    max-width: none;
    flex: none;
  }

  .services-toolbar__filter {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
  }

  .services-toolbar__btn {
    min-width: 0;
    padding-inline: 20px;
  }

  .services-toolbar__btn--filter {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-content: flex-start;
  }

  .services-toolbar__filter .dropdown-menu.services-toolbar__dropdown,
  .services-toolbar__dropdown {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: auto !important;
  }

  .services-toolbar__search {
    width: 100%;
    flex: none;
  }

  .services-table__category {
    padding-inline-end: var(--services-cell-px);
  }
}

/* Services page — dark mode (colors only; matches services Figma) */
body.theme-dark .services-page .page-hero__title {
  color: #ffffff;
}

body.theme-dark .services-page .page-hero__subtitle {
  color: #d2d2d2;
}

body.theme-dark .services-toolbar {
  background: #1d1717;
  border-color: var(--gmf-border);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

body.theme-dark .services-toolbar__btn--currency {
  background: #151515;
  border: 1px solid var(--gmf-border);
  color: #ffffff;
}

body.theme-dark .services-toolbar__btn--filter {
  background: linear-gradient(93deg, #461d04 1%, #ff7f00 89%);
  border: none;
  color: var(--gmf-white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

body.theme-dark .services-toolbar__btn--currency:hover,
body.theme-dark .services-toolbar__btn--currency:focus {
  border-color: var(--gmf-orange);
  color: #ffffff;
}

body.theme-dark .services-toolbar__btn--currency .services-toolbar__btn-icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}

body.theme-dark
  .services-toolbar__btn--currency
  .services-toolbar__currency-chevron {
  color: #ffffff;
}

body.theme-dark .services-toolbar__btn--currency .services-toolbar__chevron {
  filter: brightness(0) invert(1);
}

body.theme-dark .services-toolbar__btn--currency .services-toolbar__btn-label,
body.theme-dark
  .services-toolbar__btn--currency
  .services-toolbar__currency-label {
  color: #ffffff;
}

body.theme-dark .services-toolbar__search-icon {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

body.theme-dark .services-toolbar__dropdown {
  background: #2a2526;
  border-color: var(--gmf-border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

body.theme-dark .services-toolbar__dropdown .dropdown-item {
  color: #d2d2d2;
}

body.theme-dark .services-toolbar__dropdown .dropdown-item:hover,
body.theme-dark .services-toolbar__dropdown .dropdown-item:focus,
body.theme-dark .services-toolbar__dropdown > li > a:hover,
body.theme-dark .services-toolbar__dropdown > li > a:focus {
  background: rgba(255, 127, 0, 0.12);
  color: #ffffff;
}

body.theme-dark .services-toolbar__dropdown > li > a {
  color: #d2d2d2;
}

body.theme-dark .services-toolbar__search {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .services-toolbar__search-input {
  color: #ffffff;
}

body.theme-dark .services-toolbar__search-input::placeholder {
  color: #a0a0a0;
}

body.theme-dark .services-table-card {
  background: #151515;
  border-color: var(--gmf-border);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.24);
}

body.theme-dark .services-table tbody tr.services-table__service-row,
body.theme-dark .services-table tbody tr:not(.services-table__category-row) {
  --bs-table-bg: #1d1717;
  --bs-table-accent-bg: #1d1717;
  background: #1d1717;
}

body.theme-dark .services-table tbody tr.services-table__service-row > td,
body.theme-dark
  .services-table
  tbody
  tr:not(.services-table__category-row)
  > td {
  --bs-table-bg: #1d1717;
  --bs-table-accent-bg: #1d1717;
  background: #1d1717 !important;
  color: #d2d2d2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.theme-dark .services-table__category-row > td {
  background: #261e1e !important;
  border-top-color: rgba(143, 84, 46, 0.4) !important;
  border-bottom-color: rgba(143, 84, 46, 0.4) !important;
}

body.theme-dark .services-table__category {
  background: #261e1e;
}

body.theme-dark .services-table__category strong {
  color: #ffffff;
}

body.theme-dark .services-table__category-chevron {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

body.theme-dark .services-table__category:hover,
body.theme-dark .services-table__category:focus {
  background: rgba(255, 127, 0, 0.08);
}

body.theme-dark .services-table__btn--view {
  background: #1d1717;
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.theme-dark .services-table__btn--view:hover,
body.theme-dark .services-table__btn--view:focus {
  background: rgba(255, 127, 0, 0.12);
  color: #ffffff;
}

body.theme-dark .services-page__text-card {
  background: #151515;
  border-color: var(--gmf-border);
  color: #d2d2d2;
}

body.theme-dark
  .services-details-modal
  .modal-content.services-details-modal__panel,
body.theme-dark .services-details-modal__panel {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .services-details-modal__body {
  background: #151515;
}

body.theme-dark .services-details-modal__stat {
  background: #1d1717;
  border-color: var(--gmf-border);
}

body.theme-dark .services-details-modal__stat-label {
  color: #a0a0a0;
}

body.theme-dark .services-details-modal__stat-value {
  color: #ffffff;
}

body.theme-dark .services-details-modal__field {
  background: #1d1717;
  border-color: var(--gmf-border);
}

body.theme-dark .services-details-modal__label,
body.theme-dark .services-details-modal__description {
  color: #d2d2d2;
}

/* ==========================================================================
   Services details modal
   ========================================================================== */

.services-details-modal.fade,
.services-details-modal.fade.in,
.services-details-modal.fade.show {
  opacity: 1 !important;
  transition: none !important;
}

.services-details-modal.fade .modal-dialog,
.services-details-modal.fade.in .modal-dialog,
.services-details-modal.fade.show .modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: calc(100dvh - 24px);
  margin: 0;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
  transition: none !important;
}

body:has(#services-details-modal.in) .modal-backdrop.fade,
body:has(#services-details-modal.show) .modal-backdrop.fade {
  opacity: 0.5 !important;
  transition: none !important;
}

.services-details-modal .modal-content.services-details-modal__panel {
  border: 0;
  background: #fff6ed;
  box-shadow: none;
}

.services-details-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-height: calc(100dvh - 24px);
  padding-bottom: 30px;
  border: 1px solid #8f542e;
  border-radius: 16px;
  background: #fff6ed;
  overflow: hidden;
}

.services-details-modal__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 30px;
  overflow: hidden;
  background-color: #321401;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.services-details-modal__head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    153deg,
    #321401 6.76%,
    #a1480b 49.41%,
    #321401 92.57%
  );
  opacity: 0.92;
}

.services-details-modal__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-white);
}

.services-details-modal__x {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--gmf-white);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.services-details-modal__x:hover,
.services-details-modal__x:focus {
  background: rgba(0, 0, 0, 0.34);
  color: var(--gmf-white);
  outline: none;
}

.services-details-modal__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 30px;
  background: #fff6ed;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

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

.services-details-modal__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
}

.services-details-modal__stat-label {
  font-family: var(--gmf-font-heading);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gmf-text-muted);
}

.services-details-modal__stat-value {
  font-family: var(--gmf-font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gmf-text);
  word-break: break-word;
}

.services-details-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-height: min(400px, calc(100vh - 280px));
  padding: 14px 20px;
  border: 1px solid #8f542e;
  border-radius: 12px;
  background: #fff6ed;
  overflow: hidden;
}

.services-details-modal__label {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
}

.services-details-modal__description {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gmf-text);
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.services-details-modal__description p {
  margin: 0 0 8px;
}

.services-details-modal__description p:last-child {
  margin-bottom: 0;
}

.services-details-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.services-details-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 28px;
  border: 0;
  border-radius: 12px;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.15s ease;
}

.services-details-modal__btn--close {
  background: linear-gradient(96deg, #461d04 1%, #ff7f00 89%);
  color: var(--gmf-white);
}

.services-details-modal__btn--order {
  background: radial-gradient(120% 180% at 50% -20%, #21bacb 0%, #168c99 100%);
  color: var(--gmf-white);
}

.services-details-modal__btn--close:hover,
.services-details-modal__btn--close:focus,
.services-details-modal__btn--order:hover,
.services-details-modal__btn--order:focus {
  color: var(--gmf-white);
  filter: brightness(1.05);
}

.services-details-modal__btn--close:active,
.services-details-modal__btn--order:active {
  transform: translateY(1px);
}

@media (max-width: 767px) {
  .services-details-modal.fade .modal-dialog,
  .services-details-modal.fade.in .modal-dialog,
  .services-details-modal.fade.show .modal-dialog {
    top: 50%;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 16px);
  }

  .services-details-modal__panel {
    gap: 20px;
    max-height: calc(100dvh - 16px);
    padding-bottom: 20px;
    border-radius: 14px;
  }

  .services-details-modal__body {
    padding: 0 16px;
    gap: 14px;
  }

  .services-details-modal__head {
    min-height: 60px;
    padding: 12px 16px;
  }

  .services-details-modal__title {
    font-size: 17px;
  }

  .services-details-modal__x {
    width: 36px;
    height: 36px;
    font-size: 24px;
    border-radius: 8px;
  }

  .services-details-modal__grid {
    gap: 8px;
  }

  .services-details-modal__stat {
    padding: 12px;
    border-radius: 10px;
    gap: 4px;
  }

  .services-details-modal__stat-label {
    font-size: 11px;
  }

  .services-details-modal__stat-value {
    font-size: 15px;
  }

  .services-details-modal__field {
    max-height: min(240px, 36dvh);
    padding: 12px 14px;
    border-radius: 10px;
  }

  .services-details-modal__label {
    font-size: 13px;
  }

  .services-details-modal__description {
    font-size: 13px;
  }

  .services-details-modal__actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .services-details-modal__btn {
    min-height: 44px;
    padding: 6px 16px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .services-details-modal.fade .modal-dialog,
  .services-details-modal.fade.in .modal-dialog,
  .services-details-modal.fade.show .modal-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 12px);
  }

  .services-details-modal__panel {
    gap: 16px;
    max-height: calc(100dvh - 12px);
    padding-bottom: 16px;
    border-radius: 12px;
  }

  .services-details-modal__body {
    padding: 0 12px;
    gap: 12px;
  }

  .services-details-modal__head {
    min-height: 56px;
    padding: 10px 12px;
  }

  .services-details-modal__title {
    font-size: 16px;
  }

  .services-details-modal__stat-value {
    font-size: 14px;
  }

  .services-details-modal__field {
    max-height: min(200px, 32dvh);
    padding: 10px 12px;
  }
}

/* ==========================================================================
   Orders page
   ========================================================================== */

.orders-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.services-toolbar--search-only {
  gap: 0;
}

.services-toolbar--search-only .services-toolbar__search {
  flex: 1 1 auto;
  width: 100%;
}

.orders-filters {
  padding: 12px 16px 6px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.04);
}

.orders-filters__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 6px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding-bottom: 2px;
}

.orders-filters__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding-block: 4px;
  padding-inline: 10px;
  border: 1px solid var(--gmf-border);
  border-radius: 10px;
  background: var(--gmf-dash-bg);
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.orders-filters__btn:hover {
  color: var(--gmf-text);
  border-color: var(--gmf-orange);
  text-decoration: none;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.24);
}

.orders-filters__btn:focus,
.orders-filters__btn:focus-visible {
  color: var(--gmf-text);
  border-color: var(--gmf-orange);
  text-decoration: none;
  outline: none;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.24);
}

.orders-filters__btn.is-active,
.orders-filters__btn.is-active:focus,
.orders-filters__btn.is-active:focus-visible {
  padding-inline: 10px;
  border: 1px solid transparent;
  background: linear-gradient(93deg, #461d04 1%, #ff7f00 89%);
  color: var(--gmf-white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.orders-filters__btn.is-active:hover {
  padding-inline: 10px;
  border: 1px solid transparent;
  background: linear-gradient(93deg, #461d04 1%, #ff7f00 89%);
  color: var(--gmf-white);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.24);
  outline: none;
}

.orders-filters__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gmf-text);
}

.orders-filters__btn.is-active .orders-filters__icon {
  color: var(--gmf-white);
}

.orders-filters__icon--img {
  display: block;
  object-fit: contain;
}

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

.orders-filters__icon--all {
  object-fit: contain;
}

.orders-filters__btn:not(.is-active) .orders-filters__icon--all {
  filter: brightness(0);
}

.orders-filters__btn.is-active .orders-filters__icon--all {
  filter: none;
}

body.theme-dark
  .orders-filters__btn:not(.is-active)
  .orders-filters__icon--all {
  filter: none;
}

/* Orders table: column widths at full desktop (≥1600px) */
@media (min-width: 1600px) {
  .orders-page .orders-table .dash-table__td--id,
  .orders-page .orders-table .dash-table__th--id {
    width: 88px;
    padding-block: 23px;
    padding-inline-start: 0;
    padding-left: 0;
    padding-inline-end: 12px;
    padding-right: 12px;
  }

  .orders-page .orders-table thead th:nth-child(3),
  .orders-page .orders-table tbody td:nth-child(3) {
    width: 9%;
    min-width: 128px;
    white-space: nowrap;
  }

  .orders-page .orders-table thead th:nth-child(5),
  .orders-page .orders-table tbody td:nth-child(5) {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    white-space: nowrap;
  }

  .orders-page .orders-table thead th:nth-child(6),
  .orders-page .orders-table tbody td:nth-child(6) {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    white-space: nowrap;
  }

  .orders-page .orders-table thead th:nth-child(7),
  .orders-page .orders-table tbody td:nth-child(7) {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    white-space: nowrap;
  }

  .orders-page .orders-table thead th:nth-child(8),
  .orders-page .orders-table tbody td:nth-child(8) {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    white-space: nowrap;
  }

  .orders-page .orders-table .orders-table__th--service,
  .orders-page .orders-table .orders-table__td--service {
    width: auto;
    min-width: 200px;
    max-width: 300px;
  }

  .orders-page .orders-table .orders-table__th--status {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    text-align: center;
  }

  .orders-page .orders-table .orders-table__td--status {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    text-align: center;
  }

  .orders-page .orders-table .dash-table__th--action,
  .orders-page .orders-table .dash-table__td--action {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
  }
}

.orders-table thead .orders-table__th-id {
  justify-content: center;
}

.orders-table__th--check,
.orders-table__td--check {
  position: relative;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.orders-table__check {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
  user-select: none;
  line-height: 0;
}

.orders-table__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  outline: none;
  box-shadow: none;
}

.orders-table__checkbox-ui {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gmf-border);
  border-radius: 4px;
  background: transparent;
  box-sizing: border-box;
  flex-shrink: 0;
}

.orders-table thead .orders-table__checkbox-ui {
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.orders-table
  thead
  .orders-table__checkbox:checked
  + .orders-table__checkbox-ui {
  background: var(--gmf-orange);
  border-color: var(--gmf-orange);
}

.orders-table
  thead
  .orders-table__checkbox:checked
  + .orders-table__checkbox-ui::after {
  border-color: #ffffff;
}

.orders-table
  thead
  .orders-table__checkbox:indeterminate
  + .orders-table__checkbox-ui {
  background: var(--gmf-orange);
  border-color: var(--gmf-orange);
}

.orders-table
  thead
  .orders-table__checkbox:indeterminate
  + .orders-table__checkbox-ui::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.orders-table__checkbox:checked + .orders-table__checkbox-ui {
  background: var(--gmf-orange);
  border-color: var(--gmf-orange);
}

.orders-table__checkbox:checked + .orders-table__checkbox-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid var(--gmf-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.orders-table__copy--header-bulk[hidden] {
  display: none;
}

.orders-table .dash-table__th--id {
  width: 160px;
}

.orders-page .orders-table .dash-table__th--id,
.orders-page .orders-table .dash-table__td--id {
  padding-inline-start: 0;
  padding-left: 0;
}

.orders-table__th-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.orders-table__th--link,
.orders-table__td--link {
  min-width: 180px;
  box-sizing: border-box;
  overflow: hidden;
}

.orders-table__th--service {
  min-width: 220px;
}

.orders-table__th--status,
.orders-table .dash-table__th.orders-table__th--status {
  width: 120px;
  text-align: center;
}

.orders-table__id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.orders-table__id-value {
  white-space: nowrap;
}

.orders-table__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 4px;
}

.orders-table__copy--header {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.orders-table__copy--header .orders-table__copy-icon,
.orders-table__copy--header [data-copy-icon] {
  filter: brightness(0) invert(1);
}

.orders-table__copy--header:hover,
.orders-table__copy--header:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  outline: none;
}

.orders-table__copy--header.is-copied .orders-table__copy-icon,
.orders-table__copy--header.is-copied [data-copy-icon] {
  filter: none;
}

.orders-table__copy--row {
  border: 0.8px solid var(--gmf-border);
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.orders-table__copy--row:hover,
.orders-table__copy--row:focus {
  background: var(--gmf-orange-08);
  outline: none;
}

.orders-table__copy-icon,
[data-copy-icon] {
  display: block;
  width: 10px;
  height: 12px;
  object-fit: contain;
}

.orders-table__copy-icon.is-copy-icon-hidden,
[data-copy-icon].is-copy-icon-hidden {
  display: none !important;
}

.orders-table__copy.is-copied,
[data-copy-value].is-copied {
  position: relative;
  background: #126e00 !important;
  border-color: #126e00 !important;
}

.orders-table__copy--row .orders-table__copy-icon {
  filter: brightness(0) saturate(100%) invert(33%) sepia(21%) saturate(1679%)
    hue-rotate(346deg) brightness(93%) contrast(89%);
}

.copy-feedback__checkbox {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  animation: copy-feedback-pop 0.2s ease;
}

.copy-feedback__checkbox::after {
  content: '';
  position: absolute;
  top: 0;
  left: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--gmf-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes copy-feedback-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.orders-table__link {
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--gmf-teal);
  font-weight: 600;
  word-break: break-all;
}

.orders-table__details {
  display: inline-flex;
  margin-left: 8px;
  color: var(--gmf-orange);
  vertical-align: middle;
}

.orders-table__td--service {
  max-width: 300px;
}

.orders-table__service {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.orders-table__td--status {
  text-align: center;
}

.orders-table__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 100px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--gmf-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.orders-table__status--pending {
  background: #f29e12;
}

.orders-table__status--inprogress {
  background: #26a1f2;
}

.orders-table__status--active {
  background: #26a1f2;
}

.orders-table__status--completed,
.orders-table__status--complete {
  background: #126e00;
}

.orders-table__status--processing {
  background: #bea626;
}

.orders-table__status--canceled,
.orders-table__status--cancelled {
  background: #df354c;
}

.orders-table__status--partial {
  background: #7d45db;
}

.orders-table__status--paused {
  background: #bea626;
}

.orders-table__status--expired {
  background: #8f542e;
}

/* Updates page */
.updates-filters .orders-filters__track,
.refunds-filters .orders-filters__track {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.updates-filters .orders-filters__btn,
.updates-filters__btn {
  min-width: 0;
  padding-inline: 10px;
}

.updates-table .dash-table__th--id,
.updates-table .dash-table__td--id {
  width: 160px;
}

.updates-table__th--date,
.updates-table__td--date {
  width: 160px;
  white-space: nowrap;
}

.updates-table__th--update,
.updates-table__td--update {
  width: 340px;
  min-width: 280px;
}

.updates-table__th--service,
.updates-table__td--service {
  min-width: 240px;
}

.updates-table__td--service .orders-table__service {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
}

.updates-table__update {
  display: block;
  line-height: 1.5;
}

/* Refunds page */
.refunds-page__alert {
  margin-bottom: 0;
}

.refunds-filters .orders-filters__btn,
.refunds-filters__btn {
  min-width: 0;
  padding-inline: 10px;
}

.orders-table__id-link {
  color: inherit;
  text-decoration: none;
}

.orders-table__id-link:hover,
.orders-table__id-link:focus {
  color: var(--gmf-primary, #ff7f00);
  text-decoration: underline;
}

/* ==========================================================================
   API page
   ========================================================================== */

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

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

.dash-panel__body--api {
  padding: 20px 30px 20px;
}

.dash-panel__body--api-method {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px 30px 28px;
}

.api-kv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 20px;
  align-items: stretch;
}

.api-kv-grid__label,
.api-kv-grid__value {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 16px 30px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  font-family: var(--gmf-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
}

.api-kv-grid__label {
  background: var(--gmf-dash-bg);
}

.api-kv-grid__value {
  background: var(--gmf-white);
}

/* Inline copy + links — flex collapses whitespace between text and <a> */
.api-kv-grid__value:has(.api-kv-grid__link),
.api-kv-grid__value:has(a) {
  display: block;
}

.api-kv-grid__label--accent,
.api-kv-grid__value--accent {
  border-color: transparent;
  background: #ff7f00;
  color: #fff;
}

.api-kv-grid__col-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  padding: 16px 20px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: #532e17;
  color: #fff;
  font-family: var(--gmf-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.api-kv-grid__link {
  color: var(--gmf-orange);
  font-weight: 600;
  text-decoration: none;
}

.api-kv-grid__link:hover,
.api-kv-grid__link:focus {
  color: var(--gmf-orange);
  text-decoration: underline;
}

.api-method-type {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.api-method-type__label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--gmf-text);
}

.api-method-type__select {
  min-height: 44px;
  border-radius: 12px;
  border-color: var(--gmf-border);
}

.api-method-params {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-example {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.api-example__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
}

.api-example__code {
  margin: 0;
  padding: 20px 28px;
  overflow-x: auto;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: linear-gradient(
    119deg,
    rgba(104, 104, 104, 0.1) 2.46%,
    rgba(255, 127, 0, 0.1) 100.38%
  );
  font-family: var(--gmf-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.api-page__example-link {
  align-self: flex-start;
  text-decoration: none;
}

@media (max-width: 767px) {
  .api-kv-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 10px;
  }

  .dash-panel__body--api,
  .dash-panel__body--api-method {
    padding-inline: 16px;
  }

  .api-kv-grid__label,
  .api-kv-grid__value,
  .api-kv-grid__col-head {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .dash-panel__body--api .api-kv-grid__label,
  .dash-panel__body--api .api-kv-grid__value {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.4;
  }

  .dash-panel__body--api .api-kv-grid__value {
    word-break: break-all;
  }

  .dash-panel__body--api-method .api-kv-grid__label,
  .dash-panel__body--api-method .api-kv-grid__value,
  .dash-panel__body--api-method .api-kv-grid__col-head {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.4;
  }

  .dash-panel__body--api-method .api-kv-grid__label--accent,
  .dash-panel__body--api-method .api-kv-grid__value--accent {
    font-size: 12px;
  }

  .api-kv-grid__value {
    word-break: break-word;
    hyphens: auto;
  }

  .api-example__title {
    font-size: 16px;
  }

  .api-example__code {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
  }
}

/* API page — dark mode (Figma 5445:23786) */
body.theme-dark .api-page .page-hero__title {
  color: #ffffff;
}

body.theme-dark .api-page .page-hero__subtitle {
  color: #d2d2d2;
}

body.theme-dark .api-page .dash-panel {
  background: #151515;
  border-color: var(--gmf-border);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

body.theme-dark .api-page .dash-panel__body--api,
body.theme-dark .api-page .dash-panel__body--api-method {
  background: #1d1717;
}

body.theme-dark .api-page .api-kv-grid__label,
body.theme-dark .api-page .api-kv-grid__value {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .api-page .api-kv-grid__label {
  color: #ffffff;
}

body.theme-dark .api-page .api-kv-grid__value {
  color: #d2d2d2;
}

body.theme-dark .api-page .api-kv-grid__label--accent,
body.theme-dark .api-page .api-kv-grid__value--accent {
  background: #ff7f00;
  color: #ffffff;
}

body.theme-dark .api-page .api-kv-grid__link {
  color: var(--gmf-orange);
}

body.theme-dark .api-page .api-kv-grid__link:hover,
body.theme-dark .api-page .api-kv-grid__link:focus {
  color: #ff9a33;
}

body.theme-dark .api-page .api-method-type__label {
  color: #d2d2d2;
}

body.theme-dark .api-page .api-method-type__select {
  background: #151515;
  border-color: var(--gmf-border);
  color: #d2d2d2;
}

body.theme-dark .api-page .api-method-type__select:focus {
  border-color: var(--gmf-border);
  box-shadow: 0 0 0 2px rgba(255, 127, 0, 0.25);
  color: #ffffff;
}

body.theme-dark .api-page .api-example__title {
  color: #ffffff;
}

body.theme-dark .api-page .api-example__code {
  background: #151515;
  border-color: var(--gmf-border);
  color: #d2d2d2;
}

/* ==========================================================================
   Account page
   ========================================================================== */

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

/* Account — section header hero typography (Figma 5445:23787) */
.account-page .page-hero__content {
  gap: 12px;
  max-width: min(842px, 100%);
}

.account-page .page-hero__title {
  font-family: var(--gmf-font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.56px;
}

.account-page .page-hero__subtitle {
  font-family: var(--gmf-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-white);
  white-space: normal;
  overflow-wrap: anywhere;
}

body.theme-dark .account-page .page-hero__title,
body.theme-dark .account-page .page-hero__subtitle {
  color: #ffffff;
}

@media (max-width: 767px) {
  .account-page .page-hero__title {
    font-size: 18px;
    letter-spacing: -0.3px;
  }

  .account-page .page-hero__subtitle {
    font-size: 13px;
  }
}

.account-page__alert {
  margin-bottom: 0;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-white);
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.account-tabs__link:hover,
.account-tabs__link:focus {
  border-color: var(--gmf-orange);
  color: var(--gmf-orange-dark);
  text-decoration: none;
}

.account-tabs__link.is-active {
  border-color: var(--gmf-orange);
  background: var(--gmf-orange-08);
  color: var(--gmf-orange-dark);
}

.account-page__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.account-page__stack > .dash-panel--account {
  height: 100%;
}

.account-page__stack > .dash-panel--account > .dash-form {
  flex: 1;
}

.account-page__stack > .dash-panel--account .dash-submit {
  margin-top: auto;
}

.dash-panel--account-wide {
  grid-column: 1 / -1;
}

.account-form.dash-form {
  gap: 12px;
}

.account-form--2fa {
  gap: 24px;
}

.account-form__2fa-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.account-form__2fa-enabled-label {
  margin-left: 8px;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gmf-orange);
}

.account-form__2fa-sent {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text);
}

.account-info-box {
  padding: 20px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: linear-gradient(
    170deg,
    rgba(104, 104, 104, 0.1) 2.46%,
    rgba(255, 127, 0, 0.1) 100.38%
  );
}

.account-info-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text);
}

.account-form__help {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.dash-form__password {
  position: relative;
}

.dash-form__password .form-control {
  padding-right: 48px;
}

.dash-form__password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.dash-form__password-toggle img {
  display: block;
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.account-form__textarea.form-control {
  height: auto;
  min-height: 160px;
  resize: vertical;
}

@media (max-width: 991px) {
  .account-page__stack {
    grid-template-columns: 1fr;
  }

  .dash-panel--account-wide {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .account-tabs__link {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding-inline: 16px;
  }

  .dash-form,
  .account-form.dash-form {
    padding-inline: 20px;
    padding-bottom: 24px;
  }
}

body.theme-dark .account-page .dash-panel--account > .account-form {
  background: #1d1717;
}

/* ==========================================================================
   Notifications page
   ========================================================================== */

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

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

.notifications-form.dash-form {
  gap: 24px;
}

.notifications-form__submit {
  align-self: flex-start;
  width: 100%;
  max-width: 240px;
}

.notifications-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 40px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: linear-gradient(
    170deg,
    rgba(104, 104, 104, 0.1) 2.46%,
    rgba(255, 127, 0, 0.1) 100.38%
  );
}

.notifications-table-head__type,
.notifications-table-head__channel {
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
}

.notifications-table-head__channels {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}

.notifications-table-head__channel {
  flex: 0 0 70px;
  text-align: center;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 40px;
  border: 1px dashed var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
}

.notifications-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notifications-row__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--gmf-text);
}

.notifications-row__switches {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-shrink: 0;
}

.notifications-row__switch-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
}

.notifications-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.notifications-switch.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.notifications-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notifications-switch__track {
  position: relative;
  display: block;
  width: 40px;
  height: 24px;
  border-radius: 100px;
  background: #d4c4b0;
  transition: background 0.2s ease;
}

.notifications-switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gmf-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.notifications-switch__input:checked + .notifications-switch__track {
  background: #ff7f00;
}

.notifications-switch__input:checked + .notifications-switch__track::after {
  transform: translateX(16px);
}

.notifications-switch__input:focus-visible + .notifications-switch__track {
  outline: 2px solid var(--gmf-orange);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .notifications-table-head,
  .notifications-list {
    padding-inline: 20px;
  }

  .notifications-table-head__channels,
  .notifications-row__switches {
    gap: 12px;
  }

  .notifications-table-head__channel,
  .notifications-row__switch-slot {
    flex-basis: 56px;
    width: 56px;
  }

  .notifications-form__submit {
    max-width: none;
  }

  .notifications-form.dash-form {
    padding-inline: 20px;
    padding-bottom: 24px;
  }
}

body.theme-dark
  .notifications-page
  .dash-panel--notifications
  > .notifications-form {
  background: #1d1717;
}

.orders-table .dash-table__th--action,
.orders-table .dash-table__td--action {
  min-width: 130px;
  width: 130px;
  white-space: nowrap;
}

.orders-table__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.orders-table__reorder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--gmf-orange);
  border-radius: 8px;
  background: var(--gmf-orange);
  color: var(--gmf-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.orders-table__reorder:hover,
.orders-table__reorder:focus {
  color: var(--gmf-white);
  filter: brightness(1.05);
  text-decoration: none;
}

.orders-table__task-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.orders-table__task-btn--refill,
.orders-table__task-btn--reorder {
  border: 1px solid var(--gmf-teal);
  background: var(--gmf-teal);
  color: var(--gmf-white);
}

.orders-table__task-btn--cancel {
  min-width: 88px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #df354c;
  border-radius: 8px;
  background: #df354c;
  color: var(--gmf-white);
  font-size: 14px;
  line-height: 1.5;
  transition: filter 0.2s ease;
}

.orders-table__task-btn--cancel:hover,
.orders-table__task-btn--cancel:focus {
  color: var(--gmf-white);
  filter: brightness(1.05);
  text-decoration: none;
}

.orders-table__task-btn.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.orders-table__task-note {
  display: inline-block;
  font-family: var(--gmf-font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text-muted);
  white-space: nowrap;
}

/* Orders page — dark mode (colors only; Figma orders screen) */
body.theme-dark .orders-page .page-hero__title {
  color: #ffffff;
}

body.theme-dark .orders-page .page-hero__subtitle {
  color: #d2d2d2;
}

body.theme-dark .orders-page .services-toolbar--search-only {
  background: #1d1717;
  border-color: var(--gmf-border);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

body.theme-dark
  .orders-page
  .services-toolbar--search-only
  .services-toolbar__search {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark
  .orders-page
  .services-toolbar--search-only
  .services-toolbar__search-input {
  color: #ffffff;
}

body.theme-dark
  .orders-page
  .services-toolbar--search-only
  .services-toolbar__search-input::placeholder {
  color: #a0a0a0;
}

body.theme-dark
  .orders-page
  .services-toolbar--search-only
  .services-toolbar__search-icon {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

body.theme-dark .orders-filters {
  background: #1d1717;
  border-color: var(--gmf-border);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

body.theme-dark .orders-filters__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  padding-block: 4px;
  padding-inline: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

body.theme-dark .orders-filters__btn:not(.is-active) {
  background: #151515;
  border: 0.5px solid #8f542e;
  color: #ffffff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
}

body.theme-dark .orders-filters__btn:not(.is-active):hover,
body.theme-dark .orders-filters__btn:not(.is-active):focus,
body.theme-dark .orders-filters__btn:not(.is-active):focus-visible {
  background: #151515;
  color: #ffffff;
  border-color: var(--gmf-orange);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.24);
}

body.theme-dark .orders-filters__btn.is-active,
body.theme-dark .orders-filters__btn.is-active:focus,
body.theme-dark .orders-filters__btn.is-active:focus-visible {
  padding-inline: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

body.theme-dark .orders-filters__btn.is-active:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.24);
}

body.theme-dark .orders-filters__btn:not(.is-active) .orders-filters__icon {
  color: #ffffff;
}

body.theme-dark
  .orders-filters__btn:not(.is-active)
  .orders-filters__icon--img:not(.orders-filters__icon--all) {
  filter: brightness(0) invert(1);
}

body.theme-dark .orders-page .orders-table.dash-table {
  background: #151515;
  border-color: var(--gmf-border);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.24);
}

body.theme-dark .orders-page .orders-table .dash-table__td {
  color: #d2d2d2;
}

body.theme-dark .orders-page .orders-table__link,
body.theme-dark .orders-page .orders-table .dash-table__link {
  color: #d2d2d2;
}

body.theme-dark .orders-page .orders-table__link:hover,
body.theme-dark .orders-page .orders-table__link:focus,
body.theme-dark .orders-page .orders-table .dash-table__link:hover,
body.theme-dark .orders-page .orders-table .dash-table__link:focus {
  color: #ffffff;
}

body.theme-dark .orders-page .orders-table__id-value,
body.theme-dark .orders-page .orders-table__service {
  color: #d2d2d2;
}

body.theme-dark .orders-page .orders-table__details {
  color: var(--gmf-orange);
}

body.theme-dark .orders-page .orders-table__checkbox-ui {
  border-color: var(--gmf-border);
  background: transparent;
}

body.theme-dark .orders-page .orders-table__copy--row {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

body.theme-dark .orders-page .orders-table__copy--row:hover,
body.theme-dark .orders-page .orders-table__copy--row:focus {
  background: rgba(255, 127, 0, 0.12);
  border-color: var(--gmf-orange);
}

body.theme-dark .orders-page .orders-table__copy--row .orders-table__copy-icon {
  filter: brightness(0) saturate(100%) invert(55%) sepia(90%) saturate(1200%)
    hue-rotate(360deg) brightness(103%) contrast(101%);
}

body.theme-dark .orders-page .orders-table__task-note {
  color: #a0a0a0;
}

body.theme-dark .orders-page .dash-empty__title {
  color: #ffffff;
}

body.theme-dark .orders-page .dash-empty__text {
  color: #d2d2d2;
}

/* Orders page only (8 status filters): 8 → 4 → 2 columns */
.orders-page > .orders-filters .orders-filters__track {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

@media (max-width: 1199px) {
  .orders-page > .orders-filters .orders-filters__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .orders-page > .orders-filters .orders-filters__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .orders-filters {
    padding-inline: 14px;
  }

  .orders-filters__track {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .updates-filters .orders-filters__track,
  .refunds-filters .orders-filters__track {
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  }

  .orders-filters__btn {
    min-width: 0;
  }

  body.theme-dark .orders-filters__btn {
    min-width: 0;
    padding-inline: 10px;
  }
}

.orders-page > .dash-pagination {
  align-self: stretch;
  justify-content: center;
  margin-top: 8px;
}

.orders-page > .dash-pagination .pagination {
  width: auto;
  max-width: 100%;
}

@media (max-width: 767px) {
  .orders-page {
    gap: 16px;
  }

  .orders-page > .dash-pagination {
    margin-top: 4px;
    padding: 0 4px;
  }

  .services-toolbar--search-only {
    padding: 16px 20px;
  }

  .orders-filters {
    padding: 10px 14px 6px;
  }

  .orders-filters__track {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  }

  .orders-page > .orders-filters .orders-filters__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .updates-filters .orders-filters__track,
  .refunds-filters .orders-filters__track {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 152px), 1fr));
  }

  .orders-page > .orders-filters .orders-filters__btn {
    justify-content: flex-start;
    text-align: start;
  }

  .orders-filters__btn {
    min-width: 0;
    height: 38px;
    padding-block: 4px;
    padding-inline: 10px;
    font-size: 13px;
    justify-content: flex-start;
    text-align: start;
  }

  body.theme-dark .orders-filters__btn {
    min-width: 0;
    height: 38px;
    padding-block: 4px;
    padding-inline: 10px;
    font-size: 13px;
    justify-content: flex-start;
    text-align: start;
  }

  .orders-filters__icon {
    width: 18px;
    height: 18px;
  }

  body.theme-dark .orders-filters__icon {
    width: 18px;
    height: 18px;
  }
}

.orders-filters__icon.iconify {
  display: inline-flex;
}

/* ==========================================================================
   Tickets page
   ========================================================================== */

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

.tickets-page__alert,
.tickets-page .tickets-form__alert,
.tickets-page .dash-form .alert {
  border-radius: 12px;
}

.tickets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tickets-page:not(.viewticket-page) .tickets-grid {
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
}

/* 1300px–1555px: equal columns so history is wide enough (no ticket-card horizontal scroll) */
@media (max-width: 1555px) and (min-width: 1300px) {
  .tickets-page:not(.viewticket-page) .tickets-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.tickets-page:not(.viewticket-page) .tickets-list,
.tickets-page:not(.viewticket-page) .tickets-history > .dash-empty {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tickets-page:not(.viewticket-page) .tickets-list::-webkit-scrollbar,
.tickets-page:not(.viewticket-page)
  .tickets-history
  > .dash-empty::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (min-width: 1300px) {
  .viewticket-page .tickets-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.tickets-grid > .dash-panel--tickets-form {
  height: auto;
}

.tickets-grid > .dash-panel--tickets-history {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.tickets-page .dash-panel--tickets-form {
  display: flex;
  flex-direction: column;
}

.tickets-page .dash-panel--tickets-history {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tickets-page .dash-panel--tickets-form > .dash-form {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

.tickets-page .dash-panel--tickets-history > .tickets-history {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.tickets-page:not(.viewticket-page)
  .tickets-grid
  > .dash-panel--tickets-history {
  display: flex;
  flex-direction: column;
  max-height: clamp(360px, calc(100dvh - 240px), 900px);
  overflow: hidden;
}

.tickets-page:not(.viewticket-page)
  .dash-panel--tickets-history
  > .tickets-history {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}

.tickets-page:not(.viewticket-page) .tickets-history > .tickets-search {
  flex-shrink: 0;
}

.tickets-page:not(.viewticket-page) .tickets-history > .tickets-list,
.tickets-page:not(.viewticket-page) .tickets-history > .dash-empty {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tickets-page:not(.viewticket-page) .tickets-history > .tickets-list {
  overscroll-behavior-y: contain;
}

.tickets-page:not(.viewticket-page) .tickets-history > .tickets-pagination {
  flex-shrink: 0;
}

.tickets-page .dash-panel--tickets-form > .dash-panel__head,
.tickets-page .dash-panel--tickets-history > .dash-panel__head {
  flex-shrink: 0;
}

@media (min-width: 1300px) {
  .tickets-page:not(.viewticket-page) .tickets-grid {
    align-items: stretch;
  }

  .tickets-page .tickets-grid > .dash-panel--tickets-form {
    align-self: stretch;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .tickets-page .tickets-grid > .dash-panel--tickets-history {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .tickets-page
    .tickets-grid
    > .dash-panel--tickets-history
    > .tickets-history {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .tickets-page .tickets-grid > .dash-panel--tickets-history .tickets-history {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .tickets-page .tickets-history > .tickets-search {
    flex-shrink: 0;
  }

  .tickets-page .tickets-history > .tickets-list,
  .tickets-page .tickets-history > .dash-empty {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tickets-page .tickets-history > .tickets-list {
    overscroll-behavior-y: contain;
  }

  .tickets-page .tickets-history > .tickets-pagination {
    flex-shrink: 0;
    margin-top: 0;
  }
}

.tickets-grid > .dash-panel--ticket-info {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  overflow: hidden;
  align-self: start;
}

.tickets-history {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  padding: 30px;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  container-type: inline-size;
  container-name: tickets-history;
}

.tickets-search {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
}

.tickets-search__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.tickets-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
  font-size: 16px;
  line-height: 1.35;
}

.tickets-search__input::placeholder {
  color: #232323;
  opacity: 1;
}

.tickets-search .form-control:focus,
.tickets-search .form-control:focus-visible,
.tickets-search__input:focus,
.tickets-search__input:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  box-shadow: none !important;
  outline: none;
}

.tickets-empty,
.dash-empty {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 32px 24px;
  border: 1px dashed var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  text-align: center;
}

.dash-table > .dash-empty,
.services-table-card > .dash-empty {
  margin: 24px;
}

.tickets-empty__title,
.dash-empty__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
}

.tickets-empty__text,
.dash-empty__text {
  margin: 0;
  max-width: 280px;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.tickets-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  padding-top: 14px;
  padding-bottom: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  container-type: inline-size;
  container-name: tickets-list;
}

.tickets-list > .ticket-card {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
}

@media (min-width: 1300px) {
  .tickets-list {
    overscroll-behavior-y: contain;
  }
}

.ticket-card {
  position: relative;
  display: block;
  padding: 16px 20px;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ticket-card__inner {
  --ticket-grid-id: 52px;
  --ticket-grid-status: 5.75rem;
  --ticket-grid-date: max-content;
  display: grid;
  grid-template-columns:
    var(--ticket-grid-id)
    minmax(0, 1fr)
    var(--ticket-grid-status)
    var(--ticket-grid-date);
  align-items: start;
  column-gap: 10px;
  row-gap: 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: visible;
  overflow-y: visible;
}

.ticket-card:hover,
.ticket-card:focus {
  border-color: var(--gmf-orange);
  background: var(--gmf-white);
  box-shadow: 0 4px 16px var(--gmf-orange-08);
  color: inherit;
  text-decoration: none;
}

.ticket-card--unread {
  margin-top: 10px;
  overflow: visible;
}

.ticket-card--unread:first-child {
  margin-top: 0;
}

.ticket-card--active {
  border-color: var(--gmf-orange);
  background: var(--gmf-white);
  box-shadow: 0 4px 16px var(--gmf-orange-08);
}

.ticket-card__badge {
  position: absolute;
  top: 0;
  left: 19px;
  z-index: 2;
  transform: translateY(-50%);
  padding: 4px 10px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--gmf-orange);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.2),
    0 24.721px 16.129px rgba(0, 0, 0, 0.08);
  color: var(--gmf-white);
  font-family: var(--gmf-font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.ticket-card__badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    var(--gmf-shine-degree),
    transparent 0%,
    transparent 30%,
    var(--gmf-shine-color) 50%,
    transparent 70%,
    transparent 100%
  );
  pointer-events: none;
  animation: gmf-shine-sweep var(--gmf-shine-cycle) linear infinite;
}

.ticket-card__main {
  display: contents;
}

.ticket-card__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ticket-card__group--id {
  min-width: 0;
}

.ticket-card__group--subject,
.ticket-card__group--status,
.ticket-card__group--updated {
  min-width: 0;
}

.ticket-card__group--subject {
  align-items: flex-start;
  text-align: left;
}

.ticket-card__group--status {
  align-items: flex-start;
  text-align: start;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

.ticket-card__group--updated {
  align-items: flex-end;
  text-align: right;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.ticket-card__group--updated .ticket-card__label,
.ticket-card__group--updated .ticket-card__value {
  width: auto;
  max-width: 100%;
}

.ticket-card__label {
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
  white-space: nowrap;
}

/* Narrow history panel: subject wraps; status + date rules unchanged */
@container tickets-history (max-width: 36rem) {
  .ticket-card__inner {
    column-gap: 8px;
  }
}

/* Very narrow history panel (desktop split only): horizontal scroll on card */
@media (min-width: 768px) {
  @container tickets-history (max-width: 26rem) {
    .tickets-page .ticket-card {
      overflow-x: auto;
      overflow-y: hidden;
      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x pan-y;
    }

    .tickets-page .ticket-card__inner {
      --ticket-grid-id: 52px;
      --ticket-grid-status: 5.75rem;
      --ticket-grid-date: max-content;
      grid-template-columns:
        var(--ticket-grid-id)
        minmax(9rem, 1fr)
        var(--ticket-grid-status)
        var(--ticket-grid-date);
      width: max-content;
      min-width: 26.5rem;
      max-width: none;
      overflow: visible;
    }
  }

  .tickets-page .ticket-card.ticket-card--can-scroll-x {
    touch-action: pan-x pan-y;
    cursor: grab;
  }

  .tickets-page .ticket-card.ticket-card--can-scroll-x:active {
    cursor: grabbing;
  }
}

@container tickets-list (max-width: 20rem) {
  .ticket-card__inner {
    column-gap: 8px;
  }
}

/* Mobile: 2 fields per row inside each ticket card */
@media (max-width: 767px) {
  .tickets-page .ticket-card {
    overflow: visible;
    touch-action: auto;
    cursor: pointer;
  }

  .tickets-page .ticket-card__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 12px;
    row-gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
  }

  .tickets-page .ticket-card__main {
    display: contents;
  }

  .tickets-page .ticket-card__group--id,
  .tickets-page .ticket-card__group--subject,
  .tickets-page .ticket-card__group--status,
  .tickets-page .ticket-card__group--updated {
    min-width: 0;
    max-width: none;
    align-items: flex-start;
    text-align: start;
    justify-self: stretch;
    width: auto;
  }

  .tickets-page .ticket-card__value--time {
    align-items: flex-start;
    text-align: start;
  }

  .tickets-page .ticket-card .ticket-card__value--status {
    text-align: start;
  }
}

@media (max-width: 1619px) and (min-width: 768px) {
  .tickets-page .ticket-card__group--status {
    align-items: center;
    text-align: center;
  }

  .tickets-page .ticket-card__value--status {
    text-align: center;
  }
}

@media (max-width: 1449px) and (min-width: 768px) {
  .tickets-page .ticket-card__inner {
    --ticket-grid-date: max-content;
    grid-template-columns:
      var(--ticket-grid-id)
      minmax(0, 1fr)
      var(--ticket-grid-status)
      max-content;
  }

  .tickets-page .ticket-card__group--updated {
    justify-self: end;
    width: max-content;
  }
}

.ticket-card__value {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--gmf-text-muted);
}

.ticket-card__group--id .ticket-card__value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-card__subject {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
  hyphens: auto;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--gmf-orange);
}

.ticket-card__value--status {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-card__value--accent {
  color: var(--gmf-orange);
}

.tickets-page .ticket-card .ticket-card__value--status-open {
  color: var(--gmf-text-muted);
}

.tickets-page .ticket-card .ticket-card__value--status-new,
.tickets-page
  .ticket-card
  .ticket-card__value--status[data-ticket-status='new'] {
  color: var(--gmf-orange);
}

.tickets-page .ticket-card .ticket-card__value--status-answered,
.tickets-page
  .ticket-card
  .ticket-card__value--status[data-ticket-status='answered'] {
  color: #126e00;
}

.tickets-page .ticket-card .ticket-card__value--status-closed,
.tickets-page
  .ticket-card
  .ticket-card__value--status[data-ticket-status='closed'] {
  color: #df354c;
}

.ticket-card__value--time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  gap: 0;
  width: max-content;
  max-width: 100%;
  max-height: calc(1.4em * 2);
  overflow: hidden;
  line-height: 1.4;
  text-align: right;
  word-break: normal;
  overflow-wrap: normal;
}

.ticket-card__datetime-date,
.ticket-card__datetime-time {
  display: block;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.ticket-card__datetime-date::after {
  content: none;
}

@media (max-width: 767px) {
  .tickets-page .ticket-card__group--status,
  .tickets-page .ticket-card__group--updated {
    align-items: flex-start;
    text-align: start;
  }

  .tickets-page .ticket-card .ticket-card__value--status {
    width: 100%;
    text-align: start;
  }

  .tickets-page .ticket-card__value--time {
    align-self: stretch;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    text-align: start;
  }
}

.tickets-pagination {
  flex-shrink: 0;
  margin-top: 0;
}

.tickets-page .tickets-history .tickets-pagination.dash-pagination {
  margin-top: 0;
}

.tickets-page .dash-form textarea.form-control {
  height: 120px;
  min-height: 120px;
  resize: vertical;
}

.tickets-page .dash-form textarea.form-control::placeholder {
  color: #5a5a5a;
  opacity: 1;
}

.tickets-page .dash-select__chevron-icon {
  display: block;
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%);
}

.tickets-page .tickets-dynamic-fields .dash-select__arrow > iconify-icon {
  display: none !important;
}

body.theme-dark .tickets-page .dash-select__chevron-icon {
  filter: brightness(0) invert(1);
}

.tickets-page .tickets-dynamic-fields .form-group {
  margin-bottom: 0;
}

.tickets-page .tickets-dynamic-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Shell + layout only — do not override panel uploader behavior */
.tickets-uploader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tickets-uploader--ready {
  cursor: pointer;
}

.tickets-uploader:not(:has(#uploader-button)):not(:has(.files-item))::after {
  content: attr(data-lang-button-attach);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text);
  pointer-events: none;
}

.tickets-uploader--has-files::after {
  content: none;
  display: none;
}

.tickets-page .dash-form {
  padding-bottom: 20px;
}

.tickets-page .dash-form .dash-submit,
.viewticket-page .dash-form .dash-submit {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  height: auto;
  padding: 12px 20px;
  box-sizing: border-box;
}

.tickets-uploader .files-wrapper {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 24px;
}

.tickets-uploader .files-wrapper > #uploader-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  max-width: 100%;
  min-height: 24px;
}

.tickets-uploader #uploader-button .paperclip,
.tickets-uploader #uploader-button .paperclip svg {
  color: #232323;
  fill: #232323;
}

.tickets-uploader .files-wrapper > :not(#uploader-button) {
  align-self: stretch;
  width: 100%;
}

.tickets-uploader .files-droparea {
  display: none !important;
}

.tickets-page .dash-form .form-group:has(.tickets-uploader),
.viewticket-page .dash-form .form-group:has(.tickets-uploader) {
  flex-shrink: 0;
}

.tickets-uploader:hover {
  border-color: var(--gmf-orange);
  background: var(--gmf-white);
  box-shadow: 0 4px 16px var(--gmf-orange-08);
}

@media (max-width: 1299px) {
  .tickets-grid,
  .tickets-page:not(.viewticket-page) .tickets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .tickets-page,
  .viewticket-page {
    gap: 16px;
  }

  .tickets-history,
  .ticket-info,
  .tickets-page .dash-form,
  .tickets-page .dash-panel__head,
  .viewticket-page .dash-panel__head {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tickets-history,
  .ticket-info {
    padding-bottom: 20px;
  }

  .tickets-page .tickets-grid > .dash-panel--tickets-form > .dash-form {
    border-radius: 0 0 15px 15px;
  }

  .tickets-uploader {
    display: flex !important;
    min-height: 48px;
    height: auto !important;
  }

  .tickets-uploader .files-wrapper,
  .tickets-uploader #uploader-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Tickets page — dark mode (Figma tickets screen) */
body.theme-dark .tickets-page .page-hero__title {
  color: #ffffff;
}

body.theme-dark .tickets-page .page-hero__subtitle {
  color: #d2d2d2;
}

body.theme-dark .dash-panel {
  overflow: hidden;
}

body.theme-dark .tickets-page .dash-panel {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .tickets-page .tickets-grid > .dash-panel > .dash-form,
body.theme-dark .tickets-page .tickets-history,
body.theme-dark .tickets-page .dash-panel > .dash-panel__body--content {
  background: #1d1717;
}

body.theme-dark .tickets-page .dash-form .control-label,
body.theme-dark .tickets-page .dash-form label.control-label {
  color: #d2d2d2;
}

body.theme-dark .tickets-page .dash-form .form-control {
  background: #151515;
  border-color: var(--gmf-border);
  color: #d2d2d2;
}

body.theme-dark .tickets-page .dash-form .form-control:focus {
  background: #151515;
  border-color: var(--gmf-border);
  box-shadow: 0 0 0 2px rgba(255, 127, 0, 0.25);
  color: #ffffff;
}

body.theme-dark .tickets-page .dash-form .form-control::placeholder {
  color: #a0a0a0;
  opacity: 1;
}

body.theme-dark .tickets-page .dash-select .form-control {
  background: #151515;
  color: #d2d2d2;
}

body.theme-dark .tickets-page .dash-select__arrow {
  color: #ffffff;
}

body.theme-dark .tickets-page .tickets-search {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .tickets-page .tickets-search__icon {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

body.theme-dark .tickets-page .tickets-search__input {
  color: #ffffff;
}

body.theme-dark .tickets-page .tickets-search__input::placeholder {
  color: #a0a0a0;
  opacity: 1;
}

body.theme-dark .tickets-page .tickets-uploader {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark
  .tickets-page
  .tickets-uploader:not(:has(#uploader-button)):not(:has(.files-item))::after {
  color: #d2d2d2;
}

body.theme-dark .tickets-page .tickets-uploader #uploader-button .paperclip,
body.theme-dark
  .tickets-page
  .tickets-uploader
  #uploader-button
  .paperclip
  svg {
  color: #d2d2d2;
  fill: #d2d2d2;
}

body.theme-dark .tickets-page .tickets-uploader:hover {
  background: #292425;
  border-color: var(--gmf-orange);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

body.theme-dark .tickets-page .ticket-card {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .tickets-page .ticket-card:hover,
body.theme-dark .tickets-page .ticket-card:focus {
  background: #292425;
  border-color: var(--gmf-orange);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

body.theme-dark .tickets-page .ticket-card--active {
  background: #292425;
  border-color: var(--gmf-orange);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

body.theme-dark .tickets-page .ticket-card__label {
  color: #ffffff;
}

body.theme-dark .tickets-page .ticket-card__value {
  color: #d2d2d2;
}

body.theme-dark .tickets-page .ticket-card__value--accent,
body.theme-dark .tickets-page .ticket-card__subject {
  color: var(--gmf-orange);
}

body.theme-dark .tickets-page .ticket-card .ticket-card__value--status-open {
  color: #d2d2d2;
}

body.theme-dark .tickets-page .ticket-card .ticket-card__value--status-new,
body.theme-dark
  .tickets-page
  .ticket-card
  .ticket-card__value--status[data-ticket-status='new'] {
  color: var(--gmf-orange);
}

body.theme-dark .tickets-page .ticket-card .ticket-card__value--status-answered,
body.theme-dark
  .tickets-page
  .ticket-card
  .ticket-card__value--status[data-ticket-status='answered'] {
  color: #126e00;
}

body.theme-dark .tickets-page .ticket-card .ticket-card__value--status-closed,
body.theme-dark
  .tickets-page
  .ticket-card
  .ticket-card__value--status[data-ticket-status='closed'] {
  color: #df354c;
}

body.theme-dark .tickets-page .dash-empty {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .tickets-page .dash-empty__title {
  color: #ffffff;
}

body.theme-dark .tickets-page .dash-empty__text {
  color: #d2d2d2;
}

body.theme-dark .tickets-page .dash-panel__body--content {
  color: #d2d2d2;
}

/* ==========================================================================
   View ticket page
   ========================================================================== */

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

.viewticket-page .tickets-grid > .dash-panel--viewticket-thread {
  display: flex;
  flex-direction: column;
  height: clamp(760px, calc(100dvh - 120px), 1040px);
  min-height: clamp(760px, calc(100dvh - 120px), 1040px);
  max-height: clamp(760px, calc(100dvh - 100px), 1040px);
  overflow: hidden;
}

.viewticket-page .dash-panel--viewticket-thread > .dash-panel__head {
  flex-shrink: 0;
}

.viewticket-page .dash-panel--viewticket-thread > .viewticket-thread {
  flex: 1 1 0;
  min-height: 0;
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
}

.ticket-info__intro {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.ticket-info__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.ticket-info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
}

.ticket-info__label {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gmf-text);
}

.ticket-info__value {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--gmf-text-muted);
  text-align: right;
}

.ticket-info__value--accent {
  color: var(--gmf-orange);
}

.ticket-info__note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
}

.ticket-info__note-title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gmf-text);
}

.ticket-info__note-text {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.viewticket-thread {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 24px 0 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.viewticket-thread__main {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.viewticket-thread__main > .viewticket-messages {
  flex: 1 1 0;
  min-height: 0;
}

.viewticket-messages {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-right: 30px;
  padding-left: 30px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

.viewticket-message {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
}

.viewticket-message--support {
  justify-content: flex-start;
}

.viewticket-message--user {
  justify-content: flex-end;
}

.viewticket-message__avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
}

.viewticket-message__avatar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.viewticket-message__avatar img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.viewticket-message--support .viewticket-message__avatar img {
  object-fit: contain;
}

.viewticket-message__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 52px);
}

.viewticket-message--user .viewticket-message__content {
  align-items: flex-end;
}

.viewticket-message__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  line-height: 1.5;
  color: var(--gmf-text);
  white-space: nowrap;
}

.viewticket-message--user .viewticket-message__meta {
  justify-content: flex-end;
}

.viewticket-message__author {
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
}

.viewticket-message__time {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--gmf-text);
}

.viewticket-message__bubble {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  box-sizing: border-box;
}

.viewticket-message--support .viewticket-message__bubble {
  background: #f0f0f0;
  border-color: #e0e0e0;
}

.viewticket-message--user .viewticket-message__bubble {
  border-radius: 8px;
  background: var(--gmf-cream);
  border-color: rgba(143, 84, 46, 0.28);
}

.viewticket-message--user .viewticket-message__files {
  align-items: flex-end;
  text-align: right;
}

.viewticket-message__text {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text);
  word-break: break-word;
}

.viewticket-message__text > :first-child {
  margin-top: 0;
}

.viewticket-message__text > :last-child {
  margin-bottom: 0;
}

.viewticket-message__text p {
  margin: 0 0 0.75em;
}

.viewticket-message__text p:last-child {
  margin-bottom: 0;
}

.viewticket-message__files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.viewticket-message__file {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-orange);
  text-decoration: none;
  word-break: break-all;
}

.viewticket-message__file:hover,
.viewticket-message__file:focus {
  color: var(--gmf-orange);
  text-decoration: underline;
}

.viewticket-thread > .viewticket-reply-form.dash-form {
  flex: 0 0 auto;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px 30px 0;
  background: var(--gmf-dash-bg);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.viewticket-page .viewticket-messages {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.viewticket-page .viewticket-messages::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.viewticket-reply-form .form-group + .form-group {
  margin-top: 0;
}

.viewticket-thread > .viewticket-reply-form__submit {
  flex: 0 0 auto;
  width: calc(100% - 60px);
  min-height: 48px;
  height: 48px;
  margin-right: 30px;
  margin-left: 30px;
}

.viewticket-reply-form__submit {
  flex-shrink: 0;
}

.viewticket-page .viewticket-reply-form textarea.form-control,
.viewticket-page .dash-form textarea.form-control {
  height: 120px;
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 767px) {
  .viewticket-page .tickets-grid > .dash-panel--viewticket-thread {
    height: clamp(760px, calc(100svh - 72px), 1040px);
    min-height: clamp(760px, calc(100svh - 72px), 1040px);
    max-height: clamp(760px, calc(100svh - 56px), 1040px);
    overflow: hidden;
  }

  .viewticket-thread {
    flex: 1 1 0;
    min-height: 0;
    padding: 16px 0 12px;
    overflow: hidden;
  }

  .viewticket-thread__main {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }

  .viewticket-messages {
    gap: 20px;
    padding-right: 20px;
    padding-left: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .viewticket-reply-form.dash-form,
  .viewticket-reply-form__submit {
    flex-shrink: 0;
  }

  .viewticket-message {
    gap: 10px;
  }

  .viewticket-message__content {
    flex: 1 1 auto;
    width: auto;
    max-width: calc(100% - 50px);
  }

  .viewticket-message__bubble {
    width: 100%;
  }

  .viewticket-message__meta {
    flex-wrap: nowrap;
    width: 100%;
    white-space: nowrap;
  }

  .viewticket-message__author {
    overflow: hidden;
    min-width: 0;
    flex: 0 1 auto;
    text-overflow: ellipsis;
  }

  .viewticket-message__time {
    flex: 0 0 auto;
  }

  .viewticket-thread > .viewticket-reply-form.dash-form {
    padding: 12px 20px 0;
  }

  .viewticket-reply-form__submit {
    width: calc(100% - 40px);
    margin-right: 20px;
    margin-left: 20px;
  }
}

/* View ticket page — dark mode (Figma 5445:19229) */
body.theme-dark .viewticket-page .page-hero__title {
  color: #ffffff;
}

body.theme-dark .viewticket-page .page-hero__subtitle {
  color: #d2d2d2;
}

body.theme-dark .viewticket-page .dash-panel {
  background: #1d1717;
  border-color: var(--gmf-border);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
}

body.theme-dark .viewticket-page .viewticket-thread,
body.theme-dark .viewticket-page .viewticket-thread__main {
  background: #1d1717;
}

body.theme-dark .viewticket-page .viewticket-message__meta,
body.theme-dark .viewticket-page .viewticket-message__author,
body.theme-dark .viewticket-page .viewticket-message__time {
  color: #d2d2d2;
}

body.theme-dark
  .viewticket-page
  .viewticket-message--support
  .viewticket-message__bubble {
  background: #1f1f1f;
  border-color: #3d3d3d;
}

body.theme-dark
  .viewticket-page
  .viewticket-message--user
  .viewticket-message__bubble {
  background: #2a2318;
  border-color: #8f542e;
}

body.theme-dark .viewticket-page .viewticket-message__text {
  color: #d2d2d2;
}

body.theme-dark .viewticket-page .viewticket-message__text a {
  color: var(--gmf-orange);
}

body.theme-dark .viewticket-page .viewticket-message__file {
  color: var(--gmf-orange);
}

body.theme-dark .viewticket-page .dash-form .control-label,
body.theme-dark .viewticket-page .dash-form label.control-label {
  color: #d2d2d2;
}

body.theme-dark .viewticket-page .dash-form .form-control {
  background: #151515;
  border-color: var(--gmf-border);
  color: #d2d2d2;
}

body.theme-dark .viewticket-page .dash-form .form-control:focus {
  background: #151515;
  border-color: var(--gmf-border);
  box-shadow: 0 0 0 2px rgba(255, 127, 0, 0.25);
  color: #ffffff;
}

body.theme-dark .viewticket-page .dash-form .form-control::placeholder {
  color: #a0a0a0;
  opacity: 1;
}

body.theme-dark .viewticket-page .tickets-uploader {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark
  .viewticket-page
  .tickets-uploader:not(:has(#uploader-button)):not(:has(.files-item))::after {
  color: #d2d2d2;
}

body.theme-dark .viewticket-page .tickets-uploader #uploader-button .paperclip,
body.theme-dark
  .viewticket-page
  .tickets-uploader
  #uploader-button
  .paperclip
  svg {
  color: #d2d2d2;
  fill: #d2d2d2;
}

body.theme-dark .viewticket-page .tickets-uploader:hover {
  background: #292425;
  border-color: var(--gmf-orange);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

body.theme-dark .viewticket-page .ticket-info {
  background: #1d1717;
}

body.theme-dark .viewticket-page .ticket-info__intro {
  color: #d2d2d2;
}

body.theme-dark .viewticket-page .ticket-info__row {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .viewticket-page .ticket-info__label {
  color: #d2d2d2;
}

body.theme-dark .viewticket-page .ticket-info__value {
  color: #d2d2d2;
}

body.theme-dark .viewticket-page .ticket-info__value--accent {
  color: var(--gmf-orange);
}

body.theme-dark .viewticket-page .ticket-info__note {
  background: #151515;
  border-color: var(--gmf-border);
}

body.theme-dark .viewticket-page .ticket-info__note-title {
  color: #ffffff;
}

body.theme-dark .viewticket-page .ticket-info__note-text {
  color: #d2d2d2;
}

/* ==========================================================================
   FAQ page
   ========================================================================== */

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

.faq-panel__body {
  padding: 30px;
}

.faq-content:not(.faq-content--plain) .panel-group,
.faq-content:not(.faq-content--plain) > .panel-group {
  margin: 0;
}

.faq-accordion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
}

.faq-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.faq-item__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--gmf-border);
  background: transparent;
  text-align: inherit;
  cursor: pointer;
}

.faq-item:last-child .faq-item__trigger {
  border-bottom: 0;
}

.faq-item__question {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
}

.faq-item__toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gmf-border);
  border-radius: 8px;
  background: var(--gmf-dash-bg);
  color: var(--gmf-text);
  transition: transform 0.2s ease;
}

.faq-item__toggle img {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-item.is-open .faq-item__toggle {
  transform: rotate(180deg);
}

.faq-item__answer {
  overflow: hidden;
}

.faq-item__answer[hidden] {
  display: none;
}

.faq-item__answer-inner {
  padding: 12px 0 4px;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.faq-item__answer-inner > :first-child {
  margin-top: 0;
}

.faq-item__answer-inner > :last-child {
  margin-bottom: 0;
}

.faq-content--plain {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gmf-text);
}

.faq-content--plain > :first-child {
  margin-top: 0;
}

.faq-content--plain > :last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .faq-accordion {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .faq-page {
    gap: 16px;
  }

  .faq-panel__body {
    padding: 20px;
  }

  .faq-item__trigger {
    gap: 16px;
  }
}

body.theme-dark .faq-page .dash-panel--faq .faq-panel__body {
  background: #1d1717;
}

/* ==========================================================================
   Mass Order page
   ========================================================================== */

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

.massorder-page .dash-form {
  gap: 24px;
}

.massorder-page .dash-form .alert {
  border-radius: 12px;
}

.massorder-page .dash-form textarea.form-control {
  min-height: 260px;
  height: 260px;
  resize: vertical;
}

.massorder-page .dash-submit {
  width: 240px;
  max-width: 100%;
}

body.theme-dark .massorder-page .dash-panel--massorder > .dash-form {
  background: #1d1717;
}

@media (max-width: 767px) {
  .massorder-page {
    gap: 16px;
  }

  .massorder-page .dash-submit {
    width: 100%;
  }
}

/* ==========================================================================
   Child Panel page
   ========================================================================== */

.child-panel-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1560px;
}

.child-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.child-panel-grid--faq-only {
  grid-template-columns: minmax(0, 1fr);
}

.child-panel-grid > .dash-panel {
  height: auto;
}

.child-panel-page .dash-form .alert {
  border-radius: 12px;
}

.child-panel-page .dash-submit {
  width: 100%;
  max-width: 100%;
}

body.theme-dark
  .child-panel-page
  .dash-panel--child-panel-faq
  .faq-panel__body {
  background: #1d1717;
}

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

.child-panel-ns {
  margin-bottom: 0;
  padding: 16px 20px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  color: var(--gmf-text-muted);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  line-height: 1.5;
}

.child-panel-ns__list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.child-panel-ns__list > li + li {
  margin-top: 4px;
}

.faq-accordion--single {
  grid-template-columns: 1fr;
  gap: 0;
}

@media (max-width: 1199px) {
  .child-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .child-panel-page {
    gap: 16px;
  }

  .dash-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .page-hero__badge {
    max-width: 64px;
    max-height: 64px;
  }
}

/* ==========================================================================
   Affiliates page
   ========================================================================== */

.affiliates-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: min(1560px, 100%);
  min-width: 0;
  box-sizing: border-box;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 120px;
  padding: 24px 32px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  box-sizing: border-box;
  overflow: hidden;
}

.dash-stat-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.dash-stat-card__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
}

.dash-stat-card__value {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.dash-stat-card__value--link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-stat-card__value-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dash-stat-card__value-row .dash-stat-card__value {
  flex: 1 1 auto;
  min-width: 0;
}

.dash-stat-card__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-orange-15);
  color: var(--gmf-text);
}

.dash-stat-card__icon iconify-icon {
  display: block;
  color: #232323;
}

.affiliates-page .dash-stat-card__icon {
  background: #eeded1;
}

body.theme-dark .affiliates-page .dash-stat-card__icon {
  background: #1d1717;
  color: #ffffff;
}

body.theme-dark .affiliates-page .dash-stat-card__icon iconify-icon {
  color: #ffffff;
}

.affiliates-payout-action {
  display: flex;
  justify-content: flex-start;
}

.affiliates-payout-action .dash-submit {
  width: auto;
  min-width: 240px;
  padding: 0 28px;
  text-decoration: none;
}

.affiliates-page .dash-table {
  border: 0;
  border-radius: 0;
}

@media (max-width: 1199px) {
  .dash-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .dash-stat-card {
    min-height: 88px;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
  }

  .dash-stat-card__content {
    gap: 4px;
  }

  .dash-stat-card__title {
    font-size: 14px;
  }

  .dash-stat-card__value {
    font-size: 13px;
  }

  .dash-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .dash-stat-card__icon iconify-icon {
    width: 22px;
    height: 22px;
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .affiliates-page {
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .dash-stat-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  .dash-stat-card {
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  .dash-stat-card__value--link {
    max-width: 100%;
  }

  .affiliates-payout-action .dash-submit {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   Giveaway page
   ========================================================================== */

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

/* Giveaway — typography (Figma 5445:21844) */
.giveaway-page .page-hero__title {
  font-family: var(--gmf-font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.56px;
  text-transform: uppercase;
}

.giveaway-page .page-hero__subtitle {
  font-family: var(--gmf-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.giveaway-page .dash-task-card__reward {
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.giveaway-page .dash-task-card__desc {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.giveaway-page .dash-btn-orange {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.giveaway-page .dash-steps-panel__title {
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.giveaway-page .dash-steps-panel__subtitle {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.giveaway-page .dash-step-card__number {
  font-family: var(--gmf-font-step-number);
  font-weight: 400;
  line-height: 1.5;
}

.giveaway-page .dash-step-card__label {
  font-family: var(--gmf-font-heading);
  font-weight: 600;
  line-height: 1.5;
}

@media (min-width: 1300px) {
  .giveaway-page .dash-step-card__number {
    font-size: 36px;
  }

  .giveaway-page .dash-step-card__label {
    font-size: 18px;
  }
}

.dash-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.dash-task-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 24px 20px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);
}

.dash-task-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.dash-task-card__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.dash-task-card__logo--dark {
  display: none;
}

body.theme-dark .giveaway-page .dash-task-card__logo--light {
  display: none;
}

body.theme-dark .giveaway-page .dash-task-card__logo--dark {
  display: block;
}

.dash-task-card__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  text-align: center;
}

.dash-task-card__reward {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
  white-space: nowrap;
}

.dash-task-card__desc {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text-muted);
  white-space: nowrap;
}

.dash-btn-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 6px 28px;
  border: 1px solid var(--gmf-orange);
  border-radius: 12px;
  background: linear-gradient(180deg, #ff7f00 0%, #d75d11 100%);
  box-shadow:
    0 4px 6px rgba(255, 88, 0, 0.12),
    0 8px 8px rgba(255, 88, 0, 0.16),
    inset 0 1px 18px rgba(0, 0, 0, 0.1),
    inset 0 1px 4px #ffeddb;
  color: var(--gmf-white);
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.dash-btn-orange:hover,
.dash-btn-orange:focus {
  filter: brightness(1.05);
  color: var(--gmf-white);
  text-decoration: none;
}

.dash-steps-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(24px, 4vw, 60px);
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);
  container-type: inline-size;
  container-name: dash-steps-panel;
}

.dash-steps-panel__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 416px;
  text-align: center;
}

.dash-steps-panel__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
}

.dash-steps-panel__subtitle {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text-muted);
}

.dash-steps {
  display: grid;
  grid-template-columns: 324px minmax(40px, 1fr) 324px minmax(40px, 1fr) 324px;
  justify-content: center;
  align-items: center;
  column-gap: 0;
  width: 100%;
  min-width: 0;
}

.dash-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.5vw, 24px);
  box-sizing: border-box;
  width: 324px;
  max-width: 324px;
  min-width: 0;
  padding: clamp(16px, 2.5vw, 32px) clamp(12px, 2vw, 36px);
  border: 1px solid var(--gmf-border);
  border-radius: 24px;
  background: linear-gradient(
    112.56deg,
    rgba(104, 104, 104, 0.06) 2.46%,
    rgba(255, 127, 0, 0.06) 100.38%
  );
}

.dash-step-card__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(52px, 8vw, 64px);
  height: clamp(52px, 8vw, 64px);
  box-sizing: border-box;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--gmf-font-step-number);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  line-height: 1;
  color: var(--gmf-border);
}

.dash-step-card__label {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: clamp(13px, 1.1vw + 0.35rem, 18px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gmf-text);
  max-width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.dash-step-connector {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

.dash-step-connector__dot {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gmf-orange);
}

.dash-step-connector__line {
  flex: 1 1 auto;
  height: 0;
  border-top: 2px dashed var(--gmf-orange);
}

/* Panel too narrow for three 324px cards — use fluid responsive columns */
@container dash-steps-panel (max-width: 1079px) {
  .dash-steps {
    grid-template-columns:
      minmax(0, 1fr) minmax(10px, 40px) minmax(0, 1fr)
      minmax(10px, 40px) minmax(0, 1fr);
    justify-content: stretch;
    column-gap: 7px;
  }

  .dash-step-card {
    width: 100%;
    max-width: none;
  }
}

/* Tablet and up: horizontal grid row (connectors between cards) */
@media (min-width: 768px) {
  .dash-step-connector {
    flex-direction: row;
    align-self: auto;
    width: 100%;
    min-height: 0;
    margin: 0;
  }

  .dash-step-connector__line {
    width: auto;
    height: 0;
    min-height: 0;
    border-top: 2px dashed var(--gmf-orange);
    border-left: 0;
  }
}

@media (max-width: 1299px) {
  .dash-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-steps-panel {
    gap: 28px;
    padding: 32px 20px;
  }

  .dash-steps {
    column-gap: 5px;
    grid-template-columns:
      minmax(0, 1fr) minmax(8px, 28px) minmax(0, 1fr)
      minmax(8px, 28px) minmax(0, 1fr);
  }

  .dash-step-card {
    padding: 14px 10px;
    gap: 12px;
    border-radius: 18px;
  }

  .dash-step-card__number {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .dash-step-card__label {
    font-size: 13px;
  }
}

@media (max-width: 1199px) {
  .dash-steps-panel {
    gap: 24px;
    padding: 28px 16px;
  }

  .dash-steps {
    column-gap: 4px;
    grid-template-columns:
      minmax(0, 1fr) minmax(6px, 20px) minmax(0, 1fr)
      minmax(6px, 20px) minmax(0, 1fr);
  }

  .dash-step-card {
    align-items: center;
    padding: 12px 8px;
    gap: 10px;
    border-radius: 16px;
  }

  .dash-step-card__number {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .dash-step-card__label {
    font-size: 12px;
    text-align: center;
    width: 100%;
  }

  .dash-step-connector__dot {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 991px) {
  .dash-steps-panel {
    padding: 24px 14px;
  }

  .dash-step-card {
    padding: 12px 8px;
    gap: 10px;
    border-radius: 14px;
  }

  .dash-step-card__number {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .dash-step-card__label {
    font-size: 11px;
  }

  .dash-steps {
    column-gap: 3px;
    grid-template-columns:
      minmax(0, 1fr) minmax(6px, 16px) minmax(0, 1fr)
      minmax(6px, 16px) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .giveaway-page {
    gap: 16px;
  }

  .dash-task-grid {
    grid-template-columns: 1fr;
  }

  .dash-task-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .dash-steps-panel {
    gap: 24px;
    padding: 24px 20px;
  }

  /* Mobile: stack steps vertically */
  .dash-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    grid-template-columns: none;
  }

  .dash-step-card {
    align-items: flex-start;
    width: 100%;
    max-width: none;
    padding: 24px 20px;
    gap: 16px;
    border-radius: 20px;
  }

  .dash-step-card__number {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .dash-step-card__label {
    font-size: 16px;
    text-align: left;
    width: auto;
    white-space: nowrap;
  }

  .dash-step-connector {
    flex-direction: column;
    align-self: center;
    width: 11px;
    min-height: 28px;
    margin: 0 auto;
  }

  .dash-step-connector__line {
    width: 0;
    height: 100%;
    min-height: 20px;
    border-top: 0;
    border-left: 2px dashed var(--gmf-orange);
  }

  .dash-step-connector__dot {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 480px) {
  .dash-steps-panel {
    padding: 20px 16px;
  }

  .dash-step-card {
    padding: 20px 16px;
    gap: 14px;
  }

  .dash-step-card__number {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .dash-step-card__label {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .giveaway-page .dash-step-card__label {
    font-size: 16px;
    text-align: left;
  }

  .giveaway-page .dash-step-card__number {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .giveaway-page .page-hero__title {
    font-size: 24px;
    letter-spacing: -0.48px;
  }

  .giveaway-page .page-hero__subtitle {
    font-size: 14px;
  }
}

/* Giveaway page — dark mode (Figma 5445:21844) */
body.theme-dark .giveaway-page .page-hero__title {
  color: #ffffff;
}

body.theme-dark .giveaway-page .page-hero__subtitle {
  color: #ffffff;
}

body.theme-dark .giveaway-page .dash-panel {
  background: #1d1717;
  border-color: var(--gmf-border);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
}

body.theme-dark .giveaway-page .dash-panel__body--content {
  color: #d2d2d2;
}

body.theme-dark .giveaway-page .dash-task-card {
  background: #1d1717;
  border-color: #8f542e;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.04);
}

body.theme-dark .giveaway-page .dash-task-card__reward {
  color: #ffffff;
}

body.theme-dark .giveaway-page .dash-task-card__desc {
  color: #d2d2d2;
}

body.theme-dark .giveaway-page .dash-btn-orange,
body.theme-dark .giveaway-page .dash-btn-orange:hover,
body.theme-dark .giveaway-page .dash-btn-orange:focus,
body.theme-dark .giveaway-page .dash-btn-orange:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
  background-color: #a1480b;
  background-image: linear-gradient(
    99.94deg,
    rgba(255, 127, 0, 0.75) 17.44%,
    rgba(161, 72, 11, 0.675) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

body.theme-dark .giveaway-page .dash-steps-panel {
  background: #1d1717;
  border-color: #8f542e;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.04);
}

body.theme-dark .giveaway-page .dash-steps-panel__title {
  color: #ffffff;
}

body.theme-dark .giveaway-page .dash-steps-panel__subtitle {
  color: #d2d2d2;
  font-weight: 600;
}

body.theme-dark .giveaway-page .dash-step-card {
  background: #151515;
  border-color: #8f542e;
}

body.theme-dark .giveaway-page .dash-step-card__number {
  border-color: #8f542e;
  border-radius: 16px;
  background: #1d1717;
  color: #d2d2d2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
}

body.theme-dark .giveaway-page .dash-step-card__label {
  color: #ffffff;
}

body.theme-dark .giveaway-page .dash-step-connector__dot {
  background: #ff7f00;
}

body.theme-dark .giveaway-page .dash-step-connector__line {
  border-color: #ff7f00;
}

/* ==========================================================================
   Dashboard page
   ========================================================================== */

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

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 142px;
  padding: 40px;
  border-radius: 16px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-clip: border-box;
}

.dashboard-stat-card__content {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.dashboard-stat-card__value {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-stat-card__label {
  margin: 0;
  overflow: hidden;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-stat-card__icon {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 246, 237, 0.2);
}

.dashboard-stat-card__icon img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.dashboard-stat-card--level {
  background-color: #8bc34a;
  box-shadow: 0 10px 15px rgba(123, 179, 61, 0.2);
}

.dashboard-stat-card--orders {
  background-color: #369fff;
  box-shadow: 0 10px 15px rgba(54, 159, 255, 0.2);
}

.dashboard-stat-card--services {
  background-color: #ff993a;
  box-shadow: 0 10px 15px rgba(255, 153, 58, 0.2);
}

.dashboard-stat-card--balance {
  background-color: #e2b62d;
  box-shadow: 0 10px 15px rgba(226, 182, 45, 0.2);
}

@media (max-width: 1599px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-stat-card {
    min-height: 112px;
    padding: 22px 18px;
    gap: 12px;
    border-radius: 14px;
  }

  .dashboard-stat-card__icon {
    width: 48px;
    height: 48px;
  }

  .dashboard-stat-card__icon img {
    width: 34px;
    height: 34px;
  }

  .dashboard-stat-card__value {
    font-size: 18px;
  }

  .dashboard-stat-card__label {
    font-size: 12px;
  }
}

@media (max-width: 1199px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .dashboard-stat-card {
    min-height: 0;
    padding: 18px 16px;
    gap: 12px;
  }

  .dashboard-stat-card__content {
    gap: 4px;
  }

  .dashboard-stat-card__value {
    font-size: 18px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 1023px) {
  .dashboard-stat-card {
    min-height: 0;
    padding: 16px 14px;
  }

  .dashboard-stat-card__value {
    font-size: 17px;
  }

  .dashboard-stat-card__icon {
    width: 48px;
    height: 48px;
  }

  .dashboard-stat-card__icon img {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 767px) {
  .dashboard-page {
    gap: 16px;
  }

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

  .dashboard-stat-card {
    min-height: 88px;
    padding: 16px 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .dashboard-stat-card__icon {
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 10px;
  }

  .dashboard-stat-card__icon img {
    width: 36px;
    height: 36px;
  }

  .dashboard-stat-card__content {
    gap: 4px;
  }

  .dashboard-stat-card__value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: unset;
  }

  .dashboard-stat-card__label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-stat-card {
    min-height: 80px;
    padding: 14px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .dashboard-stat-card__icon {
    width: 44px;
    height: 44px;
  }

  .dashboard-stat-card__icon img {
    width: 32px;
    height: 32px;
  }

  .dashboard-stat-card__value {
    font-size: clamp(14px, 4vw, 16px);
  }

  .dashboard-stat-card__label {
    font-size: 11px;
  }
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(50%, 1fr) minmax(0, min(592px, 50%));
  gap: 24px;
  align-items: stretch;
}

.dashboard-progress {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  width: 100%;
  min-height: 292px;
  padding: 32px 30px;
  border-radius: 20px;
  background: linear-gradient(156.98deg, #461d04 16.03%, #ff9e32 110.21%);
}

.dashboard-progress__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dashboard-progress__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-transform: capitalize;
  color: #fff;
}

.dashboard-progress__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.dashboard-progress__badge img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.dashboard-progress__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.dashboard-progress__levels {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.dashboard-progress__level {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-progress__level--next {
  justify-content: flex-end;
}

.dashboard-progress__level-name {
  overflow: hidden;
  min-width: 0;
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-progress__level-badge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.dashboard-progress__level-badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.dashboard-progress__meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.dashboard-progress__bar {
  position: relative;
  width: 100%;
  height: 36px;
}

.dashboard-progress__bar--has-progress .dashboard-progress__bar-level {
  display: none;
}

.dashboard-progress__bar-level {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  overflow: hidden;
  max-width: calc(100% - 88px);
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: none;
}

.dashboard-progress__bar-track {
  position: absolute;
  inset: 0;
  border: 1px solid #ff7f00;
  border-radius: 100px;
  background: rgba(255, 246, 237, 0.3);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.02);
}

.dashboard-progress__bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  height: 36px;
  min-width: 0;
  max-width: 100%;
  padding: 4px;
  border-radius: 100px;
  background: #ff7f00;
  box-shadow: inset 0 0 6px #be5900;
  overflow: hidden;
  pointer-events: none;
}

.dashboard-progress__bar-fill--active {
  min-width: 52px;
}

.dashboard-progress__bar-thumb {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 4px 12px;
  border: 1px solid #8f542e;
  border-radius: 100px;
  background: #fff;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.02);
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #ff7f00;
  pointer-events: none;
}

.dashboard-progress__hint {
  margin: 0;
  overflow: hidden;
  font-family: var(--gmf-font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user-card {
  display: flex;
  min-width: 0;
  width: 100%;
  min-height: 292px;
  padding: 24px 30px;
  border: 1px solid #8f542e;
  border-radius: 20px;
  background: #fff6ed;
}

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

.dashboard-user-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 16px 32px;
  border: 1px solid #8f542e;
  border-radius: 12px;
  background: #fffaec;
}

.dashboard-user-field__label {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #232323;
}

.dashboard-user-field__value {
  overflow: hidden;
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #ff7f00;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1260px) {
  .dashboard-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .dashboard-progress {
    min-width: 50%;
    min-height: 0;
    padding: 28px 20px;
  }

  .dashboard-progress__title {
    font-size: 18px;
  }

  .dashboard-progress__level-name {
    font-size: 14px;
  }

  .dashboard-progress__level-badge,
  .dashboard-progress__level-badge img {
    width: 34px;
    height: 34px;
  }

  .dashboard-progress__bar,
  .dashboard-progress__bar-fill {
    height: 34px;
  }

  .dashboard-progress__bar-thumb {
    min-width: 46px;
    height: 26px;
    padding: 4px 10px;
    font-size: 14px;
  }

  .dashboard-progress__hint {
    font-size: 11px;
    line-height: 1.45;
  }

  .dashboard-user-card {
    min-height: 0;
    min-width: 0;
    padding: 18px 16px;
  }

  .dashboard-user-grid {
    gap: 8px;
  }

  .dashboard-user-field {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .dashboard-user-field__label {
    font-size: 12px;
  }

  .dashboard-user-field__value {
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  .dashboard-overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dashboard-progress {
    min-width: 0;
    width: 100%;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .dashboard-progress__title {
    font-size: 18px;
  }

  .dashboard-progress__level-name {
    font-size: 15px;
  }

  .dashboard-progress__level-badge,
  .dashboard-progress__level-badge img {
    width: 36px;
    height: 36px;
  }

  .dashboard-progress__bar,
  .dashboard-progress__bar-fill {
    height: 34px;
  }

  .dashboard-progress__bar-thumb {
    min-width: 48px;
    height: 26px;
    padding: 4px 10px;
    font-size: 15px;
  }

  .dashboard-progress__hint {
    font-size: 11px;
    line-height: 1.45;
  }

  .dashboard-user-card {
    padding: 22px 24px;
  }

  .dashboard-user-grid {
    gap: 12px;
  }

  .dashboard-user-field {
    padding: 14px 20px;
    border-radius: 12px;
  }

  .dashboard-user-field__label {
    font-size: 14px;
  }

  .dashboard-user-field__value {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .dashboard-page {
    gap: 16px;
  }

  .dashboard-overview {
    gap: 16px;
  }

  .dashboard-progress {
    min-height: 0;
    padding: 24px 18px;
    border-radius: 16px;
  }

  .dashboard-progress__header {
    gap: 8px;
  }

  .dashboard-progress__title {
    font-size: 17px;
  }

  .dashboard-progress__badge,
  .dashboard-progress__badge img {
    width: 52px;
    height: 52px;
  }

  .dashboard-progress__levels {
    gap: 10px;
  }

  .dashboard-progress__level-name {
    font-size: 14px;
  }

  .dashboard-progress__level-badge,
  .dashboard-progress__level-badge img {
    width: 32px;
    height: 32px;
  }

  .dashboard-progress__bar,
  .dashboard-progress__bar-fill {
    height: 32px;
  }

  .dashboard-progress__bar-thumb {
    min-width: 44px;
    height: 24px;
    padding: 4px 8px;
    font-size: 13px;
  }

  .dashboard-progress__hint {
    font-size: 11px;
  }

  .dashboard-user-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .dashboard-user-field {
    padding: 14px 16px;
  }

  .dashboard-user-field__label {
    font-size: 12px;
  }

  .dashboard-user-field__value {
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .dashboard-user-field {
    padding: 12px 14px;
  }

  .dashboard-user-field__label {
    font-size: 11px;
  }

  .dashboard-user-field__value {
    font-size: 12px;
  }
}

.dashboard-level-table {
  width: 100%;
  max-width: 1560px;
  min-width: 0;
}

.dashboard-level-table__layout {
  --level-head-height: 100px;
  --level-row-height: 70px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-level-table__labels {
  flex: 0 0 344px;
  min-width: 344px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #8f542e;
  border-radius: 16px;
  background: #fff6ed;
}

.dashboard-level-table__labels-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: var(--level-head-height);
  min-height: var(--level-head-height);
  padding: 16px 24px;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.dashboard-level-table__labels-title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}

.dashboard-level-table__labels-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 60px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 246, 237, 0.5);
}

.dashboard-level-table__labels-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.dashboard-level-table__label-row {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--level-row-height);
  min-height: var(--level-row-height);
  flex-shrink: 0;
  padding: 16px 24px;
  background: #fff6ed;
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #232323;
}

.dashboard-level-table__label-row--alt {
  background: #fff;
}

.dashboard-level-table__table-wrap {
  flex: 1 0 720px;
  overflow: hidden;
  border: 1px solid #8f542e;
  border-radius: 16px;
  background: #fff6ed;
}

.dashboard-level-table__table {
  --level-table-cols: repeat(6, minmax(0, 1fr));
  min-width: 720px;
}

.dashboard-level-table__head-row {
  display: grid;
  grid-template-columns: var(--level-table-cols);
  box-sizing: border-box;
  height: var(--level-head-height);
  min-height: var(--level-head-height);
  border-radius: 15px 15px 0 0;
  background-color: transparent;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.dashboard-level-table__body {
  display: grid;
  grid-template-columns: var(--level-table-cols);
}

.dashboard-level-table__column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid #8f542e;
}

.dashboard-level-table__column:last-child {
  border-right: 0;
}

.dashboard-level-table__column-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  height: var(--level-head-height);
  min-height: var(--level-head-height);
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-level-table__column-head:last-child {
  border-right: 0;
}

.dashboard-level-table__column-badge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.dashboard-level-table__column-badge img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.dashboard-level-table__column-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.dashboard-level-table__column-title {
  font-family: var(--gmf-font-heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}

.dashboard-level-table__column-range {
  font-family: var(--gmf-font-heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}

.dashboard-level-table__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--level-row-height);
  min-height: var(--level-row-height);
  flex-shrink: 0;
  padding: 16px 20px;
  background: #fff6ed;
}

.dashboard-level-table__cell--alt {
  background: #fff;
}

.dashboard-level-table__column.is-active .dashboard-level-table__cell,
.dashboard-level-table__column.is-active .dashboard-level-table__cell--alt {
  background: #ffedda;
}

/* Dashboard — dark mode (user card & level table rows) */
body.theme-dark .dashboard-page .dashboard-user-card {
  background: #1d1717;
}

body.theme-dark .dashboard-page .dashboard-user-field {
  background: #151515;
}

body.theme-dark .dashboard-page .dashboard-level-table__label-row,
body.theme-dark
  .dashboard-level-table--modal
  .dashboard-level-table__label-row {
  background: #151515;
}

body.theme-dark .dashboard-page .dashboard-level-table__label-row--alt,
body.theme-dark
  .dashboard-level-table--modal
  .dashboard-level-table__label-row--alt {
  background: #0c0909;
}

body.theme-dark .dashboard-page .dashboard-level-table__cell,
body.theme-dark .dashboard-level-table--modal .dashboard-level-table__cell {
  background: #151515;
}

body.theme-dark .dashboard-page .dashboard-level-table__cell--alt,
body.theme-dark
  .dashboard-level-table--modal
  .dashboard-level-table__cell--alt {
  background: #0c0909;
}

body.theme-dark .dashboard-page .dashboard-user-field__label,
body.theme-dark .dashboard-page .dashboard-level-table__label-row,
body.theme-dark .dashboard-page .dashboard-level-table__label-row--alt,
body.theme-dark .dashboard-level-table--modal .dashboard-level-table__label-row,
body.theme-dark
  .dashboard-level-table--modal
  .dashboard-level-table__label-row--alt {
  color: #ffffff;
}

body.theme-dark .dashboard-page .dashboard-level-table__value,
body.theme-dark .dashboard-level-table--modal .dashboard-level-table__value {
  color: #ffffff;
}

body.theme-dark
  .dashboard-page
  .dashboard-level-table__column.is-active
  .dashboard-level-table__cell,
body.theme-dark
  .dashboard-page
  .dashboard-level-table__column.is-active
  .dashboard-level-table__cell--alt,
body.theme-dark
  .dashboard-level-table--modal
  .dashboard-level-table__column.is-active
  .dashboard-level-table__cell,
body.theme-dark
  .dashboard-level-table--modal
  .dashboard-level-table__column.is-active
  .dashboard-level-table__cell--alt {
  background: #292425;
}

.dashboard-level-table__icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.dashboard-level-table__icon--check {
  width: 22px;
  height: 20px;
}

.dashboard-level-table__value {
  font-family: var(--gmf-font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #232323;
}

@media (max-width: 1199px) {
  .dashboard-page .dashboard-level-table__layout,
  .dashboard-level-table--modal .dashboard-level-table__layout {
    gap: 20px;
  }

  .dashboard-page .dashboard-level-table__labels,
  .dashboard-level-table--modal .dashboard-level-table__labels {
    flex-basis: 240px;
    min-width: 240px;
  }

  .dashboard-page .dashboard-level-table__labels-head,
  .dashboard-level-table--modal .dashboard-level-table__labels-head {
    gap: 8px;
    padding: 16px 12px;
  }

  .dashboard-page .dashboard-level-table__labels-title,
  .dashboard-level-table--modal .dashboard-level-table__labels-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-page .dashboard-level-table__labels-icon,
  .dashboard-level-table--modal .dashboard-level-table__labels-icon {
    flex: 0 0 auto;
  }

  .dashboard-page .dashboard-level-table__label-row,
  .dashboard-level-table--modal .dashboard-level-table__label-row {
    padding: 16px 16px;
    font-size: 13px;
  }

  .dashboard-level-table--modal .dashboard-level-table__layout {
    min-width: 980px;
  }
}

@media (max-width: 767px) {
  .dashboard-page .dashboard-level-table__layout,
  .dashboard-level-table--modal .dashboard-level-table__layout {
    --level-head-height: 108px;
    --level-row-height: 64px;
    gap: 12px;
  }

  .dashboard-page .dashboard-level-table__labels,
  .dashboard-level-table--modal .dashboard-level-table__labels {
    flex-basis: 180px;
    min-width: 180px;
  }

  .dashboard-page .dashboard-level-table__labels-head,
  .dashboard-level-table--modal .dashboard-level-table__labels-head {
    padding: 14px 10px;
    gap: 6px;
  }

  .dashboard-page .dashboard-level-table__labels-title,
  .dashboard-level-table--modal .dashboard-level-table__labels-title {
    font-size: 12px;
  }

  .dashboard-page .dashboard-level-table__labels-icon,
  .dashboard-level-table--modal .dashboard-level-table__labels-icon {
    width: 36px;
    padding: 2px;
  }

  .dashboard-page .dashboard-level-table__labels-icon img,
  .dashboard-level-table--modal .dashboard-level-table__labels-icon img {
    width: 32px;
    height: 32px;
  }

  .dashboard-page .dashboard-level-table__label-row,
  .dashboard-level-table--modal .dashboard-level-table__label-row {
    padding: 12px;
    font-size: 11px;
    line-height: 1.35;
  }

  .dashboard-page .dashboard-level-table__table-wrap,
  .dashboard-level-table--modal .dashboard-level-table__table-wrap {
    flex-basis: 640px;
  }

  .dashboard-page .dashboard-level-table__table,
  .dashboard-level-table--modal .dashboard-level-table__table {
    min-width: 640px;
  }

  .dashboard-page .dashboard-level-table__column-head,
  .dashboard-level-table--modal .dashboard-level-table__column-head {
    gap: 3px;
    padding: 10px 6px;
    min-width: 0;
    overflow: hidden;
  }

  .dashboard-page .dashboard-level-table__column-badge,
  .dashboard-level-table--modal .dashboard-level-table__column-badge {
    width: 32px;
    height: 32px;
  }

  .dashboard-page .dashboard-level-table__column-badge img,
  .dashboard-level-table--modal .dashboard-level-table__column-badge img {
    width: 32px;
    height: 32px;
  }

  .dashboard-page .dashboard-level-table__column-meta,
  .dashboard-level-table--modal .dashboard-level-table__column-meta {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-page .dashboard-level-table__column-title,
  .dashboard-level-table--modal .dashboard-level-table__column-title {
    font-size: 11px;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page .dashboard-level-table__column-range,
  .dashboard-level-table--modal .dashboard-level-table__column-range {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .dashboard-page .dashboard-level-table__cell,
  .dashboard-level-table--modal .dashboard-level-table__cell {
    padding: 12px;
  }

  .dashboard-level-table--modal .dashboard-level-table__layout {
    min-width: 832px;
  }
}

@media (max-width: 480px) {
  .dashboard-page .dashboard-level-table__layout,
  .dashboard-level-table--modal .dashboard-level-table__layout {
    --level-head-height: 104px;
    --level-row-height: 56px;
  }

  .dashboard-page .dashboard-level-table__labels,
  .dashboard-level-table--modal .dashboard-level-table__labels {
    flex-basis: 148px;
    min-width: 148px;
  }

  .dashboard-page .dashboard-level-table__labels-head,
  .dashboard-level-table--modal .dashboard-level-table__labels-head {
    padding: 12px 8px;
    gap: 4px;
  }

  .dashboard-page .dashboard-level-table__labels-title,
  .dashboard-level-table--modal .dashboard-level-table__labels-title {
    font-size: 11px;
  }

  .dashboard-page .dashboard-level-table__labels-icon,
  .dashboard-level-table--modal .dashboard-level-table__labels-icon {
    width: 32px;
  }

  .dashboard-page .dashboard-level-table__labels-icon img,
  .dashboard-level-table--modal .dashboard-level-table__labels-icon img {
    width: 28px;
    height: 28px;
  }

  .dashboard-page .dashboard-level-table__label-row,
  .dashboard-level-table--modal .dashboard-level-table__label-row {
    padding: 10px;
    font-size: 10px;
    line-height: 1.3;
  }

  .dashboard-page .dashboard-level-table__table-wrap,
  .dashboard-level-table--modal .dashboard-level-table__table-wrap {
    flex-basis: 520px;
  }

  .dashboard-page .dashboard-level-table__table,
  .dashboard-level-table--modal .dashboard-level-table__table {
    min-width: 520px;
  }

  .dashboard-page .dashboard-level-table__column-head,
  .dashboard-level-table--modal .dashboard-level-table__column-head {
    padding: 8px 4px;
  }

  .dashboard-page .dashboard-level-table__column-badge,
  .dashboard-level-table--modal .dashboard-level-table__column-badge {
    width: 28px;
    height: 28px;
  }

  .dashboard-page .dashboard-level-table__column-badge img,
  .dashboard-level-table--modal .dashboard-level-table__column-badge img {
    width: 28px;
    height: 28px;
  }

  .dashboard-page .dashboard-level-table__column-title,
  .dashboard-level-table--modal .dashboard-level-table__column-title {
    font-size: 10px;
  }

  .dashboard-page .dashboard-level-table__column-range,
  .dashboard-level-table--modal .dashboard-level-table__column-range {
    font-size: 9px;
  }

  .dashboard-page .dashboard-level-table__cell,
  .dashboard-level-table--modal .dashboard-level-table__cell {
    padding: 10px;
  }

  .dashboard-level-table--modal .dashboard-level-table__layout {
    min-width: 680px;
  }
}

/* User level modal */
.user-level-modal:not(.in):not(.show) {
  display: none !important;
}

.user-level-modal.fade.in,
.user-level-modal.fade.show {
  display: block !important;
}

.user-level-modal .modal-dialog.user-level-modal__dialog {
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: min(1180px, calc(100vw - 32px)) !important;
  margin: 16px auto;
}

.user-level-modal.fade.in .user-level-modal__dialog,
.user-level-modal.fade.show .user-level-modal__dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 32px);
  margin: 16px auto;
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: min(1180px, calc(100vw - 32px)) !important;
}

body:has(#user-level-modal.in) .modal-backdrop.fade,
body:has(#user-level-modal.show) .modal-backdrop.fade {
  opacity: 0.55;
}

.user-level-modal .modal-content.user-level-modal__panel {
  width: 100%;
  border: 0;
  background: #fffaec;
  background-color: #fffaec;
  box-shadow: none;
}

.user-level-modal__panel {
  overflow: hidden;
  width: 100%;
  border: 1px solid #8f542e;
  border-radius: 16px;
  background: #fffaec;
  background-color: #fffaec;
  box-shadow: 0 24px 64px rgba(35, 35, 35, 0.18);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
}

.user-level-modal__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 72px;
  flex-shrink: 0;
  padding: 16px 24px;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.user-level-modal__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.user-level-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 246, 237, 0.18);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.user-level-modal__close:hover,
.user-level-modal__close:focus {
  background: rgba(255, 246, 237, 0.3);
  color: #fff;
}

.user-level-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fffaec;
  background-color: #fffaec;
}

body.theme-dark .user-level-modal .modal-content.user-level-modal__panel,
body.theme-dark .user-level-modal__panel {
  background: #151515;
  background-color: #151515;
}

body.theme-dark .user-level-modal__body {
  background: #1d1717;
  background-color: #1d1717;
}

.dashboard-level-table--modal {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.dashboard-level-table--modal .dashboard-level-table__layout {
  min-width: 1092px;
}

@media (max-width: 767px) {
  .user-level-modal .modal-dialog.user-level-modal__dialog,
  .user-level-modal.fade.in .user-level-modal__dialog,
  .user-level-modal.fade.show .user-level-modal__dialog {
    margin: 12px auto;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-height: 0;
    max-height: calc(100dvh - 24px);
    align-items: stretch;
  }

  .user-level-modal__panel {
    max-height: calc(100dvh - 24px);
  }

  .user-level-modal__head {
    min-height: 64px;
    padding: 14px 16px;
  }

  .user-level-modal__title {
    font-size: 18px;
  }

  .user-level-modal__body {
    padding: 12px;
  }
}

/* Giveaway info modal (Trustpilot learn more) */
.giveaway-info-modal:not(.in):not(.show) {
  display: none !important;
}

.giveaway-info-modal.fade.in,
.giveaway-info-modal.fade.show {
  display: block !important;
}

.giveaway-info-modal .modal-dialog.giveaway-info-modal__dialog {
  width: min(640px, calc(100vw - 32px)) !important;
  max-width: min(640px, calc(100vw - 32px)) !important;
  margin: 16px auto;
}

.giveaway-info-modal.fade.in .giveaway-info-modal__dialog,
.giveaway-info-modal.fade.show .giveaway-info-modal__dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 32px);
  margin: 16px auto;
}

body:has(#giveaway-trustpilot-modal.in) .modal-backdrop.fade,
body:has(#giveaway-trustpilot-modal.show) .modal-backdrop.fade,
body:has(#giveaway-google-modal.in) .modal-backdrop.fade,
body:has(#giveaway-google-modal.show) .modal-backdrop.fade,
body:has(#giveaway-youtube-modal.in) .modal-backdrop.fade,
body:has(#giveaway-youtube-modal.show) .modal-backdrop.fade,
body:has(#giveaway-facebook-modal.in) .modal-backdrop.fade,
body:has(#giveaway-facebook-modal.show) .modal-backdrop.fade {
  opacity: 0.55;
}

.giveaway-info-modal .modal-content.giveaway-info-modal__panel {
  width: 100%;
  border: 0;
  background: var(--gmf-cream);
  box-shadow: none;
}

.giveaway-info-modal__panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-cream);
  box-shadow: 0 24px 64px rgba(35, 35, 35, 0.18);
}

.giveaway-info-modal__head {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 72px;
  padding: 16px 24px;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.giveaway-info-modal__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gmf-white);
}

.giveaway-info-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--gmf-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.giveaway-info-modal__close:hover,
.giveaway-info-modal__close:focus {
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}

.giveaway-info-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.giveaway-info-modal__section {
  margin-bottom: 20px;
}

.giveaway-info-modal__section:last-of-type {
  margin-bottom: 0;
}

.giveaway-info-modal__section-title {
  margin: 0 0 12px;
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-text);
}

.giveaway-info-modal__text {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--gmf-text);
}

.giveaway-info-modal__list {
  margin: 0;
  padding-left: 1.25rem;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--gmf-text-muted);
}

.giveaway-info-modal__list li + li {
  margin-top: 8px;
}

.giveaway-info-modal__list a {
  color: var(--gmf-orange);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.giveaway-info-modal__list a:hover,
.giveaway-info-modal__list a:focus {
  color: var(--gmf-text-brown);
}

.giveaway-info-modal__actions {
  margin-top: 24px;
  padding-top: 8px;
}

.giveaway-info-modal__submit {
  width: 100%;
  box-sizing: border-box;
}

.giveaway-page .dash-task-card button.dash-btn-orange {
  font: inherit;
  appearance: none;
}

body.theme-dark .giveaway-info-modal .modal-content.giveaway-info-modal__panel,
body.theme-dark .giveaway-info-modal__panel {
  background: #1d1717;
  border-color: var(--gmf-border);
}

body.theme-dark .giveaway-info-modal__body {
  background: #1d1717;
}

body.theme-dark .giveaway-info-modal__section-title {
  color: #ffffff;
}

body.theme-dark .giveaway-info-modal__text,
body.theme-dark .giveaway-info-modal__list {
  color: #d2d2d2;
}

@media (max-width: 767px) {
  .giveaway-info-modal .modal-dialog.giveaway-info-modal__dialog,
  .giveaway-info-modal.fade.in .giveaway-info-modal__dialog,
  .giveaway-info-modal.fade.show .giveaway-info-modal__dialog {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: 8px auto;
  }

  .giveaway-info-modal__head {
    min-height: 64px;
    padding: 14px 16px;
  }

  .giveaway-info-modal__title {
    font-size: 18px;
  }

  .giveaway-info-modal__body {
    padding: 16px;
  }
}
