/* =========================================================
   TEMPLO THEME — pro.css
   Ported from the Templo Cheats Next.js design.
   Dark, neon-orange, glassmorphism, Inter typography.
   Bootstrap 5 is loaded before this file; we override it.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Templo HSL palette translated to hex/rgb */
  --tp-bg:            #18120e;   /* warm charcoal */
  --tp-bg-rgb:        31,26,46;
  --tp-card:          #21160f;   /* warm charcoal */
  --tp-card-rgb:      38,32,47;
  --tp-muted:         #4d4036;   /* warm gray */
  --tp-muted-rgb:     64,54,77;
  --tp-muted-fg:      #b9afa8;   /* warm gray */
  --tp-fg:            #fafafa;
  --tp-primary:       #fe7d21;   /* #fe7d21 */
  --tp-primary-rgb:   254,125,33;
  --tp-secondary:     #fe7d21;   /* #fe7d21 */
  --tp-secondary-rgb: 254,125,33;
  --tp-success:       #10b981;
  --tp-warning:       #f59e0b;
  --tp-danger:        #ef4444;
  --tp-radius:        0.75rem;
  --tp-radius-lg:     1rem;
  --tp-radius-xl:     1.5rem;
  --tp-radius-2xl:    2rem;

  /* Map onto SellAuth's existing CSS vars so master.njk overrides cleanly */
  --cl-accent:                var(--tp-primary);
  --cl-accent-rgb:            var(--tp-primary-rgb);
  --cl-background-primary:    var(--tp-bg);
  --cl-background-primary-rgb:var(--tp-bg-rgb);
  --cl-background-secondary:  var(--tp-card);
  --cl-background-secondary-rgb: var(--tp-card-rgb);
  --cl-border:                rgba(255,255,255,0.08);
  --cl-border-rgb:            255,255,255;
  --cl-snow:                  255,255,255;

  /* Bootstrap overrides */
  --bs-primary:        var(--tp-primary);
  --bs-primary-rgb:    var(--tp-primary-rgb);
  --bs-body-bg:        var(--tp-bg);
  --bs-body-color:     var(--tp-fg);
  --bs-body-font-family: var(--bs-font-sans-serif, 'Inter', sans-serif);
  --bs-border-color:   rgba(255,255,255,0.08);
  --bs-link-color:     var(--tp-primary);
  --bs-link-hover-color: #ff954d;
}

/* ---------- Base ---------- */
* {
  border-color: rgba(255,255,255,0.08);
}

html, body {
  background: var(--tp-bg);
  color: var(--tp-fg);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(circle at 20% -10%, rgba(254,125,33,0.18), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(254,125,33,0.12), transparent 50%);
  background-attachment: fixed;
}

[x-cloak] { display: none !important; }

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

::selection {
  background: rgba(254,125,33,0.4);
  color: #fff;
}

a { color: var(--tp-primary); text-decoration: none; }
a:hover { color: #ff954d; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tp-fg);
}

hr { border-color: rgba(255,255,255,0.08); opacity: 1; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(254,125,33,0.5); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--tp-primary); }

/* ---------- Utility classes (preserve existing) ---------- */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

.px-32 { padding-left: 6rem; padding-right: 6rem; }
@media (max-width: 991px) { .px-32 { padding-left: 1.25rem; padding-right: 1.25rem; } }

.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-5-nav { padding-top: calc(74px + 1.5rem); padding-bottom: 1.5rem; }

.bg-gray { background: var(--tp-card); }

.bg-image {
  position: fixed; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.15; pointer-events: none; z-index: -1;
}

.flex-wrapper {
  display: flex; flex-direction: column; min-height: 100vh; justify-content: space-between;
}

/* Flex wrapper inner spacing */
.flex-wrapper > div:first-child { flex: 1; }

/* ---------- Templo helper classes ---------- */
.tp-glass {
  background: rgba(var(--tp-card-rgb), 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  border-radius: var(--tp-radius-xl);
}

.tp-glow {
  box-shadow: 0 0 24px rgba(254,125,33,0.35);
}

.tp-electric-text {
  color: var(--tp-primary);
  text-shadow: 0 0 12px rgba(254,125,33,0.55);
}

.tp-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--tp-primary-rgb), 0.12);
  border: 1px solid rgba(var(--tp-primary-rgb), 0.30);
  color: var(--tp-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tp-section { padding: 5rem 0; }
.tp-section-tight { padding: 3rem 0; }
@media (min-width: 992px) { .tp-section { padding: 6rem 0; } }

.tp-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tp-primary);
}

