/* ==========================================================================
   TRIXBAY PREMIUM UI — Complete design system
   Inspired by premium SaaS / agency sites
   ========================================================================== */

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

/* ---- Design tokens ---- */
:root {
  --tx-font: 'Inter', system-ui, -apple-system, sans-serif;
  --tx-bg: #fafbfc;
  --tx-surface: #ffffff;
  --tx-surface-2: #f4f6f9;
  --tx-dark: #0a0f1c;
  --tx-dark-2: #141b2d;
  --tx-text: #5c6578;
  --tx-text-light: #8b95a8;
  --tx-heading: #0d1421;
  --tx-border: rgba(13, 20, 33, 0.08);
  --tx-border-2: rgba(13, 20, 33, 0.12);
  --tx-accent: var(--base, #5b6cff);
  --tx-accent-2: var(--secondary, #00c2ff);
  --tx-gradient: linear-gradient(135deg, var(--tx-accent) 0%, #7c6cff 45%, var(--tx-accent-2) 100%);
  --tx-gradient-text: linear-gradient(135deg, var(--tx-accent) 0%, #7c6cff 50%, var(--tx-accent-2) 100%);
  --tx-shadow-xs: 0 1px 2px rgba(13, 20, 33, 0.04);
  --tx-shadow-sm: 0 2px 8px rgba(13, 20, 33, 0.06), 0 8px 24px rgba(13, 20, 33, 0.04);
  --tx-shadow-md: 0 4px 16px rgba(13, 20, 33, 0.08), 0 16px 48px rgba(13, 20, 33, 0.08);
  --tx-shadow-lg: 0 8px 32px rgba(13, 20, 33, 0.12), 0 32px 64px rgba(13, 20, 33, 0.1);
  --tx-shadow-glow: 0 0 60px rgba(91, 108, 255, 0.25);
  --tx-radius: 16px;
  --tx-radius-lg: 24px;
  --tx-radius-xl: 32px;
  --tx-header-h: 72px;
  --tx-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tx-duration: 0.3s;
}

/* ---- Kill legacy template bleed-through ---- */
.trix-modern .header-section,
.trix-modern .footer-section,
.trix-modern .banner-section,
.trix-modern .privacy-area,
.trix-modern .navbar-toggler {
  all: unset;
  display: none !important;
}

.trix-modern {
  font-family: var(--tx-font) !important;
  background: var(--tx-bg);
  color: var(--tx-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.trix-modern h1, .trix-modern h2, .trix-modern h3,
.trix-modern h4, .trix-modern h5, .trix-modern h6 {
  font-family: var(--tx-font) !important;
  color: var(--tx-heading);
  letter-spacing: -0.03em;
}

.trix-modern a { text-decoration: none; }

/* ---- Buttons ---- */
.trix-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--tx-font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--tx-duration) var(--tx-ease);
  white-space: nowrap;
  line-height: 1.4;
}

.trix-btn--sm { padding: 10px 20px; font-size: 13px; border-radius: 10px; }
.trix-btn--lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }

.trix-btn--primary {
  background: var(--tx-gradient) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(91, 108, 255, 0.35);
}

.trix-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 108, 255, 0.45);
  color: #fff !important;
}

.trix-btn--glow:hover { box-shadow: var(--tx-shadow-glow), 0 8px 28px rgba(91, 108, 255, 0.4); }

.trix-btn--ghost {
  background: transparent !important;
  color: var(--tx-heading) !important;
  border: 1.5px solid var(--tx-border-2) !important;
}

.trix-btn--ghost:hover {
  border-color: var(--tx-accent) !important;
  color: var(--tx-accent) !important;
  background: rgba(91, 108, 255, 0.04) !important;
}

.trix-btn--outline {
  background: var(--tx-surface) !important;
  color: var(--tx-heading) !important;
  border: 1.5px solid var(--tx-border-2) !important;
  box-shadow: var(--tx-shadow-xs);
}

.trix-btn--outline:hover {
  border-color: var(--tx-accent);
  color: var(--tx-accent) !important;
  transform: translateY(-2px);
  box-shadow: var(--tx-shadow-sm);
}

.trix-btn--white {
  background: #fff !important;
  color: var(--tx-accent) !important;
  box-shadow: var(--tx-shadow-md);
}

.trix-btn--white:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--tx-shadow-lg);
  color: var(--tx-accent) !important;
}

