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

/* ─── G2G Marketplace Design Tokens ───────────────────────────────────────── */
:root {
  --bg-deep: #08080a;
  --bg-surface: #0e0e12;
  --bg-card: #14141a;
  --bg-card-hover: #1b1b24;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 42, 85, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.05);

  --accent-red: #ff2a55;
  --accent-red-hover: #e50914;
  --accent-purple: #8a2be2;
  --accent-violet: #6c5ce7;
  --accent-cyan: #00f2fe;

  --gradient-red: linear-gradient(135deg, #ff2a55 0%, #e50914 100%);
  --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ff2a55;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-red-glow: 0 4px 20px rgba(255, 42, 85, 0.4);
  --shadow-purple-glow: 0 4px 20px rgba(138, 43, 226, 0.4);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
}

input,
select,
textarea {
  font-family: var(--font);
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── Background Grid & Ambient Glows ───────────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orbs::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  top: -250px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 42, 85, 0.08) 0%, transparent 65%);
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.bg-orbs::after {
  content: '';
  position: absolute;
  width: 750px;
  height: 750px;
  top: 300px;
  right: -200px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.08) 0%, transparent 65%);
  animation: orbFloat2 18s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(40px, 30px) scale(1.08);
  }
}

@keyframes orbFloat2 {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-40px, -20px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 85, 0.3);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 42, 85, 0.6);
}

/* ─── Focus Ring ────────────────────────────────────────────────────────────── */
:is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: var(--shadow-red-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff4d73 0%, #ff2a55 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255, 42, 85, 0.6);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 42, 85, 0.5);
  color: var(--accent-red);
}

.btn-purple {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: var(--shadow-purple-glow);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(124, 58, 237, 0.6);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-bright);
}

.icon-btn.danger:hover:not(:disabled) {
  color: #ff2a55;
  border-color: rgba(255, 42, 85, 0.5);
  background: rgba(255, 42, 85, 0.1);
}

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 40px;
  height: 72px;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.navbar-brand .brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 122, 255, 0.4));
  transition: transform var(--transition);
}

.navbar-brand:hover .brand-logo-img {
  transform: scale(1.06);
}

.navbar-brand .brand-text {
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
}

.navbar-brand .brand-text span {
  color: var(--accent-red);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.navbar-links a {
  transition: color var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #fff;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.lang-pill:hover {
  border-color: var(--accent-red);
  color: #fff;
}

.lang-pill .dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.lang-pill.open .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  background: #14141a;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 42, 85, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 170px;
  animation: dropdownIn 0.2s ease;
}

.lang-dropdown.hidden {
  display: none !important;
}

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

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

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}

.lang-option:hover {
  background: var(--bg-surface);
  color: #fff;
}

.lang-option.active {
  background: rgba(255, 42, 85, 0.15);
  color: var(--accent-red);
  font-weight: 800;
}

.lang-option .flag {
  font-size: 1rem;
  margin-right: 6px;
}

/* ─── Hero Section ──────────────────────────────────────────────────────────── */
.hero-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 16px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 0%, #ff2a55 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 520px;
}

/* Compact Search Bar */
.hero-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 5px 6px 5px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition);
  max-width: 520px;
}

.hero-search-box:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(255, 42, 85, 0.25);
}

.hero-search-box .search-icon {
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-search-box input::placeholder {
  color: var(--text-muted);
}

/* Compact Hero Graphic */
.hero-graphic-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic-wrap img {
  width: 100%;
  max-width: 320px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 42, 85, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 42, 85, 0.2);
  transition: transform 0.4s ease;
}

.hero-graphic-wrap img:hover {
  transform: scale(1.02);
}

/* Trust Features Bar */
.trust-bar {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all var(--transition);
}

.trust-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 42, 85, 0.1);
  border: 1px solid rgba(255, 42, 85, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-red);
  flex-shrink: 0;
}

.trust-info {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.trust-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* ─── Section Header ────────────────────────────────────────────────────────── */
.section-header {
  max-width: 1280px;
  margin: 48px auto 20px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-title-wrap h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.section-title-wrap p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Filter Pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: var(--gradient-red);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-red-glow);
}

/* ─── Category Cards Grid ───────────────────────────────────────────────────── */
.categories-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  background: var(--bg-card-hover);
}

