    :root {
      --font-mobile: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --whatsapp-green: #25D366;
      --whatsapp-teal: #128C7E;
      --whatsapp-dark: #075E54;
      --bubble-sender: #E7FFDB; /* WhatsApp iOS classic light emerald tint */
      --bubble-sender-premium: #25D366;
      --safe-area-bottom: env(safe-area-inset-bottom, 16px);
      --safe-area-top: env(safe-area-inset-top, 0px);
      --mobile-bottom-nav-height: 0px;
    }

    body {
      font-family: var(--font-mobile);
      background-color: #000000; /* Outer frame background for devices */
      color: #111827;
      -webkit-tap-highlight-color: transparent;
      -webkit-touch-callout: none;
      /* يضمن أن الخلفية تدأ من ألى نقطة في الشاشة خلف الساعة */
      padding-top: 0; 
      margin: 0;
      width: 100%;
      height: 100%;
      user-select: none;
    }

    /* Invisible premium custom scrollbars for realistic mobile feeling */
    .mobile-scroll {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .mobile-scroll::-webkit-scrollbar {
      display: none;
    }

    /* iOS/Android style high performance spring & slide transitions */
    .screen-slide-in {
      transform: translateX(0%);
    }
    .screen-slide-out-left {
      transform: translateX(-30%);
      opacity: 0.8;
    }
    .screen-slide-out-right {
      transform: translateX(100%);
    }

    .transition-screen {
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Message Bubble Premium Tail Simulator */
    .bubble-tail-sender::after {
      content: '';
      position: absolute;
      top: 0;
      right: -6px;
      width: 0;
      height: 0;
      border-top: 12px solid #10B981;
      border-right: 12px solid transparent;
    }

    .bubble-tail-receiver::after {
      content: '';
      position: absolute;
      top: 0;
      left: -6px;
      width: 0;
      height: 0;
      border-top: 12px solid #FFFFFF;
      border-left: 12px solid transparent;
    }

    /* Realistic audio waveform canvas rendering */
    .waveform-pulse {
      animation: pulse-wave 1.2s infinite ease-in-out;
    }

    @keyframes pulse-wave {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 1; }
    }

    /* Wallpaper classes for active chat background */
    .wallpaper-whatsapp { background-color: #EFEAE2; background-image: radial-gradient(#DAD3C8 1px, transparent 1px); background-size: 24px 24px; }
    .wallpaper-emerald { background-color: #ECFDF5; background-image: radial-gradient(#A7F3D0 1px, transparent 1px); background-size: 20px 20px; }
    .wallpaper-darkmode { background-color: #0B141A; background-image: radial-gradient(#1F2C34 1px, transparent 1px); background-size: 24px 24px; color: #E9EDEF; }
    .wallpaper-minimal { background-color: #FFFFFF; }

    /* Glass Effect helpers */
    .mobile-glass {
      background: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }
    
    .mobile-glass-dark {
      background: rgba(31, 41, 55, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }

    /* تعديل جميع الشاشات لتحترم مساحة العة تلقائياً */
    section {
      padding-top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
      padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    /* When fake bars are visible, add extra padding */
    #mobile-app-root.has-fake-bars section {
      padding-top: calc(44px + env(safe-area-inset-top, 0px)) !important;
      padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .conversation-composer {
      padding: 0.5rem !important;
      padding-bottom: max(var(--safe-area-bottom, 0px), var(--mobile-bottom-nav-height, 0px)) !important;
    }

    .profile-silhouette-avatar {
      width: 2.75rem;
      height: 2.75rem;
      border-radius: 999px;
      border: 1px solid #cbd5e1;
      background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    .profile-silhouette-avatar::before {
      content: "";
      position: absolute;
      top: 0.58rem;
      width: 0.92rem;
      height: 0.92rem;
      border: 2px solid #64748b;
      border-radius: 999px;
      background: transparent;
    }
    .profile-silhouette-avatar::after {
      content: "";
      position: absolute;
      bottom: 0.38rem;
      width: 1.72rem;
      height: 1.08rem;
      border: 2px solid #64748b;
      border-bottom: 0;
      border-radius: 1rem 1rem 0 0;
      background: transparent;
    }
    .profile-silhouette-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    #mobile-convo-menu {
      position: fixed;
      top: calc(env(safe-area-inset-top, 0px) + 4.7rem);
      right: 0.75rem;
      left: auto;
      width: min(18.5rem, calc(100vw - 1.5rem));
      max-width: calc(100vw - 1.5rem);
      border-radius: 1rem;
      text-align: start;
      direction: inherit;
      overflow: hidden;
    }
    html[dir="rtl"] #mobile-convo-menu {
      left: 0.75rem;
      right: auto;
    }
    #mobile-convo-menu button {
      min-height: 2.75rem;
      justify-content: flex-start;
      text-align: start;
      line-height: 1.35;
      white-space: normal;
    }
    #mobile-convo-menu button span {
      min-width: 0;
      flex: 1;
      overflow: visible;
    }
    html[dir="rtl"] #mobile-convo-menu button {
      flex-direction: row-reverse;
    }

    #mobile-voice-overlay {
      bottom: calc(max(var(--safe-area-bottom, 0px), var(--mobile-bottom-nav-height, 0px)) + 4.65rem);
      border-radius: 1.25rem;
      background: rgba(255, 255, 255, 0.96);
      color: #0f172a;
      border: 1px solid rgba(226, 232, 240, 0.95);
      box-shadow: 0 18px 45px -20px rgba(15, 23, 42, 0.55), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
    }
    .voice-live-dot {
      width: 0.58rem;
      height: 0.58rem;
      border-radius: 999px;
      background: #ef4444;
      box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
      animation: pulse-wave 1.2s infinite ease-in-out;
    }
    .voice-wave-shell {
      background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
      border: 1px solid #e2e8f0;
      border-radius: 999px;
      box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    body.dark,
    body.dark #mobile-app-root {
      background: #0b141a !important;
      color: #e5edf1;
    }
    body.dark #screen-chat-list,
    body.dark #screen-profile,
    body.dark #screen-calls,
    body.dark #screen-settings,
    body.dark #screen-updates {
      background: #0b141a !important;
      color: #e5edf1;
    }
    body.dark header,
    body.dark footer,
    body.dark #mobile-bottom-nav,
    body.dark #mobile-composer-footer,
    body.dark #mobile-convo-menu,
    body.dark #mobile-emoji-panel,
    body.dark #mobile-attach-sheet,
    body.dark #mobile-new-chat-modal > div,
    body.dark #mobile-wallpaper-modal > div,
    body.dark #mobile-pending-requests-modal > div {
      background: rgba(17, 24, 39, 0.96) !important;
      border-color: rgba(51, 65, 85, 0.9) !important;
      color: #e5edf1 !important;
    }
    body.dark .mobile-glass {
      background: rgba(17, 24, 39, 0.88) !important;
    }
    body.dark #mobile-chats-list,
    body.dark #mobile-emoji-grid,
    body.dark .mobile-scroll.bg-white,
    body.dark .bg-white,
    body.dark .bg-slate-50,
    body.dark .bg-slate-100,
    body.dark .bg-slate-200 {
      background-color: #111827 !important;
      border-color: rgba(51, 65, 85, 0.9) !important;
    }
    body.dark .text-slate-900,
    body.dark .text-slate-800,
    body.dark .text-slate-700,
    body.dark .text-slate-600 {
      color: #e5edf1 !important;
    }
    body.dark .text-slate-500,
    body.dark .text-slate-400 {
      color: #94a3b8 !important;
    }
    body.dark input,
    body.dark textarea,
    body.dark select,
    body.dark #mobile-search-input,
    body.dark #mobile-emoji-search,
    body.dark #new-chat-usercode-input {
      background-color: #0f172a !important;
      color: #f8fafc !important;
      border-color: #334155 !important;
    }
    body.dark input::placeholder,
    body.dark textarea::placeholder {
      color: #64748b !important;
    }
    body.dark #mobile-composer-form > div:nth-child(2) {
      background-color: #0f172a !important;
      border-color: #334155 !important;
    }
    body.dark #mobile-convo-menu button:hover,
    body.dark button.hover\:bg-slate-50:hover,
    body.dark button.hover\:bg-slate-100:hover {
      background-color: #1f2937 !important;
    }
    body.dark #mobile-voice-overlay {
      background: rgba(17, 24, 39, 0.97) !important;
      color: #e5edf1 !important;
      border-color: #334155 !important;
    }
    body.dark .voice-wave-shell,
    body.dark .rounded-full.bg-white\/70,
    body.dark .bg-white\/55 {
      background: rgba(15, 23, 42, 0.82) !important;
      border-color: rgba(51, 65, 85, 0.9) !important;
    }
    body.dark .wallpaper-whatsapp,
    body.dark .wallpaper-emerald,
    body.dark #screen-conversation {
      background-color: #0b141a !important;
      background-image: radial-gradient(#1f2c34 1px, transparent 1px) !important;
      color: #e9edef !important;
    }
    body.dark #screen-conversation .bg-\[\#E7FFDB\],
    body.dark #screen-conversation .bubble-tail-sender,
    body.dark #screen-conversation .bubble-tail-sender p {
      color: #0f172a !important;
    }

    /* NEXO AI — square verified” tile: strong lift off the surface */
    .nexo-ai-verified-slot {
      flex-shrink: 0;
      overflow: hidden;
      position: relative;
      outline: none;
      border-radius: 1rem;
      background: linear-gradient(135deg, #064e3b 0%, #10b981 50%, #34d399 100%);
      box-shadow:
        0 10px 25px -5px rgba(16, 185, 129, 0.4),
        0 8px 10px -6px rgba(16, 185, 129, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
    }
    .nexo-ai-verified-slot i {
      font-size: 1.2em;
    }
    .nexo-ai-verified-slot--convo {
      width: 2.75rem;
      height: 2.75rem;
      border-radius: 0.65rem;
    }
    .nexo-ai-verified-slot--list {
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 0.75rem;
    }
    .nexo-ai-verified-slot--detail {
      width: 9rem;
      height: 9rem;
      margin-left: auto;
      margin-right: auto;
      border-radius: 1rem;
      box-shadow:
        0 0 0 1px rgba(4, 120, 87, 0.3),
        0 2px 0 rgba(255, 255, 255, 0.5) inset,
        0 24px 56px -12px rgba(5, 150, 105, 0.48),
        0 12px 32px -14px rgba(15, 23, 42, 0.28);
    }
    .nexo-ai-verified-slot--call {
      width: 8rem;
      height: 8rem;
      border-radius: 1rem;
      background: linear-gradient(165deg, #134e4a 0%, #0d9488 42%, #0f766e 100%);
      box-shadow:
        0 0 0 1px rgba(110, 231, 183, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 22px 52px -8px rgba(16, 185, 129, 0.55),
        0 12px 30px -10px rgba(0, 0, 0, 0.55);
    }
    .nexo-ai-verified-slot--incoming {
      width: 6.75rem;
      height: 6.75rem;
      margin-left: auto;
      margin-right: auto;
      border-radius: 0.95rem;
      background: linear-gradient(165deg, #1e293b 0%, #0f172a 55%, #022c22 100%);
      box-shadow:
        0 0 0 1px rgba(52, 211, 153, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 20px 48px -10px rgba(16, 185, 129, 0.38),
        0 10px 26px -10px rgba(0, 0, 0, 0.65);
    }

    /* --- NEXO AI NEW NEON BUTTON --- */
    @keyframes nexo-rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes nexo-glow {
      0%, 100% { box-shadow: 0 0 15px #a56bff, 0 0 5px #7b4fff; }
      50% { box-shadow: 0 0 30px #4af0ff, 0 0 15px #a56bff; }
    }

    @keyframes nexo-shimmer {
      0% { background-position: -200% center; }
      100% { background-position: 200% center; }
    }

    .nexo-neon-btn {
      position: relative;
      width: 4rem;
      height: 4rem;
      background: #040b1a;
      border-radius: 1.25rem;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      animation: nexo-glow 3s infinite ease-in-out;
      border: 1px solid rgba(165, 107, 255, 0.3);
    }

    .nexo-neon-btn::before {
      content: "";
      position: absolute;
      width: 200%;
      height: 200%;
      background: conic-gradient(transparent, #a56bff, #4af0ff, transparent 40%);
      animation: nexo-rotate 3s linear infinite;
    }

    .nexo-neon-btn-inner {
      position: absolute;
      inset: 3px;
      background: #040b1a;
      border-radius: 1.1rem;
      z-index: 1;
    }

    .nexo-neon-text {
      position: relative;
      z-index: 2;
      font-family: 'Orbitron', sans-serif;
      font-weight: 900;
      font-size: 10px;
      text-align: center;
      line-height: 1.2;
      letter-spacing: 1px;
      background: linear-gradient(90deg, #fff 0%, #a56bff 50%, #fff 100%);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: nexo-shimmer 3s linear infinite;
      text-shadow: 0 0 10px rgba(165, 107, 255, 0.5);
    }