:root {
  --bg: #f7f9fc;
  --bg-alt: #eef2ff;
  --text: #1f2937;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --card: #ffffff;
  --border-subtle: #e5e7eb;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --grad-blue: linear-gradient(180deg, #dbeafe, #e0f2fe);
  --grad-green: linear-gradient(180deg, #dcfce7, #f0fdf4);
  --grad-peach: linear-gradient(180deg, #ffe4d6, #ffe9e0);
  --grad-pink: linear-gradient(180deg, #ffe4f1, #fde7f3);
  --grad-lilac: linear-gradient(180deg, #efe9ff, #f5eeff);
  --grad-sun: linear-gradient(90deg, #d9f99d, #f7e29c, #fbcfe8);
  --grad-mint: linear-gradient(90deg, #bbf7d0, #e9d5ff);

  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-tribe: #a855f7;
  --accent-tribe-cyan: #22d3ee;

  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(148, 163, 184, 0.28);
  --nav-blur: blur(16px);
}

[data-theme="dark"] {
  --bg: #020617;
  --bg-alt: #020617;
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --muted: #6b7280;
  --card: rgba(15, 23, 42, 0.95);
  --border-subtle: rgba(51, 65, 85, 0.9);
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.9);

  --nav-bg: rgba(15, 23, 42, 0.92);
  --nav-border: rgba(51, 65, 85, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.rx-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px;
}

.rx-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 26px 28px 30px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rx-section {
  padding: 128px 0;
}

.rx-section-alt {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.6), rgba(240, 253, 250, 0.4));
}

[data-theme="dark"] .rx-section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

.rx-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.rx-section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 6px;
}

.rx-section-title {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.rx-section-sub {
  margin: 0;
  font-size: 16px;
  color: var(--text-soft);
  max-width: 760px;
  line-height: 1.8;
}

.rx-section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* NAVBAR */
.rx-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: var(--nav-blur);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.rx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px;
}

.rx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rx-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: var(--grad-sun);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.35);
}

.rx-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rx-logo-title {
  font-family: 'Poppins', system-ui;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 18px;
}

.rx-logo-sub {
  font-size: 11px;
  color: var(--muted);
}

.rx-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
}

.rx-nav-link {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.rx-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a5b4fc, #fbbf24, #f9a8d4);
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.18s ease-out;
}

.rx-nav-link:hover {
  color: var(--text);
}

.rx-nav-link.is-active {
  color: var(--text);
}

.rx-nav-link.is-active::after {
  transform: scaleX(1);
}

.rx-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rx-theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .rx-theme-toggle {
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
}

.rx-cta-pill {
  height: 38px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--grad-mint);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.35);
  cursor: pointer;
}

.rx-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.rx-nav-burger span {
  display: block;
  height: 2px;
  width: 14px;
  border-radius: 999px;
  background: #0f172a;
}

/* HERO */
.rx-hero {
  padding-top: 140px;
  padding-bottom: 140px;
  background: #fafafa;
  background-image:
    radial-gradient(ellipse 75% 55% at 90% 15%, rgba(233, 213, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 55% 70% at 75% 85%, rgba(209, 250, 229, 0.35), transparent 50%);
}

[data-theme="dark"] .rx-hero {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 55% at 90% 15%, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 70% at 75% 85%, rgba(34, 197, 94, 0.08), transparent 50%);
}

.rx-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.rx-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #047857;
  background: #d1fae5;
  margin-bottom: 32px;
}

[data-theme="dark"] .rx-pill-tag {
  color: #6ee7b7;
  background: rgba(6, 95, 70, 0.5);
}

.rx-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}

.rx-hero-title {
  margin: 0 0 32px;
  font-family: 'Poppins', system-ui;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #1f2937;
  font-weight: 700;
}

[data-theme="dark"] .rx-hero-title {
  color: var(--text);
}

.rx-hero-title .rx-highlight {
  background: rgba(252, 231, 243, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme="dark"] .rx-hero-title .rx-highlight {
  background: rgba(236, 72, 153, 0.25);
}

.rx-gradient-text {
  background: linear-gradient(90deg, #4f46e5, #a855f7, #f97316, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rx-hero-sub {
  margin: 0 0 36px;
  font-size: 16px;
  color: #6b7280;
  max-width: 640px;
  line-height: 1.75;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .rx-hero-sub {
  color: var(--text-soft);
}

.rx-hero-sub .rx-hero-chip:nth-of-type(1) {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
}

.rx-hero-sub .rx-hero-chip:nth-of-type(2) {
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme="dark"] .rx-hero-sub .rx-hero-chip:nth-of-type(1) {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

[data-theme="dark"] .rx-hero-sub .rx-hero-chip:nth-of-type(2) {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.rx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.rx-hero .rx-btn-primary {
  background: #8b5cf6;
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
  text-decoration: none;
}

.rx-hero .rx-btn-primary:hover {
  background: #7c3aed;
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.5);
}

.rx-hero .rx-btn-ghost {
  background: #fff;
  color: #8b5cf6;
  border: 1px solid #8b5cf6;
}

.rx-hero .rx-btn-ghost:hover {
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .rx-hero .rx-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #a78bfa;
  border-color: #a78bfa;
}

.rx-btn-primary,
.rx-btn-ghost,
.rx-btn-soft,
.rx-btn-neon {
  border-radius: var(--radius-md);
  padding: 0 20px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.rx-btn-primary {
  background: var(--grad-sun);
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.45);
}

.rx-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.6);
}

.rx-btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.rx-btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(148, 163, 184, 0.35);
}

.rx-btn-soft {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.rx-btn-soft:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(148, 163, 184, 0.35);
}

.rx-btn-neon {
  background: radial-gradient(circle at top left, rgba(147, 51, 234, 0.4), rgba(59, 130, 246, 0.4));
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.7);
  color: #e5e7eb;
  border: 1px solid rgba(129, 140, 248, 0.9);
}

.rx-btn-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(129, 140, 248, 0.9);
}

.rx-hero-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  justify-content: center;
}

