:root {
      --primary: #7f00ff;
      --primary-dark: #6300cc;
      --secondary: #ff4b8b;
      --dark: #222;
      --light: #fff;
      --gray: #777;
      --light-gray: #f4f4f4;
      --border-radius: 8px;
      --box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      --transition: all 0.3s ease;
      --success-color: #00b894;
      --error-color: #d63031;
      --warning-color: #fdcb6e;
    }
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
      line-height: 1.6;
      color: #333;
      background: #f9f9f9;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    a {
      text-decoration: none;
      color: var(--primary);
      transition: var(--transition);
    }
    a:hover { color: var(--primary-dark); }

    /* --- LAYOUT & HEADER --- */
    header.navbar {
      background: var(--light);
      padding: 20px 5%;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      position: relative;
      z-index: 100;
    }

    .navbar .logo a {
      font-weight: 700;
      font-size: 24px;
      color: #000;
      display: flex;
      align-items: center;
    }
    .navbar .logo i {
      color: var(--primary);
      margin-right: 8px;
    }

    .beta-banner {
        width: 100%;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        color: var(--light);
        text-align: center;
        padding: 10px;
        font-size: 14px;
        font-weight: 500;
        z-index: 2000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    main {
        padding: 40px 20px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
    }

    /* --- SIGNUP CONTAINER --- */
    .signup-container {
      background: var(--light);
      padding: 40px;
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      width: 100%;
      max-width: 500px;
      overflow: hidden;
    }
    .signup-header {
        text-align: center;
        margin-bottom: 30px;
    }
    .signup-header h2 {
        font-size: 2rem;
        color: var(--dark);
        font-weight: 700;
        margin-bottom: 8px;
    }
    .signup-header p { color: var(--gray); }

    .social-login {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        transition: var(--transition);
    }
    .social-btn {
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: var(--border-radius);
        background: var(--light);
        color: #555;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 1rem;
    }
    .social-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
    .social-btn i { font-size: 1.2rem; }
    .social-login-Hide { display: none !important; }

    .divider {
        text-align: center;
        margin: 25px 0;
        color: var(--gray);
        position: relative;
    }
    .divider::before, .divider::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 40%;
        height: 1px;
        background: #ddd;
    }
    .divider::before { left: 0; }
    .divider::after { right: 0; }
    
    /* --- PROGRESS STEPS --- */
    .progress-steps {
        display: flex;
        justify-content: space-between;
        position: relative;
        margin-bottom: 30px;
    }
    .progress-bar {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        height: 4px;
        background-color: var(--primary);
        width: 0%;
        transition: width 0.4s ease;
        z-index: 1;
    }
    .progress-steps::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        height: 4px;
        background-color: #e0e0e0;
        width: 100%;
        z-index: 0;
    }
    .step {
        width: 36px;
        height: 36px;
        background-color: #fff;
        border: 3px solid #e0e0e0;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        color: #999;
        transition: all 0.4s ease;
        z-index: 2;
    }
    .step.active {
        border-color: var(--primary);
        background-color: var(--primary);
        color: white;
    }
    .step.completed {
        border-color: var(--primary);
        background-color: var(--primary);
        color: white;
    }
    
    /* --- FORM STYLING --- */
    .form-step { display: none; }
    .form-step.active { display: block; }
    
    .form-group { margin-bottom: 20px; }
    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #444;
    }
    .input-with-icon {
        position: relative;
    }
    .input-with-icon .fas {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray);
    }
    input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
        width: 100%;
        padding: 12px 12px 12px 40px;
        border: 1px solid #ddd;
        border-radius: var(--border-radius);
        transition: var(--transition);
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
    }
    input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(127,0,255,0.1);
    }
    .password-toggle {
        right: 15px;
        left: auto !important;
        cursor: pointer;
    }
    
    .error-message {
        color: var(--error-color);
        font-size: 0.9rem;
        margin-top: 5px;
        min-height: 1.2em;
        display: none;
    }

    /* Password Strength & Requirements */
    .password-strength {
        height: 5px;
        background-color: #eee;
        border-radius: 5px;
        margin-top: 10px;
        overflow: hidden;
    }
    .password-strength-bar {
        height: 100%;
        width: 0;
        background-color: var(--error-color);
        transition: width 0.3s, background-color 0.3s;
    }
    .password-requirements {
        margin-top: 10px;
        font-size: 0.85rem;
        color: var(--gray);
    }
    .requirement {
        transition: color 0.3s;
    }
    .requirement i {
        margin-right: 5px;
        transition: color 0.3s;
    }
    .requirement.valid {
        color: var(--success-color);
    }
    .requirement.valid i {
        color: var(--success-color);
    }
    
    /* --- ACTIONS & BUTTONS --- */
    .form-actions {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        margin-top: 30px;
    }
    .btn {
        padding: 12px 25px;
        border: none;
        border-radius: var(--border-radius);
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex: 1;
    }
    .btn-primary {
        background: var(--primary);
        color: var(--light);
    }
    .btn-primary:hover:not(:disabled) {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }
    .btn-secondary {
        background: #f0f0f0;
        color: var(--dark);
        border: 1px solid #ddd;
    }
    .btn-secondary:hover {
        background: #e0e0e0;
    }
    .btn:disabled {
        background-color: #a49fc9;
        cursor: not-allowed;
    }

    .loading {
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: var(--light);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        display: none;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .success-message {
        text-align: center;
        padding: 20px;
        display: none;
    }
    .success-message i {
        font-size: 4rem;
        color: var(--success-color);
        margin-bottom: 20px;
    }
    .success-message h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .login-link {
        text-align: center;
        margin-top: 30px;
        color: var(--gray);
    }

    /* --- ERROR POPUP MODAL --- */
    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      transition: opacity 0.3s ease;
      backdrop-filter: blur(5px);
    }
    .popup-overlay.active {
        opacity: 1;
    }
    .popup-content {
      background: var(--light);
      padding: 30px;
      border-radius: var(--border-radius);
      box-shadow: 0 5px 25px rgba(0,0,0,0.2);
      width: 90%;
      max-width: 400px;
      text-align: center;
      transform: scale(0.9);
      transition: transform 0.3s ease;
    }
    .popup-overlay.active .popup-content {
        transform: scale(1);
    }
    .popup-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 20px;
    }
    .popup-header i {
      font-size: 3rem;
      color: var(--error-color);
      margin-bottom: 15px;
    }
    .popup-header h3 {
      font-size: 1.5rem;
      color: var(--dark);
      margin: 0;
    }
    .popup-content p {
      color: var(--gray);
      margin-bottom: 25px;
      font-size: 1rem;
    }
    #closePopupBtn {
      width: 100%;
      max-width: 120px;
      margin: 0 auto;
      flex: none; /* Override flex: 1 from .btn */
    }
