/* ========================================================================
   Marketerum Stylesheet
   Table of Contents
   1) Theme Tokens
   2) Base + Accessibility
   3) Components (Alerts, Modals, Dropdowns)
   4) Layout (Header, Sidebar)
   5) Data Tables
   6) Forms (Auth, Dashboard, New Order)
   7) Utilities (Animations, Helpers)
   8) Dark Mode Overrides
   ======================================================================== */

/* 1) Theme Tokens (light defaults) */
:root {
  --color-bg: #ffffff;
  --color-bg-2: #eef9fc;
  --color-surface: #ffffff;
  --color-text-primary: #0a2753;
  --color-text-secondary: #3f4b5a;
  --color-accent: #00BFF3;
  --color-accent-hover: #00A6D6;
  --color-border: #EEF0F3;
  --color-error: #EF4444;
  --color-success: #10B981;
  --header-hight: 72px;

  /* UI tokens */
  --radius-card: 14px;
  --shadow-card: 0 10px 24px rgba(2, 6, 23, 0.06);
  --shadow-card-dark: 0 10px 24px rgba(0, 0, 0, 0.45);
  --ring-primary: 0 0 0 3px rgba(0, 191, 243, 0.25);

  /* Layout tokens */
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 84px;

  /* Alternating section gradient tokens */
  --sectionA-start: #F2FAFF;
  --sectionA-end: #FFFFFF;
  --sectionB-start: #EFF6FB;
  --sectionB-end: #F8FBFF;
  --section-grad-a: linear-gradient(180deg, var(--sectionA-start) 0%, var(--sectionA-end) 100%);
  --section-grad-b: linear-gradient(180deg, var(--sectionB-start) 0%, var(--sectionB-end) 100%);
}

@media (min-width: 1280px) {
  :root {
    --sidebar-width: 250px;
  }
}

/* 8) Dark Mode Base (palette) */
/* Dark mode base styling (Marketerum palette) */
html.dark,
body.dark {
  /* Tokens */
  --color-bg: #00336a;
  /* Background */
  --color-bg-2: #0b1f3f;
  /* Background 2 */
  --color-surface: #102a52;
  /* Cards/sections */
  --color-text-primary: #F5FAFF;
  /* Primary text */
  --color-text-secondary: #BAC8E0;
  /* Secondary text */
  --color-accent: #00BFF3;
  /* Buttons/links */
  --color-accent-hover: #26D4FF;
  /* Hover state */
  --color-border: rgba(88, 130, 193, 0.45);
  /* Borders/dividers */
  --color-error: #EF4444;
  /* Error */
  --color-success: #10B981;
  /* Success */
  --ring-primary: 0 0 0 3px rgba(74, 216, 255, 0.35);

  background-color: var(--color-bg);
  color: var(--color-text-primary);

  /* Alternating section gradient tokens (dark) */
  --sectionA-start: #0f2548;
  --sectionA-end: var(--color-bg);
  --sectionB-start: #0c2346;
  --sectionB-end: var(--color-bg);
}


/* ========================================================================
   3) Components: Alerts
   ======================================================================== */
/* General alert styling */
.alert {
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  position: relative;
  font-size: 13px;
}

/* Danger alert styling */
.alert-danger {
  background-color: #fff8fc;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Warning alert styling */
.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* button,
.btn {
    min-width: 44px;
    min-height: 44px;
} */

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Success alert styling */
.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}



/* Links */
/* Anchor colors in dark mode */
html.dark a,
body.dark a,
.dark a {
  color: var(--color-accent);
}

html.dark a:hover,
html.dark a:focus,
body.dark a:hover,
body.dark a:focus,
.dark a:hover,
.dark a:focus {
  color: var(--color-accent-hover);
}

/* Alerts */
html.dark .alert,
body.dark .alert,
.dark .alert {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

html.dark .alert-success,
body.dark .alert-success,
.dark .alert-success {
  background-color: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--color-text-primary);
}

html.dark .alert-warning,
body.dark .alert-warning,
.dark .alert-warning {
  background-color: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--color-text-primary);
}

html.dark .alert-danger,
body.dark .alert-danger,
.dark .alert-danger {
  background-color: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.45);
  color: var(--color-text-primary);
}

/* Close button styling */
.alert .close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: inherit;
  cursor: pointer;
}

/* ========================================================================
   3) Components: Select2
   ======================================================================== */
.select2-container--default .select2-results>.select2-results__options {
  background: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background: #bfebf7;
}

/* Dark: select2 */
.dark .select2-container--default .select2-results>.select2-results__options {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.dark .select2-container--default .select2-results__option[aria-selected="true"] {
  background: rgba(20, 241, 185, 0.15);
}

.select2-results__option {
  padding: 10px 0;
}

.blog-excerpt {
  width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
}

/* ========================================================================
   3) Components: Modals
   ======================================================================== */
/* Modal */
/* Modal container, hidden by default */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
}

/* Modal header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.modal-title img {
  width: 150px;
}

/* Close button */
.modal .close {
  color: #333 !important;
  background: #fff !important;
  cursor: pointer;
  border: 1px solid #e2e5ea !important;
}

.modal .close:hover,
.modal .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.services-info .s-header h4 {
  margin: 0;
}

.service-id-box {
  font-weight: 500;
  margin-bottom: 10px;
  background: #00bff3;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

.dark .service-id-box {
  background: var(--color-accent);
  color: var(--color-bg);
}

.services-info>div {
  background: #ebfafe;
  display: flex;
  justify-content: space-around;
  border-radius: 8px;
  padding: 30px;
  flex-wrap: wrap;
  row-gap: 30px;
}

.services-info>div> :nth-child(-n + 3) {
  flex-basis: 33.33%;
}

.services-info .si-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-info .si-item small {
  font-weight: 500;
  font-size: 15px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  text-align: left;
}

.modal .si-item {
  text-align: center;
}

.modal .si-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #00bff3;
  color: #fff;
  line-height: 40px;
  font-size: 20px;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dark .modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.dark .services-info>div {
  background: var(--color-surface);
}

.dark .modal .close {
  background: transparent !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text-primary) !important;
}

.sidebar__menu .badge {
  width: 20px;
  height: 20px;
  text-align: center;
  border-radius: 50%;
  background: white !important;
  color: #03bff3;
}

.dark .sidebar__menu .badge {
  background: var(--color-surface) !important;
  color: var(--color-accent) !important;
}

.sidebar__menu .custom-push-menu {
  padding-left: 20px;
  padding-top: 20px;
}

.sidebar__menu .custom-push-menu a {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.sidebar__menu .custom-push-menu .dropdown {
  margin-top: 20px;
}

.sidebar__menu .custom-push-menu .dd-menu {
  position: relative;
  padding: 10px;
}

#currencies-list li {
  padding: 0 10px;
}

.join-now-sec {
  background-image: url('https://storage.perfectcdn.com/7gc9nb/yso64do77b67ckcy.png');
}

.join-now-sec .becam-btn {
  display: inline-block;
}

td.service-name,
table#service-table thead tr:first-child td h2 {
  font-size: 15px !important;
}

.sidebar__menu ul li a {
  font-size: 16px !important;
}

.collapsed .sidebar__menu ul li a {
  font-size: 18px !important;
}

[data-status] {
  border-radius: 10px;
  color: #fff;
  text-align: center;
  padding: 5px 10px !important;
}

[data-status="Canceled"] {
  background: #f30f01 !important;
}

[data-status="In progress"] {
  background: #1777ff !important;
}

[data-status="Processing"] {
  background: #a500f3 !important;
}

[data-status="Partial"] {
  background: #6d6dbb !important;
}

[data-status="Completed"] {
  background: #3ab54b !important;
}

[data-status="Pending"] {
  background: #f7931a !important;
}

.dark table#service-table tbody tr {
  background: transparent;
}

/* Dark: buttons (primary accent) */
.dark .btn.btn-primary,
.dark .btn-primary {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-bg) !important;
}

.dark .btn.btn-primary:hover,
.dark .btn-primary:hover,
.dark .btn.btn-primary:focus,
.dark .btn-primary:focus {
  background-color: var(--color-accent-hover) !important;
  border-color: var(--color-accent-hover) !important;
  color: var(--color-bg) !important;
}


/* Currency drop down */
.currency-item {
  background: #F6F6F6;
  border: 1px solid #eee5e5;
  border-radius: 7px;
  padding: 7px 10px;
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  color: #3E4954;
  transition: 0.14s ease;
  cursor: pointer;
  margin-bottom: 5px;
}

.currency-item span {
  background: #1eaae7;
  float: right;
  width: 35px;
  text-align: center;
  border-radius: 3px;
  color: #fff;
}

/* Dark: currency item */
.dark .currency-item {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.dark .currency-item span {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Style the dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  padding-top: 10px;
  margin-top: 10px;
}

/* Show the dropdown menu when it has the 'show' class */
.dropdown-menu.show {
  display: block;
}

/* Style for the dropdown items */
.dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f1f1f1;
}

/* Dark: dropdowns */
.dark .dropdown-menu {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.dark .dropdown-item {
  color: var(--color-text-primary);
}

.dark .dropdown-item:hover {
  background-color: rgba(20, 241, 185, 0.08);
  color: var(--color-text-primary);
}

.status-data>div:nth-child(1) {
  flex-basis: 80% !important;
}

/* Dark: modal header/footer borders and secondary text */
.dark .modal-header,
.dark .modal-footer {
  border-color: var(--color-border);
}

.dark .text-muted,
.dark .text-secondary,
.dark .subtitle {
  color: var(--color-text-secondary) !important;
}

.status-data>div:nth-child(2) {
  flex-basis: 20% !important;
}

.status-data>div:nth-child(3) {
  flex-basis: 20% !important;
}


@media (max-width: 768px) {
  [data-label="Link"] a {
    word-break: keep-all;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100px;
    display: inline-block !important;
  }

  ul.order-tabs li {
    flex-basis: 47%;
  }

  .status-data {
    flex-direction: column;
    gap: 10px;
  }

  table#service-table a {
    width: 100%;
    margin-top: 10px;
    margin-top: 20px;
    display: block !important;
    max-width: 250px;
  }


  ul.nt-select-cats,
  ul.nt-sc {
    flex-wrap: wrap;

  }

  li.flex.flex-nowrap.items-center {
    flex-basis: 100%;
  }


}


/** Contact page */
a.contact-infp {
  display: flex;
  column-gap: 10px;
  margin-bottom: 10px;
}

table#service-table tbody td.fav+td {
  font-weight: 500 !important;
  font-size: 15px;
}



/* ========================================================================
   5) Data Tables: Tickets
   ======================================================================== */
#tickets-table {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

/* Table Styling */
#tickets-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  margin: 20px 0;
}

#tickets-table thead {
  background-color: #f4f4f4;
  color: #FFF;
  text-align: start;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
}

#tickets-table th,
#tickets-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

#tickets-table th {

  background: #03bff3 !important;
}

#tickets-table tr th:first-child {
  border-radius: 15px 0px 0px 15px;
}

#tickets-table tr th:last-child {
  border-radius: 0px 15px 15px 0px;
}

#tickets-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

#tickets-table tr:hover {
  background-color: #f1f1f1;
}

.nowrap {
  white-space: nowrap;
}


#tickets-table tr:nth-child(even) {
  background-color: #FFF;
}

/* Dark: tables (tickets) */
.dark #tickets-table {
  color: var(--color-text-primary);
}

.dark #tickets-table thead {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
}

.dark #tickets-table th,
.dark #tickets-table td {
  border-bottom: 1px solid var(--color-border);
}

.dark #tickets-table tr:nth-child(even) {
  background-color: transparent;
}

.dark #tickets-table tr:hover {
  background-color: #0F1624;
}





/* Responsive Styling */
@media (max-width: 768px) {
  #tickets-table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  @media (max-width: 768px) {
    #tickets-table tbody {
      width: 100%;
      display: block;
    }
  }

  #tickets-table thead {
    display: none;
  }

  #tickets-table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    border-color: rgb(0 191 243 / var(--tw-border-opacity));
    padding: 10px;
    background: #FFF !important;
  }

  #tickets-table td {
    display: block;
    text-align: right;
    padding: 10px;
    position: relative;
    border-bottom: 1px solid #ddd;
  }

  #tickets-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 10px;
    font-weight: bold;
    text-align: left;
  }

  #tickets-table td:last-child {
    border-bottom: 0;
  }
}




[data-label="Link"] {
  text-align: left !important;
  word-break: break-all;
}

table#service-table a {
  border: none;
  word-break: break-all !important;
  word-break: break-all;
  overflow: hidden;
  text-wrap: wrap;
  padding: 0;
}


.sidebar__menu ul li:not(.active) .badge {
  background: #e15327 !important;
  color: #FFF;
  font-size: 14px;
  display: inline-block;
}


table#service-table tbody tr td {
  text-align: left !important;
}


@media screen and (max-width: 600px) {
  .dash_card .tabs {
    flex-wrap: wrap;
    gap: 10px;
    flex-wrap: wrap;
    align-content: center;
    /* flex-direction: column; */
    align-items: center;
  }

  .dash_card .tabs>* {
    flex-basis: 33% !important;
    flex-grow: 1 !important;
  }

  .dash_card_search .nav.nav-pills {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
}

p,
li {
  font-weight: inherit !important;
  font-size: 15px !important;
}

article.slick-slide.slick-active p,
.faqs p {
  font-size: 13px !important;
}

.reviews__rating {
  padding-top: 30px;
}

blockquote.text-xl.md\:text-2xl {
  color: rgb(27 54 95 / var(--tw-text-opacity));
}

#notify-wrapper {
  display: none;
}

.google-btn {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  border-radius: inherit;
}

.google-login {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  letter-spacing: 0.01em;
  text-align: center;
}

.google-login-wrap {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, #1bc56f 0%, #00bff3 100%);
  border: 1px solid rgba(0, 191, 243, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-left: 0;
  box-shadow: 0 12px 24px rgba(0, 191, 243, 0.2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-login-wrap:hover,
.google-login-wrap:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 191, 243, 0.28);
}

.frm-btn-wrap .btn.btn-primary {
  flex: 0 0 48%;
  max-width: 48%;
}

.google-login svg {
  width: 22px;
  height: 22px;
  display: inline-block;
  margin: 0;
}

.have-acc {
  margin-left: 0;
  margin-top: 12px;
  font-size: 17px;
  color: #0b0a1e;
  font-size: 16px;
  font-weight: 500;
  display: flex;
}

.signin_btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.signin_btns .form_btns,
.signin_btns .google-login-wrap {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .signin_btns {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }

  .signin_btns .form_btns,
  .signin_btns .google-login-wrap {
    flex: 1 1 0%;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .signin_btns .form_btns {
    display: flex;
  }
}

@media (max-width: 640px) {
  .google-login {
    font-size: 14px;
  }
}

.payment__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.685rem;
}

.payment_black_image {
  margin-top: 20px;
}

.modal-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid #e9ecef;
}

.mt-5 {
  margin-top: 5rem !important;
}


/* Notifications New in tickets and ticket menu */
.new-indicator {
  background-color: #ff0000;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 8px;
  animation: pulse 1.5s infinite;
  /* Add animation to the badge */
}

.hiddennew {
  display: none;
}

.badge {
  animation: pulse 1.5s infinite;
  /* Add pulsing animation */
}

/* Keyframes for pulsing effect */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}


.dash_card_search .nav.nav-pills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.dash_card_search .search .input-group {
  display: flex;
  border: 2px solid #00bff3;
  border-radius: 10px;
}

.dash_card_search .search .input-group .input-group-btn {
  background: #00bff3;
  color: white;
}




/* AI Tools */

.ai-tools__hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  color: #0a2753;
  background-color: #f5f9ff;
}

.ai-tools__hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0, 191, 243, 0.18) 0%, rgba(207, 229, 255, 0.85) 45%, #f0f7ff 100%);
  z-index: -2;
}

.ai-tools__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 252, 255, 0.75) 55%, rgba(190, 227, 248, 0.55) 100%);
  z-index: -1;
}

.ai-tools__hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 992px) {
  .ai-tools__hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ai-tools__hero-content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.ai-tools__hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 191, 243, 0.14);
  color: #005a87;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.ai-tools__hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00BFF3;
}

.ai-tools__hero-title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.15;
  font-weight: 600;
  margin: 0;
}

.ai-tools__hero-description {
  font-size: 17px;
  line-height: 1.7;
  color: #475569;
}

.ai-tools__hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (min-width: 576px) {
  .ai-tools__hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

.ai-tools__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #00BFF3;
  color: #041326;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 191, 243, 0.35);
}

.ai-tools__cta:hover,
.ai-tools__cta:focus {
  background: #26D4FF;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 191, 243, 0.45);
  color: #041326;
}

.ai-tools__hero-note {
  font-size: 14px;
  color: #1e293b;
  margin: 0;
}

.ai-tools__hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.ai-tools__hero-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(2, 132, 199, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  font-size: 14px;
  color: #0f172a;
}

