/* ==========================================================================
   FlyCrawl — Self-Hosted High-Speed Local Web Fonts (100% GFW & China Safe)
   ========================================================================== */

/* Vazirmatn (Persian & Arabic Engine) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Plus Jakarta Sans (UI & Dashboard) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Outfit (Headings & Brand) */
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Fira Code (Monospace & Code Blocks) */
@font-face {
  font-family: 'Fira Code';
  src: url('/fonts/fira-code-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Pastel Primary Palette */
  --pastel-lavender-main: #7C3AED;
  --pastel-lavender-light: #8B5CF6;
  --pastel-lavender-soft: #A78BFA;
  --pastel-lavender-bg: #EDE9FE;
  --pastel-lavender-cloud: #F5F3FF;

  --pastel-pink-main: #DB2777;
  --pastel-pink-soft: #F472B6;
  --pastel-pink-bg: #FCE7F3;
  --pastel-pink-cloud: #FDF2F8;

  --pastel-mint-main: #059669;
  --pastel-mint-soft: #34D399;
  --pastel-mint-bg: #D1FAE5;
  --pastel-mint-cloud: #ECFDF5;

  --pastel-sky-main: #0284C7;
  --pastel-sky-soft: #38BDF8;
  --pastel-sky-bg: #E0F2FE;
  --pastel-sky-cloud: #F0F9FF;

  --pastel-peach-main: #D97706;
  --pastel-peach-soft: #FBBF24;
  --pastel-peach-bg: #FEF3C7;

  /* Neutral Soft Canvas */
  --bg-canvas: #F8FAFD;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #FFFFFF;
  --border-soft: rgba(226, 232, 240, 0.8);
  --border-glow: rgba(167, 139, 250, 0.35);

  --text-title: #1E1B4B;
  --text-body: #475569;
  --text-muted: #94A3B8;

  /* Shadows */
  --shadow-pastel: 0 20px 50px -12px rgba(124, 58, 237, 0.12), 0 8px 24px -4px rgba(56, 189, 248, 0.08);
  --shadow-card: 0 10px 30px -5px rgba(148, 163, 184, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.7);
  --shadow-hover: 0 24px 60px -15px rgba(139, 92, 246, 0.22), 0 0 0 1px rgba(167, 139, 250, 0.4);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Typography — Fully Self-Hosted with Native Chinese & Global Fallbacks */
  --font-main: 'Plus Jakarta Sans', 'Vazirmatn', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Vazirmatn', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Segoe UI", Roboto, sans-serif;
  --font-code: 'Fira Code', 'Cascadia Code', Consolas, Monaco, monospace;
}

/* RTL Layout Enhancements for Persian */
[dir="rtl"] {
  font-family: 'Vazirmatn', 'Plus Jakarta Sans', sans-serif !important;
  text-align: right;
}

[dir="rtl"] .hero-title, 
[dir="rtl"] .section-title, 
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  font-family: 'Vazirmatn', 'Outfit', sans-serif !important;
  letter-spacing: normal !important;
}

[dir="rtl"] .pg-left-col {
  border-right: none;
  border-left: 1px solid var(--border-soft);
}

[dir="rtl"] .data-table {
  text-align: right;
}

[dir="rtl"] .toast {
  border-left: none;
  border-right: 4px solid var(--pastel-lavender-main);
  animation: slideInRtl 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRtl {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(at 15% 15%, rgba(237, 233, 254, 0.85) 0px, transparent 50%),
    radial-gradient(at 85% 20%, rgba(253, 242, 248, 0.9) 0px, transparent 50%),
    radial-gradient(at 50% 85%, rgba(240, 249, 255, 0.85) 0px, transparent 55%);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* Floating Pastel Background Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.55;
  animation: floatSlow 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #DDD6FE, #FBCFE8);
  top: -100px;
  right: 5%;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #BAE6FD, #A7F3D0);
  bottom: 10%;
  left: -50px;
  animation-duration: 25s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #FEF3C7, #FCE7F3);
  top: 40%;
  right: 35%;
  animation-duration: 18s;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ==========================================================================
   Navigation Bar (Public & App) - Ultra Luxury Pixel-Perfect Single-Tier Design
   ========================================================================== */

.fly-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 8px 24px -6px rgba(124, 58, 237, 0.04);
  padding: 0 1.75rem !important;
  height: 60px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  width: 100%;
}

.fly-navbar .nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
}

