:root {
   --main-color: #f34213;
   --main-opacity: #f59e0b26;
   --secondary-color: #e9ecef;
   --bg-color: #fff;
   --border-color: #e9ecef;
   --text-main: #000;
   --shadow-color: #b7c0ce33;
   --card-bg: #11151c;

}
html.dark {
   --main-opacity: #a8a19026;
   --secondary-color: #ffffff0a;
   --bg-color: #0a0f1b;
   --border-color: #2a3444;
   --text-main: #f9fafb;
   --shadow-color: #00000066;
}

html[lang="ar"] {
   direction: rtl;
   font-family: "Alexandria", serif;
   transition: all 0.3s ease-in-out;
}

* {
   padding: 0;
   margin: 0;
   box-sizing: border-box;
}

body {
   background: var(--bg-color);
   color: var(--text-main);
   overflow-x: hidden;
   transition: background 0.2s ease-in-out;
   line-height: 1.42857143;
}
a {
   text-decoration: none;
}
.container {
   max-width: 1200px;
   margin: 0 auto;
   width: 100%;
}
.main-wrapper{
   display: flex;
}
.sidebar-folded .main-wrapper .page-content {
   width: 100% !important;
   margin-inline-start: 0 !important;
}
.sidebar-folded .page-content .page-header {
   margin-inline-start: 240px;
}
.main-wrapper .page-content {
   background-color: inherit;
   min-height: 100vh;
   width: calc(100% - 240px);
   margin-inline-start: 240px;
   display: flex;
   flex-direction: column;
   transition: margin 0.1s ease, width 0.1s ease;
}

@media (max-width: 991px) {
   .main-wrapper .page-content {
      margin-right: 0;
      width: 100%;
   }
}

/* 
============ sidebar ================
*/
html[lang="ar"] .sidebar {
   right: 0;
}

.sidebar {
   width: 240px;
   height: 100%;
   position: fixed;
   left: 0;
   top: 0;
   transition: width 0.1s ease, margin 0.1s ease-in-out;
   z-index: 999;
}
.sidebar-folded:not(.open-sidebar-folded) .sidebar {
   width: 0;
}

/* 
============ sidebar header ================
*/

.sidebar .sidebar-header {
   background: var(--bg-color);
   height: 70px;
   border-bottom: 1px solid var(--border-color);
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 0 25px;
   border-left: 1px solid var(--border-color);
   z-index: 999;
   width: 240px;
   transition: width 0.1s ease;
}
.sidebar-open .sidebar .sidebar-header {
   border-bottom: 1px solid var(--border-color);
}
.sidebar .sidebar-header .brand {
   opacity: 1;
   visibility: visible;
   transition: opacity 0.5s ease;
   font-weight: 700;
   font-size: 25px;
   color: var(--main-color);
}
.sidebar .sidebar-header .sidebar-toggler {
   cursor: pointer;
   width: 18px;
}
.sidebar .sidebar-header .sidebar-toggler span {
   display: block;
   width: 100%;
   border-radius: 3px;
   height: 2px;
   background: #7987a1;
   transition: all 0.3s;
   position: relative;
}
.sidebar .sidebar-header .sidebar-toggler span + span {
   margin-top: 4px;
}
.sidebar .sidebar-header .sidebar-toggler.active span:nth-child(1) {
   animation: ease 0.6s top forwards;
}
.sidebar .sidebar-header .sidebar-toggler.not-active span:nth-child(1) {
   animation: ease 0.6s top-2 forwards;
}
.sidebar .sidebar-header .sidebar-toggler.active span:nth-child(2) {
   animation: ease 0.6s scaled forwards;
}
.sidebar .sidebar-header .sidebar-toggler.not-active span:nth-child(2) {
   animation: ease 0.6s scaled-2 forwards;
}
.sidebar .sidebar-header .sidebar-toggler.active span:nth-child(3) {
   animation: ease 0.6s bottom forwards;
}
.sidebar .sidebar-header .sidebar-toggler.not-active span:nth-child(3) {
   animation: ease 0.6s bottom-2 forwards;
}
@keyframes top {
   0% {
      top: 0;
      transform: rotate(0);
   }
   50% {
      top: 6px;
      transform: rotate(0);
   }
   100% {
      top: 6px;
      transform: rotate(-45deg);
   }
}
@keyframes top-2 {
   0% {
      top: 6px;
      transform: rotate(-45deg);
   }
   50% {
      top: 6px;
      transform: rotate(0deg);
   }
   100% {
      top: 0;
      transform: rotate(0deg);
   }
}
@keyframes bottom {
   0% {
      bottom: 0;
      transform: rotate(0);
   }
   50% {
      bottom: 6px;
      transform: rotate(0);
   }
   100% {
      bottom: 6px;
      transform: rotate(-135deg);
   }
}
@keyframes bottom-2 {
   0% {
      bottom: 6px;
      transform: rotate(-135deg);
   }
   50% {
      bottom: 6px;
      transform: rotate(0);
   }
   100% {
      bottom: 0;
      transform: rotate(0);
   }
}
@keyframes scaled {
   50% {
      transform: scale(0);
   }
   100% {
      transform: scale(0);
   }
}
@keyframes scaled-2 {
   0% {
      transform: scale(0);
   }
   50% {
      transform: scale(0);
   }
   100% {
      transform: scale(1);
   }
}

/* 
============ sidebar body ================
*/
.sidebar .sidebar-body {
   max-height: calc(100% - 60px);
   position: relative;
   border-left: 1px solid var(--border-color);
   height: 100%;
   box-shadow: 0 8px 10px 0 var(--shadow-color);
   background: var(--bg-color);
   overflow: hidden;
   display: flex;
   flex-direction: column;
}
.sidebar-body .user-box {
   padding: 2rem;
   text-align: center;
   border-top: 1px solid var(--border-color);
}
.sidebar-body .user-box .user-avatar {
   position: relative;
   width: 96px;
   height: 96px;
   margin: 0 auto 1rem;
   cursor: pointer;
   display: block;
}
.sidebar-body .user-box .user-avatar .glow {
   position: absolute;
   inset: 0;
   background: var(--main-color);
   border-radius: 50%;
   filter: blur(20px);
   transition: background 0.3s ease;
}
.sidebar-body .user-box .user-avatar .badge {
   position: absolute;
   top: -4px;
   right: -4px;
   width: 32px;
   height: 32px;
   z-index: 20;
}

.sidebar-body .user-box .user-border {
   width: 96px;
   height: 96px;
   border-radius: 50%;
   border: 4px solid var(--border-color);
   overflow: hidden;
   position: relative;
   z-index: 10;
   box-shadow: 0 10px 25px var(--shadow-color);
}
.sidebar-body .user-box .user-border > p {
   width: 100%;
   height: 100%;
   background: var(--main-color);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--bg-color);
   font-size: 1.875rem;
   font-weight: bold;
}
.sidebar-body .user-box .username {
   font-weight: bold;
   font-size: 1.125rem;
   margin-bottom: 0.25rem;
   letter-spacing: -0.02em;
}
.sidebar-body .user-box .level {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.25rem 0.75rem;
   background: var(--shadow-color);
   color: var(--main-color);
   border-radius: 9999px;
   font-size: 0.75rem;
   font-weight: bold;
}
.sidebar-body .user-box .user-avatar .go-arrow {
   position: absolute;
   bottom: -8px;
   left: -8px;
   width: 28px;
   height: 28px;
   border-radius: 50%;
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 25;
   color: var(--main-color);
   font-size: 14px;
   box-shadow: 0 10px 20px rgba(0,0,0,0.35);
   transition: 0.25s ease;
}
.sidebar-body .user-box .user-avatar:hover .go-arrow {
   transform: translateX(-4px) translateY(-2px);
   background: var(--main-color);
   color: var(--text-main);
   border-color: var(--main-color);
}
.sidebar-body .user-box .user-avatar:hover .user-border {
   border-color: rgba(243, 66, 19, 0.55);
}
.sidebar-body .user-box .username {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
}
.sidebar-body .user-box .verified-badge {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 22px;
   height: 22px;
   border-radius: 50%;
   background: var(--main-opacity);
   border: 1px solid rgba(243, 66, 19, 0.35);
   color: var(--main-color);
   font-size: 14px;
   cursor: default;
   transition: 0.25s ease;
}
.sidebar-body .user-box .verified-badge:hover {
   transform: translateY(-2px);
   box-shadow: 0 0 18px rgba(243, 66, 19, 0.25);
}
.sidebar-body .sidebar-menu {
   overflow-y: auto;
   padding-left: 1.25rem;
   padding-right: 1.25rem;
   padding-bottom: 1.25rem;
}
.sidebar-body .sidebar-menu::-webkit-scrollbar,
.select2-results__options::-webkit-scrollbar,
.services-filter .dropdown-menu::-webkit-scrollbar {
   width: 8px;
   height: 8px;
}
.sidebar-body .sidebar-menu::-webkit-scrollbar-track,
.select2-results__options::-webkit-scrollbar-track,
.services-filter .dropdown-menu::-webkit-scrollbar-track {
   background-color: var(--secondary-color);
}
.sidebar-body .sidebar-menu::-webkit-scrollbar-thumb,
.select2-results__options::-webkit-scrollbar-thumb,
.services-filter .dropdown-menu::-webkit-scrollbar-thumb {
   background: var(--main-opacity);
   border-radius: 999px;
   border: 2px solid transparent;
   background-clip: content-box;
}

