/* ==========================================================================
   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-white: #ffffff;
  --gmf-teal: #16a8b8;
  --gmf-teal-dark: #128a97;
  --gmf-sidebar-width: 260px;
  --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);
}

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 {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

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

.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;
}

/* Sidebar */
.app-sidebar {
  width: var(--gmf-sidebar-width);
  flex-shrink: 0;
  background-color: var(--gmf-bg);
  background-image: var(--sidebar-bg-image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  border-right: 1px solid var(--dash-border-color, #8f542e);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1050;
  overflow-y: auto;
}

.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__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 {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: auto;
  object-fit: contain;
}

.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: 20px;
  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 {
  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: var(--gmf-orange-50);
  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);
}

.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-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 {
  color: var(--gmf-orange);
}

.app-sidebar__menu-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 8px;
  border-radius: 6px;
  background: var(--gmf-cream);
  border: 0.2px solid 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;
}

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

.app-sidebar__menu-item.is-active .app-sidebar__menu-icon img {
  filter: brightness(0) invert(1);
}

.app-sidebar__menu-item.is-active
  .app-sidebar__menu-icon
  img.app-sidebar__menu-icon-img--dual-tone {
  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 {
  color: var(--gmf-orange);
  font-weight: 600;
}

/* 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-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;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--gmf-content-bg);
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  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);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.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-border);
  border-radius: 8px;
  background: var(--gmf-white);
  color: var(--gmf-text);
  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: 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__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;
}

.app-header__theme-toggle {
  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-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-btn:hover {
  background: var(--gmf-orange-08);
  text-decoration: none;
}

.app-header__currency-btn,
.app-header__account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px;
  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: 14px;
  line-height: 1.35;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
}

.app-header__currency-btn.dropdown-toggle::after,
.app-header__account-btn.dropdown-toggle::after {
  display: none;
}

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

.app-header__currency {
  position: relative;
}

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

.app-header__currency.open > .dropdown-menu,
.app-header__account.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 {
  z-index: 1060;
  min-width: 140px;
  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);
}

.app-header__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 {
  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 {
  height: auto;
  padding: 4px 8px 4px 4px;
}

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

.app-header__account-avatar {
  display: block;
  width: 30px;
  height: 30px;
  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 .dropdown-menu {
  border-color: var(--gmf-border);
  border-radius: 8px;
  margin-top: 8px;
}

/* Content */
.app-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 24px 40px 40px;
  background: var(--gmf-content-bg);
}

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

.app-content--auth {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: transparent;
  box-sizing: border-box;
}

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

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

body.app-body--auth {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #2a1508;
  background-image: var(--auth-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.auth-back-home {
  position: fixed;
  top: 32px;
  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;
}

/* Responsive */
@media (max-width: 991px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

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

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

  .app-header__menu-btn {
    display: inline-flex;
  }

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

  .app-header__logo-img {
    max-width: 100%;
  }

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

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

  .app-header {
    gap: 8px;
    padding: 16px 20px;
  }

  .app-content {
    padding: 20px;
  }

  .app-header__theme-toggle {
    display: none;
  }
}

@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 span {
    display: none;
  }
}

/* RTL */
.rtl .app-sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--dash-border-color, #8f542e);
}

.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;
  min-height: 180px;
  padding: 40px 60px;
  overflow: hidden;
  border-radius: 20px;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.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;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.addfunds-page .page-hero__badge {
  width: 83px;
  height: 109px;
}

.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);
}

.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, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.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);
}

.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%;
  box-sizing: border-box;
}

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

.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-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.neworder-label-row .control-label {
  margin-bottom: 0;
}

.neworder-clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gmf-orange);
  font-family: var(--gmf-font-body);
  font-size: 13px;
  font-weight: 500;
  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-dash-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://my-getmyfollow-com.ahmad-iftekhar2004.workers.dev/neworder/Arrow.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-shrink: 0;
  min-width: 28px;
  height: 22px;
  padding: 2px 10px !important;
  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: 12px !important;
  font-weight: 600 !important;
  line-height: 1.5 !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;
  min-width: 28px;
  height: 22px;
  padding: 2px 10px !important;
  border: 1px solid var(--gmf-orange) !important;
  border-radius: 48px !important;
  background: var(--gmf-orange) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  margin-right: 8px;
}

