/* ============================================================
   Dopermind Web Seller - Main CSS
   Dark Premium Theme
   ============================================================ */

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.railway-host {
  --app-density-scale: 0.9;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1200px) {
  html.railway-host body {
    zoom: var(--app-density-scale);
    width: calc(100vw / var(--app-density-scale));
    min-height: calc(100vh / var(--app-density-scale));
  }
}

/* ==================== CSS VARIABLES ==================== */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --bg-3: #ffffff;
  --bg-4: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(0, 0, 0, 0.1);
  --border-focus: rgba(99, 102, 241, 0.5);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --glow: 0 0 30px rgba(99, 102, 241, 0.25);
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --layout-max-width: 1200px;
  --layout-gutter: 16px;
  --bp-mobile-max: 767.98px;
  --bp-tablet-min: 768px;
  --bp-tablet-max: 991.98px;
  --bp-desktop-min: 992px;
  --mobile-nav-height: 68px;
  --mobile-nav-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-nav-space: calc(var(--mobile-nav-height) + var(--mobile-nav-safe-bottom) + 28px);
}

/* ==================== UTILITIES ==================== */
.hidden {
  display: none !important;
}

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

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

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

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

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

.block-center {
  display: block;
  text-align: center;
}

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

a:hover {
  color: var(--primary-dark);
}

/* ==================== LOADING SPLASH ==================== */
.splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(49, 46, 129, 0.85) 50%, rgba(76, 29, 149, 0.85) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 0.5s ease 1.8s forwards;
}

.splash-inner {
  text-align: center;
}

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.splash-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 20px;
}

.splash-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-top: 8px;
}

.splash-img-wrap {
  position: relative;
  display: inline-block;
  animation: splashFloat 3s ease-in-out infinite;
}

.splash-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
  z-index: -1;
  animation: splashPulseGlow 3s ease-in-out infinite;
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.splash-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes splashFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes splashPulseGlow {
  0% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  }

  50% {
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.8);
  }

  100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ==================== TOAST ==================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
  pointer-events: all;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

.toast.info {
  border-left: 4px solid var(--secondary);
}

.toast-icon {
  font-size: 20px;
}

.toast-msg {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary-light);
}

.btn-outline-primary:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-3);
  color: var(--text);
}

.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  padding: 8px;
  min-width: 36px;
  height: 36px;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px 11px 42px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input.otp-input {
  text-align: center;
  letter-spacing: 12px;
  font-size: 24px;
  font-weight: 700;
  padding: 14px;
}

.form-select {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.form-select:focus {
  border-color: var(--primary);
}

.form-select-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 18px;
  pointer-events: none;
}

.input-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.form-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.form-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

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

.checkbox-wrap input {
  accent-color: var(--primary);
}

.link-small {
  font-size: 13px;
  color: var(--text-muted);
}

.link-small:hover {
  color: var(--primary-light);
}

.link-accent {
  color: var(--primary-light);
  font-weight: 500;
}



/* ==================== AUTH VIEW ==================== */
.auth-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.orb1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -200px;
  left: -200px;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -150px;
  right: -100px;
}

.orb3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 40%;
  left: 60%;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 24px;
  animation: slideUp 0.5s ease;
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  padding: 4px;
  box-shadow: 0 4px 16px rgba(49, 46, 129, 0.3);
}

.brand-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}

.brand-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}

.brand-accent {
  color: var(--primary-light);
}

.brand-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.auth-card-plain {
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
}

.form-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.otp-info {
  text-align: center;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.otp-icon {
  font-size: 40px;
  color: var(--primary-light);
  margin-bottom: 8px;
  display: block;
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

/* ==================== APP LAYOUT ==================== */
.app-view {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  font-size: 28px;
}

.sidebar-brand {
  font-size: 17px;
  font-weight: 800;
  flex: 1;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover {
  background: var(--bg-3);
  color: var(--text);
}

.nav-item.active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary-light);
}

.nav-item i {
  font-size: 18px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 20px;
  border: 2px solid var(--surface);
  min-width: 18px;
  text-align: center;
}

.nav-divider {
  padding: 12px 14px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  backdrop-filter: blur(4px);
}

/* Main Content */
.main-content {
  width: 100%;
  margin-left: 0;
  margin-inline: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.topbar-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
}

.topbar-search i {
  color: var(--text-dim);
  font-size: 16px;
}

.topbar-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  padding: 7px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.wallet-chip:hover {
  background: rgba(124, 58, 237, 0.3);
}

.wallet-chip i {
  color: var(--primary-light);
}

.wallet-chip span {
  font-size: 14px;
  font-weight: 600;
}

.user-avatar-wrap {
  position: relative;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 200;
  animation: slideUp 0.2s ease;
}

.dropdown-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.dropdown-header>span:first-child {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-3);
  color: var(--text);
}

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

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
}

/* Page Container */
.page-container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 32px var(--layout-gutter);
  overflow-y: auto;
}

.page {
  animation: fadeIn 0.3s ease;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
}

.section-title--flush {
  margin: 0;
}

.section-title-icon {
  margin-right: 8px;
}

.section-title-icon--sm {
  margin-right: 6px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 14px;
}

.section-header--compact-top {
  margin-top: 16px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-input-sm {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.date-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-filter-group--spaced {
  margin: 16px 0 20px;
}

.date-filter-group--compact {
  justify-content: flex-end;
}

.date-filter-group input[type="date"] {
  width: 150px;
}

.date-filter-separator {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.history-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.history-status-filter {
  width: 180px;
  flex: 0 0 180px;
}

.filter-search {
  flex: 1;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}

.filter-search:focus {
  border-color: var(--primary);
}

/* ==================== PROMO BANNER ==================== */
.promo-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--warning);
}

.promo-banner i {
  font-size: 20px;
}

/* ==================== SHOP: CATEGORY LAYOUT ==================== */
.shop-tabs {
  display: flex;
  gap: 8px;
  background: transparent;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-tabs::-webkit-scrollbar {
  display: none;
}

.shop-tab {
  flex: 1;
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.shop-tab:hover {
  border-color: var(--primary);
  color: var(--text);
}

.shop-tab.active {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.shop-category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin-bottom: 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-category-strip::-webkit-scrollbar {
  display: none;
}

.shop-category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.shop-category-chip strong {
  font-size: 12px;
  color: var(--text-muted);
}

.shop-category-chip.active {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary);
}

.shop-category-chip.active strong {
  color: var(--primary);
}

.shop-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
}

.shop-results-summary strong {
  color: var(--text);
  font-size: 14px;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Category section */
.category-section {
  display: block;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.category-title {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-count {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ==================== PRODUCT CARD V2 ==================== */
.product-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.product-card-v2:hover {
  border-color: rgba(124, 58, 237, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.18);
}

.pc-cover {
  width: 100%;
  height: 148px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(37, 99, 235, 0.10));
  position: relative;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pc-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.pc-type-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.type-acc {
  background: linear-gradient(135deg, #10b981, #059669);
}

.type-srv {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ==================== PROMO TAGS ON PRODUCT CARDS ==================== */
.pc-promo-tags {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.pc-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  animation: promoTagPulse 2.5s ease-in-out infinite;
}

.tag-sale {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.tag-cashback {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

@keyframes promoTagPulse {

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

  50% {
    transform: scale(1.04);
    opacity: 0.92;
  }
}

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

.pc-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.pc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.pc-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-icon {
  display: none;
  /* Hide old icon if any residual elements remain */
}

.pc-head-info {
  flex: 1;
  min-width: 0;
}

.pc-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.pc-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}

.pc-stock.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.pc-stock.out-of-stock {
  background: rgba(239, 68, 68, 0.13);
  color: var(--danger);
}

/* Variant pills on card */
.pc-variants {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow: hidden;
  align-items: center;
}

.pc-variant-pill {
  font-size: 11px;
  font-weight: 500;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--primary-light);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.pc-variant-pill.pc-variant-out {
  opacity: 0.4;
  text-decoration: line-through;
  background: rgba(100, 116, 139, 0.1);
  border-color: var(--border);
  color: var(--text-dim);
}

.pc-variant-pill--service {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #d97706;
}

.pc-variant-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  padding: 3px 10px;
  line-height: 1.4;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.85);
  border: 1px dashed rgba(148, 163, 184, 0.8);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Footer */
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.pc-price-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.pc-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.pc-price-old {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.pc-price-ask {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.pc-buy-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* ==================== DESCRIPTION FORMATTING ==================== */
.pd-desc {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.desc-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.desc-bullet {
  color: var(--primary-light);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.desc-line-plain {
  color: var(--text-dim);
  font-style: italic;
  padding-left: 2px;
}

.pd-desc-service {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.04);
}

.pd-desc-service .desc-bullet {
  color: var(--warning);
}

.desc-link {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  transition: color 0.2s;
}

.desc-link:hover {
  color: var(--primary);
}

.pd-desc-service .desc-link {
  color: var(--warning);
}

.pd-desc-service .desc-link:hover {
  color: #d97706;
}


/* ==================== PRODUCT DETAIL V2 ==================== */
/* --- Tabs --- */
.pd-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
  margin-top: 12px;
  flex-shrink: 0;
}

.pd-tab {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, border-color 0.2s;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.pd-tab:hover {
  color: var(--primary-light);
}

.pd-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
  background: var(--bg-3);
}

.pd-tab-panel {
  padding: 14px 0 4px;
}

/* --- Info sections (warranty / note) --- */
.pd-info-section {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.pd-warranty-section {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pd-note-section {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pd-info-section-title {
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.pd-warranty-section .pd-info-section-title {
  color: #059669;
}

.pd-note-section .pd-info-section-title {
  color: #d97706;
}

.pd-info-section-body * {
  font-size: 13px !important;
}

#modal-product .modal-box {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#product-detail-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.pd-layout {
  display: flex;
  flex: 1;
  gap: 0;
  align-items: stretch;
  min-height: 0;
}

.pd-left {
  flex: 1;
  min-width: 0;
  padding: 24px;
  overflow-y: auto;
}

.pd-right {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--bg-2);
  z-index: 2;
}

.pd-checkout-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  background: var(--bg-2);
}

.pd-checkout-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 18px 24px;
  flex-shrink: 0;
}

.pd-checkout-header-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-checkout-header-title i {
  font-size: 20px;
}

.pd-checkout-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pd-selected-variant {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.pd-selected-variant i {
  font-size: 18px;
  color: var(--primary-light);
}

.pd-selected-variant-name {
  font-weight: 700;
  color: var(--text);
}

.pd-checkout-total {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.pd-checkout-total-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.pd-checkout-total-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
}

.pd-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-checkout-warning {
  margin-top: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #b45309;
  /* Deep orange text */
  font-size: 13px;
  line-height: 1.5;
}

.pd-checkout-warning i {
  font-size: 20px;
  color: #f59e0b;
  margin-top: 1px;
  flex-shrink: 0;
}

.pd-cw-text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
}

@media (max-width: 767.98px) {
  #modal-product .modal-box {
    overflow-y: auto;
  }

  #product-detail-content {
    display: block;
    min-height: auto;
  }

  .pd-layout {
    display: block;
    min-height: auto;
  }

  .pd-left {
    padding: 20px;
    overflow-y: visible;
  }

  .pd-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

.pd-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.pd-icon {
  font-size: 36px;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(37, 99, 235, 0.15));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pd-category {
  font-size: 12px;
  color: var(--text-dim);
}

/* Variant option v2 */
.variant-option {
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.vo-info {
  flex: 1;
  min-width: 0;
}

.variant-option:hover:not(.out) {
  border-color: var(--primary);
}

.variant-option.selected {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.12);
}

.variant-option.out {
  opacity: 0.4;
  cursor: not-allowed;
}

.vo-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.25;
}

.vo-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.25;
  white-space: nowrap;
}

.vo-price-old {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-top: 1px;
}

.vo-tier-hint {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}

.vo-tier-price-old {
  color: var(--text-dim);
  text-decoration: line-through;
}

.vo-tier-price-new {
  color: var(--success);
}

.vo-stock {
  font-size: 10px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vo-stock.in {
  color: var(--success);
}

.vo-stock.out {
  color: var(--danger);
}

/* Radio indicator */
.vo-radio {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.vo-radio-inner {
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary);
  transition: all 0.2s ease;
}

.variant-option:hover:not(.out) .vo-radio {
  border-color: var(--primary);
}

.variant-option.selected .vo-radio {
  border-color: var(--primary);
}

.variant-option.selected .vo-radio-inner {
  width: 10px;
  height: 10px;
}

/* Service radio */
.variant-option.variant-service:hover .vo-radio {
  border-color: var(--warning);
}

.variant-option.variant-service.selected .vo-radio {
  border-color: var(--warning);
}

.variant-option.variant-service.selected .vo-radio-inner {
  background: var(--warning);
}

/* Category group headers */
.vo-category-group {
  margin-bottom: 4px;
}

.vo-category-group+.vo-category-group {
  margin-top: 16px;
}

.vo-category-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.vo-category-label i {
  font-size: 16px;
}

.vo-category-label-service {
  color: var(--warning);
  border-bottom-color: rgba(245, 158, 11, 0.25);
}

/* Service variant styling */
.variant-option.variant-service {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.variant-option.variant-service:hover {
  border-color: var(--warning);
}

.variant-option.variant-service.selected {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.15);
}

.variant-option.variant-service .vo-price {
  color: var(--warning);
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

.vo-service-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--bg-4);
}

.qty-display {
  font-size: 18px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

.detail-total {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.netflix4k-shell,
.other-services-shell {
  display: grid;
  gap: 24px;
}

.netflix4k-hero,
.netflix4k-promo-card,
.other-services-hero,
.other-service-section {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(229, 9, 20, 0.2), transparent 34%),
    linear-gradient(135deg, #120818 0%, #1d1036 48%, #0b132b 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.netflix4k-hero,
.other-services-hero {
  padding: 32px;
}

.netflix4k-badge,
.other-services-badge,
.other-service-section-id {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #e50914, #7c3aed);
  box-shadow: 0 12px 24px rgba(229, 9, 20, 0.24);
}

.other-service-section-id {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
}

.netflix4k-title,
.other-services-title {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  color: #fff;
  max-width: 760px;
}

.netflix4k-copy,
.other-services-copy {
  max-width: 720px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.netflix4k-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.netflix4k-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.netflix4k-points i {
  color: #34d399;
  font-size: 16px;
}

.netflix4k-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.netflix4k-promo-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.netflix4k-card-glow,
.other-service-card-glow {
  position: absolute;
  inset: auto -10% -35% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.32) 0%, rgba(229, 9, 20, 0) 70%);
  pointer-events: none;
}

.netflix4k-card-content,
.other-service-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 28px 32px;
}

.netflix4k-card-meta,
.other-service-card-meta {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.netflix4k-card-content h3,
.other-service-card-content h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}

.netflix4k-card-content p,
.other-service-card-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.netflix4k-link-preview-wrap,
.other-service-link-preview-wrap {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.netflix4k-link-label,
.other-service-link-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
}

.netflix4k-link-preview,
.other-service-link-preview {
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
  color: #f8fafc;
}

.netflix4k-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fca5a5;
}

.other-services-list {
  display: grid;
  gap: 20px;
}

.other-service-section {
  display: grid;
  gap: 18px;
  padding: 72px 24px 24px;
}

.other-service-section-html {
  position: relative;
  z-index: 1;
}

.other-service-section-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.other-service-link-btn {
  flex-shrink: 0;
}

/* ==================== CART ==================== */
.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-select-all {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.cart-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cart-item.is-selected {
  border-color: rgba(79, 70, 229, 0.22);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.08);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.035), rgba(255, 255, 255, 0.98));
}

.cart-item-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  min-width: 24px;
}

.cart-item-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.cart-item-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12));
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text, #1e293b);
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted, #94a3b8);
}

.cart-unit-price-old,
.cart-tier-price-old {
  color: var(--text-dim);
  text-decoration: line-through;
}

.cart-unit-price-new,
.cart-tier-price-new {
  color: var(--primary-light);
  font-weight: 800;
}

.cart-tier-note {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--success);
}