/* Legacy btn compat */
.trix-modern .btn--base, .trix-modern .btn.btn--base {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--tx-gradient) !important;
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 16px rgba(91, 108, 255, 0.35);
  transition: all var(--tx-duration) var(--tx-ease);
}

.trix-modern .btn--base:hover { transform: translateY(-2px); color: #fff !important; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.trix-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}

.trix-header * { pointer-events: auto; }

.trix-header__bar {
  transition: background var(--tx-duration) var(--tx-ease),
              box-shadow var(--tx-duration) var(--tx-ease),
              backdrop-filter var(--tx-duration) var(--tx-ease);
}

.trix-header.is-scrolled .trix-header__bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--tx-border), var(--tx-shadow-xs);
}

.trix-header__inner {
  display: flex;
  align-items: center;
  height: var(--tx-header-h);
  gap: 32px;
}

.trix-header__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.trix-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.trix-header__link {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-text) !important;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--tx-font);
  transition: all 0.2s var(--tx-ease);
}

.trix-header__link:hover,
.trix-header__link.active {
  color: var(--tx-heading) !important;
  background: rgba(91, 108, 255, 0.06);
}

.trix-header__dropdown { position: relative; }

.trix-header__dropmenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 8px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--tx-ease);
  z-index: 100;
}

.trix-header__dropdown:hover .trix-header__dropmenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.trix-header__dropmenu a {
  display: block !important;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-text) !important;
  transition: all 0.15s;
}

.trix-header__dropmenu a:hover {
  background: rgba(91, 108, 255, 0.06);
  color: var(--tx-accent) !important;
}

.trix-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Burger — MOBILE ONLY */
.trix-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: #ffffff !important;
  border: 1.5px solid rgba(13, 20, 33, 0.15) !important;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 20, 33, 0.1);
  flex-shrink: 0;
}

.trix-header__burger span {
  display: block !important;
  width: 20px !important;
  height: 2.5px !important;
  background: #0d1421 !important;
  border-radius: 3px !important;
  transition: all 0.3s var(--tx-ease);
  opacity: 1 !important;
}

.trix-header.is-scrolled .trix-header__burger span,
.trix-header .trix-header__burger span {
  background: #0d1421 !important;
}

.trix-header__burger.is-active span {
  background: #0d1421 !important;
}

.trix-header__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.trix-header__burger.is-active span:nth-child(2) { opacity: 0; }
.trix-header__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.trix-header__drawer {
  display: none;
  background: var(--tx-surface);
  border-top: 1px solid var(--tx-border);
  box-shadow: var(--tx-shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--tx-ease);
}

.trix-header__drawer.is-open {
  max-height: 80vh;
  overflow-y: auto;
}

.trix-header__drawer-nav {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trix-header__drawer-nav > a {
  display: block !important;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tx-heading) !important;
}

.trix-header__drawer-nav > a:hover { background: var(--tx-surface-2); }

.trix-header__drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tx-border);
}

.trix-header__drawer-cta .trix-btn { width: 100%; }

@media (max-width: 991px) {
  .trix-header__nav,
  .trix-header__actions { display: none !important; }

  .trix-header__burger { display: flex; }

  .trix-header__drawer { display: block; }

  .trix-header.is-scrolled .trix-header__bar,
  .trix-header .trix-header__bar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--tx-border);
  }
}

@media (min-width: 992px) {
  .trix-header__drawer { display: none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.trix-hero {
  position: relative;
  padding: calc(var(--tx-header-h) + 64px) 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--tx-bg);
}

.trix-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: tx-float 8s ease-in-out infinite;
}

.trix-hero__orb--1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: rgba(91, 108, 255, 0.18);
}

.trix-hero__orb--2 {
  width: 500px; height: 500px;
  top: 10%; right: -100px;
  background: rgba(0, 194, 255, 0.14);
  animation-delay: -3s;
}

.trix-hero__orb--3 {
  width: 400px; height: 400px;
  bottom: -100px; left: 30%;
  background: rgba(124, 108, 255, 0.1);
  animation-delay: -5s;
}

.trix-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 20, 33, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 20, 33, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}