.sidebar-menu .menu-title {
   margin-bottom: 9px;
   font-size: 13px;
   font-weight: 500;
   color:  var(--text-main);
}
.sidebar-menu .menu-side {
   margin-top: 0.625rem;
   border-radius: 0.75rem;
   border: 1px solid var(--border-color);
}
.sidebar-menu .menu-side .side-title {
   border-top-left-radius: 0.75rem;
   border-top-right-radius: 0.75rem;
   background-color: var(--bg-color);
   padding: 0.75rem;
   font-size: 1rem;
   line-height: 1.5rem;
   font-weight: 600;
}
.sidebar-menu .menu-side .nav-menu {
   margin: 0px;
   display: flex;
   list-style-type: none;
   flex-direction: column;
   flex-wrap: wrap;
   row-gap: 0.375rem;
   padding: 0 10px 10px;
}
.sidebar-menu .menu-side .nav-menu li > a {
   position: relative;
   display: flex;
   align-items: center;
   border-radius: 0.75rem;
   background-color: var(--bg-color);
   padding: 0.375rem;
   font-size: 0.875rem;
   line-height: 1.25rem;
   font-weight: 500;
   color: var(--text-main);
   text-decoration-line: none;
   transition-property: all;
   transition-duration: 300ms;
   transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-menu .menu-side .nav-menu li > a:hover,
.sidebar-menu .menu-side .nav-menu li.active > a {
   background-color: var(--main-color);
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon {
   margin-inline-end: 0.625rem;
   display: inline-flex;
   height: 30px;
   width: 30px;
   align-items: center;
   justify-content: center;
   border-radius: 0.5rem;
   border: 1px solid var(--border-color);
   background-color: var(--bg-color);
   transition-property: all;
   transition-duration: 300ms;
   transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-menu .menu-side .nav-menu li.active > a .nav-icon {
   filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}
.sidebar-menu .menu-side .badge {
   position: absolute;
   right: 0;
   top: 0px;
   background-color: var(--main-color);
   padding-left: 5px;
   padding-right: 5px;
   font-size: 10px;
   font-weight: 500;
   color: var(--text-main);
   border-radius: 50%;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon {
   display: block;
   background-image: url(https://res.cloudinary.com/paaxapvg/image/upload/v1765897527/qj3gyu9acmmibsmt_zypo7q.png);
   background-repeat: no-repeat;
   transition: all .3s ease;
   width: 14px;
   height: 14px;
   background-size: 390px 30px;
}
.dark .sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon {
   background-position-y: -15px !important;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-new-order {
   background-position: 0 0;
   width: 13px;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-mass-order{
   background-position: -13px 0px;
   width: 12px;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-services {
   background-position: -25px 0;
   width: 13px;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-orders {
   background-position: -38px 0px;
   width: 14px;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-subscriptions {
   background-position: -52px 0;
   width: 15px;
   height: 12px;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-drip-feed {
   background-position: -67px 0;
   width: 12px;
   height: 12px;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-refill {
   background-position: -79px 0;
   width: 12px;
   height: 15px;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-add-funds {
   background-position: -105px 0px;
   width: 13px;
   height: 12px;
}
.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-tickets {
   background-position: -118px 0px;
   height: 15px;
   width: 15px;
}

.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-child-panel {
   background-position: -147px 0;
   width: 12px;
   height: 12px;
}

.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-affiliate {
   background-position: -133px 0;
}

.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-giveaway {
   background-position: -160px 0;
   width: 13px;
}

.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-api {
   background-position: -197px 0px;
   width: 13px;
   height: 12px;
}

.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-updates {
   background-position: -173px 0px;
   width: 12px;
}

.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-dashboard {
   background-position: -185px 0;
   width: 12px;
   height: 12px;
}

.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-notifications {
   background-position: -211px 0;
   width: 12px;
}

.sidebar-menu .menu-side .nav-menu li > a .nav-icon .icon.navbar-refund {
   background-position: -99px 1px;
   width: 13px;
}

@media (max-width: 550px) { 
   .sidebar-body .sidebar-menu {
      padding: 0 15px 20px;
   }
   .sidebar-menu .menu-title {
      font-size: 10px;
      margin-bottom: 5px;
   }
}

@media (max-width: 991px) {
   .sidebar {
      z-index: 999;
      margin-right: -240px;
      visibility: hidden;
   }
   .sidebar-open .sidebar {
      margin-right: 0;
      visibility: visible;
   }
   .sidebar-open .main-wrapper::before {
      content: "";
      width: 100vw;
      background: rgba(0, 0, 0, 0.3);
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      z-index: 99;
      transition: all 3s ease;
      z-index: 980;
   }
}

/* 
============ header ================
*/

.page-header {
   height: 70px;
   position: sticky;
   top: 0;
   z-index: 40;
   padding: 0 24px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   background: var(--bg-color);
   border-bottom: 1px solid var(--border-color);
   box-shadow: 0 8px 20px var(--shadow-color);
}
.page-header .header-left {
   display: flex;
   align-items: center;
   gap: 16px;
}
.page-header .header-left .subtitle {
   font-size: 10px;
   color: var(--text-main);
   letter-spacing: 0.2em;
   margin-bottom: 4px;
}
.page-header .header-left .header-title h1 {
   color: var(--text-main);
   font-size: 18px;
   font-weight: bold;
   margin-top: 5px;
}
.page-header .header-right {
   display: flex;
   align-items: center;
   gap: 12px;
}
.page-header .header-right .icon-btn,
.page-header .header-left .icon-btn {
   width: 44px;
   height: 44px;
   border-radius: 12px;
   border: 1px solid var(--border-color);
   background: var(--main-opacity);
   color: var(--text-main);
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s ease;
}
.page-header .header-right .icon-btn:hover,
.page-header .header-left .icon-btn {
   box-shadow: 0 0 5px var(--shadow-color);
}
.page-header .header-right .icon-btn i,
.page-header .header-left .icon-btn i {
   font-size: 22px;
}
.page-header .header-right .notification-btn {
   position: relative;
}
.page-header .header-right .divider {
   width: 1px;
   height: 24px;
   background: var(--border-color);
}
.page-header .header-right .balance-box {
   display: flex;
   align-items: center;
   height: 40px;
   gap: 12px;
   padding: 0 16px 0 6px;
   background: var(--bg-color);
   border: 1px solid var(--border-color);
   border-radius: 16px;
   cursor: pointer;
   transition: all 0.2s ease;
}
.page-header .header-right .balance-box .balance-amount {
   color: var(--text-main);
}
.page-header .header-right .balance-box:hover {
   border-color: var(--main-color);
}
.page-header .header-right .wallet-icon {
   width: 32px;
   height: 32px;
   background: var(--main-opacity);
   color: var(--text-main);
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
}
.page-header .header-right .balance-box span {
   font-size: 9px;
   font-weight: bold;
}
.page-header .header-right .balance-box strong {
   font-size: 14px;
}
.arrow {
   color: #9ca3af;
}
.page-header .header-right .dropdown {
   position: relative;
}
.page-header .header-right .dropdown .dropdown-menu {
   position: absolute;
   top: calc(100% + 8px);
   left: 0;
   width: 160px;
   background: var(--bg-color);
   border-radius: 16px;
   overflow: hidden;
   display: none;
   box-shadow: 0 20px 40px var(--shadow-color);
}
.page-header .header-right .dropdown .dropdown-menu a {
   padding: 12px 16px;
   display: block;
   color: var(--text-main);
   font-size: 13px;
   font-weight: bold;
   text-decoration: none;
}
.page-header .header-right .dropdown .dropdown-menu a:hover {
   background: rgba(37, 99, 235, 0.05);
}
.page-header .header-right .dropdown .dropdown-header {
   padding: 8px 16px;
   font-size: 10px;
   color: var(--text-main);
   font-weight: bold;
   border-bottom: 1px solid var(--border-color);
}
.page-header .header-right .theme-btn {
   width: 44px;
   height: 44px;
   display: flex;
   justify-content: center;
   align-items: center;
   border-radius: 12px;
   background: var(--main-opacity);
   color: var(--main-color);
   border: none;
   cursor: pointer;
   transition: all 0.2s ease;
}
.page-header .header-right .theme-btn:hover {
   background: var(--main-color);
   color: #fff;
}
.page-header .header-right i {
   font-size: 22px;
}
.page-header .header-right .logout-btn {
   color: #fff;
   background: #ff4343;
}
.mobile-only {
   display: none !important;
}
.desktop-only {
   display: block !important;
}
@media (max-width: 991px) {
   .mobile-only {
      display: flex !important;
   }
   .desktop-only {
      display: none !important;
   }
   .hidden-mobile {
      display: none !important;
   }
}
@media (max-width: 500px) {
   .hide-small {
      display: none !important;
   }
}
.hidden {
   display: none !important;
}

.page-content .content {
   padding: 25px;
}
.page-content .content > div {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}
html[lang="ar"] .ti-logout-2{
   display: block !important;
}
html[lang="ar"] .ti-logout{
   display: none !important;
}
.ti-logout-2 {
   display: none;
}
.page-content .page-header .balance-text {
   display: flex;
   flex-direction: row;
   align-items: center;
   gap: 5px;
}
/* 
============ new order ================
*/

/* 
============ stats ================
*/
.main-boxes {
   width: 100%;
}
.main-boxes .stats-grid {
   display: grid;
   grid-template-columns: repeat(1, 1fr);
   gap: 16px;
   margin-bottom: 32px;
}

@media (min-width: 640px) {
   .main-boxes .stats-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}
@media (min-width: 1024px) {
   .main-boxes .stats-grid {
      grid-template-columns: repeat(4, 1fr);
   }
}

.main-boxes .stat-card {
   position: relative;
   padding: 16px;
   background: var(--secondary-color);
   border-radius: 16px;
   border: 1px solid var(--border-color);
   overflow: hidden;
   transition: all 0.4s ease;
}

.main-boxes .stat-card:hover {
   transform: translateY(-4px);
}

.main-boxes .card-bg {
   position: absolute;
   top: -32px;
   left: -32px;
   width: 96px;
   height: 96px;
   border-radius: 50%;
   opacity: 0.15;
   transition: transform 0.7s ease;
}

.main-boxes .stat-card:hover .card-bg {
   transform: scale(1.5);
}

.main-boxes .card-bg.large {
   bottom: -32px;
   right: -32px;
   top: auto;
   left: auto;
   width: 128px;
   height: 128px;
}

.main-boxes .card-content {
   position: relative;
   z-index: 2;
   display: flex;
   flex-direction: column;
   height: 100%;
}
.main-boxes .card-content.white {
   color: var(--text-main);
}

.main-boxes .card-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 8px;
}
.main-boxes .card-label {
   font-size: 12px;
   text-transform: uppercase;
   font-weight: 700;
   color: var(--text-main);
}
.main-boxes .icon-box {
   width: 32px;
   height: 32px;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 14px;
}
.main-boxes .icon-box.primary { 
   background: rgba(59,130,246,.1); 
   color: #3b82f6; 
}
.main-boxes .icon-box.orange  { 
   background: rgba(249,115,22,.1); 
   color: #f97316; 
}
.main-boxes .icon-box.success { 
   background: rgba(34,197,94,.1); 
   color: #22c55e; 
}
.main-boxes .card-value {
   font-size: 22px;
   font-weight: 800;
   color: var(--text-main);
   margin-bottom: 4px;
}
.main-boxes .card-value small {
   font-size: 12px;
}
.main-boxes .card-meta {
   display: flex;
   align-items: center;
   gap: 6px;
   font-size: 9px;
   font-weight: 700;
}
.main-boxes .card-meta.primary { 
   color: #3b82f6; 
}
.main-boxes .card-meta.success { 
   color: #22c55e; 
}
.main-boxes .level-row {
   display: flex;
   align-items: flex-end;
   gap: 8px;
   margin-bottom: 8px;
   }
.main-boxes .level-badge {
   background: var(--main-color);
   color: var(--text-main);
   font-size: 9px;
   padding: 2px 6px;
   border-radius: 6px;
   font-weight: 700;
}
.main-boxes .progress {
   height: 4px;
   background: var(--secondary-color);
   border-radius: 999px;
   overflow: hidden;
}
.main-boxes .progress-bar {
   width: 75%;
   height: 100%;
   background: var(--main-color);
}
.main-boxes .stat-card.balance {
   box-shadow: 0 10px 30px rgba(59,130,246,.25);
}
.main-boxes .icon-btn-sm {
   width: 32px;
   height: 32px;
   border-radius: 12px;
   background: rgba(255,255,255,.1);
   border: none;
   color: var(--text-main);
   cursor: pointer;
}
.main-boxes .icon-btn-sm:hover {
   background: rgba(255,255,255,.2);
}
.main-boxes .balance-row {
   display: flex;
   align-items: baseline;
   gap: 6px;
   margin-bottom: 12px;
}
.balance-hidden {
   filter: blur(6px);
   user-select: none;
}
.main-boxes .balance-row h3 {
   font-size: 22px;
   font-weight: 800;
}
.main-boxes .balance-row span {
   font-size: 12px;
   font-weight: 700;
   opacity: 0.8;
}
.main-boxes .add-balance-btn {
   margin-top: auto;
   display: block;
   text-align: center;
   padding: 6px;
   font-size: 10px;
   font-weight: 700;
   border-radius: 8px;
   color: var(--text-main);
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   text-decoration: none;
}
.main-boxes .add-balance-btn:hover {
   background: rgba(255,255,255,.3);
}
.main-boxes .stat-card.primary .card-bg { 
   background: #3b82f6; 
}
.main-boxes .stat-card.orange  .card-bg { 
   background: #f97316; 
}
.main-boxes .stat-card.success .card-bg { 
   background: #22c55e; 
}
.main-boxes .stat-card.balance .card-bg { 
   background: #ffffff; 
}

/* 
============ filter boxs ================
*/
.filter-row {
   width: 100%;
}
.filter-row .filter-wrapper {
   background-color: var(--secondary-color);
   border: 1px solid var(--border-color);
   border-radius: 24px;
   padding: 20px 30px 20px;
   margin-bottom: 19px;
}
.filter-row .filter-wrapper h4 {
   font-weight: 600;
   color: var(--text-main);
   margin-top: 0;
   margin-bottom: 0;
   display: flex;
   justify-content: space-between;
}
.filter-row .hide-filter {
   background-color: var(--bg-color);
   border: none;
   font-size: 14px;
   font-weight: 500;
   color: var(--text-main);
   border-radius: 10px;
   padding: 5px 12px;
   display: flex;
   align-items: center;
   height: 30px;
   cursor: pointer;
}
.filter-row .hide-filter i {
   margin-inline-end: 3px;
}
.filter-row .filter-list {
   margin: 0;
   padding: 0;
   list-style: none;
   display: flex;
   flex-wrap: wrap;
   max-height: 500px;
   margin-top: 20px;
   transition: max-height 0.3s ease, margin-top 0.3s ease;
   gap: 10px;
}
.filter-row .filter-list.open {
   max-height: 0;
   margin-top: 0;
   overflow: hidden;
}
.filter-row .filter-list li {
   flex: 1 1 calc(100% / 7 - 10px);
   box-sizing: border-box;
}
.filter-row .filter-list li .brand-category {
   padding: 10px 22px;
   background-color: var(--bg-color);
   border: 1px solid var(--border-color);
   border-radius: 12px;
   display: flex;
   width: 100%;
   align-items: center;
   cursor: pointer;
   transition: all 0.3s ease-in-out;
}
.filter-row .filter-list li .brand-category.active {
   background-color: var(--main-color);
   color: var(--text-main);
}
.filter-row .filter-list li .brand-category:hover {
   box-shadow: 0 5px 10px var(--shadow-color);
   transform: translateY(-3px);
}
.filter-row .filter-text {
   font-size: 14px;
   font-weight: 500;
   color: var(--text-main);
}
.filter-row .filter-icon {
   width: 24px;
   height: 24px;
   margin-inline-end: 4px;
   display: flex;
   align-items: center;
}
.filter-row .filter-icon img {
   width: 100%;
   height: 100%;
   object-fit: contain;
}
.filter-row .filter-icon i {
   color: var(--text-main);
}

/* 
============ instructions ================
*/
.instructions {
   margin-top: 20px;
   width: 100%;
   display: flex;
   align-items: start;
   justify-content: center;
   gap: 15px;
}
.instructions > div {
   width: 50%;
   flex: 1;
   background: var(--bg-color);
   border: 1px solid var(--border-color);
   border-radius: 18px;
   padding: 24px;
   box-shadow: 0 10px 30px var(--shadow-color);
}
.order .order-nav {
   margin-bottom: 24px;
}
.order .order-nav-item {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   padding: 12px 22px;
   border-radius: 16px;
   background: linear-gradient(135deg, var(--secondary-color), rgba(0,0,0,0));
   border: 1px solid var(--border-color);
   color: var(--text-main);
   font-size: 14px;
   font-weight: 800;
   box-shadow: 0 10px 30px var(--shadow-color);
}
.order .order-nav-item i {
   font-size: 20px;
   color: var(--main-color);
}
.order .order-nav-item.active {
   border-color: var(--main-color);
   box-shadow: 0 0 0 3px var(--main-opacity), 0 12px 40px var(--shadow-color);
}
.order .order-nav-item::after {
   content: "";
   position: absolute;
   inset: -1px;
   border-radius: inherit;
   background: linear-gradient(120deg, transparent, var(--secondary-color), transparent);
   opacity: 0.5;
   pointer-events: none;
}
.order .order-content {
   display: flex;
   flex-direction: column;
   width: 100%;
   gap: 15px;
}
.order .order-content #fields {
   display: flex;
   flex-direction: column;
   width: 100%;
   gap: 15px;
}
@media (max-width: 992px) {
   .instructions {
      flex-direction: column;
   }
   .instructions > div {
      flex: 0;
      width: 100%;
   }
}

.form-control,
.form-control[readonly],
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container--open .select2-dropdown--below,
.form-control:disabled {
   background-color: var(--bg-body);
   border-color: var(--bg-body);
   color: var(--text-color);
   text-align: right;
}
.instructions label,
.instructions .form-label {
   display: flex;
   font-size: 13px;
   font-weight: 700;
   margin-bottom: 6px;
   color: var(--text-main);
}

.instructions label span {
   font-size: 11px;
   font-weight: 600;
   color: #666;
   margin-inline-start: 6px;
}
.instructions .form-control,
.instructions .form-select {
   height: 45px;
}
.instructions #service_description > div {
   height: auto !important;
}
.instructions .form-control,
.instructions .form-select,
.instructions textarea {
   width: 100%;
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   border-radius: 14px;
   padding: 10px 14px;
   font-size: 13px;
   color: var(--text-main);
   transition: 0.2s ease;
}
.instructions .fields .help-block {
   margin-top: 3px;
   font-size: 12px;
}
.instructions textarea {
   resize: none;
   line-height: 1.8;
   min-height: 120px;
}

.instructions .form-control:focus,
.instructions .form-select:focus,
.instructions textarea:focus {
   outline: none;
   border-color: var(--border-color);
   box-shadow: 0 0 0 1px var(--shadow-color);
}
.instructions input:disabled,
.instructions textarea[readonly] {
   background: var(--secondary-color);
   opacity: 0.8;
}
.instructions .input-group {
   display: flex;
   align-items: center;
}
.instructions .input-group-text {
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   border-inline-end: 0;
   border-end-start-radius: 14px;
   border-start-start-radius: 14px;
   padding: 0 14px;
   color: #777;
   height: 40px;
   display: flex;
   justify-content: center;
   align-items: center;
}
.instructions .input-group .search {
   border-start-end-radius: 14px;
   border-end-end-radius: 14px;
   width: 100%;
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   padding: 10px 14px;
   font-size: 13px;
   color: var(--text-main);
   transition: 0.2s ease;
   height: 40px;

}
.instructions .form-group span {
   display: block;
   font-size: 15px;
   color: #777;
   margin-top: 4px;
}
.instructions .main-btn {
   background: var(--main-color);
   color: var(--text-main);
   font-weight: 800;
   font-size: 14px;
   padding: 10px 32px;
   border-radius: 14px;
   cursor: pointer;
   transition: 0.25s ease;
   margin-top: 10px;
   border: 0;
   transition: all 0.2s ease-in-out;
}
.instructions .main-btn:hover {
   opacity: 0.9;
}

.instructions .order-info {
   background: var(--bg-color);
   border: 1px solid var(--border-color);
   border-radius: 20px;
   padding: 24px 26px;
   box-shadow: 0 12px 35px var(--shadow-color);
   font-size: 14px;
   line-height: 1.9;
   color: var(--text-main);
}
.instructions .order-info h5 {
   font-size: 15px;
   font-weight: 900;
   margin: 8px 0 12px;
}
.instructions .order-info p {
   margin: 0;
   padding-inline-start: 14px;
   position: relative;
   color: var(--text-main);
}
.instructions .order-info p::before {
   content: "•";
   position: absolute;
   inset-inline-start: 0;
   top: 0;
   color: var(--main-color);
   font-weight: bold;
}
.instructions .order-info p:has(🔥),
.instructions .order-info p:has(💧),
.instructions .order-info p:has(♻),
.instructions .order-info p:has(⛔) {
   padding-inline-start: 0;
}
.instructions .order-info p:has(🔥)::before,
.instructions .order-info p:has(💧)::before,
.instructions .order-info p:has(♻)::before,
.instructions .order-info p:has(⛔)::before {
   display: none;
}
.instructions .order-info .brief-link {
   color: var(--main-color);
   font-weight: 800;
   text-decoration: none;
}
.instructions .order-info .brief-link:hover {
   text-decoration: underline;
}
.instructions .order-info::before {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: inherit;
   pointer-events: none;
   background: linear-gradient(135deg, var(--main-opacity), transparent 40%);
   opacity: 0.4;
}
@media (max-width: 768px) {
   .instructions .order-info {
      padding: 20px;
      font-size: 13px;
   }
}

/* 
============ massorder ================
*/
.massorder {
   width: 100%;
}
.massorder .page-title {
   display: flex;
   align-items: center;
   gap: 10px;
   font-size: 20px;
   font-weight: 800;
   margin-bottom: 20px;
}
.massorder .mode-switch {
   display: flex;
   gap: 12px;
   margin-bottom: 20px;
}
.massorder .mode-item {
   border: 1px solid var(--border-color);
   border-radius: 14px;
   padding: 8px 20px;
   cursor: pointer;
   background: var(--secondary-color);
   box-shadow: 0 5px 15px var(--shadow-color);
}
.massorder .mode-item input {
   display: none;
}
.massorder .mode-item span {
   font-weight: 700;
}
.mode-item input:checked + span {
   color: var(--main-color);
}
.massorder .massorder-card {
   background: var(--bg-color);
   border: 1px solid var(--border-color);
   border-radius: 18px;
   padding: 24px;
   box-shadow: 0 10px 30px var(--shadow-color);
}
.massorder label {
   display: block;
   font-weight: 700;
   font-size: 14px;
   margin-bottom: 10px;
}
.massorder .form-control {
   width: 100%;
   border: 1px solid var(--border-color);
   border-radius: 14px;
   padding: 10px 14px;
   font-size: 13px;
}
.massorder .form-control:focus {
   outline: none;
   border-color: var(--main-color);
   box-shadow: 0 0 0 3px var(--main-opacity);
}
.massorder textarea {
   resize: none;
}
.massorder .help-text {
   display: block;
   margin-top: 8px;
   font-size: 12px;
   color: #666;
}
.massorder .checkbox {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-top: 16px;
   font-weight: 700;
}
.massorder .submit-btn {
   margin-top: 24px;
   width: 100%;
   background: var(--main-color);
   color: var(--text-main);
   border: none;
   padding: 12px;
   border-radius: 16px;
   font-weight: 900;
   cursor: pointer;
   transition: 0.3s;
}
.massorder .submit-btn:hover {
   opacity: 0.9;
}
.massorder .mt {
   margin-top: 10px;
}

/* 
============ orders ================
*/
.orders {
   align-items: start !important;
}
.orders .search {
   width: 500px;
   margin-bottom: 16px;
}
.orders .search > div {
   display: flex;
   align-items: center;
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 6px 20px var(--shadow-color);
}

.orders .search > div .form-control {
   border: none;
   background: transparent;
   padding: 12px 14px;
   font-size: 13px;
   color: var(--text-main);
}

.orders .search > div .form-control::placeholder {
   color: #888;
}

.orders .search > div .form-control:focus {
   outline: none;
   box-shadow: none;
}

.orders .search > div .input-group-btn button {
   background: var(--secondary-color);
   border: none;
   width: 44px;
   height: 44px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #fff;
   cursor: pointer;
   transition: all 0.2s ease;
}
.orders .search > div .input-group-btn button:hover {
   opacity: 0.9;
}
.orders .nav.nav-pills {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   margin-bottom: 20px;
}
.orders .nav.nav-pills li {
   list-style: none;
}
.orders .nav.nav-pills li a {
   display: flex;
   align-items: center;
   height: 40px;
   gap: 8px;
   padding: 10px 18px;
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   border-radius: 999px;
   font-size: 13px;
   font-weight: 700;
   color: var(--text-main);
   transition: all 0.25s ease;
}

.orders .nav.nav-pills li a:hover {
   background: var(--main-opacity);
   border-color: var(--main-color);
}
.orders .nav.nav-pills li.active a {
   background: var(--main-color);
   color: #fff;
   border-color: var(--main-color);
   box-shadow: 0 6px 20px var(--shadow-color);
}
.orders .pills-icon {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background: currentColor;
   opacity: 0.7;
}
.orders .nav.nav-pills li.active .pills-icon {
   opacity: 1;
}

@media (max-width: 550px) {
   .orders .search {
      width: 100%;
   }
}

/* 
============ orders table ================
*/
.orders .table-wrapper {
   width: 100%;
   overflow-x: auto;
   background: var(--bg-color);
   border: 1px solid var(--border-color);
   border-radius: 18px;
   box-shadow: 0 10px 30px var(--shadow-color);
}
.orders .table-wrapper table {
   width: 100%;
   border-collapse: separate;
   border-spacing: 0;
   font-size: 13px;
   color: var(--text-main);
}
.orders .table-wrapper thead th {
   background: var(--secondary-color);
   border-bottom: 1px solid var(--border-color);
   border-inline-end: 1px dashed var(--border-color);
   padding: 0;
   white-space: nowrap;
   font-weight: 800;
}
.orders .table-wrapper tbody td {
   padding: 14px 12px;
   border-bottom: 1px solid var(--border-color);
   border-inline-end: 1px dashed var(--border-color);
   vertical-align: middle;
   color: var(--text-main);
}
.orders .table-wrapper .th-head {
   padding: 14px 12px;
   text-align: start;
}
.orders .table-wrapper .th-head-content {
   font-size: 12px;
   font-weight: 800;
   letter-spacing: .03em;
   color: var(--text-main);
}
.orders .table-wrapper tbody tr {
   transition: background 0.2s ease;
}
.orders .table-wrapper tbody tr:hover {
   background: var(--secondary-color);
}
.orders .table-wrapper tbody tr:last-child td {
   border-bottom: none;
}
.orders .table-wrapper .td-id-copy-wrapper {
   display: flex;
   align-items: center;
   gap: 8px;
}
.orders .table-wrapper .td-id-copy-wrapper .id-r {
   display: flex;
   align-items: center;
   gap: 6px;
}
.orders .table-wrapper .btn-copy {
   background: var(--main-color);
   border: none;
   border-radius: 8px;
   padding: 6px 10px;
   color: var(--text-main);
   font-size: 12px;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 6px;
   transition: opacity .2s ease;
   line-height: 0;
}
.orders .table-wrapper .btn-search{
   background: var(--main-color);
   font-size: 12px;
   color: var(--text-main);
   padding: 6px 10px;
   border-radius: 8px;
   border: none;
}
.orders .table-wrapper .btn-search:hover{
   opacity: .9;
   text-decoration: underline;
}
.orders .table-wrapper .btn-copy:hover {
   opacity: .9;
}
.orders .table-wrapper .custom-checkbox {
   width: 16px;
   height: 16px;
   border-radius: 4px;
   border: 1px solid var(--border-color);
   background: var(--bg-color);
   cursor: pointer;
   position: relative;
}
.orders .table-wrapper .order-checkbox,
.orders .table-wrapper .select-all-checkbox {
   display: none;
}
.orders .table-wrapper .order-checkbox:checked + .custom-checkbox,
.orders .table-wrapper .select-all-checkbox:checked + .custom-checkbox {
   background: var(--main-color);
   border-color: var(--main-color);
}
.orders .table-wrapper .order-checkbox:checked + .custom-checkbox::after,
.select-all-checkbox:checked + .custom-checkbox::after {
   content: "✓";
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 11px;
   color: var(--text-main);
}
.orders .table-wrapper .btn-link {
   color: var(--main-color);
   font-weight: 700;
   text-decoration: none;
   max-width: 220px;
   text-overflow: ellipsis;
   white-space: nowrap;
   overflow: clip;
   direction: ltr;
}
.orders .table-wrapper .btn-link:hover {
   text-decoration: underline;
}
.orders .table-wrapper .service-name p {
   margin: 0;
   font-size: 12px;
   line-height: 1.6;
   color: var(--text-main);
   min-width: 250px;
   max-width: 400px;
}
.orders .table-wrapper .service-name strong {
   color: var(--main-color);
}
.orders .table-wrapper .status-badge {
   padding: 6px 14px;
   border-radius: 999px;
   font-size: 11px;
   font-weight: 800;
   display: inline-flex;
   align-items: center;
   white-space: nowrap;
}
.orders .table-wrapper .status-badge i {
   font-size: 16px;
   margin-inline-end: 10px;
}
.orders .table-wrapper .badge-complete {
   background: rgba(34,197,94,.15);
   color: #22c55e;
}
.orders .table-wrapper .badge-pending {
   background: rgba(245,158,11,.15);
   color: #f59e0b;
}
.orders .table-wrapper .badge-processing {
   background: rgba(59,130,246,.15);
   color: #3b82f6;
}
.orders .table-wrapper .badge-partial {
   background: rgba(168,85,247,.15);
   color: #a855f7;
}
.orders .table-wrapper .badge-canceled {
   background: rgba(239,68,68,.15);
   color: #ef4444;
}
.orders .table-wrapper .btn.copied {
   background: #22c55e !important;
}
.orders .table-wrapper .copy-selected {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 6px 12px;
   border-radius: 10px;
   border: 1px solid var(--border-color);
   background: var(--secondary-color);
   color: var(--text-main);
   font-size: 12px;
   font-weight: 800;
   cursor: pointer;
   transition: all 0.25s ease;
   opacity: 0;
   pointer-events: none;
}
.orders .table-wrapper .copy-selected:not(:disabled) {
   opacity: 1;
   pointer-events: auto;
}
.orders .table-wrapper .copy-selected:hover {
   background: var(--main-color);
   border-color: var(--main-color);
   color: #fff;
   box-shadow: 0 6px 20px var(--shadow-color);
}
.orders .table-wrapper .copy-selected:disabled {
   opacity: 0;
   pointer-events: none;
}
.orders .table-wrapper .copy-selected i {
   font-size: 14px;
}
.orders .table-wrapper .order-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   align-items: center;
}
.orders .table-wrapper .order-actions .btn {
   font-size: 12px;
   padding: 6px 10px;
   border-radius: 10px;
   font-weight: 600;
   line-height: 1;
   transition: 0.25s ease;
   border: none;
}
.orders .table-wrapper .order-actions .btn-primary {
   background: var(--main-color);
   color: var(--text-main);
}
.orders .table-wrapper .order-actions .btn-primary:hover {
   opacity: 0.9;
   transform: translateY(-1px);
}
.orders .table-wrapper .order-actions .btn-default {
   background: var(--secondary-color);
   color: var(--text-main);
}

.orders .table-wrapper .order-actions .btn.disabled,
.orders .table-wrapper .order-actions .btn[disabled] {
   background: #f1f1f1;
   color: #999;
   cursor: not-allowed;
   box-shadow: none;
   transform: none;
}
.orders .table-wrapper .order-actions {
   font-size: 12px;
   font-weight: 700;
   color: var(--main-color);
}

.orders .table-wrapper .order-actions:has(:not(a)) {
   color: #0d6efd;
}
.orders .table-wrapper .order-actions span,
.orders .table-wrapper .order-actions strong {
   color: #ff9800;
}

.orders .table-wrapper .order-actions [data-toggle="tooltip"] {
   cursor: help;
}

@media (max-width: 768px) {
   .orders table {
      display: flex;
      flex-direction: column;
      overflow: hidden;
   }
   .orders .table-wrapper {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
   }
   .orders .table-wrapper thead tr {
      width: 100%;
      display: block;
      border-radius: 20px
   }
   .orders .table-wrapper thead tr th:first-child {
      display: block;
      margin-bottom: 10px;
      border: none;
   }
   .orders .table-wrapper thead tr th{
      display: none;
   }
   .orders .table-wrapper tbody {
      display: flex;
      flex-direction: column;
      gap: 16px;
   }
   .orders .table-wrapper tbody tr {
      display: flex;
      flex-direction: column;
      gap: 10px;
      background: var(--secondary-color);
      border-radius: 20px;
      padding: 16px;
   }
   .orders .table-wrapper tbody td {
      display: flex;
      justify-content: start;
      align-items: center;
      padding: 10px 14px;
      background: rgba(255,255,255,.04);
      border-radius: 12px;
      border: none;
      font-size: 13px;
   }
   .orders .table-wrapper tbody td::before {
      content: attr(data-head);
      font-weight: 800;
      color: #9ca3af;
      margin-inline-end: 12px;
      white-space: nowrap;
      min-width: 60px;
   }
   .orders .table-wrapper .td-id-copy-wrapper {
      justify-content: start;
      width: 100%;
   }
   .orders .table-wrapper .service-name p {
      font-size: 12px;
      line-height: 1.7;
      color: #e5e7eb;
      min-width: auto;
      max-width: 100%;
   }
   .orders .table-wrapper .status-badge {
      font-size: 13px;
   }
   .orders .table-wrapper .order-actions {
      justify-content: flex-start;
      gap: 8px;
   }
   .orders .table-wrapper .order-actions .btn {
      font-size: 11px;
      padding: 6px 8px;
   }
   .orders .table-wrapper .btn-link {
      max-width: 100%;
      white-space: pre;
   }
}

/* 
============ services ================
*/
.services .table-wrapper {
   width: 100%;
}
.services .table-wrapper table {
   width: 100%;
   border-collapse: separate;
   border-spacing: 0 12px;
   font-size: 13px;
   color: var(--text-main);
}

.services .table-wrapper tbody tr.service-row {
   background: var(--secondary-color);
   border-radius: 16px;
   box-shadow: 0 8px 24px var(--shadow-color);
   transition: transform .2s ease, box-shadow .2s ease;
}

.services .table-wrapper  tbody tr.service-row:hover {
   transform: translateY(-2px);
   box-shadow: 0 12px 32px var(--shadow-color);
}
.services .table-wrapper .category-name {
   background: var(--main-color);
   color: var(--text-main);
   font-size: 14px;
   font-weight: 900;
   border-radius: 18px;
}
.services .table-wrapper .category-box {
   padding: 14px 20px;
}
.services .table-wrapper .category-inner {
   display: flex;
   align-items: center;
   gap: 10px;
}
.services .table-wrapper .category-inner i,
.services .table-wrapper .category-inner span {
   font-size: 18px;
}
.services .table-wrapper .service-row > td {
   padding: 16px;
   vertical-align: top;
}

.services .table-wrapper .service-label {
   font-size: 11px;
   font-weight: 800;
   color: var(--text-main);
   margin-bottom: 6px;
}
.services .table-wrapper .service-value {
   font-size: 13px;
   font-weight: 600;
   color: var(--text-main);
}
.services .table-wrapper .btn-copy {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 6px 10px;
   border-radius: 10px;
   background: var(--main-color);
   color: var(--text-main);
   font-weight: 900;
   cursor: pointer;
   position: relative;
   transition: all .2s ease;
}
.services .table-wrapper .btn-copy:hover {
   opacity: .9;
}
.services .table-wrapper .btn-copy svg {
   fill: var(--text-main);
}

.services .table-wrapper .btn-copy.copied {
   background: #22c55e !important;
}
.services .table-wrapper .td-badge {
   display: inline-flex;
   align-items: center;
   padding: 6px 12px;
   border-radius: 999px;
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   font-size: 12px;
   font-weight: 800;
}
.services .table-wrapper .actions-item {
   display: flex;
   gap: 8px;
}

.services .table-wrapper .btn-order-now {
   background: var(--main-color);
   color: var(--text-main);
   width: 36px;
   height: 36px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 10px;
   font-size: 15px;
}
.services .table-wrapper .btn-fav {
   width: 36px;
   height: 36px;
   border-radius: 10px;
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
}
.btn-fav.favorite-active {
   color: var(--main-color);
}

.services .table-wrapper .btn-details {
   background: transparent;
   border: 1px solid var(--border-color);
   border-radius: 10px;
   padding: 8px 14px;
   font-weight: 600;
   color: var(--main-color);
   cursor: pointer;
}
.services .table-wrapper .w-100 {
   width: 100px;
}
.services .table-wrapper .w-170 {
   width: 170px;
}

@media (max-width: 768px) {
   .services .table-wrapper table,
   .services .table-wrapper tbody,
   .services .table-wrapper tr,
   .services .table-wrapper td {
      display: block;
      width: 100%;
   }
   .services .table-wrapper tr.category-row {
      background: none;
   }
   .services .table-wrapper tr.category-row td {
      display: flex !important;
   }
   .services .table-wrapper tr{
      margin-bottom: 16px;
   }
   .services .table-wrapper td.serv-name {
      padding: 12px 16px;
      border-bottom: 1px dashed var(--border-color);
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
   }
   .services .table-wrapper  td.serv-name:last-child {
      border-bottom: none;
   }
   .services .table-wrapper .service-label {
      font-size: 12px;
      padding-inline-end: 20px;
   }
}
.services-filter {
   display: flex;
   gap: 12px;
   align-items: center;
   width: 100%;
   margin-bottom: 10px;
}
.services-filter .filter-button {
   position: relative;
}
.services-filter .filter-button .dropdown-toggle {
   width: 100%;
   background: var(--main-color);
   color: var(--text-main);
   border: none;
   padding: 12px 16px;
   border-radius: 16px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
   cursor: pointer;
   transition: all .25s ease;
}
.services-filter .filter-button .dropdown-toggle:hover {
   transform: translateY(-1px);
}
.services-filter .filter-button .dropdown-toggle i {
   font-size: 18px;
}
.services-filter .filter-button.open .dropdown-menu {
   display: block !important;
}
.services-filter .dropdown-menu {
   position: absolute;
   top: calc(100% + 10px);
   inset-inline-start: 0;
   min-width: 240px;
   max-height: 400px;
   min-height: 400px;
   background: var(--bg-color);
   border: 1px solid var(--border-color);
   border-radius: 16px;
   box-shadow: 0 20px 60px var(--shadow-color);
   padding: 8px;
   display: none;
   z-index: 20;
   overflow: auto;
}
.services-filter .dropdown.show .dropdown-menu {
   display: block !important;
   animation: dropdownFade .25s ease;
}
.services-filter .dropdown-item {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 12px;
   border-radius: 12px;
   color: var(--text-main);
   font-size: 14px;
   transition: background .2s ease;
}
.services-filter .dropdown-item:hover {
   background: var(--main-color);
}
@keyframes dropdownFade {
   from {
      opacity: 0;
      transform: translateY(-6px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}
.services-filter .service-search {
   display: flex;
   align-items: center;
   gap: 6px;
   width: 100%;
   border-radius: 18px;
   border: 1px solid var(--border-color);
   background: var(--bg-color);
   box-shadow: 0 20px 60px var(--shadow-color);
   padding: 6px 10px;
}
.services-filter .service-search input {
   flex: 1;
   border: none;
   background: transparent;
   color: var(--text-main);
   font-size: 14px;
   padding: 12px;
}
.services-filter .service-search input::placeholder {
   color: var(--text-muted);
}
.services-filter .service-search input:focus {
   outline: none;
}
.services-filter .service-search button {
   background: var(--main-color);
   border: none;
   color: var(--text-main);
   padding: 10px 14px;
   border-radius: 14px;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all .25s ease;
}
.services-filter .service-search button:hover {
   transform: scale(1.05);
}
.services-filter .service-search i {
   font-size: 18px;
}
@media (max-width: 768px) {
   .services-filter {
      flex-direction: column;
      gap: 10px;
   }
   .services-filter .filter-button {
      width: 100%;
   }
   .services-filter .filter-button .dropdown-toggle {
      justify-content: center;
   }
}
.services-filter .dropdown.currencies .dropdown-toggle {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 5px 14px;
   border-radius: 14px;
   border: 1px solid var(--border-color);
   background: var(--secondary-color);
   color: var(--text-main);
   font-weight: 800;
   font-size: 13px;
   cursor: pointer;
   transition: all 0.25s ease;
   box-shadow: 0 10px 25px var(--shadow-color);
}
.services-filter .dropdown.currencies .dropdown-toggle .currency-icon {
   width: 30px;
   height: 30px;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(255,255,255,.05);
   border: 1px solid var(--border-color);
   color: var(--main-color);
   font-size: 18px;
}
.services-filter .dropdown.currencies .dropdown-toggle .currency-text {
   display: flex;
   align-items: center;
   justify-content: center;
   white-space: nowrap;
}
.services-filter .dropdown.currencies .dropdown-toggle .currency-arrow {
   margin-left: auto;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-main);
   opacity: .8;
   transition: transform .25s ease;
}
.services-filter .dropdown.currencies .dropdown-toggle:hover {
   background: var(--main-color);
   border-color: var(--main-color);
   color: #fff;
   transform: translateY(-2px);
}
.services-filter .dropdown.currencies .dropdown-toggle:hover .currency-icon {
   background: rgba(255,255,255,.15);
   border-color: rgba(255,255,255,.25);
   color: #fff;
}
.services-filter .dropdown.currencies .dropdown-toggle:hover .currency-arrow {
   transform: rotate(180deg);
   opacity: 1;
}
@media (max-width: 768px) {
   .services-filter .dropdown.currencies .dropdown-toggle {
      width: 100%;
      justify-content: space-between;
   }
}
/* 
============ Details Modal ==========
*/
/* .modal-overlay {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.4);
   backdrop-filter: blur(2px);
   -webkit-backdrop-filter: blur(2px);
   display: none;
   align-items: center;
   justify-content: center;
   z-index: 9999;
}
.modal-overlay.active {
   display: flex;
}
.modal-box {
   background: var(--bg-color);
   color: var(--text-main);
   width: min(92%, 420px);
   border-radius: 20px;
   padding: 20px 22px;
   box-shadow: 0 20px 60px var(--shadow-color);
   position: relative;
   animation: modalIn .25s ease;
}
.modal-title {
   margin: 0 0 12px;
   font-size: 16px;
   font-weight: 900;
}
.modal-content {
   font-size: 13px;
   line-height: 1.8;
   color: var(--text-main);
}
.modal-close {
   position: absolute;
   top: 10px;
   inset-inline-end: 12px;
   background: none;
   border: none;
   font-size: 26px;
   cursor: pointer;
   color: var(--text-main);
}
@keyframes modalIn {
   from {
      transform: scale(.9);
      opacity: 0;
   }
   to {
      transform: scale(1);
      opacity: 1;
   }
} */


/* 
========= alert ============
*/
.alert.alert-danger {
   position: relative;
   background: linear-gradient(
      135deg,
      #ff4d4f,
      #ff7875
   );
   color: #fff;
   border: none;
   border-radius: 16px;
   padding: 14px 46px 14px 16px;
   font-size: 14px;
   line-height: 1.6;
   box-shadow: 0 16px 40px rgba(255, 77, 79, 0.35);
   display: flex;
   align-items: start;
   animation: alertFadeIn 0.35s ease;
   align-items: center;
}
.alert.alert-danger::before {
   content: "⚠";
   font-size: 18px;
   margin-inline-end: 10px;
}

.alert.alert-danger .close {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   right: 14px;
   opacity: 0.9;
   font-size: 22px;
   text-shadow: none;
   background: transparent;
   border: none;
   color: #fff;
   outline: none;
   cursor: pointer;
   transition: opacity 0.2s ease, transform 0.2s ease;
}
.alert.alert-danger .close:hover {
   opacity: 1;
   transform: translateY(-50%) scale(1.1);
}
.alert.alert-success {
   position: relative;
   background: linear-gradient(
      135deg,
      #22c55e,
      #4ade80
   );
   color: #fff;
   border: none;
   border-radius: 16px;
   padding: 14px 46px 14px 16px;
   font-size: 14px;
   line-height: 1.6;
   box-shadow: 0 16px 40px rgba(34, 197, 94, 0.35);
   display: flex;
   align-items: start;
   animation: alertFadeIn 0.35s ease;
   align-items: center;
}
.alert.alert-success::before {
   content: "✅";
   font-size: 18px;
   margin-inline-end: 10px;
}
.alert.alert-success .close {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   right: 14px;
   opacity: 0.9;
   font-size: 22px;
   text-shadow: none;
   background: transparent;
   border: none;
   color: #fff;
   outline: none;
   cursor: pointer;
   transition: opacity 0.2s ease, transform 0.2s ease;
}
.alert.alert-success .close:hover {
   opacity: 1;
   transform: translateY(-50%) scale(1.1);
}
.alert .alert-content {
   display: flex;
   align-items: start;
   gap: 2px;
   flex: 1;
   flex-direction: column;
}

@keyframes alertFadeIn {
   from {
      opacity: 0;
      transform: translateY(-6px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@media (max-width: 576px) {
   .alert.alert-danger {
      font-size: 13px;
      padding: 12px 42px 12px 14px;
   }
   .alert.alert-success {
      font-size: 13px;
      padding: 12px 42px 12px 14px;
   }
}

/* 
============ addfunds ================
*/
.addfunds .addfunds-method ,
.addfunds .addfunds-lists {
   width: 100%;
   max-width: 1200px;
   margin: auto;
   margin-bottom: 20px;
}
.addfunds .addfunds-method .card {
   background: var(--bg-color);
   border-radius: 18px;
   padding: 24px;
   box-shadow: 0 20px 60px var(--shadow-color);
   border: 1px solid var(--border-color);
   width: 100%;
}
.addfunds .addfunds-method .form {
   display: flex;
   flex-direction: column;
   gap: 18px;
}
.addfunds .addfunds-method .form .form-group {
   display: flex;
   flex-direction: column;
   gap: 6px;
}
.addfunds .addfunds-method .form .control-label {
   font-size: 13px;
   font-weight: 600;
   color: var(--text-main);
}
.addfunds .addfunds-method .form .form-control {
   height: 44px;
   border-radius: 12px;
   border: 1px solid var(--border-color);
   background: var(--bg-color);
   color: var(--text-main);
   padding: 10px 14px;
   font-size: 14px;
   transition: border 0.2s ease, box-shadow 0.2s ease;
}
.addfunds .addfunds-method .form .form-control:focus {
   outline: none;
   border-color: var(--main-color);
   box-shadow: 0 0 0 4px var(--main-opacity);
}
.addfunds .addfunds-method .form .btn-pay {
   margin-top: 10px;
   height: 46px;
   border-radius: 14px;
   font-size: 14px;
   font-weight: 600;
   background: var(--main-color);
   border: none;
   box-shadow: 0 12px 30px var(--shadow-color);
   cursor: pointer;
   transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.addfunds .addfunds-method .form button:hover {
   transform: translateY(-1px);
   box-shadow: 0 18px 40px var(--shadow-color);
}
.addfunds .addfunds-lists {
   width: 100%;
   overflow-x: auto;
   background: var(--bg-color);
   border: 1px solid var(--border-color);
   border-radius: 18px;
   box-shadow: 0 10px 30px var(--shadow-color);
   padding: 10px;
}
.addfunds .addfunds-lists::-webkit-scrollbar {
   height: 6px;
}
.addfunds .addfunds-lists::-webkit-scrollbar-thumb {
   background: var(--border-color);
   border-radius: 6px;
}
.addfunds .addfunds-lists::-webkit-scrollbar-track {
   background: transparent;
}
.addfunds .addfunds-lists table {
   width: 100%;
   min-width: 360px;
   border-collapse: separate;
   border-spacing: 0 10px;
}
.addfunds .addfunds-lists thead {
   background: var(--main-color);
}
.addfunds .addfunds-lists thead th {
   background: var(--main-color);
   color: #fff;
   padding: 12px 16px;
   font-size: 12px;
   font-weight: 700;
   border-bottom: none;
}

.addfunds .addfunds-lists .addfunds-row {
   background: var(--bg-color);
   box-shadow: 0 10px 30px var(--shadow-color);
   border-radius: 14px;
   transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.addfunds .addfunds-lists .addfunds-row:hover {
   transform: translateY(-1px);
   box-shadow: 0 16px 40px var(--shadow-color);
}
.addfunds .addfunds-lists  .addfunds-row td {
   padding: 14px 16px;
   font-size: 13px;
   color: var(--text-main);
   border: none;
   vertical-align: middle;
   white-space: nowrap;
}

.addfunds .addfunds-lists .addfunds-row .addfunds-amount {
   font-weight: 700;
   color: var(--main-color);
}

.addfunds .addfunds-lists .addfunds-row .addfunds-invoice a {
   font-size: 13px;
   font-weight: 600;
   color: var(--main-color);
   text-decoration: none;
   transition: opacity 0.2s ease;
}
.addfunds .addfunds-lists .addfunds-row .addfunds-invoice a:hover {
   opacity: 0.7;
}

.addfunds .addfunds-lists .addfunds-row .addfunds-date {
   font-size: 12px;
   opacity: 0.85;
}

.addfunds .addfunds-lists .addfunds-row .addfunds-empty {
   padding: 30px;
   text-align: center;
   font-size: 14px;
   color: #888;
}
/* 
============ instruction ================
*/
.addfunds .instruction > label.control-label {
   display: block;
   font-size: 15px;
   font-weight: 800;
   margin-bottom: 16px;
   color: var(--text-main);
}
.addfunds .instruction .panel-body {
   background: transparent;
   border-radius: 14px;
   text-align: center;
   line-height: 1.8;
   font-size: 14px;
}
.addfunds .instruction img {
   margin: 10px auto 16px;
   display: block;
}
.addfunds .instruction font[color="#008000"] {
   color: #16a34a;
   font-weight: 700;
}
.addfunds .instruction font[color="#ff0000"] {
   color: #dc2626;
   font-weight: 700;
}
.addfunds .instruction font[color="#ff9c00"] {
   color: #f59e0b;
   font-weight: 600;
}
.addfunds .instruction hr {
   border: none;
   height: 1px;
   background: var(--border-color);
   margin: 20px 0;
}
.addfunds #storenumbers > div {
   display: flex;
   justify-content: center;
}
.addfunds #storenumbers .input-group {
   background: #22c55e;
   border-radius: 12px;
   box-shadow: 0 8px 20px var(--shadow-color);
   overflow: hidden;
   display: flex;
   justify-content: center;
   align-items: center;
}

.addfunds #storenumbers .badge {
   background: #22c55e;
   color: #fff;
   font-size: 16px;
   padding: 0 14px;
   border-radius: 0 12px 12px 0;
}
.addfunds #storenumbers .btn {
   background: #22c55e;
   border-radius: 12px 0 0 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-inline-end: 10px;
}
.addfunds #storenumbers .btn:hover {
   background: #16a34a;
}
.addfunds .instruction form {
   margin-top: 20px;
   text-align: right;
}
.addfunds .instruction .form-group {
   margin-bottom: 14px;
}
.addfunds .instruction .form-group label {
   font-size: 13px;
   font-weight: 600;
   margin-bottom: 6px;
   display: block;
}
.addfunds .instruction .form-control {
   border-radius: 12px;
   border: 1px solid var(--border-color);
   padding: 10px 14px;
   font-size: 14px;
   width: 100%;
   transition: all 0.2s ease;
}
.addfunds .instruction .form-control:focus {
   border-color: var(--main-color);
   box-shadow: 0 0 0 3px var(--main-opacity);
   outline: none;
}
.addfunds #payButton {
   background: var(--main-color);
   margin-top: 0 !important;
   width: 100%;
   border: none;
   border-radius: 14px;
   padding: 12px;
   font-size: 15px;
   font-weight: 700;
   color: var(--text-main);
   box-shadow: 0 10px 25px var(--shadow-color);
   transition: all 0.2s ease;
}
.addfunds #payButton:hover {
   transform: translateY(-1px);
   opacity: 0.95;
}
.addfunds .instruction a {
   color: var(--main-color);
   font-weight: 600;
   text-decoration: none;
}
.addfunds .instruction a:hover {
   text-decoration: underline;
}
@media (max-width: 576px) {
   .addfunds .instruction {
      padding: 14px;
   }

   .addfunds .instruction .panel-body {
      padding: 14px;
      font-size: 13px;
   }
   .addfunds #storenumbers .badge {
      font-size: 14px;
   }
}

/* 
====== api ======
*/
.api {
   padding: 30px 15px;
   display: flex;
   justify-content: center;
   direction: ltr;
}
.api .card {
   width: 100%;
   max-width: 900px;
   background: var(--bg-color);
   border-radius: 20px;
   padding: 24px;
   box-shadow: 0 20px 60px var(--shadow-color);
   border: 1px solid var(--border-color);
}
.api .card a {
   color: var(--main-color);
   font-weight: 600;
   text-decoration: none;
}
.api .card a:hover {
   text-decoration: underline;
}
.api .title {
   font-size: 24px;
   font-weight: 900;
   text-align: center;
   margin-bottom: 24px;
   color: var(--text-main);
}
.api .method-title {
   margin: 28px 0 12px;
   font-size: 18px;
   font-weight: 800;
   color: var(--main-color);
}
.api table {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 20px;
   font-size: 14px;
}
.api table thead {
   background: var(--main-color);
   color: var(--text-main);
}
.api table th,
.api table td {
   padding: 12px 14px;
   border-bottom: 1px solid var(--border-color);
   vertical-align: middle;
}
.api table th {
   font-weight: 700;
   text-align: left;
}
.api table tbody tr:hover {
   background: var(--main-opacity);
}
.api .select-wrapper {
   margin: 10px 0 20px;
}
.api .select {
   width: 100%;
   padding: 10px 14px;
   border-radius: 12px;
   border: 1px solid var(--border-color);
   background: var(--bg-color);
   color: var(--text-main);
   font-size: 14px;
}
.api .select:focus {
   outline: none;
   border-color: var(--main-color);
   box-shadow: 0 0 0 3px var(--main-opacity);
}
.api .example {
   margin-top: 12px;
}
.api .example pre {
   background: #0f172a;
   color: #e5e7eb;
   border-radius: 14px;
   padding: 16px;
   font-size: 13px;
   overflow-x: auto;
   margin-top: 8px;
}
.api .button {
   display: inline-block;
   margin-top: 20px;
   padding: 12px 20px;
   border-radius: 14px;
   background: var(--main-color);
   color: var(--text-main) !important;
   font-weight: 700;
   text-decoration: none;
   transition: 0.2s ease;
}
.api .button:hover {
   opacity: 0.9;
   transform: translateY(-1px);
}

@media (max-width: 576px) {
   .api .card {
      padding: 16px;
   }

   .api .title {
      font-size: 20px;
   }

   .api .method-title {
      font-size: 16px;
   }
}

/* 
======== tickets ========
*/
.tickets {
   padding: 0 15px;
   align-items: start !important;
}

.tickets .card {
   background: var(--bg-color);
   border-radius: 20px;
   padding: 24px;
   margin-bottom: 20px;
   border: 1px solid var(--border-color);
   box-shadow: 0 20px 60px var(--shadow-color);
   width: 100%;
}
.tickets .card form,
.tickets .card .fields {
   display: flex;
   flex-direction: column;
   gap: 16px;
}
.tickets .card .form-group {
   display: flex;
   flex-direction: column;
   gap: 6px;
}
.tickets .card .form-group label {
   font-size: 13px;
   font-weight: 700;
   margin-bottom: 6px;
   display: block;
}
.tickets .card form input,
.tickets .card form textarea,
.tickets .card form select {
   width: 100%;
   padding: 12px 14px;
   border-radius: 14px;
   border: 1px solid var(--border-color);
   background: var(--bg-color);
   font-size: 14px;
   color: var(--text-main);
}
.tickets .card form textarea {
   resize: none;
}
.tickets .card form input:focus,
.tickets .card form textarea:focus,
.tickets .card form select:focus {
   outline: none;
   border-color: var(--main-color);
   box-shadow: 0 0 0 3px var(--main-opacity);
}
.tickets .card form button[type="submit"] {
   margin-top: 10px;
   padding: 14px;
   border-radius: 16px;
   border: none;
   background: var(--main-color);
   color: var(--text-main);
   font-size: 15px;
   font-weight: 800;
   cursor: pointer;
   transition: 0.2s ease;
}
.tickets .card form button[type="submit"]:hover {
   opacity: 0.9;
   transform: translateY(-1px);
}
.tickets .card .tickets-alert {
   border-radius: 14px;
   padding: 12px 14px;
   display: flex;
   align-items: center;
   gap: 10px;
}
.tickets .card .tickets-alert.danger {
   background: #fee2e2;
   color: #b91c1c;
}
.tickets .card .tickets-alert-close {
   background: none;
   border: none;
   font-size: 20px;
   cursor: pointer;
}
.tickets .card .uploader-wrapper {
   border: 2px dashed var(--border-color);
   border-radius: 16px;
   padding: 8px 20px;
   text-align: center;
   cursor: pointer;
   transition: background 0.2s ease;
   display: flex;
   align-items: center;
}
.tickets .card .uploader-wrapper button {
   color: var(--text-main);
   cursor: pointer;
}
.tickets .card .uploader-wrapper:hover {
   border-color: var(--main-color);
}
.tickets .search {
   width: 500px;
   margin-bottom: 16px;
}
.tickets .search > div {
   display: flex;
   align-items: center;
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 6px 20px var(--shadow-color);
}

.tickets .search > div .form-control {
   border: none;
   background: transparent;
   padding: 12px 14px;
   font-size: 13px;
   color: var(--text-main);
}

.tickets .search > div .form-control::placeholder {
   color: #888;
}

.tickets .search > div .form-control:focus {
   outline: none;
   box-shadow: none;
}

.tickets .search > div .input-group-btn button {
   background: var(--secondary-color);
   border: none;
   width: 44px;
   height: 44px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-main);
   cursor: pointer;
   transition: all 0.2s ease;
}
.tickets .search > div .input-group-btn button:hover {
   opacity: 0.9;
}
.tickets table {
   width: 100%;
   border-collapse: collapse;
}
.tickets table thead {
   background: var(--main-color);
   color: var(--text-main);
}
.tickets table th,
.tickets table td {
   padding: 12px 14px;
   font-size: 14px;
   border-bottom: 1px solid var(--border-color);
}
.tickets table tbody tr:hover {
   background: var(--main-opacity);
}
.tickets table a {
   color: var(--text-main);
   font-weight: 600;
   text-decoration: underline;
   transition: 0.3s ease-in-out;
}
.tickets table a:hover {
   color: var(--main-color);
}
.tickets table .status {
   font-weight: 700;
}

@media (max-width: 576px) {
   .tickets .card {
      padding: 16px;
   }
   .tickets .table {
      font-size: 13px;
   }
   .tickets .search {
      width: 100%;
   }
}

/* 
====== ticketview ======== 
*/
.ticketview {
   max-width: 900px;
   margin: 30px auto;
   padding: 20px;
   background: var(--bg-color);
   border-radius: 22px;
   border: 1px solid var(--border-color);
   box-shadow: 0 20px 60px var(--shadow-color);
}
.ticketview .card {
   width: 100%;
}
.ticketview .header {
   padding-bottom: 16px;
   border-bottom: 1px solid var(--border-color);
}
.ticketview .header .title {
   font-size: 20px;
   font-weight: 800;
   margin: 0;
}
.ticketview .chat {
   display: flex;
   flex-direction: column;
   gap: 18px;
   padding: 24px 0;
}
.ticketview .chat .message {
   max-width: 70%;
   display: flex;
   flex-direction: column;
}
.ticketview .chat .message.user {
   align-self: flex-end;
   text-align: right;
}
.ticketview .chat .message.support {
   align-self: flex-start;
}
.ticketview .chat .bubble {
   padding: 14px 16px;
   border-radius: 18px;
   font-size: 14px;
   line-height: 1.6;
   box-shadow: 0 10px 30px var(--shadow-color);
}
.ticketview .chat .message.user .bubble {
   background: var(--main-color);
   color: var(--text-main);
   border-bottom-right-radius: 6px;
}

.ticketview .chat .message.support .bubble {
   background: var(--secondary-color);
   color: var(--text-main);
   border-bottom-left-radius: 6px;
}

.ticketview .chat .files {
   margin-top: 10px;
   display: flex;
   flex-direction: column;
   gap: 6px;
}
.ticketview .chat .files a {
   font-size: 13px;
   color: inherit;
   opacity: 0.85;
   text-decoration: underline;
}
.ticketview .chat .meta {
   font-size: 11px;
   opacity: 0.7;
   margin-top: 6px;
}
.ticketview .chat .message.user .meta {
   display: flex;
   justify-content: flex-end;
   gap: 10px;
}
.ticketview .reply {
   border-top: 1px solid var(--border-color);
   padding-top: 20px;
}
.ticketview .reply label {
   font-weight: 700;
   margin-bottom: 6px;
   display: block;
}
.ticketview .reply textarea {
   width: 100%;
   padding: 14px;
   border-radius: 16px;
   border: 1px solid var(--border-color);
   background: var(--bg-color);
   color: var(--text-main);
   font-size: 14px;
   resize: vertical;
   margin-bottom: 14px;
}
.ticketview .reply textarea:focus {
   outline: none;
   border-color: var(--main-color);
   box-shadow: 0 0 0 3px var(--main-opacity);
}
.ticketview .reply button[type="submit"] {
   margin-top: 10px;
   width: 100%;
   padding: 14px;
   border-radius: 18px;
   border: none;
   background: var(--main-color);
   color: var(--text-main);
   font-weight: 800;
   cursor: pointer;
   transition: 0.2s ease;
}
.ticketview .reply button[type="submit"]:hover {
   opacity: 0.9;
   transform: translateY(-1px);
}
.ticketview .ticket-alert {
   padding: 12px 14px;
   border-radius: 14px;
   margin-bottom: 12px;
}
.ticketview .ticket-alert.danger {
   background: #fee2e2;
   color: #b91c1c;
}
.ticketview .card .uploader-wrapper {
   border: 2px dashed var(--border-color);
   border-radius: 16px;
   padding: 8px 20px;
   text-align: center;
   cursor: pointer;
   transition: background 0.2s ease;
   display: flex;
   align-items: center;
   color: var(--text-main);
   margin-bottom: 14px;
}
.ticketview .card .uploader-wrapper:hover {
   border-color: var(--main-color);
}
.ticketview .card .uploader-wrapper button {
   color: var(--text-main);
   cursor: pointer;
}

@media (max-width: 576px) {
   .ticketview .chat .message {
      max-width: 100%;
   }
}


/* ===============================
   Signup Page
================================ */
.signup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  padding: 20px;
}

/* ===============================
   Card
================================ */
.signup-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-color);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px var(--shadow-color);
}

/* ===============================
   Title
================================ */
.signup-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}

/* ===============================
   Form Groups
================================ */
.signup-group {
  margin-bottom: 16px;
}

.signup-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.signup-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  transition: 0.2s ease;
}

.signup-group input:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px var(--main-opacity);
}