.rx-meta-card {
  min-width: 148px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.rx-meta-label {
  font-size: 11px;
  color: var(--muted);
}

.rx-meta-value {
  display: block;
  font-weight: 800;
  font-size: 14px;
}

/* LIVE IN 5 SIMPLE STEPS */
.rx-live-steps {
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

[data-theme="dark"] .rx-live-steps {
  background: var(--card);
}

.rx-live-steps .rx-container {
  width: 100%;
}

.rx-live-steps-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.rx-live-steps-title {
  margin: 0 0 12px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  color: #1f2937;
}

[data-theme="dark"] .rx-live-steps-title {
  color: var(--text);
}

.rx-live-steps-highlight {
  background: #fef3c7;
  padding: 2px 10px;
  border-radius: 6px;
}

[data-theme="dark"] .rx-live-steps-highlight {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.rx-live-steps-sub {
  margin: 0;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
}

[data-theme="dark"] .rx-live-steps-sub {
  color: var(--text-soft);
}

.rx-live-steps-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
}

.rx-live-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Subtle S-curve: steps at children 1,3,5,7,9 */
.rx-live-step:nth-child(1) { margin-top: 0; }
.rx-live-step:nth-child(3) { margin-top: 12px; }
.rx-live-step:nth-child(5) { margin-top: 24px; }
.rx-live-step:nth-child(7) { margin-top: 12px; }
.rx-live-step:nth-child(9) { margin-top: 0; }

.rx-live-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px solid #a78bfa;
  color: #8b5cf6;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .rx-live-step-icon {
  background: var(--card);
  border-color: #7c3aed;
  color: #a78bfa;
}

.rx-live-step:hover .rx-live-step-icon {
  background: rgba(139, 92, 246, 0.08);
  border-color: #8b5cf6;
}

.rx-live-step-text {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

[data-theme="dark"] .rx-live-step-text {
  color: var(--text);
}

.rx-live-step-connector {
  flex: 1;
  min-width: 24px;
  max-width: 56px;
  height: 2px;
  margin: 0 8px;
  background: repeating-linear-gradient(90deg, #a78bfa 0, #a78bfa 6px, transparent 6px, transparent 10px);
  align-self: center;
}

/* Responsive: stack steps vertically on small screens */
@media (max-width: 900px) {
  .rx-live-steps-flow {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .rx-live-step {
    margin-top: 0 !important;
  }

  .rx-live-step-connector {
    width: 2px;
    min-width: 2px;
    max-width: 2px;
    height: 32px;
    margin: 0;
    background: repeating-linear-gradient(180deg, #a78bfa 0, #a78bfa 6px, transparent 6px, transparent 10px);
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .rx-live-steps-head {
    margin-bottom: 40px;
  }

  .rx-live-steps-title {
    font-size: 24px;
  }

  .rx-live-step-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .rx-live-step-text {
    font-size: 13px;
  }
}

/* RAPIDX VERSIONS – full viewport, heading like reference */
.rx-versions {
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

[data-theme="dark"] .rx-versions {
  background: var(--card);
}

.rx-versions-inner {
  width: 100%;
}

.rx-versions-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.rx-versions-title {
  margin: 0 0 16px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1a1a1a;
}

[data-theme="dark"] .rx-versions-title {
  color: var(--text);
}

.rx-versions-highlight {
  background: #d1fae5;
  padding: 4px 12px;
  border-radius: 8px;
}

[data-theme="dark"] .rx-versions-highlight {
  background: rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}

.rx-versions-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

[data-theme="dark"] .rx-versions-sub {
  color: var(--text-soft);
}

.rx-versions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.rx-version-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px 24px 32px;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .rx-version-card {
  background: var(--card);
  border-color: var(--border-subtle);
}

.rx-version-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.rx-version-card-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

[data-theme="dark"] .rx-version-card-title {
  color: var(--text);
}

.rx-version-card-desc {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.55;
}

[data-theme="dark"] .rx-version-card-desc {
  color: var(--text-soft);
}

/* POS device mock – CSS-only screen */
.rx-device-mock {
  margin: 0 auto;
}

.rx-pos-mock {
  max-width: 260px;
}

.rx-pos-screen {
  background: #1e293b;
  border-radius: 12px;
  padding: 14px 16px 18px;
  color: #e2e8f0;
  font-size: 13px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rx-pos-screen-header {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.rx-pos-screen-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.rx-pos-screen-footer {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* Mobile device mock – phone frame + QR */
.rx-mobile-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rx-mobile-frame {
  width: 160px;
  background: #1f2937;
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.rx-mobile-notch {
  width: 50px;
  height: 6px;
  background: #374151;
  border-radius: 999px;
  margin: 0 auto 10px;
}

.rx-mobile-screen {
  background: #f3f4f6;
  border-radius: 14px;
  padding: 20px 14px;
  min-height: 180px;
}

[data-theme="dark"] .rx-mobile-screen {
  background: #374151;
}

.rx-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 2px dashed #9ca3af;
  border-radius: 12px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}

[data-theme="dark"] .rx-qr-placeholder {
  background: #4b5563;
  border-color: #6b7280;
  color: #9ca3af;
}

.rx-qr-icon {
  font-size: 32px;
  color: #10b981;
}

.rx-mobile-label {
  font-size: 10px;
  color: #6b7280;
  margin-top: 10px;
  text-align: center;
}

.rx-flow-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.rx-flow-dot {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 999px;
}

[data-theme="dark"] .rx-flow-dot {
  background: #374151;
  color: #9ca3af;
}

/* Versions section responsive */
@media (max-width: 900px) {
  .rx-versions-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rx-versions-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .rx-versions-sub {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .rx-versions-head {
    margin-bottom: 40px;
  }

  .rx-versions-title {
    font-size: 1.5rem;
  }

  .rx-version-card {
    padding: 20px 18px 24px;
  }

  .rx-pos-mock {
    max-width: 220px;
  }

  .rx-mobile-frame {
    width: 140px;
  }

  .rx-mobile-screen {
    min-height: 150px;
  }

  .rx-qr-icon {
    font-size: 26px;
  }
}

/* MULTILINGUAL – moving background letters, not full viewport */
.rx-multilingual {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding-top: 96px;
  padding-bottom: 140px;
}

[data-theme="dark"] .rx-multilingual {
  background: var(--card);
}

.rx-multilingual-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.rx-multilingual-bg .rx-char {
  position: absolute;
  opacity: 0.28;
  font-size: clamp(16px, 2.2vw, 26px);
  font-family: inherit;
  animation: rx-char-float 22s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.4s);
}

/* Scattered positions (no lines) */
.rx-multilingual-bg .rx-char:nth-child(1) { left: 6%; top: 8%; }
.rx-multilingual-bg .rx-char:nth-child(2) { left: 82%; top: 12%; }
.rx-multilingual-bg .rx-char:nth-child(3) { left: 18%; top: 72%; }
.rx-multilingual-bg .rx-char:nth-child(4) { left: 72%; top: 78%; }
.rx-multilingual-bg .rx-char:nth-child(5) { left: 42%; top: 15%; }
.rx-multilingual-bg .rx-char:nth-child(6) { left: 12%; top: 42%; }
.rx-multilingual-bg .rx-char:nth-child(7) { left: 88%; top: 45%; }
.rx-multilingual-bg .rx-char:nth-child(8) { left: 55%; top: 82%; }
.rx-multilingual-bg .rx-char:nth-child(9) { left: 28%; top: 22%; }
.rx-multilingual-bg .rx-char:nth-child(10) { left: 65%; top: 28%; }
.rx-multilingual-bg .rx-char:nth-child(11) { left: 8%; top: 58%; }
.rx-multilingual-bg .rx-char:nth-child(12) { left: 78%; top: 62%; }
.rx-multilingual-bg .rx-char:nth-child(13) { left: 35%; top: 5%; }
.rx-multilingual-bg .rx-char:nth-child(14) { left: 5%; top: 32%; }
.rx-multilingual-bg .rx-char:nth-child(15) { left: 92%; top: 35%; }
.rx-multilingual-bg .rx-char:nth-child(16) { left: 48%; top: 68%; }
.rx-multilingual-bg .rx-char:nth-child(17) { left: 22%; top: 88%; }
.rx-multilingual-bg .rx-char:nth-child(18) { left: 68%; top: 8%; }
.rx-multilingual-bg .rx-char:nth-child(19) { left: 14%; top: 18%; }
.rx-multilingual-bg .rx-char:nth-child(20) { left: 85%; top: 72%; }
.rx-multilingual-bg .rx-char:nth-child(21) { left: 52%; top: 42%; }
.rx-multilingual-bg .rx-char:nth-child(22) { left: 38%; top: 55%; }
.rx-multilingual-bg .rx-char:nth-child(23) { left: 8%; top: 82%; }
.rx-multilingual-bg .rx-char:nth-child(24) { left: 75%; top: 22%; }
.rx-multilingual-bg .rx-char:nth-child(25) { left: 25%; top: 52%; }
.rx-multilingual-bg .rx-char:nth-child(26) { left: 58%; top: 58%; }
.rx-multilingual-bg .rx-char:nth-child(27) { left: 42%; top: 88%; }
.rx-multilingual-bg .rx-char:nth-child(28) { left: 15%; top: 65%; }
.rx-multilingual-bg .rx-char:nth-child(29) { left: 82%; top: 52%; }
.rx-multilingual-bg .rx-char:nth-child(30) { left: 32%; top: 38%; }
.rx-multilingual-bg .rx-char:nth-child(31) { left: 62%; top: 12%; }
.rx-multilingual-bg .rx-char:nth-child(32) { left: 5%; top: 48%; }
.rx-multilingual-bg .rx-char:nth-child(33) { left: 90%; top: 58%; }
.rx-multilingual-bg .rx-char:nth-child(34) { left: 48%; top: 28%; }
.rx-multilingual-bg .rx-char:nth-child(35) { left: 18%; top: 35%; }
.rx-multilingual-bg .rx-char:nth-child(36) { left: 72%; top: 85%; }
.rx-multilingual-bg .rx-char:nth-child(37) { left: 28%; top: 62%; }
.rx-multilingual-bg .rx-char:nth-child(38) { left: 58%; top: 35%; }
.rx-multilingual-bg .rx-char:nth-child(39) { left: 12%; top: 92%; }
.rx-multilingual-bg .rx-char:nth-child(40) { left: 85%; top: 38%; }
.rx-multilingual-bg .rx-char:nth-child(41) { left: 35%; top: 75%; }
.rx-multilingual-bg .rx-char:nth-child(42) { left: 65%; top: 65%; }
.rx-multilingual-bg .rx-char:nth-child(43) { left: 45%; top: 48%; }
.rx-multilingual-bg .rx-char:nth-child(44) { left: 22%; top: 78%; }
.rx-multilingual-bg .rx-char:nth-child(45) { left: 78%; top: 48%; }
.rx-multilingual-bg .rx-char:nth-child(46) { left: 8%; top: 25%; }
.rx-multilingual-bg .rx-char:nth-child(47) { left: 92%; top: 78%; }
.rx-multilingual-bg .rx-char:nth-child(48) { left: 55%; top: 18%; }
.rx-multilingual-bg .rx-char:nth-child(49) { left: 38%; top: 92%; }
.rx-multilingual-bg .rx-char:nth-child(50) { left: 68%; top: 52%; }

/* Page palette colors – subtle tints */
.rx-multilingual-bg .rx-char:nth-child(6n+1) { color: #8b5cf6; }
.rx-multilingual-bg .rx-char:nth-child(6n+2) { color: #047857; }
.rx-multilingual-bg .rx-char:nth-child(6n+3) { color: #4f46e5; }
.rx-multilingual-bg .rx-char:nth-child(6n+4) { color: #b45309; }
.rx-multilingual-bg .rx-char:nth-child(6n+5) { color: #be185d; }
.rx-multilingual-bg .rx-char:nth-child(6n)   { color: #6b7280; }

[data-theme="dark"] .rx-multilingual-bg .rx-char {
  opacity: 0.22;
}
[data-theme="dark"] .rx-multilingual-bg .rx-char:nth-child(6n+1) { color: #a78bfa; }
[data-theme="dark"] .rx-multilingual-bg .rx-char:nth-child(6n+2) { color: #34d399; }
[data-theme="dark"] .rx-multilingual-bg .rx-char:nth-child(6n+3) { color: #818cf8; }
[data-theme="dark"] .rx-multilingual-bg .rx-char:nth-child(6n+4) { color: #fbbf24; }
[data-theme="dark"] .rx-multilingual-bg .rx-char:nth-child(6n+5) { color: #f472b6; }
[data-theme="dark"] .rx-multilingual-bg .rx-char:nth-child(6n)   { color: #9ca3af; }

@keyframes rx-char-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(6px, -10px); }
  50% { transform: translate(-8px, 6px); }
  75% { transform: translate(10px, 8px); }
}

.rx-multilingual-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.rx-multilingual-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dbeafe;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

[data-theme="dark"] .rx-multilingual-icon {
  background: rgba(79, 70, 229, 0.3);
  color: #a5b4fc;
}

.rx-multilingual-title {
  margin: 0 0 14px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

[data-theme="dark"] .rx-multilingual-title {
  color: var(--text);
}

.rx-multilingual-highlight {
  background: #bfdbfe;
  padding: 4px 10px;
  border-radius: 6px;
}

[data-theme="dark"] .rx-multilingual-highlight {
  background: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.rx-multilingual-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4b5563;
}

[data-theme="dark"] .rx-multilingual-sub {
  color: var(--text-soft);
}

@media (max-width: 600px) {
  .rx-multilingual {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .rx-multilingual-title {
    font-size: 1.5rem;
  }
}

/* REAL-TIME ANALYTICS – alternating left/right, CSS report widgets */
.rx-analytics {
  background: #f8fafc;
  padding-top: 80px;
  padding-bottom: 100px;
}

[data-theme="dark"] .rx-analytics {
  background: var(--bg-alt);
}

.rx-analytics-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.rx-analytics-title {
  margin: 0 0 8px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #1a1a1a;
}

[data-theme="dark"] .rx-analytics-title {
  color: var(--text);
}

.rx-analytics-sub {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

[data-theme="dark"] .rx-analytics-sub {
  color: var(--text-soft);
}

.rx-analytics-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 56px;
  scroll-margin-top: 1rem;
}

.rx-analytics-row:last-child {
  margin-bottom: 0;
}

.rx-analytics-row-reverse {
  flex-direction: row-reverse;
}

.rx-analytics-copy {
  flex: 1;
  min-width: 0;
}

.rx-analytics-card-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
}

[data-theme="dark"] .rx-analytics-card-title {
  color: var(--text);
}

.rx-analytics-card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}

[data-theme="dark"] .rx-analytics-card-desc {
  color: var(--text-soft);
}

.rx-analytics-report {
  flex: 0 1 320px;
  min-width: 0;
}

.rx-report {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  animation: rx-report-in 0.6s ease-out backwards;
}

.rx-analytics-row:nth-child(2) .rx-report { animation-delay: 0.05s; }
.rx-analytics-row:nth-child(3) .rx-report { animation-delay: 0.1s; }
.rx-analytics-row:nth-child(4) .rx-report { animation-delay: 0.15s; }
.rx-analytics-row:nth-child(5) .rx-report { animation-delay: 0.2s; }
.rx-analytics-row:nth-child(6) .rx-report { animation-delay: 0.25s; }

@keyframes rx-report-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="dark"] .rx-report {
  background: var(--card);
  border-color: var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Report: Sales (big number + live) */
.rx-report-sales {
  text-align: center;
}

.rx-report-live {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  padding: 4px 10px;
  background: #d1fae5;
  border-radius: 999px;
  margin-bottom: 12px;
  animation: rx-pulse 2s ease-in-out infinite;
}

@keyframes rx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.rx-report-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  animation: rx-report-in 0.5s ease-out 0.2s backwards;
}

[data-theme="dark"] .rx-report-value {
  color: var(--text);
}

.rx-report-label {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}

.rx-report-sales .rx-report-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  margin-top: 14px;
  overflow: hidden;
}

.rx-report-sales .rx-report-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 999px;
  transform-origin: left;
  animation: rx-bar-scale 1.2s ease-out backwards;
}

/* Report: Cards (unused amounts) */
.rx-report-cards .rx-report-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}

.rx-report-cards .rx-report-row span:last-child {
  font-weight: 700;
  color: #1a1a1a;
}

.rx-report-row-total {
  border-top: 1px solid #e5e7eb;
  margin-top: 6px;
  padding-top: 12px;
  font-weight: 700;
}

.rx-report-cards .rx-report-row {
  animation: rx-report-in 0.4s ease-out backwards;
}

.rx-report-cards .rx-report-row:nth-child(1) { animation-delay: 0.1s; }
.rx-report-cards .rx-report-row:nth-child(2) { animation-delay: 0.2s; }
.rx-report-cards .rx-report-row:nth-child(3) { animation-delay: 0.3s; }
.rx-report-cards .rx-report-row:nth-child(4) { animation-delay: 0.4s; }

/* Report: Bar chart (top items) */
.rx-report-bars {
  padding: 18px 22px;
}

.rx-report-bar-item {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rx-report-bar-item:last-child {
  margin-bottom: 0;
}

.rx-report-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.rx-report-bar-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.rx-report-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 999px;
  transform-origin: left;
  animation: rx-bar-scale 1s ease-out backwards;
}

.rx-report-bar-item:nth-child(1) .rx-report-bar-fill { animation-delay: 0.2s; }
.rx-report-bar-item:nth-child(2) .rx-report-bar-fill { animation-delay: 0.35s; }
.rx-report-bar-item:nth-child(3) .rx-report-bar-fill { animation-delay: 0.5s; }

.rx-report-bar-num {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: right;
}

/* Report: Table (user cash & transferred) */
.rx-report-table .rx-report-th,
.rx-report-table .rx-report-tr {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 0;
  font-size: 12px;
}

.rx-report-th {
  font-weight: 700;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.rx-report-tr {
  animation: rx-report-in 0.35s ease-out backwards;
}

.rx-report-tr:nth-child(1) { animation-delay: 0.1s; }
.rx-report-tr:nth-child(2) { animation-delay: 0.2s; }
.rx-report-tr:nth-child(3) { animation-delay: 0.3s; }

.rx-report-tr span:last-child,
.rx-report-tr span:nth-child(3) {
  font-weight: 600;
  color: #1a1a1a;
}

/* Report: Day closure */
.rx-report-closure-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.rx-report-closure-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.rx-report-closure-row span:last-child {
  font-weight: 700;
  color: #1a1a1a;
}

.rx-report-closure-ok {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  color: #059669;
}

.rx-report-closure-ok span:last-child {
  color: #059669;
}

.rx-report-closure-row {
  animation: rx-report-in 0.4s ease-out backwards;
}

.rx-report-closure-row:nth-child(2) { animation-delay: 0.1s; }
.rx-report-closure-row:nth-child(3) { animation-delay: 0.2s; }
.rx-report-closure-row:nth-child(4) { animation-delay: 0.3s; }
.rx-report-closure-row:nth-child(5) { animation-delay: 0.4s; }

@keyframes rx-bar-scale {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Analytics responsive */
@media (max-width: 900px) {
  .rx-analytics-row,
  .rx-analytics-row-reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 40px;
  }

  .rx-analytics-report {
    flex: none;
    max-width: 100%;
  }

  .rx-report {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .rx-analytics-row-reverse .rx-report {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .rx-analytics {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .rx-analytics-head {
    margin-bottom: 32px;
  }

  .rx-analytics-title {
    font-size: 1.5rem;
  }

  .rx-report {
    max-width: 100%;
    padding: 16px 18px;
  }

  .rx-report-value {
    font-size: 1.5rem;
  }

  .rx-report-bar-item {
    grid-template-columns: 60px 1fr 32px;
    gap: 8px;
  }
}

/* CTA: Start your event in minutes – gradient banner */
.rx-cta-event {
  padding-top: 64px;
  padding-bottom: 64px;
}

.rx-cta-event-banner {
  background: linear-gradient(135deg, #6d28d9 0%, #a21caf 50%, #be185d 100%);
  background-size: 200% 200%;
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(109, 40, 217, 0.35);
}

.rx-cta-event-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  pointer-events: none;
}

.rx-cta-event-title {
  margin: 0 0 16px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
}

.rx-cta-event-sub {
  margin: 0 0 28px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.rx-cta-event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  height: 52px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  background: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.rx-cta-event-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .rx-cta-event-banner {
    padding: 40px 24px;
  }
  .rx-cta-event-title {
    font-size: 1.5rem;
  }
  .rx-cta-event-sub {
    font-size: 0.95rem;
  }
  .rx-cta-event-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Create event page – minimalist form, two slides */
/* Event setup chooser (create-event.html) */
.rx-section.rx-event-setup-page {
  padding-top: 20px;
  padding-bottom: 96px;
}

.rx-event-setup-compact-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.rx-event-setup-pill {
  margin-bottom: 16px;
}

.rx-event-setup-page-title {
  margin: 0 0 10px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: #1f2937;
}

[data-theme="dark"] .rx-event-setup-page-title {
  color: var(--text);
}

.rx-event-setup-page-title .rx-highlight {
  background: rgba(252, 231, 243, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme="dark"] .rx-event-setup-page-title .rx-highlight {
  background: rgba(236, 72, 153, 0.25);
}

.rx-event-setup-lead {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.55;
}

[data-theme="dark"] .rx-event-setup-lead {
  color: var(--text-soft);
}

.rx-event-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}

.rx-event-setup-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px 26px 32px;
  text-align: left;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .rx-event-setup-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

.rx-event-setup-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

[data-theme="dark"] .rx-event-setup-card:hover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
  border-color: #cbd5e1;
}

.rx-event-setup-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.rx-event-setup-card-icon--paperless {
  background: var(--grad-green);
  color: #14532d;
}

.rx-event-setup-card-icon--offline {
  background: var(--grad-lilac);
  color: #4c1d95;
}

.rx-event-setup-card-icon--online {
  background: var(--grad-peach);
  color: #9a3412;
}

[data-theme="dark"] .rx-event-setup-card-icon--paperless {
  color: #86efac;
}

[data-theme="dark"] .rx-event-setup-card-icon--offline {
  color: #c4b5fd;
}

[data-theme="dark"] .rx-event-setup-card-icon--online {
  color: #fdba74;
}

.rx-event-setup-card-title {
  margin: 0 0 12px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

[data-theme="dark"] .rx-event-setup-card .rx-event-setup-card-title {
  color: #111827;
}

.rx-event-setup-card-desc {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.65;
  flex-grow: 1;
}

[data-theme="dark"] .rx-event-setup-card .rx-event-setup-card-desc {
  color: #4b5563;
}

.rx-event-setup-bullets {
  margin: 0 0 24px;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
}

[data-theme="dark"] .rx-event-setup-card .rx-event-setup-bullets {
  color: #6b7280;
}

.rx-event-setup-bullets li {
  margin-bottom: 6px;
}

.rx-event-setup-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Solid CTAs (no gradient) — green / yellow / pink */
.rx-event-setup-cta.rx-event-setup-cta--green {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.35);
}

.rx-event-setup-cta.rx-event-setup-cta--green:hover {
  background: #047857;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(5, 150, 105, 0.45);
}

.rx-event-setup-cta.rx-event-setup-cta--yellow {
  background: #eab308;
  color: #422006;
  box-shadow: 0 12px 32px rgba(234, 179, 8, 0.4);
}

.rx-event-setup-cta.rx-event-setup-cta--yellow:hover {
  background: #ca8a04;
  color: #292524;
  box-shadow: 0 16px 40px rgba(202, 138, 4, 0.45);
}

.rx-event-setup-cta.rx-event-setup-cta--pink {
  background: #db2777;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(219, 39, 119, 0.35);
}

.rx-event-setup-cta.rx-event-setup-cta--pink:hover {
  background: #be185d;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(190, 24, 93, 0.45);
}

.rx-event-setup-cta.rx-event-setup-cta--green:hover,
.rx-event-setup-cta.rx-event-setup-cta--pink:hover,
.rx-event-setup-cta.rx-event-setup-cta--yellow:hover {
  transform: translateY(-1px);
}

.rx-event-setup-footnote {
  text-align: center;
  margin: 40px 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.rx-event-setup-footnote a {
  color: var(--accent);
  font-weight: 600;
}

.rx-event-setup-footnote a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .rx-event-setup-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .rx-event-setup-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------------------------------------------------
   Marketing typography — index.html, pos.html, create-event.html
   Comfortable body (~18px), clearer hierarchy, readable line-length
   ------------------------------------------------------------------ */
.rx-type-marketing .rx-pill-tag {
  font-size: 0.875rem;
  padding: 10px 18px;
  margin-bottom: 28px;
}

.rx-type-marketing .rx-hero-title {
  font-size: clamp(2.5rem, 5.2vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.rx-type-marketing .rx-hero-sub {
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.65;
  max-width: 42rem;
  color: #4b5563;
}

[data-theme="dark"] .rx-type-marketing .rx-hero-sub {
  color: var(--text-soft);
}

.rx-type-marketing .rx-meta-label {
  font-size: 0.8125rem;
}

.rx-type-marketing .rx-meta-value {
  font-size: 1.125rem;
}

.rx-type-marketing .rx-live-steps-head {
  max-width: 40rem;
}

.rx-type-marketing .rx-live-steps-title {
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.rx-type-marketing .rx-live-steps-sub {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.65;
}

.rx-type-marketing .rx-live-step-text {
  font-size: 0.9375rem;
}

.rx-type-marketing .rx-versions-head {
  max-width: 46rem;
}

.rx-type-marketing .rx-versions-sub {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.65;
}

.rx-type-marketing .rx-version-card-title {
  font-size: 1.3125rem;
}

.rx-type-marketing .rx-version-card-desc {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.rx-type-marketing .rx-mobile-label {
  font-size: 0.8125rem;
}

.rx-type-marketing .rx-flow-dot {
  font-size: 0.75rem;
}

.rx-type-marketing .rx-multilingual-inner {
  max-width: 40rem;
}

.rx-type-marketing .rx-multilingual-title {
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  line-height: 1.15;
}

.rx-type-marketing .rx-multilingual-sub {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.7;
}

.rx-type-marketing .rx-analytics-head {
  max-width: 40rem;
}

.rx-type-marketing .rx-analytics-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.rx-type-marketing .rx-analytics-sub {
  font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
  line-height: 1.65;
}

.rx-type-marketing .rx-analytics-card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.rx-type-marketing .rx-analytics-card-desc {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.rx-type-marketing .rx-cta-event-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
}

.rx-type-marketing .rx-cta-event-sub {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 34rem;
}

.rx-type-marketing .rx-section-kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
}

.rx-type-marketing .rx-section-title {
  font-size: clamp(2rem, 4.2vw, 2.875rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.rx-type-marketing .rx-section-sub {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.75;
  max-width: 42rem;
  color: #374151;
}

[data-theme="dark"] .rx-type-marketing .rx-section-sub {
  color: var(--text-soft);
}

.rx-type-marketing .rx-bullet-list {
  font-size: clamp(1.0625rem, 1.15vw, 1.125rem);
  line-height: 1.65;
  gap: 10px;
}

/* POS page — UI preview copy */
.rx-type-marketing .rx-pos-header h3 {
  font-size: 1.125rem;
}

.rx-type-marketing .rx-pos-header p {
  font-size: 0.9375rem;
}

.rx-type-marketing .rx-pos-row {
  font-size: 1rem;
}

.rx-type-marketing .rx-pill {
  font-size: 0.8125rem;
  padding: 6px 12px;
}

.rx-type-marketing .rx-dashboard-header h3 {
  font-size: 1.25rem;
}

.rx-type-marketing .rx-status-badge {
  font-size: 0.75rem;
  padding: 5px 11px;
}

.rx-type-marketing .rx-dashboard-content h4 {
  font-size: 1.0625rem;
}

.rx-type-marketing .rx-dashboard-content p {
  font-size: 1rem;
  line-height: 1.55;
}

.rx-type-marketing .rx-metric-value {
  font-size: 1.25rem;
}

.rx-type-marketing .rx-metric-label {
  font-size: 0.8125rem;
}

/* Create event chooser */
.rx-type-marketing .rx-event-setup-compact-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.rx-type-marketing .rx-event-setup-page-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.rx-type-marketing .rx-event-setup-lead {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.65;
}

.rx-type-marketing .rx-event-setup-card-title {
  font-size: 1.3125rem;
  margin-bottom: 14px;
}

.rx-type-marketing .rx-event-setup-card-desc {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.rx-type-marketing .rx-event-setup-bullets {
  font-size: 1rem;
  line-height: 1.6;
}

.rx-type-marketing .rx-event-setup-footnote {
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.rx-type-marketing .rx-hero-inner .rx-section-sub {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .rx-type-marketing .rx-live-steps-title {
    font-size: clamp(1.65rem, 6vw, 2rem);
  }

  .rx-type-marketing .rx-multilingual-title {
    font-size: clamp(1.65rem, 6vw, 2.15rem);
  }
}

/* ------------------------------------------------------------------
   Rapidx Events page — wider rail, less empty margin, larger UI copy
   ------------------------------------------------------------------ */
.rx-events-page .rx-container {
  max-width: 1320px;
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}

.rx-events-page .rx-section {
  padding: 92px 0;
}

.rx-events-page .rx-section-soft {
  background:
    radial-gradient(ellipse 72% 48% at 100% 0%, rgba(233, 213, 255, 0.38), transparent 52%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(209, 250, 229, 0.35), transparent 48%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 55%, #f0fdf4 100%);
}

[data-theme="dark"] .rx-events-page .rx-section-soft {
  background:
    radial-gradient(ellipse 65% 45% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), #020617);
}

.rx-events-page .rx-split {
  gap: clamp(40px, 5vw, 72px);
  min-height: 0;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}

.rx-events-page .rx-split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}

.rx-events-page .rx-split-text {
  max-width: none;
}

.rx-events-page .rx-split-visual {
  justify-content: center;
  width: 100%;
}

.rx-events-page .rx-dashboard-preview,
.rx-events-page .rx-pos-preview {
  max-width: none;
  width: 100%;
}

/* Spot / flow card — index-style energy, larger timeline type */
.rx-events-page .rx-spot-card {
  max-width: none;
  width: 100%;
}

.rx-events-page .rx-spot-card.rx-card {
  padding: 28px 26px 32px;
  background: linear-gradient(145deg, #faf5ff 0%, #ffffff 42%, #ecfeff 100%);
  border: 1px solid rgba(167, 139, 250, 0.38);
  box-shadow: 0 24px 56px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.rx-events-page .rx-spot-card.rx-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-sun);
  pointer-events: none;
}

[data-theme="dark"] .rx-events-page .rx-spot-card.rx-card {
  background: linear-gradient(155deg, rgba(88, 28, 135, 0.2), rgba(15, 23, 42, 0.98));
  border-color: rgba(167, 139, 250, 0.4);
}

.rx-events-page .rx-spot-header {
  margin-bottom: 18px;
}

.rx-events-page .rx-spot-header h3 {
  font-size: 1.3125rem;
}

.rx-events-page .rx-spot-header p {
  font-size: 1rem;
  line-height: 1.5;
}

.rx-events-page .rx-spot-icon {
  width: 48px;
  height: 48px;
  font-size: 24px;
  border-radius: 16px;
}

.rx-events-page .rx-spot-timeline {
  gap: 16px;
  margin-top: 4px;
}

.rx-events-page .rx-spot-step {
  gap: 14px;
}

.rx-events-page .rx-spot-step h4 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.rx-events-page .rx-spot-step p {
  font-size: 1rem;
  line-height: 1.55;
}

.rx-events-page .rx-step-badge {
  width: 30px;
  height: 30px;
  font-size: 0.8125rem;
}

/* Role previews */
.rx-events-page .rx-role-preview {
  max-width: none;
  width: 100%;
}

.rx-events-page .rx-role-title {
  font-size: clamp(1.65rem, 3vw, 2.125rem);
  margin-bottom: 14px;
}

.rx-events-page .rx-role-header h4 {
  font-size: 1.125rem;
}

.rx-events-page .rx-role-header p {
  font-size: 0.9375rem;
}

.rx-events-page .rx-role-icon {
  width: 52px;
  height: 52px;
  font-size: 26px;
}

.rx-events-page .rx-role-control-item {
  padding: 14px 16px;
}

.rx-events-page .rx-control-label {
  font-size: 1rem;
}

.rx-events-page .rx-control-status,
.rx-events-page .rx-control-value {
  font-size: 0.9375rem;
}

.rx-events-page .rx-scanner-view p {
  font-size: 1rem;
}

.rx-events-page .rx-stat-label {
  font-size: 0.8125rem;
}

.rx-events-page .rx-steward-action span {
  font-size: 1rem;
}

.rx-events-page .rx-steward-stats {
  font-size: 0.875rem;
  padding: 10px 14px;
}

.rx-events-page .rx-order-item,
.rx-events-page .rx-order-price {
  font-size: 1rem;
}

.rx-events-page .rx-bar-total span {
  font-size: 1.0625rem;
}

.rx-events-page .rx-tap-button {
  font-size: 0.875rem;
  padding: 8px 14px;
}

.rx-events-page .rx-metric-number {
  font-size: 1.5rem;
}

.rx-events-page .rx-metric-text {
  font-size: 0.8125rem;
}

/* Architecture band */
.rx-events-page .rx-architecture-grid {
  gap: 16px;
  margin-top: 12px;
}

.rx-events-page .rx-arch-layer {
  padding: 18px 22px 22px;
  border-radius: 16px;
}

.rx-events-page .rx-arch-layer h4 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.rx-events-page .rx-arch-layer p {
  font-size: 1rem;
  line-height: 1.6;
}

.rx-events-page .rx-arch-badge {
  font-size: 0.6875rem;
  padding: 4px 10px;
  margin-right: 8px;
}

/* Deployment & security subsections */
.rx-events-page .rx-subsection-grid {
  gap: 22px;
}

.rx-events-page .rx-subsection {
  padding: 22px 22px 24px;
}

.rx-events-page .rx-subsection h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.rx-events-page .rx-subsection p {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.rx-events-page .rx-hero-metrics {
  width: 100%;
}

@media (max-width: 880px) {
  .rx-events-page .rx-split .rx-split-visual,
  .rx-events-page .rx-split-reverse .rx-split-visual {
    order: -1;
  }

  .rx-events-page .rx-section {
    padding: 72px 0;
  }
}

.rx-create-event-main {
  padding: 48px 0 80px;
  min-height: 60vh;
}

.rx-create-event-page-title {
  margin: 0 0 8px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #1a1a1a;
}

[data-theme="dark"] .rx-create-event-page-title {
  color: var(--text);
}

.rx-create-event-page-sub {
  margin: 0 0 40px;
  font-size: 1rem;
  color: #6b7280;
}

.rx-create-event-form {
  max-width: 520px;
  margin: 0 auto;
}

.rx-form-slides {
  position: relative;
}

.rx-form-slide {
  display: none;
  padding: 32px 0 0;
}

.rx-form-slide.rx-form-slide-active {
  display: block;
  animation: rx-slide-in 0.35s ease-out;
}

@keyframes rx-slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.rx-create-field {
  margin-bottom: 24px;
}

.rx-create-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

[data-theme="dark"] .rx-create-field label {
  color: var(--text-soft);
}

.rx-create-field input[type="text"],
.rx-create-field input[type="email"],
.rx-create-field input[type="tel"],
.rx-create-field input[type="date"] {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rx-create-field input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .rx-create-field input {
  background: var(--card);
  border-color: var(--border-subtle);
  color: var(--text);
}

.rx-create-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rx-create-event-next {
  margin-top: 32px;
  cursor: pointer;
}

.rx-create-event-form .rx-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #8b5cf6;
  color: #fff;
  border: none;
}

.rx-create-event-form .rx-btn-primary:hover {
  background: #7c3aed;
}

.rx-create-event-form .rx-btn-primary,
.rx-create-event-form .rx-btn-ghost {
  padding: 0 24px;
  height: 50px;
  font-size: 1rem;
}

/* Radio group: Go cashless / POS */
.rx-create-field-radio-group label:first-of-type {
  margin-bottom: 12px;
}

.rx-radio-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rx-radio-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.rx-radio-option:has(input:checked) {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}

[data-theme="dark"] .rx-radio-option {
  border-color: var(--border-subtle);
}

[data-theme="dark"] .rx-radio-option:has(input:checked) {
  border-color: #a78bfa;
  background: rgba(139, 92, 246, 0.15);
}

.rx-radio-option input {
  width: 20px;
  height: 20px;
  accent-color: #8b5cf6;
}

.rx-radio-label {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}

[data-theme="dark"] .rx-radio-label {
  color: var(--text);
}

.rx-radio-desc {
  font-size: 0.9rem;
  color: #6b7280;
  width: 100%;
  padding-left: 32px;
}

.rx-create-event-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.rx-create-event-actions .rx-btn-primary {
  flex: 1;
}

.rx-create-event-prev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 50px;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Toast – top right */
.rx-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rx-toast.rx-toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.rx-toast i {
  font-size: 1.5rem;
  color: #34d399;
}

@media (max-width: 600px) {
  .rx-create-field-row {
    grid-template-columns: 1fr;
  }
  .rx-create-event-actions {
    flex-direction: column-reverse;
  }
  .rx-create-event-actions .rx-btn-primary {
    width: 100%;
  }
  .rx-toast {
    left: 16px;
    right: 16px;
    top: 16px;
  }
}

.rx-hero-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rx-panel-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.rx-panel-products {
  display: grid;
  gap: 10px;
}

.rx-product-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
}

.rx-product-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0f172a;
  font-size: 20px;
}

.rx-product-icon[data-grad="mint"] {
  background: var(--grad-mint);
}

.rx-product-icon[data-grad="blue"] {
  background: var(--grad-blue);
}

.rx-product-icon[data-grad="lilac"] {
  background: var(--grad-lilac);
}

.rx-product-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.rx-product-body p {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.rx-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rx-metric {
  padding: 10px 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fafb, #eff6ff);
  text-align: left;
}

[data-theme="dark"] .rx-metric {
  background: radial-gradient(circle at top, #020617, #020617);
}

.rx-metric-value {
  font-family: 'Poppins', system-ui;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 2px;
}

.rx-metric-label {
  font-size: 11px;
  color: var(--muted);
}

/* GRIDS & UTILITIES */
.rx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rx-gap-lg {
  gap: 18px;
}

.rx-gap-xl {
  gap: 20px;
}

.rx-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.rx-list.small {
  font-size: 12px;
}

.rx-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rx-list i {
  font-size: 16px;
  color: #4f46e5;
  margin-top: 1px;
}

[data-theme="dark"] .rx-list i {
  color: #a855f7;
}

.rx-feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

/* Flow diagram */
.rx-flow-wrapper {
  margin-top: 32px;
}

.rx-flow-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.rx-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.rx-flow-step {
  position: relative;
  padding-top: 26px;
}

.rx-flow-step h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.rx-flow-step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.rx-step-pill {
  position: absolute;
  top: 10px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(129, 140, 248, 0.1);
  color: #4f46e5;
}

[data-theme="dark"] .rx-step-pill {
  background: rgba(129, 140, 248, 0.3);
  color: #e5e7eb;
}

.rx-architecture {
  margin-top: 32px;
}

.rx-architecture-sub {
  margin: 6px 0 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.rx-architecture-grid {
  display: grid;
  gap: 12px;
}

.rx-arch-layer {
  border-radius: 14px;
  padding: 10px 12px 12px;
  background: linear-gradient(90deg, rgba(191, 219, 254, 0.35), rgba(224, 242, 254, 0.5));
}

[data-theme="dark"] .rx-arch-layer {
  background: radial-gradient(circle at left, rgba(15, 23, 42, 0.9), #020617);
}

.rx-arch-layer h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.rx-arch-layer p {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.rx-arch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  margin-right: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.rx-arch-badge-top {
  background: #4f46e5;
}

.rx-arch-badge-bottom {
  background: #22c55e;
}

/* POS section */
.rx-pos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 10px;
}

/* Split sections (text + visual) */
.rx-section-soft {
  background: linear-gradient(180deg, #f9fafb, #eff6ff);
}

.rx-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 56px;
  min-height: 360px;
}

.rx-split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.rx-split-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rx-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--text-soft);
}

.rx-bullet-list li::before {
  content: "•";
  color: #4f46e5;
  margin-right: 6px;
}

.rx-bullet-light {
  color: #e5e7eb;
}

.rx-bullet-light li::before {
  color: #a855f7;
}

.rx-split-ctas {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rx-split-visual {
  display: flex;
  justify-content: flex-end;
}

.rx-split-reverse .rx-split-visual {
  justify-content: flex-start;
}

.rx-spot-card {
  max-width: 520px;
}

.rx-spot-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.rx-spot-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rx-spot-header p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.rx-spot-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0f172a;
  font-size: 20px;
}

.rx-spot-icon[data-grad="mint"] {
  background: var(--grad-mint);
}

.rx-spot-icon[data-grad="blue"] {
  background: var(--grad-blue);
}

.rx-spot-timeline {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.rx-spot-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
}

.rx-spot-step h4 {
  margin: 0 0 2px;
  font-size: 15px;
}

.rx-spot-step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.rx-step-badge {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(129, 140, 248, 0.14);
  color: #4f46e5;
}

.rx-spot-step.is-active .rx-step-badge {
  background: #4f46e5;
  color: #eef2ff;
}

.rx-pos-preview {
  max-width: 520px;
}

.rx-pos-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.rx-pos-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rx-pos-header p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.rx-pos-lines {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
}

.rx-pos-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.rx-pos-meta {
  color: var(--text-soft);
}

.rx-pos-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Dashboard Preview */
.rx-dashboard-preview {
  max-width: 560px;
  width: 100%;
}

.rx-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.rx-dashboard-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.rx-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.rx-dashboard-cards {
  display: grid;
  gap: 14px;
}

.rx-dashboard-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(249, 250, 251, 0.8), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rx-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rx-dashboard-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0f172a;
  font-size: 22px;
  flex-shrink: 0;
}

.rx-dashboard-icon[data-grad="mint"] {
  background: var(--grad-mint);
}

.rx-dashboard-icon[data-grad="blue"] {
  background: var(--grad-blue);
}

.rx-dashboard-icon[data-grad="lilac"] {
  background: var(--grad-lilac);
}

.rx-dashboard-content {
  flex: 1;
}

.rx-dashboard-content h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.rx-dashboard-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

[data-theme="dark"] .rx-dashboard-card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
  border-color: rgba(51, 65, 85, 0.6);
}

[data-theme="dark"] .rx-dashboard-header {
  border-bottom-color: rgba(51, 65, 85, 0.6);
}

.rx-tribe .rx-dashboard-preview {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-color: rgba(148, 163, 184, 0.4);
}

.rx-tribe .rx-dashboard-header {
  border-bottom-color: rgba(51, 65, 85, 0.6);
}

.rx-tribe .rx-dashboard-header h3 {
  color: #e5e7eb;
}

.rx-tribe .rx-dashboard-card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border-color: rgba(51, 65, 85, 0.6);
}

.rx-tribe .rx-dashboard-content h4 {
  color: #e5e7eb;
}

.rx-tribe .rx-dashboard-content p {
  color: #9ca3af;
}

/* Role Preview Components */
.rx-role-title {
  font-family: 'Poppins', system-ui;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.rx-role-preview {
  max-width: 420px;
  width: 100%;
}

.rx-role-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.rx-role-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0f172a;
  font-size: 24px;
  flex-shrink: 0;
}

.rx-role-icon[data-grad="mint"] {
  background: var(--grad-mint);
}

.rx-role-icon[data-grad="blue"] {
  background: var(--grad-blue);
}

.rx-role-icon[data-grad="lilac"] {
  background: var(--grad-lilac);
}

.rx-role-header h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.rx-role-header p {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* Admin Controls */
.rx-role-controls {
  display: grid;
  gap: 10px;
}

.rx-role-control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(249, 250, 251, 0.8), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.rx-control-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.rx-control-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.rx-control-value {
  font-size: 13px;
  font-weight: 700;
  color: #4f46e5;
}

/* Gate Scanner */
.rx-gate-scanner {
  display: grid;
  gap: 14px;
}

.rx-scanner-view {
  display: grid;
  place-items: center;
  padding: 32px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 2px dashed rgba(59, 130, 246, 0.3);
  text-align: center;
}

.rx-scanner-view i {
  font-size: 48px;
  color: #3b82f6;
  margin-bottom: 8px;
}

.rx-scanner-view p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.rx-gate-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rx-gate-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.8), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.rx-stat-value {
  font-family: 'Poppins', system-ui;
  font-size: 24px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 4px;
}

.rx-stat-label {
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
}

/* Steward Actions */
.rx-steward-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.rx-steward-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 233, 255, 0.8), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rx-steward-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.15);
}

.rx-steward-action i {
  font-size: 20px;
  color: #9333ea;
}

.rx-steward-action span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.rx-steward-stats {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.1);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #9333ea;
}

/* Bar Orders */
.rx-bar-orders {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.rx-bar-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.6), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(187, 247, 208, 0.5);
}

.rx-order-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.rx-order-price {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
}

.rx-bar-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(187, 247, 208, 0.3), rgba(220, 252, 231, 0.5));
  border: 1px solid rgba(187, 247, 208, 0.6);
}

.rx-bar-total span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.rx-tap-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rx-tap-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.rx-tap-button i {
  font-size: 16px;
}

/* Super Admin Grid */
.rx-super-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rx-admin-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.rx-metric-number {
  font-family: 'Poppins', system-ui;
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 4px;
}

.rx-metric-text {
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
}

[data-theme="dark"] .rx-role-control-item,
[data-theme="dark"] .rx-gate-stat,
[data-theme="dark"] .rx-steward-action,
[data-theme="dark"] .rx-bar-order,
[data-theme="dark"] .rx-admin-metric {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
  border-color: rgba(51, 65, 85, 0.6);
}

.rx-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.rx-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--muted);
}

.rx-pill.neon {
  background: radial-gradient(circle at top left, rgba(147, 51, 234, 0.28), rgba(56, 189, 248, 0.28));
  border-color: rgba(147, 51, 234, 0.9);
  color: #f9fafb;
}

.rx-pos-main h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.rx-pos-features {
  margin-top: 14px;
}

.rx-feature-column h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.rx-pos-side {
  display: grid;
  gap: 14px;
}

.rx-pos-widget h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

/* TRIBE */
.rx-tribe {
  background: radial-gradient(circle at top, #020617, #020617 45%, #020617 100%);
  color: #f9fafb;
  position: relative;
  overflow: hidden;
}

.rx-tribe::before,
.rx-tribe::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.6;
}

.rx-tribe::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(147, 51, 234, 0.9), transparent 60%);
  top: -160px;
  right: -120px;
}

.rx-tribe::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.9), transparent 60%);
  bottom: -180px;
  left: -140px;
}

.rx-tribe-head {
  position: relative;
  z-index: 1;
}

.rx-tribe .rx-section-title {
  color: #f9fafb;
}

.rx-tribe .rx-section-sub {
  color: #d1d5db;
}

.rx-tribe-layout {
  position: relative;
  z-index: 1;
}

.rx-tribe-card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
}

.rx-tribe-card h3,
.rx-tribe-card h4 {
  margin-top: 0;
}

.rx-tribe-card p {
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.7;
}

.rx-tribe-preview {
  max-width: 420px;
}

.rx-tribe-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
}

.rx-tribe-badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(147, 51, 234, 0.9);
  background: rgba(17, 24, 39, 0.8);
}

.rx-tribe-status {
  color: #9ca3af;
}

.rx-tribe-preview h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.rx-tribe-preview-rows {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.rx-tribe-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e5e7eb;
}

/* Tribe page – light theme (index-like), filled sections */
.rx-tribe-card-light {
  background: var(--card) !important;
  border-color: var(--border-subtle) !important;
  box-shadow: var(--shadow-soft);
}

.rx-tribe-card-light .rx-tribe-preview-head .rx-tribe-badge {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.5);
}

.rx-tribe-card-light .rx-tribe-status,
.rx-tribe-card-light .rx-tribe-preview-row,
.rx-tribe-card-light h3,
.rx-tribe-card-light p {
  color: var(--text-soft) !important;
}

.rx-tribe-card-light .rx-tribe-preview h3 {
  color: var(--text) !important;
}

.rx-tribe-split .rx-split-text {
  max-width: 540px;
}

.rx-tribe-sub-narrow {
  max-width: 520px !important;
}

.rx-tribe-section-head {
  margin-bottom: 24px;
}

.rx-tribe-section-head .rx-section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
}

.rx-tribe-feature-grid {
  margin-top: 24px;
  gap: 22px;
}

.rx-tribe-feature-card {
  padding: 24px 22px 26px !important;
  min-height: 140px;
}

.rx-tribe-feature-card h3 {
  font-size: 1.25rem !important;
  font-weight: 700;
  margin: 0 0 10px !important;
  color: var(--text) !important;
}

.rx-tribe-feature-card p {
  font-size: 1.0625rem !important;
  line-height: 1.65;
  color: var(--text-soft) !important;
}

.rx-tribe-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-lilac);
  color: #4c1d95;
  font-size: 22px;
  margin-bottom: 16px;
}

.rx-tribe-feature-icon i {
  font-size: inherit;
}

.rx-tribe-metrics {
  padding: 24px 28px !important;
  gap: 16px;
}

.rx-tribe-metrics .rx-metric-value {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem) !important;
}

.rx-tribe-metrics .rx-metric-label {
  font-size: 0.875rem !important;
}

.rx-tribe-page .rx-split {
  gap: 48px;
  min-height: 320px;
  align-items: center;
}

/* Media first in DOM: image left, copy right (wider reading column) */
.rx-tribe-page .rx-split.rx-tribe-split-flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.rx-tribe-page .rx-split.rx-tribe-split-flip .rx-split-visual {
  justify-content: flex-start;
}

.rx-tribe-split-stack-gap {
  margin-bottom: 0;
}

.rx-tribe-split-stack-gap + .rx-subsection-grid {
  margin-top: 48px;
}

.rx-tribe-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--card);
}

.rx-tribe-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.rx-tribe-figure-cap {
  padding: 14px 18px 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-soft);
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.95), rgba(239, 246, 255, 0.5));
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .rx-tribe-figure-cap {
  background: rgba(15, 23, 42, 0.9);
  border-top-color: rgba(51, 65, 85, 0.8);
}