.cart-service-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
}

.cart-service-info>i {
  font-size: 15px;
  color: #d97706;
  margin-top: 2px;
  flex-shrink: 0;
}

.cart-service-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-service-field {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cart-service-field strong {
  color: #92400e;
  font-weight: 600;
}

.cart-service-edit {
  background: none;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #d97706;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  flex-shrink: 0;
  align-self: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.cart-service-edit:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-price {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--primary-light);
  white-space: nowrap;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

.cart-summary {
  margin-top: 24px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.voucher-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.voucher-row .form-input {
  padding-left: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
  border: none;
}

.total-row {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.variant-selector {
  margin: 20px 0 8px;
}

.variant-selector-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.variant-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  max-height: 260px;
  overflow-y: auto;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.variant-options::-webkit-scrollbar {
  display: none;
}

.payment-methods {
  margin: 20px 0;
}

.label-sm {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: var(--transition);
}

.radio-card.selected {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
}

.radio-card input {
  display: none;
}

.radio-card i {
  font-size: 24px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.radio-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.radio-card span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== ORDERS ==================== */
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.order-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.order-code {
  font-family: monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.order-status {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending,
.status-pending_service {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.status-failed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.status-cancelled {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-dim);
}

.status-closed,
.status-ended,
.status-disabled {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-dim);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.status-processing {
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
}

.status-refunded {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
}

.status-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.status-partial {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.status-refund_pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.order-items {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.order-failure-reason {
  font-size: 13px;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.order-failure-reason.refund-pending {
  color: #d97706;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.order-failure-box {
  margin: 20px 0 0;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
}

.order-failure-box.refund-pending {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.order-failure-box.refund-pending .order-failure-box-label {
  color: #d97706;
}

.order-failure-box-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-failure-box-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-light);
}

.order-date {
  font-size: 12px;
  color: var(--text-dim);
}

/* Order Detail */
.order-detail-header {
  margin-bottom: 24px;
}

.order-detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.info-cell {
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.info-cell-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-cell-value {
  font-size: 15px;
  font-weight: 600;
}

.delivery-section {
  margin-top: 24px;
}

.delivery-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.delivery-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.delivery-item-name {
  font-weight: 600;
  margin-bottom: 8px;
}

.order-success-manage-btn {
  margin-top: 14px;
}

.delivery-account {
  background: var(--bg-4);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: monospace;
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  margin-top: 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-timeline-section {
  margin-top: 24px;
}

.order-timeline-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.order-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
}

.order-timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.order-timeline-rail::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: -14px;
  width: 2px;
  background: rgba(124, 58, 237, 0.16);
}

.order-timeline-rail.is-last::after {
  display: none;
}

.order-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  margin-top: 8px;
}

.order-timeline-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-3);
  padding: 14px 16px;
}

.order-timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.order-timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.order-timeline-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.order-timeline-message {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.order-timeline-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text-muted);
  background: var(--bg-3);
  font-size: 13px;
}

/* ==================== QR MODAL ==================== */
#modal-qr .modal-box {
  max-width: 560px;
  padding: 28px;
}

.qr-modal-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.qr-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  width: min(320px, 100%);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  align-self: center;
  overflow: hidden;
}

.qr-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.qr-info {
  text-align: left;
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  width: 100%;
}

.qr-info-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.qr-info-row span {
  color: var(--text-muted);
}

.qr-info-row strong {
  text-align: right;
  word-break: break-word;
}

.qr-owner {
  letter-spacing: 0.5px;
}

.qr-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  width: 100%;
}

.qr-countdown {
  font-size: 14px;
  font-weight: 700;
  color: var(--warning);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.qr-status {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: var(--bg-3);
  border-radius: var(--radius);
  padding: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  min-width: 0;
}

.qr-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 0;
}

.btn-spaced-top {
  margin-top: 12px;
}

#modal-qr .modal-title,
#modal-qr .qr-note,
#modal-qr #close-qr-modal {
  width: 100%;
}

.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.order-success-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-success-order-code {
  font-size: 14px;
  color: var(--text-muted);
}

.order-success-summary-text,
.order-success-summary-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.order-success-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-success-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.14);
}

.order-success-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.order-success-item-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ==================== WALLET ==================== */
.wallet-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 767.98px) {
  .wallet-cards-row {
    grid-template-columns: 1fr;
  }
}

