@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   Apon Store — Modern Fintech Design System
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-glow: rgba(37, 99, 235, 0.25);
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-border: rgba(226, 232, 240, 0.85);
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(226, 232, 240, 0.7);
  --shadow-card-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 20px 35px -8px rgba(37, 99, 235, 0.1), 0 0 0 1px rgba(191, 219, 254, 0.8);
  --radius-card: 1.25rem;
  --radius-button: 0.75rem;
}

/* Global Reset & Typography */
html {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.45) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(207, 250, 254, 0.35) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(241, 245, 249, 0.7) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
}

/* Headings & Text */
h1, h2, h3, h4, h5, h6 {
  color: #0f172a;
  letter-spacing: -0.025em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

h1 { letter-spacing: -0.035em; }

p {
  color: #475569;
  line-height: 1.6;
}

/* Header (Never use filter or backdrop-filter here to avoid breaking fixed position on children) */
header {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  perspective: none !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02) !important;
}

.public-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.public-nav a {
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  transition: all 0.2s ease;
}

.public-nav a:hover {
  color: var(--color-primary);
  background: rgba(239, 246, 255, 0.8);
}

.public-nav { display: none; }
.public-nav.public-nav-visible { display: flex; }

@media (max-width: 767px) {
  .public-nav,
  .public-nav.public-nav-visible {
    display: none !important;
  }
}

/* ==========================================================================
   Account Navigation: Mobile Docked Bottom Bar + Desktop Header Bar
   ========================================================================== */

#account-nav.hidden { display: none !important; }

/* Desktop Navigation (>= 1024px) */
@media (min-width: 1024px) {
  #account-nav:not(.hidden) {
    position: static !important;
    display: flex !important;
    flex: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  #account-nav a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.75rem !important;
    white-space: nowrap !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  #account-nav a:hover {
    background: #eff6ff !important;
    color: var(--color-primary) !important;
    transform: translateY(-1px) !important;
  }

  #account-nav a.active {
    background: #eff6ff !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.8) !important;
  }

  #account-nav a span {
    display: inline !important;
    font-size: 0.85rem !important;
  }

  body.with-bottom-nav,
  body:has(#account-nav:not(.hidden)) {
    padding-bottom: 0 !important;
  }
}

/* Mobile & Tablet Docked Bottom Navigation (< 1024px) */
@media (max-width: 1023px) {
  #account-nav:not(.hidden) {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.95) !important;
    background: #ffffff !important;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
  }

  #account-nav a {
    display: flex !important;
    min-height: 3.25rem !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.25rem 0.15rem !important;
    border-radius: 0.75rem !important;
    color: #64748b !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }

  #account-nav a:active,
  #account-nav a.active {
    background: #eff6ff !important;
    color: var(--color-primary) !important;
    border-radius: 0.75rem !important;
  }

  #account-nav a svg {
    display: block !important;
    width: 1.35rem !important;
    height: 1.35rem !important;
    margin-bottom: 2px !important;
  }

  #account-nav a img,
  #account-nav a .account-products-logo,
  #account-nav a .account-deposit-logo,
  #account-nav a .account-withdraw-logo,
  #account-nav a .account-invite-logo,
  #account-nav a .account-home-logo {
    display: block !important;
    width: 1.35rem !important;
    height: 1.35rem !important;
    object-fit: contain !important;
    margin-bottom: 2px !important;
  }

  #account-nav a span {
    display: block !important;
    font-size: 0.625rem !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  body.with-bottom-nav,
  body:has(#account-nav:not(.hidden)) {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)) !important;
  }
}

#account-nav .account-products-logo,
#account-nav .account-deposit-logo,
#account-nav .account-withdraw-logo,
#account-nav .account-invite-logo,
#account-nav .account-home-logo {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  transition: transform 0.2s ease;
}

#account-nav svg {
  display: none;
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Remove distracting bounces */
#account-nav .account-home-logo {
  animation: none !important;
}