.nav-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-v2-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0 1.25rem;
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-menu-btn,
.nav-direct-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.95rem;
  border-radius: 10px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav-menu-btn:hover,
.nav-direct-link:hover,
.nav-item-has-dropdown:hover .nav-menu-btn {
  background: rgba(124, 58, 237, 0.07);
  color: var(--pastel-lavender-main);
  border-color: rgba(124, 58, 237, 0.15);
}

.dropdown-chevron {
  font-size: 0.72rem;
  opacity: 0.55;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item-has-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Luxury Mega Dropdown Card */
.nav-dropdown-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12), 0 0 1px 1px rgba(124, 58, 237, 0.06);
  padding: 0.85rem;
}

.nav-item-has-dropdown:hover .nav-dropdown-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

[dir="rtl"] .nav-dropdown-card {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(8px);
}

[dir="rtl"] .nav-item-has-dropdown:hover .nav-dropdown-card {
  transform: translateX(50%) translateY(0);
}

.nav-dropdown-product {
  width: 530px;
}

.nav-dropdown-resources {
  width: 390px;
}

.dropdown-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dropdown-link-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.18s ease;
  background: transparent;
  border: 1px solid transparent;
}

.dropdown-link-item:hover {
  background: #F8FAFC;
  border-color: #E2E8F0;
  transform: translateY(-1px);
}