.wallet-card {
  background: linear-gradient(135deg, #4c1d95, #1e3a8a);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.wallet-card--primary {
  background: linear-gradient(135deg, #4c1d95, #1e3a8a);
}

.wallet-card--ctv {
  background: linear-gradient(135deg, #065f46, #164e63);
  position: relative;
}

.wallet-card--ctv.active {
  opacity: 1;
}

.wallet-card-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wallet-card-inner {
  position: relative;
}

.wallet-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.wallet-label-icon {
  margin-right: 4px;
}

.wallet-amount {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.wallet-user {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.wallet-actions {
  position: relative;
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

/* CTV Wallet Overlay (disabled state) */
.wallet-ctv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.wallet-ctv-overlay-content {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wallet-ctv-overlay-content p {
  margin: 0;
}

.wallet-ctv-overlay-icon {
  font-size: 32px;
  opacity: 0.6;
}

.wallet-ctv-overlay-title {
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0 0;
}

.wallet-ctv-overlay-subtitle {
  font-size: 12px;
  opacity: 0.7;
  margin: 0;
}

.wallet-ctv-overlay-btn {
  margin-top: 8px;
}

.wallet-ctv-overlay-content .btn {
  margin-top: 4px;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.wallet-ctv-overlay-content .btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.wallet-card--ctv.active .wallet-ctv-overlay {
  display: none;
}

.wallet-history-tabs-shell {
  margin-top: 28px;
}

.wallet-tab-panel {
  display: none;
}

.wallet-tab-panel.active {
  display: block;
}

/* Bank Link Hint */
.wallet-bank-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: var(--transition);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.wallet-bank-hint:hover {
  border-color: var(--primary-light);
}

.wallet-bank-hint-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.wallet-bank-hint-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.wallet-bank-hint-text strong {
  font-size: 15px;
  font-weight: 700;
}

.wallet-bank-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.wallet-bank-linked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.wallet-bank-linked-badge--muted {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}

.wallet-bank-preview {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-muted);
}

.wallet-bank-preview strong,
.wallet-bank-preview span {
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-bank-preview strong {
  color: var(--text);
  font-size: 12px;
}

.wallet-bank-preview--muted {
  white-space: normal;
  line-height: 1.45;
}

.wallet-bank-hint.linked .wallet-bank-hint-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
  color: var(--success);
}

@media (max-width: 767.98px) {
  .wallet-bank-hint {
    align-items: flex-start;
    padding: 14px;
  }

  .wallet-bank-status-line,
  .wallet-bank-preview {
    width: 100%;
  }

  .wallet-bank-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .wallet-bank-preview strong,
  .wallet-bank-preview span {
    max-width: 100%;
  }

  .wallet-bank-hint .btn {
    align-self: center;
    flex-shrink: 0;
  }
}

.deposit-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  animation: slideUp 0.3s ease;
}

.panel-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}

.amount-presets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.amount-chip {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
}

.amount-chip:hover,
.amount-chip.selected {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

.promo-hint {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--warning);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Transactions */
.tx-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}

.tx-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tx-icon.deposit {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.tx-icon.purchase {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.tx-icon.refund,
.tx-icon.bonus {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.tx-icon.admin_credit {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.tx-icon.admin_debit {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.tx-icon.ctv_commission,
.tx-icon.lucky_money {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.tx-icon.ctv_withdrawal {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.tx-info {
  flex: 1;
}

.tx-desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.tx-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tx-amount {
  font-size: 14.5px;
  font-weight: 700;
  text-align: right;
}

.tx-amount.positive {
  color: var(--success);
}

.tx-amount.negative {
  color: var(--danger);
}

.tx-status {
  font-size: 11px;
  text-align: right;
  margin-top: 3px;
}

/* ==================== PROFILE ==================== */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.avatar-circle {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  flex-shrink: 0;
}

.profile-info h3 {
  font-size: 20px;
  font-weight: 700;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ==================== ADMIN STATS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.stat-card-glow {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
}

.stat-icon {
  font-size: 20px;
  margin-bottom: 12px;
}

/* ==================== TABLES ==================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--bg-3);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}

.modal-title-icon {
  margin-right: 6px;
}

.modal-title-icon--warning {
  color: #f59e0b;
}

.modal-box.modal-large {
  width: 96vw;
  max-width: 1300px;
}

.modal-box--ctv-detail {
  max-width: 640px;
}

.modal-box--guest-warning {
  max-width: 440px;
}

.modal-box--tier-benefits {
  max-width: 550px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #334155;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  z-index: 30;
}

.modal-close:hover {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.42);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.modal-close i {
  font-size: 1em;
  line-height: 1;
}

#order-detail-content {
  padding: 28px;
  padding-top: 56px;
}

.swal2-popup .swal2-close {
  width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  color: #334155 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18) !important;
  font-size: 26px !important;
  line-height: 40px !important;
  transition: var(--transition) !important;
}

.swal2-popup .swal2-close:hover,
.swal2-popup .swal2-close:focus {
  background: #ffffff !important;
  border-color: rgba(79, 70, 229, 0.42) !important;
  color: var(--primary) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24) !important;
}

.modal-info-row {
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.modal-block-spacing {
  margin-bottom: 16px;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.modal-section-icon {
  margin-right: 4px;
}

.modal-scroll-area {
  max-height: 360px;
  overflow-y: auto;
}

.modal-actions-end {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-body-copy {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==================== PAGINATION ==================== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.page-btn:hover {
  background: var(--bg-4);
  color: var(--text);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.page-info {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding-left: 12px;
}

/* ==================== EMPTY & LOADING STATES ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-state--compact {
  padding: 24px;
}

.empty-state i {
  font-size: 56px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 14px;
}

.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .sidebar.open {
    transform: none;
  }

  .sidebar-close {
    display: flex;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar-menu {
    display: flex;
  }

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

@media (max-width: 767.98px) {
  .page-container {
    padding: 16px;
  }

  .auth-card {
    padding: 24px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .detail-actions {
    flex-direction: column;
  }

  .wallet-amount {
    font-size: 32px;
  }

  .cart-item {
    flex-wrap: wrap;
  }
}

/* ==================== AUTH MODAL OVERLAY ==================== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.auth-modal-overlay.hidden {
  display: none !important;
}

.auth-modal-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), var(--glow);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #334155;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  z-index: 30;
}

.auth-modal-close:hover {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.42);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.auth-modal-inner .auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-modal-inner .brand-icon {
  display: block;
  margin-bottom: 6px;
}

/* ==================== GUEST UI ==================== */
.guest-topbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.guest-topbar.hidden {
  display: none !important;
}

/* Guest auth buttons wrapper */
.guest-auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Notification badge */
.gh-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 20px;
  border: 2px solid var(--surface);
  min-width: 18px;
  text-align: center;
}

.gh-bell-btn {
  color: var(--text-muted);
}

.gh-bell-btn:hover {
  color: var(--primary);
}

.guest-sidebar-cta {
  padding: 4px 0;
}



/* Guest info banner on shop page */
.guest-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.guest-banner-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.guest-banner-text strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.guest-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ==================== PRODUCT IMAGE ==================== */
.pc-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.pd-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
}

/* Short description on card */
.pc-short-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
  margin: -4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== GUEST WARNING MODAL ==================== */
.gwarn-content {
  text-align: center;
  padding: 8px 4px;
}

.gwarn-icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

.gwarn-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}

.gwarn-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.gwarn-warn {
  color: #fb923c;
  font-weight: 700;
}

.gwarn-benefits {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.gwarn-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.gwarn-benefit i {
  color: var(--success);
  font-size: 16px;
  flex-shrink: 0;
}

.gwarn-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==================== REDESIGN LAYOUT ==================== */
.hidden-mobile {
  display: flex;
}

.hidden-desktop {
  display: none !important;
}

@media (max-width: 991.98px) {
  .hidden-mobile {
    display: none !important;
  }

  .hidden-desktop {
    display: flex !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding-bottom: 80px !important;
  }

  .page-container {
    padding: 16px !important;
  }

  .gh-icon-btn.hidden-desktop {
    display: flex !important;
  }

  .gh-container {
    padding: 0 16px !important;
  }
}

@media (min-width: 992px) {
  .hidden-desktop {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }
}

/* Global Header */
.global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  width: 100%;
}

.gh-container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}

.content-shell {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}

.flex-space {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gh-top {
  background: linear-gradient(90deg, #7c3aed 0%, #db2777 50%, #f59e0b 100%);
  background-size: 200% 100%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  height: 36px;
  overflow: hidden;
  position: relative;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.promo-ticker-wrap {
  position: relative;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.promo-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
  gap: 0;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}


.promo-ticker-track:hover {
  animation-play-state: paused;
}

.promo-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 40px;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.promo-ticker-item::before {
  content: '🔥';
  font-size: 14px;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.gh-top-left {
  font-weight: 600;
}

.gh-top-right span {
  margin-left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.gh-main {
  padding: 12px 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.3);
}

.gh-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-logo-link {
  cursor: pointer;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-logo .logo-icon {
  font-size: 42px;
}

.brand-logo .brand-name {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.brand-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#lang-wrap,
#lang-menu-btn {
  display: none !important;
}

.lang-switcher-icon {
  font-size: 18px;
}

/* 2-column grid: logo | actions */
.gh-main-grid {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.gh-search-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gh-search-center .topbar-search {
  width: 100%;
  max-width: 560px;
}

.gh-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.header-action-btn {
  position: relative;
  display: none;
}

.header-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -5px;
  right: -5px;
}

.header-wallet-chip,
.header-user-topbar {
  display: none;
}

.gh-menu-btn {
  flex-shrink: 0;
}

.gh-mobile-search {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.is-initially-hidden {
  display: none;
}

.gh-mobile-search:hover {
  background: rgba(255, 255, 255, 0.18);
}

.gh-mobile-search i {
  font-size: 18px;
}

.gh-icon-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 22px !important;
  color: #fff !important;
  transition: var(--transition) !important;
  padding: 0 !important;
}

.gh-icon-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}

.gh-icon-btn:not(.hidden-desktop) {
  display: flex !important;
}

.gh-nav {
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Nav flexbox: links left, contact right */
.gh-nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gh-nav-links {
  display: flex;
  gap: 28px;
}

.gh-nav-links .nav-item {
  font-weight: 600;
  padding: 18px 0;
  border-radius: 0;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  font-size: 15px;
}

.gh-nav-links .nav-item:hover,
.gh-nav-links .nav-item.active {
  color: var(--primary);
  background: transparent;
  border-bottom: 2px solid var(--primary);
}

.nav-caret-icon {
  font-size: 11px;
}

/* Nav inline contact info */
.gh-nav-contact-inline {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.gh-nav-contact-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 20px;
}

.gh-nav-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 4px 12px;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.gh-nav-contact-item:hover {
  background: var(--bg-3);
}

.gh-nav-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.gh-nav-contact-icon--phone {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.gh-nav-contact-icon--email {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.gh-nav-contact-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

.gh-nav-contact-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

/* === Dark Header Overrides (gh-main has dark bg) === */
.gh-main .wallet-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.gh-main .wallet-chip:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gh-main .wallet-chip i {
  color: #fff;
}

.gh-main .wallet-chip span {
  color: #fff;
}

.gh-main .guest-auth-btns .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.gh-main .guest-auth-btns .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.gh-main .guest-auth-btns .btn-primary {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gh-main .user-avatar {
  border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Main Content Area Override */
.main-content {
  width: 100%;
  flex: 1;
  flex-direction: column;
  min-height: 100vh;
  background: var(--surface-2);
}

.page-container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 32px var(--layout-gutter);
  box-sizing: border-box;
}

.app-view {
  display: block;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  min-height: var(--mobile-nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding: 0 12px max(var(--mobile-nav-safe-bottom), 8px);
  transition: transform 0.22s ease, opacity 0.22s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
  text-decoration: none;
  position: relative;
  padding: 6px 6px 2px;
  border-radius: 0;
  overflow: hidden;
  min-width: 0;
  min-height: 100%;
  background: transparent !important;
  border-radius: 18px;
}

.bnav-item i {
  font-size: 26px;
  transition: var(--transition);
}

.bnav-item.active {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.15) !important;
}

.bnav-item.active i {
  transform: scale(1.1);
  font-weight: var(--ph-weight-bold);
}

.bnav-badge {
  position: absolute;
  top: -4px;
  right: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  border: 2px solid var(--surface);
}

/* Sidebar Mobile override */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

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

/* ==================== CATEGORY TWEAKS ==================== */
.category-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.category-title {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.category-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-3);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ==================== CONTACT RIBBON ==================== */
.gh-contact-ribbon {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.04), rgba(37, 99, 235, 0.04));
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.contact-ribbon-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.contact-ribbon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 24px 6px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.contact-ribbon-item:hover {
  opacity: 0.8;
}

.contact-ribbon-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-ribbon-icon--phone {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.contact-ribbon-icon--email {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.contact-ribbon-text {
  display: flex;
  flex-direction: column;
}

.contact-ribbon-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-ribbon-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.contact-ribbon-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 24px;
  flex-shrink: 0;
}

/* Fix nav bar having no contact info now */
.gh-nav .gh-container {
  justify-content: flex-start;
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px)));
}

body.product-modal-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + var(--mobile-nav-safe-bottom)));
}

body.product-modal-open .contact-widget {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

body.drawer-open .back-to-top-btn,
body.product-modal-open .back-to-top-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

@media (max-width: 991.98px) {
  body.product-modal-open .bottom-nav,
  body.product-modal-open .contact-widget,
  body.product-modal-open .back-to-top-btn {
    display: none !important;
  }
}

.gh-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.gh-mobile-drawer.hidden {
  display: none;
}

.gh-mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gh-mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(88vw, 340px);
  height: 100%;
  padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 112px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 16px 0 42px rgba(15, 23, 42, 0.16);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
}

.gh-mobile-drawer.is-open .gh-mobile-drawer-overlay {
  opacity: 1;
}

.gh-mobile-drawer.is-open .gh-mobile-drawer-panel {
  transform: translateX(0);
}

.gh-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.gh-mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-width: 0;
}

.gh-mobile-drawer-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
  border: 1px solid rgba(79, 70, 229, 0.18);
  box-shadow: 0 8px 20px rgba(49, 46, 129, 0.18);
}

.gh-mobile-drawer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gh-mobile-drawer-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.gh-mobile-drawer-brand span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.gh-mobile-drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.gh-mobile-drawer-search-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 18px;
}

.gh-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gh-mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
}

.gh-mobile-nav-item i {
  font-size: 20px;
  color: var(--primary);
}

.gh-mobile-nav-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.gh-mobile-drawer-section {
  margin-top: 20px;
}

.gh-mobile-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.gh-mobile-category-list {
  display: grid;
  gap: 8px;
}

.gh-mobile-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.gh-mobile-category-item strong,
.gh-mobile-category-item i {
  font-size: 12px;
  color: var(--primary);
  flex-shrink: 0;
}

.gh-mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.gh-mobile-contact-item i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.gh-mobile-contact-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.gh-mobile-contact-item strong {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

@media (max-width: 991.98px) {
  .gh-main {
    padding: 10px 0 12px;
  }

  .gh-main-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 12px;
  }

  .gh-logo-group {
    grid-area: brand;
    min-width: 0;
    gap: 8px;
  }

  .gh-actions-group {
    grid-area: actions;
    justify-self: end;
    gap: 8px;
  }

  .gh-mobile-search {
    grid-area: search;
  }

  .brand-logo {
    min-width: 0;
  }

  .brand-logo-text {
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(40vw, 220px);
  }

  .gh-main .guest-auth-btns {
    gap: 8px;
  }

  .gh-main .guest-auth-btns .btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
  }
}

@media (max-width: 767.98px) {
  .btn {
    gap: 6px;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 10px;
  }

  .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
  }

  .btn-lg {
    padding: 12px 16px;
    font-size: 14px;
  }

  .btn i {
    font-size: 15px;
  }

  .gh-main {
    padding: 8px 0 10px;
  }

  .gh-main-grid {
    gap: 10px;
  }

  .gh-container {
    padding: 0 16px !important;
  }

  .brand-logo {
    gap: 10px;
  }

  .gh-logo-group .brand-logo-img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  .brand-logo-text {
    font-size: clamp(16px, 4.8vw, 19px);
    max-width: min(52vw, 190px);
  }

  .brand-logo-suffix {
    display: none;
  }

  .gh-actions-group {
    gap: 4px;
  }

  .gh-icon-btn,
  .user-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }

  .gh-mobile-search {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .gh-mobile-search span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Banner ẩn hoàn toàn trên mobile — chỉ hiển thị trên desktop */
  #home-banner-section {
    display: none !important;
  }


  .home-hero {
    padding: 24px 18px;
    margin-bottom: 28px;
  }

  .home-hero-badge {
    margin-bottom: 14px;
    font-size: 12px;
    padding: 6px 12px;
  }

  .home-hero-sub {
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .home-hero-cta {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 14px;
  }

  .home-section-title {
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.35;
  }

  .section-title,
  .card-title,
  .modal-title {
    font-size: 16px;
  }

  .home-announce-item {
    gap: 12px;
    padding: 14px 16px;
  }

  .home-policy-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .home-policy-card {
    padding: 18px 14px;
  }

  .home-policy-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .home-policy-card h3 {
    font-size: 14px;
  }

  .home-policy-card p {
    font-size: 12px;
    line-height: 1.5;
  }

  .home-cta-bottom {
    padding: 28px 18px;
  }

  .home-cta-bottom p {
    font-size: 15px;
  }

  .shop-tab {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .category-header {
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

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

  .pc-cover {
    height: 112px;
  }

  .pc-badges {
    top: 10px;
    left: 10px;
  }

  .pc-promo-tags {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .pc-promo-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .pc-cover-fallback {
    font-size: 38px;
  }

  .pc-body {
    padding: 12px;
    gap: 10px;
  }

  .pc-name {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .pc-stock {
    font-size: 10px;
    padding: 3px 7px;
  }

  .pc-short-desc {
    font-size: 11.5px;
    line-height: 1.4;
  }

  .pc-variant-pill {
    max-width: 88px;
    font-size: 10px;
    padding: 3px 7px;
  }

  .pc-price {
    font-size: 13.5px;
  }

  .pc-price-old {
    font-size: 9.5px;
  }

  .pc-buy-btn {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 992px) {
  .gh-mobile-drawer {
    display: none !important;
  }
}

/* ==================== HOME PAGE ==================== */
.home-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 20px;
}

.home-hero-title {
  font-size: clamp(20px, 5vw, 36px);
  font-weight: 900;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.2;
}

.home-hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-sub {
  font-size: clamp(14px, 2.2vw, 16px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.home-hero-cta {
  font-size: 16px;
  padding: 14px 36px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.home-hero--banner {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  background: transparent;
}

.home-hero-badge--banner,
.home-hero-title--banner {
  margin-bottom: 12px;
}

.home-hero-sub--banner {
  margin-bottom: 20px;
}

/* Banner Slider – center-mode infinite carousel */
#home-banner-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  height: clamp(320px, 42vw, 420px);
}

.banner-skeleton {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-skeleton-item {
  width: 70%;
  height: 85%;
  margin: 0 auto;
  transform: scale(1);
  opacity: 1;
  filter: brightness(1);
}

.banner-skeleton-card {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(49, 46, 129, 0.95) 0%, rgba(79, 70, 229, 0.9) 55%, rgba(37, 99, 235, 0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.banner-skeleton-badge,
.banner-skeleton-title,
.banner-skeleton-line,
.banner-skeleton-button {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.14));
  background-size: 200% 100%;
  animation: bannerSkeletonPulse 1.6s linear infinite;
}

.banner-skeleton-badge {
  width: 180px;
  height: 28px;
}

.banner-skeleton-title {
  width: min(420px, 80%);
  height: 44px;
}

.banner-skeleton-line {
  width: min(560px, 92%);
  height: 18px;
}

.banner-skeleton-line.short {
  width: min(420px, 72%);
}

.banner-skeleton-button {
  width: 170px;
  height: 48px;
  margin-top: 8px;
}

@keyframes bannerSkeletonPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.banner-slider-inner {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  min-width: 100%;
}

.banner-slider-inner.animate {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slider-item {
  width: 75% !important;
  height: 85%;
  flex-shrink: 0;
  /* margin: 0.5% each side → right edge of prev item = 11% - 2×0.5% = 10% visible */
  margin: 0 0.5% !important;
  z-index: 1;
  position: relative;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease, z-index 0.5s ease;
  transform: scale(0.85);
  opacity: 0.4;
  filter: brightness(0.55);
}

.banner-slider-item--html {
  cursor: default;
}

.banner-slider-item.active {
  transform: scale(1);
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.banner-slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-slider-html-frame {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: auto;
}

.banner-slider-html-frame > * {
  width: 100%;
  min-height: 100%;
  flex: 1 0 auto;
}

.banner-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  color: #333;
  transition: all 0.25s;
  z-index: 10;
  opacity: 0;
}

.banner-slider:hover .banner-slider-btn {
  opacity: 1;
}

.banner-slider-btn.prev {
  left: 14px;
}

.banner-slider-btn.next {
  right: 14px;
}

.banner-slider-btn:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.banner-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  z-index: 10;
}

.banner-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-slider-dot.active {
  width: 28px;
  background: var(--primary);
}

@media (max-width: 767.98px) {
  .banner-slider-btn {
    display: none;
  }
}


.home-section {
  margin-bottom: 36px;
}

.home-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.home-section-title i {
  font-size: 22px;
  color: var(--primary);
}

/* Announcements */
.home-announce-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-announce-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 4px solid transparent;
}

.home-announce-item i {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.home-announce-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.home-announce-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.home-announce-item--info {
  background: rgba(37, 99, 235, 0.05);
  border-color: #2563eb;
  color: #2563eb;
}

.home-announce-item--info strong {
  color: var(--text);
}

.home-announce-item--warning {
  background: rgba(245, 158, 11, 0.06);
  border-color: var(--warning);
  color: var(--warning);
}

.home-announce-item--warning strong {
  color: var(--text);
}

.home-announce-item--success {
  background: rgba(16, 185, 129, 0.06);
  border-color: var(--success);
  color: var(--success);
}

.home-announce-item--success strong {
  color: var(--text);
}

/* Policy cards */
.home-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.home-policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-policy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.home-policy-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.home-policy-icon--primary {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.home-policy-icon--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.home-policy-icon--warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.home-policy-icon--danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.home-policy-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.home-policy-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Bottom CTA */
.home-cta-bottom {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(37, 99, 235, 0.03));
  border: 1px dashed rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  margin-top: 8px;
}

.home-cta-bottom p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 20px;
  font-weight: 500;
}

.home-cta-bottom-btn {
  font-size: 16px;
  padding: 14px 36px;
}

/* ==================== CART TABS ==================== */
.cart-tabs {
  display: flex;
  gap: 8px;
  background: transparent;
  margin-bottom: 24px;
}

.cart-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  transition: all 0.2s;
}

.cart-tab:hover {
  border-color: var(--primary);
  color: var(--text);
}

.cart-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cart-tab-panel {
  display: none;
}

.cart-tab-panel.active {
  display: block;
}

/* ==================== COLLAPSIBLE CATEGORIES ==================== */
.cat-collapsed {
  display: none;
}

.category-header {
  transition: background 0.15s;
}

.category-header:hover {
  background: rgba(99, 102, 241, 0.03);
  border-radius: 8px;
}

/* ==================== ORDER CARDS ==================== */
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.order-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.order-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.order-card-detail {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.order-card-detail summary {
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

.order-card-detail pre {
  font-size: 12px;
  background: var(--bg-3);
  border-radius: 8px;
  padding: 10px;
  overflow-x: auto;
  margin-top: 8px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* ==================== NAV MEGA DROPDOWN ==================== */
.nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  min-width: 280px;
  padding: 8px;
}

.nav-dropdown-wrap:hover .nav-mega-dropdown {
  display: block;
}

.nav-mega-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.nav-mega-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mega-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.nav-mega-item:hover {
  background: var(--bg-3);
  color: var(--primary);
}

.nav-mega-item-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: 100px;
}

/* ==================== AFFILIATE PROGRAM ==================== */
.aff-hero {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(37, 99, 235, 0.04));
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.aff-hero--compact {
  margin-bottom: 24px;
}

.aff-hero-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.aff-hero-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--text);
  margin: 0 0 16px;
}

.aff-hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aff-hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.aff-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.aff-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.aff-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.aff-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.aff-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.aff-step p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.aff-requirements {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.aff-requirements h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aff-requirements h3 i {
  font-size: 22px;
  color: var(--primary);
}

.aff-req-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aff-req-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.aff-req-item i {
  font-size: 20px;
  flex-shrink: 0;
}

/* Dashboard stats */
.aff-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.aff-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.aff-stat-balance {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.05));
  border-color: rgba(124, 58, 237, 0.2);
}

.aff-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px;
}

.aff-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aff-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
}

/* Product list */
.aff-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.aff-product-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  gap: 12px;
  border: 1px solid var(--border);
}

.aff-product-name {
  font-size: 14px;
  font-weight: 600;
}

.aff-product-reward {
  font-size: 12px;
  color: var(--success);
  margin-top: 2px;
}

.aff-manual-ref-section {
  margin-bottom: 24px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(124, 58, 237, 0.12));
  display: none;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
  position: relative;
  overflow: hidden;
}

.aff-manual-ref-orb {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
}

.aff-manual-ref-title {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.aff-manual-ref-title-icon {
  margin-right: 10px;
  font-size: 28px;
  color: var(--primary);
}

.aff-manual-ref-desc {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 600px;
  line-height: 1.6;
}

.aff-manual-ref-note {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: var(--warning);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.aff-manual-ref-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.aff-manual-ref-input-wrap {
  position: relative;
  flex: 1;
  max-width: 350px;
}

.aff-manual-ref-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 20px;
  pointer-events: none;
}

.aff-manual-ref-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}

.aff-manual-ref-submit {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.aff-manual-ref-submit-icon {
  margin-right: 6px;
  font-size: 18px;
}

.aff-tier-panel {
  margin-bottom: 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  border: 1px solid rgba(124, 58, 237, 0.2);
  overflow: hidden;
  border-radius: 12px;
}

.aff-tier-pane {
  flex: 1 1 320px;
  min-width: 320px;
}

.aff-tier-code-pane {
  padding: 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), rgba(124, 58, 237, 0.08));
  border-right: 1px solid rgba(124, 58, 237, 0.1);
}

.aff-tier-pane-title {
  margin-bottom: 16px;
}

.aff-tier-pane-title-icon {
  margin-right: 6px;
  color: var(--primary);
}

.aff-tier-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.aff-ref-code-badge {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  background: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  letter-spacing: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.aff-copy-ref-btn {
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.aff-tier-note {
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.aff-tier-note-title {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.aff-tier-note-icon {
  vertical-align: middle;
  font-size: 16px;
  margin-right: 4px;
}

.aff-tier-progress-pane {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.aff-tier-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.aff-tier-progress-label {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.aff-current-tier-heading {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.aff-current-tier-icon {
  margin-right: 8px;
  font-size: 28px;
  color: #f59e0b;
}

.aff-current-tier-name {
  color: #f59e0b;
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.aff-tier-perks-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.aff-tier-benefits-btn {
  font-weight: 700;
  height: fit-content;
  background: var(--bg-1);
}

.aff-tier-benefits-btn i,
.aff-guest-products-title-icon {
  margin-right: 4px;
}

.aff-tier-progress-box {
  background: var(--bg-1);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.aff-tier-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.aff-tier-progress-caption {
  color: var(--text);
}

.aff-tier-progress-target {
  color: var(--text-muted);
}

.aff-tier-progress-track {
  background: var(--bg-3);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aff-tier-progress-fill {
  background: linear-gradient(90deg, #a78bfa, var(--primary));
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.8s ease;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.aff-tier-current-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
}

.aff-stat-icon--success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.aff-stat-icon--warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.aff-tab-shell,
.aff-guest-products {
  margin-bottom: 24px;
}

.aff-panel-desc {
  font-size: 13px;
  margin-bottom: 16px;
}

.aff-requirements-loading {
  padding: 20px;
  color: var(--text-muted);
}

.aff-apply-cta {
  text-align: center;
  margin-top: 28px;
}

.aff-apply-btn {
  padding: 14px 40px;
  font-size: 16px;
}

.aff-apply-error {
  margin-top: 12px;
}

/* Affiliate Catalog Grid (all products for everyone) */
.aff-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.aff-catalog-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.aff-catalog-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.10);
}

.aff-catalog-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-radius: 10px;
  flex-shrink: 0;
}

.aff-catalog-body {
  flex: 1;
  min-width: 0;
}

.aff-catalog-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aff-catalog-commission {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.aff-catalog-label {
  font-size: 12px;
  color: var(--text-muted);
}

.aff-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.aff-reward-badge.aff-reward-none {
  background: var(--bg-3);
  color: var(--text-muted);
  font-weight: 400;
}

/* Affiliate Catalog Group Layout */
.aff-catalog-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.aff-catalog-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-3);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.aff-catalog-group-header .aff-catalog-icon {
  font-size: 24px;
}

.aff-catalog-variants {
  padding: 0;
}

.aff-catalog-variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.aff-catalog-variant-row:last-child {
  border-bottom: none;
}

.aff-variant-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aff-variant-type {
  font-size: 12px;
}

.aff-variant-pt {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text);
}

.aff-variant-reward {
  flex-shrink: 0;
}

/* ==================== ADMIN SETTINGS PAGE ==================== */
.settings-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-3);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.settings-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.settings-tab:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.settings-tab.active {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.settings-panel.hidden {
  display: none;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.settings-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
}

.settings-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
}

.settings-card-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.settings-card-body {
  padding: 24px;
}

.settings-field {
  margin-bottom: 18px;
}

.settings-field:last-child {
  margin-bottom: 0;
}

.settings-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.settings-field label i {
  font-size: 16px;
  color: var(--text-muted);
}

.settings-field .form-input {
  padding-left: 16px !important;
}

/* Policy Editor Grid */
.policy-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 767.98px) {
  .policy-edit-grid {
    grid-template-columns: 1fr;
  }
}

.policy-edit-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.policy-edit-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.policy-edit-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.policy-edit-item .form-input {
  margin-bottom: 8px;
  padding-left: 16px !important;
}

.policy-edit-item .form-input:last-child {
  margin-bottom: 0;
}

.policy-edit-item textarea.form-input {
  resize: vertical;
  font-size: 13px;
}

/* ==================== FLOATING CONTACT WIDGET ==================== */
.back-to-top-btn {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(15, 23, 42, 0.24);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(15, 23, 42, 0.88);
  box-shadow: none;
  cursor: pointer;
  z-index: 880;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.back-to-top-btn:hover {
  color: rgba(79, 70, 229, 0.94);
  transform: translateY(-2px);
}

.back-to-top-btn i {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.contact-widget {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  /* Options ở trên, nút main đè ở dưới */
  align-items: flex-end;
  gap: 12px;
}

/* Wrap nút chính + label text */
.contact-main-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Label text bên cạnh nút (Desktop only) */
.contact-label-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  animation: labelFadeIn 0.5s ease;
  pointer-events: none;
}

@keyframes labelFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

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

/* Nút tròn chính */
.contact-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  flex-shrink: 0;
}

.contact-main-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.35);
  animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.3);
    opacity: 0;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.contact-main-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.6);
}

.contact-main-btn i {
  font-size: 26px;
}

/* Options panel (mở lên trên) */
.contact-options {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  transform-origin: bottom right;
  animation: contactOpen 0.25s ease;
}

.contact-options.hidden {
  display: none;
}

@keyframes contactOpen {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(12px);
  }

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

.contact-tooltip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: var(--shadow);
  margin-bottom: 2px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  min-width: 130px;
  justify-content: flex-start;
}

.contact-option:hover {
  transform: translateX(-4px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.contact-zalo {
  background: #0068FF;
}

.contact-facebook {
  background: #1877F2;
}

.contact-telegram {
  background: #26A5E4;
}

/* Shake animation */
@keyframes shake {

  0%,
  100% {
    transform: rotate(0);
  }

  15% {
    transform: rotate(-12deg);
  }

  30% {
    transform: rotate(12deg);
  }

  45% {
    transform: rotate(-8deg);
  }

  60% {
    transform: rotate(8deg);
  }

  75% {
    transform: rotate(-4deg);
  }

  90% {
    transform: rotate(4deg);
  }
}

.contact-widget.shake .contact-main-btn {
  animation: shake 0.65s ease;
}

/* Mobile: ẩn label text, đẩy widget lên khỏi bottom nav */
@media (max-width: 991.98px) {
  .bottom-nav {
    height: var(--mobile-nav-height);
    min-height: var(--mobile-nav-height);
    padding: 4px 12px 6px;
  }

  .bnav-item {
    padding: 5px 6px 2px;
    border-radius: 16px;
  }

  .bnav-item {
    padding: 4px 4px 0;
    gap: 2px;
    min-height: 0;
  }

  .bnav-item.active i {
    transform: none;
  }

  .bottom-nav .bnav-item::before {
    inset: 2px 4px 2px;
    border-radius: 14px;
  }

  .contact-label-text {
    display: none;
  }

  .back-to-top-btn {
    right: 16px;
    bottom: calc(var(--mobile-nav-height) + 18px);
    width: 36px;
    height: 36px;
  }

  .contact-widget {
    bottom: 84px;
    right: 16px;
  }
}

/* ============ MOBILE MORE MENU ============ */
.bnav-more-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.bnav-more-menu.hidden {
  display: none;
}

.bnav-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.bnav-more-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 8px 0 calc(env(safe-area-inset-bottom, 0px) + 8px);
  animation: slideUp 0.25s ease;
  max-height: 60vh;
  overflow-y: auto;
}

.bnav-more-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.bnav-more-header button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-muted);
  padding: 4px;
}

.bnav-more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.bnav-more-item:hover,
.bnav-more-item:active {
  background: var(--bg-3);
}

.bnav-more-item i {
  font-size: 20px;
  color: var(--primary);
  width: 24px;
  text-align: center;
}

.bnav-soon-badge {
  font-size: 10px;
  background: var(--warning);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* ============ AFFILIATE REQUIREMENT ACTION LINKS ============ */
.aff-req-action {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(37, 99, 235, 0.04));
  transition: var(--transition);
}

.aff-req-action:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.08));
}

