/* Login Modal Styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 99999;
      display: none;
      justify-content: center;
      align-items: center;
      backdrop-filter: blur(4px);
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal-content {
      background: #fff;
      width: 90%;
      max-width: 400px;
      border-radius: 12px;
      padding: 30px;
      position: relative;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      text-align: center;
      font-family: inherit;
      color: #1e293b !important;
    }

    .modal-content * {
      color: inherit;
    }

    .modal-close {
      position: absolute;
      top: 15px;
      right: 15px;
      font-size: 1.5rem;
      cursor: pointer;
      color: #64748b !important;
    }

    .modal-title {
      font-size: 1.5rem;
      margin-bottom: 20px;
      color: #1e293b !important;
      font-weight: bold;
    }

    .auth-btn {
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
      margin-bottom: 10px;
      cursor: pointer;
      font-weight: bold;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: 0.2s;
      background: white;
      color: #333 !important;
    }

    .auth-btn:hover {
      background: #f8fafc;
    }

    .auth-btn.google {
      border-color: #dd4b39;
      color: #dd4b39 !important;
    }

    .auth-btn.facebook {
      border-color: #3b5998;
      color: #3b5998 !important;
    }

    .divider {
      display: flex;
      align-items: center;
      text-align: center;
      margin: 15px 0;
      color: #64748b !important;
      font-size: 0.9rem;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      border-bottom: 1px solid #e2e8f0;
    }

    .divider:not(:empty)::before {
      margin-right: .25em;
    }

    .divider:not(:empty)::after {
      margin-left: .25em;
    }

    .auth-input {
      width: 100%;
      padding: 12px;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      margin-bottom: 10px;
      font-size: 1rem;
      outline: none;
      box-sizing: border-box;
      color: #1e293b !important;
      background: #fff !important;
    }

    .auth-input::placeholder {
      color: #94a3b8 !important;
    }

    .auth-input:focus {
      border-color: #ffbd59;
    }

    .submit-btn {
      width: 100%;
      padding: 12px;
      background: #ffbd59;
      color: white;
      border: none;
      border-radius: 8px;
      font-weight: bold;
      font-size: 1rem;
      cursor: pointer;
    }

    .submit-btn:hover {
      background: #e6aa50;
    }

    .toggle-auth {
      color: #ffbd59;
      cursor: pointer;
      font-size: 0.9rem;
      margin-top: 15px;
      display: inline-block;
    }

    .auth-error {
      color: #ef4444;
      font-size: 0.85rem;
      margin-bottom: 10px;
      display: none;
    }

    html[lang="ar"] .modal-close {
      right: auto;
      left: 15px;
    }

    html[lang="ar"] .login-en {
      display: none;
    }

    html[lang="en"] .login-ar {
      display: none;
    }

    html[lang="ar"] .modal-content,
    html[lang="ar"] .modal-content * {
      font-family: 'Cairo', sans-serif !important;
    }