.cat-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 42, 85, 0.15), rgba(138, 43, 226, 0.15));
  border: 1px solid rgba(255, 42, 85, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cat-card-title h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.cat-card-title p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ─── Promotional Banners Grid ──────────────────────────────────────────────── */
.promo-banners-grid {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.promo-banner {
  border-radius: var(--radius-xl);
  padding: 32px;
  min-height: 200px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.promo-banner:hover {
  transform: translateY(-3px);
}

.promo-purple {
  background: linear-gradient(135deg, #6b21a8 0%, #3b0764 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.promo-red {
  background: linear-gradient(135deg, #9f1239 0%, #4c0519 100%);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.promo-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.promo-info h3 {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}

.promo-info p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
}

.promo-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.promo-img-wrap img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ─── Offers Tile Grid ──────────────────────────────────────────────────────── */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px 40px 40px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.tile-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  height: 100%;
}

a.tile-card:hover,
div.tile-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-red-glow);
  background: var(--bg-card-hover);
}

/* ─── Inline PayPal Form on Tile Cards ─── */
.tile-paypal-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.paypal-form-inline {
  display: inline-grid;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
  width: 100%;
}

.pp-5EK53QLKEBGQ4,
.pp-S2QM2KMTD2EZJ,
.pp-paypal-btn {
  text-align: center;
  border: none;
  border-radius: 0.35rem;
  min-width: 11.625rem;
  padding: 0 1.5rem;
  height: 2.625rem;
  font-weight: bold;
  background-color: #FFD140;
  color: #000000;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.25rem;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 14px rgba(255, 209, 64, 0.3);
  transition: all var(--transition);
}

.pp-5EK53QLKEBGQ4:hover,
.pp-S2QM2KMTD2EZJ:hover,
.pp-paypal-btn:hover {
  background-color: #f2c430;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 209, 64, 0.45);
}

.pp-cards-img {
  height: 18px;
  margin-top: 2px;
}

.pp-powered-by {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.pp-logo-img {
  height: 0.875rem;
  vertical-align: middle;
}

.tile-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.4));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform var(--transition);
}

/* ─── Super Mobile Responsive System ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 20px 16px;
    gap: 16px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-search-box {
    width: 100%;
    max-width: 100%;
  }

  .hero-graphic-wrap {
    margin-top: 4px;
  }

  .hero-graphic-wrap img {
    max-width: 260px;
    height: 200px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 20px;
    gap: 14px;
  }

  .section-header {
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tiles-grid {
    padding: 16px 20px 40px;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .admin-layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 14px;
    height: 60px;
  }

  .navbar-brand {
    font-size: 1.05rem;
  }

  .navbar-brand .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .navbar-links {
    display: none;
  }

  .navbar-right {
    gap: 6px;
  }

  .navbar-right .btn {
    display: none;
  }

  /* Hide Explore Offers CTA on header to prevent header overflow */
  .lang-pill {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .hero-wrapper {
    padding: 20px 14px 12px;
    gap: 12px;
    text-align: center;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .hero-search-box {
    padding: 3px 4px 3px 12px;
    border-radius: var(--radius-full);
    width: 100%;
  }

  .hero-search-box input {
    font-size: 0.82rem;
  }

  .hero-search-box .btn {
    display: none;
  }

  /* Hide inner search button on mobile to prevent search bar overflow */
  .hero-graphic-wrap img {
    max-width: 220px;
    height: 160px;
    border-radius: var(--radius-lg);
  }

  .section-header {
    padding: 0 14px;
    margin: 24px auto 12px;
  }

  .section-title-wrap h2 {
    font-size: 1.2rem;
  }

  .section-title-wrap p {
    font-size: 0.78rem;
  }

  /* Horizontal scrollable category filter pills */
  .filters {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    padding: 6px 14px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  /* Compact Horizontal Scrollable Categories Grid on Mobile */
  .categories-grid {
    padding: 0 14px;
    display: flex;
    overflow-x: auto;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .categories-grid::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    min-width: 200px;
    max-width: 240px;
    flex-shrink: 0;
    padding: 14px;
    gap: 10px;
    border-radius: var(--radius-md);
  }

  .cat-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 8px;
  }

  .cat-card-title h3 {
    font-size: 0.9rem;
  }

  .cat-card-title p {
    font-size: 0.72rem;
  }

  .cat-chip {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  /* Compact 2-Column Marketplace Grid on Mobile (App Store / G2G style) */
  .tiles-grid {
    padding: 12px 14px 36px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tile-card {
    border-radius: var(--radius-md);
  }

  .tile-thumb {
    aspect-ratio: 4 / 3;
    background: #121218;
  }

  .tile-thumb img {
    padding: 10px;
    object-fit: contain;
  }

  .tile-badge {
    font-size: 0.82rem;
    font-weight: 900;
    padding: 4px 10px;
    top: 8px;
    right: 8px;
  }

  .tile-body {
    padding: 10px;
    gap: 4px;
  }

  .tile-title {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
  }

  .tile-desc {
    display: block;
    font-size: 0.76rem;
    line-height: 1.45;
    white-space: pre-line;
    word-break: break-word;
    margin: 4px 0 8px;
  }

  /* Hide tile description on mobile 2-column grid for clean card heights */
  .tile-footer {
    margin-top: 6px;
    padding-top: 6px;
  }

  .tile-cat {
    font-size: 0.66rem;
  }

  .tile-cta-text {
    font-size: 0.72rem;
  }

  .site-footer {
    padding: 24px 14px 20px;
    margin-top: 32px;
  }

  .footer-links {
    gap: 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .navbar-brand .brand-text span {
    display: none;
  }

  .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tile-title {
    font-size: 0.78rem;
  }
}

a.tile-card:hover .tile-thumb img {
  transform: scale(1.06);
}

.tile-fallback {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  background: var(--gradient-red);
  box-shadow: var(--shadow-red-glow);
}

.tile-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-red);
  box-shadow: 0 4px 16px rgba(255, 42, 85, 0.5);
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  z-index: 5;
}

.tile-badge.dual-price {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.tile-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tile-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
  line-height: 1.35;
  align-items: center;
  gap: 8px;
}

.tile-title .verified-icon {
  color: var(--accent-red);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.tile-title .ext {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: all var(--transition);
  margin-left: auto;
}

a.tile-card:hover .tile-title .ext {
  opacity: 1;
  transform: none;
  color: var(--accent-red);
}

/* Description Area (Expandable & Uniform Card Height) */
.tile-desc-wrap {
  margin: 6px 0 10px;
  display: flex;
  flex-direction: column;
  min-height: 68px;
}

.tile-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
  transition: all 0.3s ease;
}

.tile-desc.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 42px;
}

.tile-desc.expanded {
  display: block;
  max-height: 600px;
  overflow: visible;
}

.btn-desc-toggle {
  background: none;
  border: none;
  padding: 4px 0 0;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-red);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin-top: 4px;
  transition: color var(--transition);
}