.ai-tools__hero-highlights i {
  font-size: 16px;
  color: #00BFF3;
}

.ai-tools__hero-visual {
  display: flex;
  justify-content: center;
  flex: 1;
}

.ai-tools__hero-figure {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0;
}

.ai-tools__hero-figure::after {
  content: "";
  position: absolute;
  inset: 12% 8% -10% 8%;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 100%);
  filter: blur(0px);
  z-index: -1;
}

.ai-tools__hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.ai-tools__hero-shape {
  position: absolute;
  bottom: -50%;
  left: 0;
  max-width: 480px;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .ai-tools__hero-shape {
    bottom: -10%;
  }
}

@media (min-width: 1200px) {
  .ai-tools__hero-shape {
    bottom: 0;
  }
}

.ai-tools__section {
  background: linear-gradient(180deg, #EBFAFE 0%, #FFFFFF 100%);
  padding: 60px 0 40px;
}

.ai-tools__category {
  margin-top: 56px;
}

.ai-tools__category:first-of-type {
  margin-top: 0;
}

.ai-tools__section-title {
  font-size: 28px;
  font-weight: 600;
  color: #0a2753;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .ai-tools__section-title {
    font-size: 32px;
  }
}

.ai-tools__section-title span {
  color: var(--accent-color);
}

.ai-tools__section-description {
  max-width: 720px;
  color: #475569;
}

.ai-tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.ai-tools__card {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(10, 39, 83, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: 100%;
}

.ai-tools__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(10, 39, 83, 0.12);
}

.ai-tools__icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--accent-color);
  background: var(--accent-color-soft);
}

.ai-tools__card-title {
  font-size: 20px;
  font-weight: 600;
  color: #0a2753;
  margin: 0;
}

.ai-tools__tool-link span {
  color: var(--accent-color);
  transition: color 0.2s ease;
}

.ai-tools__tool-link:hover span,
.ai-tools__tool-link:focus span {
  color: #0a2753;
}

.ai-tools__card-description {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.ai-tools__card-description:last-child {
  margin-bottom: 0;
}

html.dark .ai-tools__hero {
  color: var(--color-text-primary);
  background-color: #041326;
}

html.dark .ai-tools__hero-backdrop {
  background: radial-gradient(circle at 10% 0%, rgba(0, 191, 243, 0.28) 0%, rgba(9, 26, 58, 0.9) 60%, #000b1c 100%);
}

html.dark .ai-tools__hero::before {
  background: linear-gradient(130deg, rgba(0, 0, 0, 0.55) 0%, rgba(4, 33, 78, 0.65) 50%, rgba(0, 191, 243, 0.2) 100%);
}

html.dark .ai-tools__hero-description {
  color: rgba(247, 251, 255, 0.78);
}

html.dark .ai-tools__hero-note {
  color: rgba(241, 248, 255, 0.65);
}

html.dark .ai-tools__hero-highlights li {
  background: rgba(4, 23, 45, 0.65);
  border-color: rgba(0, 191, 243, 0.28);
  color: rgba(243, 248, 255, 0.86);
}

html.dark .ai-tools__hero-figure::after {
  background: linear-gradient(180deg, rgba(0, 191, 243, 0.35) 0%, rgba(0, 0, 0, 0) 100%);
}

html.dark .ai-tools__section {
  background: linear-gradient(180deg, #07162c 0%, #041326 100%);
}

html.dark .ai-tools__section-title {
  color: var(--color-text-primary);
}

html.dark .ai-tools__section-description {
  color: var(--color-text-secondary);
}

html.dark .ai-tools__card {
  background: var(--color-surface);
  box-shadow: var(--shadow-card-dark);
  border: 1px solid rgba(0, 191, 243, 0.18);
}

html.dark .ai-tools__card:hover {
  box-shadow: 0 18px 40px rgba(0, 191, 243, 0.18);
}

html.dark .ai-tools__card-title {
  color: var(--color-text-primary);
}

html.dark .ai-tools__tool-link span {
  color: var(--color-accent);
}

html.dark .ai-tools__tool-link:hover span,
html.dark .ai-tools__tool-link:focus span {
  color: var(--color-text-primary);
}

html.dark .ai-tools__card-description {
  color: var(--color-text-secondary);
}

.dash_card .tab {
  color: #0a2753;
  font-size: 16px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .mobile-cards {
    display: none;
  }
}

@media (max-width: 767px) {
  .desktop-table {
    display: none;
  }
}

.Canceled-border {
  border-color: #FF4C4C;
}

.Partial-border {
  border-color: #FFD700;
}

ul.refund-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  flex-direction: row;
  align-content: center;
  align-items: center;
}

ul.refund-tabs .input-group {
  display: flex;
}

/* Custom styles for the bonus modal */
.bonus-modal {
  border-radius: 1rem;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  font-family: "Poppins", sans-serif;
}

.bonus-header {
  background: linear-gradient(135deg, #ecf9ff 0%, #f6fcff 100%);
  /* replicate very light pastel section backgroundsã€138422794865479â€ L130-L146ã€‘ */
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.bonus-icon {
  background-color: #3ab54b;
  /* green similar to completed statusã€138422794865479â€ L279-L281ã€‘ */
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.bonus-title {
  color: #00bff3;
  /* turquoise blue from the siteã€138422794865479â€ L130-L146ã€‘ */
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
}

.bonus-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #999;
  font-size: 1.5rem;
  border: none;
  background: transparent;
  z-index: 10;
}

.bonus-body {
  padding: 1rem 2rem 2rem;
  text-align: center;
}

.bonus-description {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bonus-button {
  background: #3ab54b;
  /* green CTA matching the siteâ€™s accentsã€138422794865479â€ L279-L281ã€‘ */
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #000;
  display: inline-block;
  transition: background 0.3s ease;
}

.bonus-button:hover {
  background: #329e43;
  text-decoration: none;
  color: #000;
}

/* Dark mode adaptation (optional) */
html.dark .bonus-modal {
  background-color: #151616;
  color: #f1f1f1;
}

html.dark .bonus-header {
  background: #1e293b;
}

html.dark .bonus-icon {
  background-color: #3ab54b;
}

html.dark .bonus-title {
  color: #00bff3;
}

/* Custom styles for the insufficient balance modal */
.balance-modal {
  border-radius: 1rem;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  font-family: "Poppins", sans-serif;
}

.balance-header {
  background: linear-gradient(135deg, #fff7e6 0%, #fffdf6 100%);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.balance-icon {
  background-color: #f97316;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.balance-title {
  color: #f97316;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
}

.balance-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #999;
  font-size: 1.5rem;
  border: none;
  background: transparent;
  z-index: 10;
}

.balance-body {
  padding: 1rem 2rem 2rem;
  text-align: center;
}

.balance-description {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.balance-button {
  background: #f97316;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #000;
  display: inline-block;
  transition: background 0.3s ease;
}

.balance-button:hover {
  background: #ea580c;
  text-decoration: none;
  color: #000;
}

html.dark .balance-modal {
  background-color: #151616;
  color: #f1f1f1;
}

html.dark .balance-header {
  background: #374151;
}

html.dark .balance-icon {
  background-color: #f97316;
}

html.dark .balance-title {
  color: #f97316;
}

/* Accessibility contrast adjustments */
.nav-link.active {
  color: #000 !important;
}

.btn--primary {
  color: #fff !important;
}

.text__highlight {
  color: #000;
}

.dark .text__highlight {
  --tw-bg-opacity: 1;
  background-color: #ebfafe;
}

.text__highlight--dark {}

.google-login {
  color: #000;
}

.text-slate-50,
.text-slate-200 {
  color: #000 !important;
}

/* Dark: restore readable slate text colors */
html.dark .text-slate-50,
html.dark .text-slate-200 {
  color: var(--color-text-primary) !important;
}

/* Enhanced color contrast for accessibility */
.btn--primary {
  background-color: #00bff3;
  color: #ffffff !important;
}

.btn--secondary {
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
}

.dark .btn--secondary {
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.btn--primary:hover {
  background-color: #004080;
}

/* Dark: primary CTA on hero/signin */
.dark .btn--primary {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-bg) !important;
}

.dark .btn--primary:hover,
.dark .btn--primary:focus {
  background-color: var(--color-accent-hover) !important;
  border-color: var(--color-accent-hover) !important;
}

.hero {
  background: #EBFAFE;
}

.dark .hero {
  background: linear-gradient(135deg, #0E1B29 0%, #13283B 100%);
}

.hero__heading,
.hero__intro {
  color: #0a2753;
}

/* Dark: hero heading/body text */
.dark .hero__heading,
.dark .hero__intro,
.dark .hero p {
  color: var(--color-text-primary);
}

/* Dark: hero highlight chip */
.dark .hero .text__highlight {
  background-color: rgba(20, 241, 185, 0.08);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
}

.header_actions a:not(.btn--primary),
.mt-auto.flex.flex-col.space-y-8>a:not(.btn--primary) {
  color: #0056b3;
  font-weight: 600;
}


/* Accessible color contrast adjustments */
.text-secondary-main,
.text-primary-main {
  color: #0056b3;
}

.bg-primary-main {
  background-color: #00bff3 !important;
}

.bg-primary-main:hover {
  background-color: #004080 !important;
}

.border-primary-main {
  border-color: #0056b3 !important;
}

.border-secondary-main {
  border-color: #0056b3 !important;
}

/* Sticky header styles -> make fixed so it always stays on top */
.main-header,
.dash-header {
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: #EBFAFE;
  transition: box-shadow 0.3s ease, transform .24s ease;
  will-change: transform;
}

.dark .main-header,
.dark .dash-header {
  background: var(--color-surface) !important;
  color: var(--color-text-primary);
  border-bottom-color: rgba(88, 130, 193, 0.45);
}

/* Auto-hide header on scroll */
.main-header.header--hidden,
.dash-header.header--hidden {
  transform: translateY(-100%);
}

/* Reserve space for fixed header to prevent content overlap */
/* body { padding-top: var(--header-hight); } */

/* Header (guest) polish */
.main-header {
  border-bottom: 1px solid var(--color-border);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  backdrop-filter: saturate(1.2) blur(6px);
}

.main-header nav {
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
  min-height: var(--header-hight);
  gap: 1.25rem;
}

.main-header .logo img {
  height: auto;
  width: 150px;
}

.main-header .nav__main {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.main-header .nav__main li.nav-link {
  padding: 0 !important;
  border-radius: 9999px;
}

.main-header .nav__main li a {
  display: block;
  padding: .5rem .875rem;
  border-radius: 9999px;
  color: #1f2a44;
  font-weight: 500;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}

.main-header .nav__main li:hover a {
  background: rgba(0, 191, 243, 0.10);
  color: #0a2753;
}

.main-header .nav__main li.active a {
  background: rgba(0, 191, 243, 0.16);
  color: #0056b3;
}

.main-header .header_actions {
  gap: 1rem;
}

.main-header .header_actions .btn--primary {
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
}

.main-header .header_actions a:not(.btn--primary) {
  font-weight: 600;
  color: #0a2753;
}

.main-header .header_actions a:not(.btn--primary):hover {
  color: #0056b3;
}

/* Header: dark */
.dark .main-header {
  border-bottom-color: #0a3a62;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.dark .main-header .nav__main li a {
  color: var(--color-text-primary);
}

.dark .main-header .nav__main li:hover a {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-primary);
}

.dark .main-header .nav__main li.active a {
  background: rgba(0, 212, 166, 0.14);
  color: var(--color-text-primary);
}

.dark .main-header .header_actions a:not(.btn--primary) {
  color: var(--color-text-primary);
}

.dark .main-header .header_actions a:not(.btn--primary):hover {
  color: var(--color-accent);
}

/* Sign-in page: light + dark styles */
.signIn_form {
  background: #ffffff;
  border: 1px solid #E6EEF5;
  border-radius: 1rem;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(18, 38, 63, 0.12);
}

.signIn_form .input-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FDFF;
  border: 1px solid #85E0F9;
  border-radius: 12px;
  padding: 6px 10px;
}

.signIn_form .input-field>.bg-primary-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  background: #00BFF3;
  color: #fff;
}

.signIn_form .input-field input {
  background: transparent;
  border: none;
  outline: none;
  color: #0a2753;
  font-size: 0.95rem;
  flex: 1;
}

.signIn_form .input-field input::placeholder {
  color: #6C7A8A;
}

.signIn_form .form-info label {
  color: #3f4b5a;
  font-size: 0.875rem;
}

.signIn_form .form-info a {
  color: #0056b3;
  font-weight: 600;
}

.signIn_form .form-info a:hover {
  color: #004080;
}

.signIn_form .signin_btns .btn.btn--primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.signIn_form input[type="checkbox"] {
  accent-color: #00BFF3;
}

/* Sign-in: focus styles for crisp interactions */
.signIn_form .input-field:focus-within {
  border-color: #00bff3;
  box-shadow: var(--ring-primary);
}

.signIn_form .signin_btns .btn {
  height: 50px;
  border-radius: 12px;
}

.signIn_form .have-acc {
  color: #4A5568;
}

.signIn_form .have-acc a {
  color: #0056b3;
  font-weight: 700;
}

.signIn_form .have-acc a:hover {
  color: #004080;
}

/* Dark: sign-in */
.dark .signIn_form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(11, 15, 25, 0.35) inset;
}

.dark .signIn_form .input-field {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--color-border);
}

.dark .signIn_form .input-field>.bg-primary-main {
  /* Avoid pale/white icon chip in dark mode; use vivid accent gradient */
  background: linear-gradient(135deg, #0ecbff 0%, #00bff3 60%, #07d1b9 100%) !important;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 16px rgba(0, 191, 243, 0.22);
}

.dark .signIn_form .input-field>.bg-primary-main svg,
.dark .signIn_form .input-field>.bg-primary-main i {
  color: #ffffff;
  fill: #ffffff;
  stroke: #ffffff;
}

.dark .signIn_form .input-field input {
  color: var(--color-text-primary);
}

.dark .signIn_form .input-field input::placeholder {
  color: var(--color-text-secondary);
}

.dark .signIn_form .form-info label {
  color: var(--color-text-secondary);
}

.dark .signIn_form .form-info a {
  color: var(--color-accent);
}

.dark .signIn_form .form-info a:hover {
  color: var(--color-accent-hover);
}

.dark .signIn_form input[type="checkbox"] {
  accent-color: var(--color-accent);
}

/* Dark: focus + link contrast on sign-in */
.dark .signIn_form .input-field:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dark .signIn_form .have-acc {
  color: var(--color-text-secondary);
}

.dark .signIn_form .have-acc a {
  color: var(--color-accent);
}

.dark .signIn_form .have-acc a:hover {
  color: var(--color-accent-hover);
}

/* Dark: header links (non-CTA) */
.dark .header_actions a:not(.btn--primary),
.dark .mt-auto.flex.flex-col.space-y-8>a:not(.btn--primary) {
  color: var(--color-text-primary);
}

.dark .header_actions a:not(.btn--primary):hover,
.dark .mt-auto.flex.flex-col.space-y-8>a:not(.btn--primary):hover {
  color: var(--color-accent);
}

/* Dark: Google login button tone */
.dark .google-login-wrap {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.95) 0%, rgba(16, 185, 129, 0.85) 100%);
  border-color: transparent;
}

.dark .google-login {
  color: var(--color-bg);
}

.main-header.active,
.dash-header.active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Overlay for sidebar and menu */
.sidebar-overlay,
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  /* kept for backwards compatibility with JS */
  opacity: 0;
  transition: opacity .22s ease;
  z-index: 40;
}

.dark .sidebar-overlay,
.dark .menu-overlay {
  background: rgba(6, 16, 32, 0.65);
}

.sidebar-overlay.active,
.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Ensure sidebar overlay sits above app chrome */
.sidebar-overlay {
  z-index: 50;
}

/* Sidebar toggle visibility */
.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* hamburger/close swap */
.sidebar-toggle .icon-close {
  display: none;
}

.sidebar-toggle.is-open .icon-burger {
  display: none;
}

.sidebar-toggle.is-open .icon-close {
  display: inline;
}

@media (max-width: 1023px) {
  .dash-hamb {
    display: none !important;
  }
}

/* Collapsible sidebar styles */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  min-width: var(--sidebar-collapsed-width);
  flex: 0 0 var(--sidebar-collapsed-width);
  overflow: hidden;
}

.sidebar.collapsed header {
  display: none;
}

.sidebar.collapsed .sidebar__menu ul li a {
  justify-content: center;
  padding: 0.75rem;
}

.sidebar.collapsed .sidebar-text {
  display: none;
}

.sidebar__logo-square {
  display: none;
  padding: 1rem 0;
  justify-content: center;
}

/* Dashboard header logo size */
.dash-header img[alt="Marketerum logo"] {
  max-height: calc(var(--header-hight) - 16px);
  height: auto;
}

.sidebar__logo-square img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.sidebar.collapsed .sidebar__logo-square {
  display: flex !important;
}

