/* ===== mrrobot — Telegram Bot Marketplace ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand — Telegram blue */
  --bg-0: #0e1621;
  --bg-1: #17212b;
  --bg-2: #1f2c3a;
  --bg-3: #263748;
  --bg-card: rgba(23, 33, 43, 0.72);
  --bg-card-solid: #17212b;

  --line: rgba(94, 181, 247, 0.14);
  --line-strong: rgba(94, 181, 247, 0.3);

  --text-0: #f4f8fb;
  --text-1: #c8d5e2;
  --text-2: #8fa2b5;
  --text-3: #6b7f91;

  /* Telegram accents */
  --neon-cyan: oklch(0.85 0.18 203);
  --neon-violet: oklch(0.5 0.14 256.34);
  --neon-pink: #3e6a96;
  --neon-lime: #b6ff3c;
  --neon-amber: #ffb13c;
  --neon-red: #ff3d6e;

  --primary: oklch(0.85 0.18 203);
  --primary-2: #2b5278;

  --grad-hero: linear-gradient(135deg, oklch(0.66 0.15 204.69) 0%, oklch(0.53 0.13 244.02) 50%, #156eb0 100%);
  --grad-card: linear-gradient(160deg, rgba(94,181,247,0.1), rgba(43,82,120,0.1));
  --grad-line: linear-gradient(90deg, transparent, rgba(94,181,247,0.45), transparent);

  --glow-cyan: 0 0 24px rgba(94,181,247,0.45), 0 0 60px rgba(94,181,247,0.18);
  --glow-violet: 0 0 24px rgba(43,82,120,0.45), 0 0 60px rgba(43,82,120,0.18);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-1: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-2: 0 24px 60px rgba(0,0,0,0.55);

  --font-sans: 'Vazirmatn', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-0); color: var(--text-0); font-family: var(--font-sans); direction: rtl; }
body {
  min-height: 100vh;
  font-feature-settings: "ss01", "ss02";
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(43,82,120,0.22), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(94,181,247,0.14), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(31,57,86,0.14), transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== Grid background pattern ===== */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(94,181,247,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,181,247,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ===== Layout ===== */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ===== Header / Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(14,22,33,0.75);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-hero);
  display: grid; place-items: center;
  position: relative;
  box-shadow: var(--glow-cyan);
}
.logo-mark::after {
  content: ''; position: absolute; inset: 2px;
  background: var(--bg-0); border-radius: 8px;
  display: grid; place-items: center;
}
.logo-mark svg { position: relative; z-index: 1; }
.logo-text { font-family: var(--font-mono); font-weight: 600; }
.logo-text .dot { color: var(--neon-cyan); }

.nav-links { display: flex; gap: 6px; margin-right: auto; }
.nav-links > ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links ul ul { /* sub-menus */
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; padding: 0; }
.nav-links li { position: relative; }
.nav-links li.menu-item-has-children::after {
  content: '';
  position: absolute;
  right: 0;
  top: 100%;
  width: 100%;
  height: 14px; /* hover-bridge to prevent flicker */
}
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 160ms ease 260ms,
    transform 160ms ease 260ms,
    visibility 0s linear 520ms;
}
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.nav-links .sub-menu li { width: 100%; }
.nav-links .sub-menu a.nav-link {
  display: block;
  width: 100%;
  padding: 10px 12px;
}
.nav-links li.active > a.nav-link { color: var(--neon-cyan); background: rgba(94,181,247,0.16); }
.nav-link {
  padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--text-1);
  transition: all 0.2s;
}
.nav-link:hover { background: rgba(94,181,247,0.12); color: var(--text-0); }
.nav-link.active { color: var(--neon-cyan); background: rgba(94,181,247,0.16); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  transition: all 0.2s; position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-hero);
  color: #06070d;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(94,181,247,0.55), 0 0 80px rgba(43,82,120,0.35); }