.btn-desc-toggle:hover {
  color: #ff547b;
  text-decoration: underline;
}

.btn-desc-toggle .toggle-arrow {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.tile-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  min-height: 30px;
}

.tile-cat {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tile-cta-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-red);
}

/* Skeleton Loaders */
.tile-skeleton {
  min-height: 280px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    background: var(--bg-card);
  }

  to {
    background: var(--bg-card-hover);
  }
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
}

.empty-state .emoji {
  font-size: 2.8rem;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ─── Trending Digital Presents Blocks ──────────────────────────────────────── */
.presents-section {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 40px;
}

.presents-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.present-card {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
  cursor: pointer;
}

.present-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
}

.present-code {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 6px;
}

.present-label {
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.9;
  text-transform: uppercase;
}

/* ─── ProductProtect Trust Banner ───────────────────────────────────────────── */
.security-banner {
  max-width: 1280px;
  margin: 48px auto;
  padding: 0 40px;
}

.security-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.security-content h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.security-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.security-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sec-point {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sec-point-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.sec-point-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.sec-point-desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Payment & Partner Bar ─────────────────────────────────────────────────── */
.partner-bar {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.partner-badge {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Support & Request Buttons ─────────────────────────────────────────────── */
.wa-support-wrapper {
  max-width: 1280px;
  margin: 36px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.wa-support-btn,
.request-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wa-support-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.wa-support-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.wa-support-btn .wa-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.wa-support-btn .wa-arrow {
  font-size: 0.9rem;
  transition: transform var(--transition);
  opacity: 0.9;
}

.wa-support-btn:hover .wa-arrow {
  transform: translate(2px, -2px);
}

.request-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.request-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.55);
  color: #ffffff;
}

.request-btn .req-icon {
  font-size: 1.1rem;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 48px;
  padding: 40px 40px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-red);
}

/* ─── Modal Styles ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

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

.modal {
  background: #121218;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 760px;
  box-shadow: var(--shadow-card), var(--shadow-red-glow);
  position: relative;
  margin: auto;
}

.modal-narrow {
  max-width: 520px;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(139, 92, 246, 0.18);
  padding: 32px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 10px;
}

.modal-header .modal-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.modal-header .modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

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

/* Form Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.field .req-star {
  color: var(--accent-red);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition);
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  outline: none;
  background: rgba(255, 255, 255, 0.07);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

/* ─── Dedicated Login Page ─────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-card), var(--shadow-red-glow);
  animation: loginAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes loginAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

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

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.login-logo .logo-circle {
  width: 60px;
  height: 60px;
  background: var(--gradient-red);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: var(--shadow-red-glow);
}

.login-logo h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.login-logo p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Admin Dashboard Layout & Components ───────────────────────────────────── */
.navbar-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--gradient-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 42, 85, 0.4);
}

.admin-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 60px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 104px;
}

.admin-sidebar h3 {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-left: 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-link .icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
  color: #fff;
  background: var(--bg-surface);
  border-color: var(--border-bright);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-link .badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.sidebar-link.active .badge {
  background: var(--gradient-red);
  color: #fff;
}

.admin-main {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.admin-section {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.admin-section.active {
  display: flex;
  animation: sectionIn 0.22s ease;
}

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

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

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 4px;
}

.admin-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.admin-header p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
}

.panel-narrow {
  max-width: 600px;
}

.inline-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.inline-form input {
  flex: 1;
}

.section-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

/* Item Row Styling */
.row-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.row-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
}

