/* ==========================================================================
   Build Your Business — Advanced SaaS Protocol (Mr. Tech Co. Master Luxury)
   - Global Cairo Typography Across All Elements
   - Prominent 3D Rendered Aesthetic & Luminous Card Layouts
   - Gradual SaaS Background Grid Fade-In Animation
   - Magical Full-Cover Hero Slides
   - ChatGPT-Style AI Modal with Pollinations Image Renderer
   - In-Platform Subscription Window & VIP Crown Badge
   ========================================================================== */

@import url('./portal-fonts.css');

/* ==========================================================================
   Design Tokens & CSS Variables (Cairo Global)
   ========================================================================== */

:root {
  /* Cairo Typography Globally */
  --font: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-heading: 'Cairo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radiant Hues */
  --primary: #6366f1;
  --primary-rgb: 99, 102, 241;
  --primary-hover: #4f46e5;
  --primary-soft: rgba(99, 102, 241, 0.16);
  --primary-glow: rgba(99, 102, 241, 0.55);

  --secondary: #8b5cf6;
  --secondary-rgb: 139, 92, 246;
  --secondary-soft: rgba(139, 92, 246, 0.16);

  --accent: #06b6d4;
  --accent-rgb: 6, 182, 212;
  --accent-soft: rgba(6, 182, 212, 0.16);

  --ok: #10b981;
  --ok-rgb: 16, 185, 129;
  --ok-soft: rgba(16, 185, 129, 0.16);

  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.16);

  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.16);

  --crown-gold: #fbbf24;
  --crown-glow: rgba(251, 191, 36, 0.6);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  --grad-aurora: linear-gradient(135deg, #6366f1 0%, #8b5cf6 35%, #ec4899 70%, #06b6d4 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Springs & Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.28s;
  --duration-slow: 0.5s;
}

/* ==========================================================================
   Theme: Dark Mode
   ========================================================================== */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-soft: #07070c;
  --bg-card: rgba(13, 13, 22, 0.75);
  --surface: #0b0b14;
  --surface-2: #121220;
  --surface-elevated: #1a1a2e;

  --text: #ffffff;
  --text-soft: #94a3b8;
  --muted: #64748b;
  --text-faint: #334155;

  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(99, 102, 241, 0.6);

  --glass-bg: rgba(13, 13, 24, 0.75);
  --glass-header: rgba(0, 0, 0, 0.88);
  --glass-border: rgba(255, 255, 255, 0.12);
  --backdrop-blur: blur(28px) saturate(200%);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.85);

  --hero-mesh:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.35), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(6, 182, 212, 0.22), transparent 50%),
    #000000;
}

/* ==========================================================================
   Theme: Light Mode
   ========================================================================== */

[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-elevated: #ffffff;

  --text: #090d16;
  --text-soft: #475569;
  --muted: #64748b;
  --text-faint: #94a3b8;

  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.2);
  --border-glow: rgba(99, 102, 241, 0.5);

  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-header: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(15, 23, 42, 0.12);
  --backdrop-blur: blur(28px) saturate(200%);

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 45px -12px rgba(15, 23, 42, 0.12);

  --hero-mesh:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(6, 182, 212, 0.12), transparent 50%),
    #f8fafc;
}

/* ==========================================================================
   Global Reset & Global Cairo Font
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden !important;
  width: 100%;
}

body {
  font-family: var(--font) !important;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  position: relative;
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
}

/* Background SaaS Grid Covering Hero & Main Page (Excluding Footer) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.14) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.85) 15%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 80%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.85) 15%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 80%, transparent 92%);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  animation: gridFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="light"] body::before {
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.09) 1px, transparent 1px);
}

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

/* Form Controls with Subtle Grey Borders */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select,
.form-control {
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font) !important;
  transition: all var(--duration-fast) ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-soft) !important;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1rem;
  }
}

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

/* ==========================================================================
   Header Redesign (Ultra-Premium Glass Capsule)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 1rem;
  inset-inline: 0;
  z-index: 1000;
  transition: all var(--duration-normal) ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 1rem;
  height: 54px;
  padding: 0 1.25rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .site-header .container {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header.header-scrolled .container {
  height: 48px;
  padding: 0 1.1rem;
  background: rgba(10, 15, 30, 0.92);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .site-header.header-scrolled .container {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(203, 213, 225, 0.9);
}

/* Tenant App Shell Topbar */
.app-topbar {
  position: fixed;
  top: 1rem;
  inset-inline: 1rem;
  max-width: 1680px;
  width: 96%;
  margin: 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(99, 102, 241, 0.1);
  box-sizing: border-box;
}
[data-theme="light"] .app-topbar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.app-topbar .brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.app-topbar .brand-text { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.05rem; }
.app-topbar .brand-text strong { color: var(--text); }
.app-topbar .brand-text small {
  font-size: .8rem; color: var(--muted); background: var(--surface-2, rgba(255,255,255,0.06));
  padding: .15rem .5rem; border-radius: 6px; font-weight: 600;
}
.app-topbar-drawer { display: none; }
.app-topbar-drawer .nav-close { display: none !important; }
.app-topbar .app-nav-burger { display: none; }
.app-topbar-actions { display: flex; align-items: center; gap: .5rem; }
@media (min-width: 901px) {
  .app-topbar-drawer,
  .app-topbar-drawer-nav {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .app-topbar .app-nav-burger { display: inline-flex; }
  .app-topbar-drawer {
    display: flex;
    position: fixed; top: 0; inset-inline-end: 0; width: 280px; max-width: 85vw; height: 100vh;
    background: var(--surface); border-inline-start: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 1.5rem 1.25rem; gap: 1.25rem;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s ease; z-index: 1001;
  }
  [dir="rtl"] .app-topbar-drawer { transform: translateX(-100%); }
  .app-topbar.nav-open .app-topbar-drawer { transform: translateX(0); }
  .app-topbar-drawer .nav-close { display: inline-flex !important; align-self: flex-end; }
}

/* Redesigned 3-Section Tenant App Topbar */
.app-topbar--redesigned {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 0.75rem;
  padding: 0 0.85rem;
  height: 56px;
  max-width: 1680px !important;
  width: 96% !important;
  border-radius: 9999px;
  box-sizing: border-box;
}

.app-topbar-start {
  display: flex;
  align-items: center !important;
  gap: 0.4rem;
  justify-self: start;
  height: 100%;
}

.app-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.app-topbar-brand-solo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.28rem 0.85rem;
  border-radius: 9999px;
  background: var(--surface-2, rgba(255,255,255,0.06));
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all .2s ease;
}
.app-topbar-brand-solo:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
}
.app-topbar-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.app-topbar-logo-text {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.app-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
}

.app-tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: all .18s ease;
}
.app-tb-btn:hover {
  transform: translateY(-1px);
}
.app-tb-support {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
.app-tb-support:hover {
  background: rgba(16, 185, 129, 0.18) !important;
}
.app-topbar-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 32px;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface-2, rgba(255,255,255,0.06));
  border: 1px solid var(--border);
  border-radius: 9999px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .app-topbar--redesigned {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 0.75rem !important;
  }
  .app-topbar-start .app-tb-btn:not(.app-tb-back) {
    display: none;
  }
  .app-topbar-end .app-tb-btn:not(.app-tb-support):not(.app-tb-fs) {
    display: none;
  }
  .app-topbar-project-pill {
    display: none;
  }
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}

.site-brand-logo {
  width: 30px;
  height: 30px;
  filter: none !important;
  box-shadow: none !important;
}

.site-brand-title {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 900 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.01em;
  display: inline-block;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 9999px;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}

.site-nav-link:hover,
.site-nav-link.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .site-nav-link:hover,
[data-theme="light"] .site-nav-link.active {
  background: rgba(241, 245, 249, 0.9);
  color: #0f172a;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.cmd-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 34px;
  padding: 0 0.8rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  transition: all var(--duration-fast) ease;
}

