/* ===== Link Tash - CUSTOM CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
  --primary: #fc7e06;
  --primary-dark: #e06800;
  --primary-light: #fff3e6;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --border: #e8edf2;
  --text: #0d1b2a;
  --text-muted: #5a6a7a;
  --text-light: #94a3b8;
  --sidebar-w: 80px;
  --admin-sidebar-w: 260px;
  --panel-w: 320px;
  --blue: #3b82f6;
  --orange: #fc7e06;
  --purple: #8b5cf6;
  --green: #22c55e;
  --red: #ef4444;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-green: 0 8px 20px -4px rgba(252, 126, 6, 0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: all .22s cubic-bezier(0.4, 0, 0.2, 1);
  --primary-gradient: linear-gradient(135deg, #ff9a2e 0%, #fc7e06 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased
}

a {
  text-decoration: none;
  color: inherit
}

input,
select,
textarea,
button {
  font-family: inherit
}

img {
  max-width: 100%;
  display: block
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 5px;
  height: 5px
}

::-webkit-scrollbar-track {
  background: transparent
}

::-webkit-scrollbar-thumb {
  background: #d1d9e0;
  border-radius: 9px;
  border: 1px solid transparent
}

::-webkit-scrollbar-thumb:hover {
  background: #a0adb8
}

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden
}

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px
}

/* ===== CLIENT SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  border-right: 1px solid var(--border);
  transition: width .3s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}

.sidebar:hover {
  width: 240px;
  box-shadow: 4px 0 40px rgba(0, 0, 0, .4);
}

.sidebar-logo {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 28px;
  cursor: pointer;
  gap: 14px;
  overflow: hidden;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #fff8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #ffeedb;
}

.logo-icon i {
  color: var(--primary);
  font-size: 17px;
  font-weight: 900;
}

.logo-text {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  opacity: 0;
  transition: opacity .2s;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.sidebar:hover .logo-text {
  opacity: 1;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  width: 100%;
  padding: 0 10px;
}

.nav-item {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  gap: 14px;
  color: #64748b;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.nav-item:hover {
  background: #f8fafc;
  color: var(--primary);
}

.nav-item.active {
  background: #fff8f0;
  color: var(--primary);
}

.nav-item.active i {
  color: #fc7e06;
}

.nav-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  transition: color .2s;
}

.nav-text {
  opacity: 0;
  transition: opacity .2s;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar:hover .nav-text {
  opacity: 1;
}

.nav-badge {
  position: absolute;
  top: 50%;
  left: 36px;
  transform: translateY(-50%);
  background: #19c722;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all .3s;
}

.sidebar:hover .nav-badge {
  left: auto;
  right: 16px;
  transform: translateY(-50%);
}

.sidebar-bottom {
  padding: 0 10px;
  width: 100%;
  margin-top: 8px;
}

.logout-btn {
  color: #ef4444 !important;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}


/* Offset for sidebar */
.has-sidebar {
  margin-left: var(--sidebar-w)
}

.has-admin-sidebar {
  margin-left: var(--admin-sidebar-w)
}

/* ===== TOP HEADER ===== */
.top-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  padding: 0 24px;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px
}

.header-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition)
}

.header-btn:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.header-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 600
}

.header-btn.primary:hover {
  background: var(--primary-dark)
}

.wallet-badge {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #09090B;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0
}

.avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  overflow: hidden
}

.avatar-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 126, 6, .2)
}

/* Dropdown */
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s ease;
  pointer-events: none
}

.avatar-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all
}

.avatar-dd-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px
}

.avatar-dd-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden
}

.avatar-dd-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0
}

.avatar-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer
}

.avatar-dd-item:hover {
  background: #f8fafc;
  color: var(--primary-dark)
}

.avatar-dd-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px
}

.avatar-dd-logout {
  color: #dc2626 !important
}

.avatar-dd-logout i {
  color: #ef4444 !important
}

.avatar-dd-logout:hover {
  background: #fef2f2 !important
}

.cart-btn {
  position: relative
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #19C722;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 8px rgba(25, 199, 34, 0.3);
  z-index: 10;
  animation: bnBadgePulse 2s infinite;
}

.cart-count::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #19C722;
  animation: bnBadgePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #fafcfb 0%, #ffffff 100%);
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.1px
}

.card-body {
  padding: 22px
}

/* ===== FILTER SECTION ===== */
.filter-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow)
}

.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px
}

.search-input-wrap {
  flex: 1;
  position: relative
}

.search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light)
}

.search-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  background: #fff
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 126, 6, .15)
}

.search-btn {
  background: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px)
}

.filter-row {
  display: grid;
  gap: 10px;
  margin-bottom: 12px
}

.filter-row-5 {
  grid-template-columns: repeat(5, 1fr)
}

.filter-row-4 {
  grid-template-columns: repeat(4, 1fr)
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: var(--transition);
  cursor: pointer
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 126, 6, .15)
}

.metric-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px
}

.metric-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.metric-box:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.metric-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px
}

.metric-box-icon {
  font-size: 16px
}

.metric-box-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px
}

.metric-box-subtitle {
  font-size: 10px;
  color: var(--text-light);
  display: block;
  margin-top: 1px
}

.metric-inputs {
  display: flex;
  gap: 6px
}

.metric-input-wrap {
  flex: 1
}

.metric-input-wrap label {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
  display: block;
  margin-bottom: 3px
}

.metric-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  color: var(--text);
  outline: none;
  transition: var(--transition)
}

.metric-input:focus {
  border-color: var(--primary)
}

/* Advanced Filters */
.advanced-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 9px 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
  margin-bottom: 8px
}

.advanced-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(252, 126, 6, .06)
}

.advanced-filters {
  display: none;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fafbfc;
  margin-bottom: 12px
}

.advanced-filters.show {
  display: block
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px
}

.advanced-dropdowns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.advanced-dropdowns .filter-select {
  flex: 1;
  min-width: 160px
}

.filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px
}

.btn {
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(252, 126, 6, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-outline {
  background: #fff;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f8fafc;
}

.btn-danger {
  background: #fff;
  color: var(--red);
  border: 1.5px solid #fecaca
}

.btn-danger:hover {
  background: #fef2f2
}

.btn-sm {
  padding: 5px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 30px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center
}

/* ===== TABS ===== */
.tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap
}

.tab {
  padding: 8px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.tab:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff
}

.tab-count {
  background: rgba(0, 0, 0, .1);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 11px
}

.tab.active .tab-count {
  background: rgba(0, 0, 0, .15)
}

.tab-manage {
  margin-left: auto;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-muted)
}

.tab-manage:hover {
  border-color: var(--blue);
  color: var(--blue)
}

/* ===== DATA TABLE ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px
}

thead tr {
  background: linear-gradient(180deg, #f8faf9 0%, #f4f7f6 100%);
  border-bottom: 2px solid var(--border);
}

th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  white-space: nowrap;
}

td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--text);
}

tr:last-child td {
  border-bottom: none
}

tbody tr {
  transition: background 0.18s ease;
}

tbody tr:hover td {
  background: #f8fafc;
}

.sr-no {
  color: var(--text-light);
  font-weight: 600;
  font-size: 12px
}

/* Table badges */
.badge-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1
}

.badge-blue {
  background: #dbeafe;
  color: #1d4ed8
}

.badge-orange {
  background: #ffedd5;
  color: #c2410c
}

.badge-purple {
  background: #ede9fe;
  color: #6d28d9
}

.badge-green {
  background: #f1f5f9;
  color: #09090B
}

.badge-gray {
  background: #f1f5f9;
  color: #475569
}

.pill {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px
}

.pill-blue {
  background: #dbeafe;
  color: #1d4ed8
}

.pill-green {
  background: #f1f5f9;
  color: #09090B
}

.pill-red {
  background: #fee2e2;
  color: #dc2626
}

.pill-orange {
  background: #ffedd5;
  color: #c2410c
}