.rx-tribe-split-visual-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 520px;
}

.rx-tribe-split-visual-stack .rx-tribe-figure {
  flex-shrink: 0;
}

.rx-tribe-figure-compact img {
  aspect-ratio: 4 / 3;
}

.rx-tribe-admin-below-img {
  max-width: none;
  width: 100%;
}

.rx-tribe-page .rx-section {
  padding: 96px 0;
}

/* Tribe typography — ~18–20px body, larger headings (readable marketing scale) */
.rx-tribe-page .rx-section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.rx-tribe-page .rx-section-sub {
  font-size: clamp(1.125rem, 1.35vw, 1.25rem);
  line-height: 1.75;
  max-width: 42rem;
}

.rx-tribe-page .rx-hero-title {
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
}

.rx-tribe-page .rx-hero-sub {
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  max-width: 40rem;
}

.rx-tribe-page .rx-meta-label {
  font-size: 0.8125rem;
}

.rx-tribe-page .rx-meta-value {
  font-size: 1.125rem;
}

/* Wider tribe layout – reduce empty margins */
.rx-tribe-wider .rx-container {
  max-width: 1280px;
}

.rx-tribe-split-filled {
  gap: 56px;
}

.rx-tribe-split-filled .rx-split-text {
  max-width: none;
  flex: 1;
  min-width: 0;
}