.dropdown-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bg-purple-soft { background: #FAF5FF; border: 1px solid #EDE9FE; }
.bg-amber-soft { background: #FFFBEB; border: 1px solid #FEF3C7; }
.bg-emerald-soft { background: #ECFDF5; border: 1px solid #D1FAE5; }
.bg-blue-soft { background: #EFF6FF; border: 1px solid #DBEAFE; }
.bg-indigo-soft { background: #EEF2FF; border: 1px solid #E0E7FF; }
.bg-rose-soft { background: #FFF1F2; border: 1px solid #FFE4E6; }
.bg-teal-soft { background: #F0FDFA; border: 1px solid #CCFBF1; }

.dropdown-link-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
}

.dropdown-link-item:hover .dropdown-link-title {
  color: var(--pastel-lavender-main);
}

.dropdown-link-desc {
  font-size: 0.73rem;
  color: #64748B;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.badge-hot {
  font-size: 0.6rem;
  font-weight: 800;
  background: #EF4444;
  color: #FFFFFF;
  padding: 1px 5px;
  border-radius: 4px;
}

.badge-new {
  font-size: 0.6rem;
  font-weight: 800;
  background: #7C3AED;
  color: #FFFFFF;
  padding: 1px 5px;
  border-radius: 4px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.living-bug-svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.22));
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Transform Origins for Realistic Insect Anatomy */
.bug-head-unit {
  transform-origin: 32px 18px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bug-antenna-l {
  transform-origin: 29px 13px;
  transition: transform 0.2s ease;
}

.bug-antenna-r {
  transform-origin: 35px 13px;
  transition: transform 0.2s ease;
}

.bug-legs-group-left {
  transform-origin: 22px 32px;
}

.bug-legs-group-right {
  transform-origin: 42px 32px;
}

.bug-leg-l1 { transform-origin: 22px 24px; transition: transform 0.18s ease; }
.bug-leg-l2 { transform-origin: 20px 31px; transition: transform 0.18s ease; }
.bug-leg-l3 { transform-origin: 22px 39px; transition: transform 0.18s ease; }

.bug-leg-r1 { transform-origin: 42px 24px; transition: transform 0.18s ease; }
.bug-leg-r2 { transform-origin: 44px 31px; transition: transform 0.18s ease; }
.bug-leg-r3 { transform-origin: 42px 39px; transition: transform 0.18s ease; }

.bug-wing-main-left {
  transform-origin: 30px 22px;
  transition: transform 0.15s ease;
}

.bug-wing-main-right {
  transform-origin: 34px 22px;
  transition: transform 0.15s ease;
}

.bug-wing-lower-left { transform-origin: 26px 34px; }
.bug-wing-lower-right { transform-origin: 38px 34px; }

.bug-tail-group {
  transform-origin: 32px 37px;
  animation: bugBioluminescentGlow 3s ease-in-out infinite alternate;
}

@keyframes bugBioluminescentGlow {
  0% { filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4)); opacity: 0.85; }
  100% { filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.95)); opacity: 1; }
}

/* ==========================================================================
   Living Autonomous Action Animations (Triggered Randomly)
   ========================================================================== */

/* 1. Full Alive Twitch (Head Look + Legs Shuffle + Wings Micro-Flap) */
.living-brand-logo.alive-action-full .bug-head-unit {
  animation: bugHeadCurious 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.living-brand-logo.alive-action-full .bug-antenna-l {
  animation: bugAntennaLeftTwitch 0.9s ease;
}
.living-brand-logo.alive-action-full .bug-antenna-r {
  animation: bugAntennaRightTwitch 0.9s ease;
}
.living-brand-logo.alive-action-full .bug-leg-l1,
.living-brand-logo.alive-action-full .bug-leg-l3 {
  animation: bugLegTripodA 0.8s ease-in-out;
}
.living-brand-logo.alive-action-full .bug-leg-l2,
.living-brand-logo.alive-action-full .bug-leg-r1,
.living-brand-logo.alive-action-full .bug-leg-r3 {
  animation: bugLegTripodB 0.8s ease-in-out;
}
.living-brand-logo.alive-action-full .bug-wing-main-left {
  animation: bugWingFlutterL 0.6s ease;
}
.living-brand-logo.alive-action-full .bug-wing-main-right {
  animation: bugWingFlutterR 0.6s ease;
}

/* 2. Curious Head Tilt & Antennae Scan */
.living-brand-logo.alive-action-head .bug-head-unit {
  animation: bugHeadInquisitive 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.living-brand-logo.alive-action-head .bug-antenna-l {
  animation: bugAntennaLeftTwitch 1.1s ease;
}
.living-brand-logo.alive-action-head .bug-antenna-r {
  animation: bugAntennaRightTwitch 1.1s ease;
}

/* 3. Crawl Legs Shuffle */
.living-brand-logo.alive-action-legs .bug-leg-l1,
.living-brand-logo.alive-action-legs .bug-leg-l3 {
  animation: bugLegTripodA 0.7s ease-in-out;
}
.living-brand-logo.alive-action-legs .bug-leg-l2,
.living-brand-logo.alive-action-legs .bug-leg-r1,
.living-brand-logo.alive-action-legs .bug-leg-r3 {
  animation: bugLegTripodB 0.7s ease-in-out;
}

/* 4. Wing Flutter */
.living-brand-logo.alive-action-flutter .bug-wing-main-left {
  animation: bugWingFlutterL 0.7s ease-in-out;
}
.living-brand-logo.alive-action-flutter .bug-wing-main-right {
  animation: bugWingFlutterR 0.7s ease-in-out;
}
.living-brand-logo.alive-action-flutter .living-bug-svg {
  animation: bugTinyHop 0.7s ease;
}

/* Hover Interaction: Excited Living Bug */
.brand-logo:hover .living-bug-svg {
  transform: scale(1.15);
}
.brand-logo:hover .bug-head-unit {
  animation: bugHeadCurious 0.7s infinite alternate ease-in-out;
}
.brand-logo:hover .bug-wing-main-left {
  animation: bugWingFlutterL 0.25s infinite alternate ease-in-out;
}
.brand-logo:hover .bug-wing-main-right {
  animation: bugWingFlutterR 0.25s infinite alternate ease-in-out;
}
.brand-logo:hover .bug-leg-l1, .brand-logo:hover .bug-leg-l3 {
  animation: bugLegTripodA 0.35s infinite alternate;
}
.brand-logo:hover .bug-leg-l2, .brand-logo:hover .bug-leg-r1, .brand-logo:hover .bug-leg-r3 {
  animation: bugLegTripodB 0.35s infinite alternate;
}

/* Keyframes */
@keyframes bugHeadCurious {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg) translate(-1px, -0.5px); }
  60% { transform: rotate(10deg) translate(1px, -0.5px); }
  85% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}

@keyframes bugHeadInquisitive {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-15deg); }
  70% { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

@keyframes bugAntennaLeftTwitch {
  0%, 100% { transform: rotate(0deg); }
  35% { transform: rotate(-18deg) scale(1.1); }
  65% { transform: rotate(8deg); }
}

@keyframes bugAntennaRightTwitch {
  0%, 100% { transform: rotate(0deg); }
  35% { transform: rotate(18deg) scale(1.1); }
  65% { transform: rotate(-8deg); }
}

@keyframes bugLegTripodA {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg); }
  60% { transform: rotate(10deg); }
}