.pill-purple {
  background: #ede9fe;
  color: #6d28d9
}

.pill-gray {
  background: #f1f5f9;
  color: #475569
}

.site-link {
  color: var(--blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px
}

.site-link:hover {
  color: #1d4ed8
}

.country-cell {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.country-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px
}

.price-cell {
  color: #09090B;
  font-weight: 700;
  font-size: 13px
}

.cart-add-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
  box-shadow: var(--shadow-green);
}

.cart-add-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.1);
  box-shadow: 0 6px 16px -4px rgba(9, 9, 11, 0.5);
}

.cart-add-btn.added {
  background: #f1f5f9;
  color: #09090B;
  box-shadow: none;
}

/* ===== CUTE REMOVE POPUP ===== */
.remove-btn-wrapper {
  position: relative;
  display: inline-block;
}

.btn-remove-cart:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  transform: translateY(-1px);
}

.remove-popup-gif {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 50%;
  transform: translateX(50%) translateY(10px) scale(0.95);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  pointer-events: none;
}

.remove-popup-gif img {
  width: 90px;
  min-width: 90px;
  max-width: none;
  height: auto;
  border-radius: 8px;
  display: block;
  mix-blend-mode: multiply;
}

.remove-btn-wrapper:hover .remove-popup-gif {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0) scale(1);
}

/* ===== CUTE CHECKOUT POPUP ===== */
.checkout-popup-gif {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%) translateY(10px) scale(0.95);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  pointer-events: none;
}

.checkout-popup-gif img {
  width: 90px;
  min-width: 90px;
  max-width: none;
  height: auto;
  border-radius: 10px;
  display: block;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.checkout-btn-wrapper:hover .checkout-popup-gif {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0) scale(1);
}

/* ===== BUBU CRYING OVERLAY ===== */
.bubu-crying-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bubu-crying-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bubu-crying-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 60px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: scale(0.8) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.bubu-crying-overlay.active .bubu-crying-content {
  transform: scale(1) translateY(0);
}

.bubu-crying-content img {
  width: 150px;
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

.bubu-crying-text {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bubu-crying-text::after {
  content: 'Processing request...';
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0;
}


/* ===== PAGINATION ===== */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 10px;
  flex-wrap: wrap;
  gap: 16px;
}

.show-entries {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
}

.premium-dropdown {
  position: relative;
  user-select: none;
  min-width: 65px;
}

.pd-trigger {
  padding: 8px 12px 8px 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pd-trigger i {
  font-size: 11px;
  color: #475569;
  transition: transform 0.2s;
}

.pd-trigger:hover {
  border-color: #94a3b8;
}

.pd-trigger.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 126, 6, 0.15);
}

.pd-trigger.active i {
  transform: rotate(180deg);
}

.pd-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  min-width: 100%;
}

.pd-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pd-item {
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.pd-item:hover {
  background: #fff8f0;
  color: var(--primary);
}

.pd-item.active {
  background: var(--primary);
  color: #ffffff;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.page-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(252, 126, 6, 0.3);
  transform: translateY(-1px);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* ===== RIGHT PANEL ===== */
.project-panel {
  width: var(--panel-w);
  background: linear-gradient(160deg, #1e3a5f 0%, #0f2040 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
  max-height: 360px
}

.panel-icon {
  width: 72px;
  height: 72px;
  background: rgba(9, 9, 11, .15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(9, 9, 11, .3)
}

.panel-icon i {
  font-size: 32px;
  color: var(--primary)
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff
}

.panel-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6
}

.panel-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none
}

.panel-btn-primary {
  background: var(--primary);
  color: #ffffff
}

.panel-btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px)
}

.panel-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .25)
}

.panel-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .05)
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px)
}

.modal-overlay.open {
  display: flex
}

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  max-width: 560px;
  width: calc(100% - 48px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .15);
  animation: modalIn .25s ease
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.95) translateY(8px)
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0)
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px
}

.modal-title {
  font-size: 18px;
  font-weight: 800
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition)
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text)
}

.columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px
}

.col-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: var(--transition)
}

.col-check-item:hover {
  border-color: var(--primary);
  background: #fafff0
}

.col-check-item input[type=checkbox] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer
}

.col-check-item label {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer
}

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 60%, #0c1a2e 100%);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .04);
  box-shadow: 6px 0 32px rgba(0, 0, 0, .22);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.admin-sidebar-header {
  padding: 22px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  margin-bottom: 8px;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(9, 9, 11, 0.5);
}

.admin-logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 10.5px;
  color: #475569;
  font-weight: 500;
  margin-top: 1px;
}

.admin-nav {
  flex: 1;
  padding: 8px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: none;
}

.admin-nav::-webkit-scrollbar {
  display: none;
}

.admin-nav-section {
  font-size: 9.5px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 10px 6px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 11px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  transition: all .18s ease;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #cbd5e1;
  transform: translateX(2px);
}

.admin-nav-item.active {
  background: rgba(9, 9, 11, .12);
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}

.admin-nav-item.active i {
  color: var(--primary);
}

.admin-nav-item i {
  font-size: 15px;
  width: 18px;
  flex-shrink: 0;
  text-align: center;
}

.admin-nav-item span.nav-label {
  flex: 1;
}

.admin-nav-item .badge {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, .08);
  color: #94a3b8;
  margin-left: auto;
  flex-shrink: 0;
}

.admin-nav-item .badge.accent {
  background: rgba(9, 9, 11, .15);
  color: var(--primary);
}

.admin-sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(9, 9, 11, 0.4);
}

.admin-user-details {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-email {
  display: block;
  font-size: 10.5px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-logout {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(239, 68, 68, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
  transition: var(--transition);
}

.admin-logout:hover {
  background: rgba(239, 68, 68, .22);
}

/* Mobile admin sidebar toggle */
.admin-sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .1);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  transition: var(--transition);
}

.admin-sidebar-toggle:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ===== ADMIN CONTENT ===== */
.admin-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #edf2f7;
  border-top: 3px solid var(--primary);
  padding: 0 28px;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  backdrop-filter: blur(12px);
  gap: 12px;
}

.admin-header-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-header-title i {
  color: var(--primary);
  font-size: 16px;
  margin-right: 2px;
}

.admin-page-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  background: #f2f6f4;
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  border: none;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity .25s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #0d1b2a;
  letter-spacing: -1.5px;
  line-height: 1;
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-up {
  color: #09090B;
}

.stat-down {
  color: #dc2626;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(245, 158, 11, .25)
}

.welcome-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px
}

.welcome-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, .8)
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 7px;
  letter-spacing: .2px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  color: #0d1b2a;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  background: #fafbfc;
  line-height: 1.5;
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.15);
}

.form-control:hover:not(:focus) {
  border-color: #cbd5e1;
}

.form-control.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.form-hint {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 5px;
  line-height: 1.4;
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ===== ORDER STEPS ===== */
.order-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  position: relative
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  z-index: 1
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition)
}

.step.active .step-circle,
.step.done .step-circle {
  background: var(--primary-gradient);
  color: #ffffff
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap
}

.step.active .step-label {
  color: var(--text);
  font-weight: 700
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin-top: -20px;
  position: relative;
  z-index: 0
}

.step-line.done {
  background: var(--primary)
}



/* ===== ALERT / TOAST ===== */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #ffffff;
  color: #0f172a;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 700;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  animation: toastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  border: 1px solid #e2e8f0;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.success .toast-icon {
  color: #19c722;
  font-size: 20px;
}

.toast.error .toast-icon {
  color: #ef4444;
  font-size: 20px;
}

/* ===== WEBSITES GRID ===== */
.websites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px
}

.website-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow)
}

.website-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary)
}

.website-card-domain {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 4px
}

.website-card-cat {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px
}

.website-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px
}

.metric-item {
  text-align: center;
  padding: 8px;
  background: #f8fafc;
  border-radius: 8px
}

.metric-item-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text)
}

.metric-item-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase
}