.cmd-trigger-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .cmd-trigger-btn {
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  color: #334155;
}

[data-theme="light"] .cmd-trigger-btn:hover {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.4);
  color: #0f172a;
}

.cmd-trigger-btn .cmd-kbd {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: none;
}

.lang-toggle-btn,
.theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-soft) !important;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  transition: all var(--duration-fast) ease !important;
  position: relative !important;
}

.theme-toggle-btn span,
.lang-toggle-btn span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lang-toggle-btn:hover,
.theme-toggle-btn:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="light"] .lang-toggle-btn,
[data-theme="light"] .theme-toggle-btn {
  background: rgba(241, 245, 249, 0.9) !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  color: #334155 !important;
}

[data-theme="light"] .lang-toggle-btn:hover,
[data-theme="light"] .theme-toggle-btn:hover {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* User Profile Header Dropdown & Smart Name */
.user-profile-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.user-profile-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  height: 34px !important;
  padding: 0 0.65rem !important;
  border-radius: 9999px !important;
  max-width: 175px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all var(--duration-fast) ease !important;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="light"] .user-profile-btn {
  background: rgba(241, 245, 249, 0.9) !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  color: #0f172a !important;
}

[data-theme="light"] .user-profile-btn:hover {
  background: #ffffff !important;
}

.user-profile-btn .user-name-wrapper {
  display: inline-flex;
  align-items: center;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-btn .user-name-dual {
  display: inline;
}

.user-profile-btn .user-name-first {
  display: none;
}

.user-profile-btn .user-caret {
  font-size: 0.7rem;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Smart responsiveness: switch to single first name when viewport or header gets tighter */
@media (max-width: 1280px) {
  .user-profile-btn .user-name-dual {
    display: none !important;
  }
  .user-profile-btn .user-name-first {
    display: inline !important;
  }
  .user-profile-btn {
    max-width: 130px !important;
    padding: 0 0.5rem !important;
  }
  .site-nav {
    gap: 0.15rem;
  }
  .site-nav-link {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
    gap: 0.25rem;
  }
}

.site-header .container {
  max-width: min(1440px, calc(100% - 1.5rem));
}

/* User Profile Dropdown */
.user-profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 195px;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl), 0 0 25px rgba(99, 102, 241, 0.15);
  z-index: 10010;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
}

.user-profile-dropdown-menu.open {
  display: flex !important;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: start;
  transition: background var(--duration-fast) ease;
}

.user-dropdown-item:hover {
  background: var(--surface-2);
  color: var(--primary);
}

/* Liquid Glassify Floating Slideshow Navigation Arrows */
.slideshow-floating-controls {
  position: absolute;
  top: 1.3rem;
  inset-inline-start: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 35;
}

.slideshow-floating-controls .slideshow-nav-btn,
.liquid-glass-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  position: static !important;
  transform: none !important;
  outline: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.slideshow-floating-controls .slideshow-nav-btn svg,
.liquid-glass-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}

.slideshow-floating-controls .slideshow-nav-btn:hover,
.liquid-glass-btn:hover {
  transform: scale(1.12) translateY(-2px) !important;
  background: rgba(99, 102, 241, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45), inset 0 1.5px 3px rgba(255, 255, 255, 0.5) !important;
}

.slideshow-floating-controls .slideshow-nav-btn:active,
.liquid-glass-btn:active {
  transform: scale(0.95) !important;
}

[data-theme="light"] .slideshow-floating-controls .slideshow-nav-btn,
[data-theme="light"] .liquid-glass-btn {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .slideshow-floating-controls .slideshow-nav-btn:hover,
[data-theme="light"] .liquid-glass-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, rgba(99, 102, 241, 0.15) 100%) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.28), inset 0 2px 4px rgba(255, 255, 255, 1) !important;
}

/* ==========================================================================
   Fresh, Asymmetric 3D Bento Card Layout with English Badges & Dual Actions
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

@media (min-width: 1200px) {
  .bento-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

/* The Redesigned 3D Bento Card */
.bento-3d-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.4rem 1.5rem;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  gap: 1.1rem;
  overflow: hidden !important;
  text-decoration: none !important;
  transition: transform var(--duration-normal) var(--ease-spring),
              border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              background var(--duration-normal) ease;
  min-height: 230px;
}

/* Watermark Background Translucent Fade-in Animation on Card Hover (Razor-Sharp Vector Rendering) */
.bento-card-bg-watermark {
  position: absolute;
  bottom: -45px;
  inset-inline-end: -45px;
  width: 220px;
  height: 220px;
  opacity: 0;
  transform: scale(0.8) rotate(-10deg);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 80%);
  filter: none !important;
}

.bento-card-bg-watermark svg {
  width: 100%;
  height: 100%;
  shape-rendering: geometricPrecision !important;
  text-rendering: geometricPrecision !important;
  filter: none !important;
}

.bento-3d-card:hover .bento-card-bg-watermark {
  opacity: 0.22;
  transform: scale(1.18) rotate(0deg);
}

[data-theme="light"] .bento-3d-card:hover .bento-card-bg-watermark {
  opacity: 0.16;
}

/* 3D Pedestal Lighting */
.bento-3d-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 55%;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18), transparent 70%);
  opacity: 0.5;
  transition: opacity var(--duration-normal) ease;
  pointer-events: none;
  z-index: 2;
}

.bento-3d-card:hover::before {
  opacity: 1;
}

.bento-3d-card:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(99, 102, 241, 0.25);
  background: rgba(22, 22, 38, 0.96);
}

[data-theme="light"] .bento-3d-card:hover {
  background: rgba(255, 255, 255, 0.98);
}

/* ==========================================================================
   Clean, Oversized Shadowless Icon Pedestals (90px Size, Sharp Vectors)
   ========================================================================== */

.bento-3d-icon-wrap {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform var(--duration-normal) var(--ease-spring);
  overflow: visible;
}

.bento-3d-icon-wrap svg {
  shape-rendering: geometricPrecision !important;
  filter: none !important;
}

.bento-3d-icon-wrap::after {
  display: none !important;
}

.bento-3d-card:hover .bento-3d-icon-wrap {
  transform: translateY(-4px) scale(1.12) rotate(2deg);
}

/* Frameless Icon Tones - Pure Clean Floating Icons without colored background boxes */
[class*="tone-"],
.tone-docx, .tone-word, .tone-cv, .tone-excel, .tone-pptx, .tone-pdf, .tone-mustamsak,
.tone-design, .tone-film, .tone-animate, .tone-product, .tone-logo, .tone-social,
.tone-cv_company, .tone-portrait, .tone-profile, .tone-interface, .tone-shopping,
.tone-erp, .tone-archive, .tone-pharmacy, .tone-finance, .tone-website, .tone-bg_remove,
.tone-highlight, .tone-negative, .tone-ai, .tone-cad, .tone-bim, .tone-planner5d,
.tone-chem_eng, .tone-logic_cad, .tone-arch_plan, .tone-circuit_cad, .tone-eng_calc,
.tone-seal, .tone-qr, .tone-powerpoint, .tone-scissors, .tone-store, .tone-layers,
.tone-shield, .tone-globe, .tone-sparkles {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* White Coupon Code Ticket Box */
.coupon-code-ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 0.55rem 1.3rem;
  border-radius: 12px;
  border: 2px dashed #94a3b8 !important;
  font-family: 'JetBrains Mono', 'Cairo', monospace !important;
  font-weight: 900 !important;
  font-size: 1.35rem !important;
  letter-spacing: 1.5px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Overlay Default State: Strictly Hidden */
.nav-backdrop,
.nav-drawer,
.cmd-palette-backdrop,
.ai-copilot-modal,
.ai-copilot-dock {
  display: none !important;
  visibility: hidden !important;
}

.nav-backdrop.open,
.nav-drawer.open,
.cmd-palette-backdrop.open,
.ai-copilot-modal.open {
  display: flex !important;
  visibility: visible !important;
}

.stitch-mobile-bottom-bar {
  --mobile-dock-h: 3.35rem;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mobile-dock-h);
  z-index: 10006;
  display: none !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 0.38rem;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 0.32rem 0.45rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, #fff);
  box-shadow: 0 -14px 32px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  pointer-events: auto;
}