.dash-header h3:where(.dark, .dark *),
.active-user__name:not(.sidebar .active-user__name):where(.dark, .dark *) {
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity));
}

/* ========================================================================
   4) Layout: Sidebar
   ======================================================================== */
#mobile-drawer header {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.dark #mobile-drawer header {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.sidebar {
  position: fixed;
  z-index: 60;
  top: 0;
  bottom: 0;
  left: -100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  width: min(var(--sidebar-width), 100vw);
  max-width: 100%;
  border-right: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), box-shadow .2s ease, width .2s ease;
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 0;
    bottom: auto;
    left: 0;
    margin-top: 0;
    transform: none;
    box-shadow: none;
    height: 100dvh;
    min-height: 100dvh;
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    padding-top: calc(env(safe-area-inset-top, 0) + 1rem);
    padding-bottom: calc(env(safe-area-inset-bottom, 0) + 1.5rem);
  }

  @supports not (height: 100dvh) {
    .sidebar {
      height: calc(var(--vh));
      min-height: calc(var(--vh));
    }
  }

  .sidebar.active {
    transform: none;
    box-shadow: none;
  }
}

.sidebar.active {
  z-index: 60;
}

@media not all and (min-width: 1024px) {

  /* Mobile drawer layout */
  .sidebar {
    margin-top: 0;
    width: min(90vw, 360px);
    left: 0;
    transform: translateX(-100%);
    padding-top: calc(env(safe-area-inset-top, 0) + 1.25rem);
    padding-bottom: calc(env(safe-area-inset-bottom, 0) + 1.25rem);
    border-right: none;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
  }

  @supports (-webkit-overflow-scrolling: touch) {
    #drawer-scroll {
      -webkit-overflow-scrolling: touch;
    }
  }

  /* Keep the small-screen header logo visible when sidebar is open */
  .sidebar.active~.dash_wrapper .dash-header .lg\:hidden {
    display: block !important;
  }

  .sidebar.active {
    transform: translateX(0);
  }
}

@media (max-width: 1023px) {
  .sidebar {
    max-height: 100dvh;
  }

  @supports not (height: 100dvh) {
    .sidebar {
      max-height: calc(var(--vh));
    }
  }

  /* If menu grows taller than viewport, allow it to scroll independently */
  .sidebar__menu {
    max-height: none;
    overflow-y: visible;
  }

  @supports (-webkit-overflow-scrolling: touch) {
    .sidebar__menu {
      -webkit-overflow-scrolling: auto;
    }
  }
}

/* Dark drawer surface on mobile */
@media (max-width: 1023px) {
  .sidebar:where(.dark, .dark *) {
    background-color: var(--color-surface) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  }
}

/* On small screens, hide the internal sidebar header so only main header logo shows */
@media (max-width: 1023px) {

  /* Show the sidebar header again so balance/logout/currency appear */
  #drawer-scroll>.px-4>header {
    display: block !important;
  }

  /* Hide only the top logo row inside the sidebar header to avoid double logo */
  #drawer-scroll>.px-4>header>.mb-8 {
    display: none !important;
  }

  #drawer-scroll>.px-4 {
    padding: 14px 12px !important;
  }

  /* Always show labels on mobile, even if a 'collapsed' class is present */
  .sidebar .sidebar-text {
    display: inline !important;
  }

  .sidebar.collapsed .sidebar-text {
    display: inline !important;
  }

  .sidebar.collapsed {
    width: min(65vw, 230px);
    min-width: 0;
    flex: 0 0 auto;
  }

  .sidebar.collapsed .sidebar__menu ul li a {
    justify-content: flex-start !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  .sidebar__menu ul li a {
    height: 44px;
    border-radius: 12px;
    padding-left: 12px;
    padding-right: 12px;
    gap: .5rem;
    font-size: 0.9375rem;
  }

  .sidebar__menu ul li a {
    padding: 0.75rem 0.875rem;
  }

  .sidebar__menu ul li {
    border-radius: 12px;
  }

  .sidebar__menu ul li .sidebar__icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
  }

  .sidebar__menu ul li svg,
  .sidebar__menu ul li .navbar-icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* Prevent background scroll when sidebar is open */
html.no-scroll,
body.no-scroll {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}

.sidebar__menu {
  height: 100%;
  /*min-h-screen*/
}

.sidebar__menu ul li {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  min-width: -webkit-fill-available;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  border-radius: 1rem;
  color: var(--color-text-secondary);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.sidebar__menu ul li.active {
  background: linear-gradient(135deg, rgba(0, 191, 243, 1) 0%, rgba(0, 149, 213, 1) 100%);
  font-weight: 600;
  color: #fff;
  box-shadow: 0px 16px 32px rgba(12, 116, 168, 0.28);
}

.sidebar__menu ul li a {
  display: flex;
  align-items: center;
  -moz-column-gap: 0.75rem;
  column-gap: 0.75rem;
  flex: 1 1 auto;
  width: 100%;
  min-height: 1.75rem;
  padding: 0.5rem 0.5rem;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.sidebar__menu ul li.active a {
  color: inherit;
}

.sidebar__menu ul li a:focus-visible {
  outline: none;
  background: rgba(0, 191, 243, 0.16);
  box-shadow: 0 0 0 3px rgba(0, 191, 243, 0.35);
}

.sidebar__menu ul li.active a:focus-visible {
  background: rgba(0, 191, 243, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.sidebar__menu ul li:not(.active):hover {
  background: linear-gradient(135deg, rgba(0, 191, 243, 0.14) 0%, rgba(0, 191, 243, 0.08) 100%);
  color: var(--color-text-primary);
  box-shadow: 0px 12px 24px rgba(15, 76, 129, 0.08);
}

.sidebar__menu ul li:not(.active):hover a {
  color: inherit;
}

.sidebar__menu ul li:not(.active):hover .sidebar-text {
  color: inherit;
}

.sidebar__menu ul li .sidebar__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: rgba(0, 191, 243, 0.08);
  color: var(--color-accent);
  flex-shrink: 0;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sidebar__menu ul li .sidebar__icon-wrapper .navbar-icon {
  font-size: 1.05rem;
  line-height: 1;
  color: inherit;
}

.sidebar__menu ul li .sidebar-text {
  display: inline-flex;
  align-items: center;
  font-size: 0.9875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color .2s ease;
}

.sidebar__menu ul li .sidebar__icon-wrapper svg {
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar__menu ul li .sidebar__icon-wrapper svg path {
  transition: fill .2s ease, stroke .2s ease;
}

.sidebar__menu ul li:not(.active):hover .sidebar__icon-wrapper {
  background: rgba(0, 191, 243, 0.18);
  color: var(--color-text-primary);
  box-shadow: 0px 10px 22px rgba(0, 191, 243, 0.18);
  transform: translateY(-1px);
}

/* Mobile hover/active polish similar to TailAdmin */
@media (max-width: 1023px) {
  .sidebar__menu ul li a:hover {
    background: #F7FBFF;
  }

  .dark .sidebar__menu ul li a:hover {
    background: rgba(255, 255, 255, .06);
  }
}

.sidebar__menu ul li.active .sidebar__icon-wrapper {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0px 14px 28px rgba(0, 68, 102, 0.22);
  transform: translateY(-1px);
}

.sidebar__menu ul li.active .sidebar__icon-wrapper .navbar-icon {
  color: inherit;
}

.sidebar__menu ul li svg {
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar__menu ul li svg path:where(.dark, .dark *) {
  fill: var(--color-text-secondary);
}

.sidebar__menu ul li.active svg path {
  fill: currentColor;
}

.sidebar__menu ul li.active path:where(.dark, .dark *) {
  fill: currentColor;
}

.sidebar__menu ul li.active .sidebar__icon-wrapper svg {
  color: inherit;
  fill: currentColor;
}

/* Sidebar: dark mode */
.dark .sidebar {
  background-color: var(--color-surface) !important;
  border-color: rgba(88, 130, 193, 0.45) !important;
}

.dark .sidebar__menu ul li {
  color: var(--color-text-secondary);
}

.dark .sidebar__menu ul li a {
  color: inherit;
}

/* Sidebar: stronger active indicator + hover feedback */
.dark .sidebar__menu ul li:not(.active):hover {
  background: linear-gradient(135deg, rgba(74, 216, 255, 0.28) 0%, rgba(74, 216, 255, 0.16) 100%);
  color: var(--color-text-primary);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.dark .sidebar__menu ul li:not(.active):hover a {
  color: inherit;
}

.dark .sidebar__menu ul li svg path {
  fill: var(--color-text-secondary);
  transition: fill .2s ease;
}

.dark .sidebar__menu ul li:not(.active):hover svg path {
  fill: var(--color-text-primary);
}

.dark .sidebar__menu ul li .sidebar__icon-wrapper {
  background-color: rgba(74, 216, 255, 0.14);
  color: rgba(186, 200, 224, 0.95);
}

.dark .sidebar__menu ul li:not(.active):hover .sidebar__icon-wrapper {
  background-color: rgba(74, 216, 255, 0.28);
  color: var(--color-text-primary);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.dark .sidebar__menu ul li.active {
  background: linear-gradient(135deg, rgba(74, 216, 255, 0.36) 0%, rgba(74, 216, 255, 0.22) 100%);
  color: var(--color-text-primary);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.dark .sidebar__menu ul li.active a {
  color: inherit;
}

.dark .sidebar__menu ul li.active .sidebar__icon-wrapper {
  background-color: rgba(14, 49, 85, 0.75);
  color: var(--color-text-primary);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

.dark .sidebar__menu ul li.active svg path {
  fill: currentColor;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #00bff3;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f9;
}

/* Dark: scrollbars */
.dark ::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
}

.dark ::-webkit-scrollbar-track {
  background: #0F1624;
}

/* Custom layout for New Order page */
@media (min-width: 1024px) {
  .order-form-card {
    flex-basis: 60%;
  }

  .order-desc-card {
    flex-basis: 40%;
  }
}

/* ========================================================================
   6) Forms: New Order
   ======================================================================== */
/* New Order: dark containers */
.dark .dash_card,
.dark .order-form-card,
.dark .order-desc-card {
  background-color: var(--color-surface) !important;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

/* New Order: tabs */
.dark .dash_card .tabs {
  gap: 8px;
}

.dark .dash_card .tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: 10px;
}

.dark .dash_card .tab.active,
.dark .dash_card .tab.active-tab {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid #00BFF3;
  color: var(--color-text-primary);
}

/* New Order: platform chips row */
.dark #new-order-cats .nwo-cat-btn {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--color-text-primary) !important;
}

.dark #new-order-cats .nwo-cat-btn .label {
  color: var(--color-text-primary) !important;
}

.dark #new-order-cats .nwo-cat-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.dark #new-order-cats .nwo-cat-btn.is-active {
  border-color: #00BFF3;
  box-shadow: 0 0 0 3px rgba(0, 191, 243, 0.18);
}

/* New Order: search inputs (left and right) */
.dark #new-order-search input,
.dark #history-search .input.search,
.dark .service-desc input.search,
.dark .s-dropdown,
.dark .select2-selection--single {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--color-text-primary) !important;
}

.dark .dark\:text-slate-100 {
  color: #f1f5f9 !important;
}

.dark .dark\:text-slate-300 {
  color: #cbd5f5 !important;
}

.dark .dark\:bg-slate-700 {
  background-color: #334155 !important;
}

.dark .dark\:bg-slate-800 {
  background-color: #1e293b !important;
}

.dark .dark\:border-slate-600 {
  border-color: #475569 !important;
}

.dark #new-order-search input::placeholder,
.dark #history-search .input.search::placeholder,
.dark .service-desc input.search::placeholder {
  color: var(--color-text-secondary);
}

/* New Order: description panel */
.dark #description_container,
.dark .panel-body {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* New Order: form labels and help text */
.dark .order-form-card .form-label,
.dark .order-form-card label,
.dark .order-form-card .terms {
  color: var(--color-text-secondary);
}

/* New Order: inputs/selects inside order form */
.dark #order-form input,
.dark #order-form textarea,
.dark #order-form select,
.dark #order-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
  /* remove inner highlight that looks like a white border */
  box-shadow: none;
}

/* ========================================================================
   2) Base + Accessibility (type scale, colors)
   ======================================================================== */
html {
  font-size: 16px;
}

body,
.dashboard {
  color: var(--color-text-primary);
  font-size: 0.9375rem;
  /* 15px */
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-primary);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5rem;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

h4 {
  font-size: 1rem;
}

label,
.form-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

small,
.text-muted {
  color: var(--color-text-secondary) !important;
  font-size: 0.8125rem;
}

.order-form-card .help-block,
.order-form-card .form-text,
.order-form-card small {
  font-size: 0.75rem;
  color: #6b7280;
}

.dark .order-form-card .help-block,
.dark .order-form-card .form-text,
.dark .order-form-card small {
  color: rgba(255, 255, 255, 0.5);
}

/* Section-specific heading polish */
.order-desc-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0a2753;
}

.dark .order-desc-card h3 {
  color: var(--color-text-primary);
}

#description_container {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.dark #order-form input::placeholder,
.dark #order-form textarea::placeholder {
  color: var(--color-text-secondary);
}

.dark #order-form input[type="checkbox"] {
  accent-color: var(--color-accent);
}

.dark #order-form input:focus,
.dark #order-form textarea:focus,
.dark #order-form select:focus,
.dark #order-form .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 166, 0.20);
  outline: none;
}

/* New Order: select2 inside the form */
.dark #order-form .select2-selection--single {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--color-text-primary) !important;
  box-shadow: none !important;
}

.dark #order-form .select2-selection__rendered {
  color: var(--color-text-primary) !important;
}

.dark #order-form .select2-selection__placeholder {
  color: var(--color-text-secondary) !important;
}

.dark #order-form .select2-search__field {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* New Order: services dropdown trigger/button */
.dark button#services-dropdown-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
}

.dark #services-dropdown-list {
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dark #services-dropdown-list .order-sItem {
  color: var(--color-text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dark #services-dropdown-list .order-sItem:hover,
.dark #services-dropdown-list .order-sItem:focus {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
}

/* New Order: select2 pieces */
.dark .select2-selection__rendered {
  color: var(--color-text-primary) !important;
}

.dark .select2-selection__arrow b {
  border-color: var(--color-text-secondary) transparent transparent transparent !important;
}



/* Right card heading polish */
.dark .order-desc-card h3 {
  color: var(--color-text-primary);
}

.s-dropdown {
  width: 100%;
  border-radius: 0.75rem;
  background-color: rgb(235 250 254 / var(--tw-bg-opacity));
  color: rgb(147 160 179 / var(--tw-text-opacity));
  border: 0.2rem solid #85e0f9;
  margin-top: 1rem;
}

.s-dropdown button {
  min-height: auto !important;
  min-width: 100% !important;
  text-align: left !important;
  padding: 1rem;
  border-radius: 10px;
}

.s-dropdown dropdown-menu {
  overflow-y: auto;
  width: 100%;
  position: relative !important;
  background-color: white;
  padding: 5px;
}

.s-dropdown .dropdown-menu>button {
  display: block;
  padding: 3px 10px;
  clear: both;
  font-weight: 600;
  line-height: 1.42857143;
  color: var(--color-drop-down-list-text);
  text-align: left;
  width: 100%;
  border: none;
  border-bottom: 1px solid hsla(200, 17%, 69%, 0.141);
  min-height: auto !important;
  padding: 0.6rem;
  border-radius: 10px;
}

.select2-selection__id {
  background-color: orangered;
  border-radius: 10px;
  padding: 1px 10px;
  color: white;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  text-overflow: initial !important;
  white-space: normal !important;
}

.select2-container--default .select2-results>.select2-results__options {
  max-height: 100% !important;
}

/* .dashboard input:not(.search),
.dashboard textarea,
.dashboard select {
    background-color: #f8fdff;
    border: 1px solid #00bff3;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
} */

/* Dark: dashboard form controls */
.dark .dashboard input:not(.search),
.dark .dashboard textarea,
.dark .dashboard select,
.dark .form-control,
.dark .select2-selection--single {
  background-color: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text-primary) !important;
}

.dark .select2-search .form-control.select2-search__field {
  background-color: rgba(2, 6, 23, 0.40);
  border: 1px solid var(--color-border);
}

.dark .select2-dropdown {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.dark .select2-container--default .select2-results>.select2-results__options {
  background: #07193b !important;
}

.dark #order-services {
  color: #E5E7EB;
}

/* Normal state */
.select2-container--default .select2-selection--single {
  background-color: #f8fdff;
  border: 1px solid #00bff3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: #333;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: none;
  outline: none;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #60a5fa;
  /* or transparent if you want no border */
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  /* optional blue glow */
  outline: none;
}


button#services-dropdown-btn {
  background-color: #f8fdff;
  border: 1px solid #00bff3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: #333;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: none;
  outline: none;
}

.services-list .first-btn {
  border: 1px solid #e5e5e6;
}