@keyframes bugLegTripodB {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
}

@keyframes bugWingFlutterL {
  0%, 100% { transform: scaleX(1) rotate(0deg); }
  25% { transform: scaleX(0.7) rotate(-8deg); }
  60% { transform: scaleX(0.85) rotate(4deg); }
}

@keyframes bugWingFlutterR {
  0%, 100% { transform: scaleX(1) rotate(0deg); }
  25% { transform: scaleX(0.7) rotate(8deg); }
  60% { transform: scaleX(0.85) rotate(-4deg); }
}

@keyframes bugTinyHop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-2px) rotate(3deg); }
}


.brand-logo-text {
  font-family: 'Outfit', 'Vazirmatn', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #1E1B4B 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  margin-left: 2px;
  white-space: nowrap;
}



.nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-actions .btn-lang-toggle {
  height: 38px;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #FFFFFF;
  color: #1E293B !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.nav-actions .btn-lang-toggle:hover {
  border-color: var(--pastel-lavender-soft);
  background: var(--pastel-lavender-cloud);
  color: var(--pastel-lavender-main) !important;
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.credit-pill.wallet-pill {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #6EE7B7;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}

.credit-pill.credits-pill {
  background: linear-gradient(135deg, #FAF5FF 0%, #EDE9FE 100%);
  border: 1px solid #DDD6FE;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.08);
}

.credit-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.credit-pill .pill-icon {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credit-pill .pill-amount {
  font-weight: 800;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
}

.credit-pill.wallet-pill .pill-amount {
  color: #065F46;
}

.credit-pill.credits-pill .pill-amount {
  color: #1E1B4B;
}

.credit-pill .pill-text {
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.credit-pill.wallet-pill .pill-text {
  color: #059669;
}

.credit-pill.credits-pill .pill-text {
  color: #7C3AED;
}

.credit-plus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7C3AED;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 2px;
}

.btn-console-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-console-nav:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.38);
  transform: translateY(-1px);
}

.btn-console-nav .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.btn-console-nav:hover .btn-arrow {
  transform: translateX(2px);
}

.nav-link-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link-login:hover {
  background: #F1F5F9;
  color: #7C3AED;
}

.btn-signup-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
  text-decoration: none;
  transition: all 0.22s ease;
}

.btn-signup-nav:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.38);
  transform: translateY(-1px);
}

.mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  font-size: 1.2rem;
  color: var(--text-title);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-toggle-btn:hover {
  background: var(--pastel-lavender-cloud);
  border-color: var(--pastel-lavender-soft);
  color: var(--pastel-lavender-main);
}

/* Mobile Drawer Overlay & Content */
.mobile-nav-drawer {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  max-height: calc(100vh - 65px);
  overflow-y: auto;
  animation: popIn 0.2s ease-out;
}

.mobile-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-link:hover {
  background: var(--pastel-lavender-cloud);
  color: var(--pastel-lavender-main);
}

/* ==========================================================================
   App Navigation Bar (Console Layout)
   ========================================================================== */

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -4px rgba(124, 58, 237, 0.04);
  padding: 0.55rem 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.app-nav-container {
  max-width: 1550px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.app-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Credit & Wallet Pills */
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  text-decoration: none;
  font-size: 0.82rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.credit-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
  border-color: var(--pastel-lavender-soft);
}

.credit-plus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pastel-lavender-main);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  margin-left: 0.15rem;
}

[dir="rtl"] .credit-plus-btn {
  margin-left: 0;
  margin-right: 0.15rem;
}

/* Live Status Pill */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* User Profile Box */
.user-profile-box {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.6rem 0.25rem 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
}

[dir="rtl"] .user-profile-box {
  padding: 0.25rem 0.35rem 0.25rem 0.6rem;
}

.user-avatar-gradient {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-title);
}

.user-plan {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 0.2rem;
}

[dir="rtl"] .btn-logout {
  margin-left: 0;
  margin-right: 0.2rem;
}

.btn-logout:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #DC2626;
}