/* 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;
  border-radius: 12px !important;
  background: var(--gmf-dash-bg) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden !important;
}

/* Small gap between the select field and its dropdown list */
.select2-container--open .select2-dropdown.select2-dropdown--below,
span.select2-dropdown.select2-dropdown--below {
  margin-top: 2px !important;
}

.select2-container--open .select2-dropdown.select2-dropdown--above,
span.select2-dropdown.select2-dropdown--above {
  margin-top: 0 !important;
  margin-bottom: 10px !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: 6px 6px 6px 0px;
  border-bottom: 1px dotted var(--gmf-border);
  background: var(--gmf-dash-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: anywhere;
  word-break: break-word;
}

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

/* Full-row orange — 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-orange) !important;
  background-color: var(--gmf-orange) !important;
  background-image: none !important;
  color: #fff !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: #fff !important;
}

/* ID badge stays white pill on orange 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: #fff !important;
  background: #fff !important;
  background-color: #fff !important;
  color: var(--gmf-orange) !important;
}

.select2-container--open .select2-search--dropdown,
.select2-dropdown .select2-search--dropdown {
  padding: 10px 12px;
  border-bottom: 1px dotted var(--gmf-border);
  background: var(--gmf-dash-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: 20px;
  height: 20px;
}

.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: 4px !important;
  padding: 0 !important;
  border: 1px solid var(--gmf-border) !important;
  border-radius: 12px !important;
  background: var(--gmf-dash-bg) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  z-index: 1060 !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: 0 !important;
  border-bottom: 1px dotted var(--gmf-border) !important;
  background: var(--gmf-dash-bg) !important;
  color: var(--gmf-text) !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 {
  display: block !important;
  padding: 8px 16px 8px 20px !important;
  color: var(--gmf-text) !important;
  text-decoration: none !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  background: transparent !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-orange) !important;
  background-color: var(--gmf-orange) !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: #fff !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;
}

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

.neworder-detail-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-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,
.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: 150px;
    padding: 28px 36px;
    border-radius: 18px;
  }

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

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

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

  .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: 10px;
  }

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

  .neworder-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    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-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: 32px 28px;
  }

  .page-hero__badge {
    width: 96px;
    height: 96px;
  }

  .addfunds-page .page-hero__badge {
    width: 83px;
    height: 109px;
  }
}

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

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

  .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: 120px;
    padding: 24px 16px;
    border-radius: 16px;
    gap: 12px;
  }

  .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 {
    width: auto;
    height: 64px;
    max-width: 72px;
    object-fit: contain;
  }

  .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: 10px;
  }

  .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-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;
  }

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

@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: 20px 14px;
    min-height: 110px;
  }

  .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: 1560px;
}

.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;
  min-height: 398px;
}

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

.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: 24px;
  padding: 30px;
}

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

.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);
}

.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%);
}

.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 {
  gap: 12px;
  container-type: inline-size;
  container-name: support-panel;
}

.support-cards {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 20px;
  padding: 0 30px 12px;
}

.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;
}

.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: 16px 20px;
  border: 0;
  font-family: var(--gmf-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gmf-white);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.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);
}

.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;
}

.dash-pagination {
  display: flex;
  justify-content: center;
}

.dash-pagination .pagination {
  margin: 0;
}

.dash-pagination .pagination > li > a,
.dash-pagination .pagination > li > span {
  border-color: var(--gmf-border);
  color: var(--gmf-text);
  font-family: var(--gmf-font-body);
}

.dash-pagination .pagination > .active > a,
.dash-pagination .pagination > .active > span {
  background: var(--gmf-teal);
  border-color: var(--gmf-teal);
}

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

@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,
.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.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 {
  width: 100%;
  max-width: 556px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-card {
  width: 100%;
  padding: 60px;
  border: 1px solid var(--gmf-border);
  border-radius: 20px;
  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: 8px;
  margin-bottom: 48px;
  text-align: center;
}

.auth-card__title {
  margin: 0;
  font-family: var(--gmf-font-heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -1.28px;
  color: var(--gmf-text);
}

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

.auth-card__subtitle--single-line {
  white-space: nowrap;
  font-size: 14px;
}

.auth-card__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.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%;
  height: 56px;
}

.auth-card__google-btn {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 14px 20px;
  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: 600;
  line-height: 1.5;
  pointer-events: none;
  box-sizing: border-box;
}

.auth-card__google-btn img {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-card__google-widget {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  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: 56px !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: 56px !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: 56px !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: 12px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.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: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gmf-text);
}

.auth-card__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card__fields--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 16px;
}

.auth-field--full {
  grid-column: 1 / -1;
}

.auth-field--half {
  grid-column: span 1;
}

.auth-field__hint {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  font-family: var(--gmf-font-body);
  font-size: 12px;
  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: 14px;
  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: 10px;
  width: 100%;
}

.auth-field__label {
  margin: 0;
  font-family: var(--gmf-font-body);
  font-size: 16px;
  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: var(--gmf-dash-bg);
  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: 0 0 0 2px var(--gmf-orange-15);
}

.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;
}

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

.auth-field__password .auth-field__input.form-control {
  padding-right: 52px;
}

.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: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-field__eye img {
  display: block;
  width: 20px;
  height: 20px;
}

.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%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  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: 16px;
  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,
.auth-card__submit:focus,
.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;
  color: var(--gmf-white);
}

.auth-card__submit:hover::before,
.auth-card__submit:focus::before {
  background-color: rgba(255, 255, 255, 0.08);
}

.auth-card__footer {
  margin: 0;
  text-align: center;
  font-family: var(--gmf-font-body);
  font-size: 16px;
  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 {
  margin-bottom: 0;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .auth-card {
    padding: 32px 20px;
  }

  .auth-card__header {
    margin-bottom: 32px;
  }

  .auth-card__title {
    font-size: 26px;
    letter-spacing: -0.8px;
  }

  .auth-card__subtitle {
    font-size: 14px;
  }

  .auth-card__subtitle--single-line {
    white-space: normal;
    font-size: 14px;
  }

  .auth-back-home {
    top: 16px;
    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;
  }

  .auth-card__fields--grid .auth-field--half {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Services page
   ========================================================================== */

.services-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.services-page .page-hero__badge {
  width: 101px;
  height: 106px;
}

.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: 100%;
  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:hover,
.services-toolbar__btn--filter:focus {
  color: var(--gmf-white);
  filter: brightness(1.05);
}

.services-toolbar__btn--currency {
  min-width: 140px;
}

.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: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.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:focus {
  outline: none;
  box-shadow: none;
}

.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);
}