.row-item.is-hidden {
  opacity: 0.6;
}

.row-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.row-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
  margin: 0 4px;
}

/* Category Row Styling */
.cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.cat-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
}

.cat-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  flex: 1;
}

.cat-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Icon Buttons */
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.icon-btn.danger:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 42, 85, 0.2);
  border-color: rgba(255, 42, 85, 0.5);
}

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

/* Status Pills */
.pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-visible {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-hidden {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Toasts */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-card);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  pointer-events: auto;
  animation: toastIn 0.25s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.toast-success {
  border-color: rgba(16, 185, 129, 0.5);
}

.toast-error {
  border-color: rgba(255, 42, 85, 0.5);
}

/* ─── Super Mobile Responsive System ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px 20px;
    gap: 20px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-search-box {
    width: 100%;
    max-width: 100%;
  }

  .hero-graphic-wrap {
    margin-top: 8px;
  }

  .hero-graphic-wrap img {
    max-width: 280px;
    height: 220px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .section-header {
    padding: 0 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .tiles-grid {
    padding: 16px 24px 40px;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .admin-layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: 62px;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-brand .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .navbar-links {
    display: none;
  }

  .navbar-right {
    gap: 8px;
  }

  .lang-pill {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .hero-wrapper {
    padding: 24px 16px 16px;
    gap: 16px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.86rem;
  }

  .hero-search-box {
    padding: 4px 4px 4px 12px;
    border-radius: var(--radius-full);
  }

  .hero-search-box input {
    font-size: 0.84rem;
  }

  .hero-search-box .btn {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .hero-graphic-wrap img {
    max-width: 240px;
    height: 180px;
    border-radius: var(--radius-lg);
  }

  .section-header {
    padding: 0 16px;
    margin: 32px auto 14px;
  }

  .section-title-wrap h2 {
    font-size: 1.3rem;
  }

  .section-title-wrap p {
    font-size: 0.8rem;
  }

  /* Horizontal scrollable category filter pills */
  .filters {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-wrap: nowrap;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    padding: 6px 14px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .categories-grid {
    padding: 0 16px;
    gap: 12px;
  }

  .category-card {
    padding: 16px;
    gap: 12px;
  }

  .cat-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .cat-card-title h3 {
    font-size: 0.98rem;
  }

  .cat-card-title p {
    font-size: 0.74rem;
  }

  .cat-chip {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .tiles-grid {
    padding: 12px 16px 36px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tile-card {
    border-radius: var(--radius-md);
  }

  .tile-thumb {
    height: 140px;
  }

  .tile-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    top: 8px;
    right: 8px;
  }

  .tile-body {
    padding: 12px;
    gap: 6px;
  }

  .tile-title {
    font-size: 0.88rem;
    min-height: 38px;
  }

  .tile-desc-wrap {
    min-height: 58px;
  }

  .btn-tile-buy,
  .btn-tile-buy.btn-tile-out {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    font-size: 0.82rem;
    padding: 0 10px;
  }

  .tile-footer {
    margin-top: 8px;
    padding-top: 8px;
  }

  .tile-cat {
    font-size: 0.68rem;
  }

  .tile-cta-text {
    font-size: 0.74rem;
  }

  .site-footer {
    padding: 28px 16px 20px;
    margin-top: 40px;
  }

  .footer-links {
    gap: 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 440px) {
  .hero-title {
    font-size: 1.55rem;
  }

  .hero-graphic-wrap {
    display: none;
  }

  .tiles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tile-thumb {
    height: 160px;
  }
}

/* ─── Vexoran Warranty & Stock Badges ─── */
.tile-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}

.pill-warranty {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.pill-full-warranty {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pill-no-warranty {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pill-stock {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.pill-stock-in {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.pill-stock-out {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pill-stock-active {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ─── Product Card Buy / Order Buttons ─── */
.tile-buy-box {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-tile-buy {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, #ff2a55 0%, #d60033 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(255, 42, 85, 0.35);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn-tile-buy:hover {
  background: linear-gradient(135deg, #ff4d73 0%, #ff1a48 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 42, 85, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-tile-buy:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 42, 85, 0.3);
}

.btn-tile-buy svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-tile-buy:hover svg {
  transform: scale(1.1);
}

/* Out of Stock Button — IDENTICAL SIZE AND METRICS TO BUY NOW */
.btn-tile-buy.btn-tile-out {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  box-shadow: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn-tile-buy.btn-tile-out:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.btn-tile-buy.btn-tile-out:active {
  transform: translateY(0);
}