span#order-services {
  /* text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap; */
}

.text-left {
  text-align: left !important;
}

.font-semibold {
  font-weight: 600;
}

#services-dropdown-list {
  max-height: 500px !important;
  overflow-y: auto;
  background: #f8fdff;
}

.services-list .dropdown-menu {
  padding: 0 !important;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  font-size: 14px;
  text-align: left;
  list-style: none;
  background-color: #fff;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}


/* FAQ2 section enhancements */
.faq2 .tab__item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.faq2 .tab__label {
  background-color: transparent;
  color: #0f172a;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.faq2 .tab__label h3 {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
}

.faq2 .tab__item p {
  color: #0f172a;
  padding-left: 2rem;
  padding-right: 2rem;
}

.faq2 .tab__label svg {
  transition: transform 0.3s ease;
}

.faq2 .tab__item.active .tab__label svg {
  transform: rotate(45deg);
}

.faq2 .tab__item.active {
  background-color: #f8fafc;
}

.col-md-6 {
  width: 100%;
  float: none;
}

@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
    float: left;
    box-sizing: border-box;
    padding: 15px;
  }
}

.col-md-6::after {
  content: "";
  display: table;
  clear: both;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.col {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.tempus-dominus-widget {
  border-radius: 10px !important;
  border: 1px solid #00bff3 !important;
  box-shadow: none !important;
  margin-bottom: 5px !important;
}

.input-group {
  display: flex;
  position: relative;
  width: 100%;
}

.form-control {
  flex-grow: 1;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group-button {
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  background-color: #007bff;
  border: 1px solid #007bff;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group .form-control+.input-group-button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group .input-group-button+.form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-button:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.input-group-button:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-search--dropdown.select2-search--hide {
  display: block !important;
}

.select2-selection--single {
  height: 42px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #fff;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}

/* Native select polish to match app theme */
select.form-control {
  background-color: #f8fdff;
  border: 1px solid #00bff3;
  border-radius: 8px;
  padding: 10px 14px;
  color: #0a2753;
}

select.form-control:focus-visible {
  box-shadow: var(--ring-primary);
  border-color: #00bff3;
}

.dark select.form-control {
  background-color: rgba(2, 6, 23, 0.40);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.search-dropdown .input-wrapper .form-control {
  padding-left: 50px !important;
}

.select2-search__field {
  padding-left: 30px !important;
}


.select2-dropdown {
  overflow-y: auto;
  max-height: 564px;
  background: #f8fdff;
}

.select2-container--default .select2-results>.select2-results__options {
  background: #f8fdff !important;
}

/* Responsive styling for child panel table */
#service-table {
  width: 100%;
}

@media (max-width: 768px) {
  #service-table thead {
    display: none;
  }

  #service-table,
  #service-table tbody,
  #service-table tr,
  #service-table td {
    display: block;
    width: 100%;
  }

  #service-table tr {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
  }

  #service-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    text-align: right;
  }

  #service-table td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 0.5rem;
    text-align: left;
  }
}

/* Simple Balance Info Modal */
.balance-modal-simple {
  border: 0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(18, 38, 63, 0.25);
  border-top: 4px solid #00bff3;
}

.balance-modal-simple h4 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
  color: #0056b3;
}

.balance-modal-simple p {
  font-size: 16px;
  margin-bottom: 24px;
}

.balance-modal-simple .balance-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-weight: 600;
  border-radius: 8px;
}

.balance-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  opacity: .6;
}

.balance-close:hover {
  opacity: 1;
}


.nwo-cat-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: #ffffff;
  padding: 0.625rem 0.875rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nwo-cat-btn:hover {
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
  border-color: rgba(148, 163, 184, 0.85);
}

.nwo-cat-btn:focus {
  outline: none;
}

.nwo-cat-btn .icon-wrap {
  height: 2.25rem;
  width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background-color: rgba(148, 163, 184, 0.15);
  color: #1e293b;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nwo-cat-btn .icon {
  height: 1.5rem;
  width: 1.5rem;
  object-fit: contain;
}

.nwo-cat-btn .label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.2s ease;
}

.nwo-cat-btn.is-active {
  border-color: #00BFF3;
  box-shadow: 0 0 0 3px rgba(0, 191, 243, 0.16);
}

.nwo-cat-btn.is-active .label {
  color: #007aa0;
}

.nwo-cat-btn.is-active .icon-wrap {
  background-color: rgba(0, 191, 243, 0.12);
  color: #007aa0;
}

.dark .nwo-cat-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--color-text-primary);
}

.dark .nwo-cat-btn .icon-wrap {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
}

.dark .nwo-cat-btn .label {
  color: var(--color-text-primary);
}

.dark .nwo-cat-btn.is-active .label {
  color: #7dd3fc;
}

.dark .nwo-cat-btn.is-active .icon-wrap {
  background-color: rgba(0, 191, 243, 0.2);
  color: #7dd3fc;
}

.top-actions .action-item {
  text-decoration: none;
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #00BFF3;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 191, 243, .35);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.action-item:hover .action-icon {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 191, 243, .45);
  background: #00A6D6;
}

.action-label {
  font-size: 12px;
  line-height: 1;
  color: #4c4c4c;
}

.action-icon.toggle {
  position: relative;
  padding: 0 6px;
  gap: 4px;
}

.user-chip {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.user-chip:hover {
  border-color: rgba(0, 191, 243, .45);
  box-shadow: 0 8px 22px rgba(0, 191, 243, .12);
}

.dark .action-label {
  color: #d1d5db;
}

.dark .user-chip {
  background: #00bff3;
  border-color: #00bff3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}

.dark .user-chip:hover {
  border-color: #0ea5b7;
}

.dark .user-chip .active-user__username {
  color: #ffffff;
}

.dark .user-chip .active-user__balance {
  color: #eceff0;
}

:root {
  --primary: #00BFF3;
  --track: #e5e7eb;
  --track-dark: #0b2a3a1a;
}

.mode-switch {
  gap: .35rem;
}

.mode-switch .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mode-switch .switch {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 9999px;
  background: var(--track);
  display: flex;
  align-items: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
  transition: background .2s ease, box-shadow .2s ease;
  outline: none;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.mode-switch .switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: #ffffffab;
  border: 1px solid #fff;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .06);
  transition: transform .22s cubic-bezier(.4, 0, .2, 1), background .2s;
}

.mode-switch .switch .icon-sun {
  position: relative;
  left: 6px;
  opacity: 1;
  transform: scale(1.02);
  transition: opacity .2s, transform .2s;
}

.mode-switch .switch .icon-moon {
  position: relative;
  left: -6px;
  opacity: .45;
  transform: scale(.95);
  transition: opacity .2s, transform .2s;
}

.mode-switch:hover .switch {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 3px rgba(0, 191, 243, .12);
}

.mode-switch input:focus+.switch {
  box-shadow: 0 0 0 4px rgba(0, 191, 243, .25);
}

.mode-switch input:checked+.switch {
  background: color-mix(in srgb, var(--primary) 85%, white);
}

.mode-switch input:checked+.switch::after {
  transform: translateX(24px);
}

.mode-switch input:checked+.switch .icon-sun {
  opacity: .45;
  transform: scale(.95);
}

.mode-switch input:checked+.switch .icon-moon {
  opacity: 1;
  transform: scale(1.02);
}

html[dir="rtl"] .mode-switch .switch {
  padding-left: 0;
  padding-right: 8px;
}

html[dir="rtl"] .mode-switch .switch::after {
  left: auto;
  right: 4px;
}

html[dir="rtl"] .mode-switch input:checked+.switch::after {
  transform: translateX(-24px);
}

.dark .mode-switch .switch {
  background: var(--track-dark);
}

.dark .mode-switch input:checked+.switch {
  background: color-mix(in srgb, var(--primary) 78%, #0b0b0b);
}

.mode-switch .mode-label {
  font-size: 12px;
  color: #4c4c4c;
  line-height: 1;
}

.dark .mode-switch .mode-label {
  color: #d1d5db;
}

.platforms-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 1rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
}

.card-tab {
  width: 100%;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid rgba(229, 231, 235, 0.7);
  background-color: #fff;
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.card-tab:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

@media (max-width: 640px) {
  .platforms-section {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    max-height: 140px;
    overflow-y: auto;
  }

  @supports (-webkit-overflow-scrolling: touch) {
    .platforms-section {
      -webkit-overflow-scrolling: touch;
    }
  }
}

.flag-emoji-text {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-variant-emoji: emoji;
}

img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 .05em 0 .1em;
  vertical-align: -0.1em;
}

#method-dropdown .methods-select {
  background-color: #f8fdff;
  border: 1px solid #00bff3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: #333;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: none;
  outline: none;
}

/* Add Funds: custom select + menu */
#method-dropdown.open .methods-select {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

#method-dropdown .custom-options {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  max-height: 450px;
  overflow-y: auto;
}

#method-dropdown .custom-option {
  padding: 8px 12px;
  transition: background-color .15s ease;
}

#method-dropdown .custom-option:hover {
  background-color: rgba(0, 191, 243, 0.10);
}

.dark #method-dropdown .methods-select {
  background-color: rgba(2, 6, 23, 0.40);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.dark #method-dropdown .custom-options {
  background: var(--color-surface) !important;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card-dark);
}

.dark #method-dropdown .custom-option:hover,
.dark #method-dropdown .custom-option.bg-gray-100 {
  background-color: rgba(0, 191, 243, 0.15) !important;
}

/* Add Funds: payment method logos */
.fund-logo__card {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  transition: transform .1s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.fund-logo__card:focus-visible {
  outline: none;
  border-color: #00bff3 !important;
  box-shadow: 0 0 0 3px rgba(0, 191, 243, 0.35);
}

.fund-logo__card:hover {
  transform: translateY(-1px);
  border-color: #85e0f9 !important;
}

.fund-logo__card.active {
  border-color: #00bff3 !important;
  box-shadow: 0 0 0 3px rgba(0, 191, 243, 0.20);
}

/* Add Funds: quick amount chips */
.quick-amounts {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.quick-amount-btn {
  border: 1px solid #00bff3;
  background: #f8fdff;
  color: #0a2753;
  border-radius: 9999px;
  padding: .35rem .65rem;
  font-size: .875rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .1s ease;
}

.quick-amount-btn:hover {
  border-color: #60a5fa;
  background: #eef9ff;
  transform: translateY(-1px);
}

.quick-amount-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-primary);
}

.dark .quick-amount-btn {
  background: rgba(2, 6, 23, .40);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.dark .quick-amount-btn:hover {
  border-color: #00bff3;
  background: rgba(0, 191, 243, .10);
}

.a_link {
  color: #00bff3 !important;
}

.tab__content-wrapper [data-tab-content],
.info-block [data-tab-content] {
  display: none;
}

.tab__content-wrapper [data-tab-content].active,
.info-block [data-tab-content].active {
  display: block;
}

/* --- UI polish additions --- */
/* (tokens moved to top in Theme Tokens) */

/* Light cards to match dark styling */
.dash_card,
.order-form-card,
.order-desc-card {
  background-color: #ffffff;
  border: 1px solid #EEF0F3;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Tabs polish (light) */
.dash_card .tabs {
  gap: 8px;
}

.dash_card .tab {
  background: #F8FDFF;
  border: 1px solid #E5EAF0;
  color: #0a2753;
  border-radius: 10px;
  transition: background .2s ease, border-color .2s ease, transform .1s ease;
}

.dash_card .tab:hover {
  transform: translateY(-1px);
  border-color: #cfeaf7;
}

.dash_card .tab.active,
.dash_card .tab.active-tab {
  background: var(--color-accent);
  border-color: #00bff3;
  box-shadow: 0 0 0 2px rgba(0, 191, 243, 0.15);
}

/* Consistent focus rings */
.btn:focus-visible,
.form-control:focus-visible,
.select2-selection--single:focus,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--ring-primary);
  border-color: #00bff3;
}

/* Disabled buttons */
.btn[disabled],
.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* NWO platform chips: stronger active states */
.nwo-cat-btn.is-active {
  border-color: #00bff3;
  outline: 2px solid rgba(0, 191, 243, 0.15);
  background: #F2FBFE;
}

.dark .nwo-cat-btn.is-active {
  background-color: rgba(0, 212, 166, 0.08);
  border-color: var(--color-accent);
  outline-color: rgba(0, 212, 166, 0.25);
}

/* Respect reduced motion preferences */

/* --- Mobile label wrapping fixes (platform chips, tabs) --- */
@media (max-width: 768px) {

  /* So long strings wrap only when truly needed */
  main.page-wrapper {
    overflow-wrap: anywhere;
    word-break: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
  }

  /* Keep platform/filter labels on one line */
  #new-order-cats .nwo-cat-btn .text-md {
    white-space: nowrap;
    word-break: keep-all;
    font-size: 0.9rem;
    /* reduce size a bit on mobile */
    line-height: 1.15;
  }

  /* Keep dashboard tabs and card-tabs from breaking words */
  .dash_card .tab,
  .card-tab {
    white-space: nowrap;
    word-break: keep-all;
  }

  /* Tighten chip padding + icon size for compact look */
  #new-order-cats .nwo-cat-btn {
    padding: 0.5rem 0.6rem;
    /* px-2 py-2 equivalent but explicit */
    min-height: 40px;
  }

  #new-order-cats .nwo-cat-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .badge,
  .new-indicator {
    animation: none !important;
  }
}

/* ========================================================================
   3) Components: Dashboard (migrated from bootstrap.css)
   ======================================================================== */
/* Service table tweaks */
table#service-table tbody td.fav {
  order: 999;
}

table#service-table tbody td.service-name,
table#service-table tbody td:nth-child(2) {
  flex-basis: 100%;
}

table#service-table tbody td {
  flex-basis: 33.333333%;
}

/* Dashboard: API section */
.dash_card.api p {
  margin: 0;
}

.dash_card.api pre {
  border-radius: 1rem;
  border: 1px solid #E5EAF0;
  background: linear-gradient(135deg, #F8FDFF 0%, #EBFAFE 100%);
  padding: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #0A2753;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.dark .dash_card.api pre {
  background: rgba(16, 42, 82, 0.45);
  border-color: rgba(133, 224, 249, 0.4);
  color: #F8FAFC;
}

.dash_card.api h3,
.dash_card.api h3 strong,
.dash_card.api h4,
.dash_card.api h4 strong {
  margin: 0;
  font-weight: 600;
}

.dash_card.api .table-wrapper {
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #E5EAF0;
  background-color: #ffffff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.dash_card.api .table-wrapper:last-of-type {
  margin-bottom: 0;
}

.dark .dash_card.api .table-wrapper {
  border-color: rgba(133, 224, 249, 0.35);
  background-color: rgba(16, 42, 82, 0.65);
  box-shadow: var(--shadow-card-dark);
}

.dash_card.api table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

@media (max-width: 640px) {
  .dash_card.api table {
    min-width: 420px;
  }
}

.dash_card.api table thead {
  background-color: #F8FDFF;
}

.dark .dash_card.api table thead {
  background-color: rgba(11, 31, 63, 0.85);
}

.dash_card.api table th,
.dash_card.api table td {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid #E5EAF0;
  text-align: left;
  vertical-align: top;
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.dash_card.api table th {
  font-weight: 600;
  color: #0A2753;
}

.dash_card.api table td {
  color: #3f4b5a;
}

.dark .dash_card.api table th {
  color: #F8FAFC;
}

.dark .dash_card.api table td {
  color: #BAC8E0;
}

.dark .dash_card.api table th,
.dark .dash_card.api table td {
  border-bottom: 1px solid rgba(133, 224, 249, 0.35);
}

.dash_card.api table tr:last-child td,
.dash_card.api table tr:last-child th {
  border-bottom: none;
}

.dash_card.api select#service_type {
  width: 100%;
  margin-bottom: 0;
  border-radius: 0.75rem;
  border: 1px solid #E5EAF0;
  background-color: #F8FDFF;
  padding: 0.75rem 1rem;
  padding-right: 2.75rem;
  font-weight: 500;
  color: #0A2753;
  background-position: right 1rem center;
  background-repeat: no-repeat;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.dash_card.api select#service_type:focus {
  outline: none;
  border-color: #00BFF3;
  box-shadow: var(--ring-primary);
}

.dark .dash_card.api select#service_type {
  border-color: rgba(133, 224, 249, 0.35);
  background-color: rgba(11, 31, 63, 0.8);
  color: #F8FAFC;
}

.dash_card.api .api-code-block {
  border-radius: 1rem;
  border: 1px solid #E5EAF0;
  background-color: #F8FDFF;
  box-shadow: inset 0 1px 4px rgba(10, 39, 83, 0.06);
}

.dark .dash_card.api .api-code-block {
  border-color: rgba(133, 224, 249, 0.35);
  background-color: rgba(11, 31, 63, 0.65);
  box-shadow: inset 0 1px 0 rgba(15, 37, 72, 0.6);
}