.services-table {
  width: 100%;
  min-width: 1220px;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.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 {
  width: 120px;
}

.services-table__col--name {
  width: auto;
  min-width: 220px;
}

.services-table__col--rate,
.services-table__col--min,
.services-table__col--max {
  width: 155px;
}

.services-table__col--time {
  width: 170px;
}

.services-table__col--actions {
  width: 210px;
}

.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: 72px;
  padding: 0;
  border: 0 !important;
  --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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left !important;
  vertical-align: middle !important;
}

.services-table__th-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 72px;
  padding: 16px 12px;
  box-sizing: border-box;
  text-align: left;
  white-space: nowrap;
}

.services-table__th--id,
.services-table__th--id .services-table__th-label {
  justify-content: center;
  text-align: center !important;
}

#service-table > thead > tr > th.services-table__th.services-table__th--id {
  text-align: center !important;
}

.services-table__th--actions,
.services-table__th--actions .services-table__th-label {
  justify-content: center;
  text-align: center !important;
}

#service-table > thead > tr > th.services-table__th.services-table__th--actions {
  text-align: center !important;
}

.services-table tbody tr:not(.services-table__category-row) {
  background: var(--gmf-dash-bg);
}

.services-table tbody tr:not(.services-table__category-row) > td {
  border-bottom: 1px solid rgba(143, 84, 46, 0.12);
}

.services-table tbody tr:not(.services-table__category-row):last-child > td {
  border-bottom: 0;
}

.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 20px;
  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: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 20px;
  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;
  border: 0;
  color: #202020;
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
}