.mobile-dock-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 100%;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border));
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 0.35rem;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.mobile-dock-item .byb-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.mobile-dock-item span {
  font-size: 0.62rem;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-dock-item:hover,
.mobile-dock-item:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}

.mobile-dock-item:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .stitch-mobile-bottom-bar {
    display: flex !important;
  }

  body.demo-scope .stitch-mobile-bottom-bar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.demo-scope main.demo-main.container.section {
    padding-bottom: var(--demo-mobile-main-offset, calc(3.75rem + env(safe-area-inset-bottom, 0px))) !important;
  }
}

/* Header Buttons Clean Reset (Fixes Black Box Outlines in Screenshot) */
.header-actions button,
.header-actions a,
.cmd-trigger-btn,
.lang-toggle-btn,
.theme-toggle-btn,
.user-profile-btn,
.nav-burger {
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  background: var(--surface-2) !important;
  border-radius: var(--radius-full) !important;
  font-family: inherit !important;
  transition: all var(--duration-fast) ease !important;
}

/* Header Buttons Clean Reset (Fixes Black Box Outlines in Screenshot) */
.header-actions button,
.header-actions a,
.cmd-trigger-btn,
.lang-toggle-btn,
.theme-toggle-btn,
.user-profile-btn,
.nav-burger {
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  background: var(--surface-2) !important;
  border-radius: var(--radius-full) !important;
  font-family: inherit !important;
  transition: all var(--duration-fast) ease !important;
}

[data-theme="light"] .header-actions button,
[data-theme="light"] .header-actions a,
[data-theme="light"] .cmd-trigger-btn,
[data-theme="light"] .lang-toggle-btn,
[data-theme="light"] .theme-toggle-btn,
[data-theme="light"] .user-profile-btn {
  background: rgba(241, 245, 249, 0.9) !important;
  border: 1px solid rgba(203, 213, 225, 0.85) !important;
  color: #0f172a !important;
}

.cmd-trigger-btn .cmd-kbd {
  border: none !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: var(--primary) !important;
  border-radius: 6px !important;
  padding: 0.15rem 0.45rem !important;
  font-size: 0.72rem !important;
}

.bento-3d-card:hover .bento-3d-icon-wrap {
  transform: scale(1.15) rotate(4deg) translateY(-2px);
}

.bento-3d-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* English Name Sleek Rectangle Badge */
.bento-en-badge {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.3px;
  margin-top: 0.35rem;
  position: relative;
  z-index: 2;
}

[data-theme="light"] .bento-en-badge {
  background: rgba(0, 0, 0, 0.04);
}

/* Dual Action Buttons (ديمو & ابدأ مشروعك) */
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  position: relative;
  z-index: 2;
}

.card-btn-demo {
  flex: 1;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  justify-content: center;
}

.card-btn-start {
  flex: 1.35;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 10px;
  justify-content: center;
}

/* VIP Crown Badge */
.vip-crown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, #FEF08A 0%, #F59E0B 45%, #D97706 85%, #FDE047 100%) !important;
  border: 1px solid rgba(254, 240, 138, 0.85) !important;
  border-radius: var(--radius-full);
  color: #0f2963 !important;
  font-weight: 900 !important;
  font-size: 0.82rem;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.45);
  animation: crownShimmer 3s ease infinite;
}
.vip-crown-btn span {
  color: #0f2963 !important;
  font-weight: 900 !important;
}

@keyframes crownShimmer {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.2); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  padding-top: 8.5rem;
  padding-bottom: 2rem;
  background: var(--hero-mesh);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.28);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.text-grad {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: textShimmer 7s linear infinite;
  display: inline-block;
}

@keyframes textShimmer {
  to { background-position: 200% center; }
}

/* ==========================================================================
   Magical Full-Cover Hero Slideshow (Full Bleed Visual Illustrations)
   ========================================================================== */

.hero-slideshow-wrap {
  margin: 2.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #020617 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.25);
  min-height: 380px;
}

.hero-slideshow-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.hero-slide-full {
  min-width: 100%;
  width: 100%;
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 3rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  background-color: #020617 !important;
}

@media (max-width: 768px) {
  .hero-slide-full {
    padding: 2rem 1.25rem;
    min-height: 340px;
  }
}

/* Full-cover magical gradient scenes */
.slide-scene-mustamsak {
  background: radial-gradient(circle at 80% 30%, rgba(13, 148, 136, 0.55), transparent 60%),
              linear-gradient(135deg, #042f2e 0%, #0f172a 60%, #020617 100%) !important;
}

.slide-scene-pptx, .slide-scene-creative {
  background: radial-gradient(circle at 80% 30%, rgba(234, 88, 12, 0.55), transparent 60%),
              linear-gradient(135deg, #431407 0%, #0f172a 60%, #020617 100%) !important;
}

.slide-scene-ai, .slide-scene-cad, .slide-scene-engineering {
  background: radial-gradient(circle at 80% 30%, rgba(2, 132, 199, 0.55), transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.4), transparent 50%),
              linear-gradient(135deg, #082f49 0%, #0f172a 55%, #020617 100%) !important;
}

.slide-scene-store, .slide-scene-excel {
  background: radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.55), transparent 60%),
              linear-gradient(135deg, #064e3b 0%, #0f172a 60%, #020617 100%) !important;
}

.slide-scene-docx, .slide-scene-office {
  background: radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.55), transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.4), transparent 50%),
              linear-gradient(135deg, #0b1f48 0%, #0f172a 55%, #020617 100%) !important;
}

.hero-slide-full-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

@media (max-width: 860px) {
  .hero-slide-full-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.slide-full-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  width: fit-content;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(8px);
}

.slide-full-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
  margin-bottom: 0.6rem;
}
.slide-full-title,
[data-theme="light"] .slide-full-title,
.hero-slideshow-wrap .slide-full-title,
[data-theme="light"] .hero-slideshow-wrap .slide-full-title {
  color: #ffffff !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.75) !important;
}

.slide-full-desc,
[data-theme="light"] .slide-full-desc,
.hero-slideshow-wrap .slide-full-desc,
[data-theme="light"] .hero-slideshow-wrap .slide-full-desc {
  font-size: 1rem;
  color: #e2e8f0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75) !important;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 540px;
}

.hero-slideshow-wrap,
[data-theme="light"] .hero-slideshow-wrap,
.theme-light .hero-slideshow-wrap,
body.theme-light .hero-slideshow-wrap {
  background: #020617 !important;
  color: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.25) !important;
}

.hero-slide-full,
[data-theme="light"] .hero-slide-full,
.theme-light .hero-slide-full {
  background-color: #020617 !important;
  color: #ffffff !important;
}

.slide-pedestal-title,
.slide-3d-pedestal strong,
[data-theme="light"] .slide-pedestal-title,
[data-theme="light"] .slide-3d-pedestal strong,
.theme-light .slide-pedestal-title,
.theme-light .slide-3d-pedestal strong {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}

.slide-pedestal-chip,
[data-theme="light"] .slide-pedestal-chip,
.theme-light .slide-pedestal-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.42rem 1.05rem !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.38) !important;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35), inset 0 1px 0 #ffffff !important;
  text-shadow: none !important;
}

.slide-pedestal-chip-text,
[data-theme="light"] .slide-pedestal-chip-text,
.theme-light .slide-pedestal-chip-text {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 38%, #4f46e5 72%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #1e3a8a !important;
  font-style: normal !important;
  font-weight: 900 !important;
  font-size: 0.85rem !important;
  text-shadow: none !important;
  letter-spacing: 0.01em;
}

.mobile-short-text {
  display: none;
}