.website-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.website-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #09090B
}

/* ===== CHECKOUT ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px
}

.checkout-steps {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px
}

.checkout-step {
  flex: 1;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted)
}

.checkout-step:last-child {
  border-right: none
}

.checkout-step.active {
  background: rgba(9, 9, 11, .08);
  color: var(--text)
}

.checkout-step.done {
  color: var(--green)
}

.checkout-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0
}

.checkout-step.active .checkout-step-num {
  background: var(--primary);
  color: #ffffff
}

.checkout-step.done .checkout-step-num {
  background: var(--green);
  color: #fff
}

/* ===== ORDER PAGE ===== */
.order-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px
}

.msg-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 0;
  margin-bottom: 14px
}

.msg-item {
  max-width: 80%
}

.msg-item.sent {
  align-self: flex-end
}

.msg-item.received {
  align-self: flex-start
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5
}

.sent .msg-bubble {
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px
}

.received .msg-bubble {
  background: #f1f5f9;
  color: var(--text);
  border-bottom-left-radius: 4px
}

.msg-meta {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 4px;
  text-align: right
}

.received .msg-meta {
  text-align: left
}

.msg-input-wrap {
  display: flex;
  gap: 10px
}

.msg-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  transition: var(--transition)
}

.msg-input:focus {
  border-color: var(--primary)
}

/* ===== SUCCESS MODAL ===== */
.success-modal-body {
  text-align: center;
  padding: 8px 0
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: #ffffff
}

.success-modal-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px
}

.success-modal-body p {
  font-size: 14px;
  color: var(--text-muted)
}

/* ===== UTILS ===== */
.flex {
  display: flex
}

.items-center {
  align-items: center
}

.justify-between {
  justify-content: space-between
}

.gap-2 {
  gap: 8px
}

.gap-3 {
  gap: 12px
}

.gap-4 {
  gap: 16px
}

.mt-1 {
  margin-top: 4px
}

.mt-2 {
  margin-top: 8px
}

.mt-3 {
  margin-top: 12px
}

.mt-4 {
  margin-top: 16px
}

.mt-6 {
  margin-top: 24px
}

.mb-2 {
  margin-bottom: 8px
}

.mb-3 {
  margin-bottom: 12px
}

.mb-4 {
  margin-bottom: 16px
}

.mb-6 {
  margin-bottom: 24px
}

.text-sm {
  font-size: 12px
}

.text-muted {
  color: var(--text-muted)
}

.font-bold {
  font-weight: 700
}

.font-semibold {
  font-weight: 600
}

.text-right {
  text-align: right
}

.w-full {
  width: 100%
}

.hidden {
  display: none !important
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, .1);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* ===== RESPONSIVE ===== */
@media(max-width:1200px) {
  .websites-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:900px) {
  .metric-filters {
    grid-template-columns: repeat(2, 1fr)
  }

  .filter-row-5 {
    grid-template-columns: repeat(3, 1fr)
  }

  .checkout-layout {
    grid-template-columns: 1fr 320px
  }

  .order-detail-layout {
    grid-template-columns: 1fr
  }
}

@media(max-width:640px) {

  .filter-row-4,
  .advanced-grid {
    grid-template-columns: 1fr 1fr
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr
  }

  .websites-grid {
    grid-template-columns: 1fr
  }
}

/* ===== MOBILE HAMBURGER BUTTON ===== */
.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
}

.sidebar-mobile-toggle:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 98;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.open {
  display: block;
}

/* ===== MOBILE RESPONSIVE â€” â‰¤ 768px ===== */
@media (max-width: 768px) {

  /* --- Hamburger visible --- */
  .sidebar-mobile-toggle {
    display: flex;
  }

  /* --- Sidebar becomes a slide-in drawer --- */
  .sidebar {
    width: 260px !important;
    left: -270px;
    transition: left .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
    z-index: 999;
    box-shadow: none;
    overflow-y: auto;
  }

  .sidebar.open {
    left: 0 !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  }

  /* Show all text inside sidebar when in mobile drawer mode */
  .sidebar .logo-text,
  .sidebar .nav-text {
    opacity: 1 !important;
  }

  .sidebar .nav-badge {
    left: auto !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
  }

  /* --- Main content no longer offset by sidebar --- */
  .has-sidebar,
  .has-admin-sidebar {
    margin-left: 0 !important;
  }

  /* --- Top header spacing --- */
  .top-header {
    padding: 0 14px 0 64px;
    height: 56px;
  }

  .header-title {
    font-size: 15px;
  }

  .wallet-badge {
    display: none;
  }

  /* hide wallet in header on small screens */
  .header-btn span {
    display: none;
  }

  /* icon-only header buttons */

  /* --- Page body padding --- */
  .page-body {
    padding: 14px;
  }

  .admin-page-body {
    padding: 16px;
  }

  /* --- Checkout layout: stack vertically --- */
  

  

  .checkout-layout>div[style*="width:340px"],
  .checkout-layout>div[style*="width: 340px"] {
    width: 100% !important;
    order: 1;
  }

  /* --- Order detail layout: stack vertically --- */
  .order-detail-layout {
    grid-template-columns: 1fr !important;
  }

  /* --- Profile page 2-col grid --- */
  div[style*="grid-template-columns:280px 1fr"] {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  /* --- Settings page 2-col grid --- */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  /* --- Checkout content-products 4-col grid --- */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  div[style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* --- Checkout progress steps: compact --- */
  .checkout-layout~form div[style*="flex:1;display:flex;align-items:center;justify-content:center"] span {
    display: none;
  }

  /* --- Search row: stack --- */
  .search-row {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  /* --- Filter rows: single column --- */
  .filter-row-5,
  .filter-row-4 {
    grid-template-columns: 1fr 1fr !important;
  }

  /* --- Metric filter boxes: 2 col --- */
  .metric-filters {
    grid-template-columns: 1fr 1fr !important;
  }

  /* --- Tabs row: wrap nicely --- */
  .tabs-row {
    flex-wrap: wrap;
  }

  .tab-manage {
    margin-left: 0;
  }

  /* --- Stats grid: 2 col --- */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* --- Card / table horizontal scroll --- */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- Orders: compact card rows --- */
  div[style*="display:flex;align-items:flex-start;justify-content:space-between"] {
    flex-direction: column;
  }

  div[style*="text-align:right;flex-shrink:0"] {
    text-align: left !important;
  }

  /* --- Order detail service grid --- */
  div[style*="grid-template-columns:1fr 1fr;gap:20px"] {
    grid-template-columns: 1fr !important;
  }

  /* --- Avatar dropdown position fix on mobile --- */
  .avatar-dropdown {
    right: 0;
    width: 200px;
  }

  /* --- Checkout cart table: convert to card layout on mobile --- */
  .checkout-table-wrap table,
  .checkout-table-wrap thead,
  .checkout-table-wrap tbody,
  .checkout-table-wrap th,
  .checkout-table-wrap td,
  .checkout-table-wrap tr {
    display: block;
  }

  .checkout-table-wrap thead tr {
    display: none;
  }

  .checkout-table-wrap td {
    border: none !important;
    padding: 8px 16px !important;
  }

  .checkout-table-wrap tr {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }

  /* --- Progress steps on checkout/order: compress label --- */
  .checkout-step span[style*="font-size:12.5px"] {
    font-size: 10px !important;
  }

  /* --- Notification grid in settings: single column --- */
  div[style*="grid-template-columns:1fr 1fr;gap:0"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
}

/* ===== MOBILE RESPONSIVE â€” â‰¤ 480px ===== */
@media (max-width: 480px) {

  .top-header {
    height: 52px;
  }

  .header-title {
    font-size: 14px;
  }

  /* filter rows go single column on very small screens */
  .filter-row-5,
  .filter-row-4,
  .metric-filters {
    grid-template-columns: 1fr !important;
  }

  /* stats go 1 column */
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* content products: single column */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* modal full width */
  .modal {
    width: calc(100% - 24px);
    padding: 20px;
  }

  .columns-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* all 2-col grids go 1 col */
  .form-row-2 {
    grid-template-columns: 1fr !important;
  }

  .form-row-3 {
    grid-template-columns: 1fr !important;
  }

  /* pagination wrap: column */
  .pagination-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  /* checkout buy button full width */
  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #e2e8f0;
  border-radius: 26px;
  transition: .3s;
  cursor: pointer
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2)
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--primary)
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(20px);
  background: #ffffff
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px
}

.alert-success {
  background: #f8fafc;
  color: #09090B;
  border: 1px solid #e2e8f0
}

.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca
}

.alert-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px
}

