:root {
  --primary-color: #ff6b00;
  --orange: #ff6b00;
  --orange-dark: #cc5500;
  --text-dark: #1a1a1a;
  --text-muted: #535353;
  --white: #ffffff;
  --radius-lg: 30px;
  --transition: all 0.3s ease;
  --gradient-orange: linear-gradient(
    108.21deg,
    #ff6b00 8.2%,
    #cc4d02 53.43%,
    #a13c0b 99.2%
  );
  /* --primary-gradient: linear-gradient(5deg,
      #ff6b00 20.2%,
      #a13c0b 70.2%,
      #a13c0b 99.2%); */

  --primary-gradient: linear-gradient(90deg, #82330c 0%, #d87f16 100%);
}

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

body {
  font-family: "Inter";
  background: var(--white);
}

.hidden {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title-nav,
.main-heading,
.brand-logo span {
  font-family: "Poppins", sans-serif !important;
}

.form-group {
  margin-bottom: 15px;
}

.form-group .control-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #82330c;
  font-size: 14px;
  font-weight: 500;
}

.dark-mode .input-wrapper__prepend,
.dark-mode .help-block,
.dark-mode .form-group .control-label {
  color: #ff6b00;
}

.dark-mode .form-group__label-title {
  color: #ff6b00;
}

.dark-mode .form-control::placeholder {
  color: var(--white);
}

.text-orange {
  color: var(--orange);
}

.auth-container {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 50%);
  align-items: stretch;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

/* ── LEFT PANEL ── (centered in the left column; content vertically centered) */
.left-panel {
  justify-self: center;
  width: min(100%, 550px);
  max-width: 580px;
  min-width: 0;
  padding: 5px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 30px;
}

.brand-logo img {
  width: 200px;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.stars {
  font-size: 10px;
  display: flex;
  gap: 4px;
}

.stars i {
  background: var(--orange);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stars svg {
  background: var(--orange);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  padding: 3px;
  box-sizing: border-box;
  flex-shrink: 0;
  animation: stars-animation 2.5s ease infinite both;
}

.stars svg:nth-child(2) {
  animation-delay: 0.2s;
}

.stars svg:nth-child(3) {
  animation-delay: 0.4s;
}

.stars svg:nth-child(4) {
  animation-delay: 0.6s;
}

.stars svg:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes stars-animation {
  0% {
    scale: 0;
  }

  10% {
    scale: 1.1;
  }

  15% {
    scale: 1;
  }

  100% {
    scale: 1;
  }
}

.rating-text {
  font-size: 14px;
  color: #535353;
}

.rating-text b {
  color: #1a1a1a;
  margin-right: 4px;
}

.heading-section {
  margin-bottom: 8px;
}

.tagline {
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 12px;
}

.tagline span {
  font-weight: 700;
}

.main-heading {
  font-size: 32px;
  font-weight: 500;
  color: var(--text-dark);
}

.text-gradient {
  font-weight: 500;
  background: linear-gradient(90deg, #d87f16 0%, #ff6b00 50.48%, #82330c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(90deg, #82330c 0%, #e3631a 50.48%, #d87f16 100%);
}

.icon-gradient {
  background: linear-gradient(103.88deg, #899801 0%, #63680d 100%);
}

.icon-gradient-active {
  background: linear-gradient(
    90deg,
    #1a88dc 23.81%,
    #34c759 50.48%,
    #d5247f 84.12%
  );
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--gradient-orange);
  border-radius: 16px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 580px;
  padding: 3px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn.active {
  background: var(--white);
  color: #ff6b00;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.input-control {
  position: relative;
  display: flex;
  align-items: center;
}

.input-control i:first-child {
  position: absolute;
  left: 15px;
  color: var(--text-dark);
  font-size: 15px;
}

.input-control iconify-icon:first-child {
  position: absolute;
  left: 15px;
  color: var(--text-dark);
  font-size: 18px;
}

.input-control input {
  width: 100%;
  height: 47px;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 0 45px;
  font-size: 14px;
  color: #535353;
  outline: none;
  transition: var(--transition);
}

.input-control input:focus {
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 5px 15px rgba(244, 122, 32, 0.1);
}

.toggle-password {
  position: absolute;
  right: 15px;
  cursor: pointer;
  color: #ccc;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: normal;
  cursor: pointer;
  flex-wrap: wrap;
}

.checkbox-group input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ff6b00;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.checkbox-group input:checked {
  background: #ff6b00;
  border-color: #ff6b00;
}

.checkbox-group input:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-group a {
  text-decoration: none;
  font-weight: 600;
}

.forgot-link {
  font-size: 13px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--orange);
}

.gradient-icon {
  font-size: 1.2rem;
  background: linear-gradient(103.88deg, #899801 0%, #63680d 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.btn-submit {
  height: 52px;
  background: var(--gradient-orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 6px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: linear-gradient(
    108.21deg,
    #cc5500 8.2%,
    #a33f00 53.43%,
    #82330c 99.2%
  );
  transform: translateY(-2px);
}

.btn-google {
  height: 52px;
  background: #f3f5f9;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.btn-google img {
  width: 18px;
}

.btn-google:hover {
  background: #e9ecef;
}

.footer-text {
  font-size: 14px;
  color: #535353;
}

.footer-text a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
}

/* ── RIGHT PANEL ── (grid column caps width at 50%; stays on the right) */
.right-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.right-panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.right-panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.back-btn {
  background: #fff;
  border: none;
  border-radius: 100px;
  padding: 6px 20px 6px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: #ff6b00;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn-desktop {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 10;
}

.back-btn-mobile {
  display: none;
}

.back-btn i {
  background: var(--orange);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.character-illustration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.character-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: bottom;
  max-height: 80%;
}

.social-icons-bar {
  position: relative;
  z-index: 5;
  min-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 25px;
  margin-bottom: 40px;
  background: #ffffff14;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
}

.social-icons-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--gradient-orange);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.social-icon-link {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  overflow: hidden;
  animation: bounce 2s ease infinite;
  animation-fill-mode: both;
}

.social-icon-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.animate-delay-600 {
  animation-delay: 0.6s;
}

.animate-delay-900 {
  animation-delay: 0.9s;
}

.animate-delay-1200 {
  animation-delay: 1.2s;
}

.animate-delay-1500 {
  animation-delay: 1.5s;
}

@keyframes bounce {
  0%,
  100% {
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    transform: translateY(-15%);
  }

  50% {
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    transform: none;
  }
}

.form-content {
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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

/* ── MOBILE HERO BANNER ── */
.mobile-hero-banner {
  display: none;
  /* hidden on desktop */
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .auth-container {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 0;
  }

  /* Show the mobile hero banner */
  .mobile-hero-banner {
    display: flex;
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px 18px 18px;
    flex-shrink: 0;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  }

  /* Shimmer accent line at bottom of banner */
  .mobile-hero-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      #ff6b00 30%,
      #ffaa44 50%,
      #ff6b00 70%,
      transparent 100%
    );
    z-index: 3;
    border-radius: 2px;
    opacity: 0.85;
  }

  .mobile-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -98px;
    z-index: 0;
  }

  .mobile-hero-overlay {
    position: absolute;
    inset: 0;

    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.25) 74%
      ),
      linear-gradient(
        120deg,
        rgba(180, 70, 0, 0.2) 0%,
        rgba(255, 107, 0, 0.1) 40%,
        rgba(0, 0, 0, 0) 67%
      );

    z-index: 1;
  }

  /* Logo on the left */
  .mobile-hero-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .mobile-hero-logo img {
    width: 130px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
  }

  /* Back button on the right */
  .mobile-hero-back {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 100px;
    padding: 6px 16px 6px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
  }

  .mobile-hero-back:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
  }

  .mobile-hero-back i {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.5);
    flex-shrink: 0;
  }

  .left-panel {
    padding: 20px 20px;
    width: 100%;
    max-width: none;
    padding-top: 24px;
  }

  .right-panel {
    display: none;
  }

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

  .action-buttons {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .back-btn-desktop {
    display: none;
  }

  /* Hide the old back-btn-mobile (replaced by mobile-hero-back) */
  .back-btn-mobile {
    display: none !important;
  }

  /* Brand logo is shown in the hero banner on mobile — hide it in the panel */
  .brand-logo {
    display: none;
  }

  .main-heading {
    font-size: 28px;
  }

  .tagline {
    font-size: 16px;
    text-align: center;
  }

  .rating-box {
    justify-content: center;
  }

  .heading-section {
    text-align: center;
    margin-bottom: 25px;
  }

  .auth-tabs {
    max-width: 100%;
  }

  .footer-text {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 10px 5px;
    margin-top: 15px;
    border: 1px dashed #e7e7e7;
    color: #000;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 24px;
  }

  .tab-btn {
    font-size: 13px;
    padding: 10px;
  }

  .btn-submit,
  .btn-google {
    height: 48px;
    font-size: 13px;
  }
}

/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* *****************    dashboard style     ************* */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */

/* ══ TOKENS ══ */
:root {
  --orange: #e07020;
  --orange-light: #f08030;
  --orange-dark: #c05810;
  --cream: #fff8f0;
  --cream-border: #e6e6e6;
  --sidebar-w: 300px;
  --sidebar-icon-w: 90px;
  --header-h: 90px;
  --text-dark: #3a2a10;
  --text-mid: #7a5a30;
  --green-badge: #28a745;
  --shadow-sm: 0 2px 8px rgba(180, 100, 20, 0.12);
  --shadow-md: 0 4px 20px rgba(180, 100, 20, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
}

/* ══ APP SHELL ══ */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  z-index: 1;
  position: relative;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.app-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url(https://storage.perfectcdn.com/kf2yrn/6e6uo3zzxkymalen.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* ══ TOP NAV ══ */
.top-nav {
  height: var(--header-h);
  background: linear-gradient(
    89.98deg,
    rgba(255, 255, 255, 0.5) 0.01%,
    rgba(255, 240, 211, 0.301698) 49.57%,
    rgba(255, 107, 0, 0.1) 99.98%
  );
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  z-index: 300;
  overflow: visible;
}

/* Left brand column — same width as sidebar */
.sidebar-header {
  height: var(--header-h);
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar-header.icon-only {
  width: var(--sidebar-icon-w);
}

.sidebar-header.icon-only .brand-text {
  display: none;
}

/* Logo swap for icon-only mode */
.brand-logo-icon {
  display: none;
}

.sidebar-header.icon-only .brand-logo-full {
  display: none;
}

.sidebar-header.icon-only .brand-logo-icon {
  display: block;
}

.title-date-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Right header */
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 25px 40px;
  gap: 20px;
  min-width: 0;
  border-bottom: 1px solid var(--orange);
}

/* Desktop toggle — on the border line */
.sidebar-toggle {
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 26px;
  background: linear-gradient(90deg, #82330c 0%, #e3631a 50.48%, #d87f16 100%);
  border: none;
  border-radius: 4px;
  opacity: 1;
  padding: 3px 5px 3px 5px;
  gap: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #fff;
  z-index: 400;
}

.sidebar-toggle:hover {
  background: linear-gradient(90deg, #5a1d08 0%, #b54d14 50.48%, #a66311 100%);
}

.sidebar-toggle iconify-icon {
  font-size: 18px;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle.icon-only {
  left: -15px;
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  background: var(--orange);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 10px;
  align-self: center;
}

/* Brand */
.brand-image-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Mobile brand (in nav-right) */
.mobile-brand {
  display: none;
  align-items: center;
  gap: 7px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orange);
  text-decoration: none;
}

.mobile-brand .brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.mobile-brand .brand-icon svg {
  width: 15px;
  height: 15px;
}

.page-title-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 24px;
  background: linear-gradient(90deg, #82330c 0%, #ff6b00 50.48%, #d87f16 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.page-title-nav i {
  color: var(--orange);
}

.date-badge {
  position: relative;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #82330c;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: transparent;
  z-index: 1;
}

body.dark-mode .date-badge {
  color: #ffffff;
}

body.dark-mode .account-2fa-approve-form p {
  color: white;
}

.date-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(90deg, #d87f16 0%, #ff6b00 50.48%, #82330c 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
}

/* .date-badge i,
.date-badge iconify-icon {
    color: #63680D;
} */

.date-badge i {
  background: linear-gradient(103.88deg, #899801 0%, #63680d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ff6b00 0%, #903000 100%);
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px #fff0e0,
    0 0 0 4.5px #ff6b00;
  flex-shrink: 0;
  margin: 4px;
  /* to account for box-shadow */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .nav-icon-btn {
  box-shadow:
    0 0 0 3px #3a1e12,
    0 0 0 4.5px #ff6b00;
}

.nav-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px #fff0e0,
    0 0 0 4.5px #ff6b00,
    0 6px 12px rgba(224, 112, 32, 0.25);
}

.nav-icon-btn i {
  transition: transform 0.2s;
}

.nav-icon-btn:hover i {
  transform: scale(1.1);
}

/* ── THEME SWITCH ── */
.theme-switch {
  width: 86px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--orange);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 0;
}

.switch-slider {
  width: 32px;
  height: 32px;
  background: linear-gradient(
    108.21deg,
    #ff6b00 8.2%,
    #cc4d02 53.43%,
    #a13c0b 99.2%
  );
  border: 1.5px solid #fff;
  border-radius: 50%;
  position: absolute;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}

body.dark-mode .switch-slider,
body.dark-mode .current-currency .flag-icon {
  border-color: #333231;
}

.switch-slider i,
.switch-slider iconify-icon {
  color: #fff;
  font-size: 18px;
  line-height: normal;
}

.switch-icons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  z-index: 1;
  pointer-events: none;
}

.switch-icons i,
.switch-icons iconify-icon {
  font-size: 18px;
  color: var(--orange);
  /* transition: opacity .3s; */
}

.theme-switch.dark-mode .switch-slider {
  left: calc(100% - 36px);
}

.theme-switch .sun-icon {
  opacity: 0;
}

.theme-switch .moon-icon {
  opacity: 1;
}

.theme-switch.dark-mode .sun-icon {
  opacity: 1;
}

.theme-switch.dark-mode .moon-icon {
  opacity: 0;
}

.currency-select {
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--orange);
  border-radius: 50px;
  padding: 0 16px 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  cursor: pointer;
  display: flex !important;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.2s;
  z-index: 10000;
}

.currency-select:hover {
  background: var(--cream);
}

.current-currency {
  display: flex;
  align-items: center;
  gap: 12px;
}

.current-currency .flag-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(
    108.21deg,
    #ff6b00 8.2%,
    #cc4d02 53.43%,
    #a13c0b 99.2%
  );
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.current-currency i {
  font-size: 14px !important;
  color: var(--orange) !important;
}

.currency-options {
  display: none !important;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff !important;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 100px;
  z-index: 9999 !important;
  border: 1.5px solid var(--cream-border);
}

.currency-options.show {
  display: block !important;
}

.currency-options div {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  /* color: var(--text-dark); */
  transition: background 0.2s;
}

.currency-options div:hover {
  background: var(--cream);
}

.flag-icon {
  font-size: 0.95rem;
}

.user-pill {
  height: 40px;
  background: linear-gradient(
    108.21deg,
    #ff6b00 8.2%,
    #cc4d02 53.43%,
    #a13c0b 99.2%
  );
  border: none;
  border-radius: 50px;
  padding: 4px 16px 4px 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
}

.user-pill:hover {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  transform: translateY(-1px);
}

.user-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
  object-position: center top;
}

.pill-name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.user-pill > i {
  color: #fff;
  font-size: 14px;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: 0;
  z-index: 999;
  display: none;
  overflow: hidden;
}

.user-dropdown-menu a:not(.dd-logout) {
  border-bottom: 0.4px solid #e6e6e6;
}

.user-dropdown-menu.show {
  display: block;
  animation: fadeDown 0.15s ease;
}

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

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

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.15s;
}

body.dark-mode .user-dropdown-menu a {
  color: #fff;
}

.user-dropdown-menu a:hover:not(.dd-logout) {
  background: var(--cream);
}

.user-dropdown-menu a i {
  width: 14px;
  color: var(--text-mid);
}

.user-dropdown-menu .divider {
  height: 1px;
  background: var(--cream-border);
  margin: 4px 0;
}

.user-dropdown-menu .dd-logout {
  color: #fff;
  background: linear-gradient(103.88deg, #899801 0%, #63680d 100%);
}

/* .user-dropdown-menu .dd-logout i {
    color: #e05020;
} */

/* ══ APP BODY ══ */
.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

/* ══ OVERLAY (mobile) ══ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 250;
}

.sidebar-overlay.show {
  display: block;
}

/* ══ SIDEBAR ══ */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 240, 211, 0.301698) 49.58%,
    rgba(255, 107, 0, 0.1) 100%
  );
  border-right: 1px solid var(--orange);
  display: flex;
  flex-direction: column;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  flex-shrink: 0;
  z-index: 260;
}

.sidebar.icon-only {
  width: var(--sidebar-icon-w);
}

.sidebar.icon-only .nav-label,
.sidebar.icon-only .user-card h6,
.sidebar.icon-only .verified-badge,
.sidebar.icon-only .nav-section-header,
.sidebar.icon-only .section-divider {
  display: none !important;
}

/* user card */
.user-card {
  margin: 8px 20px;
  padding: 20px;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition:
    padding 0.28s,
    margin 0.28s;
  background: linear-gradient(
    120.61deg,
    rgba(255, 220, 165, 0.2) 0%,
    rgba(255, 107, 0, 0.4) 100%
  );
  z-index: 1;
}

/* Gradient border */
.user-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 12px;
  background: conic-gradient(
    from var(--angle, 0deg),
    #a13c0b,
    rgba(255, 255, 255, 0.05),
    #ff6b00,
    rgba(255, 255, 255, 0.05),
    #a13c0b
  );
  animation: rotate-color 8s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  --angle: 0deg;
}

.sidebar.icon-only .user-card {
  margin: 16px 12px;
  padding: 12px 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcd8bb, #fbb07e);
  border: none;
  box-shadow: 0 4px 10px rgba(224, 112, 32, 0.15);
}

.user-card-avatar {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  transition:
    width 0.28s,
    height 0.28s;
  /* background: linear-gradient(135deg, #ff6b00 0%, #cc4d02 50%, #cc4d02 100%); */
  border-radius: 50%;
  overflow: hidden;
}

.sidebar.icon-only .user-card-avatar {
  width: 44px;
  height: 44px;
}

.user-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  /* border: 1px solid var(--orange-light); */
  object-position: top;
}

.sidebar.icon-only .user-card-avatar img {
  border-width: 2px;
}

.badge-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
}

.user-card h6 {
  font-weight: 500;
  font-size: 18px;
  background: linear-gradient(90deg, #82330c 0%, #ff6b00 50.48%, #d87f16 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  white-space: nowrap;
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
  color: #068001;
  white-space: nowrap;
}

body.dark-mode .verified-badge {
  color: white;
}

.verified-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--green-badge);
  border-radius: 50%;
  flex-shrink: 0;
}

.user-mini-name {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(90deg, #82330c 0%, #ff6b00 50.48%, #d87f16 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  display: none;
  white-space: nowrap;
  overflow: visible;
  max-width: 100%;
  margin-top: 6px;
}

.sidebar.icon-only .user-mini-name {
  display: block;
}

/* nav sections */
.nav-section {
  padding: 0;
  margin-bottom: 12px;
}

.sidebar.icon-only .nav-section {
  padding: 0;
}

.section-divider {
  display: none;
}

.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ff6b001a;
  color: #df6b18;
  border-radius: 0;
  margin: 0;
  padding: 12px 20px;

  font-weight: 600;
  margin-bottom: 0;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-transform: uppercase;
}