.aff-req-item {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ==================== BLOG FEED (FB STYLE) ==================== */
.blog-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-page-shell {
  background: var(--bg-2);
  padding: 20px 0;
  margin: -32px -16px 0;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 24px;
}

.blog-back-wrap {
  margin-bottom: 20px;
}

.btn-surface {
  background: var(--surface);
  border: 1px solid var(--border);
}

.blog-tags-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.blog-tags-scroll::-webkit-scrollbar {
  display: none;
}

.fb-create-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.fb-create-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
}

.fb-input-dummy {
  flex: 1;
  background: var(--bg-2);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.fb-input-dummy:hover {
  background: var(--bg-3);
}

.fb-create-actions {
  display: flex;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.fb-create-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.fb-create-actions button:hover {
  background: var(--bg-2);
}

.fb-create-actions button i {
  font-size: 20px;
}

.fb-post-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.fb-post-card.detail {
  cursor: default;
  padding: 16px;
  padding-bottom: 24px;
}

.fb-post-card:not(.detail):hover {
  border-color: var(--primary-light);
}

.fb-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.fb-post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.fb-post-info strong {
  font-size: 15px;
  color: var(--text);
}

.fb-post-info span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.fb-post-admin-actions {
  display: flex;
  gap: 8px;
}

.fb-post-admin-actions button {
  background: var(--bg-2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.fb-post-admin-actions button:hover {
  background: var(--bg-3);
  color: var(--text);
}

.fb-post-badge-draft {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.fb-post-content {
  padding: 0 16px 12px;
}

.fb-post-img {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: var(--bg-3);
}

.fb-post-img img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.fb-post-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.fb-post-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-tag {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.06));
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Blog Tag Filter */
.blog-tag-filter {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.blog-tag-filter:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.blog-tag-filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Markdown Content Styling (Readme.md style) */
.markdown-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body pre {
  margin-bottom: 16px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.markdown-body h1 {
  font-size: 2em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3em;
}

.markdown-body h2 {
  font-size: 1.5em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3em;
}

.markdown-body h3 {
  font-size: 1.25em;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  box-sizing: content-box;
  background-color: var(--bg-1);
  border-radius: 6px;
}

.markdown-body a {
  color: var(--primary);
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body pre {
  padding: 16px;
  overflow: auto;
  line-height: 1.45;
  background-color: var(--bg-3);
  border-radius: 6px;
}

.markdown-body code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: var(--bg-3);
  border-radius: 6px;
  font-family: monospace;
}

.markdown-body pre code {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  font-size: 100%;
  word-break: normal;
  white-space: pre;
}

.markdown-body blockquote {
  padding: 0 1em;
  color: var(--text-muted);
  border-left: 0.25em solid var(--border);
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 2em;
}

/* Blog Article Detail */
.blog-article-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.blog-article-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.blog-article-header {
  margin-bottom: 28px;
}

.blog-article-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.blog-article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-article-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.blog-article-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 12px;
}

.blog-article-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.blog-article-content p {
  margin: 0 0 16px;
}

.blog-article-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}

.blog-article-content pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

.blog-article-content code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.blog-article-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 16px 0;
  padding: 12px 20px;
  background: var(--bg-3);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.blog-article-content li {
  margin-bottom: 6px;
}

/* ==================== NOTIFICATIONS PAGE ==================== */
.notif-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.notif-page-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-page-badge {
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.notif-actions-bar {
  display: flex;
  gap: 8px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124, 58, 237, 0.04);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-danger-outline:hover {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

.notif-page-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.notif-date-group {
  margin-bottom: 20px;
}

.notif-date-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 4px 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.notif-item:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
  transform: translateX(2px);
}

.notif-item.notif-unread {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(37, 99, 235, 0.03));
  border-left: 3px solid var(--primary);
}

.notif-item.notif-read {
  background: var(--surface);
  border-left: 3px solid transparent;
}

.notif-item.notif-unread::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.notif-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.notif-item-body {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.notif-item-content {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
  word-break: break-word;
}

.notif-item-time {
  font-size: 11.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notif-item-time-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.notif-item-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.notif-item-state--unread {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}

.notif-item-state--read {
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-muted);
}

.notif-item-nav {
  margin-left: auto;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
}

.notif-item-delete {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item:hover .notif-item-delete {
  opacity: 1;
}

.notif-item-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.notif-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.notif-empty-state i {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.5;
  display: block;
}

.notif-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.notif-empty-state p {
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .notif-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notif-item-delete {
    opacity: 1;
  }

  .notif-item-nav {
    display: none;
  }
}

/* ==================== WALLET HISTORY TABS ==================== */
.wallet-tab-bar {
  display: flex;
  gap: 8px;
  background: transparent;
  margin-bottom: 24px;
}

.wallet-tab {
  flex: 1;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.wallet-tab:hover {
  border-color: var(--primary);
  color: var(--text);
}

.wallet-tab.active {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  border-top: none;
  margin-top: 48px;
  padding: 0;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 320px;
}

.card-title-icon {
  margin-right: 6px;
}

.text-muted-caption {
  font-size: 13px;
  margin-bottom: 16px;
}

.form-input-uppercase {
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-links li i {
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 24px;
  }
}

/* ==================== AFFILIATE TAB PANELS ==================== */
.aff-tab-panel {
  display: none;
}

.aff-tab-panel.active {
  display: block;
}

/* ==================== AFFILIATE TABLES ==================== */
.aff-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.aff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.aff-table thead {
  background: var(--bg-2);
}

.aff-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.aff-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.aff-table tbody tr:last-child td {
  border-bottom: none;
}

.aff-table tbody tr {
  transition: background 0.15s;
}

.aff-table tbody tr:hover {
  background: var(--bg-2);
}

.aff-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aff-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary, #6366f1));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.aff-user-name {
  font-weight: 600;
  color: var(--text);
}

.aff-user-email {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.aff-order-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
}

.aff-order-code {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
}

.aff-buyer {
  font-weight: 500;
}

.aff-product-names {
  font-size: 12px;
  color: var(--text-2);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.aff-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 767.98px) {

  .aff-table th,
  .aff-table td {
    padding: 10px 10px;
    font-size: 12px;
  }

  .aff-product-names {
    max-width: 120px;
  }
}

/* ==================== MY ACCOUNTS ==================== */
.my-accounts-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.my-accounts-tab {
  min-height: 48px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  background: var(--surface, #fff);
  color: var(--text-muted, #64748b);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.my-accounts-tab:hover,
.my-accounts-tab.active {
  border-color: var(--primary, #7c3aed);
  color: var(--primary, #7c3aed);
  background: rgba(124, 58, 237, 0.08);
}

/* ==================== UNIFIED SECTION TABS ==================== */
.shop-tabs,
.cart-tabs,
.wallet-history-tabs .wallet-tab-bar,
.my-accounts-tabs {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0;
  overflow: visible;
}

.shop-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cart-tabs,
.wallet-history-tabs .wallet-tab-bar,
.my-accounts-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-tab,
.cart-tab,
.wallet-history-tabs .wallet-tab,
.my-accounts-tab {
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  background: var(--surface, #fff);
  color: var(--text-muted, #64748b);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none;
}

.shop-tab i,
.cart-tab i,
.wallet-history-tabs .wallet-tab i,
.my-accounts-tab i {
  font-size: 18px;
  flex-shrink: 0;
}

.shop-tab:hover,
.cart-tab:hover,
.wallet-history-tabs .wallet-tab:hover,
.my-accounts-tab:hover,
.shop-tab.active,
.cart-tab.active,
.wallet-history-tabs .wallet-tab.active,
.my-accounts-tab.active {
  border-color: var(--primary, #7c3aed);
  color: var(--primary, #7c3aed);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: none;
}

.shop-tab .i18n-text,
.cart-tab,
.wallet-history-tabs .wallet-tab,
.my-accounts-tab {
  white-space: normal;
}

.my-accounts-section {
  margin-bottom: 24px;
}

.my-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.my-account-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.my-account-card:hover {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

.my-account-pending {
  border-left: 3px solid var(--warning, #f59e0b);
}

.my-account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  gap: 12px;
}

.my-account-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text, #1e293b);
}

.my-account-meta {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
}

.my-account-details {
  padding: 14px 18px 16px;
}

.my-account-cred {
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.my-account-cred:last-of-type {
  margin-bottom: 12px;
}

.my-account-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text, #334155);
}

.my-account-field i {
  color: var(--primary, #7c3aed);
  font-size: 16px;
  flex-shrink: 0;
}

.my-account-field strong {
  color: var(--text-muted, #64748b);
  font-weight: 600;
  min-width: 80px;
}

.my-account-field span {
  word-break: break-all;
}

.my-account-service-info {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
}

@media (max-width: 767.98px) {
  .shop-tabs,
  .cart-tabs,
  .wallet-history-tabs .wallet-tab-bar,
  .my-accounts-tabs {
    gap: 8px;
  }

  .shop-tab,
  .wallet-history-tabs .wallet-tab,
  .cart-tab,
  .my-accounts-tab {
    min-height: 44px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .shop-tab i,
  .wallet-history-tabs .wallet-tab i,
  .cart-tab i,
  .my-accounts-tab i {
    font-size: 16px;
  }

  .my-accounts-grid {
    grid-template-columns: 1fr;
  }

  .my-account-header {
    padding: 12px 14px 10px;
  }

  .my-account-details {
    padding: 10px 14px 14px;
  }
}

.my-account-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e2e8f0);
}

.my-account-actions .btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
}

.my-account-actions .btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary, #7c3aed);
  color: var(--primary, #7c3aed);
  cursor: pointer;
  transition: all 0.2s;
}

.my-account-actions .btn-outline:hover {
  background: var(--primary, #7c3aed);
  color: #fff;
}

/* Detail Modal */
.ma-detail-popup {
  border-radius: 16px !important;
}

.ma-detail {
  text-align: left;
}

.ma-detail-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  margin-bottom: 16px;
}

.ma-detail-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text, #1e293b);
}

.ma-detail-meta {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
}

.ma-detail-section {
  margin-bottom: 20px;
}

.ma-detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #334155);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border, #e2e8f0);
}

.ma-detail-section-title i {
  color: var(--primary, #7c3aed);
  font-size: 18px;
}

.ma-detail-content {
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text, #475569);
}

/* Container for rich HTML from DB templates (warranty/note/guide) */
.ma-detail-html-content {
  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  --secondary: #a855f7;
  --border-focus: rgba(139, 92, 246, 0.45);
  border-radius: 10px;
  overflow: hidden;
}

.ma-detail-popup .swal2-html-container {
  max-height: 70vh;
  overflow-y: auto;
}

/* ==================== STAGE 4 + RESPONSIVE QA ==================== */
.btn,
.form-input,
.form-select {
  min-height: 44px;
}

.form-input,
.form-select {
  min-width: 0;
}

.form-input.otp-input {
  letter-spacing: min(12px, 2.8vw);
}

.voucher-row>* {
  min-width: 0;
}

.cart-item-info,
.profile-info,
.notif-page-header-left,
.notif-item-body {
  min-width: 0;
}

.qr-wrap {
  width: min(100%, 320px);
}

.qr-image {
  width: min(240px, 100%);
  max-width: 100%;
  height: auto;
}

.qr-info-row strong {
  max-width: none;
  width: 100%;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 991.98px) {

  .modal-overlay,
  .auth-modal-overlay {
    padding: 16px;
  }

  .modal-box,
  .modal-box.modal-large,
  #modal-ctv-detail .modal-box,
  #modal-guest-warning .modal-box,
  #modal-tier-benefits .modal-box {
    width: 100%;
    max-width: min(90vw, 820px) !important;
    padding: 20px;
  }

  #modal-product .modal-box,
  #modal-order .modal-box,
  #modal-qr .modal-box {
    max-width: min(92vw, 960px) !important;
    padding: 0;
  }

  #modal-qr .modal-box {
    max-width: min(92vw, 560px) !important;
    padding: 24px;
  }

  .auth-modal-inner {
    width: 100%;
    max-width: min(90vw, 560px);
    padding: 24px;
  }

  .modal-close,
  .auth-modal-close {
    width: 40px;
    height: 40px;
  }

  .pd-left,
  .pd-checkout-body,
  .pd-checkout-header {
    padding: 20px;
  }

  .summary-card,
  .form-card,
  .profile-card {
    padding: 20px;
  }

  .profile-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .voucher-row,
  .notif-actions-bar {
    flex-wrap: wrap;
  }

  .voucher-row>*,
  .notif-actions-bar>* {
    flex: 1 1 100%;
  }

  .notif-page-header-left {
    flex-wrap: wrap;
  }

  .notif-page-list {
    max-height: none;
    padding-right: 0;
  }

  .qr-info-row {
    gap: 12px;
  }

  #aff-manual-ref-section {
    padding: 24px !important;
  }

  .aff-manual-ref-row {
    flex-wrap: wrap;
    align-items: stretch !important;
  }

  .aff-manual-ref-row>* {
    max-width: none !important;
  }

  .aff-tier-pane {
    min-width: 100% !important;
  }

  .aff-tier-code-pane {
    border-right: none !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1) !important;
  }
}

@media (max-width: 767.98px) {

  .modal-overlay,
  .auth-modal-overlay {
    padding: 12px;
    align-items: center;
  }

  #modal-product.modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal-box,
  .modal-box.modal-large,
  #modal-ctv-detail .modal-box,
  #modal-guest-warning .modal-box,
  #modal-tier-benefits .modal-box {
    width: 100%;
    max-width: 94vw !important;
    max-height: calc(100dvh - 24px);
    padding: 18px 16px;
    border-radius: 16px;
  }

  #modal-product .modal-box,
  #modal-order .modal-box,
  #modal-qr .modal-box {
    max-width: 94vw !important;
    padding: 18px 16px;
  }

  #order-detail-content {
    padding: 22px;
    padding-top: 58px;
  }

  .qr-meta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .qr-status {
    justify-content: center;
  }

  .qr-countdown {
    text-align: center;
  }

  .qr-info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .qr-info-row strong {
    text-align: left;
  }

  .order-success-item-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #modal-product .modal-box {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    height: 100dvh;
    border-radius: 0;
    margin: 0 !important;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 16px);
  }

  .auth-modal-inner {
    max-width: 94vw;
    max-height: calc(100dvh - 24px);
    padding: 20px 16px;
    border-radius: 16px;
  }

  .auth-card {
    padding: 0 !important;
  }

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

  .form-input,
  .form-select {
    font-size: 16px;
  }

  .form-input.otp-input {
    font-size: 20px;
    letter-spacing: 8px;
    padding: 12px;
  }

  .pd-left,
  .pd-checkout-header,
  .pd-checkout-body {
    padding: 16px;
  }

  .netflix4k-hero,
  .netflix4k-card-content,
  .other-services-hero,
  .other-service-card-content,
  .other-service-section {
    padding: 22px 18px;
  }

  .netflix4k-actions,
  .other-service-section-footer {
    flex-direction: column;
  }

  .netflix4k-actions .btn,
  .other-service-link-btn {
    width: 100%;
  }

  .netflix4k-points span {
    width: 100%;
    justify-content: flex-start;
  }

  .pd-selected-variant,
  .pd-checkout-total {
    padding: 14px;
  }

  .cart-item {
    padding: 16px;
    align-items: flex-start;
  }

  .cart-header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .cart-select-all {
    min-height: 36px;
    padding-inline: 12px;
  }

  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cart-item-price {
    font-size: 15px;
  }

  .cart-item-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 24px;
  }

  .summary-card,
  .form-card,
  .profile-card {
    padding: 16px;
  }

  .profile-card {
    gap: 16px;
  }

  .wallet-cards-row {
    gap: 12px;
  }

  .qr-wrap {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
    padding: 8px;
  }

  .qr-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .qr-info-row strong {
    max-width: 100%;
    text-align: left;
  }

  .qr-status {
    justify-content: flex-start;
  }

  .notif-page-header {
    gap: 10px;
  }

  .notif-actions-bar {
    width: 100%;
  }

  .notif-item {
    padding: 14px 14px 14px 16px;
    gap: 12px;
  }

  .notif-item-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  #aff-manual-ref-section {
    padding: 20px !important;
  }

  .aff-manual-ref-row {
    flex-direction: column;
  }

  .aff-manual-ref-row>* {
    width: 100%;
  }

  .aff-tier-progress-header {
    flex-direction: column !important;
    gap: 16px;
  }
}

/* ==================== MOBILE POLISH ==================== */
html,
body {
  overscroll-behavior-x: none;
}

.page-container,
.modal-box,
.auth-modal-inner,
.pd-left,
.pd-checkout-box,
.notif-page-list {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
  .main-content,
  .page-container,
  .app-view {
    scroll-padding-bottom: calc(var(--mobile-nav-space) + 16px);
  }

  .page-container {
    padding-bottom: calc(var(--mobile-nav-space) + 32px) !important;
  }

  .bottom-nav {
    height: var(--mobile-nav-height);
    min-height: var(--mobile-nav-height);
    padding: 4px 12px 6px;
  }

  .contact-widget {
    bottom: calc(var(--mobile-nav-space) + 18px);
    right: 14px;
    z-index: 190;
  }

  .toast-container {
    right: 16px;
    left: 16px;
    bottom: calc(var(--mobile-nav-space) + 4px);
  }

  .site-footer {
    padding-bottom: calc(var(--mobile-nav-space) + 12px);
  }

  .footer-bottom {
    padding-bottom: calc(var(--mobile-nav-space) + 16px);
  }

  .toast {
    min-width: 0;
    max-width: 100%;
  }

  .wallet-tab-bar {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .wallet-tab-bar::-webkit-scrollbar {
    display: none;
  }

  .wallet-tab {
    flex: 0 0 auto;
    min-width: 160px;
  }

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

  .radio-card strong,
  .radio-card span {
    word-break: break-word;
  }

  .my-account-actions {
    flex-wrap: wrap;
  }

  .my-account-actions .btn-sm {
    flex: 1 1 140px;
    min-height: 44px;
  }
}

@media (max-width: 767.98px) {
  .page-container {
    padding-bottom: calc(var(--mobile-nav-space) + 48px) !important;
  }

  .wallet-tab {
    min-width: 148px;
    padding: 9px 14px;
    font-size: 13px;
    gap: 5px;
  }

  .wallet-tab i {
    font-size: 16px;
  }

  .bottom-nav {
    padding: 4px 8px 6px;
  }

  .bnav-item {
    min-height: 0;
    padding: 5px 4px 2px;
    border-radius: 14px;
  }

  .bnav-item i {
    font-size: 22px;
  }

  .bnav-item span {
    font-size: 10px;
    line-height: 1.2;
  }

  .toast-container {
    gap: 10px;
  }

  .toast {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .toast-msg {
    font-size: 13px;
  }

  .contact-option {
    min-width: 0;
    width: max-content;
    max-width: min(78vw, 220px);
    padding: 8px 12px;
    font-size: 13px;
  }

  .contact-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact-main-btn {
    width: 54px;
    height: 54px;
  }

  .contact-main-btn i {
    font-size: 22px;
  }

  .aff-product-grid,
  .aff-catalog-grid {
    grid-template-columns: 1fr;
  }

  .aff-catalog-item {
    padding: 14px;
  }

  .blog-article-card {
    padding: 18px 16px;
  }

  .blog-article-title {
    font-size: 24px;
  }

  .blog-article-content,
  .markdown-body {
    font-size: 14px;
  }

  .profile-info h3 {
    font-size: 18px;
  }

  .wallet-amount {
    font-size: 28px;
  }
}

/* ==================== DYNAMIC RENDER CLEANUP ==================== */
.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
}

.avatar-initial--sm {
  font-size: 16px;
}

.avatar-initial--lg {
  font-size: 28px;
}

.empty-state--surface {
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.empty-state--padded {
  padding: 48px;
}

.empty-state--panel {
  padding: 24px;
}

.empty-state--full {
  grid-column: 1 / -1;
}

.empty-state-link,
.my-accounts-empty-link {
  margin-top: 8px;
}

.empty-state-icon-muted {
  font-size: 48px;
  opacity: 0.3;
}

.empty-state-icon-muted-sm {
  font-size: 32px;
  opacity: 0.4;
}

.result-message {
  margin-top: 8px;
}

.result-message.form-success,
.result-message.form-error {
  margin-bottom: 0;
}

.status-text-success {
  color: var(--success);
}

.status-text-warning {
  color: var(--warning);
}

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

.text-success-strong {
  color: var(--success);
}

.text-muted-compact {
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0;
}

.text-muted-small {
  color: var(--text-muted);
  font-size: 12px;
}

.copy-btn--spaced {
  margin-top: 8px;
}

.swal-info-form,
.swal-withdraw-form {
  text-align: left;
}

.swal-info-form {
  margin-bottom: 12px;
}

.swal-withdraw-form {
  margin-bottom: 8px;
}

.swal-info-form-note,
.swal-withdraw-balance {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px;
}

.swal-info-form-note strong,
.swal-withdraw-balance strong {
  color: var(--warning);
}

.swal-withdraw-balance strong {
  color: var(--primary);
}

.swal-info-form-field {
  margin-bottom: 16px;
  text-align: left;
}

.swal-info-form-label,
.swal-withdraw-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.swal-info-form-required {
  color: var(--danger);
}

.swal-info-form-input,
.swal-withdraw-input {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.swal-info-form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.swal-info-form-hint,
.swal-withdraw-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.swal-withdraw-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #999;
}

.service-order-wait {
  text-align: center;
  padding: 8px 0;
}

.service-order-wait-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.service-order-wait-title {
  margin: 0 0 12px;
  font-size: 15px;
  color: #334155;
}

.service-order-wait-code {
  color: #4f46e5;
}

.service-order-wait-callout {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  background: #fef3c7;
}

.service-order-wait-callout-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
}

.service-order-wait-callout-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: #a16207;
}

.order-success-title {
  margin-bottom: 16px;
}

.cart-qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.order-code-strong {
  margin-bottom: 3px;
  font-weight: 700;
}

.order-badge-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-detail-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.order-detail-note {
  margin-bottom: 16px;
}

.order-delivery-pending {
  padding: 20px;
  text-align: center;
}

.order-card-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-card-total {
  color: var(--primary);
}

/* ==================== LIST ITEM TYPOGRAPHY SYNC ==================== */
.tx-desc,
.order-code-strong,
.order-card-name,
.my-account-name {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.order-items,
.order-failure-reason,
.order-failure-box-text,
.my-account-field,
.my-account-service-info {
  font-size: 13px;
  line-height: 1.5;
}

.tx-meta,
.tx-status,
.order-code,
.order-card-meta,
.order-date,
.my-account-meta {
  font-size: 12px;
  line-height: 1.4;
}

.tx-amount,
.order-total,
.order-card-total {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.order-delivered-list {
  margin: 8px 0 0 16px;
  padding: 0;
  font-size: 13px;
}

.order-delivered-code {
  color: var(--primary);
}

.blog-feed-empty {
  padding: 48px;
}

.fb-post-content--spaced {
  padding-top: 8px;
}

.fb-post-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.icon-facebook-like {
  color: #1877f2;
}

.blog-article-content--framed {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.my-accounts-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
}

.section-header .my-accounts-section-title {
  margin-bottom: 0;
}

.my-accounts-section-title i {
  font-size: 20px;
}

.my-accounts-section-title .ph-user-circle {
  color: var(--primary);
}

.my-accounts-section-title .ph-wrench {
  color: var(--warning);
}

.my-accounts-section-title .ph-shopping-cart,
.my-accounts-section-title .ph-clock-clockwise {
  color: var(--primary);
}

.my-accounts-section--spaced {
  margin-top: 32px;
}

.ma-detail-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}

.ma-detail-empty i {
  font-size: 24px;
}

.ma-detail-empty p {
  margin-top: 8px;
}

.notif-item-icon--success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.notif-item-icon--warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}

.notif-item-icon--error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.notif-item-icon--info {
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary);
}

.category-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-cover-fallback[hidden] {
  display: none !important;
}

.pc-price--discounted {
  font-size: 13.5px;
}

.pc-price--single {
  font-size: 15px;
}

.pc-price-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.pc-price-old--compact {
  font-size: 10.5px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pc-discount-badge,
.vo-discount-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.vo-discount-badge {
  padding-inline: 4px;
}

.vo-discount-badge--placeholder {
  background: transparent;
  color: transparent;
}

.vo-discount-row--placeholder {
  visibility: hidden;
}

.pc-type-badge--compact {
  padding: 3px 8px;
  font-size: 10px;
}

.pc-short-desc--muted,
.qty-row-label,
.pd-selected-price {
  color: var(--text-muted);
  font-size: 13px;
}

.qty-row-label {
  flex-shrink: 0;
}

.qty-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-section-block {
  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  --secondary: #a855f7;
  --border-focus: rgba(139, 92, 246, 0.45);
  margin-top: 24px;
}

.pd-section-block.hidden {
  display: none;
}

.pd-checkout-btn {
  width: 100%;
}

.pd-selected-variant-icon--account {
  color: var(--success);
}

.pd-selected-variant-icon--service {
  color: var(--warning);
}

.pd-selected-service-tag {
  color: var(--warning);
  font-size: 10px;
  font-weight: 600;
}

.swal-affiliate-note {
  margin-top: 10px;
  padding: 12px;
  text-align: left;
  font-size: 13px;
  border-left: 4px solid var(--warning);
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.1);
}

.swal-affiliate-note strong {
  color: var(--warning);
}

.swal-affiliate-note i {
  vertical-align: middle;
}

.lucky-money-swal {
  padding: 10px 0;
  text-align: center;
}

.lucky-money-swal-icon {
  margin-bottom: 12px;
  font-size: 56px;
  animation: bounce 0.6s;
}

.lucky-money-swal-title {
  margin-bottom: 16px;
  font-size: 15px;
  color: #666;
}

.lucky-money-swal-amount {
  margin-bottom: 8px;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lucky-money-swal-note {
  font-size: 14px;
  color: #888;
}

.pd-empty-state {
  padding: 12px 0;
  font-size: 14px;
}

.pd-short-desc {
  margin-top: 6px;
}

.pd-selected-price {
  font-size: 12px;
}

.swal-payment-grid {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.swal-payment-option {
  flex: 1;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: 0.2s;
}

.swal-payment-option:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.swal-payment-option.selected {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
}

.swal-payment-option-icon {
  margin-bottom: 8px;
  font-size: 24px;
}

.swal-payment-option-icon--wallet {
  color: var(--primary);
}

.swal-payment-option-icon--qr {
  color: var(--success);
}

.swal-payment-option-title {
  font-weight: 600;
}

.aff-req-item--success {
  color: var(--success);
}

.aff-req-item--danger {
  color: var(--danger);
}

.aff-req-success {
  padding: 15px;
  text-align: center;
  color: var(--success);
}

.aff-product-item--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.aff-product-item--spread {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.aff-product-info--compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aff-product-info--spaced {
  margin-bottom: 12px;
}

.aff-product-icon--large {
  display: inline-block;
  flex-shrink: 0;
  font-size: 36px;
  line-height: 1;
}

.aff-product-name--strong {
  margin-bottom: 4px;
  font-weight: 700;
  line-height: 1.3;
}

.aff-product-meta {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.aff-product-reward {
  font-size: 13px;
  font-weight: 600;
}

.aff-product-copy-btn {
  width: 100%;
  border-radius: 8px;
}

.aff-table-align-right {
  text-align: right;
}

.aff-table-value {
  color: var(--primary);
}

.aff-badge-small {
  font-size: 11px;
}

.tx-status--spaced {
  margin-top: 6px;
}

.swal-withdraw-hint {
  display: block;
}

.tier-benefit-card {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--bg);
}

.tier-benefit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tier-benefit-name {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-benefit-name--dong {
  color: #f59e0b;
}

.tier-benefit-name--bac {
  color: #94a3b8;
}

.tier-benefit-name--vang {
  color: #fbbf24;
}

.tier-benefit-name--kim-cuong {
  color: #3b82f6;
}

.tier-benefit-req {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.tier-benefit-meta {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.tier-benefit-meta-item {
  display: inline-block;
}

.tier-benefit-meta-item+.tier-benefit-meta-item {
  margin-left: 12px;
}

.tier-benefit-meta-item i {
  margin-right: 4px;
}

.tier-benefit-meta-item .ph-clock {
  color: var(--primary);
}

.tier-benefit-meta-item .ph-coins {
  color: var(--success);
}

.qr-status-message {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==================== MOBILE DENSITY REFINEMENTS ==================== */
@media (max-width: 767.98px) {

  .btn-outline,
  .btn-danger-outline {
    padding: 8px 12px;
    font-size: 12px;
    gap: 5px;
  }

  .home-section-title i,
  .home-announce-item i {
    font-size: 18px;
  }

  .pc-cover-fallback {
    font-size: 32px;
  }

  .pc-promo-tag,
  .pc-stock,
  .pc-variant-pill,
  .pc-price-old,
  .pc-short-desc,
  .bnav-item span,
  .aff-date,
  .notif-item-time {
    font-size: 12px;
  }

  .pc-price {
    font-size: 13px;
  }

  .empty-state,
  .loading-state,
  .notif-empty-state {
    padding: 40px 16px;
  }

  .empty-state i,
  .notif-empty-state i {
    font-size: 44px;
    margin-bottom: 12px;
  }

  .empty-state p,
  .notif-empty-state p {
    font-size: 13px;
  }

  .order-card {
    padding: 14px 16px;
  }

  .order-card-top {
    gap: 10px;
  }

  .aff-hero {
    padding: 28px 16px;
    margin-bottom: 24px;
  }

  .aff-hero-icon {
    font-size: 42px;
  }

  .aff-hero-title {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 12px;
  }

  .aff-hero-sub {
    font-size: 14px;
    line-height: 1.6;
  }

  .aff-step,
  .aff-stat-card,
  .aff-requirements {
    padding: 18px 14px;
  }

  .aff-step-num {
    width: 36px;
    height: 36px;
    font-size: 16px;
    margin-bottom: 12px;
  }

  .aff-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .aff-stat-value {
    font-size: 20px;
  }

  .aff-catalog-item {
    gap: 12px;
    padding: 12px;
  }

  .aff-catalog-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .blog-article-header {
    margin-bottom: 20px;
  }

  .blog-article-title {
    font-size: 22px;
  }

  .blog-article-meta {
    gap: 10px;
    font-size: 12px;
  }

  .blog-article-content h2 {
    font-size: 18px;
    margin: 24px 0 10px;
  }

  .blog-article-content h3 {
    font-size: 16px;
    margin: 18px 0 8px;
  }

  .my-account-actions .btn-sm {
    padding: 8px 10px;
    font-size: 12px;
  }

  .footer-main {
    padding: 28px 16px 24px;
    gap: 24px;
  }

  .footer-logo-text {
    font-size: 18px;
  }

  .footer-socials a {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .wallet-amount {
    font-size: 24px;
  }
}

/* ============================================================
   MOBILE OVERFLOW FIX - No Horizontal Scroll
   Prevents ALL elements from causing page to scroll left/right
   ============================================================ */
@media (max-width: 767.98px) {

  /* Root level lockout */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  /* App view wrapper */
  .app-view,
  .main-content,
  .page-container,
  .page {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Toast: clamp width on mobile */
  .toast {
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    width: auto !important;
  }

  .toast-container {
    left: 16px !important;
    right: 16px !important;
    bottom: 80px !important;
    max-width: calc(100vw - 32px) !important;
  }

  /* Product detail: stack instead of side-by-side rigid 320px layout */
  .pd-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-left: none !important;
    border-top: 1px solid var(--border);
  }

  /* Affiliate tier pane */
  .aff-tier-pane {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* Wallet cards row */
  .wallet-cards-row {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .wallet-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Tables: scroll within their own box not the page */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* Modal boxes: never wider than viewport */
  .modal-box {
    max-width: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
  }

  /* Auth modal inner */
  .auth-modal-inner {
    max-width: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
  }

  /* Grids/flex: prevent them from overflowing */
  .product-grid,
  .home-policy-grid,
  .section-header,
  .filter-bar {
    max-width: 100%;
    overflow-x: hidden;
  }

  .date-filter-group {
    width: 100%;
    align-items: stretch;
  }

  .date-filter-group--compact {
    justify-content: flex-start;
  }

  .date-filter-group input[type="date"],
  .date-filter-group .btn {
    flex: 1 1 130px;
  }

  .date-filter-separator {
    align-self: center;
  }

  .history-filter-row {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .history-status-filter {
    flex: 1 1 160px;
    width: auto;
  }

  /* Category tabs: ok to scroll internally, not the page */
  .shop-tabs {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
  }

  .shop-results-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-category-chip {
    padding: 9px 12px;
    font-size: 12px;
  }

  /* Admin tables wrapper */
  .admin-table-wrap,
  .table-responsive {
    max-width: 100%;
    overflow-x: auto;
  }

  /* Banner slider: transform-based, must NOT be constrained */
  .banner-slider {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  .banner-slider-inner {
    max-width: none !important;
  }
}

/* ==================== SHOP VISUAL SPOTLIGHT ==================== */
#page-shop {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 30px;
  padding: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 23, 42, 0.06), transparent 32%),
    radial-gradient(circle at 94% 10%, rgba(20, 184, 166, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef6f4 46%, #f7f3ea 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 24px 70px rgba(15, 23, 42, 0.08);
}

#page-shop::before,
#page-shop::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

#page-shop::before {
  width: 360px;
  height: 360px;
  top: -170px;
  right: -120px;
  background: rgba(20, 184, 166, 0.1);
}

#page-shop::after {
  width: 280px;
  height: 280px;
  left: -110px;
  bottom: 18%;
  background: rgba(245, 158, 11, 0.1);
}

#page-shop > * {
  position: relative;
  z-index: 1;
}

#page-shop .section-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  letter-spacing: -0.02em;
}

#page-shop .section-title::after {
  content: "";
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f172a, #14b8a6, #f59e0b);
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.18);
}

#page-shop .shop-tabs {
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6)),
    linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(20, 184, 166, 0.07));
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px);
}

#page-shop .shop-tab {
  min-height: 52px;
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #475569;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#page-shop .shop-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.34);
  color: #0f766e;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#page-shop .shop-tab.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 54%, #0f766e 100%);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#page-shop .shop-tab.active i,
#page-shop .shop-tab.active .i18n-text {
  color: #fff;
}