@keyframes tx-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.trix-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.trix-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-heading);
  box-shadow: var(--tx-shadow-xs);
  margin-bottom: 28px;
}

.trix-hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: tx-pulse 2s infinite;
}

@keyframes tx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.trix-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--tx-heading);
  margin-bottom: 24px;
  background: var(--tx-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trix-hero__desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--tx-text);
  max-width: 520px;
  margin-bottom: 36px;
}

.trix-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.trix-hero__metrics {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--tx-border);
}

.trix-hero__metric strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tx-heading);
  letter-spacing: -0.03em;
}

.trix-hero__metric span {
  font-size: 13px;
  color: var(--tx-text-light);
  font-weight: 500;
}

.trix-hero__frame {
  position: relative;
  border-radius: var(--tx-radius-xl);
  overflow: hidden;
  border: 1px solid var(--tx-border);
  box-shadow: var(--tx-shadow-lg);
  background: var(--tx-surface);
}

.trix-hero__frame-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--tx-gradient);
  opacity: 0.15;
  z-index: 0;
}

.trix-hero__frame img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.trix-hero__chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--tx-border);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-heading);
  box-shadow: var(--tx-shadow-md);
  animation: tx-float 5s ease-in-out infinite;
}

.trix-hero__chip i { font-size: 18px; color: var(--tx-accent); }
.trix-hero__chip--1 { top: 12%; right: -16px; }
.trix-hero__chip--2 { bottom: 14%; left: -16px; animation-delay: -2.5s; }

@media (max-width: 991px) {
  .trix-hero { min-height: auto; padding-bottom: 64px; }
  .trix-hero__layout { grid-template-columns: 1fr; gap: 48px; }
  .trix-hero__chip { display: none; }
  .trix-hero__metrics { gap: 24px; }
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.trix-section {
  padding: 100px 0;
  position: relative;
}

.trix-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-accent);
  background: rgba(91, 108, 255, 0.08);
  border: 1px solid rgba(91, 108, 255, 0.12);
  margin-bottom: 16px;
}

.trix-eyebrow--light {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.trix-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.trix-section__head--light .trix-section__title { color: #fff; }

.trix-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.trix-section__title--left { text-align: left; }

.trix-section__sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--tx-text);
}

/* Reveal animation */
[data-trix-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--tx-ease), transform 0.7s var(--tx-ease);
}

[data-trix-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.trix-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trix-feature-card {
  position: relative;
  padding: 36px 28px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--tx-ease), box-shadow 0.35s var(--tx-ease), border-color 0.35s;
}

.trix-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tx-shadow-md);
  border-color: rgba(91, 108, 255, 0.2);
}

.trix-feature-card__icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--tx-gradient);
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(91, 108, 255, 0.3);
}

.trix-feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.trix-feature-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tx-text);
  margin: 0;
}

.trix-feature-card__shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
  pointer-events: none;
}

.trix-feature-card:hover .trix-feature-card__shine { left: 150%; }

@media (max-width: 991px) { .trix-features__grid { grid-template-columns: 1fr; } }
@media (min-width: 992px) and (max-width: 1199px) { .trix-features__grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.trix-services { background: var(--tx-surface-2); }

.trix-services__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(91, 108, 255, 0.06), transparent);
  pointer-events: none;
}

.trix-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.trix-service-card {
  padding: 32px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-lg);
  transition: all 0.35s var(--tx-ease);
}

.trix-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--tx-shadow-md);
  border-color: rgba(91, 108, 255, 0.25);
}

.trix-service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.trix-service-card__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(91, 108, 255, 0.08);
  color: var(--tx-accent);
  font-size: 22px;
}

.trix-service-card__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--tx-text-light);
  letter-spacing: 0.05em;
}

.trix-service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.trix-service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tx-text);
  margin-bottom: 20px;
}

.trix-service-card__link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx-accent) !important;
  transition: gap 0.2s;
}

.trix-service-card__link:hover { gap: 10px; }

