:root {
  --orange-primary: #FF6A00;
  --orange-hover: #E85F00;
  --orange-deep: #C94F00;
  --orange-soft: #FFF3E8;
  --orange-wash: #FFE8D4;
  --orange-ring: rgba(255, 106, 0, 0.18);

  --bg-body: #F7F5F3;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFCFA;

  --text-main: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-faint: #A3A3A3;

  --border-color: #EBE6E1;
  --border-strong: #DDD6CE;

  --radius-sm: 0.4rem;
  --radius-md: 0.6rem;
  --radius-lg: 0.85rem;
  --radius-xl: 1rem;

  --shadow-xs: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-sm: 0 3px 10px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 10px 28px rgba(26, 26, 26, 0.08);
  --shadow-orange: 0 6px 18px rgba(255, 106, 0, 0.2);

  --sidebar-width: 248px;
  --control-h: 40px;
  --transition: 160ms ease;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--orange-primary);
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-hover);
}

.text-orange { color: var(--orange-primary) !important; }
.bg-orange { background-color: var(--orange-primary) !important; }
.fw-semibold { font-weight: 600 !important; }

/* ---------- Brand ---------- */
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--orange-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: var(--shadow-orange);
}

.brand-mark-lg {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  margin-right: 12px;
}

.brand-mark-sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 12px;
  margin-right: 8px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-name-sm {
  font-size: 1.05rem;
  max-width: 42vw;
}

/* ---------- Buttons ---------- */
.btn-orange,
.btn-primary {
  background: var(--orange-primary);
  color: #fff !important;
  border: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.48rem 1.1rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-orange);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-orange:hover,
.btn-orange:focus,
.btn-orange:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--orange-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.3);
}

.btn-orange-outline {
  background: transparent;
  color: var(--orange-primary);
  border: 1.5px solid var(--orange-primary);
  font-weight: 600;
  border-radius: 999px;
  transition: all var(--transition);
}

.btn-orange-outline:hover {
  background: var(--orange-primary);
  color: #fff;
}

.btn-light.border {
  border-color: var(--border-strong) !important;
  background: var(--bg-surface);
  font-weight: 600;
  transition: all var(--transition);
}

.btn-light.border:hover {
  border-color: var(--orange-primary) !important;
  color: var(--orange-primary) !important;
  background: var(--orange-soft);
}

.btn-xs,
.btn-sm {
  border-radius: 999px;
  font-weight: 600;
}

.btn-default {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  border-radius: 999px;
}

.btn-default:hover {
  background: var(--orange-soft);
  border-color: var(--orange-wash);
  color: var(--orange-primary);
}

/* ---------- Sidebar ---------- */
.custom-sidebar {
  background-color: var(--bg-surface) !important;
  border-right: 1px solid var(--border-color);
}

@media (min-width: 992px) {
  .custom-sidebar.offcanvas-lg {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width) !important;
    height: 100vh !important;
    max-width: var(--sidebar-width);
    visibility: visible !important;
    transform: none !important;
    z-index: 1040;
    border-right: 1px solid var(--border-color);
    overflow: hidden;
  }

  .custom-sidebar .offcanvas-body {
    overflow: hidden;
  }

  .app-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
  }

  html[dir="rtl"] .custom-sidebar.offcanvas-lg {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border-color);
  }

  html[dir="rtl"] .app-main {
    margin-left: 0;
    margin-right: var(--sidebar-width);
  }
}

.sidebar-brand {
  padding: 0.85rem 1rem 0.65rem;
}

.sidebar-brand .btn-close {
  opacity: 0.5;
}

/* Profile — quiet, refined strip (no loud gradient card) */
.sidebar-profile {
  margin: 0.2rem 0.75rem 0.85rem;
  padding: 0.7rem 0.75rem;
  background: var(--orange-soft);
  border: 1px solid var(--orange-wash);
  border-radius: var(--radius-lg);
}

.sidebar-profile-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.profile-card-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange-ring);
}

.sidebar-profile-meta {
  min-width: 0;
  overflow: hidden;
}

.sidebar-profile-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-primary);
}

.sidebar-profile-balance i {
  font-size: 0.85rem;
  opacity: 0.85;
}

.sidebar-profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--orange-wash);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sidebar-profile-link:hover {
  color: var(--orange-primary);
}

.sidebar-profile-link i {
  font-size: 0.85rem;
  transition: transform var(--transition);
}

.sidebar-profile-link:hover i {
  transform: translateX(3px);
}

/* Menu */
.sidebar-section-label {
  margin: 0 1rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.sidebar-menu {
  padding-bottom: 1rem;
}

.sidebar-menu .nav-item {
  margin-bottom: 0.15rem;
}

.sidebar-menu .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0.55rem;
  padding: 0.48rem 0.7rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.84rem;
  transition: background var(--transition), color var(--transition);
}

.sidebar-menu .nav-link i {
  font-size: 1.05rem;
  width: 1.15rem;
  text-align: center;
  color: var(--text-faint);
  transition: color var(--transition);
  margin: 0;
}

.sidebar-menu .nav-link:hover {
  background: var(--bg-body);
  color: var(--text-main);
}

.sidebar-menu .nav-link:hover i {
  color: var(--text-secondary);
}

.sidebar-menu .nav-link.active {
  background: var(--orange-soft);
  color: var(--orange-primary);
}

.sidebar-menu .nav-link.active i {
  color: var(--orange-primary);
}

.sidebar-menu .nav-link.active::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 18%;
  height: 64%;
  width: 3px;
  background: var(--orange-primary);
  border-radius: 0 3px 3px 0;
}

/* Footer */
.sidebar-footer {
  padding: 0.7rem 0.85rem 0.9rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.sidebar-social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-body);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.sidebar-social-link:hover {
  background: var(--orange-soft);
  color: var(--orange-primary);
  border-color: var(--orange-wash);
}

.btn-logout-subtle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  transition: all var(--transition);
}

.btn-logout-subtle:hover {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

/* ---------- App Navbar ---------- */
.app-navbar {
  background: rgba(247, 245, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.45rem 0;
  z-index: 1030;
}

.app-navbar-logo {
  max-width: 100%;
}

.app-menu-toggle {
  color: var(--text-main);
  line-height: 1;
}

.app-menu-toggle i {
  font-size: 1.7rem;
}

.page-heading {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.28rem 0.35rem 0.28rem 0.7rem;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  max-width: 100%;
}

.balance-pill:hover {
  border-color: var(--orange-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: inherit;
}

.balance-pill-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.balance-pill-amount {
  color: var(--text-main);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 5.5rem;
}

.balance-pill-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3);
}

.avatar-circle-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border-color), var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.avatar-circle-nav:hover {
  box-shadow: 0 0 0 2px var(--orange-primary), var(--shadow-sm);
  transform: scale(1.03);
}