.slide-full-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide-3d-pedestal,
[data-theme="light"] .slide-3d-pedestal,
.theme-light .slide-3d-pedestal {
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.25) !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.hero-slide-full:hover .slide-3d-pedestal {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* Slideshow Controls */
.slideshow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
  transition: all var(--duration-fast) ease;
}

.slideshow-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary-glow);
  transform: translateY(-50%) scale(1.12);
}

.slideshow-prev { inset-inline-start: 1rem; }
.slideshow-next { inset-inline-end: 1rem; }

.slideshow-dots {
  position: absolute;
  bottom: 1.2rem;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  z-index: 10;
}

.slideshow-dot {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}

.slideshow-dot.active {
  width: 32px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ==========================================================================
   Fresh, Asymmetric 3D Bento Card Layout
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

@media (min-width: 1200px) {
  .bento-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento-grid-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.9rem;
  }
}

/* The Redesigned 3D Bento Card */
.bento-3d-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.2rem;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-spring),
              border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              background var(--duration-normal) ease;
  min-height: 155px;
}

/* 3D Pedestal Lighting */
.bento-3d-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 60%;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.25), transparent 70%);
  opacity: 0.5;
  transition: opacity var(--duration-normal) ease;
  pointer-events: none;
}

.bento-3d-card:hover::before {
  opacity: 1;
}

.bento-3d-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.35);
  background: rgba(22, 22, 38, 0.92);
}

[data-theme="light"] .bento-3d-card:hover {
  background: rgba(255, 255, 255, 0.98);
}

.bento-3d-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  transition: transform var(--duration-normal) var(--ease-spring);
  filter: none !important;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.bento-3d-card:hover .bento-3d-icon-wrap {
  transform: scale(1.18) rotate(6deg) translateY(-2px);
}

.bento-3d-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .bento-3d-card {
    padding: 1.15rem 0.85rem;
    min-height: 135px;
    gap: 0.75rem;
  }
  .bento-3d-icon-wrap {
    width: 48px;
    height: 48px;
  }
  .bento-3d-title {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Master Section Headers
   ========================================================================== */

.master-section {
  padding: 3.5rem 0;
  position: relative;
}

.master-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.85rem;
}

.master-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.master-section-title {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.master-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-soft);
}

.master-section-sub {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 520px;
}

/* ==========================================================================
   Pricing Section (Monthly / Annual Toggle + 15k, 100k, 5k, 45k IQD)
   ========================================================================== */

.pricing-section {
  padding: 4rem 0;
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2.5rem;
}

.pricing-toggle-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.pricing-toggle-btn.active {
  background: var(--primary);
  border-color: var(--primary-glow);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

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

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.4rem;
  backdrop-filter: var(--backdrop-blur);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: visible !important;
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) ease;
}

.pricing-card.featured,
.pricing-card[data-plan-card="mrtech_suite"] {
  overflow: visible !important;
}

.pricing-card.featured::before,
.pricing-card[data-plan-card="mrtech_suite"]::before {
  content: none !important;
  display: none !important;
}

.pricing-card.popular {
  border-color: var(--border-glow);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.25);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-badge {
  position: absolute;
  top: 1.35rem;
  inset-inline-end: 1.35rem;
  padding: 0.35rem 0.9rem;
  background: var(--grad-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.pricing-head {
  text-align: center !important;
}

.pricing-head h3 {
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 0.45rem;
  text-align: center !important;
}

.pricing-head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  text-align: center !important;
}

.pricing-price {
  font-size: 2.7rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.pricing-price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pricing-features li svg {
  color: var(--ok);
  flex-shrink: 0;
}

/* ==========================================================================
   In-Platform Subscription Modal
   ========================================================================== */

.sub-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 1.25rem;
}

.sub-modal-backdrop.open {
  display: grid;
}

.sub-modal {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.3);
  overflow: hidden;
  animation: modalPop 0.3s var(--ease-spring) forwards;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.sub-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.sub-modal-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sub-coupon-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* ==========================================================================
   ChatGPT-Style AI Assistant Modal (Text + Pollinations Image Generator)
   ========================================================================== */

.ai-chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 1rem;
}

.ai-chat-backdrop.open {
  display: grid;
}

.ai-chat-window {
  width: 100%;
  max-width: 680px;
  height: 82vh;
  max-height: 720px;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.ai-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ai-msg {
  display: flex;
  gap: 0.85rem;
  max-width: 85%;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg.bot {
  align-self: flex-start;
}

.ai-msg-bubble {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-lg);
}

.ai-msg.user .ai-msg-bubble {
  background: var(--primary);
  color: #ffffff;
  border-bottom-left-radius: var(--radius-xs);
}

.ai-msg.bot .ai-msg-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-right-radius: var(--radius-xs);
}

/* Generated Image Card inside Chat */
.ai-generated-image-card {
  margin-top: 0.85rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg);
}

.ai-generated-image-card img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.ai-image-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--surface-2);
  font-size: 0.8rem;
}

.ai-chat-dock {
  padding: 1rem 1.4rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-chat-input-row {
  display: flex;
  gap: 0.6rem;
}

.ai-chat-input {
  flex: 1;
  background: var(--surface) !important;
}

/* Quick Prompt Pills */
.ai-quick-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.ai-quick-pill {
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}

.ai-quick-pill:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--surface-elevated);
}

/* ==========================================================================
   Buttons & General Components
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-spring);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.6);
}

.btn-soft {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-soft:hover {
  background: var(--surface-elevated);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
}

.btn-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.35rem;
  margin: 2rem 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--backdrop-blur);
}

.stat .ico {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stat .v {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}

.stat .l {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

/* Footer & Telemetry */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
}

.footer-matrix {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-matrix {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-matrix {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--muted);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-link:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  margin-inline-end: 0.4rem;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  animation: liveDotPulse 1.8s infinite;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   Master Liquid Glassy & Mobile Responsiveness Upgrades
   ========================================================================== */

/* Liquid Glassy Dark Cards */
.glass-card {
  background: linear-gradient(135deg, rgba(22, 22, 38, 0.88) 0%, rgba(10, 10, 20, 0.95) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
}

/* Section Glowing Divider */
.section-glowing-divider {
  border: none;
  height: 3px !important;
  margin: 1.8rem auto !important;
  width: 92% !important;
  max-width: 950px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.9) 20%, rgba(236, 72, 153, 0.9) 50%, rgba(6, 182, 212, 0.9) 80%, transparent 100%) !important;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.6) !important;
}

/* Mobile Drawer & Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10008;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 320px;
  max-width: 88vw;
  height: 100% !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%) !important;
  color: #ffffff !important;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12) !important;
  z-index: 10009;
  padding: 1.4rem 1.2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-sizing: border-box !important;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 0 28px 28px 0 !important;
}

/* 3-Column Quick Tool Tiles in Drawer */
.drawer-tools-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.45rem !important;
}

.drawer-tool-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  padding: 0.75rem 0.35rem !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text, #ffffff) !important;
  text-decoration: none !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
}