/* ===============================
   Captcha
================================ */
.signup-captcha {
  margin: 16px 0;
}

/* ===============================
   Terms
================================ */
.signup-terms {
  margin: 16px 0;
  font-size: 13px;
}

.signup-terms input {
  margin-inline-end: 6px;
}

.signup-terms a {
  color: var(--main-color);
  font-weight: 600;
  text-decoration: none;
}

.signup-terms a:hover {
  text-decoration: underline;
}

/* ===============================
   Alerts
================================ */
.signup-alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.signup-alert.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.signup-alert.success {
  background: #dcfce7;
  color: #166534;
}

/* ===============================
   Actions
================================ */
.signup-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===============================
   Button
================================ */
.signup-btn {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: none;
  background: var(--main-color);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.signup-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ===============================
   Google
================================ */
.signup-google {
  display: flex;
  justify-content: center;
}

/* ===============================
   Footer
================================ */
.signup-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
}

.signup-footer a {
  color: var(--main-color);
  font-weight: 700;
  text-decoration: none;
}

.signup-footer a:hover {
  text-decoration: underline;
}

/* ===============================
   RTL
================================ */
.signup-page.rtl {
  direction: rtl;
}

.signup-page.rtl .signup-group label,
.signup-page.rtl .signup-footer {
  text-align: right;
}