/* Dashboard: Affiliate cards */
.affiliate-stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1024px) {
  .affiliate-stats-grid {
    gap: 1.5rem;
  }
}

.affiliate-welcome {
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-2);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-card);
}

.affiliate-welcome h3 {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--color-text-primary);
}

.dark .affiliate-welcome {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-card-dark);
}

.dark .affiliate-welcome h3 {
  color: var(--color-text-primary);
}

.affiliate-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-2);
  padding: 1.25rem;
  min-height: 100%;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.affiliate-info:is(a) {
  cursor: pointer;
}

.affiliate-info:hover {
  border-color: rgba(0, 191, 243, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.affiliate-info:focus-visible {
  border-color: rgba(0, 191, 243, 0.35);
  box-shadow: var(--shadow-card), var(--ring-primary);
  transform: translateY(-2px);
  outline: none;
}

.dark .affiliate-info {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

.dark .affiliate-info:hover {
  border-color: rgba(74, 216, 255, 0.45);
  box-shadow: var(--shadow-card-dark);
}

.dark .affiliate-info:focus-visible {
  border-color: rgba(74, 216, 255, 0.45);
  box-shadow: var(--shadow-card-dark), var(--ring-primary);
}

.affiliate-info .icon-wrapper {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: var(--color-accent);
  color: #fff;
}

.dark .affiliate-info .icon-wrapper {
  background-color: var(--color-accent);
}

.affiliate-info .affiliate-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.affiliate-info .affiliate-data p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
}

.affiliate-info .affiliate-data p+p {
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.dark .affiliate-info .affiliate-data p {
  color: var(--color-text-secondary);
}

.dark .affiliate-info .affiliate-data p+p {
  color: var(--color-text-primary);
}

/* Tickets category select group */
ul.nt-select-cats,
ul.nt-sc {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

#ticketsend li {
  flex-grow: 1;
}

#ticketsend label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: .75rem;
  border: 1px solid #E2E5EA;
  padding: .5rem 1rem;
  font-size: .875rem;
  line-height: 1.25rem;
}

.dark #ticketsend label {
  border: none;
  background: #0D0D0D;
}

#ticketsend label i {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: .375rem;
  background: #fff;
}

#ticketsend input[type="radio"] {
  display: none;
}

#ticketsend input:checked+label {
  background: #0A2753;
  color: #fff;
}

.dark #ticketsend input:checked+label {
  background: #45C356;
}

/* Child panel status + upload button */
.status-data {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e2e5ea;
  padding: 20px 0;
}

button.imgbb-button {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 1px dashed #e2e5ea;
  border-radius: 9px;
  padding: 60px;
  font-size: 15px;
  font-weight: 200;
  color: #3b5275;
}

.imgbb-button:hover {
  background-color: #03bff3 !important;
}

.imgbb-container {
  width: 100%;
}

span.imgbb-button-icon {
  display: block;
}

.imgbb-button-icon svg {
  width: 60px;
  font-size: 41px;
  margin-bottom: 10px;
  color: #03bff3;
}

.imgbb-button:hover svg {
  color: #fff;
}

/* ========================================================================
   Home: Achievements Section
   Usage HTML:
   <section class="achievements">
     <h2 class="achievements__title">Marketerum Achievements</h2>
     <div class="achievements__grid">
       <div class="stat">
         <span class="stat__icon">â€¦</span>
         <div>
           <div class="stat__value">1575085</div>
           <div class="stat__label">Orders Completed</div>
         </div>
       </div>
       â€¦
     </div>
   </section>
   ======================================================================== */
.achievements {
  padding: 2.5rem 0;
}

.achievements__title {
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  color: #0a2753;
  margin-bottom: 1.75rem;
}

.achievements__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
  align-items: center;
  justify-items: center;
}

.achievements .stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .25rem;
}

.achievements .stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background: #3ab54b;
  /* legacy green used in site */
  color: #fff;
  box-shadow: 0 6px 16px rgba(58, 181, 74, 0.28);
}

.achievements .stat__value {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: #3ab54b;
}

.achievements .stat__label {
  font-size: .95rem;
  color: #3B5275;
  margin-top: .125rem;
}

/* Dark: achievements */
.dark .achievements__title {
  color: var(--color-text-primary);
}

.dark .achievements .stat__icon {
  background: color-mix(in srgb, var(--color-success) 88%, var(--color-bg));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.dark .achievements .stat__value {
  color: var(--color-success);
}

.dark .achievements .stat__label {
  color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .achievements__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .achievements__grid {
    grid-template-columns: 1fr;
  }

  .achievements .stat {
    justify-content: center;
  }
}

/* ========================================================================
   Home: Why Us section
   ======================================================================== */

.features-carousel .feature_title {
  color: white;
}

/* Equal heights for Features carousel cards */
/* Make Slick track a flex row so all slides stretch to the tallest */
.features-carousel .slick-track {
  display: flex !important;
  align-items: stretch !important;
  height: auto !important;
  /* let content define height */
}

/* Allow slides to auto-size vertically and stretch with the track */
.features-carousel article.slick-slide {
  height: auto !important;
  align-self: stretch !important;
}

/* Ensure inner content fills the card height for consistent paddings */
.features-carousel article {
  display: flex;
  flex-direction: column;
}

/* Optional: keep long text from pushing arrows by providing consistent spacing */
.features-carousel article p {
  margin-bottom: 0;
}

/* Alternating section gradient backgrounds */
.guest main.page-wrapper>section:not(.no-alt-bg) {
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.guest main.page-wrapper>section:nth-of-type(odd):not(.no-alt-bg) {
  background: var(--section-grad-a) !important;
}

.guest main.page-wrapper>section:nth-of-type(even):not(.no-alt-bg) {
  background: var(--section-grad-b) !important;
}

/* Alternating backgrounds for top-level sections (supports various wrappers) */
/* Apply to body > section, body > div > section, and dashboard main wrapper */
html:not(.dark) :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg) {
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

:is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg):nth-of-type(odd) {
  background: var(--section-grad-a) !important;
}

:is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg):nth-of-type(even) {
  background: var(--section-grad-b) !important;
}

/* Alternating section gradient backgrounds for main#main-content (signin, guest pages) */
main#main-content>section:not(.no-alt-bg) {
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

main#main-content>section:nth-of-type(odd):not(.no-alt-bg) {
  background: var(--section-grad-a) !important;
}

main#main-content>section:nth-of-type(even):not(.no-alt-bg) {
  background: var(--section-grad-b) !important;
}

/* Features carousel: improved contrast */
.features-carousel article {
  color: #E6F1FF;
}

.features-carousel article h3 {
  color: #FFFFFF;
}

.features-carousel article p {
  color: #D6E8FF;
}

/* Alternating sections: readable text and link colors (light only) */

:is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg) {
  color: var(--color-text-primary);
}

html:not(.dark) :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg) a {
  color: #0056B3;
}

html:not(.dark) :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg) a.active {
  color: var(--color-bg);
  background-color: var(--color-text-primary);
}

/* html:not(.dark) :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg) a:hover {
    color: var(--color-bg);
} */


/* Dark sign-in: professional tone override */

.heading--main {
  color: var(--color-text-primary);
}

/* AI tools hero: immersive layout for network-specific generators */
.ai-hero-section {
  --ai-hero-primary: #2563EB;
  --ai-hero-primary-rgb: 37, 99, 235;
  --ai-hero-soft: rgba(37, 99, 235, 0.08);
  --ai-hero-soft-strong: rgba(37, 99, 235, 0.16);
  --ai-hero-border: rgba(37, 99, 235, 0.14);
  --ai-hero-surface: #ffffff;
  --ai-hero-shadow: rgba(15, 23, 42, 0.12);
}

.ai-hero-section--instagram {
  --ai-hero-primary: #E1306C;
  --ai-hero-primary-rgb: 225, 48, 108;
  --ai-hero-soft: rgba(225, 48, 108, 0.12);
  --ai-hero-soft-strong: rgba(225, 48, 108, 0.22);
  --ai-hero-border: rgba(225, 48, 108, 0.18);
  --ai-hero-surface: #fff1f6;
  --ai-hero-shadow: rgba(225, 48, 108, 0.24);
}

.ai-hero-section--youtube {
  --ai-hero-primary: #FF2D55;
  --ai-hero-primary-rgb: 255, 45, 85;
  --ai-hero-soft: rgba(255, 45, 85, 0.12);
  --ai-hero-soft-strong: rgba(255, 45, 85, 0.22);
  --ai-hero-border: rgba(255, 45, 85, 0.18);
  --ai-hero-surface: #fff5f7;
  --ai-hero-shadow: rgba(255, 45, 85, 0.22);
}

.ai-hero-section--linkedin {
  --ai-hero-primary: #0A66C2;
  --ai-hero-primary-rgb: 10, 102, 194;
  --ai-hero-soft: rgba(10, 102, 194, 0.12);
  --ai-hero-soft-strong: rgba(10, 102, 194, 0.22);
  --ai-hero-border: rgba(10, 102, 194, 0.18);
  --ai-hero-surface: #f2f7fd;
  --ai-hero-shadow: rgba(10, 102, 194, 0.2);
}

.ai-hero-section--tiktok {
  --ai-hero-primary: #25F4EE;
  --ai-hero-primary-rgb: 37, 244, 238;
  --ai-hero-soft: rgba(37, 244, 238, 0.12);
  --ai-hero-soft-strong: rgba(37, 244, 238, 0.22);
  --ai-hero-border: rgba(37, 244, 238, 0.18);
  --ai-hero-surface: #edfffe;
  --ai-hero-shadow: rgba(37, 244, 238, 0.22);
}

.ai-hero-section--twitter {
  --ai-hero-primary: #1DA1F2;
  --ai-hero-primary-rgb: 29, 161, 242;
  --ai-hero-soft: rgba(29, 161, 242, 0.12);
  --ai-hero-soft-strong: rgba(29, 161, 242, 0.22);
  --ai-hero-border: rgba(29, 161, 242, 0.18);
  --ai-hero-surface: #f0f7ff;
  --ai-hero-shadow: rgba(29, 161, 242, 0.18);
}

html.dark .ai-hero-section {
  --ai-hero-soft: rgba(94, 129, 244, 0.16);
  --ai-hero-soft-strong: rgba(94, 129, 244, 0.24);
  --ai-hero-border: rgba(148, 163, 184, 0.2);
  --ai-hero-surface: rgba(15, 23, 42, 0.92);
  --ai-hero-shadow: rgba(15, 23, 42, 0.5);
}

html.dark .ai-hero-section--instagram {
  --ai-hero-soft: rgba(225, 83, 142, 0.28);
  --ai-hero-soft-strong: rgba(225, 83, 142, 0.36);
  --ai-hero-border: rgba(225, 83, 142, 0.28);
  --ai-hero-surface: rgba(45, 12, 26, 0.9);
  --ai-hero-shadow: rgba(0, 0, 0, 0.55);
}

html.dark .ai-hero-section--youtube {
  --ai-hero-soft: rgba(255, 87, 115, 0.28);
  --ai-hero-soft-strong: rgba(255, 87, 115, 0.32);
  --ai-hero-border: rgba(255, 87, 115, 0.28);
  --ai-hero-surface: rgba(34, 9, 16, 0.9);
  --ai-hero-shadow: rgba(0, 0, 0, 0.55);
}

html.dark .ai-hero-section--linkedin {
  --ai-hero-soft: rgba(10, 102, 194, 0.26);
  --ai-hero-soft-strong: rgba(10, 102, 194, 0.34);
  --ai-hero-border: rgba(10, 102, 194, 0.28);
  --ai-hero-surface: rgba(5, 20, 40, 0.92);
  --ai-hero-shadow: rgba(0, 0, 0, 0.55);
}

html.dark .ai-hero-section--tiktok {
  --ai-hero-soft: rgba(37, 244, 238, 0.26);
  --ai-hero-soft-strong: rgba(37, 244, 238, 0.32);
  --ai-hero-border: rgba(37, 244, 238, 0.28);
  --ai-hero-surface: rgba(4, 33, 37, 0.9);
  --ai-hero-shadow: rgba(0, 0, 0, 0.55);
}

html.dark .ai-hero-section--twitter {
  --ai-hero-soft: rgba(29, 161, 242, 0.28);
  --ai-hero-soft-strong: rgba(29, 161, 242, 0.36);
  --ai-hero-border: rgba(29, 161, 242, 0.28);
  --ai-hero-surface: rgba(8, 32, 52, 0.92);
  --ai-hero-shadow: rgba(0, 0, 0, 0.55);
}

.ai-hero-section .ai-hero__panel {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: 2rem;
  border: 1px solid var(--ai-hero-border);
  background-color: var(--ai-hero-surface);
  box-shadow: 0 28px 48px -30px var(--ai-hero-shadow), 0 18px 42px -28px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.ai-hero-section .ai-hero__panel::before,
.ai-hero-section .ai-hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-hero-section .ai-hero__panel::before {
  background:
    radial-gradient(120% 120% at 0% 0%, var(--ai-hero-soft) 0%, transparent 60%),
    radial-gradient(80% 80% at 100% 100%, var(--ai-hero-soft-strong) 0%, transparent 75%);
  opacity: .95;
}

.ai-hero-section .ai-hero__panel::after {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 50%);
  mix-blend-mode: soft-light;
}

.ai-hero-section .ai-hero__panel>* {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .ai-hero-section .ai-hero__panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
  }
}

.ai-hero-section .ai-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ai-hero-section .ai-hero__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--ai-hero-primary-rgb), 0.18);
  background-color: rgba(var(--ai-hero-primary-rgb), 0.12);
  color: var(--ai-hero-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-hero-section .ai-hero__badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ai-hero-primary);
  box-shadow: 0 0 0 4px rgba(var(--ai-hero-primary-rgb), 0.12);
}

.ai-hero-section .ai-hero__panel .heading--main span {
  color: var(--ai-hero-primary);
}

.ai-hero-section .ai-hero__description {
  font-size: clamp(1rem, 2vw + 0.25rem, 1.125rem);
  color: var(--color-text-secondary);
}

.ai-hero-section .ai-hero__form {
  width: min(100%, 28rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(var(--ai-hero-primary-rgb), 0.16);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 42px -30px var(--ai-hero-shadow);
  backdrop-filter: blur(12px);
}

html.dark .ai-hero-section .ai-hero__form {
  background-color: rgba(15, 23, 42, 0.85);
  border-color: rgba(var(--ai-hero-primary-rgb), 0.3);
}

.ai-hero-section .customInput,
.ai-hero-section .customTextarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(var(--ai-hero-primary-rgb), 0.15);
  background-color: rgba(255, 255, 255, 0.96);
  padding: 0.9rem 1.1rem;
  font-size: 0.98rem;
  color: var(--color-text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ai-hero-section .customTextarea {
  min-height: 180px;
  resize: vertical;
}

html.dark .ai-hero-section .customInput,
html.dark .ai-hero-section .customTextarea {
  background-color: rgba(17, 26, 40, 0.9);
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--color-text-primary);
}

.ai-hero-section .customInput:focus,
.ai-hero-section .customTextarea:focus {
  outline: none;
  border-color: var(--ai-hero-primary);
  box-shadow: 0 0 0 4px rgba(var(--ai-hero-primary-rgb), 0.2);
}

.ai-hero-section .customInput::placeholder,
.ai-hero-section .customTextarea::placeholder {
  color: rgba(100, 116, 139, 0.7);
}

html.dark .ai-hero-section .customInput::placeholder,
html.dark .ai-hero-section .customTextarea::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.ai-hero-section .customButton {
  border: none;
  border-radius: 9999px;
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ai-hero-primary) 0%, rgba(var(--ai-hero-primary-rgb), 0.88) 100%);
  box-shadow: 0 18px 32px -18px rgba(var(--ai-hero-primary-rgb), 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.ai-hero-section .customButton:hover,
.ai-hero-section .customButton:focus {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px -18px rgba(var(--ai-hero-primary-rgb), 0.65);
  filter: brightness(1.02);
}

.ai-hero-section .customButton:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--ai-hero-primary-rgb), 0.28);
}

.ai-hero-section .ai-hero__output .customTextarea {
  display: block;
}

.ai-hero-section .ai-hero__steps {
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(var(--ai-hero-primary-rgb), 0.14);
  background: linear-gradient(180deg,
      rgba(var(--ai-hero-primary-rgb), 0.12) 0%,
      rgba(var(--ai-hero-primary-rgb), 0.04) 100%);
  box-shadow: 0 24px 48px -32px var(--ai-hero-shadow);
}

.ai-hero-section .ai-hero__steps .text__highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  background-color: rgba(var(--ai-hero-primary-rgb), 0.16);
  color: var(--ai-hero-primary);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.ai-hero-section .ai-hero__steps p {
  max-width: 58ch;
  margin: 0.75rem auto 0;
  color: var(--color-text-secondary);
}