@keyframes account-home-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Action Icons on Buttons */
.with-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.with-action-icon svg {
  flex: 0 0 auto;
}

/* ==========================================================================
   Cards & Surfaces Overhaul
   ========================================================================== */

/* Universal Card Elevations */
.rounded-2xl.border.bg-white,
.rounded-3xl.border.bg-white,
article.rounded-2xl.border.bg-white,
section.rounded-2xl.border.bg-white,
section.rounded-3xl.border.bg-white,
form.rounded-2xl.border.bg-white,
form.rounded-3xl.border.bg-white {
  background: #ffffff !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
}

/* Interactive Card Hovers */
#balance-card > article,
#requests-list > article,
#products-list > article,
#admin-stats > article,
.product-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
}

#balance-card > article:hover,
#admin-stats > article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover) !important;
  border-color: rgba(191, 219, 254, 0.8) !important;
}

/* Inner List Cards & Timeline items */
#transaction-history,
#transactions-panel,
#notification-list,
#notifications-panel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#transaction-history > article,
#notification-list > article {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#transaction-history > div,
#notification-list > div,
#invited-users > div {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 0.875rem !important;
  transition: all 0.2s ease !important;
}

#transaction-history > div:hover,
#notification-list > div:hover,
#invited-users > div:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  transform: translateX(2px);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

/* Primary CTA Buttons */
.bg-blue-600,
.buy-plan,
button[type="submit"]:not(.border):not(.bg-slate-900):not(.bg-emerald-600) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 4px 14px -1px var(--color-primary-glow), inset 0 1px 0 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

.bg-blue-600:hover,
.buy-plan:hover,
button[type="submit"]:not(.border):not(.bg-slate-900):not(.bg-emerald-600):hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  box-shadow: 0 8px 22px -3px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1.5px) !important;
}

.bg-blue-600:active,
.buy-plan:active,
button[type="submit"]:not(.border):not(.bg-slate-900):not(.bg-emerald-600):active {
  transform: translateY(0.5px) !important;
  box-shadow: 0 2px 6px -1px var(--color-primary-glow) !important;
}

/* Emerald Action Buttons */
.bg-emerald-600 {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px -1px rgba(5, 150, 105, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

.bg-emerald-600:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  box-shadow: 0 8px 22px -3px rgba(5, 150, 105, 0.45) !important;
  transform: translateY(-1.5px) !important;
}

/* Slate Dark Buttons */
.bg-slate-900 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px -1px rgba(15, 23, 42, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

.bg-slate-900:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 20px -3px rgba(15, 23, 42, 0.35) !important;
}

/* Secondary / Outline Buttons */
button.border:not(.bg-blue-600):not(.bg-emerald-600):not(.bg-slate-900),
a.border:not(.bg-blue-600):not(.bg-emerald-600):not(.bg-slate-900),
#admin-logout,
#logout {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

button.border:hover:not(.bg-blue-600):not(.bg-emerald-600):not(.bg-slate-900),
a.border:hover:not(.bg-blue-600):not(.bg-emerald-600):not(.bg-slate-900),
#admin-logout:hover,
#logout:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px) !important;
}

/* Form Controls (Inputs, Selects, Textareas) */
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="email"],
select,
textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.75rem !important;
  padding: 0.65rem 0.95rem !important;
  font-size: 0.95rem !important;
  color: #0f172a !important;
  font-family: inherit !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

input[readonly],
input:disabled,
select:disabled,
textarea:disabled {
  background: #f1f5f9 !important;
  color: #64748b !important;
  cursor: not-allowed;
}

#deposit-payment-input,
.copyable-field-input {
  background: #f8fafc !important;
  color: #0f172a !important;
  cursor: text !important;
  font-weight: 800 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* Deposit page — prevent any child from overflowing on mobile */
#money-request-form,
#money-request-form input,
#money-request-form select,
#money-request-form textarea,
#money-request-form button[type="submit"],
#payment-method-details,
#deposit-payment-number {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#deposit-payment-number .flex {
  flex-wrap: wrap !important;
}