code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-family: monospace;
  color: #475569
}

/* â”€â”€ Small form control â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-control-sm {
  padding: 5px 10px !important;
  font-size: 12.5px !important;
  height: auto !important;
}

/* â”€â”€ Admin Niche Row hover â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.niche-admin-row {
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.niche-admin-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* ===== SETTINGS RESPONSIVE ===== */
@media(max-width:768px) {

  .page-body>div[style*="grid-template-columns:1fr 1fr"],
  .admin-page-body>div[style*="grid-template-columns:1fr 1fr"] {
    display: block !important
  }

  .page-body>div[style*="grid-template-columns:1fr 1fr"]>div,
  .admin-page-body>div[style*="grid-template-columns:1fr 1fr"]>div {
    margin-bottom: 20px
  }

  .page-body>div[style*="grid-template-columns:repeat(4,1fr)"],
  .admin-page-body>div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important
  }
}

@media(max-width:480px) {
  .admin-page-body>div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important
  }
}

/* ===================================================================
   MARKETPLACE TABLE â€” Exact Fatjoe / Accessily Style
   =================================================================== */

/* Table base overrides for marketplace */
#websitesTable th {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 9px 10px;
  white-space: nowrap;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

#websitesTable td {
  padding: 10px 10px;
  border-bottom: 1px solid #f1f5f9;
  border-right: none;
  /* No vertical lines by default */
  vertical-align: middle;
  white-space: nowrap;
}

#websitesTable tr:last-child td {
  border-bottom: none;
}

.mp-row:hover td {
  background: #f8fafc !important;
}

/* â”€â”€ STICKY PRICE COLUMN â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sticky-price {
  position: sticky !important;
  left: 0;
  z-index: 10 !important;
  background: #ffffff !important;
}

th.sticky-price {
  z-index: 20 !important;
  background: #f8fafc !important;
}

#websitesTable {
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap {
  overflow-x: auto;
  position: relative;
}

/* Shadow effect when scrolled (optional visibility cue) */
.table-wrap.is-scrolled .sticky-price {
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.06);
  border-right: 1px solid #e2e8f0 !important;
}

/* On mobile, disable sticky behavior so user can scroll entire table left-to-right smoothly */
@media (max-width: 900px) {

  .sticky-price,
  th.sticky-price {
    position: static !important;
    box-shadow: none !important;
    border-right: none !important;
  }
}

/* â”€â”€ PRICE + BUY CELL (Integrated Domain) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-buy-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 10px;
}

.mp-site-val-sticky {
  font-size: 11.5px;
  font-weight: 800;
  font-style: italic;
  color: #0f172a;
  margin-bottom: -2px;
  letter-spacing: -0.2px;

  /* Hidden by default */
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.table-wrap.is-scrolled .mp-site-val-sticky {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-bottom: 4px;
}

.mp-buy-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-buy-btn {
  background: #19c722;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.mp-buy-btn:hover {
  background: #15a51c;
  box-shadow: 0 3px 10px rgba(25, 199, 34, .35);
}

.mp-buy-btn.in-cart {
  background: #f0fdf4;
  color: #16a34a;
  border: 1.5px solid #bbf7d0;
  cursor: default;
  font-size: 11px;
  gap: 4px;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.mp-buy-btn.in-cart i {
  font-size: 10px;
}

.mp-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mp-price {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.mp-price-li {
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* â”€â”€ WEBSITE CELL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-site-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mp-domain-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.mp-domain-link {
  color: #0f172a;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.mp-domain-link:hover {
  color: #1e293b;
  text-decoration: underline;
}

.mp-site-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.mp-icon-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  text-decoration: none;
  flex-shrink: 0;
}

.mp-icon-btn:hover {
  background: #dbeafe;
  color: #2563eb;
  border-color: #bfdbfe;
}

.mp-site-name {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Website Cell Hash Tags */
.mp-hash-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.mp-hash-tag {
  background: #EFFADF;
  color: #0f172a;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1px solid #d9f2a6;
}

.mp-hash-tag:hover {
  background: #e1f5b0;
  border-color: #c0ee78;
}

/* Website Cell Image Hover Preview */
.mp-img-preview-wrap {
  position: relative;
  display: inline-flex;
}

#globalImgPreviewPopup {
  position: fixed;
  width: 500px;
  height: 350px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  padding: 4px;
}

#globalImgPreviewPopup.show-below {
  transform: translateY(10px);
}

#globalImgPreviewPopup.show-above {
  transform: translateY(-10px);
}

#globalImgPreviewPopup.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#globalImgPreviewPopup::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  transition: all 0.2s;
}

#globalImgPreviewPopup.show-below::after {
  top: -7px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

#globalImgPreviewPopup.show-above::after {
  bottom: -7px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.mp-popup-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

#globalImgPreviewPopup img {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  border-radius: 8px;
  display: block;
  background: #fff;
  transition: opacity 0.3s ease;
}

/* â”€â”€ Gauge SEO Popup â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#gaugePopup {
  position: fixed;
  width: 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px -8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  padding: 20px 16px 16px;
}

#gaugePopup.show-right {
  transform: translateX(8px);
}

#gaugePopup.show-left {
  transform: translateX(-8px);
}

#gaugePopup.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

#gaugePopup::after {
  content: '';
  position: absolute;
  top: var(--arrow-top, 20px);
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  transition: all 0.2s;
}

#gaugePopup.show-right::after {
  left: -6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

#gaugePopup.show-left::after {
  right: -6px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.gauge-svg-wrapper {
  position: relative;
  width: 100%;
}

.gauge-inner-text {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gauge-score {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.gauge-score span {
  font-size: 22px;
  letter-spacing: -0.5px;
}

.gauge-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.gauge-date {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 3px;
}




/* â”€â”€ TYPE CELL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-type-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mp-type-top {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Combined pill: [Guest Post  24 months] in one capsule */
.mp-type-combined {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 20px;
  overflow: hidden;
  gap: 0;
  max-width: fit-content;
}

.mp-type-combined.nofollow {
  background: #fce7f3;
}

.mp-type-combined.sponsored {
  background: #fef3c7;
}

.mp-type-combined .mp-tc-label {
  padding: 4px 11px 4px 11px;
  font-size: 11.5px;
  font-weight: 700;
  color: #09090B;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.mp-type-combined.nofollow .mp-tc-label {
  color: #9d174d;
}

.mp-type-combined.sponsored .mp-tc-label {
  color: #92400e;
}

.mp-type-combined .mp-tc-duration {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.55);
  padding: 4px 10px 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #166534;
  border-left: 1px solid rgba(21, 128, 61, 0.2);
  white-space: nowrap;
}

.mp-type-combined.nofollow .mp-tc-duration {
  color: #9d174d;
  border-color: rgba(157, 23, 77, 0.2);
}

.mp-type-combined.sponsored .mp-tc-duration {
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.2);
}

/* Write / words row */
.mp-type-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #374151;
  font-weight: 500;
}

.mp-type-sub .mp-tc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 9px;
  color: #64748b;
}

.mp-type-sub .mp-tc-sep {
  color: #d1d5db;
  font-weight: 400;
}

.mp-type-sub .mp-tc-words {
  color: #374151;
  font-weight: 600;
}

.mp-type-tat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #94a3b8;
}