@media (min-width: 576px) {
  .balance-pill {
    gap: 0.55rem;
    padding: 0.35rem 0.4rem 0.35rem 0.95rem;
  }

  .balance-pill-amount {
    font-size: 0.9rem;
    max-width: none;
  }

  .balance-pill-plus {
    width: 28px;
    height: 28px;
    font-size: 1.15rem;
  }

  .avatar-circle-nav {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
}

.dropdown-toggle::after {
  display: none;
}

/* ---------- Dropdowns ---------- */
.custom-dropdown .dropdown-menu,
.profile-dropdown-menu {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.1);
  padding: 0.3rem;
  min-width: 196px;
  margin-top: 0.4rem !important;
}

.profile-dropdown-user {
  padding: 0.45rem 0.65rem 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-dropdown-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.profile-dropdown-name {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-dropdown .dropdown-header {
  padding: 0.25rem 0.65rem 0.15rem;
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.custom-dropdown .dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.25;
  transition: background var(--transition), color var(--transition);
}

.custom-dropdown .dropdown-item i {
  margin-right: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
  transition: color var(--transition);
}

.custom-dropdown .dropdown-item:hover,
.custom-dropdown .dropdown-item:focus {
  background: var(--orange-soft);
  color: var(--orange-primary);
}

.custom-dropdown .dropdown-item:hover i,
.custom-dropdown .dropdown-item:focus i {
  color: var(--orange-primary);
}

.custom-dropdown .dropdown-item.active {
  background: var(--orange-primary);
  color: #fff;
}

.custom-dropdown .dropdown-item.active i {
  color: #fff;
}

.custom-dropdown .dropdown-item.text-danger {
  color: #BE123C;
}

.custom-dropdown .dropdown-item.text-danger i {
  color: #BE123C;
}

.custom-dropdown .dropdown-item.text-danger:hover,
.custom-dropdown .dropdown-item.text-danger:focus {
  background: #FFF1F2;
  color: #BE123C;
}

.custom-dropdown .dropdown-divider {
  border-color: var(--border-color);
  margin: 0.25rem 0.2rem;
}

/* ---------- Guest Navbar ---------- */
.guest-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.guest-nav .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.guest-nav .nav-link:hover {
  color: var(--orange-primary);
  background: var(--orange-soft);
}

.guest-nav .nav-link.active {
  background: var(--orange-soft);
  color: var(--orange-primary);
}

/* ---------- Main Content ---------- */
.main-content-wrapper {
  padding: 0.65rem 0.65rem 1rem;
  width: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .main-content-wrapper {
    padding: 0.85rem 1rem 1.25rem;
  }
}

@media (min-width: 992px) {
  .main-content-wrapper {
    padding: 1rem 1.15rem 1.5rem;
  }
}

.app-main {
  min-width: 0;
  width: 100%;
}

/* ---------- Panels / Wells / Cards ---------- */
.well,
.well-float,
.panel,
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
}

.well + .well,
.container + .container .well {
  margin-top: 1.25rem;
}

.panel-body.border-solid,
.border-solid.border-rounded {
  background: var(--bg-body);
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 1rem 1.15rem;
  color: var(--text-secondary);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 0.85rem;
}

.control-label,
label.control-label,
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.form-control,
.form-select,
select.form-control,
textarea.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-main);
  box-shadow: none;
  min-height: var(--control-h);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

textarea.form-control {
  min-height: auto;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus,
textarea.form-control:focus {
  outline: none;
  border-color: var(--orange-primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--orange-ring);
}

.form-control[readonly] {
  background: var(--bg-body);
  color: var(--text-secondary);
}

.form-group__password {
  position: relative;
}

.forgot-password {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.checkbox label,
.terms {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  background: transparent;
  white-space: nowrap;
}

.table tbody td {
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.925rem;
  vertical-align: middle;
}

.table tbody tr:first-child td {
  border-top: none;
}

.table tbody tr:hover td {
  background: var(--orange-soft);
}

.table tbody tr[data-filter-table-category-id] td[colspan] {
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 0.9rem;
  padding-top: 1.1rem;
  padding-bottom: 0.7rem;
  border-top: 1px solid var(--border-color);
}

.table tbody tr[data-filter-table-category-id] td[colspan]:hover {
  background: var(--bg-body);
}

.favorite-active,
[data-favorite-icon].fas,
[data-favorite-icon].ti-star-filled {
  color: var(--orange-primary);
}

/* ---------- Nav Pills / Filters ---------- */
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-left: 0;
  list-style: none;
}

.nav-pills > li > a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.nav-pills > li > a:hover {
  color: var(--orange-primary);
  border-color: var(--orange-wash);
  background: var(--orange-soft);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.nav-pills .btn-primary.dropdown-toggle,
.nav-pills .btn.dropdown-toggle {
  border-radius: 999px;
  font-weight: 600;
}

.nav-pills .search,
.nav-pills .pull-right {
  margin-left: auto;
}

.nav-pills .input-group {
  display: flex;
  align-items: stretch;
}

.nav-pills .input-group .form-control {
  border-radius: 999px 0 0 999px;
  border-right: none;
  min-width: 180px;
}

.nav-pills .input-group-btn .btn,
.nav-pills .input-group .btn {
  border-radius: 0 999px 999px 0;
  border: 1.5px solid var(--border-color);
  border-left: none;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0.7rem 1rem;
}

.nav-pills .input-group-btn .btn:hover {
  color: var(--orange-primary);
  background: var(--orange-soft);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-left: 0;
  list-style: none;
  margin-top: 1.25rem;
}

.pagination > li > a,
.pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.pagination > li > a:hover {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  background: var(--orange-soft);
}

.pagination > li.active > a,
.pagination > li.active > span {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--radius-md);
  border: none;
  border-left: 4px solid transparent;
  padding: 1rem 1.15rem;
  font-weight: 500;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border-left-color: #10B981;
}

.alert-danger {
  background: #FEF2F2;
  color: #991B1B;
  border-left-color: #EF4444;
}

.alert-dismissible .close {
  opacity: 0.5;
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
}

#notify-wrapper {
  border-left: 4px solid var(--orange-primary);
  border-radius: var(--radius-md);
}