/* Password reveal toggle */
.password-toggle-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}
.password-toggle-wrapper input {
  padding-right: 2.75rem !important;
}
.password-toggle-btn {
  position: absolute !important;
  right: 0.65rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  cursor: pointer !important;
}

label {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.popup-toast {
  position: fixed;
  right: 1.25rem;
  top: 5.5rem;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: min(25rem, calc(100% - 2.5rem));
  border: 1px solid #fee2e2;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 1.2rem;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
  animation: toast-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-toast-success {
  border-color: #bbf7d0;
  background: rgba(255, 255, 255, 0.98);
}

.popup-toast-warning {
  border-color: #fde68a;
  background: rgba(255, 255, 255, 0.98);
}

.popup-toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.popup-toast-success .popup-toast-icon {
  background: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.popup-toast-warning .popup-toast-icon {
  background: #f59e0b;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.popup-toast strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.popup-toast p {
  margin: 0.2rem 1.2rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.4;
}

.popup-toast button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.popup-toast button:hover {
  color: #0f172a;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Modals & Confirmation Dialogs
   ========================================================================== */

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
}

.confirm-modal {
  width: min(26rem, 100%);
  border: 1px solid var(--color-border);
  border-radius: 1.35rem;
  background: #ffffff;
  padding: 1.6rem;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  animation: modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-modal {
  width: min(24rem, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.confirm-modal h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.confirm-modal p {
  margin-top: 0.6rem;
  color: #64748b;
  line-height: 1.5;
  font-size: 0.95rem;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.confirm-actions button {
  border: 0;
  border-radius: 0.75rem;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-cancel {
  background: #f1f5f9;
  color: #334155;
}

.confirm-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.confirm-ok {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.confirm-ok:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

/* ==========================================================================
   Notice Cards & Banners
   ========================================================================== */

.apon-notice {
  border-inline-start-width: 4px;
  border-inline-start-color: var(--notice-accent, #2563eb);
  background: linear-gradient(135deg, color-mix(in srgb, var(--notice-accent, #2563eb), white 94%), #ffffff);
  box-shadow: var(--shadow-card);
  border-radius: 1rem;
}

.apon-notice .notice-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 600;
  border-radius: 0.65rem;
}

@media (max-width: 640px) {
  .apon-notice > div { display: grid; }
  .apon-notice .notice-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .apon-notice, .apon-notice * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Product Tabs — Sleek Segmented Control
   ========================================================================== */

.product-tabs {
  display: inline-flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.35rem;
  background: #f1f5f9;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  scrollbar-width: none;
  max-width: 100%;
}

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

.product-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #64748b;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
  transform: none;
}

.product-tab.is-active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
  animation: none !important;
  transform: none !important;
}

.product-tab.is-active:after {
  display: none;
}

/* Refined category active badge styles */
.product-tab--all.is-active {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.product-tab--best.is-active {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3) !important;
}

.product-tab--hot-deal.is-active {
  background: linear-gradient(135deg, #e11d48, #ea580c) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3) !important;
}

.product-tab--crypto.is-active {
  background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
}

.product-tab--ai-cheap.is-active {
  background: linear-gradient(135deg, #0891b2, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3) !important;
}

/* Fallback keyframes kept for contract / syntax compatibility */
@keyframes tab-sheen { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.05); } }
@keyframes tab-flame { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.05); } }
@keyframes tab-shimmer { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.05); } }
@keyframes tab-neon { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.05); } }

.placement-badge {
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-weight: 700;
  font-size: 0.75rem;
}

.placement-top { background: #dbeafe; color: #1d4ed8; }
.placement-normal { background: #f1f5f9; color: #475569; }
.placement-bottom { background: #fef3c7; color: #92400e; }

@media (max-width: 640px) {
  .product-tabs {
    margin-inline: -0.25rem;
    padding-inline: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-tab, .product-tab:hover {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  .product-tab.is-active {
    animation: none !important;
  }
}

/* ==========================================================================
   Special Cards & Promotional Badges
   ========================================================================== */

.special-admin-button {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3) !important;
  color: #ffffff !important;
}

.special-card {
  position: relative;
  border: 1.5px solid #f59e0b !important;
  background: linear-gradient(145deg, #fffbeb, #ffffff) !important;
  box-shadow: 0 16px 34px rgba(180, 83, 9, 0.12), 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.special-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 24px 44px rgba(180, 83, 9, 0.18), 0 0 0 2px rgba(245, 158, 11, 0.4) !important;
}

.special-theme-rose {
  background: linear-gradient(145deg, #fff1f2, #ffffff) !important;
  border-color: #fb7185 !important;
}

.special-theme-violet {
  background: linear-gradient(145deg, #f5f3ff, #ffffff) !important;
  border-color: #8b5cf6 !important;
}

.special-theme-emerald {
  background: linear-gradient(145deg, #ecfdf5, #ffffff) !important;
  border-color: #10b981 !important;
}

.special-theme-ocean {
  background: linear-gradient(145deg, #eff6ff, #ffffff) !important;
  border-color: #06b6d4 !important;
}

.special-image-wrap {
  position: relative;
  overflow: hidden;
}

.special-image-wrap img {
  display: block;
  width: 100%;
}

.special-ribbon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.special-description {
  margin-top: 0.6rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

.special-validity {
  margin-top: 0.5rem;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 700;
}

.special-card .special-buy-button {
  margin-top: 1rem;
  width: 100%;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

.special-card .special-buy-button:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
  transform: translateY(-1px);
}

.product-admin-card.is-special {
  background: linear-gradient(145deg, #fffbeb, #ffffff) !important;
  border-color: #f59e0b !important;
}

.product-admin-card .special-ribbon {
  top: 0.6rem;
  left: 0.6rem;
}

@media (max-width: 640px) {
  .special-card { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  .special-card { transition: none !important; }
  .special-card:hover { transform: none !important; }
}

/* ==========================================================================
   Trust Portfolio / Public Credibility Section
   ========================================================================== */

.trust-portfolio {
  margin: 1.5rem 0 2.5rem;
  border: 1px solid rgba(219, 231, 245, 0.9);
  border-radius: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #f0fdf4 100%);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 20px 45px -15px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(241, 245, 249, 0.8);
}

.trust-portfolio-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .trust-portfolio-inner {
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 2fr);
  }
}

.trust-portfolio-heading h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.trust-portfolio-heading p:last-child {
  margin-top: 0.75rem;
  max-width: 34rem;
  color: #64748b;
  line-height: 1.6;
  font-size: 1rem;
}

.trust-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 440px) {
  .trust-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 640px) {
  .trust-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-stat-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem;
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease var(--trust-delay, 0s), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) var(--trust-delay, 0s), box-shadow 0.2s ease;
}

.trust-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -5px rgba(15, 23, 42, 0.08);
}

.trust-stat-card.is-visible {
  opacity: 1;
  transform: none;
}

.trust-stat-card dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-stat-card dt svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trust-stat-card dd {
  margin-top: 0.75rem;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.trust-stat-card:nth-child(4n) dt svg { stroke: #d97706; }
.trust-stat-card:nth-child(3n) dt svg { stroke: #059669; }

@media (prefers-reduced-motion: reduce) {
  .trust-stat-card, .trust-stat-card.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Account dropdown menu mobile styling */
@media (max-width: 639px) {
  #account-menu {
    position: fixed !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: 4.25rem !important;
    width: auto !important;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    z-index: 100000 !important;
  }
}

/* Content Protection: prevent image dragging, selecting, and mobile callouts */
img, picture {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}