/* ===============================
   Mobile
================================ */
@media (max-width: 480px) {
  .signup-card {
    padding: 20px;
  }
}

/* ===============================
   Signin Page
================================ */
.signin-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  padding: 20px;
}

/* ===============================
   Card
================================ */
.signin-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-color);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px var(--shadow-color);
}

/* ===============================
   Title
================================ */
.signin-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}

/* ===============================
   Groups
================================ */
.signin-group {
  margin-bottom: 16px;
}

.signin-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.signin-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  transition: 0.2s ease;
}

.signin-group input:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px var(--main-opacity);
}

/* ===============================
   Password
================================ */
.signin-password {
  position: relative;
}

.signin-forgot {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 600;
}

.signin-forgot:hover {
  text-decoration: underline;
}

/* ===============================
   Remember
================================ */
.signin-remember {
  margin: 12px 0;
  font-size: 13px;
}

.signin-remember input {
  margin-inline-end: 6px;
}

/* ===============================
   Captcha
================================ */
.signin-captcha {
  margin: 16px 0;
}

/* ===============================
   Alerts
================================ */
.signin-alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.signin-alert.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.signin-alert.success {
  background: #dcfce7;
  color: #166534;
}

/* ===============================
   Actions
================================ */
.signin-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===============================
   Button