.services-table__id,
.services-table__rate,
.services-table__min,
.services-table__time {
  text-align: start;
}

.services-table
  tbody
  tr:not(.services-table__category-row)
  > td.services-table__id {
  padding: 12px 12px 12px 20px;
}

.services-table__id-inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  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,
.services-table__name {
  min-width: 220px;
}

.services-table__name,
.services-table__max {
  padding-inline: 12px;
  text-align: start;
}

.services-table__name {
  word-break: normal;
  overflow-wrap: break-word;
}

.services-table__rate,
.services-table__min,
.services-table__max,
.services-table__time {
  white-space: nowrap;
}

.services-table__actions {
  padding: 8px 12px;
  text-align: end;
}

.services-table__action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  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);
}

.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;
  }
}

@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
    tbody
    tr:not(.services-table__category-row)
    > td.services-table__id {
    padding: 12px 12px 12px 20px;
  }

  .services-table__name,
  .services-table__actions {
    padding-inline: 12px;
  }

  .services-table__category {
    padding: 16px 20px 16px 20px;
  }
}

/* ==========================================================================
   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);
  word-break: break-word;
  white-space: pre-wrap;
  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;
}

.orders-page .page-hero__badge,
.massorder-page .page-hero__badge,
.drip-feed-page .page-hero__badge {
  width: 105px;
  height: 109px;
  object-fit: contain;
}

.services-toolbar--search-only {
  gap: 0;
}

.services-toolbar--search-only .services-toolbar__search {
  flex: 1 1 auto;
  width: 100%;
}

.orders-filters {
  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);
}

.orders-filters__track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.orders-filters__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 166px;
  height: 52px;
  padding: 6px 12px;
  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;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.2s ease,
    filter 0.2s ease;
}

.orders-filters__btn:hover {
  color: var(--gmf-text);
  border-color: var(--gmf-orange);
  text-decoration: none;
}

.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: none;
}

.orders-filters__btn.is-active,
.orders-filters__btn.is-active:hover,
.orders-filters__btn.is-active:focus,
.orders-filters__btn.is-active:focus-visible {
  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);
  outline: none;
}

.orders-filters__icon {
  width: 24px;
  height: 24px;
  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-table__table {
  min-width: 1200px;
}

.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: var(--gmf-white);
  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__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-table__th-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.orders-table__th--link {
  min-width: 180px;
}

.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 {
  background: var(--gmf-orange);
  cursor: pointer;
}

.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__td--link {
  max-width: 220px;
}

.orders-table__link {
  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;
}

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

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

.subscriptions-page .page-hero__badge {
  width: 163px;
  height: 154px;
  object-fit: contain;
}

.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;
}

@media (max-width: 1199px) {
  .orders-filters {
    padding-inline: 20px;
  }

  .orders-filters__btn {
    min-width: 148px;
  }
}

@media (max-width: 767px) {
  .orders-page {
    gap: 16px;
  }

  .services-toolbar--search-only {
    padding: 16px 20px;
  }

  .orders-filters {
    padding: 16px 20px;
  }

  .orders-filters__btn {
    min-width: 132px;
    height: 48px;
    font-size: 14px;
  }

  .orders-filters__icon {
    width: 20px;
    height: 20px;
  }
}

.orders-filters__icon.iconify {
  display: inline-flex;
}

/* ==========================================================================
   Tickets page
   ========================================================================== */

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

.tickets-page__alert,
.tickets-page .tickets-form__alert,
.tickets-page .dash-form .alert {
  margin-bottom: 0;
  border-radius: 12px;
}