.nav-section-header span {
  font-size: 14px;
  font-weight: 700;
}

.nav-section-header.collapsed span {
  font-size: 15px;
  background: linear-gradient(90deg, #82330c 0%, #ff6b00 50.48%, #d87f16 100%);

  /* Gradient text */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Optional fallback */
  color: transparent;
  display: inline-block;
}

/* Music Player Card */
.music-player-card {
  margin: 10px auto 20px;
  background: linear-gradient(
    120.61deg,
    rgba(255, 220, 165, 0.2) 0%,
    rgba(255, 107, 0, 0.4) 100%
  );
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 75%;
}

.player-cover {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  padding: 2px;
  flex-shrink: 0;
}

.player-cover img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.player-cover img.rotating {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.player-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.player-buttons button,
.player-buttons label {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-buttons button i:not(.play-btn i),
.player-buttons label i {
  background: linear-gradient(103.88deg, #899801 0%, #63680d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  font-size: 14px;
}

.player-buttons .stop-btn input {
  display: none;
}

.player-buttons .stop-btn i {
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
}

.autoplay-stop-btn {
  position: relative;
}

.autoplay-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1f1f1f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 2;
}

.autoplay-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f1f1f;
}

.autoplay-stop-btn.show-autoplay-tooltip .autoplay-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.player-buttons .stop-btn i:before {
  content: "\f0c8";
  /* fa-square */
}

.player-buttons .stop-btn input:checked + i:before {
  content: "\f14a";
  /* fa-square-check */
}

.player-buttons .play-btn {
  width: 34px;
  height: 34px;
  background: linear-gradient(103.88deg, #899801 0%, #63680d 100%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 2px 6px rgba(106, 116, 12, 0.4);
}

.player-buttons .play-btn i {
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* margin-left: 2px; */
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(103.88deg, #899801 0%, #63680d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 18px;
}

.volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6a740c 40%, #b8b57d 40%);
  border-radius: 4px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6a740c;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6a740c;
  cursor: pointer;
}

.sidebar.icon-only .music-player-card {
  display: flex;
  flex-direction: column;
  width: 76px;
  padding: 10px 6px;
  margin: 10px auto;
  gap: 8px;
}

.sidebar.icon-only .player-controls {
  width: 100%;
  margin-top: 0;
}

.sidebar.icon-only .player-buttons {
  gap: 4px;
  justify-content: space-between;
}

.sidebar.icon-only .player-buttons button {
  font-size: 12px;
}

.sidebar.icon-only .player-buttons .play-btn {
  width: 20px;
  height: 20px;
}

.sidebar.icon-only .player-buttons .play-btn i {
  font-size: 10px;
  margin-left: 1px;
}

.sidebar.icon-only .player-volume {
  gap: 4px;
  font-size: 12px;
}

.sidebar.icon-only .volume-slider {
  height: 3px;
}

.sidebar.icon-only .volume-slider::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
}

.sidebar.icon-only .volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
}

/* .nav-section-header:hover {
    background: rgba(255, 107, 0, 0.15);
} */

.nav-section-primary .nav-section-header {
  background: linear-gradient(
    108.21deg,
    #a13c0b 8.2%,
    #cc4d02 53.43%,
    #ff6b00 99.2%
  );
  color: #fff;
}

/* .nav-section-primary .nav-section-header:hover {
    background: linear-gradient(108.21deg, #A13C0B 8.2%, #CC4D02 53.43%, #FF6B00 99.2%);
} */
.sidebar.icon-only .badge-icon {
  position: relative;
  top: 0;
  right: 10px;
  width: 20px;
  margin-top: -16px;
  display: flex;
  justify-content: center;
  z-index: 11;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar.icon-only .badge-control {
  display: flex;
  flex-direction: column-reverse;
}

.nav-section-header > i {
  transition: transform 0.25s;
  flex-shrink: 0;
}

.nav-section-header.collapsed > i {
  transform: rotate(-90deg);
  background: linear-gradient(90deg, #d87f16 0%, #ff6b00 50.48%, #82330c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-items {
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    margin 0.3s ease;
  max-height: 500px;
  background: #ff6b001a;
  margin: 0 16px;
  border-radius: 0 0 12px 12px;
  padding: 12px 0 12px 0;
}

.nav-section:not(.nav-section-primary) .nav-items {
  background: #ff6b001a;
}

.nav-items.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-radius: 0;
}

.sidebar.sidebar-initializing .nav-items,
.sidebar.sidebar-initializing .nav-section-header,
.sidebar.sidebar-initializing .nav-section-header > i {
  transition: none !important;
}

/* Prevent first-paint section mismatch flicker before JS sync. */
.sidebar:not(.sidebar-initialized) .nav-items {
  visibility: hidden;
}

.sidebar.sidebar-initialized .nav-items {
  visibility: visible;
}

.sidebar.icon-only .nav-items {
  max-height: 500px !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 24px;
  border-radius: 0;
  font-size: 18px;
  font-weight: 700;
  color: #82330c;
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  background: transparent;
}

.nav-item .nav-label {
  font-size: 15px;
  font-weight: inherit;
  line-height: 1.2;
  font-weight: 600;
}

.nav-item:hover {
  /* background: rgba(224, 112, 32, .05); */
  color: #df6b18;
}

.nav-item.active .nav-label {
  background: linear-gradient(
    103.88deg,
    #63680d 0%,
    #393c02 56.14%,
    #899801 95.1%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.nav-item.active iconify-icon {
  color: #63680d;
}

body.dark-mode .nav-item.active iconify-icon {
  color: #e07020;
}

.nav-file-name {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

body.dark-mode .nav-item.active .nav-label {
  background: var(--orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* .nav-item.active .icon-box iconify-icon {
    filter: drop-shadow(0 0 0 #63680D) sepia(1) saturate(3) hue-rotate(25deg);
} */

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 24px;
  background: url(https://storage.perfectcdn.com/kf2yrn/j5hidaad6sz1fguw.svg)
    no-repeat center / 6px 24px;
  image-rendering: crisp-edges;
}

.sidebar.icon-only .nav-item {
  justify-content: center;
  padding: 6px 0;
  gap: 0;
}

.sidebar.icon-only .nav-item.active::before {
  display: block;
}

.animated-text {
  background-image: -webkit-linear-gradient(120deg, #6a0dad, #ff69b4, #1e90ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-animation: hue 10s infinite linear;
}

.animated-text .nav-label {
  background: none !important;
  -webkit-text-fill-color: transparent !important;
}

.animated-text .icon-box i {
  font-size: 16px;
  background: none !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

@keyframes hue {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

.icon-box {
  width: auto;
  height: auto;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sidebar.icon-only .icon-box {
  width: 34px;
  height: 34px;
  /* border-radius: 9px; */
  /* font-size: .9rem; */
}

.sidebar.icon-only .nav-item::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 999;
}

.sidebar.icon-only .nav-item:hover::after {
  opacity: 1;
}

/* sidebar close (mobile only) */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: rgb(224 112 32 / 86%);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* logout */
.sidebar-logout {
  margin: auto 20px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 10px 16px;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  cursor: pointer;
  border: none;
  width: auto;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.logout-icon-wrap {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b00 0%, #903000 100%);
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow:
    0 0 0 3px #fff0e0,
    0 0 0 4.5px #ff6b00;
  flex-shrink: 0;
  margin-left: 4px;
}

body.dark-mode .logout-icon-wrap {
  box-shadow:
    0 0 0 3px #421808,
    0 0 0 4.5px #ff6b00;
  border: 1.5px solid #252525;
}

.sidebar.icon-only .sidebar-logout {
  justify-content: center;
  padding: 9px 4px;
  margin: auto 6px 14px;
  width: calc(100% - 12px);
}

/* ══ MAIN CONTENT ══ */
.main-content {
  flex: 1;
  background: #fff8f0;
  padding: 40px;
  overflow-y: auto;
  min-height: 0;
  min-width: 0;
}

@media (max-width: 767px) {
  .main-content {
    padding: 20px;
  }
}

/* Fixed header + sidebar; main area scrolls (desktop dashboard pages) */
@media (min-width: 992px) {
  body.app-fixed-layout .app-shell {
    height: 100vh;
    overflow: hidden;
  }

  body.app-fixed-layout .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }

  body.app-fixed-layout .main-wrapper {
    height: 100vh;
    overflow: visible;
  }

  body.app-fixed-layout .top-nav {
    position: sticky;
    top: 0;
  }

  body.app-fixed-layout .main-content {
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
}

.order-form-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--cream-border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  max-width: 680px;
}

.order-form-card h5 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 22px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-form-card h5 i {
  color: var(--orange);
}

.form-label-custom {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control,
.form-control-custom,
.new-order-control {
  background: #f5f5f5;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.87rem;
  color: var(--text-dark);
  width: 100%;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: "Nunito", sans-serif;
}

.form-control:focus,
.form-control-custom:focus,
.new-order-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224, 112, 32, 0.12);
}

select.form-control-custom,
select.new-order-control {
  appearance: none;
  cursor: pointer;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mid);
  font-size: 0.68rem;
  pointer-events: none;
}

.info-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.info-chip {
  background: var(--cream);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-mid);
  font-weight: 600;
  flex: 1;
  min-width: 90px;
}

.info-chip span {
  display: block;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.86rem;
}

.btn-submit {
  background: linear-gradient(
    108.21deg,
    #ff6b00 8.2%,
    #cc4d02 53.43%,
    #a13c0b 99.2%
  );
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 26px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  box-shadow: 0 4px 14px rgba(224, 112, 32, 0.35);
  width: 100%;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--cream-border);
  border-radius: 99px;
}

/* ══ LARGE LAPTOP ≤ 1440px ══ */
@media (max-width: 1440px) {
  :root {
    --sidebar-w: 250px;
  }
}

/* ══ LAPTOP ≤ 1200px ══ */
@media (max-width: 1200px) {
  .nav-right {
    padding: 15px 20px;
    gap: 10px;
  }

  .page-title-nav {
    font-size: 20px;
  }
}

/* ══ TABLET ≤ 1024px ══ */
@media (max-width: 991px) {
  :root {
    --header-h: 70px;
  }

  .sidebar-header {
    display: none;
  }

  .nav-icon-btn.slate {
    display: none;
  }

  .currency-select {
    display: flex;
  }

  .date-badge {
    display: none;
  }
}

/* ══ NEW ORDER PAGE UI ══ */
.new-order-ui {
  display: grid;
  gap: 28px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
}

.welcome-card {
  /* background: linear-gradient(98deg, #191716, #ff7d13); */
  background-image: url("https://storage.perfectcdn.com/kf2yrn/8jjyo3j1q15iml7w.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  color: #fff;
  padding: 24px 28px;
  min-height: 180px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;

  /* overflow: hidden; */
}

/* .welcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%,
      rgba(255, 255, 255, 0.2),
      transparent 40%);
  pointer-events: none;
  overflow: hidden;
} */

.welcome-card h2,
.welcome-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  position: relative;
}

.welcome-card p {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  max-width: 420px;
  opacity: 0.85;
  position: relative;
}

.wave {
  font-size: 1em;
  vertical-align: text-top;
}

.welcome-model {
  position: absolute;
  right: 15%;
  bottom: 0px;
  width: 120px;
  height: 200px;
  /* top: -120px; */
  /* background: linear-gradient(180deg, rgba(255, 232, 200, 0.9), rgba(160, 40, 0, 0.35)); */
  border-radius: 18px 18px 0 0;
  filter: saturate(1.2);
  background-image: url("https://storage.perfectcdn.com/kf2yrn/78kem8puu20d0f7t.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: -1;
}

.welcome-card div {
  max-width: 80%;
}

.welcome-card-giveaway {
  /* background: linear-gradient(118deg, #ac5f17, #f2aa49); */
  background-image: url("https://storage.perfectcdn.com/kf2yrn/n0ilt7a0gdajw21e.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-right: 74px;
}

.gift-visual {
  position: absolute;
  right: 20px;
  bottom: 5px;
  font-size: 68px;
  transform: rotate(7deg);
  line-height: 1;
}

.gift-visual img {
  width: clamp(90px, 10vw, 128px);
  height: auto;
  display: block;
  object-fit: contain;
}

.arrow-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: white;
  color: black;
  font-size: 16px;
  rotate: -45deg;
}

.notice-strip {
  background: #ffdca5;
  border: 1px solid #efd0a8;
  border-radius: 8px;
  color: black;
  font-size: 14px;
  padding: 12px 14px;
  font-weight: 500;
}

.notice-strip a {
  color: #ff6b00;
  font-weight: 400;
}

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

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 24px 18px;
  min-height: 150px;
  min-width: 0;
}

.text-gradient-primary {
  background-image: var(--primary-gradient);
  -webkit-background-clip: text;
  /* for Safari/Chrome */
  background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  /* important for WebKit */
  color: transparent;
  max-width: fit-content;
}

.stat-card h4 {
  margin: 0;
  /* max-width: 100px; */

  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  /* max-width: 200px; */
  margin-bottom: 10px;
}

.stat-card p {
  margin: 2px 0 4px;
  color: #535353;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.stat-card small {
  color: #5f7060;
  font-size: 14px;
  font-weight: 500;
  display: block;
  line-height: 1.35;
}

.stat-card small i {
  color: #34c759;
  margin-right: 4px;
  rotate: -45deg;
}

.text-green {
  color: #34c759;
}

.stat-icon,
.badge-img {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  font-size: 60px;
}

.stat-icon img,
.badge-img img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.user-stat-card {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.user-stat-card > div {
  min-width: 0;
}

.avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.user-stat-card h4 {
  font-size: 24px;
  line-height: 1.2;
  text-transform: lowercase;
}

.user-stat-card p {
  margin: 3px 0 0;
  font-size: 17px;
  color: #535353;
}

.verified-mini {
  position: absolute;
  right: 30%;
  top: 30%;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #8ca22a;
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.verified-mini::after {
  content: attr(data-copy-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1f1f1f;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.verified-mini.show-copy-tooltip::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.badge-img {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* All paragraph text in the new order main block */
.new-order-ui p,
.new-order-ui .user-stat-card p,
.new-order-ui .stat-card p {
  font-size: 14px;
  font-weight: 500;
}

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

.platform-btn {
  border: 1px solid #e8dfd0;
  background: #fff;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: black;
  padding-left: 30px;
}

.platform-btn > * {
    pointer-events: none;
}

.platform-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.platform-btn i,
.platform-btn iconify-icon {
  font-size: 16px;
}
.platform-btn.activeItem,
.platform-btn.active {
  background: linear-gradient(103.88deg, #899801 0%, #63680d 100%);

  color: #fff;
}
.platform-btn.activeItem i,
.platform-btn.active i {
  color: #fff;
}

.platform-btn .fa-youtube {
  color: #ff1f1f;
}

.platform-btn .fa-facebook {
  color: #1877f2;
}

.platform-btn .fa-instagram {
  color: #d52594;
}

.platform-btn .fa-telegram {
  color: #2da5e1;
}

.platform-btn .fa-linkedin {
  color: #0077b5;
}

.platform-btn .fa-discord {
  color: #5865f2;
}

.platform-btn .fa-pinterest {
  color: #e60023;
}

.platform-btn .fa-twitch {
  color: #9146ff;
}

.platform-btn .fa-soundcloud {
  color: #ff6600;
}

.platform-btn .fa-chart-line {
  color: #8b5e3c;
}

.order-details-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 12px;
}

.panel-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
}

.panel-card header {
  min-height: 75px;
  background: linear-gradient(
    92deg,
    #a13c0b 8.2%,
    #cc4d02 53.43%,
    #ff6b00 99.2%
  );
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
}

.panel-card header h5 {
  margin-bottom: 0;
}

.panel-action-group {
  display: flex;
  gap: 8px;
}

/* Monotone icons only: *-duotone sets fixed SVG fills, so color/currentColor won't tint the whole glyph. */
.panel-action-group .panel-pill > i,
.panel-action-group .panel-pill > iconify-icon {
  flex-shrink: 0;
  font-size: 1.05em;
  line-height: 1;
  color: inherit;
  --iconify-icon-color: currentColor;
}

.page-title-nav iconify-icon {
  font-size: 22px !important;

  color: #899801 !important;
}

.panel-action-group .add-panel-pill > img {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.panel-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;

  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  /* background: rgba(255, 255, 255, 0.25); */
  color: #fff;
}

a.panel-pill {
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.add-panel-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #fff !important;
  color: #82330c !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;

  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
}

.add-panel-pill > * {
  position: relative;
  z-index: 1;
}

.add-panel-pill::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -10%;
  width: 0;
  height: 100%;
  transform: rotate(15deg) scale(1, 2);
  box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.5);
  animation: button-glow 1700ms ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes button-glow {
  0% {
    left: -20%;
  }

  100% {
    left: 120%;
  }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-color {
  from {
    --angle: 0deg;
  }

  to {
    --angle: 360deg;
  }
}

.panel-pill.active {
  background: #fff !important;
  color: #82330c !important;
}

.panel-pill:last-child {
  background: linear-gradient(
    108.21deg,
    #899801 8.2%,
    #63680d 99.2%
  ) !important;
  color: #fff !important;
}

.service-panel header h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.panel-body {
  padding: 25px;
}

.search-line {
  border: 1px solid #e6e6e6;
  background: #f5f5f5;
  border-radius: 10px;
  min-height: 47px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.search-line i {
  color: #7f7468;
  font-size: 14px;
}

.search-line iconify-icon {
  color: #7f7468;
  flex-shrink: 0;
}

.search-line input {
  border: none;
  background: transparent;
  width: 100%;

  color: #68615a;
  outline: none;
  font-size: 14px;
  font-weight: 400;
}

.field-block {
  margin-top: 20px;
  margin-bottom: 22px;
}

.field-block label {
  display: block;
  color: #82330c;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.compact-select::after {
  right: 14px;
  font-size: 11px;
}

.custom-dropdown {
  position: relative;
}

.custom-dropdown-toggle {
  width: 100%;
  min-height: 52px;
  border: 1px solid #ece3d4;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px 42px 10px 14px;
  font-size: 14px;
  color: #6f665b;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.custom-dropdown-toggle .dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.custom-dropdown-toggle .dropdown-label .fab {
  color: #ff1f1f;
}

.custom-dropdown-toggle > i {
  position: absolute;
  right: 14px;
  color: #8a7f71;
  font-size: 11px;
  transition: transform 0.2s ease;
}

.custom-dropdown.is-open .custom-dropdown-toggle > i {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border: 1px solid #ece3d4;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(58, 42, 16, 0.14);
  padding: 6px;
  display: none;
  z-index: 20;
}

.bg-primary {
  background: #ff6b00 !important;
  color: #fff;
  padding: 0.5px 12px;
  border-radius: 100px;
}

.custom-dropdown.is-open .custom-dropdown-menu {
  display: block;
}

.custom-dropdown-item {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f665b;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

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

.custom-dropdown-item:hover,
.custom-dropdown-item.is-selected {
  background: #f6f3ee;
}

.form-group .form-control,
.field-block .form-control-custom,
.field-block .new-order-control {
  min-height: 45px;
  border: 1px solid #ece3d4;
  background: #f5f5f5;
  border-radius: 10px;
  font-size: 14px;
  color: #6f665b;
}

.field-block small {
  color: #867f74;
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

.submit-order-btn {
  margin-top: 10px;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(108.21deg, #899801 8.2%, #63680d 99.2%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.submit-order-btn-account {
  margin-top: 20px;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(108.21deg, #899801 8.2%, #63680d 99.2%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.detail-block.full {
  grid-column: 1 / -1;
}

.detail-block label {
  display: block;
  color: #8a4f29;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.detail-block div {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid #ece3d4;
  background: #f5f5f5;
  color: #7c7368;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 12px;
  display: flex;
  align-items: center;
}

.detail-block .multiline {
  min-height: 186px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
}

/* responsive layout for screenshot-style page */
@media (max-width: 1400px) {
  .stat-card h4 {
    font-size: 28px;
  }

  /* .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    } */
}

/* Tablet layout */
@media (max-width: 1023px) {
  .welcome-grid,
  .order-details-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1500px) {
  .welcome-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .platform-btn {
    padding-left: 20px;
  }

  .welcome-model {
    right: 10px;
    bottom: 0;
    width: 120px;
  }

  .welcome-card div {
    max-width: 75%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .order-details-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .stat-card {
    min-height: 138px;
    padding: 20px 26px;
    padding-right: 76px;
  }

  .verified-mini {
    position: absolute;
    right: clamp(40%, 10%, 5%);
    top: 30%;
  }

  .stat-card h4 {
    font-size: 22px;
  }

  .stat-icon,
  .badge-img {
    width: 58px;
    height: 58px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 1500px) and (max-width: 1800px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Large desktop (1440px and above) */
@media (min-width: 1440px) {
  .new-order-ui {
    gap: 30px;
  }

  .welcome-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }

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

  .platform-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .order-details-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }

  .stat-card {
    min-height: 154px;
  }

  .stat-icon,
  .badge-img {
    width: 68px;
    height: 68px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 767px) {
  .main-content {
    padding: 15px 15px;
  }

  .welcome-card {
    min-height: 120px;
    padding: 50px 16px;
  }

  .welcome-card div {
    max-width: 100%;
  }

  .welcome-model {
    width: 102px;
    height: 100%;
    right: 8px;
  }

  .gift-visual {
    font-size: 100px;
    right: 10px;
    bottom: 20%;
  }

  .welcome-card p {
    max-width: 70%;
  }

  .welcome-card h2,
  .welcome-card h3 {
    font-size: 18px;
  }

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

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

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

  .user-stat-card {
    min-height: 156px;
  }

  .stat-card {
    /* min-height: 156px; */
    /* Reserve horizontal space so absolutely positioned icons never cover text */
    padding: 20px 72px 20px 16px;
  }

  .stat-card h4 {
    font-size: 20px;
    max-width: 100%;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
  }

  .platform-btn {
    justify-content: left;
    text-align: center;
    /* padding: 8px 10px; */
    min-height: 42px;
    font-size: 13px;
    line-height: 1.25;
    gap: 6px;
    padding-left: 30px;
  }

  .new-order-ui .platform-btn img {
    width: 16px;
    height: 16px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .stat-icon,
  .badge-img {
    width: 48px;
    height: 48px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .avatar-wrap {
    width: 56px;
    height: 56px;
  }

  .user-stat-card h4 {
    font-size: 18px;
    padding-right: 10px;
  }

  .verified-mini {
    right: 30%;
    top: 50%;
  }

  .service-panel header h5 {
    font-size: 18px;
  }

  .field-block label,
  .detail-block label {
    font-size: 14px;
  }

  .form-group .form-control,
  .field-block .form-control-custom,
  .field-block .new-order-control,
  .search-line input,
  .detail-block div,
  .submit-order-btn {
    font-size: 15px;
  }

  .detail-block .multiline {
    min-height: 126px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-stat-card {
    flex-direction: column;
  }

  .stat-card {
    padding: 16px 58px 14px 16px;
    align-items: flex-start;
  }

  .stat-card h4 {
    font-size: clamp(16px, 4.2vw, 19px);
  }

  .stat-card small {
    font-size: 12px;
  }

  .stat-icon,
  .badge-img {
    width: 40px;
    height: 40px;
    right: 16px;
  }

  .user-stat-card h4 {
    font-size: 16px;
  }

  /* Flow copy badge inline so it is not anchored to the full card box */
  .new-order-ui .user-stat-card .verified-mini {
    position: static;
    display: inline-flex;
    margin-left: 4px;
    vertical-align: middle;
    justify-content: center;
  }

  .platform-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* @media (max-width: 355px) {
    .welcome-card div {
        width: 55%;
    }

} */

/* ══ ADD FUNDS PAGE UI ══ */
.add-funds-ui {
  display: grid;
  gap: 28px;
}

/* .new-order-ui,
.add-funds-ui,
.new-order-ui *:not(i):not(iconify-icon),
.add-funds-ui *:not(i):not(iconify-icon) {
    font-family: 'Inter', sans-serif;
} */

/* ══ SERVICES PAGE UI ══ */
.services-ui {
  display: grid;
  gap: 28px;
  font-family: "Inter", sans-serif;
}

.services-hero {
  min-height: 180px;
  border-radius: 10px;
  padding: 20px 35px;
  background-image: url("https://storage.perfectcdn.com/kf2yrn/tthsm5z8ik3y73wm.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.services-hero h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.services-hero p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.services-hero img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-right: 50px;
}

.services-platform-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.services-filter-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.left-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-filter-dropdown {
  position: relative;
}

.services-filter-dropdown .services-pill-btn > i:last-child {
  transition: transform 0.2s ease;
}

.services-filter-dropdown.is-open .services-pill-btn > i:last-child {
  transform: rotate(180deg);
}

.services-pill-btn {
  border: 1px solid #e3b078;
  background: #fff;
  border-radius: 10px;
  min-height: 50px;
  padding: 4px 12px 4px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #da6f1b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
}

/* Category pill: leading Iconify slot (currency pill has no iconify-icon). Whitespace before icon breaks :first-child. */
.services-pill-btn > i:first-child,
.services-pill-btn > iconify-icon {
  background: linear-gradient(92deg, #c24f06, #ff6f00);
  color: #fff;
  --iconify-icon-color: currentColor;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.services-pill-btn .flag-circle {
  background: linear-gradient(92deg, #c24f06, #ff6f00);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flag-emoji {
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  /* background: #fff; */
}

.services-pill-btn .dropdown-label {
  white-space: nowrap;
}

.services-filter-menu {
  min-width: 220px;
  border-radius: 10px;
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
}

.services-filter-dropdown.is-open .services-filter-menu {
  display: block;
}

.services-filter-item {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
}

.flag-circle-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ece3d4;
}

.flag-circle-mini .flag-emoji {
  width: 20px;
  height: 20px;
  font-size: 14px;
}

.services-search {
  width: 100%;
  max-width: 320px;
  min-height: 50px;
}

.services-search input {
  font-size: 14px;
}

.services-table-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
}

.services-table-head,
.service-row {
  display: grid;
  grid-template-columns: 1fr 8fr 1fr 1.4fr 1.4fr 2.2fr 2.4fr 1.3fr;
  align-items: center;
  gap: 10px;
}

.services-table-head {
  padding: 14px 16px;
  background: linear-gradient(92deg, #c24f06, #ff6f00);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  min-height: 65px;
}

.services-group-title {
  background: #f5f5f5;
  padding: 12px 16px;
  border-top: 1px solid #ebebeb;
}

.services-group-title span {
  font-size: 18px;
  font-weight: 700;
  color: black;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.services-group-title .fa-instagram {
  color: #ff27a6;
}

.services-group-title.secondary {
  margin-top: 6px;
}

.bd-flag {
  font-size: 22px;
}

.services-rows {
  padding: 6px 0;
}

.service-row {
  padding: 9px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 500;
}

.service-row:last-child {
  border-bottom: none;
}

.id-col {
  white-space: nowrap;
  font-weight: 500;
}

.id-col i {
  color: #899801;
  font-size: 12px;
  margin-right: 4px;
}

.service-col {
  font-weight: 500;
}

.order-col i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(180deg, #8e9f13, #7f900f);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.details-btn {
  border: none;
  border-radius: 9px;
  background: linear-gradient(180deg, #c24f06, #ff6f00);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-height: 33px;
  min-width: 70px;
}

.service-details-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.service-details-modal.is-open {
  display: block;
}

.service-details-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.service-details-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 24px));
  margin: 70px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  padding: 0;
  overflow: hidden;
}

.service-details-modal__header {
  position: relative;
  padding: 24px 48px 24px 20px;
  background: linear-gradient(92deg, #a13c0b, #cc4d02, #ff6b00);
  color: #fff;
}

.service-details-modal__header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.service-details-modal__close {
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.service-details-modal__close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.service-details-modal__body {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
}

.service-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-details-item {
  border: 1px solid #ecdcc8;
  border-radius: 10px;
  background: #fff8f0;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.service-details-item span,
.service-details-description span {
  font-size: 12px;
  color: #7a746c;
  font-weight: 600;
}

.service-details-item strong {
  font-size: 15px;
  color: #1f1f1f;
  font-weight: 700;
}

.service-details-description {
  border: 1px solid #ecdcc8;
  border-radius: 10px;
  background: #fff8f0;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.service-details-description p {
  margin: 0;
  font-size: 14px;
  color: #2e2e2e;
}

.service-details-modal__foot {
  margin-top: 0;
  padding: 14px 20px 18px;
  background: #fff;

  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.service-details-modal__foot .details-btn {
  min-width: 110px;
}

.service-details-modal__primary {
  background: linear-gradient(180deg, #899801, #63680d);
}

@media (max-width: 1199px) {
  .services-platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .services-platform-grid .platform-btn {
    justify-content: center;
    padding-left: 0;
    gap: 0;
    font-size: 0;
    line-height: 0;
  }

  .services-platform-grid .platform-btn img {
    width: 28px;
    height: 28px;
  }

  .new-order-ui .platform-grid .platform-btn {
    justify-content: center;
    padding-left: 0;
    gap: 0;
    font-size: 0;
    line-height: 0;
  }

  .new-order-ui .platform-grid .platform-btn img {
    width: 28px;
    height: 28px;
  }

  .services-table-card {
    overflow-x: auto;
  }

  .services-table-head,
  .services-group-title,
  .service-row {
    min-width: 1080px;
  }
}

@media (max-width: 1366px) and (min-width: 992px) {
  .add-funds-ui .ticket-history-panel:not(.ticket-info-sidebar) .panel-body {
    overflow-x: auto;
    overflow-y: visible;
  }

  .add-funds-ui
    .ticket-history-panel:not(.ticket-info-sidebar)
    .ticket-list-scroll {
    min-width: 660px;
  }
}

@media (max-width: 767px) {
  .services-hero {
    padding: 25px 20px;
    min-height: 96px;
  }

  .services-hero h2 {
    font-size: 20px;
  }

  .services-hero img {
    width: 80px;
    height: 80px;
    margin-right: 0px;
  }

  .services-platform-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .services-filter-card {
    flex-direction: column;
    align-items: stretch;
    padding: 25px 20px;
  }

  .left-filters {
    width: 100%;
    flex-direction: column;
  }

  .services-pill-btn {
    width: 100%;
  }

  .services-search {
    max-width: 100%;
  }

  .services-filter-dropdown {
    width: 100%;
  }

  .services-filter-menu {
    min-width: 100%;
  }

  .service-details-modal__dialog {
    margin: 28px auto;
    border-radius: 12px;
  }

  .service-details-modal__body {
    padding: 16px;
  }

  .service-details-modal__foot {
    padding: 14px 16px 16px;
  }

  .service-details-grid {
    grid-template-columns: 1fr;
  }

  .service-details-modal__foot {
    flex-direction: column-reverse;
  }

  .service-details-modal__foot .details-btn {
    width: 100%;
  }
}

/* ══ MY ORDERS PAGE UI ══ */
.my-orders-ui,
.my-orders-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

.my-orders-ui {
  display: grid;
  gap: 28px;
  min-width: 0;
  width: 100%;
}

/* Confirm email — panel + centered copy/actions */
.confirm-email-card .panel-body form {
  margin: 0;
}

.confirm-email-card__inner {
  max-width: 520px;
  margin: 0 auto;
}

.confirm-email-card__description {
  text-align: center;
  color: #68615a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 24px;
}

.confirm-email-card__description > div + div {
  margin-top: 10px;
}

.confirm-email-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}

.confirm-email-change-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: #da6f1b;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.confirm-email-change-link:hover,
.confirm-email-change-link:focus {
  color: #b85a12;
}

.my-orders-hero {
  min-height: 180px;
  border-radius: 10px;
  padding: 20px 35px;
  background-image: url("https://storage.perfectcdn.com/kf2yrn/tthsm5z8ik3y73wm.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my-orders-hero h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.my-orders-hero p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
}

.my-orders-hero img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-right: 50px;
}

.my-orders-filter-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 25px 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.my-order-filter-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
  gap: 8px;
  width: 100%;
}

.my-order-chip {
  border: 1px solid #ff6b00;
  background: #fff;
  border-radius: 10px;
  min-height: 45px;
  padding: 4px 12px 4px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #da6f1b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.my-order-chip > i,
.my-order-chip iconify-icon {
  background: linear-gradient(180deg, #de6d18, #cb5a06);
  color: #fff;
  --iconify-icon-color: currentColor;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.my-order-chip.active {
  /* background: linear-gradient(180deg, #899801, #63680D); */
  border-color: #95a605;
  color: #95a605;
}

.my-orders-search {
  width: 100%;
  max-width: 300px;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-orders-search .btn {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-width: auto;
  line-height: 1;
}

.my-orders-search .btn:focus,
.my-orders-search .btn:active {
  outline: none;
  box-shadow: none;
}

.my-orders-search .form-control {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto;
  min-height: 0;
}

.my-orders-search .form-control:focus {
  outline: none;
  box-shadow: none !important;
}

.my-orders-table-card {
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.my-orders-table-scroll {
  width: 100%;
  min-width: 0;
}

/* Test order fragment: horizontal scroll + shrink/wrap long URLs (grid minmax) */
.testorder-orders-page {
  min-width: 0;
  width: 100%;
}

.testorder-orders-page .my-orders-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

/* Service column: capped width so long titles wrap (also when table is wide / scrollable) */
.testorder-orders-page .my-orders-table-head,
.testorder-orders-page .my-order-row {
  grid-template-columns:
    minmax(120px, 2.2fr)
    minmax(96px, 1.2fr)
    minmax(0, 5fr)
    minmax(52px, 1fr)
    minmax(72px, 1.3fr)
    minmax(72px, 1.3fr)
    minmax(0, 22rem)
    minmax(48px, 1fr)
    minmax(86px, 1.3fr)
    minmax(100px, 1.4fr);
}

.testorder-orders-page .my-order-service-cell {
  min-width: 0;
  max-width: 22rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  align-self: start;
}

.testorder-orders-page .my-order-service-link {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.48;
  hyphens: auto;
}

.testorder-orders-page .my-order-service-link strong {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-weight: 700;
}

/* Orders table (order.html): every column may carry long text — wrap on tablet scroll + desktop */
.testorder-orders-page .my-order-row {
  align-items: start;
}

/* Grid/flex default min-width:auto blocks wrapping — force shrink so Date/Link break lines */
.testorder-orders-page .my-order-row > * {
  min-width: 0;
}

.testorder-orders-page .my-order-row > span:not(.my-order-action-cell) {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.testorder-orders-page .my-order-target-link {
  min-width: 0;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  align-self: start;
  white-space: normal !important;
}

.testorder-orders-page .order-row-cell-inner .my-order-target-link {
  display: block;
  min-width: 0;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

.testorder-orders-page .order-row-cell-inner {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal !important;
}

.testorder-orders-page .my-order-action-cell {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.my-orders-table-head,
.my-order-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 5fr 1fr 1.3fr 1.3fr 3.3fr 1fr 1.3fr 1.4fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* Subscriptions table: same card style as orders, wider column set */
.my-subscriptions-table-card .my-orders-table-head,
.my-subscriptions-table-card .my-order-row {
  grid-template-columns: 2fr 1.1fr 4.2fr 1fr 1.15fr 1.15fr 0.85fr 2.6fr 1.15fr 1.05fr 1.05fr 1.15fr 1.35fr;
}

.subscription-action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Refunds table: order-style card, 4 columns */
.my-refunds-table-card .my-orders-table-head,
.my-refunds-table-card .my-order-row {
  grid-template-columns: 2.4fr 1.4fr 1.4fr 1.6fr;
}

/* Updates table: service + date + update message */
.my-updates-table-card .my-orders-table-head,
.my-updates-table-card .my-order-row {
  grid-template-columns: 0.6fr 5fr 0.65fr 3.25fr;
}

.my-updates-table-card .update-service-cell,
.my-updates-table-card .updates-message-cell {
  font-weight: 500;
  word-break: break-word;
}

/* Refill history: id, date, order id, link, service, status */
.my-refills-table-card .my-orders-table-head,
.my-refills-table-card .my-order-row {
  grid-template-columns: 2fr 1.15fr 1.35fr 3.2fr 2.2fr 1.3fr;
}

/* Add Funds — payment history card */
.add-funds-ui .add-funds-payment-table {
  border: 1px solid rgba(255, 107, 0, 0.18);
  border-radius: 12px;
  overflow: hidden;
}

.add-funds-ui .add-funds-payment-table-header {
  background: linear-gradient(
    92deg,
    #a13c0b 8.2%,
    #cc4d02 53.43%,
    #ff6b00 99.2%
  );
  color: #fff;
  padding: 20px 16px;
}

body.dark-mode .add-funds-ui .add-funds-payment-table {
  border: 1px solid #40444c;
}

.add-funds-ui .add-funds-payment-table-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.add-funds-ui .add-funds-payment-table-header p {
  margin: 3px 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.add-funds-ui .add-funds-payment-table-head,
.add-funds-ui .add-funds-payment-row {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(190px, 2.6fr) minmax(
      120px,
      1fr
    ) minmax(170px, 1.5fr);
  gap: 12px;
  align-items: center;
}

.add-funds-ui .add-funds-payment-table-head {
  padding: 11px 14px;
  background: #fff5ed;
  color: #7c3a0f;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 107, 0, 0.16);
}

.add-funds-ui .add-funds-payment-table-body {
  padding: 10px;
  background: #fff;
}

body.dark-mode .add-funds-ui .add-funds-payment-table-body {
  background: #16181c;
}

.add-funds-ui .add-funds-payment-row {
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  color: #212529;
  font-size: 13px;
}

body.dark-mode .add-funds-ui .add-funds-payment-row {
  background: #1e2228;
  border-color: #40444c;
  color: #f8f9fa;
}

.add-funds-ui .add-funds-payment-row:last-child {
  margin-bottom: 0;
}

.add-funds-ui .add-funds-payment-row > span {
  min-width: 0;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.add-funds-ui .add-funds-payment-row .payment-cell-label {
  margin: 0;
  color: #6f7780;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.add-funds-ui .add-funds-payment-row .payment-cell-value {
  color: #212529;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

body.dark-mode .add-funds-ui .add-funds-payment-table {
  border-color: #40444c;
}

body.dark-mode .add-funds-ui .add-funds-payment-table-head {
  background: #2b1f17;
  color: #ffd9c2;
  border-bottom-color: #40444c;
}

body.dark-mode .add-funds-ui .add-funds-payment-row .payment-cell-label {
  color: #adb5bd;
}

body.dark-mode .add-funds-ui .add-funds-payment-row .payment-cell-value {
  color: #f1f3f5;
}

body.dark-mode
  .add-funds-ui
  .add-funds-payment-row
  .payment-amount-cell
  .payment-cell-value {
  color: #ffb98d;
}

.add-funds-ui .add-funds-payment-row .payment-id-cell {
  font-weight: 700;
}

.add-funds-ui .add-funds-payment-row .payment-amount-cell {
  font-weight: 700;
  color: #8a3605;
}

@media (max-width: 767px) {
  .add-funds-ui .add-funds-payment-table-head {
    display: none;
  }

  .add-funds-ui .add-funds-payment-table-body {
    padding: 8px;
  }

  .add-funds-ui .add-funds-payment-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "id id"
      "method method"
      "amount date";
    gap: 10px 14px;
    padding: 12px;
    font-size: 12px;
    border-radius: 12px;
    background: white;
    border-color: rgba(255, 107, 0, 0.28);
  }

  .add-funds-ui .add-funds-payment-row .payment-id-cell {
    grid-area: id;
    text-align: center;
  }

  .add-funds-ui .add-funds-payment-row .payment-method-cell {
    grid-area: method;
    text-align: center;
  }

  .add-funds-ui .add-funds-payment-row .payment-amount-cell {
    grid-area: amount;
    text-align: center;
  }

  .add-funds-ui .add-funds-payment-row .payment-date-cell {
    grid-area: date;
    text-align: center;
  }

  .add-funds-ui .add-funds-payment-row > span {
    align-items: center;
  }

  .add-funds-ui .add-funds-payment-row .payment-cell-value {
    font-size: 12px;
  }

  .add-funds-ui .add-funds-payment-row .payment-cell-label {
    font-size: 12px;
    font-weight: 800;
    color: #2f343a;
  }

  body.dark-mode .add-funds-ui .add-funds-payment-row {
    background: #232a31;
    border: 1px solid #40444c;
  }

  body.dark-mode .add-funds-ui .add-funds-payment-row .payment-cell-label {
    color: #ced4da;
  }
}

.my-orders-table-head {
  padding: 18px 16px;
  background: linear-gradient(92deg, #a13c0b, #cc4d02, #ff6b00);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.head-order-id {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.copy-all-btn {
  border: none;
  background: #0ab600;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.copy-one-btn {
  border: none;
  background: linear-gradient(180deg, #8e9f13, #7f900f);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.orders-bulk-popup {
  position: fixed;
  /* right: ; */
  top: 90px;
  transform: none;
  z-index: 1200;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 14px;
  background: #f3f3f3;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  font-size: 10px;
}

.orders-bulk-popup::before {
  display: none;
}

.orders-bulk-popup[hidden] {
  display: none !important;
}

.orders-bulk-popup__count {
  font-size: 14px;
  font-weight: 500;
  color: #3b3b3b;
}

.orders-bulk-popup__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-bulk-popup__btn {
  border: 1px solid #d5d5d5;
  min-height: 40px;
  border-radius: 12px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #818a22 !important;
  cursor: pointer;
  transition: 0.2s ease;
}

.orders-bulk-popup__btn:hover {
  background: #e8e8e8;
}

/* Keep copy button color same as clear/cancel style */
.orders-bulk-popup__btn--copy {
  background: #f0f0f0;
  border-color: #d5d5d5;
}

.orders-bulk-popup__btn--clear {
  background: #f0f0f0 !important;
  border-color: #d5d5d5;
  color: #3b3b3b !important;
}

@media (max-width: 767px) {
  .orders-bulk-popup {
    left: 8px;
    top: 74px;
    padding: 8px;
    gap: 8px;
    max-width: calc(100vw - 16px);
  }

  .orders-bulk-popup__count {
    font-size: 14px;
  }

  .orders-bulk-popup__btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 15px;
    border-radius: 10px;
  }
}

.my-orders-table-body {
  padding: 0 0 6px;
}

.my-order-row {
  padding: 18px 16px;
  background-image: linear-gradient(#f0f0f0, #f0f0f0);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: calc(100% - 32px) 1px;
  color: #2f2f2f;
  font-size: 14px;
  font-weight: 500;
}

.my-order-row:last-child {
  background-image: none;
}

.order-id-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-id-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.order-actions-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.order-id-value {
  font-weight: 500;
  color: #ff6b00;
}

.my-order-row a {
  color: #2e9fd8;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  min-width: 86px;
  padding: 0 10px;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
}

.status-pill.completed {
  background: #068001;
}

.status-pill.cancelled {
  background: #f24545;
}

.status-pill.pending {
  background: #ab570a;
}

.status-pill.progress {
  background: #0761d1;
}

.status-pill.partial {
  background: #4c2889;
}

.status-pill.processing {
  background: #d0aa00;
}

.order-again-btn {
  border: none;
  border-radius: 9px;
  background: linear-gradient(180deg, #899801, #63680d);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-height: 35px;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  box-sizing: border-box;
}

.my-order-row a.order-again-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: #fff !important;
  text-decoration: none !important;
  word-break: break-word;
  box-sizing: border-box;
}

.my-order-row button.order-again-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 14px;
  cursor: pointer;
}

.my-order-row a.order-again-btn:hover {
  opacity: 0.94;
}

.my-order-action-cell {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.my-order-action-cell .order-actions-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
}

.my-order-action-cell .order-again-btn {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.order-check-wrap {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.order-check-wrap input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.check-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #9ea7b3;
  background: #fff;
}

.order-check-wrap input:checked + .check-mark {
  border-color: #2f9df0;
  background: #2f9df0;
}

.order-check-wrap input:checked + .check-mark::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #fff;
  font-size: 10px;
  display: block;
  text-align: center;
  line-height: 16px;
}

.copy-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #1a8f30;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1399px) {
  .my-orders-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .my-orders-table-card:not(:has(> .my-orders-table-scroll)) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .my-orders-table-head,
  .my-order-row {
    min-width: 1500px;
    width: max-content;
  }

  .my-subscriptions-table-card .my-orders-table-head,
  .my-subscriptions-table-card .my-order-row {
    min-width: 3400px;
  }

  .my-refunds-table-card .my-orders-table-head,
  .my-refunds-table-card .my-order-row {
    min-width: 920px;
  }

  .my-updates-table-card .my-orders-table-head,
  .my-updates-table-card .my-order-row {
    min-width: 1100px;
  }

  .my-refills-table-card .my-orders-table-head,
  .my-refills-table-card .my-order-row {
    min-width: 1240px;
  }
}

@media (max-width: 1000px) {
  .my-orders-hero {
    padding: 16px;
    min-height: 96px;
  }

  .my-orders-hero h2 {
    font-size: 24px;
  }

  .my-orders-hero img {
    width: 100px;
    height: 100px;
    margin-right: 0px;
  }

  .my-orders-filter-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 10px;
    gap: 10px;
  }

  .my-orders-search {
    max-width: 100%;
  }
}

/* ══ Deployment orders: stacked rows on narrow screens (tablet portrait / mobile) ══ */
@media (max-width: 991px) {
  .deployment-orders-responsive .my-orders-table-scroll {
    overflow-x: visible !important;
    -webkit-overflow-scrolling: auto;
  }

  .deployment-orders-responsive .my-orders-table-card {
    overflow: visible;
    border-radius: 10px;
  }

  .deployment-orders-responsive .my-orders-table-head {
    display: none !important;
  }

  .deployment-orders-responsive .my-orders-table-head,
  .deployment-orders-responsive .my-order-row {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100%;
  }

  .deployment-orders-responsive .my-orders-table-body {
    padding: 0;
  }

  .deployment-orders-responsive .my-order-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 14px;
    background-image: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .deployment-orders-responsive .my-order-row:last-child {
    border-bottom: none;
  }

  .my-order-filter-chips .my-order-chip {
    width: 100%;
  }

  /* Flex column children default min-width:auto — long URLs/dates overflow one line without this */
  .deployment-orders-responsive .my-order-row > * {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* minmax(0, 1fr) — plain 1fr uses auto min-content and blocks wrapping on long strings */
  .deployment-orders-responsive .order-row-cell {
    display: grid;
    grid-template-columns: minmax(88px, min(38vw, 140px)) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal !important;
  }

  .deployment-orders-responsive .order-row-cell::before {
    content: attr(data-label);
    grid-column: 1;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #82330c;
    line-height: 1.35;
    padding-top: 2px;
  }

  .deployment-orders-responsive .order-row-cell > .order-row-cell-inner {
    grid-column: 2;
    display: block;
    min-width: 0;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  .deployment-orders-responsive .order-row-cell-link .my-order-target-link {
    display: block !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  .deployment-orders-responsive
    .order-row-cell-service
    .order-row-cell-inner
    a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .deployment-orders-responsive .order-id-cell {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .deployment-orders-responsive .order-id-cell::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #82330c;
    line-height: 1.35;
  }

  .deployment-orders-responsive .order-id-inline {
    width: 100%;
  }

  .deployment-orders-responsive .my-order-action-cell.order-row-cell-actions {
    display: grid;
    grid-template-columns: minmax(88px, min(38vw, 140px)) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    justify-items: stretch;
  }

  .deployment-orders-responsive
    .my-order-action-cell.order-row-cell-actions::before {
    content: attr(data-label);
    grid-column: 1;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #82330c;
    line-height: 1.35;
    padding-top: 2px;
  }

  .deployment-orders-responsive .order-actions-inner {
    grid-column: 2;
    justify-content: flex-start;
    width: 100%;
  }

  .deployment-orders-responsive .my-order-row .status-pill {
    width: fit-content;
    max-width: 100%;
  }
}

/* Keep desktop table layout with scroll below 1600px for deployment order page */
@media (max-width: 1600px) {
  .testorder-orders-page.deployment-orders-responsive .my-orders-table-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .testorder-orders-page.deployment-orders-responsive .my-orders-table-card {
    overflow-x: auto;
  }

  .testorder-orders-page.deployment-orders-responsive .my-orders-table-head {
    display: grid !important;
  }

  .testorder-orders-page.deployment-orders-responsive .my-orders-table-head,
  .testorder-orders-page.deployment-orders-responsive .my-order-row {
    display: grid !important;
    grid-template-columns: 2.2fr 1.2fr 5fr 1fr 1.3fr 1.3fr 3.3fr 1fr 1.3fr 1.4fr;
    min-width: 1800px !important;
    width: max-content !important;
  }

  .testorder-orders-page.deployment-orders-responsive .my-order-row {
    gap: 10px;
    padding: 18px 16px;
    background-image: linear-gradient(#f0f0f0, #f0f0f0);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: calc(100% - 32px) 1px;
    border-bottom: 0;
  }

  .testorder-orders-page.deployment-orders-responsive .my-order-row > * {
    min-width: 0 !important;
    max-width: none;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .testorder-orders-page.deployment-orders-responsive .order-row-cell,
  .testorder-orders-page.deployment-orders-responsive
    .my-order-action-cell.order-row-cell-actions,
  .testorder-orders-page.deployment-orders-responsive .order-id-cell {
    display: flex;
    align-items: center;
    width: auto;
  }

  .testorder-orders-page.deployment-orders-responsive .order-id-cell {
    flex-direction: row;
    gap: 8px;
  }

  .testorder-orders-page.deployment-orders-responsive .order-row-cell::before,
  .testorder-orders-page.deployment-orders-responsive
    .my-order-action-cell.order-row-cell-actions::before,
  .testorder-orders-page.deployment-orders-responsive .order-id-cell::before {
    content: none;
  }

  /* Keep desktop row structure, but allow mobile-like text breaking in long fields */
  .testorder-orders-page.deployment-orders-responsive
    .order-row-cell
    > .order-row-cell-inner,
  .testorder-orders-page.deployment-orders-responsive
    .order-row-cell-link
    .my-order-target-link,
  .testorder-orders-page.deployment-orders-responsive
    .order-row-cell-service
    .my-order-service-link {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* Keep order.html top section style same as desktop under 1000px */
@media (max-width: 1000px) {
  .testorder-orders-page.deployment-orders-responsive .my-orders-hero {
    min-height: 180px;
    padding: 20px 35px;
  }

  .testorder-orders-page.deployment-orders-responsive .my-orders-filter-card {
    align-items: flex-start;
    padding: 25px 30px;
    gap: 12px;
  }

  .testorder-orders-page.deployment-orders-responsive .my-orders-search {
    max-width: 300px;
  }
}

body.dark-mode .deployment-orders-responsive .order-row-cell::before,
body.dark-mode .deployment-orders-responsive .order-id-cell::before,
body.dark-mode
  .deployment-orders-responsive
  .my-order-action-cell.order-row-cell-actions::before {
  color: #ff9b4d;
}

body.dark-mode .deployment-orders-responsive .my-order-row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* ══ DRIPFEED PAGE UI ══ */
.dripfeed-ui,
.dripfeed-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

.dripfeed-ui {
  display: grid;
  gap: 14px;
}

.dripfeed-hero h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.dripfeed-table-head,
.dripfeed-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 5fr 1.4fr 1fr 3.8fr 1fr 1fr 1.6fr 1.2fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.dripfeed-table-head {
  padding: 18px 16px;
  background: linear-gradient(92deg, #a13c0b, #cc4d02, #ff6b00);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  min-height: 65px;
}

.dripfeed-table-body {
  padding: 0 0 6px;
}

.dripfeed-row {
  padding: 18px 16px;
  background-image: linear-gradient(#f0f0f0, #f0f0f0);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: calc(100% - 32px) 1px;
  color: #2f2f2f;
  font-size: 14px;
  font-weight: 500;
}

.dripfeed-row:last-child {
  background-image: none;
}

.dripfeed-row a {
  color: #2e9fd8;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

.dripfeed-row b {
  color: #ff6b00;
}

.dripfeed-row .status-pill.cancelled {
  min-width: 78px;
}

.dripfeed-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 4px 0 2px;
}

.page-btn {
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #535353;
  border-radius: 8px;
  min-width: 36px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.page-btn.active {
  background: #ff6b00;
  color: #fff;
  border-color: #ff6b00;
}

@media (max-width: 1399px) {
  .dripfeed-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dripfeed-table-head,
  .dripfeed-row {
    min-width: 1220px;
  }
}

.add-funds-hero {
  min-height: 180px;
  border-radius: 10px;
  padding: 20px 35px;
  background-image: url("https://storage.perfectcdn.com/kf2yrn/tthsm5z8ik3y73wm.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-funds-hero h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.add-funds-hero p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  max-width: 460px;
  opacity: 0.95;
}

.add-funds-hero img {
  width: 160px;
  height: 135px;
  object-fit: contain;
  margin-right: 50px;
}

.add-funds-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 12px;
}

/* View ticket: chat + sidebar columns share row height */
.ticket-detail-layout {
  align-items: stretch;
}

.ticket-detail-layout > .chat-support-panel {
  min-height: 0;
}

.ticket-detail-layout > .ticket-info-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.ticket-detail-layout > .ticket-info-sidebar .ticket-info-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ticket-detail-layout > .ticket-info-sidebar .ticket-info-card {
  flex: 1;
  min-height: 0;
}

.add-funds-form-panel .panel-body {
  padding-top: 14px;
}

.add-funds-form-panel .submit-order-btn {
  margin-top: 18px;
}

.add-funds-instruction-panel header h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

.instruction-body {
  border: 1px solid #ece3d4;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 14px 14px 12px;
  min-height: 320px;
}

.instruction-body h6 {
  margin: 0 0 8px;
  color: #ff6b00;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.instruction-body p {
  margin: 0 0 8px;
  color: #6f665b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.instruction-body ol {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.instruction-body li {
  margin: 0;
  color: #6f665b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.instruction-body strong {
  color: #d26a16;
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 1199px) {
  .add-funds-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .add-funds-hero {
    padding: 16px;
    min-height: 96px;
  }

  .add-funds-hero img {
    width: 80px;
    height: 80px;
    margin-right: 0px;
  }

  .testorder-orders-page .my-order-filter-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .testorder-orders-page .my-order-filter-chips .my-order-chip {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    box-sizing: border-box;
  }

  .add-funds-instruction-panel header h5 {
    font-size: 24px;
  }

  .instruction-body strong {
    font-size: 16px;
  }
}

/* new-order + add-funds dark palette (layout unchanged) */
/* body.dark-mode .new-order-ui,
body.dark-mode .add-funds-ui,
body.dark-mode .new-order-ui *:not(i):not(iconify-icon),
body.dark-mode .add-funds-ui *:not(i):not(iconify-icon) {
    font-family: 'Inter', sans-serif;
} */

body.dark-mode .main-content {
  background:
    radial-gradient(circle at top right, rgb(69 23 6), transparent 45%), #111214;
}

body.dark-mode .notice-strip {
  background: #7f330b;
  border-color: #9f4717;
  color: #ffffff;
  opacity: 0.85;
}

body.dark-mode .notice-strip a {
  color: #ffffff;
  opacity: 0.85;
}

body.dark-mode .stat-card,
body.dark-mode .panel-card,
body.dark-mode .api-code-section,
body.dark-mode .details-content,
body.dark-mode .add-funds-form-panel,
body.dark-mode .add-funds-instruction-panel,
body.dark-mode .add-funds-history-panel {
  background: #17181b;
  border-color: #3a3d43;
}

body.dark-mode .add-panel-pill {
  background: linear-gradient(
    108.21deg,
    #899801 8.2%,
    #63680d 99.2%
  ) !important;
  color: #fff !important;
}

/* body.dark-mode .panel-card header {
    background: linear-gradient(92deg, #c24f06, #ff6f00);
} */

body.dark-mode .stat-card h4 {
  color: #ff6b00 !important;
}

body.dark-mode .stat-card p,
body.dark-mode .stat-card small,
body.dark-mode .user-stat-card p {
  color: #d3d3d3;
}

body.dark-mode .stat-icon,
body.dark-mode .badge-img {
  background: #1f2227;
  border-color: #535353;
}

body.dark-mode .platform-btn {
  background: #16181c;
  border-color: #3a3e45;
  color: #d8d8d8;
}

body.dark-mode .platform-btn.active {
  background: linear-gradient(180deg, #8fa100, #6f7f00);
  color: #f5f5f5;
  border-color: #8fa100;
}

body.dark-mode .form-control,
body.dark-mode .form-group .form-control,
body.dark-mode .field-block .form-control-custom,
body.dark-mode .new-order-control,
body.dark-mode .detail-block div,
body.dark-mode .instruction-body,
body.dark-mode .instruction-body p,
body.dark-mode .instruction-body li {
  background: #090b0e;
  border-color: #40444c;
  color: #d6d6d6;
}

/* Keep new-order Link/Quantity/Charge fields light in dark mode */
body.dark-mode .new-order-link-input,
body.dark-mode .new-order-quantity-input {
  background: #f5f5f5;
  border-color: #ece3d4;
  color: #6f665b;
}

body.dark-mode .new-order-link-input::placeholder,
body.dark-mode .new-order-quantity-input::placeholder,
body.dark-mode .new-order-charge-input::placeholder {
  color: #6f665b;
}

body.dark-mode .search-line i,
body.dark-mode .custom-dropdown-toggle > i {
  color: #c4c4c4;
}

body.dark-mode .field-block label,
body.dark-mode .detail-block label,
body.dark-mode .instruction-body h6,
body.dark-mode .instruction-body strong {
  color: #ff6b00;
}

body.dark-mode .panel-pill.active {
  color: #ff6b00 !important;
}

body.dark-mode .instruction-body {
  min-height: 320px;
}

/* body.dark-mode .submit-order-btn {
    background: linear-gradient(180deg, #98ab00, #7f9200);
    color: #fff;
} */

body.dark-mode .detail-block .multiline {
  color: #cfcfcf;
}

body.dark-mode .custom-dropdown-menu {
  background: #101216;
  border-color: #3f444c;
}

body.dark-mode .custom-dropdown-item {
  color: #d6d6d6;
}

body.dark-mode .custom-dropdown-item:hover,
body.dark-mode .custom-dropdown-item.is-selected {
  background: #1b1f25;
}

body.dark-mode .services-ui,
body.dark-mode .services-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

body.dark-mode .services-filter-card,
body.dark-mode .services-table-card {
  background: #17181b;
  border-color: #3a3d43;
}

body.dark-mode .services-pill-btn {
  background: #111318;
  border-color: #d16b1f;
  color: #ff8a1f;
}

body.dark-mode .services-filter-menu {
  background: #111318;
  border-color: #3a3d43;
}

body.dark-mode .services-filter-item {
  color: #d7d7d7;
}

body.dark-mode .services-filter-item:hover,
body.dark-mode .services-filter-item.is-selected {
  background: #1a1d23;
}

/* body.dark-mode .services-pill-btn .flag-circle {
    background: #1c1f25;
} */

body.dark-mode .services-search {
  background: #090b0e;
  border-color: #40444c;
}

body.dark-mode .services-search input {
  color: #d6d6d6;
}

body.dark-mode .services-group-title {
  background: #06080b;
  border-color: #252932;
}

body.dark-mode .services-group-title span {
  color: #dcdcdc;
}

body.dark-mode .service-row {
  color: #d5d5d5;
  border-color: #252932;
}

body.dark-mode .service-details-modal__dialog {
  background: #17181b;
  border-color: #3a3d43;
}

body.dark-mode .service-details-modal__header {
  background: linear-gradient(92deg, #a13c0b, #cc4d02, #ff6b00);
}

body.dark-mode .service-details-modal__header h4 {
  color: #fff;
}

body.dark-mode .service-details-modal__close {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

body.dark-mode .service-details-modal__body,
body.dark-mode .service-details-modal__foot {
  background: #17181b;
}

body.dark-mode .service-details-modal__foot {
  border-top-color: #31343b;
}

body.dark-mode .service-details-item,
body.dark-mode .service-details-description {
  background: #0f1217;
  border-color: #31343b;
}

body.dark-mode .service-details-item span,
body.dark-mode .service-details-description span {
  color: #a5aab3;
}

body.dark-mode .service-details-item strong,
body.dark-mode .service-details-description p {
  color: #e4e7ec;
}

body.dark-mode .my-orders-ui,
body.dark-mode .my-orders-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

body.dark-mode .my-orders-filter-card,
body.dark-mode .my-orders-table-card {
  background: #17181b;
  border-color: #535353;
}

body.dark-mode .my-order-chip {
  background: #111318;
  border-color: #ff6b00;
  color: #ff6b00;
}

body.dark-mode .my-order-chip.active {
  /* background: #95a605; */
  border-color: #95a605;
  color: #fff;
}

body.dark-mode .my-orders-search {
  background: #090b0e;
  border-color: #40444c;
}

body.dark-mode .my-orders-search input {
  color: #d6d6d6;
}

body.dark-mode .my-orders-search iconify-icon,
body.dark-mode .search-line iconify-icon {
  color: #9aa0aa;
}

body.dark-mode .my-orders-search .btn {
  color: #9aa0aa;
}

body.dark-mode .my-order-row {
  color: #d5d5d5;
  background-image: linear-gradient(#535353, #535353);
}

body.dark-mode .my-order-row:last-child {
  background-image: none;
}

body.dark-mode .confirm-email-card__description {
  color: #b4b8c0;
}

body.dark-mode .confirm-email-change-link {
  color: #ff9b4d;
}

body.dark-mode .confirm-email-change-link:hover,
body.dark-mode .confirm-email-change-link:focus {
  color: #ffb066;
}

body.dark-mode .order-id-value {
  color: #ff6b00;
}

body.dark-mode .check-mark {
  background: #111318;
  border-color: #505666;
}

body.dark-mode .copy-toast {
  background: #1d9f38;
}

body.dark-mode .dripfeed-ui,
body.dark-mode .dripfeed-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

body.dark-mode .dripfeed-row {
  color: #d5d5d5;
  background-image: linear-gradient(#535353, #535353);
}

body.dark-mode .dripfeed-row:last-child {
  background-image: none;
}

body.dark-mode .page-btn {
  background: #111318;
  border-color: #d16b1f;
  color: #ff8a1f;
}

body.dark-mode .page-btn.active {
  background: linear-gradient(92deg, #c24f06, #ff6f00);
  color: #fff;
}

/* ══ UPDATES PAGE UI ══ */
.updates-ui,
.updates-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

.updates-ui {
  display: grid;
  gap: 28px;
}

.updates-filter-card .my-order-chip {
  min-width: 56px;
}

.updates-table-wrapper {
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: #fff;
}

.updates-services-table {
  width: 100%;
  border-collapse: collapse;
}

.updates-services-table thead tr {
  background: linear-gradient(92deg, #a13c0b, #cc4d02, #ff6b00);
}

.updates-services-table thead th {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 18px 24px;
  border: none;
}

.updates-services-table tbody tr {
  background-image: linear-gradient(#f0f0f0, #f0f0f0);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: calc(100% - 48px) 1px;
}

.updates-services-table tbody tr:last-child {
  background-image: linear-gradient(#f0f0f0, #f0f0f0);
}

.updates-services-table tbody td {
  padding: 24px 24px;
  font-size: 14px;
  vertical-align: middle;
  color: #2f2f2f;
  font-weight: 500;
}

.updates-id-link {
  color: #ff6b00;
  font-weight: 500;
  text-decoration: none;
}

.updates-badge-disabled {
  background: transparent;
  color: #2f2f2f;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}

.updates-pagination {
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-btn.active-alt {
  background: #ff6b00;
  color: #fff;
  border-color: #ff6b00;
}

@media (max-width: 1199px) {
  .updates-services-table {
    min-width: 920px;
  }
}

@media (max-width: 767px) {
  .updates-hero h2 {
    font-size: 24px;
  }

  .updates-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .updates-services-table {
    min-width: 820px;
  }
}

body.dark-mode .updates-ui,
body.dark-mode .updates-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

body.dark-mode .updates-table-wrapper {
  background: #17181b;
  border: none;
}

body.dark-mode .updates-services-table tbody tr {
  background-image: linear-gradient(#535353, #535353);
}

body.dark-mode .updates-services-table tbody td {
  color: #d5d5d5;
}

body.dark-mode .updates-id-link {
  color: #ff6b00;
}

body.dark-mode .updates-badge-disabled {
  color: #d5d5d5;
}

body.dark-mode .page-btn.active-alt {
  background: linear-gradient(92deg, #c24f06, #ff6f00);
  color: #fff;
}

/* ══ REFUNDS PAGE UI (matches updates + my-orders table patterns) ══ */
.refunds-ui,
.refunds-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

.refunds-ui {
  display: grid;
  gap: 28px;
}

.refunds-notice {
  margin: 0;
  padding: 18px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #3d3318;
  background: #dcdca7;
  border: 1px solid #dcdca7;
  border-radius: 12px;
  line-height: 1.4;
}

.refunds-table-wrapper {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eadfce;
  background: #fff;
}

.refunds-services-table {
  width: 100%;
  border-collapse: collapse;
}

.refunds-services-table thead tr {
  background: linear-gradient(92deg, #a13c0b, #cc4d02, #ff6b00);
}

.refunds-services-table thead th {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 18px 24px;
  border: none;
  text-align: left;
  vertical-align: middle;
}

.refunds-services-table tbody tr {
  background-image: linear-gradient(#f0f0f0, #f0f0f0);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: calc(100% - 48px) 1px;
}

.refunds-services-table tbody tr:last-child {
  background-image: none;
}

.refunds-services-table tbody td {
  padding: 20px 24px;
  color: #2f2f2f;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

.refunds-services-table .order-id-value {
  color: #ff6b00;
}

.refunds-filter-card .my-order-chip.active {
  /* background: #95a605; */
  border-color: #95a605;
  /* color: #fff; */
}

.refunds-pagination {
  padding-top: 32px;
  padding-bottom: 32px;
}

@media (max-width: 1199px) {
  .refunds-table-card {
    overflow: visible;
  }

  .refunds-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .refunds-services-table {
    min-width: 900px;
  }
}

body.dark-mode .refunds-notice {
  background: #dcdca7;
  border-color: #4a5a2a;
  color: #1a1a1a;
  opacity: 0.85;
}

body.dark-mode .refunds-table-wrapper {
  background: #17181b;
  border-color: #3a3d43;
}

body.dark-mode .refunds-services-table tbody tr {
  background-image: linear-gradient(#535353, #535353);
}

body.dark-mode .refunds-services-table tbody td {
  color: #d5d5d5;
}

body.dark-mode .refunds-services-table .order-id-value {
  color: #ff6b00;
}

body.dark-mode .my-order-chip.active {
  border-color: #95a605;
  color: #fff;
}

/* ══ ACCOUNT SETTINGS PAGE UI ══ */
.account-settings-ui,
.account-settings-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

.account-settings-ui {
  display: grid;
  gap: 28px;
}

.account-settings-hero img {
  width: 130px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.account-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.account-settings-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: stretch;
}

.account-settings-card header h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.account-settings-card header {
  background: linear-gradient(90deg, #a13c0b, #ff6b00, #cc4d02);
}

.account-settings-card .field-block-tight {
  margin-top: 12px;
  padding: 8px 0px;
}

.account-settings-card .field-block-tight:first-of-type {
  margin-top: 0;
}

.field-label-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.field-label-with-icon label {
  margin-bottom: 0;
}

.email-verified-icon {
  font-size: 1rem;
  color: #28a745;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .form-control-custom {
  padding-right: 44px;
  width: 100%;
}

.toggle-pw-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #7a6f65;
  cursor: pointer;
  padding: 6px;
  font-size: 15px;
  line-height: 1;
}

.toggle-pw-btn:hover {
  color: #82330c;
}

.account-2fa-inner {
  border: 1px solid #ece3d4;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 16px 18px 18px;
  margin-bottom: 12px;
  padding-bottom: 25px;
}

.account-2fa-inner h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #ff6b00;
}

.account-2fa-inner p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #5c534a;
  font-weight: 500;
}

.account-2fa-inner .submit-order-btn {
  margin-top: 0;
}

.account-settings-card-full {
  width: 100%;
}

@media (max-width: 991px) {
  .account-settings-cols-2 {
    grid-template-columns: 1fr;
  }
}

body.dark-mode .account-2fa-inner {
  background: #090b0e;
  border-color: #40444c;
}

body.dark-mode .account-2fa-inner p {
  color: #b8b3ab;
}

body.dark-mode .toggle-pw-btn {
  color: #9a9a9a;
}

body.dark-mode .toggle-pw-btn:hover {
  color: #ff8a00;
}

/* ══ FAQ PAGE UI ══ */
.faq-ui,
.faq-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

.faq-ui {
  display: grid;
  gap: 30px;
}

.faq-hero img {
  width: 130px;
  max-height: 118px;
  object-fit: contain;
}

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

.faq-col {
  display: grid;
  gap: 20px;
}

.faq-item {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 30px;
  color: #242424;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  cursor: pointer;
}

.faq-question i {
  background: linear-gradient(90deg, #d87f16 0%, #ff6b00 50.48%, #82330c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 26px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  overflow: visible;
  padding: 0 30px 2px;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0 0 8px;
  color: #5a524a;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

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

body.dark-mode .faq-item {
  background: #06080a;
  border-color: #535353;
}

body.dark-mode .faq-question {
  color: #f2f2f2;
}

body.dark-mode .faq-question i {
  color: #ff7e1b;
}

body.dark-mode .faq-answer p {
  color: #b5b6bb;
}

/* ══ NOTIFICATION SETTINGS UI ══ */
.notification-settings-ui,
.notification-settings-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

.notification-settings-ui {
  display: grid;
  gap: 24px;
}

.notification-settings-card .panel-body {
  padding: 24px;
}

.notification-table {
  margin-bottom: 0;
}

.notification-table thead th {
  border-bottom: 1px solid #e6e6e6;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.notification-table tbody td {
  border-color: #eeeeee;
  color: #6f665b;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

.notification-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  margin: 0;
}

.notification-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.notification-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #d5d5d5;
  transition: all 0.25s ease;
}

.notification-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.notification-switch input:checked + .notification-slider {
  background: linear-gradient(
    108.21deg,
    #ff6b00 8.2%,
    #cc4d02 53.43%,
    #a13c0b 99.2%
  );
}

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

.notification-switch input:disabled + .notification-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.notification-save-btn {
  margin-top: 16px;
  width: 100%;
}

body.dark-mode .notification-table thead th {
  color: #d6d6d6;
  border-color: #40444c;
  background: #1b1d22;
}

body.dark-mode .notification-table tbody td {
  color: #b9b9b9;
  border-color: #40444c;
  background: #111318;
}

body.dark-mode .notification-settings-card {
  background: #17181b;
  border-color: #3a3d43;
}

body.dark-mode .notification-settings-card .panel-body {
  background: #17181b;
}

body.dark-mode .notification-table > thead > tr > th,
body.dark-mode .notification-table > tbody > tr > td {
  background-color: #111318 !important;
}

body.dark-mode .notification-table > thead > tr > th {
  background-color: #1b1d22 !important;
  color: #e2e2e2 !important;
}

body.dark-mode .notification-slider {
  background: #3f4650;
}

/* ══ USER DASHBOARD PAGE UI ══ */
.dashboard-ui,
.dashboard-ui *:not(i):not(iconify-icon) {
  font-family: "Inter", sans-serif;
}

.dashboard-ui {
  display: grid;
  gap: 28px;
}

/* Wrapper for metrics blocks: keep #dash-metrics-modal-source in DOM for modal clone; layout as direct grid rows */
.dash-metrics-modal-source {
  display: contents;
}

.dash-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  align-items: stretch;
}

.dash-top-grid-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

/* Welcome banner */
.dash-welcome-card {
  position: relative;
  border-radius: 18px;
  min-height: 183px;
  padding: 28px 36px 28px 40px;
  overflow: hidden;
  color: #fff;
  background-image: url("https://storage.perfectcdn.com/kf2yrn/1t7tntdm8tl49o57.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 28px rgba(90, 48, 20, 0.18);
  overflow: visible;
}

.dash-welcome-card::before {
  content: "";
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 58%;
  height: 160%;
}

.dash-welcome-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
}

.dash-welcome-text {
  position: relative;
  z-index: 1;
  max-width: 48%;
}

.dash-welcome-text h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.dash-welcome-line {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.dash-welcome-line strong {
  font-weight: 600;
}

.dash-welcome-art {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: 30%;
  max-width: 250px;
  height: 100%;
  min-height: 250px;
  background-image: url("https://storage.perfectcdn.com/kf2yrn/78kem8puu20d0f7t.png");
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Status summary card */
.dash-status-card {
  background: #fff3eb;
  border: 1px solid #ff6b00;
  border-radius: 12px;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.dash-status-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 233px;
  height: 233px;
  background: url("https://storage.perfectcdn.com/kf2yrn/92yagczan0pdf3jp.svg")
    no-repeat right bottom / contain;
  opacity: 1;
  pointer-events: none;
}

body.dark-mode .dash-status-card::after {
  filter: invert(1) brightness(0.5);
}

.dash-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-status-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dash-avatar-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.dash-avatar-ring-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://storage.perfectcdn.com/kf2yrn/43y0o0bd6rpz0j0d.svg")
    no-repeat center;
  background-size: contain;
  z-index: 1;
}

.dash-status-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.dash-status-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
}

.dash-status-doc-ico {
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #6f8700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dash-status-vip-txt {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #535353;
}

.dash-status-vip-txt strong {
  color: inherit;
}

.dash-status-vip-badge {
  flex-shrink: 0;
  text-align: center;
}

.dash-status-vip-badge img {
  display: block;
  width: 52px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
  margin: 0 auto;
  margin-bottom: 4px;
}

.dash-status-vip-label {
  display: block;
  margin-top: -2px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #ed2683;
}

@media (max-width: 1440px) {
  .dash-status-vip-label {
    font-size: 20px;
  }
}

.dash-mini-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.dash-mini-table {
  width: 100%;
  font-size: 13px;
  border-collapse: separate;
  border-spacing: 0 8px;
  /* Vertical gap between rows */
  text-align: left;
  margin: 0;
  background: transparent !important;
}

.dash-mini-table th,
.dash-mini-table td {
  padding: 12px 15px;
  border: none;
  vertical-align: middle;
}

.dash-mini-table thead tr {
  background-color: #fff;
}

.dash-mini-table thead th {
  font-weight: 600;
  color: #333;
  background: #fff;
  border-top: 1px solid #e0e2e6;
  border-bottom: 1px solid #e0e2e6;
  padding: 18px 15px;
  text-align: left;
}

.dash-mini-table thead th:first-child {
  border-left: 1px solid #e0e2e6;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  padding-left: 28px;
}

.dash-mini-table thead th:last-child {
  border-right: 1px solid #e0e2e6;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.dash-mini-table td {
  color: #666;
  font-weight: 500;
  font-size: 13px;
  text-align: center;
}

.dash-mini-table td img {
  display: inline-block;
  vertical-align: middle;
}

.dash-mini-table tbody tr {
  transition: all 0.3s ease;
}

.dash-mini-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.dash-mini-table tbody tr.dash-tier-row--current {
  background: linear-gradient(
    90deg,
    rgba(255, 107, 0, 0.14),
    rgba(163, 60, 11, 0.06)
  );
  box-shadow: inset 3px 0 0 var(--orange);
}

.dash-mini-table tbody tr.dash-tier-row--current:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 107, 0, 0.2),
    rgba(163, 60, 11, 0.09)
  );
}

/* Dark mode for mini table */
body.dark-mode .dash-mini-table thead tr,
body.dark-mode .dash-mini-table thead th {
  background: #252525;
  color: #eee;
  border-color: #333;
}

body.dark-mode .dash-mini-table td {
  color: #aaa;
}

body.dark-mode .dash-mini-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .dash-mini-table tbody tr.dash-tier-row--current {
  background: rgba(255, 107, 0, 0.14);
  box-shadow: inset 3px 0 0 var(--orange);
}

body.dark-mode .dash-mini-table tbody tr.dash-tier-row--current:hover {
  background: rgba(255, 107, 0, 0.2);
}

.dash-tier-cell {
  text-align: left;

  /* background: linear-gradient(90deg, #82330C 0%, #FF6B00 92.33%) !important; */
  color: #82330c !important;

  /* -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; */

  font-weight: 800;
  font-size: 16px;
  padding-left: 28px !important;
}

.dash-tier-name {
  display: inline-block;
  background: linear-gradient(90deg, #82330c 0%, #ff6b00 50.48%, #d87f16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Current tier: horizontal line with centered pill (“You are at”) */
.dash-current-flag {
  display: flex;
  align-items: center;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  margin-bottom: 8px;
  gap: 0;
}

.dash-tier-cell .dash-current-flag {
  max-width: 240px;
}

.dash-current-flag-line {
  flex: 1 1 0;
  min-width: 6px;
  height: 1px;
  background: var(--orange);
}

.dash-current-flag-pill {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(92deg, #a13c0b 8.2%, #ff6b00 99.2%);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.22);
}

body.dark-mode .dash-current-flag-line {
  background: #ff9d4d;
}

body.dark-mode .dash-current-flag-pill {
  background: linear-gradient(92deg, #c94e12, #ff9d4d);
  box-shadow: 0 2px 10px rgba(255, 157, 77, 0.28);
}

.dash-chat-bad {
  color: #fff;
  font-size: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef3b2d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-chat-ok {
  color: #28a745;
  font-size: 22px;
}

.dash-ico-beginner {
  color: #7b68ee;
}

.dash-ico-gold {
  color: #d4a017;
}

.dash-top-grid-left article {
  height: 100%;
}

/* Progress */
.dash-progress-card {
  min-height: 200px;

  border-radius: 18px;
  padding: 20px 32px 18px;
  background-image: url("https://storage.perfectcdn.com/kf2yrn/2ukpys48sk2fjcpr.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-progress-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.dash-progress-top h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.dash-progress-ends {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.dash-progress-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dash-progress-tag i {
  font-size: 18px;
}

.dash-progress-bar-row {
  display: block;
}

.dash-progress-track {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  background: #fffefe;
  overflow: hidden;
  min-width: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  position: relative;
  --progress-percent: 0;
}

.dash-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #a13c0b, #cc4d02, #ff6b00);
  transition: width 0.4s ease;
  position: relative;
}

.dash-progress-label {
  position: absolute;
  left: clamp(32px, calc(var(--progress-percent) * 1%), calc(100% - 32px));
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 64px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #ef7a1a;
  color: #2d2d2d;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dash-progress-foot {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.25;
}

.dash-progress-foot strong {
  color: #fff;
  font-weight: 700;
}

.dash-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dash-metric-card {
  position: relative;
  border-radius: 16px;
  padding: 30px 16px 54px 30px;
  min-height: 200px;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  /* optional for readability */
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 90, 40, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Card 1 */
.dash-metric-card:nth-child(1) {
  background-image: url("https://storage.perfectcdn.com/kf2yrn/c1p9ij0ce5elzhxn.svg");
}

/* Card 2 */
.dash-metric-card:nth-child(2) {
  background-image: url("https://storage.perfectcdn.com/kf2yrn/h51x2wh5rloukm93.svg");
}

/* Card 3 */
.dash-metric-card:nth-child(3) {
  background-image: url("https://storage.perfectcdn.com/kf2yrn/6jlffs3nxd98dadk.svg");
}

/* Card 4 */
.dash-metric-card:nth-child(4) {
  background-image: url("https://storage.perfectcdn.com/kf2yrn/rep0mzf9r0s256dw.svg");
}

.dash-metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1),
    transparent 45%
  );
  pointer-events: none;
}

.dash-metric-card h4 {
  position: relative;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.dash-metric-value {
  position: relative;
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  z-index: 1;
}

.dash-metric-icon {
  position: absolute;
  right: 12px;
  top: 18px;
  z-index: 1;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-metric-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.dash-metric-btn {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: black;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #fff;
  color: #0d2812;
}

.dash-metric-btn i {
  font-size: 0.8rem;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
}

/* Level comparison section (shares wrapper class; do not override 4-card grid above) */
.dash-metrics-row.table-responsive {
  display: block;
  width: 100%;
  margin-top: 8px;
}

/* Levels UI Redesign */
.dash-levels-container {
  display: flex;
  gap: 15px;
  padding: 14px 5px 20px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}

.dash-levels-container::-webkit-scrollbar {
  height: 6px;
}

.dash-levels-container::-webkit-scrollbar-track {
  background: transparent;
}

.dash-levels-container::-webkit-scrollbar-thumb {
  background-color: var(--orange);
  border-radius: 10px;
}

.dash-level-card {
  min-width: 175px;
  flex: 1;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e2e6;
  /* Reviewed border color */
  padding: 10px;
  /* Added padding to match features column */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dash-level-features {
  min-width: 280px;
  background: #f5f5f5;
  /* Light gray background as seen in image */
  border: 1px solid #e6e6e6;
  border-radius: 15px;
  box-shadow: none;
  padding: 10px;
  /* Internal padding to create space for the header card */
}

.dash-level-header {
  padding: 20px 10px;
  text-align: center;
  border-bottom: none;
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.dash-level-features .dash-level-header {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  align-items: flex-start;
  padding-left: 25px;
  padding-right: 25px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  height: 130px;
  /* 130 + 10 margin = 140. With 10 padding top of parent = 150 total */
  margin-bottom: 10px;
}

.dash-level-title {
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(90deg, #82330c 0%, #ff6b00 92.33%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
}

.dash-level-badge-box {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.dash-level-name-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dash-level-name-wrap img {
  width: 33px;
  height: 42px;
}

.dash-level-name {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.dash-level-price {
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(90deg, #82330c 0%, #ff6b00 92.33%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* margin-bottom: 5px; */
}

.dash-level-bonus {
  font-size: 0.8rem;
  color: #a0a0a0;
  font-weight: 500;
}

.dash-level-row {
  height: 65px;
  /* Synchronized with features column */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-bottom: none;
  /* Use centered dividers instead */
  position: relative;
  font-size: 0.85rem;
  color: #666;
}

.dash-level-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: #e8e8e8;
}

.dash-level-features .dash-level-row {
  justify-content: flex-start;
  font-weight: 500;
  color: #1a1a1a;
  padding-left: 20px;
  height: 65px;
}

.dash-level-features .dash-level-row:not(:last-child)::after {
  left: 20px;
  right: 20px;
}

.dash-level-row:last-child {
  border-bottom: none;
}

.dash-level-row i.fa-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #2ecc71;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(46, 204, 113, 0.3);
}

.dash-level-card:not(.dash-level-features):hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--orange);
}

.dash-level-card.dash-level-card--current:not(.dash-level-features) {
  position: relative;
  overflow: visible;
  padding-top: 16px;
  border-color: var(--orange);
  border-width: 2px;
  box-shadow:
    0 0 0 1px rgba(255, 107, 0, 0.22),
    0 10px 32px rgba(255, 107, 0, 0.14);
}

/* “Current” pill only — no side lines */
.dash-level-card-current-cap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.dash-level-card-current-cap-label {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(92deg, #a13c0b 8.2%, #ff6b00 99.2%);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.28);
}

body.dark-mode .dash-level-card-current-cap-label {
  background: linear-gradient(92deg, #c94e12, #ff9d4d);
}

.dash-level-card.dash-level-card--current:not(.dash-level-features):hover {
  border-color: var(--orange);
  box-shadow:
    0 0 0 1px rgba(255, 107, 0, 0.28),
    0 14px 36px rgba(255, 107, 0, 0.16);
}

.dash-levels-corner-label .fa-trophy {
  color: #d89b2a;
  font-size: 1.35rem;
  margin-bottom: 2px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
}

.dash-tier-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dash-tier-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
  margin-bottom: 2px;
}

.dash-tier-ico img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.dash-tier-ico--beginner {
  background: linear-gradient(145deg, #6b7ab8, #3d4a7a);
  color: #fff;
}

.dash-tier-ico--gold {
  background: linear-gradient(145deg, #e6c84a, #b8860b);
  color: #fff;
}

.dash-tier-ico--diamond {
  background: linear-gradient(145deg, #5ecfff, #1e7a9c);
  color: #fff;
}

.dash-tier-ico--vip {
  background: rgba(0, 0, 0, 0.04);
}

.dash-tier-ico--master {
  background: linear-gradient(145deg, #c76b2e, #7a2f0a);
  color: #fff;
}

.dash-tier-ico--legend {
  background: linear-gradient(145deg, #c0392b, #5c1010);
  color: #fff;
}

.dash-tier-name {
  font-size: 14px;
  font-weight: 800;
  color: #1f1f1f;
  align-items: left;
  justify-content: left;
  display: flex;
}

.dash-tier-range {
  display: inline-block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: 0.02em;
  /* Price range: orange → burnt orange (same system as .text-gradient) */
  background: linear-gradient(90deg, #82330c 0%, #ff6b00 45%, #d87f16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.dash-tier-bonus {
  font-size: 11px;
  color: #8a4f29;
  font-weight: 600;
}

.dash-cell-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  font-size: 12px;
}

.dash-cell-no {
  color: #b0a9a0;
  font-weight: 600;
}

@media (max-width: 1199px) {
  .dash-levels-wrap--metrics .dash-levels-table {
    min-width: 800px;
  }
}

@media (max-width: 991px) {
  .dash-top-grid {
    grid-template-columns: 1fr;
  }

  .dash-metrics-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dash-welcome-text {
    max-width: 80%;
  }

  .dash-welcome-art {
    width: 50%;
    opacity: 0.9;
    right: 0%;
    min-height: 100px;
  }
}

@media (max-width: 575px) {
  .dash-welcome-text h2 {
    font-size: 18px;
  }

  .dash-welcome-text p {
    font-size: 14px;
  }

  .dash-welcome-card {
    padding: 28px 20px 28px 20px;
  }

  .dash-progress-card {
    padding: 28px 20px 28px 20px;
  }
}

/* Dashboard — dark mode */

body.dark-mode .dash-welcome-card::before {
  opacity: 0.5;
}

body.dark-mode .dash-status-card {
  background: #0c0e10;
  border-color: #c46a1f;
  box-shadow: none;
}

body.dark-mode .dash-status-name {
  color: #ff9d4d;
}

body.dark-mode .dash-status-vip-txt {
  color: #c9c9c9;
}

body.dark-mode .dash-status-vip-txt strong {
  color: #ff9a40;
}

body.dark-mode .dash-mini-table-wrap {
  border-color: #333;
  background: #0c0e10;
}

body.dark-mode .dash-mini-table th,
body.dark-mode .dash-mini-table td {
  border-bottom-color: #2d3138;
}

body.dark-mode .dash-mini-table thead th {
  color: #f0a85a;
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .dash-mini-table td {
  color: #e6e6e6;
  background: #0c0e10;
}

body.dark-mode .dash-tier-cell {
  color: #ff9d4d;
}

body.dark-mode .dash-progress-foot {
  color: #b8e6c4;
}

body.dark-mode .dash-progress-foot strong {
  color: #fff1b8;
}

/* Dark mode support */
body.dark-mode .dash-level-card {
  background: #1e1e1e;
  border-color: #2a2a2a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode
  .dash-level-card.dash-level-card--current:not(.dash-level-features) {
  overflow: visible;
  padding-top: 16px;
  border-color: #ff9d4d;
  border-width: 2px;
  box-shadow:
    0 0 0 1px rgba(255, 157, 77, 0.35),
    0 10px 32px rgba(0, 0, 0, 0.45);
}

body.dark-mode .dash-level-header {
  border-bottom-color: #2a2a2a;
}

body.dark-mode .dash-level-name {
  color: #eee;
}

body.dark-mode .dash-level-price {
  color: #ff8c3a;
}

body.dark-mode .dash-level-bonus {
  color: #999;
}

body.dark-mode .dash-level-row {
  border-bottom-color: #2a2a2a;
  color: #aaa;
}

body.dark-mode .dash-level-features .dash-level-header {
  background: #1e1e1e;
  border-color: #2a2a2a;
}

body.dark-mode .dash-level-features .dash-level-row {
  color: #ddd;
  border-bottom-color: #2a2a2a;
}

body.dark-mode .dash-level-badge-box {
  background: #252525;
  border-color: #333;
}

/* ══ MOBILE ≤ 768px ══ */
@media (max-width: 991px) {
  .app-shell {
    flex-direction: column;
  }

  /* top nav — single flat bar */
  .top-nav {
    height: var(--header-h);
    padding: 0 12px;
    align-items: center;
    gap: 5px;
  }

  .top-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);

    pointer-events: none;
  }

  /* show sidebar-header in mobile drawer */
  .sidebar-header {
    display: flex;
  }

  /* hide desktop toggle */
  .sidebar-toggle {
    display: none;
  }

  /* show hamburger */
  .mobile-menu-btn {
    display: flex;
    margin-left: 12px;
  }

  .nav-right {
    flex: 1;
    padding: 0 12px 0 8px;
    gap: 10px;
    border-bottom: none;
  }

  /* show mobile brand */
  .mobile-brand {
    display: flex;
  }

  /* hide page title on very small screens */
  .page-title-nav {
    display: none;
  }

  .nav-icon-btn {
    display: flex;
    width: 32px;
    height: 32px;
  }

  @media (max-width: 580px) {
    .nav-icon-btn {
      display: none;
    }
  }

  /* Slim Header Elements */
  .nav-actions {
    gap: 6px;
  }

  .theme-switch {
    width: 72px;
    height: 34px;
  }

  .switch-slider {
    width: 26px;
    height: 26px;
    left: 4px;
  }

  .theme-switch.dark-mode .switch-slider {
    left: calc(100% - 30px);
  }

  .switch-icons {
    padding: 0 10px;
  }

  .switch-icons i {
    font-size: 14px;
  }

  .currency-select {
    height: 34px;
    padding: 0 10px 0 4px;
    font-size: 12px;
  }

  .current-currency {
    gap: 6px;
  }

  .current-currency .flag-icon {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .user-pill {
    height: 34px;
    padding: 4px 10px 4px 4px;
    gap: 8px;
  }

  .user-pill img {
    width: 26px;
    height: 26px;
  }

  .pill-name {
    display: none;
  }

  .user-pill > i {
    font-size: 12px;
  }

  /* sidebar = fixed left drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w) !important;
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    background: #fef1e2;
  }

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

  /* override icon-only on mobile — always full */
  .sidebar.icon-only {
    width: var(--sidebar-w) !important;
  }

  .sidebar.icon-only .nav-label {
    display: revert !important;
  }

  .sidebar.icon-only .user-card h6 {
    display: revert !important;
  }

  .sidebar.icon-only .verified-badge {
    display: flex !important;
  }

  .sidebar.icon-only .nav-section-header {
    display: flex !important;
  }

  .sidebar.icon-only .section-divider {
    display: block !important;
  }

  .sidebar.icon-only .nav-item {
    justify-content: flex-start !important;
    padding: 7px 10px !important;
    gap: 10px !important;
  }

  .sidebar.icon-only .icon-box {
    width: 26px !important;
    height: 26px !important;
    border-radius: 7px !important;
    font-size: 0.75rem !important;
  }

  .sidebar.icon-only .user-card {
    margin: 12px 8px !important;
    padding: 16px 10px !important;
    border-radius: var(--radius) !important;
  }

  .sidebar.icon-only .user-card-avatar {
    width: 56px !important;
    height: 56px !important;
  }

  .sidebar.icon-only .user-card-avatar img {
    border-width: 3px !important;
  }

  .sidebar.icon-only .badge-icon {
    display: flex !important;
  }

  .sidebar.icon-only .online-dot {
    display: none !important;
  }

  .sidebar.icon-only .user-mini-name {
    display: none !important;
  }

  .sidebar.icon-only .nav-item::after {
    display: none !important;
  }

  .sidebar.icon-only .sidebar-logout {
    justify-content: flex-start !important;
    padding: 9px 12px !important;
    margin: auto 8px 14px !important;
    width: calc(100% - 16px) !important;
  }

  .sidebar.icon-only .nav-item.active::before {
    display: block !important;
  }

  .sidebar.icon-only .nav-item.active .icon-box {
    outline: none !important;
  }

  @media (max-width: 400px) {
    #currentCurrency {
      display: none;
    }

    .currency-select {
      padding-right: 6px;
    }
  }

  /* show close btn */
  .sidebar-close-btn {
    display: flex;
  }

  .main-content {
    padding: 15px 15px;
  }

  .order-form-card {
    padding: 18px 16px;
    max-width: 100%;
  }

  .info-row {
    flex-direction: column;
    gap: 8px;
  }

  .info-chip {
    min-width: unset;
  }

  span#currentCurrency {
    display: none;
  }

  .title-date-wrap {
    gap: 10px;
  }
}

/* ══ SMALL MOBILE ≤ 480px ══ */
@media (max-width: 480px) {
  :root {
    --sidebar-w: 250px;
  }

  .order-form-card h5 {
    font-size: 0.9rem;
  }

  .btn-submit {
    font-size: 0.82rem;
    padding: 11px 18px;
  }

  .form-control-custom {
    font-size: 0.84rem;
    padding: 9px 11px;
  }
}

/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* *****************    dark mode     ******************* */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */
/* ****************************************************** */

/* ── DARK MODE ── */
/* body.dark-mode {
    background: linear-gradient(225.04deg, rgba(255, 107, 0, 0.8) 0%, rgba(70, 23, 4, 0.5) 39.52%, rgba(255, 240, 211, 0.5) 100%);
    color: #eee;
} */

body.dark-mode .app-shell {
  background: linear-gradient(
    225.04deg,
    rgba(255, 107, 0, 0.8) 0%,
    rgba(70, 23, 4, 0.5) 39.52%,
    rgba(255, 240, 211, 0.5) 100%
  );
}

body.dark-mode .top-nav {
  background: linear-gradient(89.98deg, #272727 0.01%, rgb(70 23 4) 99.98%);
}

body.dark-mode .sidebar {
  background: linear-gradient(177.71deg, #272727 45.28%, rgb(70 23 4) 100%);
}

body.dark-mode .nav-section-header {
  background: #ff6b004d;
}

body.dark-mode .nav-section-header.collapsed span {
  color: #fff;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  background: unset;
}

body.dark-mode .nav-section-primary .nav-section-header {
  background: linear-gradient(
    108.21deg,
    #a13c0b 8.2%,
    #cc4d02 53.43%,
    #ff6b00 99.2%
  );
}

/* body.dark-mode .top-nav {
    border-bottom: 2px solid #2a2a2a;
} */

body.dark-mode .order-form-card,
body.dark-mode .currency-options,
body.dark-mode .user-dropdown-menu {
  background: #1c1c1c !important;
  border-color: #2a2a2a !important;
  color: #fff !important;
}

body.dark-mode .user-card,
body.dark-mode .music-player-card {
  background: linear-gradient(
    120.61deg,
    rgba(255, 220, 165, 0.3) 14.61%,
    rgba(83, 83, 83, 0.4) 90.73%
  );
}

body.dark-mode .nav-items {
  background: linear-gradient(
    120.61deg,
    rgba(255, 220, 165, 0.08) 0%,
    rgba(64, 64, 64, 0.4) 100%
  );
}

body.dark-mode .form-label-custom,
body.dark-mode .nav-item {
  color: #fff;
}

body.dark-mode .form-control-custom,
body.dark-mode .info-chip,
body.dark-mode .nav-icon-btn {
  background: #252525;
  border-color: #333;
  color: #fff;
}

body.dark-mode .currency-select {
  background: #252525;

  color: #fff;
}

body.dark-mode .info-chip span {
  color: #fff;
}

body.dark-mode .currency-options div:hover,
body.dark-mode .user-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--orange);
}

body.dark-mode .nav-item:hover {
  color: var(--orange);
}

body.dark-mode .theme-switch {
  background: #252525;
  border-color: var(--orange);
}

body.dark-mode .pill-name {
  color: #fff;
}

body.dark-mode .section-divider {
  background: #2a2a2a;
}

/* ══ MY TICKETS PAGE UI ══ */
.panel-card .ticket-panel-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 28px;
  background: linear-gradient(
    92deg,
    #a13c0b 8.2%,
    #cc4d02 53.43%,
    #ff6b00 99.2%
  );
}

.panel-card .ticket-panel-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.panel-card .ticket-panel-header p {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  opacity: 0.9;
}

.create-ticket-form .form-control-custom {
  width: 100%;
  padding: 0 14px;
  appearance: none;
}

.create-ticket-form textarea {
  width: 100%;
  padding: 14px;
  resize: vertical;
  min-height: 120px;
}

.create-ticket-form .ticket-dynamic-fields .form-group {
  margin-bottom: 16px;
}

.create-ticket-form .ticket-dynamic-fields .control-label {
  display: block;
  margin-bottom: 6px;
  color: #82330c;
  font-size: 0.9rem;
  font-weight: 600;
}

.create-ticket-form .ticket-dynamic-fields .form-control {
  background: var(--cream);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.87rem;
  color: var(--text-dark);
  width: 100%;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: "Nunito", sans-serif;
  height: 46px;
}

.create-ticket-form .ticket-dynamic-fields input,
.create-ticket-form .ticket-dynamic-fields select,
.create-ticket-form .ticket-dynamic-fields textarea {
  background-color: #f5f5f5 !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 10px !important;
  color: #6f665b;
}

.create-ticket-form .ticket-dynamic-fields textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.create-ticket-form .ticket-dynamic-fields .form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224, 112, 32, 0.12);
}

/* Chevron: dynamic AJAX selects omit .select-wrap, so native arrow is gone with appearance:none */
.create-ticket-form .ticket-dynamic-fields select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2382330C' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.75 6 6.25 10.5 1.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
}

.create-ticket-form form.rtl-form .ticket-dynamic-fields select.form-control {
  padding-right: 13px;
  padding-left: 2.5rem;
  background-position: left 14px center;
}

body.dark-mode .create-ticket-form .ticket-dynamic-fields select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239ca3af' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.75 6 6.25 10.5 1.75'/%3E%3C/svg%3E");
}

.file-upload-area {
  min-height: 140px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  padding: 20px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.file-upload-area:hover,
.file-upload-area.is-drag-over {
  border-color: #ff6b00;
  background: #fff7ef;
}

.file-upload-area svg {
  margin-bottom: 8px;
}

.file-upload-area p {
  margin: 0;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.file-upload-area p span {
  color: #6f665b;
  font-weight: 400;
}

.ticket-attachment-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff4e8;
  border: 1px solid #ffd6b3;
  color: #7b4a1c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  max-width: 100%;
}

.ticket-attachment-pill span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-attachment-pill button {
  border: none;
  background: transparent;
  color: inherit;
  line-height: 1;
  padding: 0;
  font-size: 13px;
}

.ticket-history-panel .panel-body,
.create-ticket-form .panel-body {
  padding: 18px 24px;
}

/* View ticket — Daisy-inspired sidebar (Bootstrap-free utility-style layout) */
.ticket-info-sidebar.panel-card {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 2px 6px rgba(15, 23, 42, 0.06);
}

.ticket-info-sidebar.ticket-history-panel .ticket-info-panel-body {
  padding: 12px 15px 16px;
}

.ticket-info-card {
  display: flex;
  flex-direction: column;
}

.ticket-info-card-head {
  min-height: 75px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -12px -16px 10px;
  padding: 38px 16px;
  background: linear-gradient(92deg, #a13c0b, #cc4d02, #ff6b00);
  color: #fff;
  border-radius: 12px 12px 0 0;
}

.ticket-info-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.ticket-info-card-lead {
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6f665b;
  line-height: 1.45;
}

.ticket-info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  background: rgba(245, 245, 245, 0.65);
}

.ticket-info-row-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(51, 42, 33, 0.62);
  flex-shrink: 0;
}

.ticket-info-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.35;
  text-align: right;
}

.ticket-info-badge--primary {
  color: var(--orange);
  border-color: rgba(224, 112, 32, 0.45);
  background: rgba(255, 243, 232, 0.75);
}

.ticket-info-badge--subject {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(239, 246, 255, 0.85);
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.ticket-info-badge--subject:hover {
  opacity: 0.88;
  text-decoration: none;
}

.ticket-info-badge--open {
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(220, 252, 231, 0.65);
}

.ticket-info-badge--closed {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(254, 226, 226, 0.55);
}

.ticket-info-badge--muted {
  color: #57534e;
  border-color: #d6d3d1;
  background: rgba(255, 255, 255, 0.55);
}

.ticket-info-badge--danger-outline {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(254, 242, 242, 0.65);
}

.ticket-info-badge--info-outline {
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(224, 242, 254, 0.65);
}

.ticket-info-badge--success-outline {
  color: #166534;
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(220, 252, 231, 0.65);
}

.ticket-info-support-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(234, 179, 8, 0.38);
  background: rgba(254, 249, 195, 0.42);
}

.ticket-info-support-note-title {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(51, 42, 33, 0.82);
}

.ticket-info-support-note-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(51, 42, 33, 0.65);
}

body.dark-mode .ticket-info-row {
  border-color: #353535;
  background: rgba(20, 20, 22, 0.65);
}

body.dark-mode .ticket-info-card-head {
  background: linear-gradient(92deg, #a13c0b, #cc4d02, #ff6b00);
}

body.dark-mode .ticket-info-card-title {
  color: #fff;
}

body.dark-mode .ticket-info-card-lead,
body.dark-mode .ticket-info-row-label {
  color: #a8a29e;
}

body.dark-mode .ticket-info-badge--primary {
  background: rgba(224, 112, 32, 0.14);
  border-color: rgba(251, 146, 60, 0.35);
  color: #fdba74;
}

body.dark-mode .ticket-info-badge--subject {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

body.dark-mode .ticket-info-badge--open {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
}

body.dark-mode .ticket-info-badge--closed {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

body.dark-mode .ticket-info-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  border-color: #44403c;
  color: #d6d3d1;
}

body.dark-mode .ticket-info-badge--danger-outline {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

body.dark-mode .ticket-info-badge--info-outline {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

body.dark-mode .ticket-info-badge--success-outline {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
}

body.dark-mode .ticket-info-support-note {
  border-color: rgba(234, 179, 8, 0.28);
  background: rgba(113, 63, 18, 0.28);
}

body.dark-mode .ticket-info-support-note-title {
  color: #fde68a;
}

body.dark-mode .ticket-info-support-note-text {
  color: rgba(253, 230, 138, 0.82);
}

.ticket-search-box {
  display: flex;
  margin-bottom: 20px;
}

.ticket-search-box .form-control-custom {
  flex: 1;
  border-radius: 10px 0 0 10px;
  border: 1px solid #e6e6e6;
  border-right: none;
  height: 46px;
  padding: 0 16px;
  background: #f5f5f5;
}

.ticket-search-box button {
  background: linear-gradient(
    108.21deg,
    #ff6b00 8.2%,
    #cc4d02 53.43%,
    #a13c0b 99.2%
  );
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* My Tickets: horizontal scroll on narrow viewports; vertical scroll inside list (~6 rows visible) */
.my-tickets-ui .ticket-history-panel .panel-body {
  overflow-x: auto;
  overflow-y: visible;
}

.my-tickets-ui .ticket-list-scroll {
  --ticket-visible-rows: 6;
  --ticket-row-estimate: 5.125rem;
  --ticket-list-gap: 12px;
  max-height: calc(
    var(--ticket-visible-rows) * var(--ticket-row-estimate) +
      (var(--ticket-visible-rows) - 1) * var(--ticket-list-gap)
  );
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 450px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.my-tickets-ui .ticket-list-scroll .ticket-list {
  min-width: 0;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 16px 20px;
}

.ticket-item.unread-ticket {
  position: relative;
  border-color: rgba(255, 107, 0, 0.4);
  background: #fff9f5;
  animation: unread-ticket-fade 2s ease-in-out infinite;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.ticket-item.unread-ticket::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b00;
  animation: unread-dot-blink 1.6s ease-in-out infinite;
}

.ticket-item > div {
  flex: 1;
}

.ticket-item .ticket-subject {
  flex: 2;
}

.ticket-item .ticket-status {
  flex: 1;
  text-align: center;
}

.ticket-item .ticket-updated {
  flex: 1.5;
  text-align: right;
}

.ticket-item p {
  margin: 0 0 4px;
  font-size: 16px;
  color: #1f1f1f;
  font-weight: 500;
}

.ticket-item .ticket-id-value,
.ticket-item .ticket-subject-value,
.ticket-item .ticket-status-value,
.ticket-item .ticket-updated-value {
  margin: 0;
  font-size: 14px;
  color: #6f665b;
  font-weight: 500;
}

.ticket-item .ticket-status-value.answered {
  color: #28a745;
}

.ticket-item .ticket-subject-value {
  color: #f27b22;
}

@keyframes unread-ticket-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.3);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 107, 0, 0.05);
    transform: translateY(-1px);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    transform: translateY(0);
  }
}

@keyframes unread-ticket-fade {
  0%,
  100% {
    border-color: rgba(255, 107, 0, 0.35);
  }

  50% {
    border-color: rgba(255, 107, 0, 0.6);
  }
}

@keyframes unread-dot-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination a,
.pagination a:hover,
.pagination a:focus,
.pagination a:active {
  text-decoration: none;
}
.pagination a,
.pagination button {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 8px 16px;
  min-height: 40px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  color: #6f665b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pagination a.active,
.pagination button.active {
  background: #ff6b00;
  border-color: #ff6b00;
  color: #fff;
}

.pagination button i {
  font-size: 12px;
}

@media (max-width: 1199px) {
  .ticket-history-panel .panel-body {
    overflow-x: auto;
  }

  .ticket-history-panel .ticket-list-scroll {
    min-width: 760px;
  }

  .ticket-item {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .ticket-item .ticket-updated {
    text-align: right;
  }
}

@media (max-width: 767px) {
  .ticket-history-panel header,
  .ticket-panel-header {
    padding: 16px;
  }

  .ticket-history-panel .panel-body {
    overflow-x: hidden;
  }

  .ticket-history-panel .ticket-list-scroll {
    min-width: 0;
    max-height: none;
    overflow: visible;
  }

  .ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ticket-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "ticket-id ticket-status"
      "ticket-subject ticket-subject"
      "ticket-updated ticket-updated";
    align-items: start;
    gap: 10px 12px;
    padding: 14px;
  }

  .ticket-item > div,
  .ticket-item .ticket-subject,
  .ticket-item .ticket-status,
  .ticket-item .ticket-updated {
    width: auto;
    flex: 0 0 auto;
    text-align: left !important;
  }

  .ticket-item .ticket-id {
    grid-area: ticket-id;
  }

  .ticket-item .ticket-status {
    grid-area: ticket-status;
    text-align: right !important;
  }

  .ticket-item .ticket-subject {
    grid-area: ticket-subject;
  }

  .ticket-item .ticket-updated {
    grid-area: ticket-updated;
  }

  .ticket-item p {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .ticket-search-box {
    flex-direction: row;
  }

  .ticket-search-box .form-control-custom {
    border-radius: 10px 0 0 10px;
    border-right: none;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }

  .ticket-search-box button {
    width: 46px;
    border-radius: 0 10px 10px 0;
    margin-top: 0;
    font-size: 14px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .notification-settings-card .panel-body {
    padding: 16px;
  }
}

/* My Tickets UI Dark Mode */
body.dark-mode .file-upload-area,
body.dark-mode .ticket-item,
body.dark-mode .ticket-search-box .form-control-custom {
  background: #090b0e;
  border-color: #40444c;
  color: #d6d6d6;
}

body.dark-mode .create-ticket-form .ticket-dynamic-fields .control-label {
  color: #ff6b00;
}

body.dark-mode .create-ticket-form .ticket-dynamic-fields .form-control {
  background-color: #090b0e !important;
  border-color: #40444c !important;
  color: #d6d6d6 !important;
}

body.dark-mode .file-upload-area p,
body.dark-mode .ticket-item p,
body.dark-mode .ticket-item .ticket-id-value,
body.dark-mode .ticket-item .ticket-updated-value {
  color: #d6d6d6;
}

body.dark-mode .file-upload-area p span {
  color: #999;
}

body.dark-mode .file-upload-area:hover,
body.dark-mode .file-upload-area.is-drag-over {
  background: #12161c;
  border-color: #ff8a1f;
}

body.dark-mode .ticket-attachment-pill {
  background: #111820;
  border-color: #3a4a57;
  color: #d8dde3;
}

body.dark-mode .ticket-item .ticket-subject-value {
  color: #ff6b00;
}

body.dark-mode .ticket-item.unread-ticket {
  border-color: rgba(255, 138, 31, 0.75);
  background: #211910;
}

body.dark-mode .ticket-item.unread-ticket::before {
  background: #ff8a1f;
}

body.dark-mode .pagination button {
  background: #17181b;
  border-color: #3a3d43;
  color: #d6d6d6;
}

body.dark-mode .pagination button.active {
  background: #ff6b00;
  border-color: #ff6b00;
  color: #fff;
}

/* ══ TICKET DETAILS CHAT UI ══ */
.chat-support-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  overflow: hidden;
}

.chat-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.chat-message.user-message {
  flex-direction: row-reverse;
}

.chat-avatar {
  flex-shrink: 0;
}

.chat-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  border: 1px solid #e6e6e6;
  background: #f5f5f5;
}

.support-message .chat-avatar img {
  padding: 4px;
  background: #f5f5f5;
}

.chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.support-message .chat-content {
  align-items: flex-start;
}

.user-message .chat-content {
  align-items: flex-end;
}

.chat-meta {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-name {
  font-weight: 700;
  color: #ff6b00;
  font-size: 14px;
}

.chat-time {
  color: #6f665b;
  font-size: 12px;
}

.chat-bubble {
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
  width: 62%;
  display: inline-block;
}

.support-bubble {
  align-self: flex-start;
  background: #82330c;
  color: #fff;
  border-radius: 12px;
}

.user-bubble {
  align-self: flex-end;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  color: #333;
  border-radius: 12px;
}

.chat-input-area {
  position: relative;
  padding: 20px 24px 24px;
  border-top: 1px solid #e6e6e6;
}

/* File input must stay "present" for multipart submit (avoid hidden/display:none on type=file). */
.ticket-reply-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.dark-mode .chat-input-area {
  border-top-color: #40444c;
}

.chat-input-area .form-control-custom {
  width: 100%;
  border-radius: 12px;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  padding: 16px;
  resize: none;
  margin-bottom: 12px;
  min-height: 100px;
}

.chat-input-area .tickets-uploader {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-input-area .tickets-uploader .attach-btn {
  flex: none;
}

.create-ticket-form .tickets-uploader {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.create-ticket-form .tickets-uploader .attach-btn {
  flex: none;
}

.chat-actions .submit-order-btn:only-child {
  flex: 1;
  width: 100%;
}

.chat-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  align-items: center;
}

.chat-actions .tickets-uploader {
  margin-bottom: 0px;
}

.attach-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  flex: 2;
  font-size: 14px;
  transition: background 0.2s;
}

.attach-btn:hover {
  background: #e6e6e6;
}

.attach-btn i {
  color: #6f665b;
}

.chat-actions .submit-order-btn {
  flex: 1;
  margin: 0;
  border-radius: 10px;
}

/* View ticket reply action: keep submit button full width */
.chat-support-panel .chat-actions {
  grid-template-columns: 1fr;
}

.chat-support-panel .chat-actions .submit-order-btn {
  width: 100%;
}

/* Active Ticket Item */
.ticket-item.active-ticket {
  background: linear-gradient(108.21deg, #899801 8.2%, #63680d 99.2%);
  border-color: transparent;
}

.ticket-item.active-ticket p,
.ticket-item.active-ticket .ticket-id-value,
.ticket-item.active-ticket .ticket-subject-value,
.ticket-item.active-ticket .ticket-status-value,
.ticket-item.active-ticket .ticket-updated-value {
  color: #fff !important;
}

.ticket-status-value.new {
  color: #28a745;
}

/* Dark Mode Overrides for Chat */
body.dark-mode .user-bubble {
  background: #090b0e;
  border-color: #40444c;
  color: #d6d6d6;
}

body.dark-mode .chat-input-area .form-control-custom,
body.dark-mode .attach-btn {
  background: #090b0e;
  border-color: #40444c;
  color: #d6d6d6;
}

body.dark-mode .attach-btn:hover {
  background: #17181b;
}

body.dark-mode .chat-time,
body.dark-mode .attach-btn i {
  color: #999;
}

body.dark-mode .support-message .chat-avatar img {
  background: #17181b;
  border-color: #40444c;
}

/* ══ MASS ORDER UI ══ */
.mass-order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mass-order-label {
  color: #a13c0b;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.mass-order-textarea {
  width: 100%;
  border-radius: 12px;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  padding: 16px;
  resize: none;
  min-height: 350px;
}

.mass-order-submit {
  width: 100%;
  margin-top: 24px;
}

/* Mass Order Dark Mode */
body.dark-mode .mass-order-label {
  color: #ff8c42;
}

body.dark-mode .mass-order-textarea {
  background: #090b0e;
  border-color: #40444c;
  color: #d6d6d6;
}

/* ══ CHILD PANEL UI ══ */
.instruction-box {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e6e6e6;
  margin-bottom: 24px;
}

.instruction-box p:first-child {
  color: #ff6b00;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}

.instruction-box p {
  color: #6f665b;
  font-weight: 600;
  margin: 0;
}

.instruction-content {
  color: #6f665b;
  font-size: 14px;
  font-weight: 400;
  /* Regular */
  line-height: 1.6;
}

.instruction-content h6 {
  color: #ff6b00;
  font-weight: 600;
  /* Semi Bold */
  margin-bottom: 12px;
  font-size: 16px;
}

.instruction-content p {
  margin-bottom: 16px;
}

.instruction-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.instruction-content ul li {
  margin-bottom: 8px;
}

.child-panel-label {
  color: #a13c0b;
  font-weight: 600;
}

/* Child Panel Dark Mode */
body.dark-mode .instruction-box {
  background: #090b0e;
  border-color: #40444c;
}

body.dark-mode .instruction-box p {
  color: #d6d6d6;
}

body.dark-mode .instruction-content {
  color: #aaa;
}

body.dark-mode .child-panel-label {
  color: #ff8c42;
}

body.dark-mode .form-control-custom[readonly] {
  background: #090b0e !important;
}

/* Page Specific Grid Fix */
.child-panel-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 12px;
  align-items: flex-start;
  /* This ensures cards don't stretch to same height */
}

@media (max-width: 1100px) {
  .child-panel-grid {
    grid-template-columns: 1fr;
  }
}

/* ══ AFFILIATES UI ══ */
.affiliate-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.affiliate-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  gap: 20px;
}

.affiliate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.affiliate-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.affiliate-label {
  font-size: 14px;
  color: #535353;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #f5f5f5;
  border-radius: 6px;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e6e6e6;
}

.copy-btn:hover {
  background: #fff;
  border-color: #ff6b00;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.1);
}

.copy-btn iconify-icon {
  color: #ff6b00;
  font-size: 16px;
}

.affiliate-value {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, #d87f16 0%, #ff6b00 50.48%, #82330c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-all;
  display: flex;
  align-items: center;
}

.affiliate-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliate-table-panel {
  margin-top: 24px;
}

.affiliate-table-panel .panel-body {
  padding: 24px;
}

.affiliate-history-table {
  margin-bottom: 0;
}

.affiliate-history-table thead th {
  border-bottom: 1px solid #e6e6e6;
  color: #1f1f1f;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.affiliate-history-table tbody td {
  color: #6f665b;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
  border-color: #eeeeee;
}

.affiliate-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.affiliate-status.completed {
  color: #157347;
  background: rgba(21, 115, 71, 0.12);
}

.affiliate-status.pending {
  color: #b26b00;
  background: rgba(255, 166, 0, 0.18);
}

.affiliate-status.cancelled {
  color: #b42318;
  background: rgba(180, 35, 24, 0.12);
}

.affiliate-pagination {
  justify-content: flex-end;
}

.affiliate-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.affiliate-request-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(
    108.21deg,
    #ff6b00 8.2%,
    #cc4d02 53.43%,
    #a13c0b 99.2%
  );
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.affiliate-request-btn:hover {
  color: #fff;
  opacity: 0.92;
}

.affiliate-history-empty {
  text-align: center;
  padding: 20px !important;
  color: #8b847a !important;
  font-weight: 600 !important;
}

/* Affiliate Dark Mode */
body.dark-mode .affiliate-card {
  background: #090b0e;
  border-color: #40444c;
}

body.dark-mode .affiliate-label,
body.dark-mode .copy-btn {
  color: #aaa;
}

body.dark-mode .copy-btn {
  background: #17181b;
  border-color: #40444c;
}

body.dark-mode .copy-btn:hover {
  border-color: #ff6b00;
  background: #090b0e;
}

body.dark-mode .affiliate-value {
  color: #ff8c42;
}

body.dark-mode .affiliate-history-table thead th {
  color: #d6d6d6;
  border-color: #40444c;
}

body.dark-mode .affiliate-history-table tbody td {
  color: #b9b9b9;
  border-color: #40444c;
}

body.dark-mode .affiliate-history-empty {
  color: #a7a7a7 !important;
}

@media (max-width: 1200px) {
  .affiliate-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .affiliate-stats-grid {
    grid-template-columns: 1fr;
  }

  .affiliate-table-panel .panel-body {
    padding: 16px;
  }

  .affiliate-pagination {
    justify-content: center;
  }

  .affiliate-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══ GIVEAWAY UI ══ */
.giveaway-tasks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.giveaway-task-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.task-logo img {
  height: 40px;
  object-fit: contain;
}

.task-logo--reddit {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-logo--reddit i {
  font-size: 42px;
  line-height: 1;
  color: #ff4500;
}

.task-desc {
  font-size: 13px;
  color: #6f665b;
  margin-bottom: 0;
}

.task-reward {
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(90deg, #d87f16 0%, #ff6b00 50.48%, #82330c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.details-body {
  padding: 40px;
}

@media (max-width: 767px) {
  .details-body {
    padding: 20px;
  }

  .dash-metrics-row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
  }
}

.details-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
  background: #f5f5f5;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
}

@media (max-width: 767px) {
  .details-content {
    padding: 20px;
  }
}

.details-image {
  text-align: center;
}

.details-image img {
  max-width: 100%;
}

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

.rules-list li {
  font-size: 14px;
  color: #6f665b;
  margin-bottom: 12px;
  position: relative;
  padding-left: 15px;
  font-weight: 400;
}

.rules-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #535353;
}

.participation-section {
  background: #fdf5f0;
  border-radius: 16px;
  border: 1px solid #ff6b00;
  margin-top: 24px;
  padding: 40px;
  text-align: center;
}

@media (max-width: 767px) {
  .participation-section {
    padding: 20px;
  }
}

.participation-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

body.dark-mode .participation-title {
  color: #fff;
}

.participation-title span {
  background: linear-gradient(90deg, #d87f16 0%, #ff6b00 50.48%, #82330c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.participation-subtitle {
  color: #6f665b;
  font-size: 15px;
  margin-bottom: 40px;
}

/* Participation Stepper (User Provided) */
.participation-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 0;
  width: 100%;
  box-sizing: border-box;
}

.step-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  border: 2.5px solid #ff6b00;
  color: #ff6b00;
  background: #fdf5f0;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

@media (max-width: 767px) {
  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .connector {
    top: 15px !important;
  }
}

.step-circle.active {
  background: #ff6b00;
  color: #fff;
  border-color: #ff6b00;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

.step-label {
  margin-top: 12px;
  text-align: center;
}

.step-label .title {
  font-size: 15px;
  font-weight: 700;
  color: #ff6b00;
  margin-bottom: 4px;
}

.step-label .sub {
  font-size: 14px;
  color: #1a1a1a;
}

.connector {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #ff6b00;
  z-index: 1;
}

.step-wrap:last-child .connector {
  display: none;
}

/* Dark Mode Overrides */
body.dark-mode .step-circle {
  background: #090b0e;
}

body.dark-mode .step-circle.active {
  background: #ff6b00;
}

body.dark-mode .step-label .sub {
  color: #aaa;
}

.giveaway-task-card .submit-order-btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
  height: auto;
}

/* Dark Mode */
body.dark-mode .giveaway-task-card {
  background: #090b0e;
  border-color: #40444c;
}

body.dark-mode .participation-section {
  background: #111418;
  border-color: #40444c;
}

body.dark-mode .task-desc,
body.dark-mode .rules-list li,
body.dark-mode .participation-subtitle {
  color: #aaa;
}

@media (max-width: 1200px) {
  .giveaway-tasks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .details-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .giveaway-tasks-grid {
    grid-template-columns: 1fr;
  }
}

/* Giveaway Cleanup */
.rules-heading {
  color: #ff6b00;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 24px;
}

.rules-intro {
  font-size: 14px;
  color: #6f665b;
  margin-bottom: 12px;
  font-weight: 400;
}

.brand-text-orange {
  color: #ff6b00;
  font-weight: 600;
}

/* Dark Mode Overrides */
body.dark-mode .rules-heading {
  color: #ff6b00;
}

body.dark-mode .rules-list li::before {
  color: #aaa;
}

body.dark-mode .rules-intro {
  color: #aaa;
}

body.dark-mode .rules-intro {
  color: #aaa;
}

/* ══ API UI ══ */
.api-section {
  background: transparent;
  margin-top: 24px;
  border: 0;
}

.api-details-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.api-code-section {
  background: #fff;
  border: 1px solid #e6e6e6;
}

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

.api-label-block,
.api-value-block {
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  /* display: flex;
    align-items: center; */
  color: #1a1a1a;
}

.api-label-block {
  font-size: 16px;
  background: #fff;
  color: #a13c0b;
  font-weight: 600;
}

.api-value-block {
  background: #f5f5f5;
  word-break: break-all;
}

.api-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.api-table-head {
  background: #82330c;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
}

.api-code-block {
  font-size: 14px;
  color: #82330c;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
}

.api-action-select {
  padding: 24px 24px 0 24px;
  max-width: 400px;
}

.api-value-block a {
  color: #ff6b00;
  text-decoration: none;
  margin: 0 4px;
}

.api-value-block a:hover {
  text-decoration: underline;
}

/* API Dark Mode */
body.dark-mode .api-label-block {
  background: #1a1a1a;
  color: #ff6b00;
  border: 1px solid #40444c;
}

body.dark-mode .api-value-block {
  background: #090b0e;
  color: #aaa;
  border: 1px solid #40444c;
}

body.dark-mode .api-table-head {
  background: #82330c;
  border: 1px solid #40444c;
}

body.dark-mode .api-code-block {
  color: #ff6b00;
}

body.dark-mode .api-value-block a {
  color: #ff6b00;
}

@media (max-width: 768px) {
  .api-row,
  .api-table-header {
    grid-template-columns: 0.9fr 1.1fr;
    min-width: 0;
    gap: 8px;
  }

  .api-details-grid {
    padding: 12px;
    gap: 8px;
    overflow-x: hidden;
  }

  .details-body {
    padding: 12px;
  }

  .details-content {
    gap: 10px;
    padding: 12px;
  }

  .api-label-block,
  .api-value-block,
  .api-table-head {
    padding: 10px 9px;
    font-size: 10px;
    border-radius: 10px;
    line-height: 1.35;
  }

  .api-label-block,
  .api-table-head {
    font-size: 11px;
  }

  .api-code-block {
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
  }

  .api-action-select {
    max-width: 100%;
    padding: 12px 12px 0;
  }
}

.sidebar-overlay {
  z-index: 1024;
}

@media (max-width: 767px) {
  .field-block .form-control-custom,
  .field-block .new-order-control,
  .my-orders-search,
  .detail-block div {
    min-height: 40px;
  }

  .panel-card header {
    min-height: 50px;
    padding: 10px 12px;
  }

  .panel-card header h5,
  .panel-card .ticket-panel-header h3,
  .affiliate-value {
    font-size: 18px;
  }

  .dash-status-vip-label {
    font-size: 18px;
  }
}

/* ══ Account metrics modal (VIP badge + sidebar user-card .badge-icon) ══ */
.dash-status-vip-badge.js-dash-metrics-trigger,
.user-card .badge-icon {
  cursor: pointer;
}

.dash-metrics-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.dash-metrics-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.dash-metrics-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.dash-metrics-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 24px), 1080px);
  max-height: min(94vh, 880px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid #e6e6e6;
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}

.dash-metrics-modal.is-open .dash-metrics-modal-dialog {
  transform: translateY(0) scale(1);
}

.dash-metrics-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e6e6e6;
  background: linear-gradient(
    92deg,
    #a13c0b 8.2%,
    #cc4d02 53.43%,
    #ff6b00 99.2%
  );
}

.dash-metrics-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.dash-metrics-modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-metrics-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.dash-metrics-modal-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 12px 14px;
  -webkit-overflow-scrolling: touch;
}

.dash-metrics-modal-levels-only {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.dash-metrics-modal-body .dash-metrics-row.table-responsive {
  margin-top: 0;
  max-width: 100%;
  min-width: 0;
}

/* Levels grid: keep horizontal scroll inside the strip only; compact sizing so less scroll overall */
.dash-metrics-modal-body .dash-levels-container {
  gap: 8px;
  padding: 14px 2px 12px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dash-metrics-modal-body .dash-level-card {
  min-width: 104px;
  flex: 0 0 auto;
  padding: 6px;
  border-radius: 12px;
}

.dash-metrics-modal-body .dash-level-features {
  min-width: min(168px, 42vw);
  max-width: 200px;
}

.dash-metrics-modal-body .dash-level-header {
  height: auto;
  min-height: 76px;
  padding: 10px 6px;
  gap: 4px;
}

.dash-metrics-modal-body .dash-level-features .dash-level-header {
  height: auto;
  min-height: 76px;
  padding: 10px 12px;
  margin-bottom: 6px;
}

.dash-metrics-modal-body .dash-level-title {
  font-size: 1rem;
}

.dash-metrics-modal-body .dash-level-name {
  font-size: 0.82rem;
}

.dash-metrics-modal-body
  .dash-level-card.dash-level-card--current:not(.dash-level-features) {
  padding-top: 14px;
}

.dash-metrics-modal-body .dash-level-card-current-cap-label {
  font-size: 8px;
  padding: 3px 8px;
}

.dash-metrics-modal-body .dash-level-price {
  font-size: 14px;
}

.dash-metrics-modal-body .dash-level-bonus {
  font-size: 0.68rem;
}

.dash-metrics-modal-body .dash-level-row {
  height: 46px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.dash-metrics-modal-body .dash-level-features .dash-level-row {
  height: 46px;
  padding-left: 10px;
  padding-right: 8px;
  font-size: 0.7rem;
  line-height: 1.25;
}

.dash-metrics-modal-body .dash-level-row:not(:last-child)::after {
  left: 8px;
  right: 8px;
}

.dash-metrics-modal-body
  .dash-level-features
  .dash-level-row:not(:last-child)::after {
  left: 10px;
  right: 10px;
}

.dash-metrics-modal-body .dash-level-badge {
  max-width: 36px !important;
  max-height: 36px !important;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dash-metrics-modal-body .dash-level-badge-box {
  width: 40px;
  height: 40px;
  right: 10px;
}

.dash-metrics-modal-body .dash-level-row img.fluid-image {
  max-width: 20px;
  max-height: 20px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dash-metrics-modal-body .dash-level-name-wrap {
  gap: 6px;
}

.dash-metrics-modal-empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #6f665b;
  font-size: 15px;
  line-height: 1.5;
}

.dash-metrics-modal-empty a {
  color: #ff6b00;
  font-weight: 600;
}

body.dark-mode .dash-metrics-modal-dialog {
  background: #12161c;
  border-color: #40444c;
}

body.dark-mode .dash-metrics-modal-header {
  border-bottom-color: #40444c;
}

body.dark-mode .dash-metrics-modal-body {
  background: #12161c;
}

body.dark-mode .dash-metrics-modal-close {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.dark-mode .dash-metrics-modal-empty {
  color: #d6d6d6;
}

body.dark-mode .dash-metrics-modal-empty a {
  color: #ff6b00;
}

@media (max-width: 520px) {
  .dash-metrics-modal {
    padding: 10px;
    align-items: flex-end;
  }

  .dash-metrics-modal-dialog {
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    width: 100%;
  }

  .dash-metrics-modal-body .dash-level-card {
    min-width: 92px;
  }

  .dash-metrics-modal-body .dash-level-features {
    min-width: 132px;
    max-width: min(160px, 48vw);
  }

  .dash-metrics-modal-body .dash-level-row {
    height: 42px;
    font-size: 0.68rem;
  }

  .dash-metrics-modal-body .dash-level-features .dash-level-row {
    height: 42px;
    font-size: 0.65rem;
  }
}

/* ══ Giveaway — Learn More task modal ══ */
.giveaway-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 3900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.giveaway-detail-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.giveaway-detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.giveaway-detail-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.giveaway-detail-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #ececec;
  background: #fafafa;
}

.giveaway-detail-modal__header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.giveaway-detail-modal__icon-slot {
  flex-shrink: 0;
}

.giveaway-detail-modal__icon-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.35rem;
}

.giveaway-detail-modal__bar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #5c574f;
  line-height: 1.25;
}

.giveaway-detail-modal__close {
  border: none;
  background: #ececec;
  color: #555;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.giveaway-detail-modal__close:hover {
  background: #e0e0e0;
  color: #222;
}

.giveaway-detail-modal__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.giveaway-detail-modal__headline {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f1f1f;
  letter-spacing: -0.02em;
}

.giveaway-detail-modal__section {
  margin-bottom: 18px;
}

.giveaway-detail-modal__section:last-of-type {
  margin-bottom: 12px;
}

.giveaway-detail-modal__section-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
}

.giveaway-detail-modal__list {
  margin: 0;
  padding-left: 1.15rem;
  color: #6f665b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.giveaway-detail-modal__list li {
  margin-bottom: 8px;
}

.giveaway-detail-modal__list li:last-child {
  margin-bottom: 0;
}

.giveaway-detail-modal__footnote {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #7a746c;
}

.giveaway-detail-modal__footnote:last-child {
  margin-bottom: 0;
}

.giveaway-detail-modal__footnotes {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed #e6e6e6;
}

.giveaway-detail-modal .giveaway-link {
  color: #2e7d32;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.giveaway-detail-modal .giveaway-link:hover {
  color: #1b5e20;
}

.giveaway-detail-modal__footer {
  flex-shrink: 0;
  padding: 14px 16px 18px;
  border-top: 1px solid #ececec;
  background: #fafafa;
}

.giveaway-detail-modal__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(108.21deg, #899801 8.2%, #63680d 99.2%);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.giveaway-detail-modal__cta:hover {
  background: linear-gradient(108.21deg, #899801 8.2%, #63680d 99.2%);
  color: #fff !important;
}

body.dark-mode .giveaway-detail-modal__dialog {
  background: #12161c;
  border-color: #40444c;
}

body.dark-mode .giveaway-detail-modal__header,
body.dark-mode .giveaway-detail-modal__footer {
  background: #171b22;
  border-color: #40444c;
}

body.dark-mode .giveaway-detail-modal__bar-title {
  color: #e8e8e8;
}

body.dark-mode .giveaway-detail-modal__close {
  background: #2a3038;
  color: #ccc;
}

body.dark-mode .giveaway-detail-modal__close:hover {
  background: #363d47;
  color: #fff;
}

body.dark-mode .giveaway-detail-modal__headline {
  color: #f0f0f0;
}

body.dark-mode .giveaway-detail-modal__section-title {
  color: #eee;
}

body.dark-mode .giveaway-detail-modal__list {
  color: #c4beb6;
}

body.dark-mode .giveaway-detail-modal__footnote {
  color: #9a938a;
}

body.dark-mode .giveaway-detail-modal__footnotes {
  border-top-color: #40444c;
}

body.dark-mode .giveaway-detail-modal .giveaway-link {
  color: #81c784;
}

body.dark-mode .giveaway-detail-modal .giveaway-link:hover {
  color: #a5d6a7;
}

body.dark-mode .giveaway-detail-modal__cta {
  background: linear-gradient(108.21deg, #899801 8.2%, #63680d 99.2%);
}

body.dark-mode .giveaway-detail-modal__cta:hover {
  background: linear-gradient(108.21deg, #899801 8.2%, #63680d 99.2%);
}

@media (max-width: 520px) {
  .giveaway-detail-modal {
    padding: 10px;
    align-items: flex-end;
  }

  .giveaway-detail-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  .giveaway-detail-modal__body {
    padding: 16px 14px 12px;
  }
}

/* Select 2 Css Modifying */
.select2-selection__id,
.select2-selection__id-1,
.select2-selection__id-2,
.select2-selection__id-3,
.select2-selection__id-4 {
  background: var(--primary-color) !important;
}

.select2-container--default .select2-selection--single,
.select2-container .select2-selection--single {
  display: flex !important;
  align-items: center !important;
}

.select2-selection__id.badge,
.select2-container .select2-results__option a,
.select2-container .select2-selection__text,
.select2-container .select2-selection__text {
  font-size: 14px;
}

.new-order-ui .select2-selection__id.badge {
  font-size: 13px;
}

.select2-results__option {
  border-bottom: 1px solid #ddd;
  padding: 6px 0px;
}

/* .tickets-uploader #uploader-button {
  display: flex !important;
  width: 100%;
  flex-direction: column !important;
  padding: 30px 10px !important;
  justify-content: center !important;
  border: 1px solid #ece3d4 !important;
  background: #f5f5f5 !important;
  border-radius: 10px;
} */

.tickets-uploader--reply #uploader-button {
  flex-direction: row !important;
  justify-content: start !important;
  padding: 10px 5px !important;
}

.dark-mode .tickets-uploader #uploader-button {
  /* border: 1px solid #676767 !important;
  background: #0b0b0e !important; */
  color: #fff !important;
}

.tickets-uploader #uploader-button a {
  font-family: 30px;
}

/* ══ NOTIFICATION ACTION CARDS (confirm email / Telegram) ══ */
.notification-settings-ui .notification-action-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .notification-settings-ui .notification-action-cards--two {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.notification-settings-ui .notification-action-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e6e6e6;
  background: #fff;
  min-height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.notification-settings-ui .notification-action-card__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
}

.notification-settings-ui .notification-action-card__blob--tr {
  width: 180px;
  height: 180px;
  top: -72px;
  right: -32px;
  background: rgba(255, 107, 0, 0.18);
}

.notification-settings-ui .notification-action-card__blob--bl {
  width: 112px;
  height: 112px;
  bottom: -40px;
  left: -24px;
  background: rgba(255, 107, 0, 0.1);
}

.notification-settings-ui .notification-action-card__body {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 24px 32px;
}

.notification-settings-ui .notification-action-card__visual {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
}

.notification-settings-ui .notification-action-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notification-settings-ui .notification-action-card__title {
  margin: 18px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f1f1f;
}

.notification-settings-ui .notification-action-card__text {
  margin: 14px auto 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.65;
  color: #6f665b;
}

.notification-settings-ui .notification-action-card-alert {
  margin-top: 14px;
  font-size: 13px;
}

.notification-settings-ui .notification-action-card-form {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.notification-settings-ui .notification-action-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding-left: 28px;
  padding-right: 28px;
  width: auto;
}

body.dark-mode .notification-settings-ui .notification-action-card {
  background: #17181b;
  border-color: #3a3d43;
  box-shadow: none;
}

body.dark-mode .notification-settings-ui .notification-action-card__title {
  color: #f0f0f0;
}

body.dark-mode .notification-settings-ui .notification-action-card__text {
  color: #b9b9b9;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b{
    display: none;
}

@media only screen and (max-width: 550px) {
  .my-updates-table-card .update-service-cell{
    max-width: 300px;
  }
  .order-id-cell{
    min-width: 90px;
  }
}