================================ */
.signin-btn {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: none;
  background: var(--main-color);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.signin-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ===============================
   Google
================================ */
.signin-google {
  display: flex;
  justify-content: center;
}

/* ===============================
   Footer
================================ */
.signin-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
}

.signin-footer a {
  color: var(--main-color);
  font-weight: 700;
  text-decoration: none;
}

.signin-footer a:hover {
  text-decoration: underline;
}

/* ===============================
   Extra Text
================================ */
.signin-extra {
  max-width: 440px;
  margin: 20px auto 0;
  background: var(--bg-color);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* ===============================
   RTL
================================ */
.signin-page.rtl,
.signin-extra.rtl {
  direction: rtl;
}

.signin-page.rtl label,
.signin-page.rtl .signin-footer {
  text-align: right;
}

/* ===============================
   Mobile
================================ */
@media (max-width: 480px) {
  .signin-card {
    padding: 20px;
  }
}



/* 
========= modals ==========
*/
.modal {
   position: fixed;
   inset: 0;
   display: none;
   z-index: 9999;
}
.modal.active {
   display: block;
}
.modal-overlay {
   position: absolute;
   inset: 0;
   background: rgba(0,0,0,.6);
   backdrop-filter: blur(6px);
}
.modal-box {
   position: relative;
   width: min(420px, 92%);
   margin: 100px auto;
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   border-radius: 16px;
   box-shadow: 0 30px 60px rgba(0,0,0,.5);
   padding: 18px;
   animation: modalPop .25s ease;
   }

@keyframes modalPop {
   from { 
      transform: translateY(20px); 
      opacity: 0; 
   }
   to { 
      transform: translateY(0); 
      opacity: 1; 
   }
}
.modal-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 15px;
}
.modal-header h3 {
   font-size: 18px;
   color: var(--text-main);
}
.modal-close {
   background: transparent;
   border: none;
   color: var(--text-main);
   font-size: 28px;
   cursor: pointer;
}
.modal-body {
   display: flex;
   flex-direction: column;
   gap: 10px;
}
.modal-link {
   padding: 12px 14px;
   border-radius: 12px;
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   color: var(--text-main);
   transition: .2s;
}
.modal-link.active{
   border-color: var(--main-color);
}
.modal-link:hover {
   border-color: var(--main-color);
   transform: translateY(-2px);
}