@media (max-width: 991px) { .trix-services__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   STATS
   ========================================================================== */
.trix-stats {
  background: var(--tx-dark);
  padding: 80px 0;
  overflow: hidden;
}

.trix-stats__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(91, 108, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.trix-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.trix-stat {
  text-align: center;
  padding: 24px;
}

.trix-stat__icon {
  font-size: 28px;
  color: var(--tx-accent-2);
  margin-bottom: 12px;
}

.trix-stat__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.trix-stat__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

@media (max-width: 991px) { .trix-stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.trix-about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.trix-about--reverse .trix-about__layout .trix-about__content { order: -1; }

.trix-about__img-wrap {
  border-radius: var(--tx-radius-xl);
  overflow: hidden;
  box-shadow: var(--tx-shadow-lg);
  border: 1px solid var(--tx-border);
}

.trix-about__img-wrap img { width: 100%; display: block; }

.trix-about__media { position: relative; }

.trix-about__badge {
  position: absolute;
  bottom: 24px; left: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow-md);
  border: 1px solid var(--tx-border);
}

.trix-about__badge i {
  font-size: 28px;
  color: var(--tx-accent);
}

.trix-about__badge strong {
  display: block;
  font-size: 14px;
  color: var(--tx-heading);
}

.trix-about__badge span {
  font-size: 12px;
  color: var(--tx-text-light);
}

.trix-about__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tx-text);
  margin-bottom: 28px;
}

@media (max-width: 991px) {
  .trix-about__layout { grid-template-columns: 1fr; gap: 40px; }
  .trix-about--reverse .trix-about__layout .trix-about__content { order: 0; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.trix-testimonials {
  background: var(--tx-dark);
  overflow: hidden;
}

.trix-testimonial-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--tx-radius-lg);
  backdrop-filter: blur(8px);
  height: 100%;
}

.trix-testimonial-card__stars {
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.trix-testimonial-card blockquote {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
  font-style: normal;
}

.trix-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trix-testimonial-card__author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.trix-testimonial-card__author strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.trix-testimonial-card__author span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.trix-testimonials .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.trix-testimonials .swiper-pagination-bullet-active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.trix-faq__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.trix-faq-item {
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--tx-surface);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.trix-faq-item.is-open {
  border-color: rgba(91, 108, 255, 0.25);
  box-shadow: var(--tx-shadow-sm);
}

.trix-faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--tx-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--tx-heading);
  text-align: left;
}

.trix-faq-item__q i {
  font-size: 18px;
  color: var(--tx-accent);
  transition: transform 0.3s var(--tx-ease);
  flex-shrink: 0;
}

.trix-faq-item.is-open .trix-faq-item__q i { transform: rotate(45deg); }

.trix-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--tx-ease);
}

.trix-faq-item.is-open .trix-faq-item__a { max-height: 300px; }

.trix-faq-item__a p {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tx-text);
  margin: 0;
}

.trix-faq__visual img {
  width: 100%;
  border-radius: var(--tx-radius-xl);
  box-shadow: var(--tx-shadow-lg);
  border: 1px solid var(--tx-border);
}

@media (max-width: 991px) {
  .trix-faq__layout { grid-template-columns: 1fr; }
  .trix-faq__visual { order: -1; }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.trix-cta {
  position: relative;
  padding: 100px 0;
  background: var(--tx-gradient);
  overflow: hidden;
}

.trix-cta__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.trix-cta__orb {
  position: absolute;
  width: 500px; height: 500px;
  top: -200px; right: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(60px);
}

.trix-cta__inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.trix-cta__inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.trix-newsletter__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 56px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-xl);
  box-shadow: var(--tx-shadow-md);
}

.trix-newsletter__copy h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.trix-newsletter__copy p {
  font-size: 15px;
  color: var(--tx-text);
  margin: 0;
}

.trix-newsletter__form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  min-width: 360px;
}

.trix-newsletter__form input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  border: 1.5px solid var(--tx-border);
  border-radius: 12px;
  font-family: var(--tx-font);
  font-size: 15px;
  background: var(--tx-surface-2);
  transition: border-color 0.2s;
}

.trix-newsletter__form input:focus {
  outline: none;
  border-color: var(--tx-accent);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.1);
}

.trix-newsletter__form .trix-btn {
  width: 52px; height: 52px;
  padding: 0;
  border-radius: 12px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .trix-newsletter__box { flex-direction: column; padding: 32px; text-align: center; }
  .trix-newsletter__form { min-width: 100%; width: 100%; }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.trix-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trix-blog-card {
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--tx-ease), box-shadow 0.35s;
}