html.dark .ai-hero-section .ai-hero__steps {
  background: linear-gradient(180deg,
      rgba(var(--ai-hero-primary-rgb), 0.22) 0%,
      rgba(var(--ai-hero-primary-rgb), 0.08) 100%);
  border-color: rgba(var(--ai-hero-primary-rgb), 0.28);
  box-shadow: 0 28px 52px -30px rgba(0, 0, 0, 0.55);
}

html.dark .ai-hero-section .ai-hero__steps p {
  color: var(--color-text-primary);
}

html.dark .ai-hero-section .ai-hero__steps .text__highlight {
  background-color: rgba(var(--ai-hero-primary-rgb), 0.32);
  color: var(--color-text-primary);
}

.ai-hero-section .box-wrapper {
  margin-top: clamp(1.75rem, 5vw, 3.5rem);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: ai-steps;
}

.ai-hero-section .box {
  position: relative;
  counter-increment: ai-steps;
  padding: clamp(1.65rem, 4vw, 2.35rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(var(--ai-hero-primary-rgb), 0.18);
  background: linear-gradient(180deg,
      rgba(var(--ai-hero-primary-rgb), 0.12) 0%,
      rgba(var(--ai-hero-primary-rgb), 0.04) 100%);
  box-shadow: 0 24px 48px -36px var(--ai-hero-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-hero-section .box::before {
  content: counter(ai-steps, decimal-leading-zero);
  position: absolute;
  top: clamp(-1.1rem, -1vw, -0.65rem);
  left: clamp(1.35rem, 4vw, 1.75rem);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--ai-hero-primary) 0%, rgba(var(--ai-hero-primary-rgb), 0.78) 100%);
  color: #ffffff;
  box-shadow: 0 18px 28px -16px rgba(var(--ai-hero-primary-rgb), 0.65);
}

.ai-hero-section .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -30px rgba(var(--ai-hero-primary-rgb), 0.55);
}

.ai-hero-section .box-title h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--color-text-primary);
}

.ai-hero-section .box-description {
  color: var(--color-text-secondary);
  font-size: 0.975rem;
  line-height: 1.65;
}

html.dark .ai-hero-section .box {
  border-color: rgba(var(--ai-hero-primary-rgb), 0.32);
  background: linear-gradient(180deg,
      rgba(var(--ai-hero-primary-rgb), 0.26) 0%,
      rgba(var(--ai-hero-primary-rgb), 0.12) 100%);
  box-shadow: 0 28px 58px -28px rgba(0, 0, 0, 0.65);
}

html.dark .ai-hero-section .box:hover {
  box-shadow: 0 32px 64px -26px rgba(0, 0, 0, 0.7);
}

html.dark .ai-hero-section .box-title h3 {
  color: var(--color-text-primary);
}

html.dark .ai-hero-section .box-description {
  color: var(--color-text-secondary);
}

@media (max-width: 640px) {
  .ai-hero-section .box {
    padding-inline: 1.35rem;
    padding-block: 2.2rem 1.75rem;
  }

  .ai-hero-section .box::before {
    left: 1.35rem;
  }
}

@media (max-width: 767px) {
  .ai-hero-section .ai-hero__badge {
    align-self: center;
  }

  .ai-hero-section .ai-hero__panel {
    padding: 1.5rem;
  }

  .ai-hero-section .ai-hero__form {
    margin-inline: 0;
  }
}

/* Why Us: prevent decorative vector from overlapping heading */
.whyus .intro h2 {
  position: relative;
}

.whyus .intro h2>img {
  position: absolute;
  /* ensure absolute even if utilities change */
  top: auto !important;
  /* override inline utility top-[50%] */
  bottom: -0.5rem;
  /* place just below first line */
  left: 3rem;
  /* roughly Tailwind left-12 */
  width: 5rem;
  /* match w-20 */
  z-index: -1;
  /* ensure it never covers text */
  pointer-events: none;
  /* avoid intercepting selection/clicks */
  opacity: .35;
  /* subtle decoration */
}

@media (max-width: 768px) {
  .whyus .intro h2>img {
    display: none;
  }
}

/* Dark: FAQ blocks contrast */
.dark .faq2 .tab__item {
  background-color: #0F1624;
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.dark .faq2 .tab__label h3 {
  color: var(--color-text-primary);
}

.dark .faq2 .tab__item p {
  color: var(--color-text-secondary);
}

/* Dark: alternating solid section backgrounds (override gradients) */
html.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg) {
  background-image: none !important;
}

html.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg):nth-of-type(odd) {
  background-color: var(--color-bg) !important;
}

html.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg):nth-of-type(even) {
  background-color: var(--color-surface) !important;
}

/* Dark: readable links on alternating sections */
html.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg) {
  color: var(--color-text-primary);
}

html.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg) a {
  color: var(--color-accent);
}

html.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, main#main-content > section):not(.no-alt-bg) a:hover {
  color: var(--color-accent-hover);
  background: transparent;
}





/* Dark mode on body: compatibility duplicates */
body.dark a {
  color: var(--color-accent);
}

body.dark a:hover,
body.dark a:focus {
  color: var(--color-accent-hover);
}

body.dark .alert {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

body.dark .alert-success {
  background-color: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--color-text-primary);
}

body.dark .alert-warning {
  background-color: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--color-text-primary);
}

body.dark .alert-danger {
  background-color: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.45);
  color: var(--color-text-primary);
}

/* Alternating sections when dark is on body */
body.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, .guest main#main-content > section):not(.no-alt-bg) {
  background-image: none !important;
}

body.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, .guest main#main-content > section):not(.no-alt-bg):nth-of-type(odd) {
  background-color: var(--color-bg) !important;
}

body.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, .guest main#main-content > section):not(.no-alt-bg):nth-of-type(even) {
  background-color: var(--color-surface) !important;
}

body.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, .guest main#main-content > section):not(.no-alt-bg) a {
  color: var(--color-text-primary);
  background-color: var(--color-bg);
}

body.dark :is(body > section, body > div > section, .guest main.page-wrapper > section, .guest main#main-content > section):not(.no-alt-bg) a:hover {
  color: var(--color-accent-hover);
  background: transparent;
}

/* Hero redesign */
.hero__heading {
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
  font-size: clamp(2.25rem, 1.5vw + 1.5rem, 4rem);
}

.hero__intro {
  max-width: 42rem;
  /* ~max-w-2xl */
  line-height: 1.75;
}

/* Bullet list inside hero */
.hero_right ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .5rem;
}

.hero_right ul li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: var(--color-text-primary);
}

.hero_right ul li::before {
  content: "\2714";
  /* check mark */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 12px;
  line-height: 1;
  margin-top: .15rem;
}

/* Features cards: responsive grid + hover */
/* Use when slick is not initialized or use .features-grid wrapper */
.features-grid,
.features-carousel:not(.slick-initialized) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  /* ~20px */
  align-items: stretch;
}

@media (min-width: 1024px) {

  .features-grid,
  .features-carousel:not(.slick-initialized) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card hover polish */
.features-grid article,
.features-carousel article {
  border-radius: 1rem;
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease;
}

.features-grid article:hover,
.features-carousel article:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.18);
}

/* Icon circle */
.features-grid .feature__icon,
.features-carousel .feature__icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: rgba(2, 6, 23, 0.85);
  color: #fff;
}

.features-grid .feature__icon svg,
.features-carousel .feature__icon svg {
  width: 28px;
  height: 28px;
}

/* Dark: icon circle tone + card surface */
.dark .features-grid .feature__icon,
.dark .features-carousel .feature__icon {
  background: color-mix(in srgb, var(--color-bg) 80%, #000);
  color: var(--color-accent);
}

.dark .features-grid article,
.dark .features-carousel article {
  background-color: var(--color-bg-2);
  border: 1px solid var(--color-border);
}


.service-tabs__item:where(.dark, .dark *) {
  background-color: var(--color-bg-2);
}

.tab__label:not(.dashboard .tab__label):not(section.dark .tab__label):where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(10, 39, 83);
}

/** Site Footer **/

footer:where(.dark, .dark *) {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(10, 39, 83) !important;
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity));
}

.footer__logo img:where(.dark, .dark *) {
  /* Ensure reliable white logo in dark without Tailwind runtime vars */
  filter: brightness(0) invert(1);
}

/* Explicit selector for environments without :where support */
.dark .footer__logo img {
  filter: brightness(0) invert(1);
}

footer .container>div {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  footer .container>div {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.footer__socials--icons {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border-width: 1.3px;
  --tw-border-opacity: 1;
  border-color: rgb(10 39 83 / var(--tw-border-opacity));
}

.footer__socials--icons:where(.dark, .dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(248 250 252 / var(--tw-border-opacity));
}

.footer__socials--icons svg {
  width: 1.2rem;
}

.footer__socials--icons svg path:where(.dark, .dark *) {
  fill: #f8fafc;
}

/* Footer: right-align socials section on all screens */
.footer__socials {
  align-items: flex-end !important;
}

.footer__socials h3 {
  text-align: right;
  width: 100%;
}

.footer__socials>.flex {
  margin-left: auto;
  justify-content: flex-end;
}


/** HOME : STATS **/

.stats__item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.stats__item> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.stats__icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgb(58 181 74 / var(--tw-bg-opacity));
  padding: 2rem;
}

.stats__icon img {
  height: 2rem;
  width: 2rem;
}

.stats__data {
  text-align: left;
}

.stats__number {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 400;
  --tw-text-opacity: 1;
  color: rgb(58 181 74 / var(--tw-text-opacity));
}

.stats__data span:where(.dark, .dark *) {
  --tw-text-opacity: 1;
  color: rgb(248 250 252 / var(--tw-text-opacity));
}

/** Carousel **/

.features-carousel {
  display: flex;
}

.features-carousel> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.features-carousel article {
  margin: 0.5rem;
}

.features-carousel article> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.features-carousel article {
  border-radius: 1rem;
  --tw-bg-opacity: 1;
  background-color: rgb(27 54 95 / var(--tw-bg-opacity));
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.dark .features-carousel article {
  background-color: rgb(27 54 95 / var(--tw-bg-opacity));
}


.features-carousel article h3 {
  font-weight: 600;
}

.features-carousel .slick-track {
  height: 97%;
}

.feature__icon {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgb(0 191 243 / var(--tw-bg-opacity));
}

.features__carousel-buttons>.carousel-prev {
  top: 50%;
  background-color: var(--color-bg-2);
}

@media (min-width: 768px) {
  .features__carousel-buttons>.carousel-prev {
    position: absolute;
    left: -1.25rem;
    --tw-translate-y: -100%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }
}

.features__carousel-buttons>.carousel-next {
  top: 50%;
  background-color: var(--color-bg-2);
}

@media (min-width: 768px) {
  .features__carousel-buttons>.carousel-next {
    position: absolute;
    right: -1.25rem;
    --tw-translate-y: -100%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }
}

/* */

.carousel__buttons {
  margin-top: 1.5rem;
  display: inline-flex;
}

.carousel__buttons> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.carousel__buttons>button {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border-width: 1px;
}

.dark .carousel__buttons>button {
  --tw-border-opacity: 1;
  border-color: rgb(59 82 117 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgb(27 54 95 / var(--tw-bg-opacity));
  padding: 1rem;
}

/** FAQs Tabs **/

@keyframes moving {
  from {
    --tw-translate-x: 1.25rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    opacity: 0.3;
  }

  to {
    --tw-translate-x: 0px;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    opacity: 1;
  }
}

.tab__item {
  display: inline-block;
  width: 100%;
}

.tab__item p {
  height: 0px;
  --tw-translate-x: 1.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  animation: moving;
}

/* .tab__item p > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(2rem * var(--tw-space-x-reverse));
  margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
} */

.tab__item p {
  overflow: hidden;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: left;
  opacity: 0;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 100ms;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.tab__item.active p {
  height: auto;
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  padding-bottom: 1.25rem;
  opacity: 1;
}

.tab__item.active p:where(.dark, .dark *) {
  color: rgb(118 143 182 / var(--tw-text-opacity));
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity));
}

.tab__label {
  margin-bottom: 1rem;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.75rem;
  --tw-bg-opacity: 1;
  background-color: rgb(235 250 254 / var(--tw-bg-opacity));
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.tab__label:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(13 13 13 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity));
}

.dark .tab__label {
  --tw-bg-opacity: 1;
  background-color: rgb(27 54 95 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.dark .tab__item p {
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity));
}

.tab__label svg {
  width: 0.75rem;
}

.dark .tab__label svg path {
  stroke: #fff;
}

.tab__label svg path:where(.dark, .dark *) {
  stroke: #f1f5f9;
}

/** Services  **/

.tabs__nav a {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(88 108 138 / var(--tw-text-opacity));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.tabs__nav a:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(204 242 253 / var(--tw-bg-opacity));
}

.tabs__nav a:where(.dark, .dark *) {
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity));
}

.tabs__nav a:hover:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(160 219 168 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity));
}

.tabs__nav a.active {
  --tw-bg-opacity: 1;
  background-color: rgb(10 39 83 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.tabs__nav a.active:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(69 195 86 / var(--tw-bg-opacity));
}

.tabs__nav a span:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(69 195 86 / var(--tw-bg-opacity));
}

.tabs__nav a svg path:where(.dark, .dark *) {
  fill: #f8fafc;
}

.services:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(13 13 13 / var(--tw-bg-opacity));
}

.service-tabs__item {
  margin-bottom: 1.5rem;
  flex-basis: calc(100% / 3);
  border-radius: 20px;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
    0 1px 2px -1px var(--tw-shadow-color);
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.dark .service-tabs__item {
  background-color: rgb(0, 52, 108);
}

.service-tabs__item {
  box-shadow: 8px 16px 34px rgba(0, 112, 142, 0.08);
  display: none !important;
}

.service-tabs__item.active {
  display: block !important;
}

.service-tabs__header {
  margin-bottom: 1rem;
}

.service-tabs__tab-heading {
  font-weight: 600;
}

.service-tabs__header {
  display: flex;
  align-items: center;
}

.service-tabs__header> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.service-tabs__tab-icon {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgb(0 191 243 / var(--tw-bg-opacity));
}

.service-tabs__tab-icon svg {
  width: 2rem;
  height: 2rem;
}

.service-tabs__header {
  display: flex;
}

.service-tabs__item--main {
  grid-column: span 3 / span 3;
}

.service-list:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(13 13 13 / var(--tw-bg-opacity));
}

.service-list article:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(21 22 22 / var(--tw-bg-opacity));
}



/** Payments Section **/

.payment__logo {
  margin-left: 1rem;
  margin-right: 1rem;
  border-radius: 0.75rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(204 204 204 / var(--tw-border-opacity));
  padding: 3rem;
}

.payment__logo:where(.dark, .dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(7, 202, 255);
  --tw-bg-opacity: 1;
  background-color: rgb(0, 52, 108);
}

.payment__logo img {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* Dark: white-out payment brand strip logos */
.dark .payment__inner img {
  filter: brightness(1) invert(1);
}

/* Home : reviews */

.reviews__carousel {
  --tw-text-opacity: 1;
  color: rgb(226 232 240 / var(--tw-text-opacity));
}

.reviews__carousel:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(21 22 22 / var(--tw-bg-opacity));
}

.reviews__carousel .author__info span {
  --tw-text-opacity: 1;
  color: rgb(203 213 225 / var(--tw-text-opacity));
}

/* DASHBOARD */

.dashboard {
  --tw-text-opacity: 1;
  color: rgb(59 82 117 / var(--tw-text-opacity));
}

.dashboard h3 {
  margin: 0px;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(10 39 83 / var(--tw-text-opacity));
}

.dashboard h3:where(.dark, .dark *) {
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity));
}

/* .dashboard input:not(.search):where(.dark, .dark *),
.dashboard textarea:where(.dark, .dark *),
.dashboard select:where(.dark, .dark *),
.select2:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(13 13 13 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(118 143 182 / var(--tw-text-opacity));
} */

.dash-header {
  display: flex;
  min-height: var(--header-hight);
  width: 100%;
  align-items: center;
  justify-content: space-between;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .dash-header {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(238 240 243 / var(--tw-border-opacity));
  }
}

.dash-header:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(13 13 13 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(248 250 252 / var(--tw-text-opacity));
}

@media (min-width: 1024px) {
  .dash-header:where(.dark, .dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(47 201 252 / var(--tw-border-opacity));
  }
}