#page-shop .filter-bar {
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

#page-shop .filter-search {
  min-height: 48px;
  border-color: rgba(20, 184, 166, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#page-shop .filter-search:focus {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

#page-shop .shop-category-strip {
  gap: 12px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

#page-shop .shop-category-chip {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

#page-shop .shop-category-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.32);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

#page-shop .shop-category-chip.active {
  border-color: rgba(20, 184, 166, 0.4);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(245, 158, 11, 0.1));
  color: #0f766e;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

#page-shop .shop-results-summary {
  position: relative;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

#page-shop .shop-results-summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #0f172a, #14b8a6);
}

#page-shop .category-section {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

#page-shop .category-header {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(20, 184, 166, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#page-shop .category-title {
  background: linear-gradient(135deg, #0f172a, #0f766e);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

#page-shop .category-count {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

#page-shop .product-card-v2 {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

#page-shop .product-card-v2:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

@media (max-width: 767.98px) {
  #page-shop {
    margin-inline: -2px;
    padding: 14px 10px 24px;
    border-radius: 22px;
  }

  #page-shop .shop-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
  }

  #page-shop .shop-tab {
    flex: 0 0 auto;
    min-width: 168px;
    min-height: 46px;
  }

  #page-shop .shop-category-strip {
    border-radius: 18px;
    padding: 6px;
  }

  #page-shop .category-section {
    padding: 14px;
  }

  #page-shop .category-header {
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
  }
}