.tickets-page .page-hero__badge,
.viewticket-page .page-hero__badge {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

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

@media (min-width: 1220px) {
  .viewticket-page .tickets-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.tickets-grid > .dash-panel--tickets-form,
.tickets-grid > .dash-panel--viewticket-thread {
  height: auto;
}

.tickets-grid > .dash-panel--tickets-history {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 0;
  overflow: visible;
}

.tickets-grid > .dash-panel--ticket-info {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  overflow: visible;
  align-self: start;
}

.tickets-history {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  padding: 30px;
  overflow: hidden;
}

.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:focus {
  border: 0;
  box-shadow: none;
  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;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

@media (min-width: 1220px) {
  .tickets-list {
    overscroll-behavior-y: contain;
  }
}

.ticket-card {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  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: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: 8px;
}

.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: -13px;
  left: 19px;
  z-index: 1;
  padding: 4px 10px;
  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__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;
}

.ticket-card__group--updated {
  align-items: flex-end;
  text-align: right;
}

.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;
}

@media (max-width: 767px) {
  .ticket-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .ticket-card__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .ticket-card__group--id,
  .ticket-card__group--subject,
  .ticket-card__group--status {
    flex: 1 1 auto;
    max-width: none;
    align-items: flex-start;
    text-align: start;
  }

  .ticket-card__group--updated {
    flex: 1 1 auto;
    max-width: none;
    align-items: flex-start;
    text-align: start;
  }

  .ticket-card__value--time {
    text-align: start;
  }
}

.ticket-card__value,
.ticket-card__subject {
  font-family: var(--gmf-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--gmf-text-muted);
}

.ticket-card__value--accent,
.ticket-card__subject {
  color: var(--gmf-orange);
}

.ticket-card__subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-card__value--time {
  display: block;
  text-align: right;
}

.ticket-card__datetime-date,
.ticket-card__datetime-time {
  display: inline;
  white-space: nowrap;
}

.ticket-card__datetime-date::after {
  content: '\00a0';
}

.tickets-pagination {
  flex-shrink: 0;
  margin-top: 0;
}

.tickets-page .dash-form textarea.form-control {
  height: 120px;
  min-height: 120px;
  resize: vertical;
}

.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: center;
  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))::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-page .dash-form {
  padding-bottom: 20px;
}

.tickets-uploader .files-wrapper {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  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: center !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: 1219px) {
  .tickets-grid {
    grid-template-columns: 1fr;
  }

  .tickets-grid > .dash-panel--tickets-history {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .tickets-history {
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .tickets-list {
    flex: none;
    min-height: auto;
    overflow: visible;
    overscroll-behavior-y: auto;
  }
}

@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-grid > .dash-panel--tickets-form {
    overflow: visible;
  }

  .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;
  }
}

/* ==========================================================================
   View ticket page
   ========================================================================== */

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

.tickets-grid > .dash-panel--viewticket-thread {
  display: flex;
  flex-direction: column;
  max-height: clamp(520px, calc(100vh - 180px), 900px);
  min-height: 0;
  overflow: hidden;
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px;
}

.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 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 30px 0;
  overflow: hidden;
}

.viewticket-thread__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.viewticket-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-height: 0;
  padding-right: 30px;
  padding-left: 30px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.viewticket-message {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.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: 44px;
  height: 44px;
  padding: 2px;
  border: 1px solid #ff8a3d;
  border-radius: 8px;
}

.viewticket-message__avatar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 6px;
  background: #ff8a3d;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12);
}

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

.viewticket-message__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: calc(100% - 68px);
}

.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%;
  padding: 12px 16px;
  border: 1px solid var(--gmf-border);
  border-radius: 12px;
  background: var(--gmf-dash-bg);
  box-sizing: border-box;
}

.viewticket-message--user .viewticket-message__bubble {
  border-radius: 8px;
}

.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-reply-form.dash-form {
  flex: none;
  flex-shrink: 0;
  gap: 12px;
  width: 100%;
}

.viewticket-messages + .viewticket-reply-form.dash-form {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px 30px 0;
  border-top: 1px solid var(--gmf-border);
}

.viewticket-thread__main > .viewticket-reply-form.dash-form:first-child {
  padding-right: 30px;
  padding-left: 30px;
}

.viewticket-reply-form .form-group + .form-group {
  margin-top: 0;
}

.viewticket-reply-form__submit {
  flex-shrink: 0;
  width: calc(100% - 60px);
  min-height: 48px;
  height: 48px;
  margin-right: 30px;
  margin-left: 30px;
}