.tp-section-title {
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.tp-section-title .accent { color: var(--tp-primary); text-shadow: 0 0 12px rgba(254,125,33,0.4); }
.tp-section-sub { color: var(--tp-muted-fg); font-size: 1rem; max-width: 42rem; }

.tp-divider {
  height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  border: 0; margin: 0;
}

.tp-pulse-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--tp-success);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: tpPulse 2s infinite;
  display: inline-block;
}
@keyframes tpPulse {
  0%   { box-shadow: 0 0 0 0   rgba(16,185,129,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0   rgba(16,185,129,0); }
}

.tp-pulse-dot--warning { background: var(--tp-warning); animation-name: tpPulseWarn; }
@keyframes tpPulseWarn {
  0%   { box-shadow: 0 0 0 0   rgba(245,158,11,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0   rgba(245,158,11,0); }
}
.tp-pulse-dot--danger  { background: var(--tp-danger); animation-name: tpPulseDanger; }
@keyframes tpPulseDanger {
  0%   { box-shadow: 0 0 0 0   rgba(239,68,68,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0   rgba(239,68,68,0); }
}

/* Templo-styled status pills */
.tp-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent;
}
.tp-pill--success { background: rgba(16,185,129,0.10); color: var(--tp-success); border-color: rgba(16,185,129,0.25); }
.tp-pill--warning { background: rgba(245,158,11,0.10); color: var(--tp-warning); border-color: rgba(245,158,11,0.25); }
.tp-pill--danger  { background: rgba(239,68,68,0.10);  color: var(--tp-danger);  border-color: rgba(239,68,68,0.25); }
.tp-pill--primary { background: rgba(var(--tp-primary-rgb),0.12); color: var(--tp-primary); border-color: rgba(var(--tp-primary-rgb),0.30); }
.tp-pill--muted   { background: rgba(255,255,255,0.05); color: var(--tp-muted-fg); border-color: rgba(255,255,255,0.10); }

/* ---------- Cards / containers ---------- */
.card, .tp-card {
  background: rgba(var(--tp-card-rgb), 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-lg);
  color: var(--tp-fg);
}
.card { box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.card-header, .card-footer { background: transparent; border-color: rgba(255,255,255,0.08); }
.card-body { color: var(--tp-fg); }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 1.1rem;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; border-radius: 0.85rem; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; border-radius: 0.6rem; }

.btn-primary {
  background: var(--tp-primary);
  color: #fff;
  border-color: var(--tp-primary);
  box-shadow: 0 0 24px rgba(254,125,33,0.35);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: #ff954d !important;
  border-color: #ff954d !important;
  color: #fff !important;
  box-shadow: 0 0 32px rgba(254,125,33,0.55);
}

.btn-outline-primary {
  background: rgba(255,255,255,0.04);
  color: var(--tp-fg);
  border-color: rgba(255,255,255,0.14);
}
.btn-outline-primary:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border-color: rgba(var(--tp-primary-rgb),0.5) !important;
}

.btn-secondary {
  background: rgba(var(--tp-card-rgb), 0.7);
  color: var(--tp-fg);
  border-color: rgba(255,255,255,0.08);
}
.btn-secondary:hover {
  background: rgba(var(--tp-muted-rgb), 0.7) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.16) !important;
}

.btn-light, .btn-outline-light {
  background: rgba(255,255,255,0.06);
  color: var(--tp-fg);
  border-color: rgba(255,255,255,0.12);
}
.btn-light:hover, .btn-outline-light:hover {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}

.btn-link { color: var(--tp-primary); padding: 0; font-weight: 600; }
.btn-link:hover { color: #ff954d; }

.btn-danger { background: var(--tp-danger); border-color: var(--tp-danger); }
.btn-success { background: var(--tp-success); border-color: var(--tp-success); }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 999px;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--tp-fg);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,0.06);
  color: var(--tp-fg);
  border-color: var(--tp-primary);
  box-shadow: 0 0 0 3px rgba(254,125,33,0.18);
}
.form-control::placeholder { color: rgba(179,172,186,0.7); }
.input-group-text {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--tp-muted-fg);
}
.form-label, .form-text { color: var(--tp-muted-fg); }
.form-check-input {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.20);
}
.form-check-input:checked { background-color: var(--tp-primary); border-color: var(--tp-primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(254,125,33,0.18); border-color: var(--tp-primary); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(var(--tp-bg-rgb), 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.5rem 0;
  min-height: 74px;
}
.navbar .container, .navbar .container-fluid {
  display: flex; align-items: center; gap: 1rem;
}
.navbar-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 800; letter-spacing: -0.03em; font-size: 1.15rem;
  color: var(--tp-fg); text-transform: uppercase;
}
.navbar-brand:hover { color: var(--tp-fg); }
.navbar-brand .brand-mark {
  width: 32px; height: 32px; border-radius: 0.6rem;
  background: var(--tp-primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.95rem;
  box-shadow: 0 0 16px rgba(254,125,33,0.5);
  transition: transform 0.25s ease;
}
.navbar-brand:hover .brand-mark { transform: rotate(8deg) scale(1.05); }
.navbar-brand .brand-accent { color: var(--tp-primary); }

.navbar-nav .nav-link {
  color: var(--tp-muted-fg);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  transition: color 0.18s ease, background 0.18s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--tp-primary); }
.navbar-nav .nav-link.btn { color: #fff; }

.navbar .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  color: var(--tp-fg);
  background: transparent;
  border: 1px solid transparent;
  position: relative;
  transition: all 0.18s ease;
}
.navbar .icon-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: #fff;
}
.navbar .icon-btn .badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--tp-primary);
  box-shadow: 0 0 8px rgba(254,125,33,0.8);
}
.navbar .icon-btn .badge-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--tp-primary); color: #fff;
  border-radius: 999px; padding: 1px 6px; font-size: 0.65rem; font-weight: 700;
  min-width: 18px; text-align: center;
  box-shadow: 0 0 10px rgba(254,125,33,0.6);
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 0.6rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(254,125,33,0.20); }