.dash_wrapper {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.page-wrapper {
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  --tw-bg-opacity: 1;
  background-color: rgb(245 246 248 / var(--tw-bg-opacity));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-bottom: 4rem;
  padding-top: 1rem;
}

@media (min-width: 1024px) {
  .page-wrapper> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
  }

  .page-wrapper {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.page-wrapper:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: var(--color-bg);
}

.breadcrumbs {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(0 191 243 / var(--tw-text-opacity));
}

.dash_card {
  margin-bottom: 3rem;
  border-radius: 1rem;
  border-width: 1px;
  border-color: #eef0f3;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  padding: 1rem;
}

@media (min-width: 768px) {
  .dash_card {
    border-width: 1px;
  }
}

.dash_card:where(.dark, .dark *) {
  border-style: none;
  --tw-bg-opacity: 1;
  background-color: var(--color-surface);
}

.dash_card h1:where(.dark, .dark *),
.dash_card h2:where(.dark, .dark *),
.dash_card h3:where(.dark, .dark *),
.dash_card h4:where(.dark, .dark *),
.dash_card h5:where(.dark, .dark *),
.dash_card h6:where(.dark, .dark *),
.dash_card>p:where(.dark, .dark *) {
  --tw-text-opacity: 1;
  color: rgb(248 250 252 / var(--tw-text-opacity));
}

/** Seach Field **/

.dash-search {
  display: flex;
}

input.search {
  width: 100%;
  border-radius: 0.75rem;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(133 224 249 / var(--tw-border-opacity));
  background-image: url("https://storage.perfectcdn.com/7gc9nb/tt5ghlu41ylq6xnr.svg");
  background-position: 12px;
  background-repeat: no-repeat;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(102 129 173 / var(--tw-text-opacity));
}

input.search::-moz-placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(102 129 173 / var(--tw-placeholder-opacity));
}

input.search::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(102 129 173 / var(--tw-placeholder-opacity));
}

input.search {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
    var(--tw-shadow, 0 0 #0000) !important;
}

input.search:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(13 13 13 / var(--tw-bg-opacity));
}

/** Platform Cards **/

.platform-cards {
  flex-wrap: nowrap;
  gap: 0.5rem;
}

@media not all and (min-width: 1024px) {
  .platform-cards {
    display: flex;
    overflow-x: scroll;
  }
}

@media (min-width: 1024px) {
  .platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
  }
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(242 244 247 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  color: var(--color-text-primary);
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.platform:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(0 191 243 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

@media not all and (min-width: 1024px) {
  .platform {
    min-width: 160px;
  }
}

.platform:where(.dark, .dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(23 23 23 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgb(13 13 13 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(203 213 225 / var(--tw-text-opacity));
}

.platform.active {
  --tw-bg-opacity: 1;
  background-color: rgb(0 191 243 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.platform>img {
  width: 2rem;
}



/** Services Table **/

table#service-table {
  width: 100%;
  border-collapse: separate;
  --tw-border-spacing-x: 0px;
  --tw-border-spacing-y: 1rem;
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

table#service-table thead tr th {
  --tw-bg-opacity: 1;
  background-color: rgb(0 191 243 / var(--tw-bg-opacity));
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: start;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

table#service-table thead tr th:first-child {
  border-radius: 15px 0px 0px 15px;
}

table#service-table thead tr th:last-child {
  border-radius: 0px 15px 15px 0px;
}

table#service-table thead tr:first-child td {
  border-radius: 0.5rem !important;
  border-style: none;
  --tw-bg-opacity: 1;
  background-color: rgb(235 250 254 / var(--tw-bg-opacity));
}

table#service-table thead tr:first-child td h2 {
  margin: 0.5rem;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  font-weight: 300;
  --tw-text-opacity: 1;
  color: rgb(59 82 117 / var(--tw-text-opacity));
}

table#service-table tr>* {
  border-bottom-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 229 234 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 1.25rem;
}

table#service-table tr>*:where(.dark, .dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(100 116 139 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: var(--color-surface);
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity));
}

table#service-table tr>*:first-child {
  left: 1rem;
}

table#service-table tr>*:last-child {
  padding-right: 1rem;
}

.badge.max-badge {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity));
}

table#service-table .btn,
table#service-table a {
  display: inline;
  white-space: nowrap;
  border-radius: 0.75rem;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(58 181 74 / var(--tw-border-opacity));
  padding: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

@media (min-width: 768px) {

  table#service-table .btn,
  table#service-table a {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* table#service-table button {
  --tw-bg-opacity: 1;
  background-color: rgb(58 181 74 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
} */

.btn.badge {
  white-space: nowrap;
  border-width: 2px;
  --tw-text-opacity: 1;
  color: rgb(58 181 74 / var(--tw-text-opacity));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.btn.badge:hover {
  --tw-border-opacity: 1;
  border-color: rgb(160 219 168 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgb(160 219 168 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.modal {
  display: none;
}

/* ========================================================================
   Orders: UI polish (toolbar, link copy, loading)
   ======================================================================== */
/* Toolbar container */
.orders-toolbar {
  position: sticky;
  top: calc(var(--header-hight) + 8px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.orders-toolbar__statuses {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: nowrap;
  max-width: 100%;
}

.orders-toolbar__search {
  flex: 1 1 320px;
  min-width: 240px;
}

.orders-toolbar .order-tabs {
  margin: 0;
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .25rem 0;
}

.orders-toolbar .order-tabs li {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding-top: .125rem;
  padding-bottom: .125rem;
}

.orders-toolbar .order-tabs li img {
  width: 2rem;
  height: 2rem;
}

/* Horizontal scroll for status chips on small screens */
@media (max-width: 1023px) {
  .orders-toolbar__statuses {
    width: 100%;
  }

  .orders-toolbar .order-tabs.desktop-only {
    display: none;
  }

  .orders-toolbar .order-tabs.mobile-only {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    overflow: visible;
  }
}

@media (min-width: 1024px) {
  .orders-toolbar .order-tabs.mobile-only {
    display: none;
  }
}

/* Generic visibility helpers */
.mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }
}

/* Search input with clear button */
.orders-toolbar__search .input-wrapper {
  position: relative;
}

.orders-toolbar__search .search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  width: 28px;
  border-radius: 9999px;
  border: 1px solid #E2E5EA;
  background: #fff;
  color: #6C7A8A;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.orders-toolbar__search .input-wrapper.has-value .search-clear {
  display: inline-flex;
}

.dark .orders-toolbar__search .search-clear {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

/* Table wrapper + loading overlay */
.orders-table-wrapper {
  position: relative;
}

.orders-table-wrapper .loading-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .65);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.orders-table-wrapper.loading .loading-overlay {
  display: flex;
}

.dark .orders-table-wrapper .loading-overlay {
  background: rgba(0, 0, 0, .35);
}

.loading-overlay .spinner {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 2px solid #cfeaf7;
  border-top-color: #00BFF3;
  margin-right: 8px;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------------
   Subscriptions page styling
   ------------------------------------------------------------------------ */
.subscriptions-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subscriptions-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subscriptions-toolbar__search {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subscriptions-toolbar__input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.subscriptions-toolbar__input:focus-within {
  border-color: #8CE3F9;
  box-shadow: var(--ring-primary);
}

.subscriptions-toolbar__icon {
  color: #7C8799;
}

.subscriptions-toolbar__field {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  outline: none;
  min-width: 0;
}

.subscriptions-toolbar__field::placeholder {
  color: #9AA5B5;
}

.subscriptions-toolbar__input .search-clear {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: #6C7A8A;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.subscriptions-toolbar__input .search-clear:hover {
  background: #F2FAFF;
  border-color: #cfeaf7;
}

.subscriptions-toolbar__input.has-value .search-clear {
  display: inline-flex;
}

.subscriptions-toolbar__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.subscriptions-toolbar__submit:hover,
.subscriptions-toolbar__submit:focus-visible {
  background: var(--color-accent-hover);
}

.subscriptions-toolbar__filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscriptions-toolbar__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.status-pill:hover,
.status-pill:focus-visible {
  border-color: #8CE3F9;
  background: #F2FAFF;
  color: var(--color-text-primary);
}

.status-pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.status-pill[data-status="all"] .status-pill__dot {
  background: #00BFF3;
}

.status-pill[data-status="active"] .status-pill__dot {
  background: #10B981;
}

.status-pill[data-status="paused"] .status-pill__dot {
  background: #F59E0B;
}

.status-pill[data-status="completed"] .status-pill__dot {
  background: #2563EB;
}

.status-pill[data-status="expired"] .status-pill__dot {
  background: #7C3AED;
}

.status-pill[data-status="canceled"] .status-pill__dot {
  background: #EF4444;
}

.status-pill.is-active[data-status="all"] {
  background: #00BFF3;
  border-color: #00BFF3;
  color: #fff;
}

.status-pill.is-active[data-status="all"] .status-pill__dot {
  background: #fff;
}

.status-pill.is-active[data-status="active"] {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #0F766E;
}

.status-pill.is-active[data-status="paused"] {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #B45309;
}

.status-pill.is-active[data-status="completed"] {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  color: #1D4ED8;
}

.status-pill.is-active[data-status="expired"] {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.4);
  color: #6B21A8;
}

.status-pill.is-active[data-status="canceled"] {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #B91C1C;
}

.subscriptions-toolbar__select {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.subscriptions-toolbar__select-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.subscriptions-status-select {
  width: 220px;
  max-width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-weight: 600;
}

.subscriptions-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.subscriptions-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px dashed rgba(0, 191, 243, 0.35);
  background: #F5FCFF;
  color: var(--color-text-secondary);
}

.subscriptions-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.subscriptions-empty-state__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.subscriptions-empty-state__link:hover,
.subscriptions-empty-state__link:focus-visible {
  background: #F2FAFF;
  border-color: #8CE3F9;
}

.subscriptions-table-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subscriptions-table-scroll {
  overflow-x: auto;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.subscriptions-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.subscriptions-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border);
}

.subscriptions-table tbody td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.subscriptions-table thead th:last-child,
.subscriptions-table tbody td:last-child {
  text-align: right;
}

.subscriptions-table tbody tr:last-child td {
  border-bottom: none;
}

.subscriptions-table tbody tr:hover {
  background: #F7FBFF;
}

.subscriptions-table__id {
  font-weight: 700;
  color: var(--color-text-primary);
}

.subscriptions-table__link,
.subscriptions-table__service {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text-primary);
}

.subscriptions-table__link-action {
  color: #2563EB;
  font-weight: 600;
  text-decoration: none;
}

.subscriptions-table__link-action:hover,
.subscriptions-table__link-action:focus-visible {
  text-decoration: underline;
}

.subscriptions-table__divider {
  margin: 0 0.35rem;
  color: #9AA5B5;
}

.subscription-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  background: #E7F1FF;
  color: #1D4ED8;
}

.subscriptions-table__actions {
  text-align: right;
}

.subscription-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.subscription-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.subscription-action--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.subscription-action--primary:hover,
.subscription-action--primary:focus-visible {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.subscription-action--danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #B91C1C;
}

.subscription-action--danger:hover,
.subscription-action--danger:focus-visible {
  background: rgba(239, 68, 68, 0.22);
}

.subscriptions-mobile-list {
  display: none;
}

.subscription-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: 1.35rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.subscription-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.subscription-card__id {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.subscription-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.subscription-card__value {
  font-weight: 600;
  color: var(--color-text-primary);
  word-break: break-word;
}

.subscription-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.subscription-card__row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.subscription-card__dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.subscription-card__footer {
  margin-top: 0.5rem;
}

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

.subscriptions-pagination__list {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.subscriptions-pagination__link {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}

.subscriptions-pagination__link:hover,
.subscriptions-pagination__link:focus-visible {
  background: #F2FAFF;
  color: var(--color-text-primary);
  border-color: #8CE3F9;
}

.subscriptions-pagination__link.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

@media (max-width: 991px) {
  .subscriptions-toolbar__buttons {
    display: none;
  }

  .subscriptions-toolbar__select {
    display: flex;
  }

  .subscriptions-toolbar__search {
    gap: 0.5rem;
  }

  .subscriptions-toolbar__submit {
    width: 100%;
  }

  .subscriptions-table-scroll {
    display: none;
  }

  .subscriptions-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .subscriptions-toolbar__search {
    flex-direction: row;
    align-items: center;
  }

  .subscriptions-toolbar__search > * {
    flex-shrink: 0;
  }

  .subscriptions-toolbar__input {
    flex: 1 1 auto;
  }
}

.dark .subscriptions-toolbar__input {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.dark .subscriptions-toolbar__icon {
  color: var(--color-text-secondary);
}

.dark .subscriptions-toolbar__field::placeholder {
  color: var(--color-text-secondary);
}

.dark .subscriptions-toolbar__input .search-clear {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

.dark .subscriptions-toolbar__input .search-clear:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dark .status-pill {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

.dark .status-pill:hover,
.dark .status-pill:focus-visible {
  border-color: rgba(140, 227, 249, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.dark .status-pill.is-active[data-status="all"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.dark .subscriptions-empty-state {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(140, 227, 249, 0.35);
  color: var(--color-text-primary);
}

.dark .subscriptions-empty-state__link {
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.dark .subscriptions-empty-state__link:hover,
.dark .subscriptions-empty-state__link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(140, 227, 249, 0.45);
}

.dark .subscriptions-table-scroll {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: none;
}

.dark .subscriptions-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.dark .subscriptions-table tbody td {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-secondary);
}

.dark .subscriptions-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dark .subscription-status-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
}

.dark .subscription-card {
  border-color: var(--color-border);
  background: var(--color-surface);
  box-shadow: none;
}

.dark .subscriptions-pagination__list {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.dark .subscriptions-pagination__link {
  color: var(--color-text-secondary);
}

.dark .subscriptions-pagination__link:hover,
.dark .subscriptions-pagination__link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  border-color: rgba(140, 227, 249, 0.45);
}

.dark .subscriptions-pagination__link.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Link cell: truncate + copy */
.link-cell {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.link-cell a {
  word-break: break-all;
}

.id-cell {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.copy-btn,
.reorder-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #E2E5EA;
  background: #fff;
  font-size: .75rem;
  color: #3f4b5a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover,
.reorder-btn:hover {
  background: #F7FBFF;
  border-color: #cfeaf7;
}

.copy-btn.copied {
  background: #F7FBFF;
  border-color: #cfeaf7;
}

.dark .copy-btn,
.dark .reorder-btn {
  background: rgba(255, 255, 255, .06);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.dark .copy-btn:hover,
.dark .reorder-btn:hover {
  background: rgba(255, 255, 255, .10);
}

.orders-mobile-list {
  display: none;
}

@media (max-width: 767px) {
  .orders-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .orders-table-wrapper table#service-table {
    display: none !important;
  }

  .order-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 1.25rem;
    border: 1px solid #D5D8EB;
    background: #fff;
    box-shadow: 0 16px 32px rgba(13, 60, 113, 0.08);
  }

  .order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
  }

  .order-card__id {
    display: flex;
    align-items: center;
    gap: .75rem;
  }

  .order-card__id-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
  }

  .order-card__label {
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    color: #8A94A6;
  }

  .order-card__label--muted {
    color: #9CA6B8;
  }

  .order-card__value {
    font-size: .95rem;
    font-weight: 600;
    color: #0A2753;
  }

  .order-card__value--id {
    font-size: 1.1rem;
  }

  .order-card__copy {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .order-card__copy svg {
    width: 16px;
    height: 16px;
  }

  .order-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
  }

  .order-card__date {
    font-size: .8rem;
    color: #5F6B7B;
    text-align: right;
    max-width: 180px;
    line-height: 1.3;
    word-break: break-word;
  }

  .order-card__content {
    display: flex;
    flex-direction: column;
    gap: .85rem;
  }

  .order-card__row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .75rem;
  }

  .order-card__row .order-card__value {
    justify-self: end;
    text-align: right;
  }

  .order-card__row--link {
    align-items: flex-start;
  }

  .order-card__link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    min-width: 0;
  }

  .order-card__link a {
    flex: 1 1 auto;
    color: #2563EB;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .order-card__link a:hover {
    text-decoration: underline;
  }

  .order-card__stat-split {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
  }

  .order-card__start {
    color: #2563EB;
  }

  .order-card__remains {
    color: #F30F01;
  }

  .order-card__value--service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    text-align: left;
    justify-self: stretch;
  }

  .order-card__service-id {
    font-size: .75rem;
    color: #7C8799;
    font-weight: 500;
  }

  .order-card__service-name {
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
  }

  .order-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .order-card__status {
    display: flex;
    align-items: center;
    gap: .5rem;
  }

  .order-card__status [data-status] {
    font-size: .75rem;
    padding: .35rem .75rem !important;
  }

  .order-card__status i {
    font-size: .85rem;
    color: #7C8799;
  }

  .order-card__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
  }

  .order-card__actions .reorder-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
  }

  .order-card__task {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
  }

  .dark .order-card {
    background: var(--color-surface);
    border-color: var(--color-border);
    box-shadow: none;
  }

  .dark .order-card__value,
  .dark .order-card__service-name,
  .dark .order-card__value--id {
    color: var(--color-text-primary);
  }

  .dark .order-card__label,
  .dark .order-card__label--muted,
  .dark .order-card__service-id,
  .dark .order-card__date,
  .dark .order-card__status i {
    color: var(--color-text-secondary);
  }

  .dark .order-card__link a {
    color: var(--color-accent);
  }
}

.badge-start,
.badge-remains {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 8px;
  font-size: .75rem;
}

.badge-start {
  background: #e0f2ff;
  color: #00BFF3;
}

.badge-remains {
  background: #ffe5e5;
  color: #F30F00;
}

/* Mobile polish: fix header/hero overlap and overflow */
@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden;
  }

  .main-header .nav__main {
    display: none;
  }

  .main-header .header_actions {
    gap: .5rem;
  }

  /* Dashboard header spacing + logo sizing */
  .dash-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dash-header .header-left img {
    max-width: 128px;
    height: auto;
  }

  .hero {
    padding-top: calc(var(--header-hight) + 12px);
  }

  .hero__heading {
    font-size: clamp(1.75rem, 7vw + .4rem, 2.25rem);
    line-height: 1.15;
  }

  .hero__intro {
    max-width: 100%;
    font-size: .95rem;
  }

  .signIn_form {
    width: 100%;
    margin-top: 1rem;
  }

  .carousel__buttons {
    display: none;
  }

  .payment__inner {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* Ensure only one sidebar toggle shows per breakpoint */
@media (max-width: 1023px) {
  .dash-header .header-left .sidebar-toggle {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .dash-header .top-actions>.sidebar-toggle {
    display: none !important;
  }
}

/* Sidebar full-height on desktop (start from very top) */
@media (min-width: 1024px) {
  .sidebar {
    margin-top: 0 !important;
  }
}

/* ========================================================================
   Refunds Page: redesigned layout
   ======================================================================== */
.refunds-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.refunds-card {
  background: var(--color-surface);
  border: 1px solid rgba(133, 224, 249, 0.45);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.dark .refunds-card {
  background: var(--color-surface);
  border-color: rgba(133, 224, 249, 0.25);
  box-shadow: var(--shadow-card-dark);
}

.refunds-card--notice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-right: 3.25rem;
  color: var(--color-text-primary);
  background: linear-gradient(180deg, rgba(224, 247, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(133, 224, 249, 0.65);
}

.dark .refunds-card--notice {
  background: linear-gradient(180deg, rgba(16, 42, 82, 0.92) 0%, rgba(11, 31, 63, 0.92) 100%);
  border-color: rgba(133, 224, 249, 0.45);
  color: var(--color-text-primary);
}

.refunds-alert__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(0, 191, 243, 0.12);
  color: #00BFF3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.refunds-alert__icon svg {
  width: 22px;
  height: 22px;
}

.dark .refunds-alert__icon {
  background: rgba(38, 212, 255, 0.18);
  color: #4AD8FF;
}

.refunds-alert__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.refunds-alert__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-primary);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.refunds-alert__close span {
  display: block;
  transform: translateY(-1px);
}

.refunds-alert__close:hover {
  background: rgba(0, 191, 243, 0.15);
  transform: translateY(-1px);
}

.refunds-alert__close:focus-visible {
  outline: 2px solid rgba(0, 191, 243, 0.45);
  outline-offset: 2px;
}

.dark .refunds-alert__close {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
}

.dark .refunds-alert__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.refunds-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.refunds-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(133, 224, 249, 0.45);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11, 60, 113, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.refunds-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 60, 113, 0.12);
  background: rgba(247, 251, 255, 0.95);
}

.refunds-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #00BFF3 0%, #5C50C4 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(11, 90, 140, 0.25);
}