.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) {
  .tickets-grid > .dash-panel--viewticket-thread {
    max-height: clamp(680px, calc(100svh - 72px), 900px);
    overflow: hidden;
  }

  .viewticket-thread {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 0;
    overflow: hidden;
  }

  .viewticket-thread__main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .viewticket-messages {
    flex: 1 1 auto;
    min-height: 0;
    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: 12px;
  }

  .viewticket-message__content {
    flex: 1 1 auto;
    width: auto;
    max-width: calc(100% - 56px);
  }

  .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-messages + .viewticket-reply-form.dash-form {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 20px 0;
  }

  .viewticket-thread__main > .viewticket-reply-form.dash-form:first-child {
    padding-right: 20px;
    padding-left: 20px;
  }

  .viewticket-reply-form__submit {
    width: calc(100% - 40px);
    margin-right: 20px;
    margin-left: 20px;
  }
}

/* ==========================================================================
   FAQ page
   ========================================================================== */

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

.faq-page .page-hero__badge {
  width: 68px;
  height: 100px;
  object-fit: contain;
}

.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;
  }
}

/* ==========================================================================
   Mass Order page
   ========================================================================== */

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

.massorder-page .dash-form .alert {
  margin-bottom: 0;
  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%;
}

@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-page .page-hero__badge {
  width: 132px;
  height: 131px;
  object-fit: contain;
}

.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 {
  margin-bottom: 0;
  border-radius: 12px;
}

.child-panel-page .dash-submit {
  width: 100%;
  max-width: 100%;
}

.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: 767px) {
  .addfunds-page .page-hero__badge,
  .services-page .page-hero__badge,
  .orders-page .page-hero__badge,
  .massorder-page .page-hero__badge,
  .drip-feed-page .page-hero__badge,
  .subscriptions-page .page-hero__badge,
  .tickets-page .page-hero__badge,
  .viewticket-page .page-hero__badge,
  .faq-page .page-hero__badge,
  .child-panel-page .page-hero__badge,
  .affiliates-page .page-hero__badge,
  .giveaway-page .page-hero__badge {
    width: auto;
    height: 64px;
    max-width: 72px;
    object-fit: contain;
  }
}

@media (max-width: 575px) {
  .page-hero__badge,
  .addfunds-page .page-hero__badge,
  .services-page .page-hero__badge,
  .orders-page .page-hero__badge,
  .massorder-page .page-hero__badge,
  .drip-feed-page .page-hero__badge,
  .subscriptions-page .page-hero__badge,
  .tickets-page .page-hero__badge,
  .viewticket-page .page-hero__badge,
  .faq-page .page-hero__badge,
  .child-panel-page .page-hero__badge,
  .affiliates-page .page-hero__badge,
  .giveaway-page .page-hero__badge {
    height: 56px;
    max-width: 64px;
  }
}

/* ==========================================================================
   Affiliates page
   ========================================================================== */

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

.affiliates-page .page-hero__badge {
  width: 118px;
  height: 109px;
  object-fit: contain;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 120px;
  padding: 24px 32px;
  border: 1px solid var(--gmf-border);
  border-radius: 16px;
  background: var(--gmf-dash-bg);
}

.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-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));
  }
}

@media (max-width: 767px) {
  .affiliates-page {
    gap: 16px;
  }

  .dash-stat-grid {
    grid-template-columns: 1fr;
  }

  .dash-stat-card {
    padding: 20px;
  }

  .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-page .page-hero__badge {
  width: 101px;
  height: 105px;
  object-fit: contain;
}

.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__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;
  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);
}

.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:
    minmax(0, 1fr)
    minmax(10px, 40px)
    minmax(0, 1fr)
    minmax(10px, 40px)
    minmax(0, 1fr);
  align-items: center;
  column-gap: 7px;
  width: 100%;
  min-width: 0;
}

.dash-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.5vw, 24px);
  min-width: 0;
  width: 100%;
  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;
  width: clamp(52px, 8vw, 64px);
  height: clamp(52px, 8vw, 64px);
  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%;
  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);
}

/* Tablet and up: keep steps in a single horizontal row */
@media (min-width: 768px) {
  .dash-steps {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(10px, 40px)
      minmax(0, 1fr)
      minmax(10px, 40px)
      minmax(0, 1fr);
    align-items: center;
    column-gap: 7px;
  }

  .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%;
    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;
  }
}