.rx-tribe-split-filled .rx-split-visual {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.rx-tribe-copy-rich {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem) !important;
  line-height: 1.75 !important;
}

.rx-tribe-page .rx-bullet-list {
  font-size: clamp(1.0625rem, 1.15vw, 1.125rem);
  line-height: 1.65;
  gap: 10px;
}

.rx-tribe-highlights {
  margin-top: 8px;
}

.rx-tribe-highlights li {
  margin-bottom: 6px;
}

/* Tribe admin dashboard card */
.rx-tribe-admin-card {
  padding: 22px 24px 26px !important;
  min-width: 280px;
}

.rx-tribe-admin-full {
  min-width: 320px;
}

.rx-tribe-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.rx-tribe-admin-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text) !important;
}

.rx-tribe-admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.rx-tribe-admin-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.rx-tribe-admin-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rx-tribe-admin-label i {
  font-size: 1.125rem;
  color: var(--accent);
}

.rx-tribe-admin-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text) !important;
}

.rx-tribe-admin-meta {
  font-size: 0.8125rem;
  color: var(--muted) !important;
}

.rx-tribe-admin-rows {
  display: grid;
  gap: 10px;
}

.rx-tribe-admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 10px;
  font-size: 1.0625rem;
}

.rx-tribe-admin-row span:first-child {
  color: var(--text-soft) !important;
}