.mp-type-tat i {
  font-size: 9px;
}

/* â”€â”€ LANGUAGE & CATEGORY â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-tags-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mp-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  width: fit-content;
}

.mp-tag-lang {
  background: #EFFADF;
  color: #0f172a;
}

.mp-tag-cat {
  background: #EFFADF;
  color: #0f172a;
}

/* â”€â”€ METRIC CIRCLES (DR / DA / AS) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-metric-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 44px;
}

.mp-met-prefix {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1;
}

.ahrefs-prefix {
  color: #f97316;
}

.moz-prefix {
  color: #6366f1;
}

.mp-met-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}

.mp-met-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.mp-met-orange {
  background: #ffedd5;
  color: #c2410c;
}

.mp-met-red {
  background: #fee2e2;
  color: #b91c1c;
}

.mp-met-label {
  font-size: 8px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1;
}

.mp-met-toggle {
  display: flex;
  gap: 2px;
  align-items: center;
}

.mp-met-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* â”€â”€ METRICS STACKED (NEW FORMAT) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.metrics-superheader {
  padding: 9px 4px !important;
}

.metrics-superheader span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.metrics-superheader span span {
  font-size: 9px;
  opacity: 0.5;
  color: #94a3b8;
}

.mp-metrics-stack {
  display: flex;
  flex-direction: column;
  width: 125px;
  margin: 0 auto;
}

.mp-stk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: default;
}

.mp-stk-row:last-child {
  border-bottom: none;
}

.mp-stk-logo {
  width: 45px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.4px;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.mp-stk-type {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  width: 25px;
  text-align: left;
}

.mp-stk-pill {
  min-width: 34px;
  height: 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
}

.mp-stk-orange {
  background: #fef08a;
  color: #854d0e;
}

/* Soft yellow for Ahrefs */
.mp-stk-blue {
  background: #dbeafe;
  color: #1e40af;
}

/* Soft blue for Moz */
.mp-stk-red {
  background: #ffedd5;
  color: #9a3412;
}

/* Soft peach for Semrush */

/* â”€â”€ COUNTRY â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-country-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.mp-flag-lg {
  font-size: 16px;
  line-height: 1.2;
}

.mp-country-info {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mp-country-code {
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
}

.mp-country-pct {
  font-size: 9px;
  color: #94a3b8;
}

/* â”€â”€ AHREFS TRAFFIC + SPARKLINE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-traffic-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-traffic-num {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.mp-sparkline {
  width: 64px;
  height: 18px;
  display: block;
  overflow: visible;
}

/* â”€â”€ NUMERIC VALUES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-num-val {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  display: block;
}

/* â”€â”€ REF DOMAINS BADGE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-refdom-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

/* â”€â”€ NICHES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-niches-col {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  max-width: 140px;
}

.mp-niche-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mp-niche-icon-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* â”€â”€ PUBLISHER NOTE ICONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-note-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* â”€â”€ DATE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-date-val {
  font-size: 10.5px;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
}

/* â”€â”€ EXAMPLE LINK in Type Cell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-type-example {
  margin-top: 3px;
}

.mp-type-example a {
  font-size: 11px;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: color .15s;
}

.mp-type-example a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.mp-example-na {
  font-size: 11px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  cursor: default;
}

/* ===================================================================
   TYPE COLUMN â€” HOVER POPUP (Fatjoe-style)
   =================================================================== */

/* Make type cell position:relative so popup is anchored to it */
.mp-type-cell {
  position: relative;
}

/* The popup card */
/* Type Popup - Writing Plans Redesign */
/* Type Popup - Premium SaaS Advance Redesign */
.mp-type-popup {
  position: fixed;
  z-index: 9999;
  width: 530px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.15), 0 6px 16px -4px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: row;
  padding: 14px;
  gap: 14px;
  animation: popupFadeIn .2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mp-type-popup.visible {
  display: flex;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pointer arrow */
.mp-type-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(45deg);
  z-index: 10;
}