.drawer-tool-tile:hover,
.drawer-tool-tile:active {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
  color: var(--primary-glow, #a5b4fc) !important;
  transform: translateY(-2px) !important;
}

.drawer-tool-icon {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  color: var(--primary, #6366f1) !important;
}

[data-theme="light"] .drawer-tool-tile {
  background: rgba(241, 245, 249, 0.8) !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

/* Drawer Categories & Horizontal Scroll Sub-Tools */
.drawer-cat-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
}

.drawer-cat-title-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.35rem 0.5rem !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  color: var(--text, #ffffff) !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.drawer-cat-title-link:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--primary, #6366f1) !important;
}

[data-theme="light"] .drawer-cat-title-link {
  color: #0f172a !important;
}

.drawer-subtools-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  gap: 0.45rem !important;
  padding: 0.2rem 0.2rem 0.45rem !important;
  scrollbar-width: none !important;
}

.drawer-subtools-scroll::-webkit-scrollbar {
  display: none !important;
}

.drawer-subtool-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.45rem 0.75rem !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text, #ffffff) !important;
  text-decoration: none !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.drawer-subtool-chip:hover,
.drawer-subtool-chip:active {
  background: rgba(99, 102, 241, 0.25) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  color: var(--primary-glow, #a5b4fc) !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .drawer-subtool-chip {
  background: rgba(241, 245, 249, 0.9) !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[dir="rtl"] .nav-drawer {
  transform: translateX(100%);
  border-radius: 0 28px 28px 0 !important;
}

[dir="ltr"] .nav-drawer {
  transform: translateX(-100%);
  border-radius: 28px 0 0 28px !important;
}

.nav-drawer.open {
  transform: translateX(0) !important;
}

[data-theme="light"] .nav-drawer {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #0f172a !important;
  border-inline-start: 1px solid #cbd5e1 !important;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .nav-drawer .drawer-header strong,
[data-theme="light"] .nav-drawer .site-nav-link {
  color: #0f172a !important;
}

[data-theme="light"] .nav-drawer .site-nav-link {
  background: rgba(241, 245, 249, 0.9) !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .nav-drawer .site-nav-link:hover {
  background: #ffffff !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* 100% Identical Styling for Drawer Theme and Language Toggle Buttons */
.drawer-toggle-btn,
.drawer-theme-toggle,
.drawer-lang-toggle {
  flex: 1 !important;
  width: auto !important;
  height: 42px !important;
  border-radius: 14px !important;
  padding: 0 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  font-weight: 800 !important;
  font-size: 0.86rem !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

[data-theme="light"] .drawer-toggle-btn,
[data-theme="light"] .drawer-theme-toggle,
[data-theme="light"] .drawer-lang-toggle {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.drawer-toggle-btn:hover,
.drawer-theme-toggle:hover,
.drawer-lang-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary) !important;
}

/* Compact Modern Glass 3-Lines Nav Burger Button */
.nav-burger {
  display: none;
}

/* Remove Mobile Sub Title Globally */
.mobile-sub-title,
.site-brand-title .mobile-sub-title {
  display: none !important;
}

/* Mobile Glowing Divider & Office Docs Section Padding */
@media (max-width: 768px) {
  .section-glowing-divider {
    height: 2px !important;
    margin: 1.2rem 0 !important;
    opacity: 0.7 !important;
  }

  .master-section#office-docs {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  #docxMenuModeText {
    display: none !important;
  }
}

/* Footer Brand Text & Telemetry Badge */
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
  margin-top: 0.75rem;
  text-align: justify !important;
  text-align-last: start !important;
}

@media (max-width: 768px) {
  .footer-brand p {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (min-width: 769px) {
  .footer-brand p {
    max-width: 360px;
  }
}

.footer-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
  color: var(--ok);
  font-weight: 700;
  font-size: 0.84rem;
  backdrop-filter: blur(10px);
}

.footer-telemetry .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Support CTA Desktop 1-Row (3 buttons side-by-side) & Mobile Layout */
@media (min-width: 769px) {
  .bottom-support-cta-wrap {
    display: flex !important;
    flex-direction: row !important;
    max-width: 100% !important;
    width: auto !important;
    gap: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .bottom-support-cta-wrap .btn-wa {
    width: auto !important;
    flex: initial !important;
    padding: .85rem 1.6rem !important;
  }
  .bottom-support-sub-row {
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    flex: initial !important;
    gap: 1rem !important;
  }
  .bottom-support-sub-row .btn {
    flex: initial !important;
    width: auto !important;
    padding: .85rem 1.4rem !important;
  }
}

@media (max-width: 768px) {
  .bottom-support-cta-wrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .bottom-support-cta-wrap > .btn {
    width: 100% !important;
    min-width: 0;
    min-height: 46px;
    height: 100%;
    padding: .65rem .4rem !important;
    gap: .35rem;
    font-size: clamp(.72rem, 3.1vw, .92rem) !important;
    white-space: normal !important;
    line-height: 1.45;
    border-radius: 14px;
    box-sizing: border-box !important;
  }
  .bottom-support-cta-wrap > .btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
  .bottom-support-cta-wrap .support-font-en { display: none; }
  .bottom-support-sub-row {
    width: 100% !important;
    display: flex !important;
    gap: 0.6rem !important;
    box-sizing: border-box !important;
  }
  .bottom-support-sub-row .btn {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: .75rem .5rem !important;
    font-size: .84rem !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Footer Bottom Section & Attached Back-to-Top Button */
.footer-bottom {
  padding: 1.2rem 0 0 !important;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.footer-copy {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: start !important;
}

/* Back to Top Button Base Styling */
.footer-back-to-top,
.bottom-attached-backtop {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--text);
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .footer-back-to-top,
[data-theme="light"] .bottom-attached-backtop {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.footer-back-to-top:hover,
.bottom-attached-backtop:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.35) 100%);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.footer-back-to-top svg,
.bottom-attached-backtop svg {
  transition: transform 0.25s ease;
}

.footer-back-to-top:hover svg,
.bottom-attached-backtop:hover svg {
  transform: translateY(-2px);
}

/* Desktop Only (Scroll Visibility & Right Placement in RTL) */
@media (min-width: 769px) {
  .footer-bottom-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .footer-copy {
    text-align: start !important;
  }
  .footer-back-to-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
    margin-inline-start: auto !important;
  }
  .footer-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Mobile Only (Fixed Sticky Floating Dock at Bottom Center of Screen) */
@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: 0.5rem !important;
  }
  .footer-back-to-top,
  .bottom-attached-backtop {
    position: fixed !important;
    bottom: 1.25rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 99999 !important;
    margin-top: 0 !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    border: 1.5px solid rgba(99, 102, 241, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.3) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
  }

  .footer-back-to-top.visible,
  .bottom-attached-backtop.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
  }

  [data-theme="light"] .footer-back-to-top,
  [data-theme="light"] .bottom-attached-backtop {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15), 0 0 15px rgba(99, 102, 241, 0.15) !important;
  }
}

.floating-back-card {
  display: none !important;
}

/* Left Liquid Glass Floating Slideshow Controls */
.slideshow-nav-btn.liquid-glass-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 8px 22px rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  transition: all var(--duration-fast) ease !important;
}

.slideshow-nav-btn.liquid-glass-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.7) 0%, rgba(139, 92, 246, 0.9) 100%) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  transform: scale(1.12) !important;
}

/* Support Section Footer Spacing */
.support-cta {
  margin-bottom: 3.5rem !important;
}

/* ==========================================================================
   Popular Pricing Card: Seamlessly Docked Top Ribbon Badge + Magical Mouse Spotlight
   ========================================================================== */
.pricing-card.popular {
  border: 2px solid var(--primary) !important;
  position: relative !important;
  padding-top: 3.4rem !important;
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
  overflow: visible !important;
  --mouse-x: 50%;
  --mouse-y: 50%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

/* Magical Interactive Mouse Spotlight on Hover */
.pricing-card.popular::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mouse-x) var(--mouse-y), rgba(99, 102, 241, 0.32) 0%, rgba(6, 182, 212, 0.18) 40%, transparent 75%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.pricing-card.popular:hover::before {
  opacity: 1;
}

.pricing-card.popular::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.7) 0%, rgba(99, 102, 241, 0.4) 50%, transparent 75%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 2px;
}

.pricing-card.popular:hover::after {
  opacity: 1;
}

.pricing-card.popular:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4), 0 0 40px rgba(6, 182, 212, 0.25) !important;
}

[data-theme="light"] .pricing-card.popular {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.96) 0%, rgba(224, 231, 255, 0.98) 100%) !important;
  border: 2px solid #6366f1 !important;
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.15) !important;
}

.pricing-card.popular .pricing-badge,
.pricing-card.popular .pricing-popular-tag {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35) !important;
  z-index: 10 !important;
  letter-spacing: -0.01em;
}