.trix-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tx-shadow-md);
}

.trix-blog-card__thumb {
  display: block;
  overflow: hidden;
}

.trix-blog-card__thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s var(--tx-ease);
}

.trix-blog-card:hover .trix-blog-card__thumb img { transform: scale(1.05); }

.trix-blog-card__body { padding: 24px; }

.trix-blog-card__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.trix-blog-card__body h3 a { color: var(--tx-heading) !important; }
.trix-blog-card__body h3 a:hover { color: var(--tx-accent) !important; }

.trix-blog-card__body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tx-text);
  margin-bottom: 16px;
}

.trix-blog-card__link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx-accent) !important;
}

@media (max-width: 991px) { .trix-blog__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.trix-footer {
  position: relative;
  background: var(--tx-dark);
  padding: 80px 0 0;
  overflow: hidden;
}

.trix-footer__glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(91, 108, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.trix-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trix-footer__brand img { height: 32px; margin-bottom: 20px; }

.trix-footer__brand p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.trix-footer__social {
  display: flex;
  gap: 10px;
}

.trix-footer__social a {
  width: 40px; height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 16px;
  transition: all 0.25s;
}

.trix-footer__social a:hover {
  background: var(--tx-accent);
  border-color: var(--tx-accent);
  color: #fff !important;
  transform: translateY(-2px);
}

.trix-footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.trix-footer__col ul { list-style: none; padding: 0; margin: 0; }

.trix-footer__col li { margin-bottom: 12px; }

.trix-footer__col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5) !important;
  transition: color 0.2s;
}

.trix-footer__col a:hover { color: #fff !important; }

.trix-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.trix-footer__contact i { color: var(--tx-accent-2); margin-top: 2px; }

.trix-footer__bottom {
  padding: 24px 0;
  text-align: center;
}

.trix-footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

@media (max-width: 991px) {
  .trix-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
  .trix-footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PAGE HEAD / BREADCRUMB
   ========================================================================== */
.trix-pagehead {
  position: relative;
  padding: calc(var(--tx-header-h) + 48px) 0 48px;
  background: var(--tx-surface-2);
  overflow: hidden;
}

.trix-pagehead__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.trix-pagehead__orb--1 {
  width: 400px; height: 400px;
  top: -150px; right: -100px;
  background: rgba(91, 108, 255, 0.12);
}

.trix-pagehead__orb--2 {
  width: 300px; height: 300px;
  bottom: -100px; left: -50px;
  background: rgba(0, 194, 255, 0.08);
}

.trix-pagehead__inner {
  position: relative;
  text-align: center;
}

.trix-pagehead h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.trix-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.trix-breadcrumb li { color: var(--tx-text-light); }
.trix-breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; opacity: 0.4; }
.trix-breadcrumb a { color: var(--tx-text) !important; }
.trix-breadcrumb li:last-child { color: var(--tx-accent); font-weight: 500; }

/* ==========================================================================
   TELEGRAM FLOAT
   ========================================================================== */
.trix-telegram {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  width: 52px; height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #229ED9, #1a8bc7);
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.4);
  transition: transform 0.3s var(--tx-ease), box-shadow 0.3s;
}

.trix-telegram:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(34, 158, 217, 0.5);
  color: #fff;
}

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */
.trix-modern .register-section {
  padding: calc(var(--tx-header-h) + 48px) 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--tx-bg);
}

.trix-modern .register-element-one,
.trix-modern .register-section .figure { display: none !important; }

.trix-modern .account-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--tx-radius-xl);
  overflow: hidden;
  box-shadow: var(--tx-shadow-lg);
  border: 1px solid var(--tx-border);
}

.trix-modern .register-form-area,
.trix-modern .change-catagory-area {
  padding: 48px 40px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trix-modern .change-catagory-area {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}

.trix-modern .change-catagory-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 15, 28, 0.88), rgba(91, 108, 255, 0.75));
}

.trix-modern .change-catagory-area .title,
.trix-modern .change-catagory-area .btn--base-active,
.trix-modern .change-catagory-area .trix-btn {
  position: relative;
  z-index: 1;
}

.trix-modern .change-catagory-area .title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.trix-modern .form--control,
.trix-modern .form-control.form--control {
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--tx-border);
  padding: 0 16px;
  font-family: var(--tx-font);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.trix-modern .form--control:focus {
  border-color: var(--tx-accent);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.1);
}