/* ---------- Modals ---------- */
.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.15rem 1.35rem;
}

.modal-body {
  padding: 1.35rem;
}

.modal-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Misc content helpers ---------- */
.pull-right-middle a {
  font-weight: 700;
}

.order-actions .btn {
  margin: 0.15rem;
}

.nowrap {
  white-space: nowrap;
}

.width-service-name {
  max-width: 280px;
  word-break: break-word;
}

.width-40 {
  max-width: 220px;
  width: 220px;
}

/* ---------- RTL ---------- */
.rtl-navbar { direction: rtl; }

html[dir="rtl"] .brand-mark,
html[dir="rtl"] .brand-mark-lg {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .brand-mark-lg {
  margin-left: 12px;
}

html[dir="rtl"] .sidebar-menu .nav-link.active::before {
  left: auto;
  right: -0.75rem;
  border-radius: 3px 0 0 3px;
}

html[dir="rtl"] .custom-dropdown .dropdown-item i {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .ms-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .me-2,
html[dir="rtl"] .me-3 {
  margin-right: 0 !important;
}

html[dir="rtl"] .me-2 { margin-left: 0.5rem !important; }
html[dir="rtl"] .me-3 { margin-left: 1rem !important; }

html[dir="rtl"] .sidebar-profile-link:hover i {
  transform: translateX(-3px);
}

html[dir="rtl"] .nav-pills .search,
html[dir="rtl"] .nav-pills .pull-right {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .nav-pills .input-group .form-control {
  border-radius: 0 999px 999px 0;
  border-right: 1.5px solid var(--border-color);
  border-left: none;
}

html[dir="rtl"] .nav-pills .input-group-btn .btn,
html[dir="rtl"] .nav-pills .input-group .btn {
  border-radius: 999px 0 0 999px;
  border-left: 1.5px solid var(--border-color);
  border-right: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .custom-sidebar {
    max-width: min(320px, 88vw);
  }

  .app-main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .well,
  .well-float {
    padding: 1.15rem;
    border-radius: var(--radius-lg);
  }

  .table thead th,
  .table tbody td {
    padding: 0.75rem 0.65rem;
    font-size: 0.85rem;
  }

  .guest-navbar .container {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .insight-card {
    padding: 0.65rem 0.7rem;
    gap: 0.55rem;
  }

  .insight-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .insight-card-label {
    font-size: 0.65rem;
    margin-bottom: 0.05rem;
  }

  .insight-card-title {
    font-size: 0.92rem;
  }

  .insight-card-text {
    font-size: 0.75rem;
    margin-top: 0.1rem;
  }

  .insight-card-action {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }

  .panel-card {
    padding: 1.1rem 1rem;
    border-radius: var(--radius-lg);
  }

  .panel-card-title {
    font-size: 1.05rem;
  }

  .nav-pills > li > a {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }

  .btn-submit-lg {
    width: 100%;
  }

  .custom-dropdown .dropdown-menu {
    min-width: min(196px, calc(100vw - 1.5rem));
  }
}

.min-w-0 {
  min-width: 0 !important;
}

html[dir="rtl"] .brand-mark-sm {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .toolbar-search .form-control {
  border-radius: 0 999px 999px 0;
  border-right: 1.5px solid var(--border-color);
  border-left: none;
}

html[dir="rtl"] .toolbar-search .btn {
  border-radius: 999px 0 0 999px;
  border-left: 1.5px solid var(--border-color);
  border-right: none;
}

/* =========================================================
PAGE COMPONENTS
========================================================= */

.page-stack {
  width: 100%;
}

/* Insight cards (welcome / wallet / support) */
.dash-cards {
  margin-bottom: 0.25rem;
}

.insight-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  height: 100%;
  padding: 0.85rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.insight-card--welcome {
  background: linear-gradient(145deg, #FFF8F1 0%, #FFFFFF 55%);
  border-color: var(--orange-wash);
}

.insight-card--wallet {
  background: linear-gradient(145deg, var(--orange-primary) 0%, #FF8A3D 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.insight-card--wallet:hover {
  box-shadow: 0 14px 32px rgba(255, 106, 0, 0.35);
}

.insight-card--support {
  background: var(--bg-surface);
}

.insight-card--tall {
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.5rem;
}

.insight-card-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--orange-soft);
  color: var(--orange-primary);
}

.insight-card--wallet .insight-card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.insight-card--support .insight-card-icon {
  background: #F3F4F6;
  color: var(--text-secondary);
}

.insight-card-body {
  min-width: 0;
  flex: 1;
}

.insight-card-label {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.insight-card--wallet .insight-card-label {
  color: rgba(255, 255, 255, 0.78);
}

.insight-card-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

.insight-card-title--lg {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.insight-card--wallet .insight-card-title {
  color: #fff;
}

.insight-card-text {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.insight-card--wallet .insight-card-text {
  color: rgba(255, 255, 255, 0.88);
}

.insight-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-primary);
}

.insight-card--wallet .insight-card-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.insight-card--wallet .insight-card-action:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.insight-card-action i {
  transition: transform var(--transition);
}

.insight-card-action:hover i {
  transform: translateX(3px);
}

/* Panel cards */
.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.65rem;
}

.panel-card--table {
  padding: 0.5rem 0.35rem 0.75rem;
  overflow: hidden;
}

.panel-card--side {
  padding: 0.85rem 0.95rem;
}

.panel-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.panel-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.panel-card-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.panel-card-badge {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  color: var(--orange-primary);
  font-size: 1.15rem;
}

.btn-submit-lg {
  min-height: 48px;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  font-size: 0.95rem;
}

.charge-field {
  position: relative;
}

.charge-field .form-control {
  padding-right: 2.75rem;
  font-weight: 700;
  color: var(--orange-primary);
  background: var(--orange-soft);
  border-color: var(--orange-wash);
}

.charge-field-icon {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange-primary);
  opacity: 0.7;
  pointer-events: none;
}

.search-field {
  position: relative;
}

.search-field .input-wrapper {
  position: relative;
}

.search-field-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  padding: 0 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  z-index: 2;
}

.search-field-input {
  padding-left: 2.4rem !important;
}

.tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tip-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tip-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  color: var(--orange-primary);
}

/* Toolbar */
.toolbar-bar {
  margin-bottom: 0;
}

.toolbar-bar .nav-pills {
  margin-bottom: 0;
}

.toolbar-search {
  width: 100%;
  min-width: 0;
}

.toolbar-search .form-control {
  border-radius: 999px 0 0 999px;
  border-right: none;
}

.toolbar-search .btn {
  border-radius: 0 999px 999px 0;
  border: 1.5px solid var(--border-color);
  border-left: none;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0.7rem 1rem;
}

.toolbar-search .btn:hover {
  color: var(--orange-primary);
  background: var(--orange-soft);
}

@media (min-width: 992px) {
  .toolbar-search {
    width: auto;
    min-width: 240px;
  }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap .table {
  min-width: 640px;
}

.panel-card--table .table-wrap .table {
  min-width: 720px;
}

.table-id {
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.table-link {
  font-weight: 600;
  font-size: 0.85rem;
}

.table-category-row:not(.services-category-row) td {
  background: var(--orange-soft) !important;
  color: var(--orange-deep) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.01em;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  background: var(--bg-body);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

/* Auth pages */
.auth-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: calc(var(--radius-xl) + 4px);
  box-shadow: var(--shadow-md);
}

.auth-visual {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(155deg, #FF6A00 0%, #FF8F3D 55%, #E85F00 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.auth-visual .brand-mark {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  color: #fff;
  margin-bottom: 1.25rem;
}

.auth-visual-inner {
  max-width: 280px;
}

.auth-visual-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.auth-visual-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  min-height: 420px;
}

@media (min-width: 576px) {
  .auth-panel {
    padding: 2rem 1.75rem;
  }
}

@media (min-width: 992px) {
  .auth-panel {
    padding: 2.5rem 2rem;
    min-height: 560px;
  }
}

.auth-panel-inner {
  width: 100%;
  max-width: 400px;
}

.auth-heading {
  margin-bottom: 1.5rem;
}

.auth-heading h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (min-width: 576px) {
  .auth-heading h1 {
    font-size: 1.75rem;
  }
}

.auth-heading p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-switch {
  margin: 1.35rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.auth-switch a {
  font-weight: 700;
}

.auth-extra {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
}

/* API page */
.api-meta {
  display: block;
  margin-bottom: 1.75rem;
}

.api-meta-item {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

@media (max-width: 575.98px) {
  .api-meta-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

.api-meta-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  align-self: center;
}

.api-meta-value {
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.api-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

.api-method {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--orange-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.api-method-block {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.api-method-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.api-param {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-deep);
  background: var(--orange-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.api-example-label {
  margin: 1rem 0 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.api-pre {
  margin: 0;
  padding: 1rem 1.15rem;
  background: #1A1A1A;
  color: #F5F5F5;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  .insight-card {
    padding: 0.7rem 0.75rem;
    gap: 0.6rem;
  }

  .insight-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  .insight-card-title {
    font-size: 0.95rem;
  }

  .insight-card-text {
    font-size: 0.78rem;
  }

  .panel-card {
    padding: 1rem 0.95rem;
  }

  .api-meta-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .insight-card-title--lg {
    font-size: 1.35rem;
  }
}

html[dir="rtl"] .insight-card-action:hover i,
html[dir="rtl"] .sidebar-profile-link:hover i {
  transform: translateX(-3px);
}

html[dir="rtl"] .search-field-icon {
  left: auto;
  right: 12px;
}

html[dir="rtl"] .search-field-input {
  padding-left: 0.95rem !important;
  padding-right: 2.4rem !important;
}

html[dir="rtl"] .charge-field .form-control {
  padding-right: 0.95rem;
  padding-left: 2.75rem;
}

html[dir="rtl"] .charge-field-icon {
  right: auto;
  left: 0.95rem;
}

/* =========================================================
PREMIUM SHARED
========================================================= */
.premium-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 4px 18px rgba(26, 26, 26, 0.045);
  padding: 0.9rem 1rem;
}

.premium-card.compact-card {
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
}

.premium-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  flex-wrap: wrap;
}

.premium-search > .ti {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

.premium-search .form-control {
  flex: 1 1 160px;
  min-width: 140px;
  height: var(--control-h);
  min-height: var(--control-h);
  padding-left: 2.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.premium-search .form-control:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px var(--orange-ring);
}

.premium-search .btn-primary {
  height: var(--control-h);
  border-radius: 999px;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  box-shadow: var(--shadow-orange);
}

.btn-icon-soft,
.btn-icon-outline {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  background: var(--orange-soft);
  color: var(--orange-primary);
}

.btn-icon-soft:hover {
  background: var(--orange-primary);
  color: #fff;
}

.btn-icon-soft.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.btn-icon-outline {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-icon-outline:hover {
  border-color: var(--orange-wash);
  color: var(--orange-primary);
  background: var(--orange-soft);
}

.btn-order-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-primary) !important;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.25);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-order-now:hover {
  background: var(--orange-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.32);
}

/* =========================================================
SERVICES PAGE
========================================================= */
.services-toolbar {
  padding: 1.2rem 1.35rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.services-category-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: 0 6px 22px rgba(26, 26, 26, 0.04);
  overflow: hidden;
}

.services-category-block.tint-0 .services-category-toggle {
  background: linear-gradient(90deg, #FFF1E6 0%, #FFFFFF 65%);
}
.services-category-block.tint-1 .services-category-toggle {
  background: linear-gradient(90deg, #EAF3FF 0%, #FFFFFF 65%);
}
.services-category-block.tint-2 .services-category-toggle {
  background: linear-gradient(90deg, #EAFBF3 0%, #FFFFFF 65%);
}

.services-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 0.7rem 0.9rem;
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
  transition: filter var(--transition);
}

.services-category-toggle:hover {
  filter: brightness(0.99);
}

.services-category-left {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.services-category-left strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.svc-cat-icon,
.svc-cat-icon-img {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
  flex-shrink: 0;
  object-fit: contain;
}

.services-category-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.services-category-hint .ti {
  transition: transform var(--transition);
}

.services-category-block.is-collapsed .services-category-hint .ti {
  transform: rotate(-90deg);
}

.services-category-block.is-collapsed .services-category-items {
  display: none;
}

.services-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.4rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--orange-primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.services-category-items {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem;
  background: #FAFAF8;
}

.services-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.95rem;
  background: #fff;
  border: 1px solid #EEE9E3;
  border-radius: 1rem;
  padding: 0.9rem 1.05rem;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.03);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.services-item-row:hover {
  border-color: var(--orange-wash);
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.08);
  transform: translateY(-1px);
}

.svc-fav { flex: 0 0 auto; }
.svc-id { flex: 0 0 auto; min-width: 3.25rem; }
.svc-name {
  flex: 1 1 200px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-word;
}
.svc-rate {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--orange-primary);
  font-size: 1.05rem;
  min-width: 4.5rem;
}
.svc-meta-box {
  flex: 0 0 auto;
  min-width: 78px;
  background: #F7F5F3;
  border: 1px solid #EEE9E3;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  line-height: 1.2;
}
.svc-meta-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.svc-meta-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.svc-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.services-fav {
  color: var(--text-faint);
  cursor: pointer;
  font-size: 1.05rem;
}
.services-fav.favorite-active,
.services-fav .fas,
.services-fav .ti-star-filled {
  color: var(--orange-primary);
}

.services-item-row.is-filtered-out,
.services-category-block.is-filtered-out {
  display: none !important;
}

.services-empty {
  text-align: center;
  padding: 2.75rem 1rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: 1.25rem;
}
.services-empty i {
  font-size: 1.85rem;
  color: var(--orange-primary);
  opacity: 0.75;
}

.service-desc-modal .modal-header {
  background: linear-gradient(135deg, var(--orange-soft), #fff);
  border-bottom: 1px solid var(--orange-wash);
}
.service-desc-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-primary);
}

@media (max-width: 991.98px) {
  .svc-action {
    width: 100%;
    margin-left: 0;
  }
  .svc-action .btn-order-now {
    flex: 1;
  }
}

/* =========================================================
ORDERS PAGE
========================================================= */
.orders-toolbar {
  padding: 0.75rem 0.85rem;
}

.orders-status-pills {
  gap: 0.45rem;
}

.orders-status-pills > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.orders-status-pills > li > a:hover {
  color: var(--orange-primary);
  border-color: var(--orange-wash);
  background: var(--orange-soft);
}

.orders-status-pills > li.active > a,
.orders-status-pills > li.active > a:hover,
.orders-status-pills > li.active > a:focus {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.orders-table-card {
  padding: 0.25rem 0.15rem 0.5rem !important;
}

.orders-table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.orders-table thead th {
  border: none !important;
  background: transparent;
  padding: 0.65rem 0.85rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.orders-table tbody td {
  border: none !important;
  border-top: 1px solid #F1ECE7 !important;
  background: transparent;
  padding: 0.7rem 0.85rem;
  vertical-align: middle;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.orders-table tbody tr:first-child td {
  border-top: 1px solid #F1ECE7 !important;
}

.orders-table .orders-row:hover td {
  background: #FFF8F2;
}

.order-date-stack {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}
.order-date-day {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.875rem;
}
.order-date-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.order-link-col {
  max-width: 200px;
  min-width: 140px;
  width: 180px;
}

.order-link-wrap,
.order-service-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 200px;
}

.order-link-icon {
  color: var(--orange-primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.order-link-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--orange-primary);
  font-weight: 700;
  font-size: 0.875rem;
}

.order-service-icon {
  color: #C4A574;
  font-size: 1rem;
  flex-shrink: 0;
}

.order-service-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
}

.order-actions-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-chip .ti { font-size: 0.82rem; }

.status-default { background: #F3F4F6; color: #374151; border-color: #E5E7EB; }
.status-pending { background: #FFF7ED; color: #9A3412; border-color: #FDBA74; }
.status-inprogress { background: #EFF6FF; color: #1E40AF; border-color: #93C5FD; }
.status-completed { background: #ECFDF5; color: #065F46; border-color: #6EE7B7; }
.status-partial { background: #F5F3FF; color: #5B21B6; border-color: #C4B5FD; }
.status-processing { background: #FFF7ED; color: #C2410C; border-color: #FDBA74; }
.status-canceled { background: #FFF1F2; color: #BE123C; border-color: #FECDD3; }

.orders-footer-meta {
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}

.orders-pagination {
  margin-bottom: 0.5rem;
}

.orders-pagination > li > a {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.orders-showing {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* =========================================================
ADD FUNDS PAGE
========================================================= */
.addfunds-main-card {
  padding: 0;
  overflow: hidden;
}

.addfunds-wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(135deg, #FF6A00 0%, #FF8A3D 55%, #E85F00 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.addfunds-wallet-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}

.addfunds-wallet-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.addfunds-wallet-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.addfunds-wallet-amount {
  margin: 0.2rem 0 0.45rem;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.addfunds-wallet-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.92;
  max-width: 240px;
}

.addfunds-wallet-art {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.wallet-illus {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.wallet-coin {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #F6D365, #FDA085);
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.addfunds-form-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.amount-field {
  position: relative;
}

.amount-field .form-control {
  padding-right: 3.5rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.amount-suffix {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.quick-amount-btn {
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: #fff;
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.9rem;
  transition: all var(--transition);
  font-family: inherit;
  cursor: pointer;
}

.quick-amount-btn:hover,
.quick-amount-btn.active {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  background: var(--orange-soft);
}

.addfunds-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
}

.addfunds-secure .ti {
  font-size: 1.05rem;
}

.payment-history-card {
  display: flex;
  flex-direction: column;
}

.btn-passbook {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--orange-wash);
  color: var(--orange-primary);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all var(--transition);
}

.btn-passbook:hover {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #fff;
}

.payment-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  flex: 1;
}

.payment-timeline-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  position: relative;
}

.payment-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 48px;
  bottom: -2px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #E5E0DA 0,
    #E5E0DA 4px,
    transparent 4px,
    transparent 8px
  );
}

.payment-timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.payment-timeline-icon.is-credit {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.payment-timeline-icon.is-spend {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.payment-timeline-body {
  flex: 1;
  min-width: 0;
}

.payment-timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.payment-amount {
  font-weight: 800;
  font-size: 0.95rem;
}
.payment-amount.is-credit { color: #059669; }
.payment-amount.is-spend { color: #DC2626; }

.payment-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.payment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.payment-method-chip {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.chip-credit {
  background: #ECFDF5;
  color: #047857;
}

.chip-spend {
  background: #FEF2F2;
  color: #B91C1C;
}

.payment-invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.payment-history-foot {
  margin-top: auto;
  margin-left: -1.35rem;
  margin-right: -1.35rem;
  margin-bottom: -1.25rem;
  padding: 0.9rem 1.35rem;
  background: #FAFAF8;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.payment-history-foot .ti {
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  .quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .addfunds-wallet-amount {
    font-size: 1.75rem;
  }

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

html[dir="rtl"] .premium-search > .ti {
  left: auto;
  right: 0.95rem;
}

html[dir="rtl"] .premium-search .form-control {
  padding-left: 0.95rem;
  padding-right: 2.5rem;
}

html[dir="rtl"] .services-category-block.is-collapsed .services-category-hint .ti {
  transform: rotate(90deg);
}

html[dir="rtl"] .svc-action {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .amount-suffix {
  right: auto;
  left: 0.95rem;
}

html[dir="rtl"] .amount-field .form-control {
  padding-right: 0.95rem;
  padding-left: 3.5rem;
}

html[dir="rtl"] .payment-timeline-item:not(:last-child)::before {
  left: auto;
  right: 17px;
}


/* =========================================================
SELECT2 / CHOICES DROPDOWNS (New Order, Add Funds, Tickets)
High-contrast orange/white theme
========================================================= */
/*
IMPORTANT: Never set width:100%!important on ALL .select2-container.
Select2 appends a second container to <body> when open, with an inline
pixel width + left offset. Forcing 100% on that host = left + 100vw
→ body horizontal scrollbar.

In-form host has class "select2"; the body-hosted dropdown host does not.
*/
.select2.select2-container {
  width: 100% !important;
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
}

.select2-container {
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
}

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

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single,
.select2-selection.select2-selection--single.form-control {
  height: var(--control-h) !important;
  min-height: var(--control-h) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  padding: 0 2.4rem 0 0.8rem !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--focus .select2-selection--single.form-control,
.select2-container--open .select2-selection--single.form-control {
  border-color: var(--orange-primary) !important;
  box-shadow: inset 0 0 0 1px var(--orange-primary), 0 0 0 3px var(--orange-ring) inset !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-selection__rendered {
  color: var(--text-main) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.3 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.select2-selection__text {
  color: var(--text-main);
  font-weight: 600;
}

.select2-selection__id,
.select2-selection__id.badge,
.badge-pill.rounded-pill.select2-selection__id {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1.75rem;
  height: 1.45rem;
  padding: 0 0.45rem !important;
  border-radius: 999px !important;
  background: var(--orange-primary) !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  border: none !important;
  vertical-align: middle;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 0.65rem !important;
  width: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--text-muted) transparent transparent transparent !important;
  border-width: 6px 5px 0 5px !important;
  margin: 0 !important;
  position: static !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--orange-primary) transparent !important;
  border-width: 0 5px 6px 5px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  margin-right: 1.5rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Dropdown panel — width comes from Select2 (matches the closed select) */
.select2-dropdown,
.select2-container--default .select2-dropdown {
  border: 1.5px solid var(--border-color) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.12) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  z-index: 1080 !important;
  margin-top: 6px;
  box-sizing: border-box !important;
}

.select2-container--default .select2-search--dropdown {
  padding: 0.75rem 0.75rem 0.35rem !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.85rem !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text-main) !important;
  outline: none !important;
  background: var(--bg-elevated) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--orange-primary) !important;
  box-shadow: 0 0 0 3px var(--orange-ring) !important;
  background: #fff !important;
}

.select2-results {
  padding: 0.35rem 0.5rem 0.65rem !important;
}

.select2-container--default .select2-results__option {
  border-radius: 10px !important;
  padding: 0.55rem 0.75rem !important;
  margin: 0.1rem 0 !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  line-height: 1.35 !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
  background: var(--orange-primary) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option--highlighted .select2-selection__text,
.select2-container--default .select2-results__option--highlighted {
  color: #fff !important;
}

.select2-container--default .select2-results__option--highlighted .select2-selection__id,
.select2-container--default .select2-results__option--highlighted .select2-selection__id.badge,
.select2-container--default .select2-results__option--highlighted .badge-pill.rounded-pill.select2-selection__id,
.select2-container--default .select2-results__option--highlighted .badge,
.select2-container--default .select2-results__option--highlighted .badge-pill {
  background: #fff !important;
  color: var(--orange-primary) !important;
}

.select2-container--default .select2-results__option[aria-selected='true'] {
  background: var(--orange-wash) !important;
  color: var(--orange-deep) !important;
}

.select2-container--default .select2-results__option[aria-selected='true'].select2-results__option--highlighted {
  background: var(--orange-primary) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option--selected {
  background: var(--orange-wash) !important;
  color: var(--orange-deep) !important;
}

.select2-container--default .select2-results__option--disabled {
  color: var(--text-faint) !important;
}

.select2-results__message {
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  padding: 0.75rem !important;
}

/* PerfectPanel global search dropdown above category */
.search-dropdown,
.search-dropdown.select2-container--default,
#new-order-search {
  width: 100%;
  position: relative;
}

.search-dropdown .input-wrapper,
#new-order-search .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-dropdown .input-wrapper__prepend,
#new-order-search .input-wrapper__prepend,
.search-field-icon {
  position: absolute !important;
  left: 0.9rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3;
  border: none !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
  font-size: 0.95rem;
}

.search-dropdown .input-wrapper .form-control,
.search-dropdown .select2-selection,
#new-order-search .form-control,
#new-order-search .select2-selection,
#template-input.form-control {
  height: var(--control-h) !important;
  min-height: var(--control-h) !important;
  padding-left: 2.35rem !important;
  padding-right: 0.85rem !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-xs);
}

.search-dropdown .input-wrapper .form-control:focus,
#template-input.form-control:focus {
  border-color: var(--orange-primary) !important;
  box-shadow: 0 0 0 3px var(--orange-ring) !important;
  outline: none !important;
}

/* Native selects (tickets / fallbacks) match Select2 look */
select.form-control:not([multiple]) {
  height: var(--control-h);
  min-height: var(--control-h);
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A7A7A' d='M1.4 0.6L6 5.2 10.6 0.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 11px 7px;
  padding-right: 2.2rem;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
}

select.form-control:not([multiple]):focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px var(--orange-ring);
  background-color: #fff;
}

/* Hide original select cleanly when Select2 is active */
select.select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Form group spacing for select stacks */
.panel-card .form-group .select2-container,
.well .form-group .select2-container {
  margin-top: 0;
}

html[dir='rtl'] .select2-container--default .select2-selection--single {
  padding: 0 0.95rem 0 2.75rem !important;
}

html[dir='rtl'] .select2-container--default .select2-selection--single .select2-selection__arrow {
  right: auto !important;
  left: 0.65rem !important;
}

html[dir='rtl'] .search-dropdown .input-wrapper__prepend,
html[dir='rtl'] #new-order-search .input-wrapper__prepend,
html[dir='rtl'] .search-field-icon {
  left: auto !important;
  right: 0.9rem !important;
}

html[dir='rtl'] .search-dropdown .input-wrapper .form-control,
html[dir='rtl'] #template-input.form-control {
  padding-left: 1rem !important;
  padding-right: 2.55rem !important;
}

html[dir='rtl'] select.form-control:not([multiple]) {
  background-position: left 1rem center;
  padding-left: 2.5rem;
  padding-right: 0.95rem;
}

/* =========================================================
COMPACT DENSITY + NEW PAGES
========================================================= */

.btn-sm,
.btn-xs {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}

.btn-submit-lg {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-selection__rendered {
  font-size: 0.875rem !important;
  line-height: 1.3 !important;
}

.select2-container--default .select2-results__option {
  padding: 0.5rem 0.7rem !important;
  margin: 0.1rem 0 !important;
  font-size: 0.84rem !important;
}

.select2-dropdown,
.select2-container--default .select2-dropdown {
  border-radius: 12px !important;
  margin-top: 4px;
}

/* ----- Refunds ----- */
.refunds-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  background: var(--orange-soft);
  border: 1px solid var(--orange-wash);
  border-radius: var(--radius-md);
  color: var(--orange-deep);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.refunds-alert .ti {
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.refund-order-link {
  font-weight: 700;
  color: var(--text-main);
}

.refund-order-link:hover {
  color: var(--orange-primary);
}

.refunds-table {
  min-width: 640px;
}

/* ----- API ----- */
.api-hero-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.api-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: center;
  min-height: 72px;
}

.api-stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.api-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.api-url-copy {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--text-main);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
}

.api-key-strip {
  background: linear-gradient(145deg, #FFF8F1 0%, #fff 70%);
  border-color: var(--orange-wash);
}

.api-method-head {
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-color);
}

.api-method-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.api-params-table {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.api-params-table thead th {
  border: none;
  padding: 0.45rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-body);
}

.api-params-table tbody td {
  border-color: #F1ECE7;
  padding: 0.55rem 0.55rem;
  vertical-align: top;
  color: var(--text-secondary);
}

.api-param {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.api-example-label {
  margin: 0.35rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.api-pre {
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: #1A1A1A;
  color: #F5F5F5;
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.width-40 {
  width: 40%;
}

/* ----- Accounts ----- */
.account-tabs .ti {
  font-size: 0.95rem;
}

.account-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.account-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.account-section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.25;
}

.account-section-sub {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.account-help-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  line-height: 1.45;
}

.api-key-field .form-control {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

/* ----- Mass order ----- */
.massorder-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  min-height: 220px;
  resize: vertical;
}

.massorder-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.massorder-hint code {
  background: var(--orange-soft);
  color: var(--orange-deep);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.tip-list code {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-size: 0.72rem;
}

/* ----- Mobile app density ----- */
@media (max-width: 767.98px) {
  .main-content-wrapper {
    padding: 0.5rem 0.5rem 0.85rem;
  }

  .premium-card,
  .premium-card.compact-card {
    padding: 0.7rem 0.75rem;
    border-radius: 0.85rem;
  }

  .insight-card {
    padding: 0.6rem 0.65rem;
    gap: 0.5rem;
  }

  .insight-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 0.95rem;
  }

  .dash-cards {
    margin-bottom: 0.15rem;
  }

  .dash-cards > [class*="col-"] {
    margin-bottom: 0;
  }

  .insight-card-label {
    font-size: 0.62rem;
    margin-bottom: 0;
  }

  .insight-card-title {
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .insight-card-text {
    display: none;
  }

  .insight-card-action {
    font-size: 0.72rem;
    margin-top: 0.2rem;
  }

  .orders-status-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
    gap: 0.35rem;
  }

  .orders-status-pills > li {
    flex: 0 0 auto;
  }

  .orders-status-pills > li > a {
    padding: 0.32rem 0.65rem;
    font-size: 0.74rem;
  }

  .premium-search {
    gap: 0.4rem;
  }

  .premium-search .btn-primary {
    width: 100%;
  }

  .account-section-head {
    margin-bottom: 0.7rem;
  }

  .massorder-textarea {
    min-height: 180px;
  }

  .api-stat {
    min-height: 60px;
  }

  .btn-icon-soft,
  .btn-icon-outline {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .brand-name-sm {
    font-size: 0.95rem;
  }

  .app-menu-toggle i {
    font-size: 1.45rem;
  }

  .balance-pill {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
  }
}

/* =========================================================
TICKETS + NOTIFICATIONS
========================================================= */
.tickets-list-head {
  padding: 0.75rem 0.9rem 0.55rem;
  border-bottom: 1px solid var(--border-color);
}

.tickets-table {
  min-width: 560px;
}

.ticket-subject-link {
  font-weight: 600;
  color: var(--text-main);
}

.ticket-subject-link:hover {
  color: var(--orange-primary);
}

.tickets-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tickets-back:hover {
  color: var(--orange-primary);
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ticket-bubble {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
}

.ticket-bubble--admin {
  background: var(--orange-soft);
  border-color: var(--orange-wash);
}

.ticket-bubble--user {
  background: #fff;
}

.ticket-bubble-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ticket-bubble-meta strong {
  color: var(--text-main);
  font-weight: 700;
}

.ticket-bubble-body {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.ticket-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticket-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.ticket-meta-list li:last-child {
  border-bottom: none;
}

.ticket-meta-list span {
  color: var(--text-muted);
}

.ticket-meta-list strong {
  color: var(--text-main);
  font-weight: 700;
}

.notify-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.7rem 0.8rem;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.notify-row:hover {
  border-color: var(--orange-wash);
  background: #fff;
}

.notify-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.notify-row-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.notify-row-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.notify-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.notify-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.notify-slider {
  position: absolute;
  inset: 0;
  background: #DDD6CE;
  border-radius: 999px;
  transition: background var(--transition);
}

.notify-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition);
}

.notify-switch input:checked + .notify-slider {
  background: var(--orange-primary);
}

.notify-switch input:checked + .notify-slider::before {
  transform: translateX(18px);
}

/* =========================================================
DESKTOP DENSITY (middle ground) + DROPDOWN FIXES
========================================================= */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.app-main,
.main-content-wrapper,
.page-stack {
  max-width: 100%;
  min-width: 0;
}

.main-content-wrapper {
  overflow-x: hidden;
}

/* In-form Select2 only — never force 100% on the body-hosted open dropdown host */
.select2.select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

.select2-container--open {
  z-index: 1080;
}

/* Inset focus ring — outer ring was causing horizontal page scroll */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--focus .select2-selection--single.form-control,
.select2-container--open .select2-selection--single.form-control {
  border-color: var(--orange-primary) !important;
  box-shadow: inset 0 0 0 1px var(--orange-primary), 0 0 0 3px var(--orange-ring) inset !important;
}

/* Width locked to the field via JS — wrap long names inside that width */
body .select2-dropdown {
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

body .select2-results,
body .select2-results__options {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

body .select2-container--default .select2-results > .select2-results__options {
  max-height: min(280px, 45vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body .select2-results__option,
body .select2-results__option *,
body .select2-selection__rendered,
body .select2-selection__rendered * {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 992px) {
  :root {
    --sidebar-width: 264px;
    --control-h: 44px;
    --radius-sm: 0.45rem;
    --radius-md: 0.7rem;
    --radius-lg: 0.95rem;
    --radius-xl: 1.1rem;
  }

  .main-content-wrapper {
    padding: 1.15rem 1.35rem 1.75rem;
  }

  .premium-card {
    padding: 1.05rem 1.15rem;
    border-radius: 1.1rem;
  }

  .premium-card.compact-card {
    padding: 0.9rem 1rem;
  }

  .sidebar-brand {
    padding: 1rem 1.1rem 0.75rem;
  }

  .sidebar-profile {
    margin: 0.25rem 0.85rem 1rem;
    padding: 0.8rem 0.85rem;
  }

  .profile-card-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .sidebar-profile-name {
    font-size: 0.9rem;
  }

  .sidebar-menu .nav-link {
    padding: 0.55rem 0.8rem;
    font-size: 0.88rem;
    gap: 0.65rem;
  }

  .sidebar-menu .nav-link i {
    font-size: 1.1rem;
  }

  .form-group {
    margin-bottom: 0.95rem;
  }

  .control-label,
  label.control-label,
  .form-label {
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
  }

  .form-control,
  .form-select,
  select.form-control,
  textarea.form-control {
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
  }

  .orders-table thead th {
    padding: 0.75rem 0.95rem 0.55rem;
    font-size: 0.68rem;
  }

  .orders-table tbody td {
    padding: 0.85rem 0.95rem;
    font-size: 0.875rem;
  }

  .insight-card {
    padding: 1rem 1.05rem;
    gap: 0.85rem;
  }

  .insight-card-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .btn-orange,
  .btn-primary {
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* =========================================================
CHOICES.JS (Add Funds / shared) — match New Order Select2
========================================================= */
.trickyn-choices.choices,
.choices {
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  font-family: 'Outfit', sans-serif;
}

.trickyn-choices .choices__inner,
.choices[data-type*='select-one'] .choices__inner,
.choices__inner {
  min-height: var(--control-h) !important;
  height: var(--control-h) !important;
  padding: 0 2.4rem 0 0.85rem !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: var(--shadow-xs);
  display: flex !important;
  align-items: center !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.trickyn-choices.is-focused .choices__inner,
.trickyn-choices.is-open .choices__inner,
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: var(--orange-primary) !important;
  box-shadow: inset 0 0 0 1px var(--orange-primary), 0 0 0 3px var(--orange-ring) inset !important;
}

.trickyn-choices[data-type*='select-one']::after,
.choices[data-type*='select-one']::after {
  border-color: var(--text-muted) transparent transparent !important;
  border-width: 6px 5px 0 5px !important;
  right: 0.85rem !important;
  margin-top: -3px !important;
}

.trickyn-choices.is-open[data-type*='select-one']::after,
.choices[data-type*='select-one'].is-open::after {
  border-color: transparent transparent var(--orange-primary) !important;
  border-width: 0 5px 6px 5px !important;
  margin-top: -3px !important;
}

.trickyn-choices .choices__list--single,
.choices__list--single {
  padding: 0 !important;
  width: 100%;
}

.trickyn-choices .choices__list--single .choices__item,
.choices__list--single .choices__item {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trickyn-choices .choices__placeholder,
.choices__placeholder {
  opacity: 1 !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}

.trickyn-choices .choices__button {
  display: none !important;
}

.trickyn-choices .choices__list--dropdown,
.trickyn-choices .choices__list[aria-expanded],
.choices__list--dropdown,
.choices__list[aria-expanded] {
  border: 1.5px solid var(--border-color) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.12) !important;
  background: #fff !important;
  margin-top: 4px !important;
  z-index: 1080 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-width: 100%;
  box-sizing: border-box !important;
}

.trickyn-choices .choices__list--dropdown .choices__item,
.trickyn-choices .choices__list[aria-expanded] .choices__item,
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
  padding: 0.55rem 0.75rem !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  border-radius: 8px;
  margin: 0.15rem 0.35rem;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.trickyn-choices .choices__list--dropdown .choices__item--selectable.is-highlighted,
.trickyn-choices .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list--dropdown .choices__item--selectable.is-selected.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: var(--orange-primary) !important;
  color: #fff !important;
}

.trickyn-choices .choices__list--dropdown .choices__item.is-selected:not(.is-highlighted),
.choices__list--dropdown .choices__item.is-selected:not(.is-highlighted) {
  background: var(--orange-wash) !important;
  color: var(--orange-deep) !important;
}

.trickyn-choices .choices__input,
.choices__input {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

.trickyn-choices .choices__list--dropdown .choices__input,
.choices__list--dropdown .choices__input {
  padding: 0.55rem 0.75rem !important;
  margin: 0.5rem 0.5rem 0.25rem !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 10px !important;
  background: var(--bg-elevated) !important;
  width: calc(100% - 1rem) !important;
}

.trickyn-choices .choices__list--dropdown .choices__input:focus,
.choices__list--dropdown .choices__input:focus {
  border-color: var(--orange-primary) !important;
  box-shadow: 0 0 0 3px var(--orange-ring) inset !important;
  background: #fff !important;
  outline: none !important;
}

#addfunds-page .trickyn-choices,
#addfunds-page .choices,
#addfunds-form .form-group .choices {
  width: 100% !important;
  max-width: 100%;
}

.trickyn-choices + select,
select.choices__input,
#method.choices__input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.search-dropdown .input-wrapper__prepend .fas,
#new-order-search .input-wrapper__prepend .fas {
  font-size: 0.9rem;
  opacity: 0.85;
}

.select2-results__option a {
  padding: 0 !important;
}
span.select2-selection.select2-selection--single.form-control {
  min-height: auto !important;
  max-height: none !important;
  padding: 10px !important;
  height: auto !important;
}
.select2-container--default .select2-results__option[aria-selected='true'].select2-results__option--highlighted a {
  color: #fff !important;
}