[data-theme="light"] .pricing-card.popular .pricing-badge,
[data-theme="light"] .pricing-card.popular .pricing-popular-tag {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
}

/* Pricing Section Spacing */
.pricing-section {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.pricing-section + .section-glowing-divider,
.section-glowing-divider.pricing-divider {
  margin-top: 4.5rem !important;
  margin-bottom: 2.2rem !important;
}

/* ==========================================================================
   Profile Edit Modal: Redesigned Liquid Glassmorphism
   ========================================================================== */
.profile-edit-modal {
  max-width: 490px !important;
  border-radius: 26px !important;
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 45px rgba(99, 102, 241, 0.25) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.profile-edit-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1.25rem 1.6rem !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.profile-edit-title {
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.profile-edit-close-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
}

.profile-edit-close-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #f87171 !important;
  transform: scale(1.08) !important;
}

.profile-edit-body {
  padding: 1.6rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.15rem !important;
}

.profile-edit-user-summary {
  display: flex !important;
  align-items: center !important;
  gap: 1.1rem !important;
  padding: 1rem 1.2rem !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  margin-bottom: 0.35rem !important;
}

/* User avatar box: Rounded square corner (NOT circular) with photo preview & upload trigger */
.profile-edit-avatar-box {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  min-height: 68px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%) !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  flex-shrink: 0 !important;
}

.profile-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.profile-avatar-upload-trigger {
  position: absolute !important;
  bottom: 3px !important;
  inset-inline-end: 3px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  opacity: 1 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
  z-index: 5 !important;
}

.profile-avatar-upload-trigger:hover {
  transform: scale(1.15) !important;
  background: #6366f1 !important;
}

.profile-edit-user-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
}

.profile-edit-user-name {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  display: block !important;
}

.profile-edit-user-status {
  font-size: 0.8rem !important;
  color: var(--ok) !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.profile-edit-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.profile-edit-label {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #e2e8f0 !important;
  letter-spacing: -0.01em !important;
}

.profile-edit-input {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease !important;
}

.profile-edit-input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

.profile-edit-input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.profile-edit-save-btn {
  margin-top: 0.45rem !important;
  padding: 0.85rem !important;
  font-size: 0.98rem !important;
  font-weight: 900 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45) !important;
  border: none !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.profile-edit-save-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6) !important;
}

/* Light mode overrides for profile edit modal */
[data-theme="light"] .profile-edit-modal {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.2) !important;
}

[data-theme="light"] .profile-edit-head {
  background: rgba(241, 245, 249, 0.8) !important;
  border-bottom-color: rgba(203, 213, 225, 0.8) !important;
}