.btn-ghost {
  background: rgba(94,181,247,0.09);
  color: var(--text-0);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(94,181,247,0.16); border-color: rgba(94,181,247,0.45); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-0);
}
.btn-outline:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.btn-lg { padding: 16px 28px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-card);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

/* ===== Type ===== */
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.1; font-weight: 800; }
.h-display { font-size: clamp(40px, 6vw, 80px); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; }
.h-1 { font-size: clamp(32px, 4vw, 52px); }
.h-2 { font-size: clamp(26px, 3vw, 38px); }
.h-3 { font-size: 22px; }

.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mono { font-family: var(--font-mono); }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  background: rgba(94,181,247,0.12);
  border: 1px solid rgba(94,181,247,0.3);
  color: var(--neon-cyan);
}
.badge.violet { background: rgba(43,82,120,0.16); border-color: rgba(94,181,247,0.28); color: var(--neon-violet); }
.badge.pink { background: rgba(62,106,150,0.16); border-color: rgba(62,106,150,0.3); color: var(--neon-pink); }
.badge.lime { background: rgba(182,255,60,0.1); border-color: rgba(182,255,60,0.3); color: var(--neon-lime); }
.badge.amber { background: rgba(255,177,60,0.1); border-color: rgba(255,177,60,0.3); color: var(--neon-amber); }

.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon-lime); box-shadow: 0 0 12px var(--neon-lime);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Form controls ===== */
.input {
  background: rgba(23,33,43,0.72);
  border: 1px solid var(--line-strong);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-0);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: all 0.2s;
}
.input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 0 3px rgba(94,181,247,0.18); }
.input::placeholder { color: var(--text-3); }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 56px; }
.section-head .badge { margin-bottom: 4px; }
.section-head p { color: var(--text-1); font-size: 17px; max-width: 600px; line-height: 1.6; }

/* ===== Utility ===== */
.muted { color: var(--text-2); }
.divider { height: 1px; background: var(--grad-line); margin: 0 auto; }
.scanline {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(94,181,247,0.025) 3px, rgba(94,181,247,0.025) 4px);
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.float { animation: float 6s ease-in-out infinite; }