/* â”€â”€ LEFT PANEL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-popup-split-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-left-card {
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.mp-left-card-title {
  font-size: 10.5px;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.mp-left-card-title i {
  color: #94a3b8;
}

.mp-left-opt {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.mp-left-opt-icon {
  width: 16px;
  height: 16px;
  background: #f1f5f9;
  color: #09090B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  flex-shrink: 0;
  margin-top: 1px;
}

.mp-left-opt-title {
  font-weight: 700;
  font-size: 12px;
  color: #0f172a;
  line-height: 1.2;
}

.mp-left-opt-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.4;
}

.mp-left-opt-desc strong {
  color: #1e293b;
}

/* â”€â”€ RIGHT PANEL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mp-popup-split-right {
  width: 220px;
  flex-shrink: 0;
  border-left: 1px dashed #e2e8f0;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
}

.mp-right-header {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  letter-spacing: -0.2px;
}

.mp-right-header i {
  color: #a1a1aa;
  font-size: 11px;
  cursor: help;
  margin-left: 4px;
}

.mp-right-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.mp-right-scroll::-webkit-scrollbar {
  width: 3px;
}

.mp-right-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* Plan Cards */
.mp-ref-plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.mp-ref-plan-card:hover {
  border-color: #22c55e;
  box-shadow: 0 4px 12px -3px rgba(34, 197, 94, 0.15), 0 2px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.mp-rp-header {
  margin-bottom: 6px;
}

.mp-rp-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.mp-rp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mp-rp-words {
  font-size: 11.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.mp-rp-words i {
  color: #94a3b8;
  font-size: 9px;
}

.mp-rp-price {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

/* Plan Dropdown */
.mp-rp-lang-drop {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  transition: all 0.15s;
}

.mp-rp-lang-drop:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.mp-rp-lang-drop i {
  color: #64748b;
  font-size: 9px;
}

/* â”€â”€ Country Traffic Donut Popup â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ct-popup {
  position: fixed;
  z-index: 9999;
  width: 440px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.15), 0 6px 16px -4px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  padding: 24px;
  animation: popupFadeIn .2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ct-popup.visible {
  display: flex;
}

/* Pointer arrow */
.ct-popup::before {
  content: '';
  position: absolute;
  top: var(--arrow-top, auto);
  bottom: var(--arrow-bottom, -6px);
  left: 50%;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(var(--arrow-rot, 45deg));
  z-index: 10;
}

.ct-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.ct-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.ct-date {
  font-size: 10px;
  color: #94a3b8;
  text-align: right;
  line-height: 1.3;
}

.ct-body {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ct-chart-wrap {
  position: relative;
  width: 320px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ct-chart-svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
  /* Start from top */
}

.ct-inner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ct-total-num {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.ct-total-lbl {
  font-size: 11px;
  color: #94a3b8;
}

/* Floating Percentages */
.ct-float-left {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13.5px;
  font-weight: 500;
  color: #0ea5e9;
  /* blue */
}

.ct-float-right {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.ct-legend {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ct-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.ct-leg-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* â”€â”€ Generic JavaScript Tooltip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.header-info-tooltip {
  position: fixed;
  z-index: 99999;
  width: max-content;
  max-width: 300px !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  text-align: left;
  line-height: 1.5 !important;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: normal !important;
  pointer-events: none;
  white-space: normal !important;
  text-transform: none !important;

  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
}

.header-info-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dynamic tiny arrow for the CSS tooltip */
.header-info-tooltip::after {
  content: '';
  position: absolute;
  top: var(--arrow-top, auto);
  bottom: var(--arrow-bottom, -5px);
  left: 50%;
  margin-left: -5px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  transform: rotate(var(--arrow-rot, 45deg));
}

/* ===================================================================
   NICHES ICON GRID
   =================================================================== */

/* Grid: 4 cols first row, 3 cols second row */
.mp-niche-grid {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  grid-template-rows: auto auto;
  gap: 6px;
  justify-content: start;
  padding: 4px 0;
}

/* Each niche icon cell */
.mp-niche-icon-cell {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform 0.15s;
}

.mp-niche-icon-cell:hover {
  transform: scale(1.12);
}

/* Available state */
.niche-avail {
  opacity: 1;
}

/* Unavailable state - greyed out */
.niche-unavail {
  opacity: 0.28;
  filter: grayscale(1);
}

/* Red multiplier badge */
.niche-badge {
  position: absolute;
  top: -6px;
  left: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

/* â”€â”€ SVG icon shapes via CSS (Unicode/pseudo-element) â”€â”€ */
.niche-svg-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  user-select: none;
}

/* Casino â€” slot machine \1F3B0 */
.niche-casino::before {
  content: '\1F3B0';
}

/* Finance â€” candlestick chart ðŸ“Š */
.niche-finance::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='8' width='3' height='10' rx='1' fill='%2310b981'/%3E%3Crect x='3' y='5' width='3' height='4' rx='1' fill='%2310b981' opacity='.4'/%3E%3Crect x='10.5' y='4' width='3' height='14' rx='1' fill='%23ef4444'/%3E%3Crect x='10.5' y='18' width='3' height='3' rx='1' fill='%23ef4444' opacity='.4'/%3E%3Crect x='18' y='6' width='3' height='12' rx='1' fill='%2310b981'/%3E%3Crect x='18' y='3' width='3' height='4' rx='1' fill='%2310b981' opacity='.4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Erotic â€” 18+ circle */
.niche-erotic::before {
  content: '';
  display: flex;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23475569' stroke-width='2'/%3E%3Ctext x='50%25' y='56%25' text-anchor='middle' dominant-baseline='middle' font-size='8' font-weight='800' fill='%23475569'%3E18%2B%3C/text%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Dating â€” heart */
.niche-dating::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C12 21 3 14.5 3 8.5a4.5 4.5 0 0 1 9-0.5 4.5 4.5 0 0 1 9 0.5C21 14.5 12 21 12 21z' fill='none' stroke='%23475569' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* CBD â€” cannabis leaf */
.niche-cbd::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8 6 5 10 7 14c-2-1-4-1-5 1 2 1 4 1 5 2-1 2-1 4 0 5 1-2 2-3 3-3v3h2v-3c1 0 2 1 3 3 1-1 1-3 0-5 1-1 3-1 5-2-1-2-3-2-5-1 2-4-1-8-5-12z' fill='%23475569'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Crypto â€” Bitcoin B */
.niche-crypto::before {
  content: '\20BF';
  font-size: 16px;
  font-weight: 700;
  color: #475569;
}

/* Medicine â€” medical cross */
.niche-medicine::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='9' y='3' width='6' height='18' rx='2' fill='%23475569'/%3E%3Crect x='3' y='9' width='18' height='6' rx='2' fill='%23475569'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Available icon colouring overrides */
.niche-avail .niche-casino::before {
  filter: none;
}

.niche-avail .niche-finance::before {
  filter: none;
}

.niche-avail .niche-erotic::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%230ea5e9' stroke-width='2'/%3E%3Ctext x='50%25' y='56%25' text-anchor='middle' dominant-baseline='middle' font-size='8' font-weight='800' fill='%230ea5e9'%3E18%2B%3C/text%3E%3C/svg%3E");
}

.niche-avail .niche-dating::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C12 21 3 14.5 3 8.5a4.5 4.5 0 0 1 9-0.5 4.5 4.5 0 0 1 9 0.5C21 14.5 12 21 12 21z' fill='%23ef4444' stroke='%23ef4444' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.niche-avail .niche-cbd::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8 6 5 10 7 14c-2-1-4-1-5 1 2 1 4 1 5 2-1 2-1 4 0 5 1-2 2-3 3-3v3h2v-3c1 0 2 1 3 3 1-1 1-3 0-5 1-1 3-1 5-2-1-2-3-2-5-1 2-4-1-8-5-12z' fill='%2322c55e'/%3E%3C/svg%3E");
}

.niche-avail .niche-crypto::before {
  color: #f59e0b;
}

.niche-avail .niche-medicine::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='9' y='3' width='6' height='18' rx='2' fill='%230ea5e9'/%3E%3Crect x='3' y='9' width='18' height='6' rx='2' fill='%230ea5e9'/%3E%3C/svg%3E");
}

/* ===================================================================
   PUBLISHER NOTE CELL + POPUP
   =================================================================== */

/* In-cell truncated note */
.mp-pub-note-cell {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: default;
  padding: 2px 0;
}

.mp-pub-note-text {
  font-size: 11.5px;
  font-weight: 500;
  color: #92400e;
  /* warm amber â€” matches screenshot */
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  max-width: 160px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Publisher Note full-text popup */
.pub-note-popup {
  position: fixed;
  z-index: 99999;
  max-width: 320px;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 13px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  pointer-events: auto;

  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.pub-note-popup.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pub-note-popup p {
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  line-height: 1.6;
  margin: 0;
  white-space: normal;
  word-break: break-word;
}

/* =====================================================================
   POPUP / DROPDOWN RESPONSIVE â€” Mobile Safe
   ===================================================================== */

/* â”€â”€ 1. Global Popup Width Clamp â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* All fixed popups get max-width so they never escape the viewport */
.mp-type-popup,
.ct-popup,
#globalImgPreviewPopup,
#gaugePopup,
.header-info-tooltip,
.pub-note-popup,
#nicheValuePopup,
#pubNotePopup {
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
}

/* â”€â”€ 2. Type Content Popup (530 px â†’ fluid on mobile) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 600px) {
  .mp-type-popup {
    width: calc(100vw - 20px) !important;
    flex-direction: column !important;
    left: 10px !important;
  }

  .mp-popup-split-right {
    width: 100% !important;
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
    margin-top: 4px;
  }

  .mp-right-scroll {
    max-height: 180px;
  }
}

/* â”€â”€ 3. Country Traffic Donut Popup (440 px â†’ fluid) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 480px) {
  .ct-popup {
    width: calc(100vw - 20px) !important;
    left: 10px !important;
    padding: 16px !important;
  }

  .ct-chart-wrap {
    width: 100% !important;
    height: 140px !important;
  }

  .ct-chart-svg {
    width: 130px !important;
    height: 130px !important;
  }

  .ct-float-left {
    font-size: 11px;
    left: 4px;
  }

  .ct-float-right {
    font-size: 11px;
    right: 4px;
  }

  .ct-legend {
    gap: 10px;
  }

  .ct-leg-item {
    font-size: 10px;
  }
}

/* â”€â”€ 4. Image Preview Popup (500 Ã— 350 â†’ responsive) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 560px) {
  #globalImgPreviewPopup {
    width: calc(100vw - 20px) !important;
    height: auto !important;
    min-height: 200px;
    left: 10px !important;
  }

  #globalImgPreviewPopup img {
    height: auto !important;
    max-height: 240px;
  }
}

/* â”€â”€ 5. Gauge Popup (210 px) â€” already compact, just clamp left â”€â”€â”€â”€â”€ */
@media (max-width: 360px) {
  #gaugePopup {
    width: calc(100vw - 20px) !important;
    left: 10px !important;
  }
}

/* â”€â”€ 6. Header Info Tooltips â€” limit width on small screens â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 480px) {
  .header-info-tooltip {
    max-width: 180px !important;
    font-size: 10px !important;
  }
}

/* â”€â”€ 7. Avatar Dropdown â€” stick to right edge on mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 480px) {
  .avatar-dropdown {
    right: 0 !important;
    width: 190px !important;
    font-size: 12px;
  }

  .avatar-dd-item {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* â”€â”€ 8. Checkout/Niche/Language/Content Dropdowns â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {

  /* Ensure dropdowns don't go off-screen */
  .niche-menu,
  .lang-menu,
  .content-menu,
  .global-lang-menu {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    top: auto !important;
    bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    margin-top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15) !important;
  }

  /* Niche trigger min-width shrinks on mobile */
  .niche-trigger,
  .lang-trigger,
  .content-trigger {
    min-width: 100% !important;
    width: 100% !important;
  }

  /* Site hover tooltip in checkout: hide on mobile (desktop hover only) */
  .site-hover-tooltip {
    display: none !important;
  }
}

/* â”€â”€ 9. Global Confirm Modal â€” full-width on very small screens â”€â”€â”€â”€ */
@media (max-width: 400px) {
  .g-cfm-modal {
    width: calc(100% - 20px) !important;
    padding: 24px 16px !important;
    max-width: none !important;
  }
}

/* â”€â”€ 10. Publisher Note Popup â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 480px) {
  .pub-note-popup {
    width: calc(100vw - 20px) !important;
    left: 10px !important;
    font-size: 11.5px !important;
  }
}

/* â”€â”€ 11. Type popup touch-action fix â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* No display:none overrides â€” hover popups simply don't fire on tap naturally */
.mp-type-popup {
  touch-action: manipulation;
}

/* â”€â”€ 12. Checkout progress step bar â€” compact on mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 520px) {

  /* Step bar: show only step number, not the label text */
  div[style*="display:flex;align-items:center;gap:0;margin-bottom:28px"]>div>span[style*="font-size:12.5px"] {
    display: none !important;
  }

  div[style*="display:flex;align-items:center;gap:0;margin-bottom:28px"]>div {
    padding: 10px 4px !important;
  }
}

/* â”€â”€ 13. Billing page â€” wallet + top-up grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 640px) {

  /* Billing 2-col inline grid â†’ single column */
  div[style*="grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px"] {
    grid-template-columns: 1fr !important;
  }

  /* Wallet card balance font size shrinks on mobile */
  div[style*="font-size:44px;font-weight:800"] {
    font-size: 32px !important;
  }
}

/* â”€â”€ 14. Cart page â€” item row on mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 480px) {

  /* Cart item: domain name + price stack vertically */
  div[style*="padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  div[style*="text-align:right"][style*="flex-shrink:0"],
  div[style*="text-align:right"] {
    text-align: left !important;
  }
}

/* â”€â”€ 15. Checkout summary sidebar: un-sticky on small â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  div[style*="position:sticky;top:88px"] {
    position: relative !important;
    top: auto !important;
  }
}

/* â”€â”€ 16. Checkout step progress labels hide on tiny â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 400px) {
  div[style*="border-right:1px solid var(--border)"]>span[style*="font-size:12.5px;font-weight:700"] {
    display: none !important;
  }
}

/* â”€â”€ 17. Checkout Sensitive Niche Tooltip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.checkout-niche-th:hover .chk-niche-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chk-niche-tooltip {
  position: absolute;
  bottom: 100%;
  left: -10px;
  margin-bottom: 14px;
  width: max-content;
  max-width: 300px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -8px 10px -6px rgba(0, 0, 0, 0.05);
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-align: left;
  line-height: 1.5 !important;
  white-space: normal;
  pointer-events: none;
  z-index: 99999;
  text-transform: none !important;
  letter-spacing: normal !important;

  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Tiny arrow pointing down */
.chk-niche-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  transform: rotate(45deg);
}