.dark .refunds-tab {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(133, 224, 249, 0.22);
  box-shadow: none;
}

.dark .refunds-tab:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dark .refunds-tab.is-active {
  background: linear-gradient(135deg, #26D4FF 0%, #5C50C4 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.refunds-search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(133, 224, 249, 0.45);
  padding: 0.35rem 0.35rem 0.35rem 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 2px rgba(10, 39, 83, 0.08);
}

.refunds-search-form__leading {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(0, 191, 243, 0.12);
  color: #00BFF3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.refunds-search-form__leading svg {
  width: 20px;
  height: 20px;
}

.refunds-search-form__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
  min-width: 0;
}

.refunds-search-form__input::placeholder {
  color: rgba(63, 75, 90, 0.6);
}

.refunds-search-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 9999px;
  padding: 0.55rem 1.35rem;
  background: linear-gradient(135deg, #00BFF3 0%, #5C50C4 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.refunds-search-form__submit svg {
  width: 18px;
  height: 18px;
}

.refunds-search-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 60, 113, 0.22);
}

.refunds-search-form__submit:focus-visible {
  outline: 2px solid rgba(0, 191, 243, 0.45);
  outline-offset: 2px;
}

.dark .refunds-search-form {
  background: rgba(16, 42, 82, 0.9);
  border-color: rgba(133, 224, 249, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dark .refunds-search-form__leading {
  background: rgba(38, 212, 255, 0.18);
  color: #4AD8FF;
}

.dark .refunds-search-form__input {
  color: var(--color-text-primary);
}

.dark .refunds-search-form__input::placeholder {
  color: rgba(220, 232, 255, 0.55);
}

.dark .refunds-search-form__submit {
  box-shadow: none;
}

.dark .refunds-search-form__submit:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.refunds-table-wrapper {
  background: var(--color-surface);
  border: 1px solid rgba(133, 224, 249, 0.45);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.dark .refunds-table-wrapper {
  border-color: rgba(133, 224, 249, 0.25);
  box-shadow: var(--shadow-card-dark);
}

.refunds-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.refunds-table thead {
  background: rgba(0, 191, 243, 0.08);
}

.refunds-table th {
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--color-text-secondary);
}

.refunds-table tbody tr {
  transition: background 0.2s ease;
}

.refunds-table tbody tr:hover {
  background: rgba(0, 191, 243, 0.05);
}

.refunds-table td {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
  border-top: 1px solid rgba(133, 224, 249, 0.35);
}

.refunds-table td a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.refunds-table td a:hover {
  color: #00BFF3;
  text-decoration: underline;
}

.dark .refunds-table thead {
  background: rgba(38, 212, 255, 0.12);
}

.dark .refunds-table td {
  border-color: rgba(133, 224, 249, 0.18);
}

.dark .refunds-table tbody tr:hover {
  background: rgba(38, 212, 255, 0.15);
}

.refund-card {
  background: var(--color-surface);
  border: 1px solid rgba(133, 224, 249, 0.45);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.refund-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.refund-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.refund-card__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: right;
}

.refund-card__link {
  color: #00BFF3;
  text-decoration: none;
  word-break: break-word;
}

.refund-card__link:hover {
  text-decoration: underline;
}

.refund-card__amount {
  color: var(--color-success);
}

.refund-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 191, 243, 0.12);
  color: #0A2753;
  font-size: 0.85rem;
}

.refund-card__date {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.dark .refund-card {
  border-color: rgba(133, 224, 249, 0.25);
  box-shadow: var(--shadow-card-dark);
}

.dark .refund-card__status {
  background: rgba(38, 212, 255, 0.18);
  color: #C4E9FF;
}

/* Updates page */
.updates-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem;
  border: none;
  background: linear-gradient(135deg, #00BFF3 0%, #5C50C4 100%);
  color: #ffffff;
  overflow: hidden;
}

.updates-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.updates-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 32px rgba(8, 55, 101, 0.35);
  z-index: 1;
}

.updates-hero__content {
  display: grid;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.updates-hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0;
}

.updates-hero__title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin: 0;
}

.updates-hero__description {
  margin: 0;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.92;
}

.updates-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  padding: 1.75rem;
}

.updates-controls__filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.updates-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 243, 0.35);
  background: rgba(0, 191, 243, 0.08);
  color: #0a2753;
  font-weight: 600;
  transition: all 0.2s ease;
}

.updates-filter:hover {
  border-color: #00BFF3;
  box-shadow: 0 10px 20px rgba(0, 191, 243, 0.18);
}

.updates-filter.is-active {
  background: linear-gradient(135deg, #00BFF3 0%, #5C50C4 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(11, 60, 113, 0.22);
}

.updates-search {
  display: flex;
  flex: 1;
  gap: 0.85rem;
  align-items: stretch;
  min-width: min(100%, 260px);
}

.updates-search__field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.updates-search__field:focus-within {
  border-color: #00BFF3;
  box-shadow: var(--ring-primary);
}

.updates-search__icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-secondary);
}

.updates-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.updates-search__input::placeholder {
  color: rgba(63, 75, 90, 0.6);
}

.updates-search__input:focus {
  outline: none;
}

.updates-search__submit {
  align-self: center;
  padding: 0.65rem 1.75rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00BFF3 0%, #5C50C4 100%);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.updates-search__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(11, 60, 113, 0.22);
}

.updates-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem;
}

.updates-timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-left: 2.25rem;
}

.updates-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 3px;
  background: linear-gradient(180deg, rgba(0, 191, 243, 0.45) 0%, rgba(92, 80, 196, 0.2) 100%);
}

.update-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1.6rem 1.5rem 1.6rem 2.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.update-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(10, 39, 83, 0.14);
}

.update-card__marker {
  position: absolute;
  top: 1.75rem;
  left: -1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #00BFF3 0%, #5C50C4 100%);
  box-shadow: 0 0 0 6px rgba(0, 191, 243, 0.18);
}

.update-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.update-card__service {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.update-card__service-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 191, 243, 0.12);
  color: #00BFF3;
  font-weight: 700;
  font-size: 0.85rem;
}

.update-card__service-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.update-card__date {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.update-card__description {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.updates-empty-state {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(0, 191, 243, 0.35);
  border-radius: 16px;
  background: rgba(0, 191, 243, 0.05);
}

.updates-empty-state__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.updates-empty-state__description {
  margin: 0;
  max-width: 48ch;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.updates-empty-state__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 243, 0.4);
  background: #ffffff;
  color: #00BFF3;
  font-weight: 600;
  transition: all 0.2s ease;
}

.updates-empty-state__action:hover {
  background: linear-gradient(135deg, #00BFF3 0%, #5C50C4 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(11, 60, 113, 0.22);
}

.updates-pagination {
  margin-top: 0.5rem;
}

.updates-pagination__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0;
}

.updates-pagination__list li {
  list-style: none;
}

.updates-pagination__list li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(133, 224, 249, 0.45);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.updates-pagination__list li a:hover,
.updates-pagination__list li.active a {
  background: linear-gradient(135deg, #00BFF3 0%, #5C50C4 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(11, 60, 113, 0.22);
}

.dark .updates-hero {
  background: linear-gradient(135deg, rgba(0, 191, 243, 0.9) 0%, rgba(64, 109, 214, 0.9) 100%);
  box-shadow: var(--shadow-card-dark);
}

.dark .updates-filter {
  border-color: rgba(133, 224, 249, 0.35);
  background: rgba(0, 191, 243, 0.12);
  color: var(--color-text-primary);
}

.dark .updates-search__field {
  border-color: rgba(133, 224, 249, 0.25);
  background: rgba(16, 42, 82, 0.85);
}

.dark .updates-search__icon {
  color: rgba(196, 233, 255, 0.75);
}

.dark .updates-search__input {
  color: var(--color-text-primary);
}

.dark .update-card {
  border-color: rgba(133, 224, 249, 0.25);
  background: rgba(16, 42, 82, 0.92);
  box-shadow: var(--shadow-card-dark);
}

.dark .update-card__service-name,
.dark .updates-empty-state__title {
  color: var(--color-text-primary);
}

.dark .update-card__description,
.dark .update-card__date,
.dark .updates-empty-state__description {
  color: var(--color-text-secondary);
}

.dark .updates-empty-state {
  background: rgba(0, 191, 243, 0.08);
  border-color: rgba(133, 224, 249, 0.35);
}

.dark .updates-empty-state__action {
  background: rgba(16, 42, 82, 0.92);
  border-color: rgba(133, 224, 249, 0.25);
  color: #4ad8ff;
}

.dark .updates-pagination__list li a {
  border-color: rgba(133, 224, 249, 0.25);
  background: rgba(16, 42, 82, 0.92);
}

.dark .updates-pagination__list li a:hover,
.dark .updates-pagination__list li.active a {
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
  .updates-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .updates-hero__content {
    justify-items: center;
  }

  .updates-hero__description {
    justify-self: center;
  }

  .updates-hero__icon {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .updates-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .updates-search {
    width: 100%;
  }

  .updates-search__submit {
    width: 100%;
  }

  .updates-section {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .updates-timeline {
    padding-left: 1.5rem;
  }

  .updates-timeline::before {
    left: 0.75rem;
  }

  .update-card {
    padding: 1.4rem 1.2rem 1.4rem 2.1rem;
  }

  .update-card__marker {
    left: -1.4rem;
    top: 1.5rem;
  }

  .updates-empty-state {
    padding: 2.5rem 1.25rem;
  }
}

.refunds-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0;
  flex-wrap: wrap;
}

.refunds-pagination li {
  list-style: none;
}

.refunds-pagination li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.95rem;
  border-radius: 9999px;
  border: 1px solid rgba(133, 224, 249, 0.45);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.refunds-pagination li a:hover,
.refunds-pagination li.active a {
  background: linear-gradient(135deg, #00BFF3 0%, #5C50C4 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(11, 60, 113, 0.22);
}

.dark .refunds-pagination li a {
  border-color: rgba(133, 224, 249, 0.25);
  background: rgba(16, 42, 82, 0.92);
}

.dark .refunds-pagination li a:hover,
.dark .refunds-pagination li.active a {
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .refunds-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .refunds-card {
    padding: 1.25rem;
  }

  .refunds-tabs {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .refund-card {
    padding: 1.15rem;
  }

  .refund-card__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .refund-card__value {
    text-align: left;
    width: 100%;
  }

  .refund-card__status {
    align-self: flex-start;
  }
}

/* --- Add Funds responsive fixes (payment methods) --- */
.dash_card .tabs {
  flex-wrap: wrap;
}

.payment-methods .tab {
  flex-basis: calc(50% - 8px) !important;
  min-width: 140px;
}

@media (min-width: 640px) {
  .payment-methods .tab {
    flex-basis: calc(33.333333% - 8px) !important;
  }
}

@media (min-width: 768px) {
  .payment-methods .tab {
    flex-basis: calc(25% - 8px) !important;
  }
}

@media (min-width: 1024px) {
  .payment-methods .tab {
    flex-basis: 16.666667% !important;
  }
}

/* Higher-specificity overrides to win cascade regardless of load order */
.dash_card .payment-methods .tab {
  flex-basis: calc(50% - 8px) !important;
  min-width: 140px;
}

@media (min-width: 640px) {
  .dash_card .payment-methods .tab {
    flex-basis: calc(33.333333% - 8px) !important;
  }
}

@media (min-width: 768px) {
  .dash_card .payment-methods .tab {
    flex-basis: calc(25% - 8px) !important;
  }
}

@media (min-width: 1024px) {
  .dash_card .payment-methods .tab {
    flex-basis: 16.666667% !important;
  }
}


/* Dashboard : Add Funds */

.fund-logos {
  /* @apply flex-wrap justify-between gap-x-4 overflow-scroll p-0 lg:flex; */
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  --tw-bg-opacity: 1;
  background-color: rgb(245 246 248 / var(--tw-bg-opacity));
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .fund-logos {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    max-height: 220px;
    overflow-y: auto;
    padding: 1.25rem;
    row-gap: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(149, 156, 169, 0.45) transparent;
    scrollbar-width: thin;
  }

  .fund-logos::-webkit-scrollbar {
    height: 6px;
    width: 6px;
  }

  .fund-logos::-webkit-scrollbar-thumb {
    background-color: rgba(149, 156, 169, 0.45);
    border-radius: 9999px;
  }
}

.fund-logos:where(.dark, .dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(0 51 106);
}

.fund-logos img {
  height: 20px !important;
  max-width: 80px;
  -o-object-fit: contain;
  object-fit: contain;
}

.fund-logo__card {
  flex-shrink: 0;
  flex-grow: 0;
  padding: 1rem;
}

.fund-logo__card:where(.dark, .dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(23 23 23 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgb(13 13 13 / var(--tw-bg-opacity));
}

.payment-methods.tabs {
  margin-bottom: 1rem;
}

.payment-methods .tab {
  flex-basis: 16.666667% !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.payment-methods .tab img {
  height: 30px;
}

.payment-methods .tab.active {
  --tw-bg-opacity: 1;
  background-color: rgb(0 191 243 / var(--tw-bg-opacity));
}

.dark .bg-white {
  background-color: #0a2753;
}


@media screen and(max-width: 768px) {
  table#service-table {
    border: 0;
    margin-top: 0;
  }

  table#service-table caption {
    font-size: 1.3em;
  }

  table#service-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table#service-table tr {
    display: block !important;
    margin-bottom: 0.75rem !important;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 0.75rem;
  }

  table#service-table td {
    border-bottom: 1px solid #e9e9e9;
    display: block !important;
    font-size: 0.8em;
    text-align: right !important;
    min-height: 40px;
    padding: 0.25rem 0;
  }

  table#service-table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }

  table#service-table td:last-child {
    border-bottom: 0;
  }

  table#service-table tbody tr td {
    text-align: right !important;
  }
}


.dark .hamb {
  color: var(--color-text-primary)
}