.rx-tribe-admin-row span:last-child {
  font-weight: 700;
  color: var(--text) !important;
}

/* Tribe page – match index.html energy (gradients, highlights, color) */
.rx-tribe-page .rx-section-alt {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(233, 213, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(209, 250, 229, 0.4), transparent 50%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.75), rgba(253, 242, 248, 0.35), rgba(240, 253, 250, 0.4));
}

[data-theme="dark"] .rx-tribe-page .rx-section-alt {
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(34, 197, 94, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
}

.rx-tribe-page .rx-section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
  margin: 0;
}

[data-theme="dark"] .rx-tribe-page .rx-section-kicker {
  color: #c4b5fd;
}

.rx-tribe-pillar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}

.rx-tribe-pillar-chips .rx-hero-chip {
  font-size: 0.8125rem;
  padding: 8px 14px;
}

.rx-tribe-intro-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rx-tribe-intro-copy .rx-section-sub {
  margin: 0;
}

.rx-tribe-page .rx-section-sub {
  color: #374151;
}

[data-theme="dark"] .rx-tribe-page .rx-section-sub {
  color: var(--text-soft);
}

.rx-tribe-highlights li:nth-child(1)::before {
  color: #db2777;
}

.rx-tribe-highlights li:nth-child(2)::before {
  color: #7c3aed;
}