/* 
========= pagination ==========
*/
.pagination {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 8px;
   padding: 16px 0;
   margin: 20px 0 0;
   list-style: none;
}

.pagination li {
   display: inline-flex;
}
.pagination li a {
   min-width: 40px;
   height: 40px;
   padding: 0 12px;
   border-radius: 12px;
   border: 1px solid var(--border-color);
   background: var(--secondary-color);
   color: var(--text-main);
   font-weight: 800;
   font-size: 13px;
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   transition: all 0.25s ease;
   box-shadow: 0 6px 20px var(--shadow-color);
}
.pagination li a:hover {
   background: var(--main-color);
   border-color: var(--main-color);
   color: #fff;
   transform: translateY(-2px);
}
.pagination li.active a {
   background: var(--main-color);
   border-color: var(--main-color);
   color: #fff;
   box-shadow: 0 10px 25px var(--shadow-color);
   transform: translateY(-2px);
}
.pagination li a span {
   font-size: 18px;
   line-height: 1;
}
.pagination li a {
   user-select: none;
}
.rtl-pagination {
   direction: rtl;
}
@media (max-width: 768px) {
   .pagination {
      gap: 6px;
      flex-wrap: wrap;
   }

   .pagination li a {
      min-width: 36px;
      height: 36px;
      font-size: 12px;
      border-radius: 10px;
   }
}
.input-error {
   border: 1px solid #ff4d4f !important;
   box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15) !important;
   animation: shake 0.25s ease;
}
@keyframes shake {
   0% { transform: 
      translateX(0); 
   }
   25% { transform: 
      translateX(-4px); 
   }
   50% { transform: 
      translateX(4px); 
   }
   75% { transform: 
      translateX(-3px); 
   }
   100% { transform: 
      translateX(0); 
   }
}