/* ===== Telegram chat mock ===== */
.tg-chat {
  background: linear-gradient(180deg, #17212b 0%, #0e1621 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  font-family: 'Vazirmatn', -apple-system, system-ui, sans-serif;
  direction: ltr;
}
.tg-header {
  background: #17212b;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tg-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-hero);
  display: grid; place-items: center;
  font-weight: 800; color: #06070d;
}
.tg-info { flex: 1; }
.tg-name { font-weight: 600; font-size: 15px; color: #fff; }
.tg-status { font-size: 12px; color: #6c7883; }
.tg-body {
  padding: 16px; min-height: 320px;
  display: flex; flex-direction: column; gap: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(94,181,247,0.06), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(43,82,120,0.08), transparent 50%),
    #0e1621;
}
.tg-msg {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px; line-height: 1.4;
  word-break: break-word;
}
.tg-msg.bot { background: #182533; color: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.tg-msg.user { background: #2b5278; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.tg-msg .tg-time { font-size: 10px; color: rgba(255,255,255,0.4); margin-right: 6px; float: right; margin-top: 4px; margin-left: 6px; }
.tg-buttons { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.tg-btn {
  background: rgba(255,255,255,0.08); color: #5eb5f7;
  padding: 8px; border-radius: 6px; font-size: 13px;
  text-align: center; cursor: pointer; transition: background 0.15s;
}
.tg-btn:hover { background: rgba(255,255,255,0.12); }
.tg-input-area {
  background: #17212b; padding: 10px 14px;
  display: flex; gap: 10px; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.tg-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 14px;
  font-family: inherit;
}
.tg-input::placeholder { color: #6c7883; }
.tg-send {
  width: 32px; height: 32px; border-radius: 50%;
  background: #5eb5f7; color: #fff;
  display: grid; place-items: center;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 64px;
  background: rgba(14,22,33,0.72);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer h4 { font-size: 13px; color: var(--text-2); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--text-1); font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: var(--neon-cyan); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-3); font-size: 13px;
}

/* ========================================
   WooCommerce overrides — dark/neon theme
   ======================================== */

/* Reset WooCommerce default light backgrounds */
.woocommerce, .woocommerce-page,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  color: var(--text-0);
}

/* Inputs across woocommerce forms inherit our .input style */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-checkout #order_review_heading,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce input[type="search"],
.woocommerce textarea,
.woocommerce select {
  background: rgba(23, 33, 43, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--text-0);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(94,181,247,0.18);
}

/* WooCommerce buttons map to our .btn primary */
.woocommerce a.button,
.woocommerce-page a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page button.button,
.woocommerce-page input.button {
  background: var(--grad-hero) !important;
  color: #06070d !important;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  box-shadow: var(--glow-cyan);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background: var(--grad-hero) !important;
  color: #06070d !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(94,181,247,0.55), 0 0 80px rgba(43,82,120,0.35);
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  background: var(--bg-card-solid);
  border: 1px solid var(--line-strong);
  color: var(--text-0);
  border-top: 3px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
}
.woocommerce-error { border-top-color: var(--neon-red); }
.woocommerce-message { border-top-color: var(--neon-lime); }

/* Tables */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  color: var(--text-0);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--line) !important;
  background: transparent !important;
  color: var(--text-0);
  padding: 16px;
}
.woocommerce table.shop_table thead th {
  background: rgba(94,181,247,0.06) !important;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
}

/* Cart actions */
.woocommerce .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.woocommerce-cart .wc-proceed-to-checkout {
  padding-top: 20px;
}

/* My Account navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 240px;
  margin-left: 32px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  border: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-1);
  font-size: 14px;
  transition: all 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(94,181,247,0.12);
  color: var(--text-0);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: rgba(94,181,247,0.16);
  color: var(--neon-cyan);
}
.woocommerce-account .woocommerce-MyAccount-content {
  width: calc(100% - 280px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* My Account dashboard (custom template) */
.woocommerce-account .woocommerce-MyAccount-content .mr-account-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Single product gallery polish */
.woocommerce div.product .product_title {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* Single product (custom template) layout */
.mr-product-layout {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
  grid-template-columns: 1fr 420px;
  align-items: start;
}
.mr-product-layout > * {
  min-width: 0; /* prevent overflow/cutoff inside grid children */
}
.mr-product-aside {
  position: sticky;
  top: 88px;
  align-self: flex-start;
  min-width: 0;
}
.mr-product-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mr-product-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Product card thumbnail (archives) */
.mr-product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(23, 33, 43, 0.72);
  margin-bottom: 16px;
  position: relative;
}
.mr-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mr-product-thumb .woocommerce-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

/* Single product gallery tab */
.mr-product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mr-product-gallery__item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(23, 33, 43, 0.72);
  aspect-ratio: 1 / 1;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.mr-product-gallery__item:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.mr-product-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Buy box: make Woo add-to-cart look like our buttons */
.mr-product-buybox form.cart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.mr-product-buybox form.cart .quantity {
  width: 100%;
}
.mr-product-buybox form.cart .single_add_to_cart_button,
.mr-product-buybox form.cart button.single_add_to_cart_button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  background: var(--grad-hero);
  color: #06070d;
  box-shadow: var(--glow-cyan);
  border: none;
  transition: all 0.2s;
}
.mr-product-buybox form.cart .single_add_to_cart_button:hover,
.mr-product-buybox form.cart button.single_add_to_cart_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(94,181,247,0.55), 0 0 80px rgba(43,82,120,0.35);
}

.woocommerce div.product .price,
.woocommerce div.product p.price {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
}

.woocommerce div.product .price del {
  color: var(--text-3);
  margin-left: 10px;
}

/* Quantity selector */
.woocommerce .quantity .qty {
  background: rgba(23,33,43,0.72);
  border: 1px solid var(--line-strong);
  color: var(--text-0);
  border-radius: 10px;
  padding: 8px;
  width: 64px;
  text-align: center;
  font-family: var(--font-mono);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin: 0 0 24px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  margin: 0;
  border-radius: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 12px 20px;
  display: inline-block;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--text-1);
}

