@layer base {
      html, body {
        margin: 0;
        padding: 0;
        font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        letter-spacing: 0 !important;
        background-color: #0B0F17;
        color: #dfe3e9;
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
      }
      input, textarea, [contenteditable="true"] {
        user-select: text !important;
        -webkit-user-select: text !important;
      }
      img {
        -webkit-user-drag: none;
        user-drag: none;
        pointer-events: none;
      }
      body {
        overscroll-behavior: none;
      }
    }
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: #0B0F17;
    }
    ::-webkit-scrollbar-thumb {
      background: #1E293B;
      border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #334155;
    }

    /* Range Slider — Touch-Friendly */
    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      background: transparent;
      cursor: pointer;
    }
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #0088CC;
      border: 3px solid #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
      cursor: grab;
    }
    input[type="range"]::-moz-range-thumb {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #0088CC;
      border: 3px solid #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
      cursor: grab;
    }
    input[type="range"]:active::-webkit-slider-thumb {
      cursor: grabbing;
      transform: scale(1.15);
    }
    @media (max-width: 640px) {
      input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; }
      input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; }
    }

    @keyframes shimmer {
      0% { transform: translateX(100%); }
      100% { transform: translateX(-100%); }
    }

    /* ═════════════════════════════════════════════════════════════════
       PILL NAVIGATION TABS & DETAILED SERVICE FLOW SYSTEM
    ═════════════════════════════════════════════════════════════════ */
    .tabs-nav-bar {
      background: #0B0F17;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      position: sticky;
      top: 64px;
      z-index: 45;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }
    .tabs-scroll-wrap {
      max-width: 1000px;
      margin: 0 auto;
      display: flex;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 8px 12px;
      gap: 8px;
    }
    .tabs-scroll-wrap::-webkit-scrollbar {
      display: none;
    }
    .tab-pill-button {
      flex: 0 0 auto;
      padding: 7px 14px;
      font-size: 13px;
      font-weight: 700;
      color: #94A3B8;
      background: #111827;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .tab-pill-button:hover {
      color: #F8FAFC;
      background: #1E293B;
      border-color: rgba(0, 136, 204, 0.4);
    }
    .tab-pill-button.active {
      color: #ffffff;
      background: linear-gradient(135deg, #0088CC 0%, #006699 100%);
      border-color: #0088CC;
      box-shadow: 0 0 16px rgba(0, 136, 204, 0.35);
    }
    .back-home-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: #111827;
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #0088CC;
      padding: 7px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      transition: all 0.2s ease;
      margin-bottom: 16px;
    }
    .back-home-btn:hover {
      background: rgba(0, 136, 204, 0.15);
      border-color: #0088CC;
      transform: translateX(3px);
    }
    .app-pane {
      display: none;
    }
    .app-pane.active {
      display: block;
      animation: paneFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    @keyframes paneFadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    /* Shield Grid Background — Inspired by Logo */
    #bg-pattern {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }
    #bg-pattern::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(0,136,204,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,136,204,0.03) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 30%, transparent 70%);
      -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 30%, transparent 70%);
    }
    #bg-pattern::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 20% 50%, rgba(0,136,204,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,194,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(16,185,129,0.03) 0%, transparent 45%);
      animation: ambientDrift 30s ease-in-out infinite alternate;
    }
    @keyframes ambientDrift {
      0% { opacity: 0.6; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.05); }
      100% { opacity: 0.7; transform: scale(0.98); }
    }

    /* Hero Logo Float Animation */
    .hero-logo-float {
      animation: heroFloat 6s ease-in-out infinite;
    }
    @keyframes heroFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }

    /* ═══════════════════════════════════════════
       CINEMATIC LOGO SHOWCASE ANIMATIONS
    ═══════════════════════════════════════════ */

    /* Reduced motion — kill all animations */
    @media (prefers-reduced-motion: reduce) {
      .hero-logo-float,
      #bg-pattern::after { animation: none !important; }
    }

    /* ═════════════════════════════════════════════════════════════════
       SCROLL REVEAL & DYNAMIC SLIDE-IN SYSTEM (AOS ENGINE)
    ═════════════════════════════════════════════════════════════════ */
    html.reveal-ready [data-reveal] {
      opacity: 0;
      filter: blur(8px);
      will-change: transform, opacity, filter;
      transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                  filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Directional Entrance Offsets */
    html.reveal-ready [data-reveal="right"] {
      transform: translateX(50px) scale(0.97);
    }
    html.reveal-ready [data-reveal="left"] {
      transform: translateX(-50px) scale(0.97);
    }
    html.reveal-ready [data-reveal="up"] {
      transform: translateY(40px) scale(0.97);
    }
    html.reveal-ready [data-reveal="down"] {
      transform: translateY(-40px) scale(0.97);
    }
    html.reveal-ready [data-reveal="zoom"] {
      transform: scale(0.88);
    }

    /* Revealed / Active State */
    html.reveal-ready [data-reveal].is-revealed {
      opacity: 1 !important;
      filter: blur(0) !important;
      transform: translate3d(0, 0, 0) scale(1) !important;
    }

    /* Stagger Delays for Fluid Cascading */
    html.reveal-ready [data-reveal-delay="50"]  { transition-delay: 0.05s; }
    html.reveal-ready [data-reveal-delay="100"] { transition-delay: 0.1s; }
    html.reveal-ready [data-reveal-delay="150"] { transition-delay: 0.15s; }
    html.reveal-ready [data-reveal-delay="200"] { transition-delay: 0.2s; }
    html.reveal-ready [data-reveal-delay="250"] { transition-delay: 0.25s; }
    html.reveal-ready [data-reveal-delay="300"] { transition-delay: 0.3s; }
    html.reveal-ready [data-reveal-delay="350"] { transition-delay: 0.35s; }
    html.reveal-ready [data-reveal-delay="400"] { transition-delay: 0.4s; }
    html.reveal-ready [data-reveal-delay="500"] { transition-delay: 0.5s; }

    /* Mobile Protection: prevent horizontal scroll overflow */
    @media (max-width: 640px) {
      html.reveal-ready [data-reveal="right"] {
        transform: translateX(25px) scale(0.98);
      }
      html.reveal-ready [data-reveal="left"] {
        transform: translateX(-25px) scale(0.98);
      }
      html.reveal-ready [data-reveal="up"] {
        transform: translateY(25px) scale(0.98);
      }
      html.reveal-ready [data-reveal] {
        filter: blur(4px);
      }
    }

    /* Accessibility / Reduced Motion */
    @media (prefers-reduced-motion: reduce) {
      html.reveal-ready [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
      }
    }
    .quote-box {
      position: relative;
      background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(11, 15, 23, 0.9) 100%);
      border-inline-start: 4px solid #0088CC;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      padding: 16px 18px;
      margin: 14px 0;
      display: flex;
      gap: 14px;
      align-items: flex-start;
      backdrop-filter: blur(10px);
    }
    .quote-mark-icon {
      color: #0088CC;
      flex-shrink: 0;
      margin-top: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .quote-body-text {
      font-size: 13.5px;
      line-height: 1.85;
      color: #dfe3e9;
      font-weight: 500;
    }
    .quote-body-text strong {
      color: #F8FAFC;
      font-weight: 700;
    }
    .steps-timeline {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 14px 0;
    }
    .step-row-card {
      background: #111827;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 16px 18px;
      display: flex;
      gap: 14px;
      align-items: flex-start;
      transition: all 0.2s ease;
    }
    .step-row-card:hover {
      border-color: rgba(0, 136, 204, 0.5);
      background: #162032;
      transform: translateY(-2px);
    }
    .step-num-badge {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: rgba(0, 136, 204, 0.15);
      border: 1px solid rgba(0, 136, 204, 0.4);
      color: #0088CC;
      font-size: 15px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .step-head-title {
      font-size: 15px;
      font-weight: 700;
      color: #F8FAFC;
      margin-bottom: 4px;
    }
    .step-detail-txt {
      font-size: 13px;
      color: #94A3B8;
      line-height: 1.75;
    }
    .trust-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 14px;
      margin: 14px 0;
    }
    .trust-level-item {
      background: #111827;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 18px 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border-top: 3.5px solid #0088CC;
      transition: all 0.2s ease;
    }
    .trust-level-item:hover {
      border-color: rgba(0, 136, 204, 0.5);
      box-shadow: 0 6px 20px rgba(0, 136, 204, 0.15);
      transform: translateY(-2px);
    }
    .support-channel-card {
      display: flex;
      align-items: center;
      gap: 14px;
      background: #111827;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 16px 18px;
      text-decoration: none;
      margin-bottom: 12px;
      transition: all 0.2s ease;
    }
    .support-channel-card:hover {
      border-color: rgba(0, 136, 204, 0.5);
      background: #162032;
      transform: translateY(-2px);
    }
    .terms-article-card {
      background: #111827;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 18px 20px;
      margin-bottom: 14px;
    }
    .terms-article-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .formal-bullet-list {
      list-style: none;
      padding: 0;
      margin-top: 8px;
    }
    .formal-bullet-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 6px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      font-size: 13px;
      color: #94A3B8;
      line-height: 1.7;
    }
    .formal-bullet-item:last-child {
      border-bottom: none;
    }
    .formal-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #0088CC;
      flex-shrink: 0;
      margin-top: 8px;
    }

    /* Cosmic Silk Waves - Hero Background */
    #home::before {
      content: '';
      position: absolute; inset: 0; z-index: 0;
      background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(0,136,204,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0,194,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(245,158,11,0.05) 0%, transparent 40%);
      background-size: 200% 200%, 180% 180%, 150% 150%;
      animation: cosmicSilk 45s ease-in-out infinite alternate;
      pointer-events: none;
    }
    @keyframes cosmicSilk {
      0%   { background-position: 0% 50%, 100% 50%, 50% 50%; }
      50%  { background-position: 100% 30%, 0% 70%, 80% 20%; }
      100% { background-position: 50% 80%, 50% 30%, 20% 80%; }
    }
    @media (prefers-reduced-motion: reduce) {
      #home::before { animation: none; }
    }

    /* 3D Glowing CTA Buttons */
    .cta-glow {
      position: relative; overflow: hidden;
      border: 1px solid rgba(0,194,255,0.35) !important;
      box-shadow: 0 0 20px rgba(0,136,204,0.25), 0 0 60px rgba(0,136,204,0.08), inset 0 1px 0 rgba(255,255,255,0.12);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .cta-glow:hover {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 0 30px rgba(0,136,204,0.45), 0 0 80px rgba(0,136,204,0.15), inset 0 1px 0 rgba(255,255,255,0.18);
    }
    .cta-glow::after {
      content: ''; position: absolute; inset: -1px; border-radius: inherit;
      background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
      background-size: 250% 250%;
      animation: glowSweep 4s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes glowSweep {
      0%   { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      .cta-glow::after { animation: none; }
      .cta-glow:hover { transform: none; }
    }

    /* Scroll Word Glow */
    .glow-word {
      opacity: 0.25;
      transition: opacity 0.5s ease, text-shadow 0.5s ease;
      display: inline;
    }
    .glow-word.lit {
      opacity: 1;
      text-shadow: 0 0 20px rgba(0,194,255,0.25);
    }
    @media (prefers-reduced-motion: reduce) {
      .glow-word { opacity: 1; transition: none; }
    }

    /* Dual Infinite Marquee */
    .marquee-container { overflow: hidden; width: 100%; }
    .marquee-track {
      display: flex; gap: 2rem; width: max-content;
      animation: marqueeScroll var(--speed, 35s) linear infinite;
    }
    .marquee-track.reverse { animation-direction: reverse; }
    @keyframes marqueeScroll {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .marquee-chip {
      flex-shrink: 0; white-space: nowrap;
      padding: 8px 18px; border-radius: 999px;
      font-size: 13px; font-weight: 700;
      background: #111827; border: 1px solid rgba(255,255,255,0.08);
      color: #94A3B8;
    }
    @media (prefers-reduced-motion: reduce) {
      .marquee-track { animation: none; }
    }

    /* Card Tilt Hover */
    .card-tilt {
      transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99), box-shadow 0.4s ease;
      transform-style: preserve-3d;
    }
    .card-tilt:hover {
      transform: perspective(800px) rotateY(-1.5deg) rotateX(1.5deg) translateZ(8px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    @media (max-width: 768px) {
      .card-tilt:hover { transform: none; box-shadow: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      .card-tilt:hover { transform: none; }
    }

    /* Animated Gradient Border on Hover */
    .glow-border {
      position: relative;
      isolation: isolate;
    }
    .glow-border::before {
      content: '';
      position: absolute; inset: -1.5px;
      border-radius: inherit;
      background: linear-gradient(135deg, #0088CC, #10B981, #00C2FF, #F59E0B, #0088CC);
      background-size: 300% 300%;
      opacity: 0;
      z-index: -1;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }
    .glow-border:hover::before {
      opacity: 1;
      animation: gradientShift 4s linear infinite;
    }
    @keyframes gradientShift {
      0%   { background-position: 0% 50%; }
      50%  { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    @media (prefers-reduced-motion: reduce) {
      .glow-border::before { display: none; }
    }

    /* Magnetic Button Hover */
    .magnetic-btn {
      transition: transform 0.15s ease-out;
    }

    /* Mouse Glow for Hero */
    .hero-mouse-glow {
      position: absolute;
      width: 500px; height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(0,136,204,0.10) 0%, rgba(0,194,255,0.05) 40%, transparent 70%);
      pointer-events: none;
      transform: translate(-50%, -50%);
      opacity: 0;
      transition: opacity 0.6s ease;
      z-index: 1;
    }
    @media (max-width: 768px) {
      .hero-mouse-glow { display: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      .hero-mouse-glow { display: none; }
    }

    /* Scroll Progress Bar */
    #scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 3px;
      background: linear-gradient(90deg, #0088CC, #00C2FF, #10B981);
      z-index: 9999;
      transition: width 0.1s linear;
      pointer-events: none;
    }

/* ═══════════════════════════════════════════════════
   MERGED FROM INDEX2.HTML — Advanced Animations & Components
   ═══════════════════════════════════════════════════ */

    /* Cosmic Twinkling Stars Background */
    #stars-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }
    .star-dot {
      position: absolute;
      background: #ffffff;
      border-radius: 50%;
      opacity: 0;
      animation: starTwinkle var(--duration, 3s) ease-in-out infinite;
    }
    @keyframes starTwinkle {
      0% { transform: scale(0.4); opacity: 0; }
      50% { transform: scale(1.1); opacity: 0.65; box-shadow: 0 0 6px rgba(0, 136, 204, 0.8); }
      100% { transform: scale(0.4); opacity: 0; }
    }

/* ═════════════════════════════════════════════════════════════════
   MOBILE-FIRST IMPROVEMENTS
═════════════════════════════════════════════════════════════════ */

/* Sticky header offset for anchor navigation */
html {
  scroll-padding-top: 80px;
}
[id] {
  scroll-margin-top: 80px;
}

/* Prevent iOS auto-zoom on input focus */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Minimum touch target size for mobile */
@media screen and (max-width: 768px) {
  a, button, [role="button"], summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Arabic text readability */
body {
  line-height: 1.8;
}
p, li, td, dd {
  font-size: max(14px, 0.875rem);
  line-height: 1.85;
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}