.dropdown-menu {
  background: rgba(var(--tp-card-rgb), 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--tp-radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  color: var(--tp-fg);
}
.dropdown-item {
  color: var(--tp-fg);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(var(--tp-primary-rgb), 0.15);
  color: #fff;
}
.dropdown-divider { border-color: rgba(255,255,255,0.08); }

/* ---------- Announcement ---------- */
.announcement {
  background: linear-gradient(90deg, var(--tp-primary), #fe7d21);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.announcement a { color: #fff; text-decoration: underline; font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
  color: var(--tp-muted-fg);
}
.footer h5, .footer .footer-title {
  font-size: 0.78rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
}
.footer a { color: var(--tp-muted-fg); font-size: 0.92rem; transition: color 0.15s ease; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }

/* Bullet-list with orange dots (VexCheats style) */
.footer-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}
.footer-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--tp-primary);
  box-shadow: 0 0 8px rgba(var(--tp-primary-rgb), 0.6);
}

/* Brand column tagline */
.footer-tagline {
  font-size: 0.92rem; line-height: 1.65;
  color: var(--tp-muted-fg);
  max-width: 22rem;
  margin-bottom: 1.5rem;
}

/* Payment icons row */
.footer-payments {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.footer-payments span {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px;
  filter: grayscale(0.7) brightness(0.85);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.footer-payments span:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: translateY(-2px);
}
.footer-payments svg { display: block; height: 22px; width: auto; }

/* Bottom bar */
.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem; margin-top: 3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
  font-size: 0.85rem; color: var(--tp-muted-fg);
}
.footer .footer-bottom-left {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}
.footer .footer-bottom-left a { font-size: 0.85rem; color: var(--tp-muted-fg); }
.footer .footer-bottom-left a:hover { color: #fff; }
.footer .footer-bottom-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* Circular social icons (bottom-right) */
.footer-socials-circle {
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-socials-circle a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--tp-muted-fg);
  transition: all 0.18s ease;
}
.footer-socials-circle a:hover {
  background: var(--tp-primary);
  border-color: var(--tp-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(var(--tp-primary-rgb), 0.5);
}

/* Old social-icons class kept for backward compat (footer brand area can still use it) */
.footer .social-icons { display: flex; gap: 0.5rem; }
.footer .social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--tp-muted-fg); transition: all 0.18s ease;
}
.footer .social-icons a:hover {
  background: var(--tp-primary); color: #fff; border-color: var(--tp-primary);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .footer .footer-bottom { justify-content: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 6rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(var(--tp-primary-rgb), 0.12), transparent 60%),
    linear-gradient(180deg, rgba(var(--tp-card-rgb), 0.6) 0%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 12px);
  opacity: 0.5;
}
.hero > .container { position: relative; z-index: 2; }
.hero.hero-short { padding: 4rem 0 3rem; }
.hero.hero-tall  { padding: 8rem 0 7rem; }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--tp-primary-rgb),0.30), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(var(--tp-secondary-rgb),0.18), transparent 55%);
  pointer-events: none;
}
.hero .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.22;
  filter: contrast(1.1);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  background: rgba(var(--tp-primary-rgb), 0.10);
  border: 1px solid rgba(var(--tp-primary-rgb), 0.30);
  color: var(--tp-primary); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 1.25rem;
  animation: tpFadeUp 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  animation: tpFadeUp 0.7s 0.1s ease both;
}
.hero h1 .accent { color: var(--tp-primary); text-shadow: 0 0 16px rgba(254,125,33,0.5); }
.hero p.lead {
  color: var(--tp-muted-fg);
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
  animation: tpFadeUp 0.7s 0.2s ease both;
}
.hero .hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  animation: tpFadeUp 0.7s 0.4s ease both;
}
.hero .hero-search {
  max-width: 42rem; margin: 0 auto 2rem;
  animation: tpFadeUp 0.7s 0.3s ease both;
}
.hero .hero-search-inner {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1.25rem;
  padding: 0.35rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: border-color 0.2s ease;
}
.hero .hero-search-inner:focus-within { border-color: rgba(var(--tp-primary-rgb), 0.5); }
.hero .hero-search input {
  background: transparent; border: 0; color: var(--tp-fg);
  width: 100%; padding: 0.85rem 1rem 0.85rem 3rem;
  font-size: 1.05rem;
}
.hero .hero-search input:focus { outline: 0; box-shadow: none; }
.hero .hero-search .search-icon {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--tp-muted-fg); pointer-events: none;
}

.hero-feature-row {
  margin-top: 4rem !important;
  text-align: left;
  animation: tpFadeUp 0.7s 0.6s ease both;
}
.hero-feature-row .feature-card { height: 100%; }