.trix-modern .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-heading);
  margin-bottom: 8px;
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.trix-modern.trix-dashboard .dashboard-section,
.trix-modern .dashboard-section {
  padding-top: calc(var(--tx-header-h) + 24px) !important;
  background: var(--tx-bg);
  min-height: 100vh;
}

.trix-modern .dashboard-wrapper__header .title {
  font-size: 1.5rem;
  font-weight: 800;
}

.trix-modern .sidebar-menu {
  border-radius: var(--tx-radius-lg);
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  box-shadow: var(--tx-shadow-sm);
  padding: 12px;
  position: sticky;
  top: calc(var(--tx-header-h) + 16px);
}

.trix-modern .sidebar-menu-list__link {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.trix-modern .sidebar-menu-list__item.active > .sidebar-menu-list__link,
.trix-modern .sidebar-menu-list__link:hover {
  background: rgba(91, 108, 255, 0.06);
  color: var(--tx-accent);
}

.trix-modern .dashboard-body {
  background: var(--tx-surface);
  border-radius: var(--tx-radius-lg);
  border: 1px solid var(--tx-border);
  box-shadow: var(--tx-shadow-sm);
  padding: 28px;
}

.trix-modern .dashboard-widget {
  border-radius: var(--tx-radius-lg);
  border: 1px solid var(--tx-border);
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.trix-modern .dashboard-widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--tx-shadow-md);
}

.trix-modern .dashboard-widget__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(91, 108, 255, 0.08);
  color: var(--tx-accent);
}

.trix-modern .dashboard-widget__number {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.trix-modern .sidebar_menu_btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--tx-border);
  background: var(--tx-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Tables & cards */
.trix-modern .card {
  border-radius: var(--tx-radius-lg);
  border: 1px solid var(--tx-border);
  box-shadow: var(--tx-shadow-xs);
}

.trix-modern .table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tx-text-light);
  border-color: var(--tx-border);
  padding: 14px 16px;
}

.trix-modern .table tbody td {
  padding: 14px 16px;
  border-color: var(--tx-border);
  font-size: 14px;
}

/* Cookies */
.trix-modern .cookies-card {
  border-radius: var(--tx-radius-lg);
  border: 1px solid var(--tx-border);
  box-shadow: var(--tx-shadow-lg);
  background: var(--tx-surface);
  padding: 24px;
}

/* Scroll top */
.trix-modern .scrollToTop {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--tx-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--tx-shadow-md);
  bottom: 28px;
  right: 28px;
}

/* Loader */
.trix-modern #overlayer { background: var(--tx-bg); }

/* Contact page */
.trix-modern .contact-section { padding-top: calc(var(--tx-header-h) + 48px); }
.trix-modern .contact-thumb img { border-radius: var(--tx-radius-xl); box-shadow: var(--tx-shadow-lg); width: 100%; }

.trix-modern .contact-info-item {
  padding: 32px 24px;
  border-radius: var(--tx-radius-lg);
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  box-shadow: var(--tx-shadow-xs);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.trix-modern .contact-info-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--tx-shadow-md);
}

.trix-modern .contact-info-item i {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(91, 108, 255, 0.08);
  color: var(--tx-accent);
  font-size: 20px;
  margin-bottom: 16px;
}

.trix-modern .contact-info-item .title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Hide legacy sections that might still render */
.trix-modern .banner-section:not(.trix-hero),
.trix-modern .feature-section,
.trix-modern .service-section,
.trix-modern .counter-section,
.trix-modern .about-section,
.trix-modern .client-section,
.trix-modern .action-section,
.trix-modern .call-to-action-section,
.trix-modern .faq-section,
.trix-modern .news-section {
  /* only hide if they don't have trix- classes - our new sections use trix- prefix */
}

/* ==========================================================================
   FLOATING SOCIAL PARTICLES (site-wide)
   ========================================================================== */
.trix-particles {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}