.rx-tribe-highlights li:nth-child(3)::before {
  color: #ea580c;
}

.rx-tribe-highlights li:nth-child(4)::before {
  color: #059669;
}

/* Colorful TRIBE admin cards (index palette) */
.rx-tribe-admin-vibrant {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #faf5ff 0%, #ffffff 42%, #ecfeff 100%) !important;
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
  box-shadow:
    0 24px 60px rgba(109, 40, 217, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
}

.rx-tribe-admin-vibrant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-sun);
  pointer-events: none;
}

[data-theme="dark"] .rx-tribe-admin-vibrant {
  background: linear-gradient(155deg, rgba(88, 28, 135, 0.22), rgba(15, 23, 42, 0.98) 55%, rgba(6, 78, 59, 0.12)) !important;
  border-color: rgba(167, 139, 250, 0.45) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
}

.rx-tribe-admin-vibrant .rx-tribe-admin-header {
  border-bottom-color: rgba(167, 139, 250, 0.28);
  position: relative;
  z-index: 1;
}

.rx-tribe-admin-vibrant .rx-tribe-badge {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), rgba(244, 114, 182, 0.2));
  border-color: rgba(99, 102, 241, 0.45);
  color: #4338ca;
  font-weight: 600;
  font-size: 11px;
  padding: 5px 11px;
}