@media (max-width: 600px) {
  .chk-niche-tooltip {
    max-width: 260px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
  }

  .checkout-niche-th:hover .chk-niche-tooltip {
    transform: translateX(-50%) translateY(0);
  }
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* â”€â”€ 18. Generic Professional Tooltip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::before,
[data-tooltip]::after {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 99999;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  background: #0f172a;
  color: #ffffff;
  font-size: 10.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-tooltip]::after {
  content: '';
  border-width: 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  visibility: visible;
  opacity: 1;
}

[data-tooltip]:hover::before {
  transform: translate(-50%, -8px);
}

[data-tooltip]:hover::after {
  transform: translate(-50%, 2px);
}

/* Tooltip Right Positioning */
[data-tooltip-pos="right"]::before {
  bottom: auto;
  left: 100%;
  top: 50%;
  transform: translate(6px, -50%);
}

[data-tooltip-pos="right"]::after {
  bottom: auto;
  left: 100%;
  top: 50%;
  transform: translate(-4px, -50%);
  border-color: transparent #0f172a transparent transparent;
}

[data-tooltip-pos="right"]:hover::before {
  transform: translate(10px, -50%);
}

[data-tooltip-pos="right"]:hover::after {
  transform: translate(0px, -50%);
}

/* Tooltip Left Positioning */
[data-tooltip-pos="left"]::before {
  bottom: auto;
  right: 100%;
  left: auto;
  top: 50%;
  transform: translate(-6px, -50%);
}

[data-tooltip-pos="left"]::after {
  bottom: auto;
  right: 100%;
  left: auto;
  top: 50%;
  transform: translate(4px, -50%);
  border-color: transparent transparent transparent #0f172a;
}

[data-tooltip-pos="left"]:hover::before {
  transform: translate(-10px, -50%);
}

[data-tooltip-pos="left"]:hover::after {
  transform: translate(0px, -50%);
}



/* ===== NEW SPLIT LUXURY AUTH ===== */
.auth-split-wrap {
  display: flex;
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
}

/* Left Side */
.auth-split-left {
  flex: 1.1;
  position: relative;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  overflow: hidden;
}

.auth-split-left::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(252, 126, 6, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.auth-split-left::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(252, 126, 6, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 14s ease-in-out infinite reverse;
}

@keyframes float {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.auth-brand {
  position: absolute;
  top: 40px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.auth-brand .dot {
  color: var(--primary);
}

.auth-features-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.auth-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
  position: relative;
}

/* Animated Glow behind the grid */
.auth-features-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: rgba(252, 126, 6, 0.15);
  filter: blur(40px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseGlow 4s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
}

.auth-feat-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-feat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 126, 6, 0.08);
  border-color: rgba(252, 126, 6, 0.2);
}

.auth-feat-card.active {
  border-color: rgba(252, 126, 6, 0.3);
  background: linear-gradient(180deg, rgba(252, 126, 6, 0.02) 0%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow: 0 8px 24px rgba(252, 126, 6, 0.08);
}

.auth-feat-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.auth-feat-card p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.auth-left-heading {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.auth-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0.6;
}

.auth-trust-logos span {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-trust-logos span i {
  color: var(--primary);
}

/* Right Side */
.auth-split-right {
  flex: 0.9;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 40px;
}

.auth-top-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: auto;
}

.auth-top-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-top-nav a:hover {
  color: var(--primary);
}

.auth-form-wrapper {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: auto;
}

.auth-form-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-form-sub {
  font-size: 14px;
  color: #64748b;
  text-align: center;
  margin-bottom: 32px;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form .form-control {
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0 16px;
  font-size: 14px;
  color: #0f172a;
  width: 100%;
  transition: all 0.2s;
}

.auth-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 126, 6, 0.15);
  outline: none;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.auth-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 500;
  cursor: pointer;
}

.auth-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-options a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-options a:hover {
  text-decoration: underline;
}

.auth-btn-primary {
  background: linear-gradient(135deg, #ff9a2e 0%, #fc7e06 100%);
  color: #ffffff;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 20px -4px rgba(252, 126, 6, 0.35);
}

.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(252, 126, 6, 0.5);
  filter: brightness(1.05);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 32px 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider::before {
  margin-right: 12px;
}

.auth-divider::after {
  margin-left: 12px;
}

.auth-btn-ghost {
  background: transparent;
  color: #0f172a;
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oauth-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  transition: all 0.2s;
  text-decoration: none;
}
.oauth-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.oauth-btn i { font-size: 18px; }
.oauth-btn.google i { color: #DB4437; }
.oauth-btn.facebook i { color: #4267B2; }
.oauth-btn.linkedin i { color: #0077B5; }
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary);
}

.auth-terms {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: 16px;
}

.auth-terms a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .auth-split-wrap {
    flex-direction: column;
  }

  .auth-split-left {
    display: none;
  }

  .auth-split-right {
    flex: 1;
    justify-content: center;
    padding: 24px;
  }

  .auth-top-nav {
    display: none;
  }

  .auth-form-wrapper {
    margin: auto;
  }
}


/* ===================================================================
   USER PREFERENCES (Favorites / Dislikes)
   =================================================================== */

.tab-icon {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tab-icon:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tab-icon.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-icon.active [class*="fa-"] {
  font-weight: 900;
}

.tab-icon[data-pref="favorite"].active {
  color: #eab308;
}

.tab-icon[data-pref="dislike"].active {
  color: #ef4444;
}

.mp-pref-btn {
  border: none;
  background: none;
  padding: 0;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 8px rgba(25, 199, 34, 0.2);
  animation: bnBadgePulse 2s infinite;
}

.nav-badge::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #19C722;
  animation: bnBadgePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0;
}

.mp-pref-btn:hover {
  color: #475569;
  transform: scale(1.1);
}

.mp-pref-btn.active.pref-favorite {
  color: #eab308;
}

.mp-pref-btn.active.pref-dislike {
  color: #ef4444;
}

.custom-tippy-tooltip {
  position: fixed;
  z-index: 999999;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

/* ===================================================================
   LANGUAGE & CATEGORY COLUMN — Single line with icons, pills, +N
   =================================================================== */

/* ALL table headers hover */
#websitesTable thead th {
  transition: background 0.18s ease, color 0.18s ease;
  cursor: default;
}

#websitesTable thead th:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

#websitesTable thead th:hover i,
#websitesTable thead th:hover span[style] {
  color: #f97316 !important;
}

.mp-langcat-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.mp-langcat-icon {
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
}

.mp-langcat-sep {
  width: 1px;
  height: 14px;
  background: #e2e8f0;
  margin: 0 2px;
  flex-shrink: 0;
}

.mp-langcat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1;
}