.hero-stats {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: tpFadeUp 0.7s 0.5s ease both;
}
.hero-stat {
  text-align: left; display: flex; align-items: center; gap: 0.85rem;
}
.hero-stat .icon-box {
  width: 40px; height: 40px; border-radius: 0.6rem;
  background: rgba(var(--tp-primary-rgb), 0.18);
  color: var(--tp-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.hero-stat .value { font-weight: 800; font-size: 0.95rem; line-height: 1.1; color: #fff; }
.hero-stat .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--tp-muted-fg); }

@keyframes tpFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Product card ---------- */
.product-card {
  display: flex; flex-direction: column; height: 100%;
  background: rgba(var(--tp-card-rgb), 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.product-card:hover {
  border-color: rgba(var(--tp-primary-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.product-card .product-image {
  position: relative; overflow: hidden;
  aspect-ratio: var(--product-card-image-aspect-ratio);
}
.product-card .product-image img {
  width: 100%; height: 100%;
  object-fit: var(--product-image-fit, cover);
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-card .product-badges {
  position: absolute; top: 0.75rem; left: 0.75rem; right: 0.75rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem; pointer-events: none;
  z-index: 2;
}
.product-card .product-body {
  padding: 1.1rem 1.1rem 0.4rem;
}
.product-card .product-title {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tp-fg);
  margin: 0 0 0.5rem;
  transition: color 0.18s ease;
}
.product-card:hover .product-title { color: var(--tp-primary); }
.product-card .product-meta {
  font-size: 0.78rem; color: var(--tp-muted-fg);
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.product-card .product-footer {
  padding: 0.75rem 1.1rem 1.1rem;
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.product-card .product-price {
  font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1;
}
.product-card .product-price small { color: var(--tp-muted-fg); font-weight: 500; font-size: 0.7rem; margin-left: 0.2rem; }
.product-card .product-price-slash {
  text-decoration: line-through; color: var(--tp-muted-fg); font-size: 0.85rem; margin-right: 0.4rem; font-weight: 500;
}
.product-card .stock-line { font-size: 0.7rem; color: var(--tp-muted-fg); text-transform: uppercase; letter-spacing: 0.1em; }

/* Horizontal product card (search modal) */
.product-card-h {
  display: flex; gap: 1rem; align-items: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--tp-radius);
  transition: all 0.18s ease;
}
.product-card-h:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(var(--tp-primary-rgb), 0.4);
}
.product-card-h .thumb {
  width: 64px; height: 64px; border-radius: 0.6rem; overflow: hidden; flex-shrink: 0;
  aspect-ratio: 1/1;
}
.product-card-h .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Aspect ratios ---------- */
.aspect-product-card-image { aspect-ratio: var(--product-card-image-aspect-ratio); }
.aspect-product-page-image { aspect-ratio: var(--product-page-image-aspect-ratio); }
.aspect-group-card-image   { aspect-ratio: var(--group-card-image-aspect-ratio); }
.aspect-blog-card-image    { aspect-ratio: var(--blog-card-image-aspect-ratio); }
.object-product-image { object-fit: var(--product-image-fit, cover); }
.object-group-image   { object-fit: var(--group-image-fit, cover); }

/* ---------- Product detail page ---------- */
.product-page-gallery {
  position: relative; border-radius: var(--tp-radius-xl); overflow: hidden;
  background: rgba(var(--tp-card-rgb), 0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.product-page-gallery img { width: 100%; height: 100%; object-fit: var(--product-image-fit, cover); }
.product-page-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.product-page-thumbs .thumb {
  width: 72px; height: 72px; border-radius: 0.6rem; overflow: hidden;
  border: 2px solid transparent; cursor: pointer;
  transition: border-color 0.18s ease;
}
.product-page-thumbs .thumb.active,
.product-page-thumbs .thumb:hover { border-color: var(--tp-primary); }
.product-page-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-card {
  background: rgba(var(--tp-card-rgb), 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-xl);
  padding: 1.75rem;
}
.product-info-card .price-row {
  display: flex; align-items: baseline; gap: 0.5rem; margin: 0.75rem 0 1.25rem;
}
.product-info-card .price-row .price { font-size: 2rem; font-weight: 800; color: #fff; }
.product-info-card .price-row .slash { text-decoration: line-through; color: var(--tp-muted-fg); }

.product-tabs { margin-top: 2rem; }
.product-tabs .nav-tabs { border-bottom: 1px solid rgba(255,255,255,0.08); gap: 0.25rem; }
.product-tabs .nav-tabs .nav-link {
  background: transparent; border: 0; color: var(--tp-muted-fg);
  padding: 0.75rem 1rem; font-weight: 600;
  border-bottom: 2px solid transparent; border-radius: 0;
}
.product-tabs .nav-tabs .nav-link.active {
  color: var(--tp-primary); border-bottom-color: var(--tp-primary);
  background: transparent;
}

/* Sales notification toast */
.sales-toast {
  position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 1050;
  background: rgba(var(--tp-card-rgb), 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--tp-radius);
  padding: 0.85rem 1rem;
  display: flex; gap: 0.75rem; align-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  max-width: 22rem;
}

/* ---------- Products listing page ---------- */
.products-page-hero {
  position: relative; overflow: hidden;
  padding: 6rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.products-page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 50% 0%, rgba(var(--tp-primary-rgb),0.30), transparent 55%);
}
.products-page-hero > .container { position: relative; z-index: 1; }

.store-grid-card {
  max-width: 1280px; margin: -2rem auto 0;
  background: rgba(var(--tp-card-rgb), 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-xl);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.store-grid-card .store-grid-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.store-grid-card .store-grid-header h3 {
  margin: 0; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 0.5rem;
}
.store-grid-card .store-grid-body { padding: 1.5rem 1.75rem 2rem; }

.category-card {
  position: relative; overflow: hidden; border-radius: var(--tp-radius-xl);
  height: 220px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.10);
  background: #0a0a0a;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}
.category-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.category-card:hover img { transform: scale(1.06); }
.category-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.45) 50%, transparent);
  z-index: 1;
}
.category-card .label-top {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.category-card .label-bottom {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem; z-index: 2;
  font-size: 1.4rem; font-weight: 800; line-height: 1.1;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ---------- Cart ---------- */
.cart-item {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem;
  background: rgba(var(--tp-card-rgb), 0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius);
  margin-bottom: 0.75rem;
}
.cart-item .thumb {
  width: 80px; height: 80px; border-radius: 0.6rem; overflow: hidden; flex-shrink: 0;
}
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-summary {
  background: rgba(var(--tp-card-rgb), 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-lg);
  padding: 1.5rem;
}
.cart-summary .summary-row {
  display: flex; justify-content: space-between; padding: 0.5rem 0;
  color: var(--tp-muted-fg);
}
.cart-summary .summary-row.total {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem; margin-top: 0.5rem;
  color: #fff; font-weight: 800; font-size: 1.15rem;
}

/* Product page: constrain SVG icon sizes inside buttons */
.product-info-card .btn svg,
.buy-buttons .btn svg {
  width: 18px; height: 18px; flex-shrink: 0;
}
.product-info-card .btn .size-5,
.product-info-card .btn .size-3\.5 {
  width: 18px !important; height: 18px !important;
}

/* Buy buttons row */
.buy-buttons { display: flex; gap: 0.75rem; margin-top: 1rem; }
.buy-buttons > .col { flex: 1; padding: 0; }
.buy-buttons .btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
}

/* Quantity input group on product page — match qty-stepper look */
.product-info-card .input-group {
  display: inline-flex !important;
  width: auto !important;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.6rem;
  overflow: hidden;
  flex-wrap: nowrap;
}
.product-info-card .input-group .btn,
.product-info-card .input-group .input-group-btn {
  background: transparent !important;
  border: 0 !important;
  color: var(--tp-fg) !important;
  width: 38px; height: 40px;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.product-info-card .input-group .btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08) !important;
  color: var(--tp-primary) !important;
}
.product-info-card .input-group .btn:disabled { opacity: 0.4; }
.product-info-card .input-group .btn svg { width: 14px; height: 14px; }
.product-info-card .input-group input {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  width: 56px;
  text-align: center;
  font-weight: 600;
  box-shadow: none !important;
}
.product-info-card .input-group input:focus { outline: 0; }

/* Variant buttons (product page) */
.variants {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0;
}
.variants .variant {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.3rem; min-width: 160px; flex: 1 1 calc(50% - 0.6rem);
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--tp-fg);
  text-align: left;
  transition: all 0.18s ease;
  cursor: pointer;
}
.variants .variant:hover:not(:disabled) {
  border-color: rgba(var(--tp-primary-rgb), 0.35);
  background: rgba(var(--tp-primary-rgb), 0.05);
}
.variants .variant.active {
  border-color: var(--tp-primary);
  background: rgba(var(--tp-primary-rgb), 0.10);
  box-shadow: 0 0 0 3px rgba(var(--tp-primary-rgb), 0.18);
}
.variants .variant:disabled { opacity: 0.45; cursor: not-allowed; }
.variants .variant .name-stock { width: 100%; }
.variants .variant .name { font-weight: 700; margin: 0; font-size: 0.95rem; }
.variants .variant .description { font-size: 0.78rem; margin: 0; color: var(--tp-muted-fg); }
.variants .variant .stock { font-size: 0.7rem; margin: 0; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tp-muted-fg); }
.variants .variant .price { font-weight: 800; color: #fff; font-size: 1rem; align-self: flex-end; margin-top: auto; }
.variants .variant .price s { font-size: 0.8rem; font-weight: 500; margin-left: 0.3rem; }
.variants .variant .active-indicator {
  position: absolute; top: 0.5rem; right: 0.5rem;
  color: var(--tp-primary);
}
.variants .variant .active-indicator svg { width: 18px; height: 18px; }

/* Addons */
.addon-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.addon-item .addon-image { width: 44px; height: 44px; object-fit: cover; border-radius: 0.5rem; }
.btn-addon-add { background: rgba(var(--tp-primary-rgb), 0.15) !important; color: var(--tp-primary) !important; border-color: rgba(var(--tp-primary-rgb), 0.30) !important; }
.btn-addon-add:hover { background: var(--tp-primary) !important; color: #fff !important; }
.btn-addon-remove { background: rgba(239,68,68,0.10) !important; color: #fca5a5 !important; border-color: rgba(239,68,68,0.30) !important; }

/* Quantity stepper */
.qty-stepper {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.6rem;
  overflow: hidden;
}
.qty-stepper button {
  background: transparent; border: 0; color: var(--tp-fg);
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s ease;
}
.qty-stepper button:hover { background: rgba(255,255,255,0.08); color: var(--tp-primary); }
.qty-stepper input {
  width: 44px; text-align: center;
  background: transparent; border: 0; color: #fff;
  font-weight: 600;
}
.qty-stepper input:focus { outline: 0; }

/* ---------- Tables ---------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--tp-fg);
  --bs-table-border-color: rgba(255,255,255,0.08);
  --bs-table-striped-bg: rgba(255,255,255,0.02);
  --bs-table-hover-bg: rgba(var(--tp-primary-rgb),0.06);
  color: var(--tp-fg);
}
.table thead th {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem;
  color: var(--tp-muted-fg); font-weight: 700;
  padding: 0.85rem 1rem;
}
.table tbody td {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.85rem 1rem;
  vertical-align: middle;
}
.table tbody tr:hover { color: #fff; }

.tp-table-card {
  background: rgba(var(--tp-card-rgb), 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
}
.tp-table-card .table { margin: 0; }

/* ---------- Pagination ---------- */
.pagination { gap: 0.25rem; }
.page-link {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--tp-fg);
  border-radius: 0.55rem !important;
  padding: 0.45rem 0.8rem;
  margin: 0;
}
.page-link:hover {
  background: rgba(var(--tp-primary-rgb),0.15);
  color: #fff; border-color: rgba(var(--tp-primary-rgb),0.4);
}
.page-item.active .page-link {
  background: var(--tp-primary); border-color: var(--tp-primary);
  color: #fff; box-shadow: 0 0 16px rgba(254,125,33,0.45);
}
.page-item.disabled .page-link {
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.05);
}

/* ---------- Modal ---------- */
.modal-content {
  background: rgba(var(--tp-card-rgb), 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--tp-radius-lg);
  color: var(--tp-fg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.modal-header { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 1.5rem; }
.modal-footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 1rem 1.5rem; }
.modal-title { font-weight: 700; }
.btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.7;
}
.btn-close:hover { opacity: 1; }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item {
  background: rgba(var(--tp-card-rgb), 0.5);
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: var(--tp-radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-button {
  background: transparent; color: var(--tp-fg);
  font-weight: 700; padding: 1.1rem 1.25rem;
}
.accordion-button:not(.collapsed) {
  background: rgba(var(--tp-primary-rgb),0.08);
  color: var(--tp-primary);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(254,125,33,0.18);
  border-color: rgba(var(--tp-primary-rgb), 0.4);
}
.accordion-button::after {
  filter: invert(1) brightness(2);
}
.accordion-button:not(.collapsed)::after {
  filter: invert(0.4) sepia(1) saturate(8) hue-rotate(255deg) brightness(1.2);
}
.accordion-body { color: var(--tp-muted-fg); padding: 0 1.25rem 1.25rem; line-height: 1.65; }

/* ---------- Alerts ---------- */
.alert {
  background: rgba(var(--tp-card-rgb), 0.6);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--tp-radius);
  color: var(--tp-fg);
}
.alert-success { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.30); color: #6ee7b7; }
.alert-warning { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.30); color: #fcd34d; }
.alert-danger  { background: rgba(239,68,68,0.10);  border-color: rgba(239,68,68,0.30);  color: #fca5a5; }
.alert-info    { background: rgba(var(--tp-primary-rgb),0.10); border-color: rgba(var(--tp-primary-rgb),0.30); color: var(--tp-primary); }

/* ---------- Customer sidebar ---------- */
.customer-shell {
  display: grid; grid-template-columns: 260px 1fr; gap: 1.75rem;
  padding-top: 2rem;
}
@media (max-width: 991px) {
  .customer-shell { grid-template-columns: 1fr; }
}
.customer-sidebar {
  background: rgba(var(--tp-card-rgb), 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-lg);
  padding: 1.25rem;
  height: fit-content;
  position: sticky; top: 90px;
}
.customer-sidebar .user-info {
  padding: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 1rem; margin-bottom: 0.85rem;
}
.customer-sidebar .avatar {
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--tp-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(254,125,33,0.5);
}
.customer-sidebar nav a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  color: var(--tp-muted-fg);
  font-size: 0.9rem; font-weight: 500;
  border-radius: 0.6rem;
  margin-bottom: 0.2rem;
  transition: all 0.15s ease;
}
.customer-sidebar nav a:hover {
  background: rgba(255,255,255,0.04); color: #fff;
}
.customer-sidebar nav a.active {
  background: rgba(var(--tp-primary-rgb), 0.15);
  color: var(--tp-primary);
}

/* Stat cards */
.stat-card {
  background: rgba(var(--tp-card-rgb), 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-lg);
  padding: 1.25rem;
  display: flex; gap: 0.85rem; align-items: center;
}
.stat-card .icon-box {
  width: 44px; height: 44px; border-radius: 0.75rem;
  background: rgba(var(--tp-primary-rgb), 0.15);
  color: var(--tp-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.stat-card .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tp-muted-fg); }
.stat-card .value { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1.1; }

/* ---------- Feature card (homepage features) ---------- */
.feature-card {
  background: rgba(var(--tp-card-rgb), 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-xl);
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(var(--tp-primary-rgb), 0.4);
  transform: translateY(-2px);
}
.feature-card .icon-box {
  width: 48px; height: 48px; border-radius: 0.85rem;
  background: rgba(var(--tp-primary-rgb), 0.15);
  color: var(--tp-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease;
}
.feature-card:hover .icon-box { transform: scale(1.1); }
.feature-card h4 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.55rem; }
.feature-card p { color: var(--tp-muted-fg); font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* ---------- Feedback card ---------- */
.feedback-card {
  background: rgba(var(--tp-card-rgb), 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-lg);
  padding: 1.5rem;
  height: 100%;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.feedback-card .stars { color: #facc15; font-size: 0.9rem; letter-spacing: 0.05em; }
.feedback-card .stars .empty { color: rgba(255,255,255,0.15); }
.feedback-card .message { color: var(--tp-fg); font-size: 0.95rem; line-height: 1.55; }
.feedback-card .reply {
  border-left: 2px solid rgba(var(--tp-primary-rgb), 0.5);
  padding: 0.5rem 0.85rem;
  margin-top: 0.5rem;
  color: var(--tp-muted-fg); font-size: 0.85rem;
  background: rgba(var(--tp-primary-rgb), 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}
.feedback-card .meta { color: var(--tp-muted-fg); font-size: 0.78rem; display: flex; justify-content: space-between; align-items: center; }

/* ---------- Blog card ---------- */
.blog-card {
  background: rgba(var(--tp-card-rgb), 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: all 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--tp-primary-rgb), 0.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.blog-card .blog-image { aspect-ratio: var(--blog-card-image-aspect-ratio); overflow: hidden; }
.blog-card .blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-card .blog-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex-grow: 1; }
.blog-card .blog-title { font-size: 1.1rem; font-weight: 700; color: var(--tp-fg); margin: 0; }
.blog-card .blog-meta { font-size: 0.75rem; color: var(--tp-muted-fg); }

/* ---------- Status card ---------- */
.status-card {
  background: rgba(var(--tp-card-rgb), 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: border-color 0.2s ease;
}
.status-card:hover { border-color: rgba(var(--tp-primary-rgb), 0.4); }
.status-card .name { font-weight: 700; }
.status-card .meta { font-size: 0.75rem; color: var(--tp-muted-fg); }

/* ---------- Socials grid ---------- */
.social-card {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(var(--tp-card-rgb), 0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius);
  color: var(--tp-fg); font-weight: 600;
  transition: all 0.18s ease;
}
.social-card:hover {
  background: rgba(var(--tp-primary-rgb), 0.10);
  border-color: rgba(var(--tp-primary-rgb), 0.35);
  color: #fff; transform: translateY(-2px);
}
.social-card .icon-box {
  width: 38px; height: 38px; border-radius: 0.6rem;
  background: rgba(var(--tp-primary-rgb), 0.15); color: var(--tp-primary);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Image gallery ---------- */
.image-gallery-item {
  border-radius: var(--tp-radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.image-gallery-item:hover { transform: translateY(-2px); border-color: rgba(var(--tp-primary-rgb), 0.4); }
.image-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.image-gallery-item:hover img { transform: scale(1.05); }

/* ---------- Text/image blocks ---------- */
.text-block, .text-image-block, .text-video-block { padding: 4rem 0; }
.text-block.bg-secondary, .text-image-block.bg-secondary, .text-video-block.bg-secondary {
  background: rgba(var(--tp-card-rgb), 0.4) !important;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.text-block h2, .text-image-block h2, .text-video-block h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  letter-spacing: -0.025em; text-transform: uppercase;
  font-weight: 800;
}
.text-block p, .text-image-block p, .text-video-block p {
  color: var(--tp-muted-fg); line-height: 1.7;
}

.text-image-image {
  border-radius: var(--tp-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  position: relative;
}
.text-image-image::before {
  content: ""; position: absolute; inset: -16px; z-index: -1;
  background: rgba(var(--tp-primary-rgb), 0.18);
  filter: blur(40px); border-radius: inherit;
  opacity: 0.6;
}

/* ---------- Ticket message threads ---------- */
.ticket-message {
  background: rgba(var(--tp-card-rgb), 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tp-radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.ticket-message.from-staff {
  background: rgba(var(--tp-primary-rgb), 0.08);
  border-color: rgba(var(--tp-primary-rgb), 0.30);
}
.ticket-message .ticket-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--tp-muted-fg);
  margin-bottom: 0.5rem;
}

/* ---------- Choices.js theming ---------- */
.choices {
  margin-bottom: 0;
  background: transparent !important;
}
.choices.is-disabled .choices__inner,
.choices.is-disabled .choices__input { background: rgba(255,255,255,0.02) !important; }
.choices__inner {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: var(--tp-fg) !important;
  border-radius: 0.75rem !important;
  min-height: 38px;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.85rem;
}
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: rgba(var(--tp-primary-rgb), 0.5) !important;
  background: rgba(255,255,255,0.06) !important;
}
.choices__list--single {
  padding: 0 !important;
  color: var(--tp-fg);
}
.choices__list--single .choices__item {
  color: var(--tp-fg) !important;
  background: transparent !important;
}
.choices__placeholder { color: var(--tp-muted-fg) !important; opacity: 1; }
.choices__input {
  background: transparent !important;
  color: var(--tp-fg) !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  background: rgba(var(--tp-card-rgb), 0.98) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: var(--tp-radius) !important;
  color: var(--tp-fg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  margin-top: 4px;
  z-index: 1100;
}
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
  color: var(--tp-fg) !important;
  background: transparent !important;
  padding: 0.5rem 0.75rem;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: rgba(var(--tp-primary-rgb), 0.18) !important;
  color: #fff !important;
}

.choices[data-type*="select-one"]::after {
  border-color: var(--tp-muted-fg) transparent transparent transparent !important;
}
.choices.is-open[data-type*="select-one"]::after {
  border-color: transparent transparent var(--tp-muted-fg) transparent !important;
}

/* Currency-selector specific (compact navbar pill) */
.currency-selector .choices__inner {
  min-height: 36px;
  padding: 0.25rem 1.5rem 0.25rem 0.65rem !important;
  font-weight: 600;
}
.currency-selector .choices__list--dropdown { min-width: 200px; }
.currency-selector .symbol { color: var(--tp-primary); font-weight: 800; margin-right: 0.35rem; }
.currency-selector .code { color: var(--tp-fg); font-weight: 600; letter-spacing: 0.05em; }
.currency-selector .default {
  font-size: 0.65rem; color: var(--tp-muted-fg);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  margin-left: 0.5rem;
}

/* ---------- Misc ---------- */
.text-muted { color: var(--tp-muted-fg) !important; }
.text-primary { color: var(--tp-primary) !important; }
.bg-body, .bg-light { background: var(--tp-bg) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end {
  border-color: rgba(255,255,255,0.08) !important;
}

/* Trust badges row (used on hero / cta) */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center;
}
.trust-row .trust-item {
  display: inline-flex; gap: 0.6rem; align-items: center;
  font-size: 0.78rem; color: var(--tp-muted-fg);
}
.trust-row .trust-item .icon-box {
  width: 30px; height: 30px; border-radius: 0.5rem;
  background: rgba(var(--tp-primary-rgb), 0.15); color: var(--tp-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.trust-row .trust-item .value { font-weight: 800; color: #fff; font-size: 0.85rem; line-height: 1; }
.trust-row .trust-item .label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--tp-muted-fg); }

/* CTA banner (final on homepage) */
.cta-banner {
  position: relative; overflow: hidden;
  padding: 4rem 2rem;
  background: rgba(var(--tp-card-rgb), 0.5);
  border: 1px solid rgba(var(--tp-primary-rgb), 0.25);
  border-radius: 2.5rem;
  backdrop-filter: blur(14px);
  text-align: center;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 100% 0%, rgba(var(--tp-primary-rgb), 0.20), transparent 55%);
}
.cta-banner > * { position: relative; z-index: 1; }

/* "Why us" / left-right split */
.split-card {
  position: relative; border-radius: var(--tp-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(var(--tp-primary-rgb), 0.20);
  background: rgba(var(--tp-card-rgb), 0.4);
  padding: 0.5rem;
}
.split-card::before {
  content: ""; position: absolute; inset: -16px; z-index: -1;
  background: rgba(var(--tp-primary-rgb), 0.20);
  filter: blur(40px); border-radius: inherit;
  animation: tpPulseSoft 4s ease-in-out infinite;
}
@keyframes tpPulseSoft {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.85; }
}
.split-card img { border-radius: var(--tp-radius-lg); width: 100%; height: 100%; object-fit: cover; }
.split-card .floating-info {
  position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  background: rgba(var(--tp-card-rgb), 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--tp-radius-lg);
  padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
}

/* Make Bootstrap rows used on simple template content readable */
main, .template-content {
  position: relative;
  z-index: 1;
}

/* Simple legal/static page wrapper */
.legal-page {
  max-width: 880px; margin: 0 auto; padding: 4rem 1.25rem;
}
.legal-page h1 { font-size: 2.5rem; text-transform: uppercase; }
.legal-page h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal-page p, .legal-page li { color: var(--tp-muted-fg); line-height: 1.75; }
