
    :root { --primary: #7c3aed; --secondary: #5b21b6; --accent: #f59e0b; }
    * { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
    html, body { margin: 0; padding: 0; min-height: 100vh; overscroll-behavior: none; }
    body {
      background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
      background-attachment: fixed;
      font-family: 'Cairo', 'Tajawal', sans-serif;
    }
    body::before {
      content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent);
      background-size: 200px 200px;
      animation: stars 100s linear infinite;
      pointer-events: none; z-index: 0;
    }
    @keyframes stars { from { background-position: 0 0; } to { background-position: 200px 200px; } }
    .main-container { position: relative; z-index: 1; }
    .gradient-bg { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #9333ea 100%); }
    .cosmic-bg { background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(20px); }
    .glass-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(124, 58, 237, 0.2);
      backdrop-filter: blur(10px);
      border-radius: 1rem;
      transition: all 0.3s ease;
    }
    .glass-card:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(124, 58, 237, 0.4);
      transform: translateY(-3px);
    }
    .stat-card {
      background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(91, 33, 182, 0.15) 100%);
      border: 1px solid rgba(124, 58, 237, 0.3);
      border-radius: 1.25rem;
      padding: 1.5rem;
      transition: all 0.3s ease;
    }
    .stat-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(124, 58, 237, 0.35); }
    .service-card {
      background: linear-gradient(145deg, rgba(30, 27, 75, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
      border: 2px solid rgba(124, 58, 237, 0.25);
      border-radius: 1.25rem;
      padding: 1.25rem;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    .service-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
      opacity: 0; transition: opacity 0.3s;
    }
    .service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(124, 58, 237, 0.4); border-color: rgba(245, 158, 11, 0.5); }
    .service-card:hover::before { opacity: 1; }
    .service-card.active { border-color: rgba(34, 197, 94, 0.6); }
    .service-icon {
      width: 55px; height: 55px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem; margin-bottom: 0.75rem;
    }
    .icon-1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
    .icon-2 { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
    .icon-3 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
    .icon-4 { background: linear-gradient(135deg, #f472b6, #ec4899); }
    .icon-5 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
    .icon-6 { background: linear-gradient(135deg, #2dd4bf, #14b8a6); }
    .icon-7 { background: linear-gradient(135deg, #fb923c, #f97316); }
    .icon-8 { background: linear-gradient(135deg, #a3e635, #84cc16); }
    .btn-primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      color: white; padding: 1rem 2rem; border-radius: 1rem;
      font-weight: 700; border: none; cursor: pointer;
      transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
    }
    .btn-primary:hover { transform: translateY(-3px) scale(1.02); }
    .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    .gpt-btn {
      background: linear-gradient(135deg, #10a37f 0%, #0d8a6a 100%);
      transition: all 0.3s; cursor: pointer; border: none; color: white;
      padding: 0.75rem 1.25rem; border-radius: 0.75rem; font-weight: 700;
    }
    .gpt-btn:hover { transform: translateY(-2px) scale(1.03); }
    .gpt-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .gpt-btn.analyzed { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
    .planet-badge {
      padding: 0.4rem 0.8rem; border-radius: 999px; font-weight: 700;
      display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem;
    }
    .planet-sun { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
    .planet-moon { background: linear-gradient(135deg, #93c5fd, #60a5fa); color: #1e3a8a; }
    .planet-mercury { background: linear-gradient(135deg, #c4b5fd, #a78bfa); color: #4c1d95; }
    .planet-venus { background: linear-gradient(135deg, #fbcfe8, #f9a8d4); color: #831843; }
    .planet-mars { background: linear-gradient(135deg, #fca5a5, #f87171); color: #7f1d1d; }
    .planet-jupiter { background: linear-gradient(135deg, #fde68a, #fcd34d); color: #78350f; }
    .planet-saturn { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #1f2937; }
    .planet-uranus { background: linear-gradient(135deg, #67e8f9, #22d3ee); color: #164e63; }
    .planet-neptune { background: linear-gradient(135deg, #a5b4fc, #818cf8); color: #3730a3; }
    .planet-pluto { background: linear-gradient(135deg, #f0abfc, #e879f9); color: #701a75; }
    .planet-node { background: linear-gradient(135deg, #86efac, #4ade80); color: #14532d; }
    .planet-chiron { background: linear-gradient(135deg, #fdba74, #fb923c); color: #7c2d12; }
    .planet-lilith { background: linear-gradient(135deg, #1e1b4b, #312e81); color: #e0e7ff; }
    .aspect-harmonic { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; padding: 0.3rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.75rem; }
    .aspect-challenging { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; padding: 0.3rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.75rem; }
    .aspect-neutral { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #fde68a; padding: 0.3rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.75rem; }
    .aspect-type { background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(124, 58, 237, 0.4); color: #c4b5fd; padding: 0.3rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.75rem; }
    .pill { display: inline-block; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.8rem; font-weight: 600; }
    .spinner { width: 24px; height: 24px; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .countdown-item { background: rgba(0, 0, 0, 0.4); border-radius: 1rem; padding: 1rem 0.75rem; text-align: center; min-width: 70px; border: 1px solid rgba(236, 72, 153, 0.3); }
    .countdown-number { font-size: 1.75rem; font-weight: 900; background: linear-gradient(135deg, #ec4899, #db2777); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .progress-bar { height: 10px; background: rgba(0, 0, 0, 0.4); border-radius: 999px; overflow: hidden; }
    .progress-fill { height: 100%; border-radius: 999px; transition: width 1s ease-out; }
    .progress-fire { background: linear-gradient(90deg, #f87171, #ef4444); }
    .progress-earth { background: linear-gradient(90deg, #4ade80, #22c55e); }
    .progress-air { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
    .progress-water { background: linear-gradient(90deg, #22d3ee, #06b6d4); }
    .progress-year { background: linear-gradient(90deg, #ec4899, #db2777); }
    .data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
    .data-table thead { background: rgba(124, 58, 237, 0.2); }
    .data-table th { padding: 0.75rem; text-align: center; font-weight: 700; font-size: 0.8rem; color: #c4b5fd; }
    .data-table td { padding: 0.65rem; text-align: center; border-bottom: 1px solid rgba(124, 58, 237, 0.1); font-size: 0.85rem; }
    .data-table tbody tr:hover { background: rgba(124, 58, 237, 0.1); }
    .custom-scroll { max-height: 450px; overflow-y: auto; }
    .custom-scroll::-webkit-scrollbar { width: 6px; }
    .custom-scroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
    .custom-scroll::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7c3aed, #5b21b6); border-radius: 10px; }
    .ai-box { background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.08) 100%); border: 2px solid rgba(245, 158, 11, 0.25); border-radius: 1.25rem; padding: 1.5rem; }
    .form-input {
      width: 100%; padding: 0.75rem 1rem;
      background: rgba(15, 23, 42, 0.8);
      border: 2px solid rgba(124, 58, 237, 0.3);
      border-radius: 0.75rem; color: white; font-size: 1rem; transition: all 0.3s;
    }
    .form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
    .form-input::placeholder { color: rgba(255, 255, 255, 0.4); }

    .popup-overlay {
      position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(10px);
      z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1rem;
    }
    .popup-overlay.active { display: flex; }
    .popup-content {
      background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
      border-radius: 1.5rem; width: 100%; max-width: 800px; max-height: 90vh;
      border: 2px solid rgba(124, 58, 237, 0.4); overflow: hidden; display: flex; flex-direction: column;
    }
    .popup-header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 1.25rem 1.5rem; border-bottom: 2px solid rgba(124, 58, 237, 0.2);
      background: rgba(124, 58, 237, 0.1);
    }
    .popup-close {
      width: 40px; height: 40px; background: rgba(239, 68, 68, 0.2);
      border: 2px solid rgba(239, 68, 68, 0.5); border-radius: 50%;
      color: #fca5a5; font-size: 1.5rem; display: flex; align-items: center;
      justify-content: center; cursor: pointer; transition: all 0.2s;
    }
    .popup-close:hover { background: rgba(239, 68, 68, 0.4); transform: scale(1.1); }
    .popup-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
    .chart-container { position: relative; height: 300px; margin: 1rem 0; }
    .ai-badge { background: linear-gradient(90deg, #f59e0b, #d97706); padding: 0.4rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.7rem; }
    @media (max-width: 768px) {
      .stat-card { padding: 1rem; }
      .service-card { padding: 1rem; }
      .service-icon { width: 45px; height: 45px; font-size: 1.25rem; }
      .chart-container { height: 250px; }
    }

    .consultant-btn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #f59e0b 100%);
      border: none;
      cursor: pointer;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
      animation: pulse-glow 2s ease-in-out infinite, float 3s ease-in-out infinite;
      transition: transform 0.3s ease;
    }
    .consultant-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 12px 40px rgba(139, 92, 246, 0.7);
    }
    .consultant-btn i {
      font-size: 28px;
      color: white;
      animation: sparkle 1.5s ease-in-out infinite;
    }
    .consultant-btn .badge {
      position: absolute;
      top: -5px;
      right: -5px;
      background: #ef4444;
      color: white;
      font-size: 10px;
      padding: 2px 6px;
      border-radius: 10px;
      font-weight: bold;
    }
    @keyframes pulse-glow {
      0%, 100% { box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5); }
      50% { box-shadow: 0 8px 48px rgba(217, 70, 239, 0.8); }
    }
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }
    @keyframes sparkle {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.7; }
    }

    @keyframes today-pulse {
      0%, 100% {
        box-shadow: 0 0 5px rgba(168, 85, 247, 0.5), 0 0 10px rgba(168, 85, 247, 0.3);
        border-color: rgba(168, 85, 247, 0.8);
      }
      50% {
        box-shadow: 0 0 15px rgba(236, 72, 153, 0.8), 0 0 25px rgba(236, 72, 153, 0.5);
        border-color: rgba(236, 72, 153, 1);
      }
    }
    .calendar-today {
      animation: today-pulse 1.5s ease-in-out infinite;
      border: 2px solid rgba(168, 85, 247, 0.8) !important;
    }

    .chat-window {
      position: fixed;
      bottom: 0;
      right: 0;
      left: 0;
      width: 100%;
      height: 85vh;
      max-height: 85vh;
      background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
      border-radius: 24px 24px 0 0;
      border: 2px solid rgba(139, 92, 246, 0.3);
      border-bottom: none;
      box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.7);
      z-index: 9998;
      display: none;
      flex-direction: column;
      overflow: hidden;
      animation: slideUp 0.3s ease-out;
    }
    .chat-window.active { display: flex; }
    @media (min-width: 769px) {
      .chat-window {
        bottom: 110px;
        right: 30px;
        left: auto;
        width: 420px;
        height: 580px;
        max-height: calc(100vh - 150px);
        border-radius: 24px;
        border-bottom: 2px solid rgba(139, 92, 246, 0.3);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
      }
    }
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .chat-header {
      background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .chat-header .avatar {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }
    .chat-header .info h4 {
      color: white;
      font-weight: bold;
      font-size: 16px;
      margin: 0;
    }
    .chat-header .info p {
      color: rgba(255,255,255,0.8);
      font-size: 11px;
      margin: 2px 0 0;
    }
    .chat-header .close-btn {
      margin-right: auto;
      background: rgba(255,255,255,0.2);
      border: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      color: white;
      cursor: pointer;
      transition: background 0.2s;
    }
    .chat-header .close-btn:hover { background: rgba(255,255,255,0.3); }

    .chat-questions-left {
      background: linear-gradient(90deg, #f59e0b, #ef4444);
      padding: 8px 16px;
      text-align: center;
      font-size: 12px;
      color: white;
      font-weight: bold;
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .chat-messages::-webkit-scrollbar { width: 6px; }
    .chat-messages::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 3px; }

    .chat-msg {
      max-width: 85%;
      padding: 12px 16px;
      border-radius: 18px;
      font-size: 14px;
      line-height: 1.5;
      animation: msgFade 0.3s ease-out;
    }
    @keyframes msgFade {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .chat-msg.bot {
      background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(217,70,239,0.2));
      border: 1px solid rgba(139,92,246,0.3);
      color: #e2e8f0;
      align-self: flex-start;
      border-bottom-right-radius: 18px;
      border-bottom-left-radius: 4px;
    }
    .chat-msg.user {
      background: linear-gradient(135deg, #3b82f6, #2563eb);
      color: white;
      align-self: flex-end;
      border-bottom-left-radius: 18px;
      border-bottom-right-radius: 4px;
    }

    .typing-indicator {
      display: flex;
      gap: 4px;
      padding: 12px 16px;
      background: rgba(139,92,246,0.2);
      border-radius: 18px;
      width: fit-content;
    }
    .typing-indicator span {
      width: 8px;
      height: 8px;
      background: #8b5cf6;
      border-radius: 50%;
      animation: bounce 1.4s infinite ease-in-out both;
    }
    .typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
    .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
    @keyframes bounce {
      0%, 80%, 100% { transform: scale(0); }
      40% { transform: scale(1); }
    }

    .chat-input-area {
      padding: 16px;
      background: rgba(0,0,0,0.3);
      border-top: 1px solid rgba(139,92,246,0.2);
      display: flex;
      gap: 10px;
    }
    .chat-input-area input {
      flex: 1;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(139,92,246,0.3);
      border-radius: 24px;
      padding: 12px 20px;
      color: white;
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s;
    }
    .chat-input-area input:focus { border-color: #8b5cf6; }
    .chat-input-area input::placeholder { color: rgba(255,255,255,0.5); }
    .chat-input-area button {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #8b5cf6, #d946ef);
      border: none;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
    }
    .chat-input-area button:hover { transform: scale(1.05); }
    .chat-input-area button:disabled { opacity: 0.5; cursor: not-allowed; }

    .chat-disabled {
      padding: 20px;
      text-align: center;
      background: rgba(239, 68, 68, 0.1);
      border-top: 1px solid rgba(239, 68, 68, 0.3);
    }
    .chat-disabled i { font-size: 24px; color: #f59e0b; margin-bottom: 8px; }
    .chat-disabled p { color: #fbbf24; font-size: 13px; margin: 0; }
    .chat-disabled .timer { color: #ef4444; font-weight: bold; font-size: 16px; margin-top: 8px; }

    .quick-questions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 12px 16px;
      background: rgba(139, 92, 246, 0.1);
      border-top: 1px solid rgba(139, 92, 246, 0.2);
    }
    .quick-q {
      background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(217,70,239,0.2));
      border: 1px solid rgba(139,92,246,0.4);
      color: #e2e8f0;
      padding: 8px 14px;
      border-radius: 20px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .quick-q:hover {
      background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(217,70,239,0.4));
      transform: scale(1.05);
    }

    .otp-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      backdrop-filter: blur(10px);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s ease;
    }
    .otp-overlay.active { display: flex; }

    .otp-modal {
      background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
      border-radius: 24px;
      border: 2px solid rgba(139, 92, 246, 0.3);
      padding: 32px;
      width: 90%;
      max-width: 400px;
      text-align: center;
      animation: slideUp 0.3s ease;
    }

    .otp-icon {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, #8b5cf6, #d946ef);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-size: 36px;
    }

    .otp-title {
      font-size: 22px;
      font-weight: bold;
      color: white;
      margin-bottom: 8px;
    }

    .otp-subtitle {
      color: #9ca3af;
      font-size: 14px;
      margin-bottom: 24px;
    }

    .phone-input-group {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      direction: ltr;
    }

    .phone-prefix {
      background: rgba(139, 92, 246, 0.2);
      border: 1px solid rgba(139, 92, 246, 0.3);
      border-radius: 12px;
      padding: 14px 16px;
      color: #a78bfa;
      font-weight: bold;
      font-size: 16px;
    }

    .phone-input {
      flex: 1;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(139, 92, 246, 0.3);
      border-radius: 12px;
      padding: 14px 16px;
      color: white;
      font-size: 18px;
      text-align: center;
      letter-spacing: 2px;
      outline: none;
      transition: border-color 0.2s;
    }
    .phone-input:focus { border-color: #8b5cf6; }
    .phone-input::placeholder { color: rgba(255,255,255,0.4); letter-spacing: 0; }

    .otp-input-group {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-bottom: 20px;
      direction: ltr;
    }

    .otp-digit {
      width: 55px;
      height: 65px;
      background: rgba(255,255,255,0.1);
      border: 2px solid rgba(139, 92, 246, 0.3);
      border-radius: 12px;
      color: white;
      font-size: 28px;
      font-weight: bold;
      text-align: center;
      outline: none;
      transition: all 0.2s;
    }
    .otp-digit:focus {
      border-color: #8b5cf6;
      background: rgba(139, 92, 246, 0.2);
      transform: scale(1.05);
    }
    .otp-digit.filled {
      border-color: #22c55e;
      background: rgba(34, 197, 94, 0.2);
    }

    .otp-btn {
      width: 100%;
      padding: 16px;
      border-radius: 12px;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
      margin-bottom: 12px;
    }

    .otp-btn-primary {
      background: linear-gradient(135deg, #8b5cf6, #d946ef);
      color: white;
    }
    .otp-btn-primary:hover { transform: scale(1.02); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); }
    .otp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

    .otp-btn-secondary {
      background: transparent;
      color: #9ca3af;
      border: 1px solid rgba(255,255,255,0.2);
    }
    .otp-btn-secondary:hover { color: white; border-color: rgba(255,255,255,0.4); }

    .otp-timer {
      color: #f59e0b;
      font-size: 14px;
      margin-top: 16px;
    }

    .otp-error {
      background: rgba(239, 68, 68, 0.2);
      border: 1px solid rgba(239, 68, 68, 0.5);
      color: #fca5a5;
      padding: 12px;
      border-radius: 8px;
      font-size: 14px;
      margin-bottom: 16px;
      display: none;
    }
    .otp-error.show { display: block; }

    .welcome-screen {
      min-height: 80vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .welcome-logo {
      width: 120px;
      height: 120px;
      background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #f59e0b 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 60px;
      margin-bottom: 24px;
      animation: float 3s ease-in-out infinite;
      box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
    }

    .welcome-title {
      font-size: 32px;
      font-weight: bold;
      background: linear-gradient(135deg, #fff, #d8b4fe);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 8px;
    }

    .welcome-subtitle {
      color: #9ca3af;
      font-size: 16px;
      margin-bottom: 40px;
    }

    .welcome-buttons {
      display: flex;
      flex-direction: column;
      gap: 16px;
      width: 100%;
      max-width: 320px;
    }

    .welcome-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 18px 32px;
      border-radius: 16px;
      font-size: 18px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
    }

    .welcome-btn-primary {
      background: linear-gradient(135deg, #8b5cf6, #d946ef);
      color: white;
      box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    }
    .welcome-btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
    }

    .welcome-btn-secondary {
      background: rgba(255, 255, 255, 0.1);
      color: white;
      border: 2px solid rgba(139, 92, 246, 0.5);
    }
    .welcome-btn-secondary:hover {
      background: rgba(139, 92, 246, 0.2);
      border-color: #8b5cf6;
    }

    .welcome-footer {
      margin-top: 40px;
      color: #6b7280;
      font-size: 14px;
    }

    .user-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
      border: 1px solid rgba(34, 197, 94, 0.5);
      color: #22c55e;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 14px;
      margin-bottom: 16px;
    }

.otp-success {
      color: #22c55e;
      font-size: 48px;
      margin-bottom: 16px;
    }


    .custom-scrollbar::-webkit-scrollbar {
      width: 6px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
      background: rgba(139, 92, 246, 0.1);
      border-radius: 10px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, #a855f7, #f59e0b);
      border-radius: 10px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, #c084fc, #fbbf24);
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .animate-fade-in {
      animation: fadeInUp 0.4s ease-out forwards;
    }

    select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: left 0.75rem center;
      background-size: 1.25rem;
      padding-left: 2.5rem;
    }

    .relation-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0.75rem 0.5rem;
      border-radius: 0.75rem;
      background: rgba(71, 85, 105, 0.3);
      border: 1px solid rgba(236, 72, 153, 0.2);
      color: #e2e8f0;
      transition: all 0.2s;
      cursor: pointer;
    }
    .relation-btn:hover {
      background: rgba(236, 72, 153, 0.2);
      border-color: rgba(236, 72, 153, 0.4);
      transform: translateY(-2px);
    }
    .relation-btn.selected {
      background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(168, 85, 247, 0.4));
      border-color: rgba(236, 72, 153, 0.6);
      box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    }

    .partner-card {
      background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(88, 28, 135, 0.2));
      border: 1px solid rgba(236, 72, 153, 0.3);
      border-radius: 1rem;
      padding: 1rem;
      transition: all 0.3s;
    }
    .partner-card:hover {
      border-color: rgba(236, 72, 153, 0.5);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(236, 72, 153, 0.15);
    }

    .compat-score-high { background: linear-gradient(135deg, #10b981, #059669); }
    .compat-score-medium { background: linear-gradient(135deg, #f59e0b, #d97706); }
    .compat-score-low { background: linear-gradient(135deg, #ef4444, #dc2626); }

    .tab-btn {
      color: rgba(156, 163, 175, 0.8);
      background: transparent;
    }
    .tab-btn:hover {
      color: white;
      background: rgba(139, 92, 246, 0.2);
    }
    .tab-btn.active {
      color: white;
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(245, 158, 11, 0.3));
      box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    }
    .tab-content {
      animation: fadeIn 0.3s ease-out;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .person-card {
      background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(88, 28, 135, 0.3));
      border: 1px solid rgba(139, 92, 246, 0.3);
      border-radius: 1rem;
      padding: 1rem;
      transition: all 0.3s ease;
    }
    .person-card:hover {
      border-color: rgba(236, 72, 153, 0.5);
      box-shadow: 0 8px 25px rgba(236, 72, 153, 0.2);
      transform: translateY(-2px);
    }

    .compatibility-circle {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 1.25rem;
    }
    .score-high { background: linear-gradient(135deg, #10b981, #059669); color: white; }
    .score-medium { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
    .score-low { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }

    
/* ===== Lock Styles ===== */
#subscriptionLock { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.lock-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); }
.lock-modal { position: relative; background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%); padding: 40px 30px; border-radius: 24px; text-align: center; max-width: 350px; margin: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1); animation: lockIn 0.4s ease-out; }
@keyframes lockIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.lock-icon { font-size: 64px; margin-bottom: 16px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.lock-modal h2 { color: #fff; font-size: 24px; margin: 0 0 12px 0; }
.lock-modal p { color: #a0a0a0; font-size: 14px; margin: 0 0 20px 0; line-height: 1.6; }
.lock-price { font-size: 32px; font-weight: bold; color: #f59e0b; margin-bottom: 24px; }
.lock-price span { font-size: 16px; color: #888; font-weight: normal; }
.lock-btn { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); color: #fff; border: none; padding: 16px 48px; font-size: 18px; font-weight: bold; border-radius: 50px; cursor: pointer; transition: all 0.3s; box-shadow: 0 8px 24px rgba(124,58,237,0.4); }
.lock-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124,58,237,0.5); }
.lock-btn:disabled { background: #666; cursor: wait; }
.lock-features { color: #888; font-size: 12px; margin-top: 24px; line-height: 2; }
/* ===== End Lock Styles ===== */

.lock-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.1); border: none; color: #888; font-size: 24px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.lock-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Animation للنسبة */
@keyframes scorePopIn {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.compatibility-circle {
  animation: scorePopIn 0.5s ease-out forwards;
}
.person-card {
  animation: fadeInUp 0.4s ease-out forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FIX63 - Donut Animation */
@keyframes donutFill {
  0% { stroke-dashoffset: 175.93; }
  100% { stroke-dashoffset: var(--target-offset); }
}
@keyframes countUp {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
.donut-circle {
  animation: donutFill 1.5s ease-out forwards;
}
.donut-circle.delay-1 { animation-delay: 0.1s; }
.donut-circle.delay-2 { animation-delay: 0.2s; }
.donut-circle.delay-3 { animation-delay: 0.3s; }
.donut-circle.delay-4 { animation-delay: 0.4s; }
.donut-circle.delay-5 { animation-delay: 0.5s; }
.donut-circle.delay-6 { animation-delay: 0.6s; }
.donut-circle.delay-7 { animation-delay: 0.7s; }
.donut-item {
  animation: countUp 0.5s ease-out forwards;
  opacity: 0;
}
.donut-item:nth-child(1) { animation-delay: 0.1s; }
.donut-item:nth-child(2) { animation-delay: 0.2s; }
.donut-item:nth-child(3) { animation-delay: 0.3s; }
.donut-item:nth-child(4) { animation-delay: 0.4s; }
.donut-item:nth-child(5) { animation-delay: 0.5s; }
.donut-item:nth-child(6) { animation-delay: 0.6s; }
.donut-item:nth-child(7) { animation-delay: 0.7s; }

/* ===== Annual calendar moon transition banner safety (prevents overlap on mobile) ===== */
[class*="moon-transition"], [class*="moonTransition"], [id*="moonTransition"], [id*="moon-transition"]{
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 12px auto 0 auto !important;
  max-width: calc(100% - 24px) !important;
  z-index: 1 !important;
}



/* Yearly Calendar: center the moon transition pill */
.moon-transition-badge,
.moon-transition-pill,
.moon-trans-badge,
#moonTransitionBadge,
#moonTransitionPill {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