#particles {
   position: fixed;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   z-index: -1; 
   background-color: var(--bg-color); 
}

/*
======= blog =======
*/
.blog {
   padding: 20px 0;
}
.blog .intro {
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   border-radius: 18px;
   padding: 25px;
   color: var(--text-light);
   box-shadow: 0 15px 35px var(--shadow-color);
   margin-bottom: 30px;
}
.blog .lists {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
   gap: 25px;
   padding: 0 20px;
}
.blog .post {
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   border-radius: 18px;
   padding: 20px;
   overflow: hidden; 
   box-shadow: 0 15px 35px var(--shadow-color);
   transition: 0.3s ease;
}
.blog .post:hover {
   transform: translateY(-6px);
   border-color: var(--main-color);
   box-shadow: 0 20px 45px rgba(0,0,0,0.8);
}
.blog .title {
   font-size: 18px;
   font-weight: 900;
   color: var(--text-main);
   margin-bottom: 15px;
}
.blog .image {
   margin: 15px 0;
}
.blog .image img {
   width: 100%;
   max-height: 450px;
   object-fit: cover;
   border-radius: 0;
   border: 1px solid var(--border-color);
   box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}
.blog .lists .content {
   color: #9aa4b2 !important;
   font-size: 14px;
   line-height: 1.7;
   margin-bottom: 12px;
   display: -webkit-box;
   line-clamp: 3;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
   padding: 0 !important;
}
.blog .lists .content h1,
.blog .lists .content h2,
.blog .lists .content h3,
.blog .lists .content h4,
.blog .lists .content h5,
.blog .lists .content h6 {
   font-size: 14px !important;
   font-weight: 700 !important;
}
.blog .lists .content p,
.blog .lists .content font {
   font-size: 12px !important;
} 
.blog .content {
   color: var(--text-light);
   font-size: 15px;
   line-height: 1.9;
}
.blog .actions {
   margin-top: 20px;
}
.blog .actions .btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 12px 18px;
   border-radius: 14px;
   font-weight: 800;
   background: var(--main-color);
   color: var(--text-main);
   box-shadow: 0 8px 18px var(--main-opacity);
   transition: 0.25s;
}
.blog .actions .btn {
   transform: translateY(-3px);
   background: var(--main-color);
}
@media (max-width: 768px) {
   .blog .lists {
      grid-template-columns: 1fr;
   }
   .blog .post,
   .blog .intro {
      padding: 18px;
      border-radius: 16px;
   }

   .blog .title {
      font-size: 18px;
   }

   .blog .image img {
      max-height: 220px;
   }
}

/* 
========= post ==========
*/
.post {
   padding-bottom: 80px;
   background: var(--bg-color);
}
.post .container {
   padding: 0 20px;
}
.post .hero-image {
   position: relative;
   width: 100%;
   height: 320px;
   overflow: hidden;
   border-bottom: 1px solid var(--border-color);
}

.post .hero-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}
.post .hero-image .overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.75)
   );
}
.post .hero-image .title {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   padding: 0 20px;
   z-index: 2;
}
.post .hero-image .title h1 {
   color: var(--text-main);
   font-size: 24px;
   font-weight: 900;
   line-height: 1.6;
   text-shadow: 0 8px 25px var(--shadow-color);
}
.post .card {
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   border-radius: 18px;
   padding: 35px;
   margin-top: 50px;
   position: relative;
   z-index: 3;
}
.post .card .title {
   font-size: 26px;
   font-weight: 900;
   color: var(--text-main);
   margin-bottom: 20px;
   line-height: 1.6;
   text-align: center;
}
.post .content {
   font-size: 16px;
   line-height: 2;
   padding: 0 !important;
}
.post .actions {
   margin-top: 28px;
   display: flex;
   justify-content: start;
}
.post .actions .back-btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 12px 18px;
   border-radius: 14px;
   background: var(--main-color);
   color: var(--text-main);
   box-shadow: 0 10px 20px var(--main-opacity);
   transition: 0.25s;
}
.content:has(.post) {
   padding: 0 !important;
}
.post .actions .back-btn:hover {
   transform: translateY(-3px);
   background: #d6360e;
}
@media (max-width: 768px) {
   .post .hero {
      height: 220px;
   }
   .post .hero-image .title h1 {
      font-size: 14px;
   }
   .post .card {
      padding: 22px;
      border-radius: 16px;
   }
   .post .content {
      font-size: 14px;
      line-height: 1.9;
   }
   .post .content h1,
   .post .content h2,
   .post .content h3,
   .post .content h4,
   .post .content h5,
   .post .content h6 {
      font-size: 16px !important;
      font-weight: 700 !important;
   }
}