/* Responsive Visibility Helpers */
.desktop-only {
  display: inline-flex !important;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .desktop-nav {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  .app-navbar, .fly-navbar {
    padding: 0.45rem 0.85rem;
  }
  
  .credit-pill span:nth-child(3) {
    display: none; /* Hide label text 'Credits' / 'Wallet' on small screens */
  }

  .user-profile-box {
    padding: 0.2rem;
  }
  
  .btn-lang-toggle span {
    font-size: 0.75rem;
  }
}


/* ==========================================================================
   Pastel Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(124, 58, 237, 0.55);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-title) !important;
  border-color: var(--border-soft);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.08);
}

.btn-secondary:hover {
  background: var(--pastel-lavender-cloud);
  border-color: var(--pastel-lavender-soft);
  transform: translateY(-2px);
}

.btn-pastel-purple {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
  color: white !important;
  padding: 0.8rem 2rem;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.45);
}

.btn-pastel-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.6);
}

.badge-pastel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Billing Cycle Switcher (Pill Switcher)
   ========================================================================== */

.cycle-container {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  gap: 6px;
}

.cycle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.cycle-pill:hover {
  color: var(--text-title);
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}

.cycle-pill.active {
  background: #FFFFFF;
  color: var(--pastel-lavender-main);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.16), 0 1px 3px rgba(0, 0, 0, 0.06);
  font-weight: 800;
  transform: translateY(-1px);
}