[data-theme="dark"] .rx-tribe-admin-vibrant .rx-tribe-badge {
  color: #e9d5ff;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(167, 139, 250, 0.5);
}

.rx-tribe-stat-pr {
  background: var(--grad-pink) !important;
  border-color: rgba(236, 72, 153, 0.4) !important;
}

.rx-tribe-stat-pr .rx-tribe-admin-label i {
  color: #be185d;
}

.rx-tribe-stat-pr .rx-tribe-admin-value {
  color: #831843;
}

.rx-tribe-stat-guests {
  background: var(--grad-blue) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

.rx-tribe-stat-guests .rx-tribe-admin-label i {
  color: #1d4ed8;
}

.rx-tribe-stat-guests .rx-tribe-admin-value {
  color: #1e3a8a;
}

.rx-tribe-stat-tables {
  background: var(--grad-peach) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
}

.rx-tribe-stat-tables .rx-tribe-admin-label i {
  color: #c2410c;
}

.rx-tribe-stat-tables .rx-tribe-admin-value {
  color: #9a3412;
}

.rx-tribe-stat-arena {
  background: var(--grad-green) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.rx-tribe-stat-arena .rx-tribe-admin-label i {
  color: #047857;
}

.rx-tribe-stat-arena .rx-tribe-admin-value {
  color: #065f46;
}

[data-theme="dark"] .rx-tribe-stat-pr,
[data-theme="dark"] .rx-tribe-stat-guests,
[data-theme="dark"] .rx-tribe-stat-tables,
[data-theme="dark"] .rx-tribe-stat-arena {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

[data-theme="dark"] .rx-tribe-stat-pr .rx-tribe-admin-label i {
  color: #f472b6;
}

[data-theme="dark"] .rx-tribe-stat-guests .rx-tribe-admin-label i {
  color: #60a5fa;
}

[data-theme="dark"] .rx-tribe-stat-tables .rx-tribe-admin-label i {
  color: #fb923c;
}

[data-theme="dark"] .rx-tribe-stat-arena .rx-tribe-admin-label i {
  color: #34d399;
}

[data-theme="dark"] .rx-tribe-stat-pr .rx-tribe-admin-value,
[data-theme="dark"] .rx-tribe-stat-guests .rx-tribe-admin-value,
[data-theme="dark"] .rx-tribe-stat-tables .rx-tribe-admin-value,
[data-theme="dark"] .rx-tribe-stat-arena .rx-tribe-admin-value {
  color: var(--text);
}

.rx-tribe-admin-rows-color .rx-tribe-admin-row:nth-child(1) {
  background: var(--grad-pink) !important;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.rx-tribe-admin-rows-color .rx-tribe-admin-row:nth-child(2) {
  background: var(--grad-blue) !important;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.rx-tribe-admin-rows-color .rx-tribe-admin-row:nth-child(3) {
  background: var(--grad-green) !important;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.rx-tribe-admin-rows-offset .rx-tribe-admin-row:nth-child(1) {
  background: var(--grad-lilac) !important;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.rx-tribe-admin-rows-offset .rx-tribe-admin-row:nth-child(2) {
  background: var(--grad-peach) !important;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.rx-tribe-admin-rows-offset .rx-tribe-admin-row:nth-child(3) {
  background: var(--grad-mint) !important;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .rx-tribe-admin-rows-color .rx-tribe-admin-row,
[data-theme="dark"] .rx-tribe-admin-rows-offset .rx-tribe-admin-row {
  background: rgba(30, 41, 59, 0.75) !important;
  border-color: rgba(71, 85, 105, 0.6) !important;
}

.rx-tribe-page .rx-tribe-feature-grid .rx-tribe-feature-card:nth-child(1) .rx-tribe-feature-icon {
  background: var(--grad-pink);
  color: #9d174d;
}

.rx-tribe-page .rx-tribe-feature-grid .rx-tribe-feature-card:nth-child(2) .rx-tribe-feature-icon {
  background: var(--grad-blue);
  color: #1e40af;
}

.rx-tribe-page .rx-tribe-feature-grid .rx-tribe-feature-card:nth-child(3) .rx-tribe-feature-icon {
  background: var(--grad-mint);
  color: #5b21b6;
}

[data-theme="dark"] .rx-tribe-page .rx-tribe-feature-grid .rx-tribe-feature-card:nth-child(1) .rx-tribe-feature-icon {
  background: rgba(157, 23, 77, 0.35);
  color: #fbcfe8;
}

[data-theme="dark"] .rx-tribe-page .rx-tribe-feature-grid .rx-tribe-feature-card:nth-child(2) .rx-tribe-feature-icon {
  background: rgba(30, 64, 175, 0.35);
  color: #bfdbfe;
}

[data-theme="dark"] .rx-tribe-page .rx-tribe-feature-grid .rx-tribe-feature-card:nth-child(3) .rx-tribe-feature-icon {
  background: rgba(91, 33, 182, 0.35);
  color: #e9d5ff;
}

.rx-tribe-page .rx-tribe-metrics {
  background: linear-gradient(180deg, #faf5ff, #eff6ff) !important;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

[data-theme="dark"] .rx-tribe-page .rx-tribe-metrics {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: rgba(71, 85, 105, 0.8);
}

.rx-tribe-page .rx-tribe-metrics .rx-metric {
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.rx-tribe-page .rx-tribe-metrics .rx-metric:nth-child(2) {
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  border-color: rgba(99, 102, 241, 0.15);
}

.rx-tribe-page .rx-tribe-metrics .rx-metric:nth-child(3) {
  background: linear-gradient(180deg, #ffffff, #fdf4ff);
  border-color: rgba(168, 85, 247, 0.15);
}

[data-theme="dark"] .rx-tribe-page .rx-tribe-metrics .rx-metric {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(71, 85, 105, 0.5);
}

.rx-tribe-page .rx-subsection {
  background: linear-gradient(180deg, #ffffff, rgba(239, 246, 255, 0.65));
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 14px 44px rgba(99, 102, 241, 0.07);
}

[data-theme="dark"] .rx-tribe-page .rx-subsection {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border-color: rgba(71, 85, 105, 0.75);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Small sub‑sections under products */
.rx-subsection-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rx-subsection-grid-light {
  color: #e5e7eb;
}

.rx-subsection {
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 35px rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .rx-subsection {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.rx-subsection-grid-light .rx-subsection {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.rx-subsection h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.rx-subsection p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.rx-subsection-grid-light .rx-subsection p {
  color: #d1d5db;
}

.rx-tribe-grid {
  margin-top: 14px;
}

.rx-tribe-side {
  display: grid;
  gap: 14px;
}

.rx-tribe-events-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.rx-tribe-event-card {
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
}

.rx-tribe-event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 4px;
}

.rx-tribe-tag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(147, 51, 234, 0.9);
  color: rgba(244, 244, 245, 0.95);
  font-size: 10px;
}

.rx-tribe-date {
  color: #9ca3af;
}

.rx-tribe-event-card h4 {
  margin: 0 0 2px;
  font-size: 13px;
}

.rx-tribe-event-card p {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

/* Gallery */
.rx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.rx-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  background: #020617;
}

.rx-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.5));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rx-gallery-item:hover::after {
  opacity: 1;
}

.rx-gallery-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.rx-gallery-item:hover .rx-gallery-media {
  transform: scale(1.04);
}

.rx-gallery-type {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rx-gallery-note {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.rx-gallery-note code {
  background: rgba(15, 23, 42, 0.05);
  padding: 2px 4px;
  border-radius: 4px;
}

/* ——— Modern gallery page (gallery.html) ——— */
.rx-gallery-hero-tight {
  padding-top: 96px;
  padding-bottom: 72px;
}

.rx-gallery-inline-code {
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

[data-theme="dark"] .rx-gallery-inline-code {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.rx-gallery-intro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: center;
  margin-top: 32px;
}

.rx-gallery-stat {
  text-align: center;
  min-width: 100px;
}

.rx-gallery-stat-value {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.rx-gallery-stat-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.rx-gallery-slider-section {
  padding-top: 56px;
  padding-bottom: 88px;
}

.rx-gallery-slider-head {
  margin-bottom: 28px;
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.rx-gallery-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rx-gallery-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 14px 6px 32px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) transparent;
}

.rx-gallery-slider::-webkit-scrollbar {
  height: 7px;
}

.rx-gallery-slider::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 999px;
}

.rx-gallery-slide {
  flex: 0 0 min(86vw, 520px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .rx-gallery-slide {
  border-color: rgba(51, 65, 85, 0.8);
}

.rx-gallery-slide-hit {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  background: #0f172a;
  aspect-ratio: 16 / 10;
}

.rx-gallery-slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rx-gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  color: #f8fafc;
  font-size: 19px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.rx-gallery-slider-nav {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rx-gallery-slider-nav:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-soft);
}

.rx-gallery-slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rx-gallery-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(99, 102, 241, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.rx-gallery-slider-dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
}

.rx-gallery-parallax {
  position: relative;
  min-height: 48vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rx-gallery-parallax-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.rx-gallery-parallax-fog {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.9) 0%, rgba(247, 249, 252, 0.78) 100%),
    linear-gradient(105deg, rgba(99, 102, 241, 0.12), transparent 55%);
}

[data-theme="dark"] .rx-gallery-parallax-fog {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.85) 100%),
    linear-gradient(105deg, rgba(99, 102, 241, 0.2), transparent 55%);
}

.rx-gallery-parallax-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(56px, 10vw, 100px) 24px;
  text-align: center;
}

.rx-gallery-parallax-quote {
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.38;
}

@media (prefers-reduced-motion: reduce) {
  .rx-gallery-parallax-bg {
    transform: none !important;
  }
}

.rx-gallery-wall-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.rx-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  grid-auto-rows: 52px;
  margin-top: 8px;
}

.rx-gallery-tile {
  position: relative;
  grid-column: span 2;
  grid-row: span 3;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  overflow: hidden;
  background: #0f172a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rx-gallery-tile--wide {
  grid-column: span 3;
  grid-row: span 3;
}

.rx-gallery-tile--tall {
  grid-column: span 2;
  grid-row: span 4;
}

.rx-gallery-tile-inner {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.rx-gallery-tile-media {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rx-gallery-tile:hover .rx-gallery-tile-media {
  transform: scale(1.06);
}

.rx-gallery-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.rx-gallery-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.rx-gallery-empty code {
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
}

.rx-gallery-manifest-note {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.rx-gallery-manifest-note i {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.rx-gallery-manifest-note code {
  font-size: 0.88em;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .rx-gallery-manifest-note code {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .rx-gallery-masonry {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rx-gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 44px;
  }

  .rx-gallery-tile,
  .rx-gallery-tile--wide,
  .rx-gallery-tile--tall {
    grid-column: span 1;
    grid-row: span 3;
  }
}

@media (max-width: 600px) {
  .rx-gallery-slider-nav {
    display: none;
  }

  .rx-gallery-slide {
    flex: 0 0 min(92vw, 420px);
  }
}

/* Investors */
.rx-investor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 10px;
}

.rx-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.rx-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: #1f2937;
}

.rx-advisor-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.rx-advisor-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.rx-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--grad-lilac);
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}

.rx-advisor-card h4 {
  margin: 0 0 2px;
  font-size: 13px;
}

.rx-advisor-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.rx-investor-why h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

/* Contact */
.rx-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 24px;
}

.rx-contact-form {
  margin-top: 18px;
}

.rx-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rx-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.rx-field label {
  font-weight: 600;
  color: var(--muted);
}

.rx-field input,
.rx-field textarea,
.rx-field select {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}

[data-theme="dark"] .rx-field input,
[data-theme="dark"] .rx-field textarea,
[data-theme="dark"] .rx-field select {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-color: rgba(51, 65, 85, 0.9);
}

.rx-field textarea {
  resize: vertical;
}

.rx-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.rx-contact-map {
  display: flex;
}

.rx-map-card {
  width: 100%;
  display: grid;
  gap: 8px;
}

.rx-map-placeholder {
  border-radius: 16px;
  background: repeating-linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.12),
    rgba(148, 163, 184, 0.12) 6px,
    transparent 6px,
    transparent 12px
  );
  display: grid;
  place-items: center;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  gap: 6px;
}

.rx-map-placeholder span {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(129, 140, 248, 0.16);
  color: #4f46e5;
  font-size: 20px;
}

.rx-map-placeholder p {
  margin: 0;
  font-size: 12px;
}

.rx-map-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rx-contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Footer */
.rx-footer {
  background: #020617;
  color: #9ca3af;
}

.rx-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr);
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 16px;
}

.rx-footer-brand p {
  margin: 8px 0 0;
  font-size: 13px;
}

.rx-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  font-size: 13px;
}

.rx-footer-links h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #e5e7eb;
}

.rx-footer-links a {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 12px;
}

.rx-footer-links a:hover {
  color: #e5e7eb;
}

.rx-social-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.rx-social-row a {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.rx-footer-bottom {
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  padding: 8px 0 14px;
}

.rx-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.rx-footer-bottom-links {
  display: flex;
  gap: 12px;
}

.rx-footer-bottom-links a {
  color: #9ca3af;
}

/* Lightbox */
.rx-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.rx-lightbox.is-open {
  display: flex;
}

.rx-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

.rx-lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  padding: 12px 52px;
}

.rx-lightbox-body {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  min-height: 200px;
  max-height: 80vh;
  display: grid;
  place-items: center;
}

.rx-lightbox-body img,
.rx-lightbox-body video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.rx-lightbox-close {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.rx-lightbox-prev,
.rx-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 28px;
  backdrop-filter: blur(10px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.rx-lightbox-prev {
  left: 4px;
}

.rx-lightbox-next {
  right: 4px;
}

.rx-lightbox-prev:hover,
.rx-lightbox-next:hover {
  background: rgba(99, 102, 241, 0.55);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 520px) {
  .rx-lightbox-content {
    padding: 12px 40px;
  }

  .rx-lightbox-prev,
  .rx-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* Animations & micro interactions */
[data-counter] {
  transition: color 0.3s ease;
}

.rx-gallery-item,
.rx-card {
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.rx-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
}

.rx-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.9);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rx-tribe-page .rx-split.rx-tribe-split-flip .rx-tribe-admin-stats {
    grid-template-columns: 1fr;
  }

  .rx-section-head {
    flex-direction: column;
  }

  .rx-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rx-investor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rx-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 36px;
    min-height: auto;
  }

  .rx-subsection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .rx-nav-links {
    position: fixed;
    inset: 58px 12px auto 12px;
    background: var(--nav-bg);
    border-radius: 18px;
    border: 1px solid var(--nav-border);
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
  }

  .rx-nav-links.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .rx-nav-burger {
    display: inline-flex;
  }

  .rx-cta-pill {
    display: none;
  }

  .rx-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-pos-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-tribe-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-investor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-split,
  .rx-split-reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Text-first rows: show photo above copy on small screens */
  .rx-tribe-page .rx-split:not(.rx-tribe-split-flip) .rx-split-visual {
    order: -1;
  }

  .rx-tribe-page .rx-split.rx-tribe-split-flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-split-visual {
    justify-content: flex-start;
  }

  .rx-tribe-split-visual-stack {
    max-width: none;
  }

  .rx-subsection-grid,
  .rx-subsection-grid-light {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }
}

@media (max-width: 720px) {
  .rx-section {
    padding: 88px 0;
  }

  .rx-hero-title {
    font-size: 32px;
  }

  .rx-type-marketing .rx-hero-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .rx-flow-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rx-field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .rx-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rx-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rx-subsection-grid,
  .rx-subsection-grid-light {
    grid-template-columns: minmax(0, 1fr);
  }
}