/* Stars */
.woocommerce .star-rating, .woocommerce p.stars a {
  color: var(--neon-amber);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  color: var(--text-1);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--grad-hero);
  color: #06070d;
  border: none;
}

/* Product gallery image background */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  background: var(--bg-card-solid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Hide breadcrumbs from WC (we render our own) */
.woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
}
.woocommerce-breadcrumb a {
  color: var(--text-2);
}

/* Coupon row */
.woocommerce-cart .coupon {
  display: flex;
  gap: 10px;
  align-items: center;
}
.woocommerce-cart .coupon input[type="text"] {
  flex: 1;
}

/* ========================================
   Telegram-chat input (used in single-product)
   ======================================== */
.tg-msg.user { background: #2b5278 !important; color: #fff !important; align-self: flex-end !important; border-bottom-right-radius: 4px !important; }

/* Faq accordion (vanilla replacement) */
.faq-item .faq-q {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
  color: var(--text-0);
  font-size: 16px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-item .faq-icon {
  color: var(--neon-cyan);
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item .faq-a {
  padding: 0 24px 20px;
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-a { display: block; animation: fadeIn 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Builder progress / steps */
.builder-stepper {
  max-width: 680px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.builder-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: var(--line);
}
.builder-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.builder-step .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text-1);
  font-family: var(--font-mono);
}
.builder-step.active .num {
  border: 2px solid var(--neon-cyan);
}
.builder-step.done .num {
  background: var(--grad-hero);
  color: #000;
}
.builder-step .label {
  font-size: 12px;
  color: var(--text-3);
}
.builder-step.active .label,
.builder-step.done .label {
  color: var(--text-0);
}

.builder-pane { display: none; }
.builder-pane.active { display: block; }

/* Builder selection state */
[data-feature].is-on {
  background: rgba(94,181,247,0.14) !important;
  border-color: var(--neon-cyan) !important;
}
[data-feature].is-on > div:first-child {
  background: rgba(94,181,247,0.22) !important;
  color: var(--neon-cyan) !important;
}
[data-integration].is-on {
  background: rgba(43,82,120,0.16) !important;
  border-color: var(--neon-violet) !important;
}
[data-plan].is-on {
  background: rgba(94,181,247,0.1) !important;
  border-color: var(--neon-cyan) !important;
}

/* Mobile menu / nav-menu collapse helpers */
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions .btn span { display: none; }
  .nav-toggle {
    display: inline-flex;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(94,181,247,0.1);
    border: 1px solid var(--line-strong);
    align-items: center; justify-content: center;
    color: var(--text-0);
  }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    gap: 4px;
    box-shadow: var(--shadow-2);
  }
  .nav.is-open .nav-links ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav.is-open .nav-links .sub-menu {
    position: static;
    min-width: 0;
    padding: 6px 0 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav.is-open .nav-links li:hover > .sub-menu,
  .nav.is-open .nav-links li:focus-within > .sub-menu {
    display: block;
  }
  .nav.is-open .nav-links .sub-menu a.nav-link {
    padding-right: 28px;
    opacity: 0.95;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .section { padding: 64px 0; }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
    margin-left: 0;
    margin-bottom: 16px;
  }
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    padding: 20px;
  }
  .woocommerce-account .woocommerce-MyAccount-content .mr-account-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mr-product-layout {
    grid-template-columns: 1fr;
  }
  .mr-product-aside {
    position: static;
    top: auto;
  }
  .mr-product-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mr-product-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mr-product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: 8px 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .woocommerce-account .woocommerce-MyAccount-content .mr-account-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .mr-product-stats {
    grid-template-columns: 1fr;
  }
  .mr-product-related {
    grid-template-columns: 1fr;
  }
  .mr-product-gallery {
    grid-template-columns: 1fr;
  }
}
