        :root {
            --primary-color: #6a11cb;
            --primary-color-dark: #5a0db5;
            --primary-light: #f4f0ff;
            --success-color: #10b981;
            --error-color: #ef4444;
            --text-color: #333;
            --text-light: #666;
            --border-color: #ddd;
            --border-color-light: #e0e0e0;
            --bg-light: #f9f9f9;
            --white: #ffffff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
            --border-radius-lg: 16px;
        }

        /* --- Global Form Styles --- */
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-color);
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
        }

        .form-control.is-invalid {
            border-color: var(--error-color) !important;
        }

        .invalid-feedback {
            color: var(--error-color);
            font-size: 14px;
            margin-top: 5px;
            display: none;
        }

        .form-control.is-invalid+.invalid-feedback,
        .is-invalid+.invalid-feedback {
            display: block;
        }

        .message {
            margin-top: 15px;
            padding: 12px;
            border-radius: var(--border-radius);
            text-align: center;
            font-weight: 500;
            display: none;
        }

        .message.success {
            background-color: #e6f7ee;
            color: #2e7d32;
            border: 1px solid #c8e6c9;
        }

        .message.error {
            background-color: #ffebee;
            color: #c62828;
            border: 1px solid #ffcdd2;
        }


        /* --- Button Styles --- */
        .btn-primary-solid {
            width: 100%;
            background-color: var(--primary-color);
            color: var(--white);
            border: none;
            border-radius: var(--border-radius);
            padding: 14px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
        }

        .btn-primary-solid:hover {
            background-color: var(--primary-color-dark);
            box-shadow: var(--shadow);
            transform: translateY(-2px);
        }

        .btn-primary-solid:active {
            transform: translateY(0);
        }

        .btn-primary-solid:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-social {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            background: var(--white);
            color: var(--text-color);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-social:hover {
            background: var(--bg-light);
            border-color: #ccc;
        }

        .btn-social img {
            width: 20px;
            height: 20px;
        }

        /* --- Divider --- */
        .divider {
            text-align: center;
            margin: 25px 0;
            position: relative;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--border-color-light);
            z-index: 1;
        }

        .divider span {
            background: var(--white);
            padding: 0 15px;
            color: var(--text-light);
            font-size: 14px;
            position: relative;
            z-index: 2;
        }

        /* --- OTP Input Styles (Unified) --- */
        .otp-input-container {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin: 1.5rem 0;
        }

        .otp-input {
            width: 60px;
            height: 60px;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            background: var(--bg-light);
            transition: all 0.3s;
            color: var(--text-color);
        }

        .otp-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
            outline: none;
            background: var(--white);
        }

        .otp-input.is-invalid {
            border-color: var(--error-color);
        }

        @media (max-width: 576px) {
            .otp-input {
                width: 50px;
                height: 50px;
                font-size: 1.25rem;
            }
        }

        /* --- Resend & Timer (Unified) --- */
        .resend-otp {
            margin-top: 1.5rem;
            text-align: center;
            font-size: 0.95rem;
            color: var(--text-light);
        }

        .resend-otp a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
        }

        .resend-otp a:hover {
            text-decoration: underline;
        }

        .resend-otp a.disabled {
            color: var(--text-light);
            pointer-events: none;
        }

        .timer {
            color: var(--error-color);
            font-weight: 500;
        }

        /* --- Registration Form Specifics --- */
        .phone-input-group {
            display: flex;
            gap: 10px;
        }

        .phone-input-group .form-control {
            flex: 1;
        }

        .verify-btn {
            background-color: var(--primary-color);
            color: var(--white);
            border: none;
            border-radius: var(--border-radius);
            padding: 12px 20px;
            cursor: pointer;
            font-weight: 500;
            transition: background-color 0.3s;
            white-space: nowrap;
        }

        .verify-btn:hover {
            background-color: var(--primary-color-dark);
        }

        .verify-btn:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }

        .url-input-group {
            display: flex;
            align-items: center;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            overflow: hidden;
        }

        .url-prefix {
            background-color: #f5f5f5;
            padding: 12px 15px;
            font-size: 16px;
            color: var(--text-light);
            border-right: 1px solid var(--border-color);
        }

        .url-input-group input {
            border: none;
            flex: 1;
            padding: 12px 15px;
            font-size: 16px;
        }

        .url-input-group input:focus {
            outline: none;
        }

        .url-input-group.is-invalid {
            border-color: var(--error-color);
        }

        #phoneRegUrlError,
        #emailRegUrlError {
            color: var(--error-color);
            margin-top: 5px;
            font-size: 14px;
            display: none;
        }


        @media (max-width: 576px) {
            .phone-input-group {
                flex-direction: column;
            }

            .verify-btn {
                width: 100%;
            }
        }

        /* --- Modal Specifics (Cleaned) --- */
        .modal-content {
            border: none;
            border-radius: var(--border-radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
        }

        .modal-header {
            background-color: var(--primary-light);
            border-bottom: none;
            padding: 1.5rem 1.5rem 1rem;
            position: relative;
        }

        .modal-title {
            font-weight: 600;
            color: var(--primary-color);
            font-size: 1.5rem;
        }

        .modal-body {
            padding: 2rem 1.5rem;
        }

        .modal-footer {
            border-top: none;
            padding: 0 1.5rem 1.5rem;
        }

        .close-btn {
            border: none;
            background: none;
            font-size: 1.5rem;
            color: var(--text-light);
            transition: color 0.3s ease;
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
        }

        .close-btn:hover {
            color: var(--text-color);
        }

        .otp-instructions {
            color: var(--text-light);
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        .contact-info {
            font-weight: 600;
            color: var(--text-color);
            word-break: break-all;
        }

        /* --- Success Checkmark Animation (Unified) --- */
        .success-checkmark {
            display: none;
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
        }

        .success-checkmark .check-icon {
            width: 80px;
            height: 80px;
            position: relative;
            border-radius: 50%;
            box-sizing: content-box;
            border: 4px solid var(--success-color);
        }

        .success-checkmark .check-icon::before {
            top: 3px;
            left: -2px;
            width: 30px;
            transform-origin: 100% 50%;
            border-radius: 100px 0 0 100px;
        }

        .success-checkmark .check-icon::after {
            top: 0;
            left: 30px;
            width: 60px;
            transform-origin: 0 50%;
            border-radius: 0 100px 100px 0;
            animation: rotate-circle 4.25s ease-in;
        }

        .success-checkmark .check-icon .icon-line {
            height: 5px;
            background-color: var(--success-color);
            display: block;
            border-radius: 2px;
            position: absolute;
            z-index: 10;
        }

        .success-checkmark .check-icon .icon-line.line-tip {
            top: 46px;
            left: 14px;
            width: 25px;
            transform: rotate(45deg);
            animation: icon-line-tip 0.75s;
        }

        .success-checkmark .check-icon .icon-line.line-long {
            top: 38px;
            right: 8px;
            width: 47px;
            transform: rotate(-45deg);
            animation: icon-line-long 0.75s;
        }

        .success-checkmark .check-icon .icon-circle {
            top: -4px;
            left: -4px;
            z-index: 10;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            position: absolute;
            box-sizing: content-box;
            border: 4px solid rgba(16, 185, 129, 0.5);
        }

        .success-checkmark .check-icon .icon-fix {
            top: 8px;
            width: 5px;
            left: 26px;
            z-index: 1;
            height: 85px;
            position: absolute;
            transform: rotate(-45deg);
        }

        @keyframes rotate-circle {
            0% {
                transform: rotate(-45deg);
            }

            5% {
                transform: rotate(-45deg);
            }

            12% {
                transform: rotate(-405deg);
            }

            100% {
                transform: rotate(-405deg);
            }
        }

        @keyframes icon-line-tip {
            0% {
                width: 0;
                left: 1px;
                top: 19px;
            }

            54% {
                width: 0;
                left: 1px;
                top: 19px;
            }

            70% {
                width: 50px;
                left: -8px;
                top: 37px;
            }

            84% {
                width: 17px;
                left: 21px;
                top: 48px;
            }

            100% {
                width: 25px;
                left: 14px;
                top: 45px;
            }
        }

        @keyframes icon-line-long {
            0% {
                width: 0;
                right: 46px;
                top: 54px;
            }

            65% {
                width: 0;
                right: 46px;
                top: 54px;
            }

            84% {
                width: 55px;
                right: 0px;
                top: 35px;
            }

            100% {
                width: 47px;
                right: 8px;
                top: 38px;
            }
        }

        .verified-message {
            display: none;
            text-align: center;
            color: var(--success-color);
            font-weight: 600;
            font-size: 1.2rem;
            margin-top: 1rem;
        }

        .back-to-login {
            text-align: center;
            margin-top: 20px;
        }

        .back-to-login a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
        }

        .back-to-login a:hover {
            text-decoration: underline;
        }