.mp-pill-lang {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.mp-pill-cat {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* +N overflow badge */
.mp-cat-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.mp-cat-more:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* Category overflow popup — simple bullet list style */
#catMorePopup {
  position: fixed;
  z-index: 99999;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  min-width: 130px;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.98);
  transition: all 0.15s ease-out;
}

#catMorePopup.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#catMorePopup .cmp-title {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#catMorePopup .cmp-list {
  list-style: disc;
  padding-left: 14px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#catMorePopup .cmp-list li {
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
}

/* Sample post link styling */
.mp-type-example {
  text-align: center;
  margin-top: 8px;
}

.mp-type-example a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f172a !important;
  /* Black color */
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mp-type-example a i {
  font-size: 14px;
  color: #64748b;
  transition: color 0.2s ease;
}

.mp-type-example a:hover {
  color: #2563eb !important;
  /* Professional Blue on hover */
  transform: translateY(-1px);
}

.mp-type-example a:hover i {
  color: #2563eb;
}

/* ===================================================================
   MOBILE BOTTOM NAVIGATION (Premium WhatsApp/TikTok Style)
   =================================================================== */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .bn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #64748b;
        font-size: 10px;
        font-weight: 600;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        width: 20%;
        height: 100%;
        gap: 4px;
        position: relative;
        cursor: pointer;
    }

    .bn-icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 32px;
    }

    /* WhatsApp-style Active Pill */
    .bn-item::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 60%;
        height: 32px;
        background: #EFFADF; /* Matching the app's secondary green */
        border-radius: 16px;
        z-index: -1;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .bn-item.active::before {
        transform: translateX(-50%) scaleX(1);
    }

    .bn-item i {
        font-size: 19px;
        color: #475569;
        transition: all 0.25s ease;
    }

    .bn-item.active i {
        color: #166534; /* Darker green for active icon */
        transform: scale(1.05);
    }

    .bn-item span {
        color: #64748b;
        transition: all 0.25s ease;
    }

    .bn-item.active span {
        color: #0f172a;
        font-weight: 700;
    }


    .bn-badge {
        position: absolute;
        top: -6px;
        right: -10px;
        background: #19C722; /* Vibrant Green as requested */
        color: #ffffff !important;
        font-size: 11px;
        font-weight: 800;
        height: 19px;
        min-width: 19px;
        padding: 0 5px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #ffffff;
        box-shadow: 0 4px 8px rgba(25, 199, 34, 0.3);
        z-index: 10;
        /* Attention-grabbing animation */
        animation: bnBadgePulse 2s infinite;
    }

    /* Ping effect for the badge to attract attention */
    .bn-badge::after {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 20px;
        border: 2px solid #19C722;
        animation: bnBadgePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
        opacity: 0;
    }

    @keyframes bnCartShake {
        0%, 100% { transform: rotate(0); }
        25% { transform: rotate(-15deg); }
        50% { transform: rotate(15deg); }
        75% { transform: rotate(-10deg); }
    }
}

/* Global Animations (Outside Media Query for Desktop Support) */
@keyframes bnBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes bnBadgePing {
    0% { transform: scale(1); opacity: 0.8; }
    70%, 100% { transform: scale(1.8); opacity: 0; }
}

@keyframes bnCartShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
    75% { transform: rotate(-10deg); }
}

/* Icon wiggle/shake for cart when items are added */
.cart-animate i {
    animation: bnCartShake 0.6s ease-in-out;
}


    /* Hide the old hamburger on mobile */
    .sidebar-mobile-toggle {
        display: none !important;
    }

    /* Add space at the bottom of content so it's not covered by the nav */
    .main-content, .admin-content {
        padding-bottom: 80px !important;
    }

    /* Desktop sidebar should also be hidden if we are on mobile */
    .sidebar {
        z-index: 10000; /* Above bottom nav when open */
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   Applies to all screens ≤ 768px
   ============================================ */
@media (max-width: 768px) {

  /* --- Layout: Main content full width --- */
  .main-content, .admin-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .page-body, .admin-page-body {
    padding: 12px !important;
  }

  /* --- Top Header --- */
  .top-header, .admin-header {
    padding: 12px 16px !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-header .header-title,
  .admin-header .admin-header-title {
    font-size: 18px !important;
  }

  .header-actions {
    gap: 8px !important;
  }

  .wallet-badge {
    font-size: 13px !important;
    padding: 6px 12px !important;
  }

  /* --- Cards --- */
  .card {
    border-radius: 10px !important;
  }

  .card-body {
    padding: 16px !important;
  }

  /* --- Tables: Make horizontally scrollable --- */
  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 500px;
  }

  /* --- Auth Pages --- */
  .auth-split-wrap {
    grid-template-columns: 1fr !important;
    min-height: unset !important;
  }

  .auth-left-panel {
    display: none !important;
  }

  .auth-right-panel {
    padding: 24px 20px !important;
  }

  .auth-card {
    padding: 24px 20px !important;
    border-radius: 16px !important;
  }

  /* --- Checkout Layout --- */
  

  .checkout-table-wrap {
    overflow-x: auto !important;
  }

  .checkout-table-wrap table {
    min-width: 700px;
  }

  /* --- Orders Page --- */
  .order-detail-layout {
    grid-template-columns: 1fr !important;
  }

  /* --- Marketplace Table --- */
  .marketplace-table-wrap, 
  .table-container {
    overflow-x: auto !important;
  }

  /* --- Sidebar: hidden by default on mobile --- */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* --- Buttons: Full width on mobile when stacked --- */
  .btn-lg {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* --- Quick Amount Chips in Billing --- */
  .quickamt {
    min-width: 56px !important;
    font-size: 13px !important;
    padding: 10px 6px !important;
  }

  /* --- Alert messages --- */
  .alert {
    font-size: 13px !important;
    padding: 12px 16px !important;
  }

  /* --- Form controls --- */
  .form-control {
    font-size: 14px !important;
  }

  /* --- Pills / Badges --- */
  .pill {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }

  /* --- Tab rows (admin orders filter tabs) --- */
  .tabs-row {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }

  .tabs-row .tab {
    white-space: nowrap;
  }

}