[data-theme="light"] .profile-edit-close-btn {
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

[data-theme="light"] .profile-edit-user-summary {
  background: rgba(241, 245, 249, 0.7) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
}

[data-theme="light"] .profile-edit-user-name {
  color: #0f172a !important;
}

[data-theme="light"] .profile-edit-label {
  color: #1e293b !important;
}

[data-theme="light"] .profile-edit-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .profile-edit-input::placeholder {
  color: #94a3b8 !important;
}

/* Footer Defaults (Desktop) */
.site-footer {
  position: relative;
  z-index: 10;
  background: #0b0f19;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .site-footer {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-top: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .site-footer .footer-brand p,
[data-theme="light"] .site-footer .footer-link {
  color: #475569 !important;
}

[data-theme="light"] .site-footer .footer-col h4,
[data-theme="light"] .site-footer .footer-brand strong {
  color: #0f172a !important;
}

/* Footer Brand Desktop Justify (Not Centered) */
.footer-brand {
  text-align: start;
}

.footer-brand p {
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: start !important;
  line-height: 1.85 !important;
}

.mobile-inline-backtop {
  display: none;
}

.footer-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Comprehensive Mobile Optimization (@media max-width 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Header in Mobile: Show ONLY Logo + Title + 3-Lines Burger Button */
  .site-header .site-nav,
  .site-header .header-actions > *:not(.nav-burger) {
    display: none !important;
  }

  .site-header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .site-header .header-actions {
    display: flex !important;
    align-items: center !important;
  }

  /* 2. Circle 3-Lines Nav Burger in Mobile Header matching index.html */
  .nav-burger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--surface, rgba(15, 23, 42, 0.6)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.15)) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10005 !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
  }

  .nav-burger:hover,
  .nav-burger:active {
    transform: scale(1.05) !important;
    background: var(--surface-2, rgba(30, 41, 59, 0.8)) !important;
    border-color: var(--primary, #6366f1) !important;
  }

  [data-theme="light"] .nav-burger {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
  }

  .nav-burger span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    background-color: var(--text, #ffffff) !important;
    border-radius: 9999px !important;
    margin: 0 auto !important;
    transition: all 0.2s ease !important;
  }

  .nav-burger span:nth-child(2) {
    width: 18px !important;
    align-self: center !important;
    margin: 0 auto !important;
  }

  .nav-burger span:nth-child(3) {
    width: 18px !important;
    margin: 0 auto !important;
  }

  [data-theme="light"] .nav-burger span {
    background-color: #0f172a !important;
  }

  [data-theme="light"] .nav-burger span:nth-child(2) {
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%) !important;
  }

  /* 3. Hero CTA: 3 buttons in first row, 2 buttons in second row on Mobile */
  .desktop-full-text {
    display: none !important;
  }

  .mobile-short-text {
    display: inline !important;
  }

  .hero-cta {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .hero-cta .btn {
    grid-column: span 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0.65rem 0.35rem !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    justify-content: center !important;
  }

  .hero-cta .btn:nth-child(4),
  .hero-cta .btn:nth-child(5) {
    grid-column: span 3 !important;
  }

  .hero-cta .btn span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 4. Reduced Glowing Divider Margins on Mobile */
  .section-glowing-divider {
    margin: 1.1rem auto !important;
  }

  /* 5. Master Section Headers on Mobile: Hide master-section-badge */
  .master-section-title-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }

  .master-section-title {
    width: 100% !important;
    font-size: 1.45rem !important;
  }

  .master-section-badge {
    display: none !important;
  }

  /* 6. Bento 3D Cards & Tool Pop Trigger Icon Presentation on Mobile */
  .bento-3d-card,
  .bento-3d-card.tool-pop-trigger {
    padding: 1.4rem 1.1rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.85rem !important;
    min-height: 200px !important;
    text-align: center !important;
  }

  .bento-3d-icon-wrap {
    width: 74px !important;
    height: 74px !important;
    min-width: 74px !important;
    min-height: 74px !important;
    border-radius: 22px !important;
    margin-bottom: 0.45rem !important;
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
  }

  .bento-3d-icon-wrap svg {
    width: 44px !important;
    height: 44px !important;
  }

  .bento-3d-title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.3rem !important;
    display: block !important;
  }

  /* Bento EN Badge: No ellipses (...), single line on mobile */
  .bento-en-badge {
    font-size: 0.65rem !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    letter-spacing: -0.01em !important;
  }

  /* Action Modal Cards 1 Column per row on Mobile */
  .tool-action-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* 7. Smaller Text in Pricing Toggle on Mobile Only */
  .pricing-toggle-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    margin-bottom: 1.8rem !important;
    position: relative !important;
    z-index: 5 !important;
    gap: 0.4rem !important;
    padding-bottom: 0.3rem !important;
  }

  .pricing-toggle-wrap::-webkit-scrollbar {
    display: none !important;
  }

  .pricing-toggle-btn {
    font-size: 0.76rem !important;
    padding: 0.42rem 0.8rem !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
  }

  .pricing-toggle-btn span {
    font-size: 0.65rem !important;
    padding: 0.1rem 0.35rem !important;
    border-radius: 8px !important;
  }

  /* 8. Stats Grid: Exactly 2 per row on Mobile */
  .stats,
  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    margin: 1.5rem 0 !important;
  }

  .stat {
    padding: 1rem 0.65rem !important;
    gap: 0.55rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    border-radius: var(--radius-lg) !important;
  }

  .stat .ico {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 auto !important;
  }

  .stat .v {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
  }

  .stat .l {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
  }

  /* 9. Glass Cards & Support CTA Heading on Mobile */
  .glass-card {
    padding: 1.4rem 1.15rem !important;
    border-radius: 20px !important;
    gap: 1rem !important;
  }

  .support-cta-title {
    font-size: clamp(1.22rem, 4.8vw, 1.7rem) !important;
    line-height: 1.4 !important;
  }

  .coupon-code-ticket {
    font-size: 1.15rem !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 12px !important;
  }

  /* 10. Chic Centered Footer Brand on Mobile */
  .footer-brand {
    grid-column: span 2 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.25rem auto !important;
    padding: 1.25rem 1.1rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-xl) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  [data-theme="light"] .footer-brand {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(203, 213, 225, 0.8) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
  }

  .footer-brand > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.35rem !important;
  }

  .footer-brand p {
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: center !important;
    line-height: 1.85 !important;
    font-size: 0.88rem !important;
    color: var(--muted) !important;
    padding: 0 0.35rem !important;
    margin: 0.5rem 0 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* 11. Footer Matrix on Mobile: Direct Portals Opposite Master Sections */
  .footer-matrix {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem 1.25rem !important;
    text-align: start !important;
  }

  .footer-matrix .footer-col:nth-child(2) {
    grid-column: 1 / 2 !important;
  }

  .footer-matrix .footer-col:nth-child(3) {
    grid-column: 2 / 3 !important;
  }

  /* Support column on Mobile with inline Back to Top */
  .footer-matrix .footer-col-support {
    grid-column: span 2 !important;
    padding-top: 1.1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .footer-matrix .footer-col-support {
    border-top-color: rgba(203, 213, 225, 0.8) !important;
  }

  .footer-support-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.6rem !important;
  }

  .mobile-inline-backtop {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.35rem 0.75rem !important;
    background: rgba(99, 102, 241, 0.18) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    color: #a5b4fc !important;
    border-radius: 9999px !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  .mobile-inline-backtop:hover {
    background: rgba(99, 102, 241, 0.35) !important;
    color: #ffffff !important;
  }

  /* Centered Copyright on Mobile */
  .footer-bottom-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-copy {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    font-size: 0.78rem !important;
  }

  .footer-back-to-top {
    display: none !important;
  }

  /* 12. Single-line Support CTA Buttons on Mobile */
  .bottom-support-cta-row {
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .bottom-support-cta-row .btn {
    padding: 0.7rem 1rem !important;
    font-size: 0.82rem !important;
    flex: 1 !important;
    justify-content: center !important;
  }

  /* 13. Mobile Hides */
  .footer-telemetry,
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* ==========================================================================
   Global Button Styling: Print (Green) & Export (Dark Blue)
   ========================================================================== */

/* ALL Print Buttons across BuildYourBusiness: Green (#16a34a) */
button[id*="Print"],
button[id*="print"],
a[id*="Print"],
a[id*="print"],
.btn-print,
.cre-act-print,
.docx-bar-print,
#pptxPrint,
#docxPrint,
#mskPrint,
#excelPrint,
#pdfPrint,
#cvPrint,
#cvPrintBtn,
button[title*="طباعة"],
button[title*="Print"] {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #15803d !important;
}

button[id*="Print"]:hover,
button[id*="print"]:hover,
a[id*="Print"]:hover,
a[id*="print"]:hover,
.btn-print:hover,
.cre-act-print:hover,
.docx-bar-print:hover,
#pptxPrint:hover,
#docxPrint:hover,
#mskPrint:hover,
#excelPrint:hover,
#pdfPrint:hover,
#cvPrint:hover,
#cvPrintBtn:hover,
button[title*="طباعة"]:hover,
button[title*="Print"]:hover {
  background: #15803d !important;
  color: #ffffff !important;
  border-color: #166534 !important;
}

button[id*="Print"] svg,
button[id*="print"] svg,
a[id*="Print"] svg,
a[id*="print"] svg,
.btn-print svg,
.cre-act-print svg,
.docx-bar-print svg,
#pptxPrint svg,
#docxPrint svg,
#mskPrint svg,
#excelPrint svg,
#pdfPrint svg,
#cvPrint svg,
#cvPrintBtn svg,
button[title*="طباعة"] svg,
button[title*="Print"] svg {
  stroke: #ffffff !important;
  fill: none !important;
}

/* ALL Export Buttons across BuildYourBusiness: Dark Blue (#1e3a8a) */
button[id*="Export"],
button[id*="export"],
a[id*="Export"],
a[id*="export"],
.btn-export,
.cre-act-export > button,
.cre-act-export .cre-flyout-toggle,
.docx-bar-export,
#pptxExportToggle,
#docxExportToggle,
#excelExportToggle,
#pdfExportToggle,
#cvExportToggle,
button[title*="تصدير"],
button[title*="Export"] {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-color: #1e40af !important;
}

button[id*="Export"]:hover,
button[id*="export"]:hover,
a[id*="Export"]:hover,
a[id*="export"]:hover,
.btn-export:hover,
.cre-act-export > button:hover,
.cre-act-export .cre-flyout-toggle:hover,
.docx-bar-export:hover,
#pptxExportToggle:hover,
#docxExportToggle:hover,
#excelExportToggle:hover,
#pdfExportToggle:hover,
#cvExportToggle:hover,
button[title*="تصدير"]:hover,
button[title*="Export"]:hover {
  background: #1e40af !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

button[id*="Export"] svg,
button[id*="export"] svg,
a[id*="Export"] svg,
a[id*="export"] svg,
.btn-export svg,
.cre-act-export > button svg,
.cre-act-export .cre-flyout-toggle svg,
.docx-bar-export svg,
#pptxExportToggle svg,
#docxExportToggle svg,
#excelExportToggle svg,
#pdfExportToggle svg,
#cvExportToggle svg,
button[title*="تصدير"] svg,
button[title*="Export"] svg {
  stroke: #ffffff !important;
}


/* Tenant mobile navigation uses the same mobile-drawer handler as the platform. */
@media(max-width:1400px){
 .tenant-app .app-topbar--redesigned{inset-inline:.5rem;width:calc(100% - 1rem)!important;max-width:calc(100% - 1rem)!important;gap:.4rem;padding:0 .55rem!important;}
 .tenant-app .app-topbar-start{display:none;}
 .tenant-app .app-topbar-center{min-width:0;flex:0 1 auto;}
 .tenant-app .app-topbar-end{min-width:0;gap:.35rem;flex:0 0 auto;}
 .tenant-app .app-topbar-end > :not(.lang-toggle-btn):not(.byb-theme-select):not(.app-nav-burger){display:none!important;}
 .tenant-app .app-topbar .app-nav-burger{display:inline-flex!important;flex-shrink:0;width:40px;height:44px;}
 .tenant-app .app-topbar .lang-toggle-btn{flex-shrink:0;min-width:32px;}
 .tenant-app .app-topbar .byb-theme-select{min-height:40px;max-width:95px!important;}
 .tenant-app .app-topbar-drawer{display:flex!important;position:fixed;top:0;inset-inline-end:0;width:280px;max-width:85vw;background:var(--surface);border-inline-start:1px solid var(--border);flex-direction:column;align-items:stretch;padding:1.5rem 1.25rem;gap:1.25rem;box-shadow:var(--shadow-lg);transform:translateX(100%);transition:transform .3s ease;visibility:hidden;overflow-y:auto;overscroll-behavior:contain;height:100dvh;padding-bottom:5rem;z-index:10010;}
 [dir="rtl"] .tenant-app .app-topbar-drawer{transform:translateX(-100%);}
 .tenant-app .app-topbar-drawer.open{visibility:visible;transform:translateX(0);}
 .tenant-app .app-topbar-drawer-nav,.tenant-app .app-drawer-actions{display:flex!important;flex-direction:column;gap:.65rem;min-width:0;}
 .tenant-app .app-topbar-drawer-nav .btn{justify-content:flex-start;white-space:normal;min-height:44px;}
 .tenant-app .app-topbar-drawer .nav-close{display:inline-flex!important;min-height:40px;min-width:40px;}
}
@media(max-width:420px){.tenant-app .app-topbar-logo-text{display:none;}.tenant-app .app-topbar-brand-solo{padding:.4rem;}.tenant-app .app-topbar-logo-img{width:26px;height:26px;}}

/* Compact circular controls remain inside each banner, beside its badge. */
.hero-slideshow-wrap .slideshow-floating-controls{position:absolute;top:3rem;inset-inline-start:auto;inset-inline-end:3rem;display:flex;align-items:center;padding:0;background:transparent;gap:6px;min-height:32px;border:0}
.hero-slideshow-wrap .slideshow-nav-btn{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;box-shadow:0 2px 8px #0003,inset 0 1px 1px #fff3!important;border-radius:50%!important;background:#ffffff12!important}
.hero-slideshow-wrap .slideshow-nav-btn svg{width:16px;height:16px}
.hero-slideshow-wrap .slide-full-badge{height:32px;max-width:calc(100% - 80px);padding-block:0;white-space:nowrap}
.hero-slideshow-wrap .slide-full-badge span{overflow:hidden;text-overflow:ellipsis}
.hero-slideshow-wrap .slideshow-nav-btn:hover{transform:none!important;background:#ffffff18!important}
.hero-slideshow-wrap .slideshow-nav-btn:focus-visible{outline:2px solid #81b4ff!important;outline-offset:2px}

/* Preserve the original slide; only the inner pedestal receives a translucent tint. */
.hero-slideshow-wrap .slide-3d-pedestal{background:linear-gradient(145deg,rgba(43,78,154,.62),rgba(14,28,66,.64))!important;border:1px solid rgba(180,206,255,.3)!important;backdrop-filter:blur(16px)}
.hero-slideshow-wrap .slide-scene-mustamsak .slide-3d-pedestal{background:linear-gradient(145deg,rgba(13,119,107,.62),rgba(8,49,54,.64))!important;border-color:rgba(140,241,214,.3)!important}
.hero-slideshow-wrap :is(.slide-scene-creative,.slide-scene-pptx) .slide-3d-pedestal{background:linear-gradient(145deg,rgba(163,77,52,.62),rgba(63,25,60,.64))!important;border-color:rgba(255,193,145,.3)!important}
.hero-slideshow-wrap :is(.slide-scene-engineering,.slide-scene-ai,.slide-scene-cad) .slide-3d-pedestal{background:linear-gradient(145deg,rgba(20,115,145,.62),rgba(55,31,99,.64))!important;border-color:rgba(144,221,255,.3)!important}
.native-products .native-product-copy>p:not(.native-platform-statement):not(.native-product-note){text-align:justify;text-align-last:start;hyphens:auto}
.cmd-palette-backdrop[aria-hidden=true]{display:none!important}
.cmd-palette-backdrop{position:fixed;inset:0;z-index:11000;background:#101b35a3;backdrop-filter:blur(7px);padding:18px}
.cmd-palette-backdrop.open{display:flex;align-items:flex-start;justify-content:center;padding-top:min(16vh,130px)}
.cmd-palette-modal{width:min(620px,100%);max-height:76dvh;display:flex;flex-direction:column;min-width:0;background:var(--surface,#fff);color:var(--text);border:1px solid var(--border-glow);border-radius:17px;box-shadow:0 24px 80px #0611244d;overflow:hidden}
.cmd-search-box{display:flex;align-items:center;gap:10px;padding:15px;border-bottom:1px solid var(--border)}
.cmd-search-box>svg{flex:none;width:20px;height:20px;color:var(--text-soft)}
.cmd-search-input{width:100%;min-width:0;border:0;outline:none;background:transparent;color:var(--text);font:inherit;font-size:16px}
.cmd-search-box .chip{cursor:pointer;font:inherit;font-size:11px;padding:5px 8px;color:var(--text-soft)}
.cmd-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 15px;border-top:1px solid var(--border);color:var(--text-soft);font-size:10px}
.cmd-results{overflow:auto;min-height:80px;overscroll-behavior:contain;padding:7px}
.portal-search-result{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:3px 0;border-radius:10px;color:var(--text);text-decoration:none;border:1px solid transparent;min-height:60px}
.portal-search-result:is(:hover,:focus-visible,.is-current){background:var(--surface-hover,#64748b12);border-color:var(--border-glow,#7395ce40);outline:none}
.portal-search-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:8px;background:var(--surface)}
.portal-search-icon :is(svg,img){width:30px;height:30px;object-fit:contain}
.portal-search-result>span:last-child{display:grid;gap:3px;min-width:0}
.portal-search-result strong{font-size:14px;line-height:1.5}.portal-search-result small{font-size:11px;color:var(--text-soft);line-height:1.5}.portal-search-empty{padding:25px;text-align:center;color:var(--text-soft);font-size:14px}
@media(max-width:1000px){.site-header .header-actions>.cmd-trigger-btn{display:inline-flex!important;width:34px;height:34px;justify-content:center;padding:0;flex:none}.site-header .cmd-trigger-btn>span{display:none!important}}
@media(max-width:768px){.bento-3d-card .bento-3d-icon-wrap{width:80px!important;height:80px!important;min-width:80px!important}.bento-3d-card .bento-3d-icon-wrap>svg,.bento-3d-card .bento-3d-icon-wrap>img{width:70px!important;height:70px!important}}
@media(max-width:768px){.hero-slide-full{padding:1.4rem 1.25rem 2rem}.hero-slideshow-wrap .slideshow-floating-controls{top:1.4rem;inset-inline-end:1.25rem}.slide-full-badge{font-size:.74rem;padding-inline:.65rem}.slide-full-badge svg{flex:none}}

/* White bottom banner with six recognizable, accessible icon actions. */
.stitch-mobile-bottom-bar{height:calc(56px + env(safe-area-inset-bottom,0px));padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px));gap:4px;background:#fff;border:1px solid #e3e8f1;border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -5px 22px #142b4817;backdrop-filter:none}
.stitch-mobile-bottom-bar .mobile-dock-item{height:44px;max-width:72px;padding:0;border:1px solid transparent;border-radius:15px;background:#fff;color:#49627c;transition:background .15s,color .15s}
.stitch-mobile-bottom-bar .mobile-dock-item .byb-icon{width:22px;height:22px}
.stitch-mobile-bottom-bar .mobile-dock-item:hover,.stitch-mobile-bottom-bar .mobile-dock-item:focus-visible{background:#fff3e9;border-color:#fed2ad;color:#bd5a17}
.stitch-mobile-bottom-bar .mobile-dock-item:focus-visible{outline:2px solid #c66a29;outline-offset:0}

/* Current application families, with readable rows instead of nested carousels. */
.nav-drawer .drawer-subtools-scroll{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important;overflow:visible!important;padding:5px 0 12px!important}
.nav-drawer .drawer-subtool-chip{min-width:0;white-space:normal!important;font-size:11px!important;line-height:1.55;padding:9px 8px!important;font-weight:600!important;background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:10px!important}
.nav-drawer .drawer-subtool-chip>span:first-child{flex:none;width:28px;height:28px;align-items:center;justify-content:center}
.nav-drawer .drawer-subtool-chip>span:last-child{min-width:0;overflow-wrap:anywhere}
.nav-drawer .drawer-subtool-chip svg{width:26px;height:26px}
.nav-drawer .drawer-cat-title-link{padding:7px 2px!important;font-size:13px!important}
.nav-drawer .drawer-cat-block{border-bottom:1px solid var(--border)}