/* 
======== tooltip ======= 
*/
.tooltip {
   position: absolute !important;
   z-index: 99999;
   display: block;
   font-size: 13px;
   font-weight: 700;
   line-height: 1.6;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.2s ease, transform 0.2s ease;
}
.tooltip.fade {
   opacity: 0;
}
.tooltip.in {
   opacity: 1;
   pointer-events: auto;
}
.tooltip .tooltip-inner {
   max-width: 320px; 
   padding: 10px 14px;
   color: var(--text-main);
   background: var(--card-bg);
   border: 1px solid rgba(243, 66, 19, 0.28);
   border-radius: 14px;
   box-shadow: 0 16px 35px rgba(0,0,0,0.6);
   white-space: normal;
   word-wrap: break-word;
   text-align: left;
}
.tooltip .tooltip-arrow {
   position: absolute;
   width: 0;
   height: 0;
   border-style: solid;
}
.tooltip.right {
   transform: translateX(-6px);
}

.tooltip.right.in {
   transform: translateX(0);
}
.tooltip.right .tooltip-arrow {
   left: -7px;
   top: 50%;
   transform: translateY(-50%);
   border-width: 7px 7px 7px 0;
   border-color: transparent var(--card-bg) transparent transparent;
}
.tooltip.top {
   transform: translateY(6px);
}
.tooltip.top.in {
   transform: translateY(0);
}
.tooltip.top .tooltip-arrow {
   bottom: -7px;
   left: 50%;
   transform: translateX(-50%);
   border-width: 7px 7px 0;
   border-color: var(--card-bg) transparent transparent transparent;
}
.tooltip.bottom {
   transform: translateY(-6px);
}
.tooltip.bottom.in {
   transform: translateY(0);
}
.tooltip.bottom .tooltip-arrow {
   top: -7px;
   left: 50%;
   transform: translateX(-50%);
   border-width: 0 7px 7px;
   border-color: transparent transparent var(--card-bg) transparent;
}
.tooltip.left {
   transform: translateX(6px);
}
.tooltip.left.in {
   transform: translateX(0);
}
.tooltip.left .tooltip-arrow {
   right: -7px;
   top: 50%;
   transform: translateY(-50%);
   border-width: 7px 0 7px 7px;
   border-color: transparent transparent transparent var(--card-bg);
}
.tooltip.right {
   transform: translateX(-6px);
}
.tooltip.right.in {
   transform: translateX(0);
}
.tooltip.right .tooltip-arrow {
   left: -7px;
   top: 50%;
   transform: translateY(-50%);
   border-width: 7px 7px 7px 0;
   border-color: transparent var(--card-bg) transparent transparent;
}

/* 
======== account ========
*/
.account {
   padding: 0;
}
.account .header {
   text-align: center;
   margin-bottom: 35px;
}
.account .header h2 {
   font-size: 34px;
   font-weight: 900;
   margin-bottom: 10px;
}
.account .cards {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 22px;
}
.account .card {
   background: var(--secondary-color);
   border: 1px solid var(--border-color);
   border-radius: 18px;
   padding: 22px;
   box-shadow: 0 12px 30px var(--shadow-color);
   transition: 0.25s ease;
}
.account .card:hover {
   transform: translateY(-3px);
   border-color: var(--main-color);
}
.account .card .title {
   font-size: 18px;
   font-weight: 900;
   margin-bottom: 18px;
}
.account .card .desc {
   color: var(--text-main);
   font-size: 14px;
   margin-bottom: 15px;
   line-height: 1.8;
}
.account .form-group {
   margin-bottom: 15px;
}

.account label {
   display: block;
   margin-bottom: 8px;
   font-weight: 800;
   font-size: 14px;
   color: var(--text-main);
}
.account input,
.account select,
.account textarea {
   width: 100%;
   padding: 12px 14px;
   border-radius: 14px;
   border: 1px solid var(--border-color);
   background: var(--bg-color);
   color: var(--text-main);
   outline: none;
   transition: 0.2s;
}
.account input:focus,
.account select:focus,
.account textarea:focus {
   border-color: var(--main-color);
   box-shadow: 0 0 0 4px var(--main-opacity);
}
.account input[readonly] {
   opacity: 0.75;
   cursor: not-allowed;
}
.account .btn {
   margin-top: 10px;
   width: 100%;
   padding: 14px;
   border-radius: 18px;
   border: none;
   background: var(--main-color);
   color: var(--text-main);
   font-size: 15px;
   font-weight: 800;
   cursor: pointer;
   transition: 0.2s ease;
}
.account .btn:hover {
   opacity: 0.9;
   transform: translateY(-1px);
}
.account .card .help-text {
   display: inline-block;
   margin-top: 8px;
   color: #888;
   font-size: 13px;
}
@media (max-width: 992px) {
   .account .cards {
      grid-template-columns: 1fr;
   }
   .account .header h2 {
      font-size: 28px;
   }
}

/*
======== notifications ========
*/
.account .card-table {
   grid-column: 1 / -1;
}
.account .table-responsive {
   width: 100%;
   overflow-x: auto;
   border-radius: 16px;
   border: 1px solid var(--border-color);
   background: rgba(255,255,255,0.02);
}
.account .notifications-table {
   width: 100%;
   border-collapse: collapse;
   min-width: 700px;
}
.account .notifications-table thead th {
   background: rgba(255,255,255,0.03);
   color: var(--text-main);
   font-weight: 900;
   font-size: 14px;
   padding: 16px;
   text-align: center;
   border-bottom: 1px solid var(--border-color);
}
.account .notifications-table tbody td {
   padding: 16px;
   text-align: center;
   border-bottom: 1px solid rgba(255,255,255,0.06);
   color: var(--text-main);
   font-size: 14px;
}
.account .notifications-table tbody tr:hover td {
   background: rgba(255,255,255,0.03);
}
.account .notifications-table .notif-name {
   text-align: right;
   font-weight: 800;
   color: var(--text-main);
   min-width: 220px;
}
.account .notifications-table .switch {
   width: 18px;
   height: 18px;
   accent-color: var(--main-color);
   cursor: pointer;
}
.account .notifications-table .switch:disabled {
   opacity: 0.4;
   cursor: not-allowed;
}
@media (max-width: 768px) {
   .notifications .cards {
      grid-template-columns: repeat(2, 1fr) !important;
   }
   .notifications .card {
      grid-column: span 2;
   }
   .account .card-table {
      padding: 18px;
   }
   .account .notifications-table {
      min-width: 600px;
   }
   .account .notifications-table thead th,
   .account .notifications-table tbody td {
      padding: 12px;
      font-size: 13px;
   }
}

/*
======== child panels ========
*/

.childpanels {
  padding: 0;
}

.childpanels .header {
  text-align: center;
  margin-bottom: 35px;
}

.childpanels .header h2 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 10px;
}

.childpanels .header p {
  color: var(--text-light);
  font-size: 14px;
}


.childpanels .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.childpanels .card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px var(--shadow-color);
}

.childpanels .table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.childpanels-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.childpanels-table thead th {
  padding: 16px;
  font-size: 14px;
  font-weight: 900;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.childpanels-table tbody td {
  padding: 16px;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.childpanels-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.childpanels-table .domain {
  text-align: right;
  font-weight: 900;
  color: var(--text-main);
  min-width: 240px;
}

.childpanels-table .date {
  color: var(--text-muted);
}

.childpanels-table .actions {
  width: 120px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid var(--border-color);
}

.status-badge {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.status-active,
.status-enabled,
.status-running {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.status-disabled,
.status-inactive,
.status-expired {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.status-pending,
.status-waiting {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

.alert-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.alert-actions {
  flex: 0 0 auto;
}

.alert-text {
  flex: 1;
  text-align: right;
}

.btn-sm {
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  border: none;
  cursor: pointer;
  background: var(--main-color);
  color: #fff;
  box-shadow: 0 8px 18px var(--main-opacity);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--main-color);
  color: var(--main-color);
}

.empty-state {
  text-align: center;
}

.empty-state .title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.empty-state .desc {
  color: var(--text-light);
  font-size: 14px;
}

@media (max-width: 768px) {
  .childpanels {
    padding: 50px 0;
  }

  .childpanels .header h2 {
    font-size: 26px;
  }

  .childpanels .card {
    padding: 18px;
  }
}

.childpanel-create {
  padding: 70px 0;
}

.childpanel-create .header {
  text-align: center;
  margin-bottom: 35px;
}

.childpanel-create .header h2 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 10px;
}

.childpanel-create .header p {
  color: var(--text-light);
  font-size: 14px;
}

.childpanel-create .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.childpanel-create .card {
    background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px var(--shadow-color);
}

.childpanel-create .title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.childpanel-create .desc {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 18px;
}

.childpanel-create .content {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.9;
}

.childpanel-create .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.childpanel-create .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.childpanel-create .form-group label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.childpanel-create input,
.childpanel-create select {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  outline: none;
  transition: 0.25s ease;
}

.childpanel-create input:focus,
.childpanel-create select:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 4px var(--main-opacity);
}

.childpanel-create input[readonly] {
  opacity: 0.85;
  cursor: not-allowed;
}

.childpanel-create .info-box {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
}

.childpanel-create .info-box h4 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-main);
}

.childpanel-create .ns-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.childpanel-create .ns-list li {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  color: var(--text-light);
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 13px;
  direction: ltr;
  text-align: left;
}

.childpanel-create .btn {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  background: var(--main-color);
  color: #fff;
  box-shadow: 0 10px 22px var(--main-opacity);
  transition: 0.25s ease;
}

.childpanel-create .btn:hover {
  transform: translateY(-2px);
  background: #d6360e;
}

.childpanel-create .btn-block {
  width: 100%;
}

@media (max-width: 768px) {
  .childpanel-create {
    padding: 50px 0;
  }

  .childpanel-create .header h2 {
    font-size: 26px;
  }

  .childpanel-create .card {
    padding: 18px;
  }

  .childpanel-create .form-grid {
    grid-template-columns: 1fr;
  }
}

/*
======== affiliates =======
*/
.affiliates-page {
  padding: 70px 0;
}

.affiliates-page .header {
  text-align: center;
  margin-bottom: 35px;
}

.affiliates-page .header h2 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 10px;
}

.affiliates-page .header p {
  color: var(--text-light);
  font-size: 14px;
}

.affiliates-page .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.affiliates-page .card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px var(--shadow-color);
}

.affiliates-page .title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
}

.affiliates-page .content {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.9;
}

.affiliates-page .table-responsive {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.affiliates-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.affiliates-table thead th {
  padding: 16px;
  font-size: 13px;
  font-weight: 900;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.affiliates-table tbody td {
  padding: 16px;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.affiliates-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.ref-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.ref-link .value {
  color: var(--text-main);
  font-weight: 800;
  font-size: 13px;
  direction: ltr;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: 0.25s ease;
}

.copy-btn:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  background: rgba(243, 66, 19, 0.08);
}

.money {
  color: var(--main-color);
  font-weight: 900;
}

.badge-soft {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.status-paid,
.status-success,
.status-completed {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.status-pending,
.status-waiting {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

.status-rejected,
.status-failed,
.status-canceled {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}


.btn-sm {
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  border: none;
  cursor: pointer;
  background: var(--main-color);
  color: #fff;
  box-shadow: 0 10px 22px var(--main-opacity);
  transition: 0.25s ease;
}

.btn-sm:hover {
  transform: translateY(-2px);
  background: #d6360e;
}

.pagination-box {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.pagination {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  font-weight: 900;
  transition: 0.25s ease;
}

.pagination li a:hover {
  border-color: var(--main-color);
  background: rgba(243, 66, 19, 0.08);
  color: var(--main-color);
}

.pagination li.active a {
  border-color: var(--main-color);
  background: var(--main-color);
  color: #fff;
}

@media (max-width: 768px) {
  .affiliates-page {
    padding: 50px 0;
  }

  .affiliates-page .header h2 {
    font-size: 26px;
  }

  .affiliates-page .card {
    padding: 18px;
  }
}