.trix-particles__item {
  position: absolute;
  left: var(--p-left);
  bottom: -80px;
  width: var(--p-size);
  height: var(--p-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 20, 33, 0.06);
  box-shadow: 0 6px 20px rgba(13, 20, 33, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  animation: tx-particle-rise var(--p-duration) linear infinite;
  animation-delay: var(--p-delay);
  will-change: transform, opacity;
}

.trix-particles__item i {
  font-size: calc(var(--p-size) * 0.42);
  color: var(--p-color);
}

@keyframes tx-particle-rise {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.85);
    opacity: 0;
  }
  6% {
    opacity: var(--p-opacity);
  }
  50% {
    transform: translate3d(calc(var(--p-drift) * 0.5), -55vh, 0) rotate(180deg) scale(1);
  }
  94% {
    opacity: var(--p-opacity);
  }
  100% {
    transform: translate3d(var(--p-drift), -115vh, 0) rotate(360deg) scale(0.9);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trix-particles { display: none; }
}

@media (max-width: 767px) {
  .trix-particles__item {
    border-radius: 12px;
  }
}

/* ==========================================================================
   HOMEPAGE POPUP MODAL
   ========================================================================== */
.trix-popup-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--tx-gradient);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(91, 108, 255, 0.45);
  transition: transform 0.3s var(--tx-ease), box-shadow 0.3s;
}

.trix-popup-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(91, 108, 255, 0.55);
}

.trix-popup-trigger__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(91, 108, 255, 0.5);
  animation: tx-popup-ring 2.5s ease-out infinite;
}

.trix-popup-trigger__ring--2 {
  animation-delay: 1.25s;
}

@keyframes tx-popup-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.trix-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 15, 28, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--tx-ease), visibility 0.32s;
}

.trix-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.trix-popup-overlay.is-open .trix-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.trix-popup {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--tx-surface);
  border-radius: var(--tx-radius-xl);
  border: 1px solid var(--tx-border);
  box-shadow: var(--tx-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.38s var(--tx-ease), opacity 0.38s var(--tx-ease);
}

.trix-popup--small { max-width: 420px; }
.trix-popup--medium { max-width: 580px; }
.trix-popup--large { max-width: 760px; }
.trix-popup--extra-large { max-width: 960px; }

.trix-popup__glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 160px;
  background: radial-gradient(ellipse, rgba(91, 108, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.trix-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--tx-border);
  border-radius: 12px;
  background: var(--tx-surface);
  color: var(--tx-text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.trix-popup__close:hover {
  background: var(--tx-surface-2);
  color: var(--tx-heading);
  border-color: var(--tx-border-2);
}

.trix-popup__header {
  padding: 32px 32px 0;
  padding-right: 64px;
}

.trix-popup__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-accent);
  background: rgba(91, 108, 255, 0.1);
  border: 1px solid rgba(91, 108, 255, 0.15);
  margin-bottom: 14px;
}

.trix-popup__header h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--tx-heading);
  margin: 0;
}

.trix-popup__body {
  padding: 20px 32px;
  overflow-y: auto;
  flex: 1;
}

.trix-popup__content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tx-text);
}

.trix-popup__content p { margin-bottom: 1rem; }
.trix-popup__content p:last-child { margin-bottom: 0; }

.trix-popup__videos {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.trix-popup__video-wrap {
  position: relative;
  border-radius: var(--tx-radius);
  overflow: hidden;
  border: 1px solid var(--tx-border);
  background: var(--tx-dark);
  aspect-ratio: 16 / 9;
}

.trix-popup__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.trix-popup__footer {
  padding: 20px 32px 28px;
  border-top: 1px solid var(--tx-border);
  background: var(--tx-surface-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trix-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trix-popup__dismiss {
  background: none;
  border: none;
  font-family: var(--tx-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-text-light);
  cursor: pointer;
  padding: 8px 0;
  text-align: center;
  transition: color 0.2s;
}

.trix-popup__dismiss:hover { color: var(--tx-heading); }

@media (max-width: 640px) {
  .trix-popup-trigger {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .trix-popup__header,
  .trix-popup__body,
  .trix-popup__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .trix-popup__header { padding-right: 56px; }

  .trix-popup__actions {
    flex-direction: column;
  }

  .trix-popup__actions .trix-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Telegram + popup bell spacing */
.trix-modern .trix-telegram { bottom: 28px; left: 28px; }

@media (max-width: 640px) {
  .trix-modern .trix-telegram { bottom: 20px; left: 20px; }
}