.badge-purple {
  background: var(--pastel-lavender-bg);
  color: var(--pastel-lavender-main);
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.badge-pink {
  background: var(--pastel-pink-bg);
  color: var(--pastel-pink-main);
  border: 1px solid rgba(244, 114, 182, 0.4);
}

.badge-mint {
  background: var(--pastel-mint-bg);
  color: var(--pastel-mint-main);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

/* ==========================================================================
   Landing Hero Section & 3D Animated Floating Crypto Ecosystem
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 4.5rem 1.5rem 2.5rem;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-crypto-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.hero-foreground-content {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* Individual 3D Floating Crypto Nodes */
.crypto-3d-node {
  position: absolute;
  pointer-events: auto;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  will-change: transform;
}

.crypto-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(226, 232, 240, 0.65);
  cursor: default;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.crypto-card:hover {
  transform: scale(1.1) translateY(-4px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 35px -8px rgba(124, 58, 237, 0.22), 0 0 0 1px rgba(124, 58, 237, 0.35);
}

.crypto-icon-svg {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.usdt-icon { background: linear-gradient(135deg, #26A17B 0%, #00D68F 100%); }
.btc-icon  { background: linear-gradient(135deg, #F7931A 0%, #FFA834 100%); }
.eth-icon  { background: linear-gradient(135deg, #627EEA 0%, #8A9DF8 100%); }
.ton-icon  { background: linear-gradient(135deg, #0098EA 0%, #38BDF8 100%); }
.trx-icon  { background: linear-gradient(135deg, #FF0013 0%, #FF5A5F 100%); }
.sol-icon  { background: linear-gradient(135deg, #9945FF 0%, #14F195 100%); }
.bnb-icon  { background: linear-gradient(135deg, #F3BA2F 0%, #F8D33A 100%); }

.crypto-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

[dir="rtl"] .crypto-info {
  text-align: right;
}

.crypto-sym {
  font-size: 0.84rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.1;
}

.crypto-net {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748B;
  line-height: 1.2;
}

.crypto-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseNeon 2s infinite ease-in-out;
}

.crypto-live-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #0284C7;
  background: #E0F2FE;
  padding: 1px 6px;
  border-radius: 9999px;
}

/* Positioning & Floating Keyframe Animations for the 3 Minimalist Nodes */
.node-usdt {
  top: 18%;
  left: 0%;
  animation: float3D_USDT 9s ease-in-out infinite alternate;
}

.node-btc {
  top: 16%;
  right: 0%;
  animation: float3D_BTC 10s ease-in-out infinite alternate;
}

.node-ton {
  top: 65%;
  right: 3%;
  animation: float3D_TON 8.5s ease-in-out infinite alternate;
}

@keyframes float3D_USDT {
  0% { transform: translate3d(0, 0, 15px) rotate(0deg); }
  50% { transform: translate3d(12px, -14px, 30px) rotate(2.5deg); }
  100% { transform: translate3d(-8px, 10px, 10px) rotate(-1.5deg); }
}

@keyframes float3D_BTC {
  0% { transform: translate3d(0, 0, 20px) rotate(0deg); }
  50% { transform: translate3d(-14px, -15px, 40px) rotate(-3deg); }
  100% { transform: translate3d(10px, 12px, 15px) rotate(2deg); }
}

@keyframes float3D_TON {
  0% { transform: translate3d(0, 0, 15px) rotate(0deg); }
  50% { transform: translate3d(-10px, 14px, 30px) rotate(-2deg); }
  100% { transform: translate3d(8px, -10px, 10px) rotate(1.5deg); }
}

@keyframes pulseNeon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@media (max-width: 1200px) {
  .crypto-3d-node {
    display: none !important;
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.4rem;
}

.gradient-text {
  background: linear-gradient(135deg, #7C3AED 0%, #38BDF8 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-body);
  max-width: 780px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* ==========================================================================
   Interactive Live Playground (Matches the Mockup Box)
   ========================================================================== */

.playground-wrapper {
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 0 1rem;
}

.playground-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pastel), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: all 0.3s ease;
}

.playground-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playground-tabs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pg-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.pg-tab.active, .pg-tab:hover {
  color: var(--pastel-lavender-main);
  background: var(--pastel-lavender-bg);
}

.playground-body {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  min-height: 380px;
}

@media (max-width: 900px) {
  .playground-body {
    grid-template-columns: 1fr;
  }
}

.pg-left-col {
  padding: 2rem;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pg-input-group {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.4rem 0.4rem 1.2rem;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-input-group:focus-within {
  border-color: var(--pastel-lavender-soft);
  box-shadow: 0 0 0 4px var(--pastel-lavender-bg);
}

.pg-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-title);
  background: transparent;
}

.btn-crawl {
  background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-crawl:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #7C3AED 100%);
  transform: scale(1.02);
}

/* Quick Trending Benchmarks Bar - Ultra Luxury Glassmorphism UI */
/* Quick Trending Benchmarks Bar - Ultra Luxury Glassmorphism UI */
.pg-trending-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.4rem;
  margin-top: 1.25rem;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pg-trending-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED 0%, #EC4899 50%, #3B82F6 100%);
}

.pg-trending-box:hover {
  border-color: #DDD6FE;
  box-shadow: 0 16px 36px -10px rgba(124, 58, 237, 0.14);
}

.pg-trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pg-trending-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.2px;
}

.pg-trending-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.pg-trending-perks {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pg-trending-perk {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.pg-trending-perk.purple {
  background: #FAF5FF;
  border-color: #DDD6FE;
  color: #6D28D9;
}

.pg-trending-perk.blue {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}

.btn-shuffle-sites, .btn-shuffle-chips {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #7C3AED;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-shuffle-sites:hover, .btn-shuffle-chips:hover {
  background: #FAF5FF;
  border-color: #C4B5FD;
  color: #6D28D9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.btn-shuffle-chips.spinning span:first-child {
  display: inline-block;
  animation: spinClockwise 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Category Filter Bar */
.pg-trending-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px dashed #E2E8F0;
  padding-bottom: 0.75rem;
}

.pg-trending-cats {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pg-cat-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #64748B;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.pg-cat-btn:hover {
  background: #F1F5F9;
  color: var(--text-title);
}

.pg-cat-btn.active {
  background: #FAF5FF;
  border-color: #DDD6FE;
  color: #7C3AED;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.08);
}

/* Upgraded Benchmark Chips Grid */
.pg-trending-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.pg-sample-chip {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-align: left;
}

[dir="rtl"] .pg-sample-chip {
  text-align: right;
}

.pg-sample-chip .chip-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pg-sample-chip .chip-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.pg-sample-chip .chip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pg-sample-chip .chip-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.pg-sample-chip .chip-domain {
  font-size: 0.68rem;
  color: #94A3B8;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-sample-chip .chip-badge {
  font-size: 0.62rem;
  font-weight: 800;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pg-sample-chip:hover {
  background: linear-gradient(135deg, #FAF5FF 0%, #F5F3FF 100%);
  border-color: #8B5CF6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.16);
}

.pg-sample-chip:hover .chip-name {
  color: #7C3AED;
}

.pg-sample-chip:hover .chip-badge {
  background: #7C3AED;
  color: #FFFFFF;
  border-color: #7C3AED;
}

.pg-sample-chip:active {
  transform: translateY(0);
}

/* Benchmark Showcase Footer Link */
.pg-trending-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #E2E8F0;
  font-size: 0.78rem;
  color: #64748B;
}

.pg-trending-footer a {
  color: #7C3AED;
  font-weight: 700;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.pg-trending-footer a:hover {
  color: #5B21B6;
}
  transform: scale(0.96);
}


.pg-param-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.pg-param-box {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.pg-param-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.4rem;
}

.pg-explainer-box {
  background: linear-gradient(135deg, #FAF5FF 0%, #F5F3FF 100%);
  border: 1px dashed var(--pastel-lavender-soft);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #4B5563;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Trending 100 Marquee & Showcase */
.trending-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: inline-flex;
  gap: 1.25rem;
  animation: marqueeScroll 45s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  background: #F8FAFC;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-soft);
}

.marquee-item:hover {
  background: var(--pastel-lavender-bg);
  color: var(--pastel-lavender-main);
  border-color: var(--pastel-lavender-soft);
  transform: translateY(-2px);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.75rem;
  background: #FAFAFA;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}

.trending-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trending-card:hover {
  transform: translateY(-3px);
  border-color: var(--pastel-lavender-main);
  box-shadow: 0 6px 16px -3px rgba(124, 58, 237, 0.12);
  background: var(--pastel-lavender-bg);
}

.trending-cat-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: #FFFFFF;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.trending-cat-pill.active, .trending-cat-pill:hover {
  background: var(--pastel-lavender-main);
  color: #FFFFFF;
  border-color: var(--pastel-lavender-main);
}

.pg-right-col {
  background: #FAF5FF;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pg-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border-soft);
}

.pg-code-view {
  flex: 1;
  padding: 1.25rem;
  font-family: var(--font-code);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #334155;
  overflow-y: auto;
  max-height: 380px;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-line-num {
  color: #CBD5E1;
  user-select: none;
  margin-right: 1rem;
  display: inline-block;
  width: 20px;
  text-align: right;
}

.code-key { color: #8B5CF6; font-weight: 600; }
.code-str { color: #059669; }
.code-num { color: #D97706; }
.code-bool { color: #DB2777; font-weight: 600; }

/* ==========================================================================
   Features, Pricing & Comparison Cards
   ========================================================================== */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.8rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pastel-lavender-soft);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.icon-purple { background: var(--pastel-lavender-bg); color: var(--pastel-lavender-main); }
.icon-pink { background: var(--pastel-pink-bg); color: var(--pastel-pink-main); }
.icon-mint { background: var(--pastel-mint-bg); color: var(--pastel-mint-main); }
.icon-sky { background: var(--pastel-sky-bg); color: var(--pastel-sky-main); }

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.6rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
  border: 2px solid var(--pastel-lavender-soft);
  box-shadow: var(--shadow-pastel);
  transform: scale(1.03);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-title);
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  color: var(--text-body);
}

/* ==========================================================================
   Modern App Dashboard Layout & Navigation System (Linear / Raycast Aesthetic)
   ========================================================================== */

/* Top App Navigation Bar */
.app-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(124, 58, 237, 0.04);
}

.app-nav-container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Live Status Indicator Pill */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseGreen {
  to {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

/* Credit Wallet Pill */
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FAF5FF 0%, #FFFFFF 100%);
  border: 1.5px solid #DDD6FE;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
}

.credit-pill:hover {
  border-color: var(--pastel-lavender-main);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.credit-plus-btn {
  width: 18px;
  height: 18px;
  background: var(--pastel-lavender-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  margin-left: 2px;
}

/* User Profile Badge */
.user-profile-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.user-avatar-gradient {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.user-info-text {
  text-align: left;
  line-height: 1.2;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-title);
}

.user-plan {
  font-size: 0.7rem;
  color: var(--pastel-lavender-main);
  font-weight: 600;
}

.btn-logout {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 0.25rem;
  transition: color 0.2s ease;
}

.btn-logout:hover {
  color: #EF4444;
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
  display: none;
  background: #F8FAFC;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-title);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.mobile-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-title);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: var(--pastel-lavender-bg);
  color: var(--pastel-lavender-main);
}

/* App Wrapper & Left Sidebar */
.app-wrapper {
  display: flex;
  min-height: calc(100vh - 65px);
  max-width: 1600px;
  margin: 0 auto;
}

.app-sidebar {
  width: 275px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94A3B8;
  margin-bottom: 0.6rem;
  padding-left: 0.75rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon {
  font-size: 1.1rem;
}

.sidebar-link.active {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  color: var(--pastel-lavender-main);
  font-weight: 700;
  border-left: 3px solid var(--pastel-lavender-main);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

.sidebar-link:hover:not(.active) {
  background: #F8FAFC;
  color: var(--pastel-lavender-main);
  transform: translateX(2px);
}

/* Sidebar Upgrade Card */
.sidebar-upgrade-card {
  margin-top: auto;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-upgrade-glow {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transition: all 0.2s ease;
}

.btn-upgrade-glow:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.6);
}

/* Main Dashboard Content Canvas */
.app-main {
  flex: 1;
  padding: 2.25rem 2.5rem;
  max-width: 1320px;
}

/* Stat Cards Overhaul */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  box-shadow: 0 4px 16px rgba(148, 163, 184, 0.05);
  display: flex;
  align-items: center;
  gap: 1.15rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pastel-lavender-main), var(--pastel-mint-main));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(124, 58, 237, 0.12);
  border-color: #DDD6FE;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--text-title);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Data Table Overhaul */
.data-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 16px rgba(148, 163, 184, 0.05);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: #F8FAFC;
  padding: 0.9rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border-soft);
}

.data-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-body);
}

.data-table tr:hover td {
  background: #FAF5FF;
}

/* Utilities */
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }


/* Auth Cards */
.auth-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-pastel);
  text-align: center;
}

.form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid #E2E8F0;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.form-input:focus {
  border-color: var(--pastel-lavender-soft);
  box-shadow: 0 0 0 3px var(--pastel-lavender-bg);
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--pastel-lavender-main);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Design System
   ========================================================================== */

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Design System
   ========================================================================== */

/* Tablet & Screen Width Breakpoints (<= 1024px) */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-toggle-btn {
    display: inline-flex !important;
  }

  .nav-container, .app-nav-container {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }

  .app-sidebar {
    position: fixed;
    top: 55px;
    bottom: 0;
    left: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-soft);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  [dir="rtl"] .app-sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border-soft);
    transform: translateX(100%);
  }

  .app-sidebar.sidebar-mobile-open {
    transform: translateX(0) !important;
  }

  .app-main {
    padding: 1.25rem 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Small Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .fly-navbar, .app-navbar {
    padding: 0.4rem 0.75rem;
  }

  .brand-logo-text {
    font-size: 1.1rem;
  }

  .brand-logo-badge {
    display: none;
  }

  .live-status-pill {
    display: none !important;
  }

  .credit-pill {
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
  }

  .credit-pill span:nth-child(3) {
    display: none !important;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }


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

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .playground-wrapper {
    padding: 1rem 0.75rem;
  }

  .playground-card {
    border-radius: var(--radius-lg);
  }

  .playground-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .playground-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.75rem;
  }

  .pg-left-col {
    padding: 1.25rem 1rem;
  }

  .pg-input-group {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .pg-input {
    width: 100%;
  }

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

  .pg-param-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pg-right-col {
    border-top: 1px solid var(--border-soft);
  }

  .pg-code-view {
    max-height: 350px;
    font-size: 0.8rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .stat-val {
    font-size: 1.35rem;
  }

  .stat-lbl {
    font-size: 0.75rem;
  }

  .data-card {
    padding: 1.25rem 1rem !important;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card.featured {
    transform: none;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo span {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   Global 7-Language Dropdown Selector (Ultra Glassmorphism & Micro-animations)
   ========================================================================== */

.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.btn-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-title);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.05);
}

.btn-lang-toggle:hover {
  background: #FFFFFF;
  border-color: var(--pastel-lavender-main);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 0.4rem;
  z-index: 1100;
  animation: langDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

@keyframes langDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.lang-item:hover {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.9), rgba(253, 242, 248, 0.9));
  color: var(--pastel-lavender-main);
  transform: translateX(3px);
}

[dir="rtl"] .lang-item:hover {
  transform: translateX(-3px);
}

.lang-item.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  color: var(--pastel-lavender-main);
  font-weight: 700;
  border-left: 3px solid var(--pastel-lavender-main);
}

[dir="rtl"] .lang-item.active {
  border-left: none;
  border-right: 3px solid var(--pastel-lavender-main);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-name {
  flex-grow: 1;
}

/* ==========================================================================
   Playground Mode Pills (Web Scraper vs Text Embeddings)
   ========================================================================== */
.pg-mode-pill {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pg-mode-pill:hover {
  color: var(--pastel-lavender-main);
  background: rgba(255, 255, 255, 0.6);
}

.pg-mode-pill.active {
  background: #FFFFFF;
  color: #6D28D9;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}


