        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }

        .container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            padding: 25px 30px;
            width: 100%;
            max-width: 600px;
            position: relative;
            overflow: hidden;
        }

        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #25D366, #128C7E);
        }

        .header {
            text-align: center;
            margin-bottom: 20px;
        }

        .header h1 {
            color: #333;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .whatsapp-icon {
            background: linear-gradient(135deg, #25D366, #128C7E);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .subtitle {
            color: #666;
            font-size: 0.95rem;
            font-weight: 400;
        }

        .step {
            margin-bottom: 18px;
            opacity: 0.5;
            transition: all 0.3s ease;
        }

        .step.active {
            opacity: 1;
        }

        .step-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .step-number {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #25D366, #128C7E);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.95rem;
        }

        .step-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
        }

        .upload-area {
            border: 2px dashed #ddd;
            border-radius: 12px;
            padding: 25px 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .upload-area:hover {
            border-color: #25D366;
            background: #f0f8f0;
        }

        .upload-area.dragover {
            border-color: #25D366;
            background: #e8f5e8;
            transform: scale(1.02);
        }

        .upload-icon {
            font-size: 2.2rem;
            color: #25D366;
            margin-bottom: 8px;
        }

        .upload-text {
            font-size: 0.95rem;
            color: #666;
            margin-bottom: 5px;
        }

        .upload-hint {
            font-size: 0.9rem;
            color: #999;
        }

        #fileInput {
            display: none;
        }

        .preview-container {
            display: none;
            text-align: center;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 15px;
        }

        .preview-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid #25D366;
            margin-bottom: 15px;
        }

        .auth-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 25px;
        }

        .auth-option {
            padding: 20px;
            border: 2px solid #eee;
            border-radius: 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
        }

        .auth-option:hover {
            border-color: #25D366;
            transform: translateY(-2px);
        }

        .auth-option.selected {
            border-color: #25D366;
            background: #f0f8f0;
        }

        .auth-icon {
            font-size: 2rem;
            margin-bottom: 10px;
            color: #25D366;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-row {
            display: flex;
            gap: 10px;
        }

        .form-row .form-group {
            flex: 1;
            margin-bottom: 0;
        }

        .form-row .country-code {
            flex: 0 0 100px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }

        input[type="text"], input[type="tel"], select {
            width: 100%;
            padding: 15px;
            border: 2px solid #eee;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: white;
        }

        input:focus, select:focus {
            outline: none;
            border-color: #25D366;
            box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
        }

        .btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: linear-gradient(135deg, #25D366, #128C7E);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
            margin-top: 10px;
        }

        .btn-secondary:hover {
            background: #5a6268;
            transform: translateY(-2px);
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        .status-container {
            display: none;
            text-align: center;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 15px;
            margin-top: 25px;
        }

        .status-icon {
            font-size: 4rem;
            margin-bottom: 20px;
        }

        .status-message {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .status-details {
            color: #666;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #25D366;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .qr-container {
            display: none;
            text-align: center;
            padding: 20px;
            background: white;
            border-radius: 15px;
            margin-top: 20px;
        }

        .qr-code {
            max-width: 100%;
            border-radius: 10px;
            margin: 20px 0;
        }

        .pairing-code {
            font-size: 2rem;
            font-weight: bold;
            letter-spacing: 0.2em;
            color: #25D366;
            background: #f0f8f0;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
            font-family: 'Courier New', monospace;
        }

        .success-container {
            display: none;
            text-align: center;
            padding: 40px;
            background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
            border-radius: 15px;
            margin-top: 25px;
        }

        .error-container {
            display: none;
            padding: 20px;
            background: #ffe6e6;
            border: 1px solid #ffb3b3;
            border-radius: 10px;
            margin-top: 20px;
        }

        .error-message {
            color: #d63384;
            font-weight: 600;
        }

        .connection-status {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            z-index: 1000;
        }

        .connection-status.connected {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .connection-status.disconnected {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        @media (max-width: 768px) {
            .container {
                padding: 30px 20px;
                margin: 10px;
            }

            .header h1 {
                font-size: 2rem;
            }

            .auth-options {
                grid-template-columns: 1fr;
            }

            .form-row {
                flex-direction: column;
            }

            .form-row .country-code {
                flex: none;
            }
        }
        .privacy-section {
            display: none;
        }

        /* Top corner icons with hover tooltips */
        .top-icon {
            position: fixed;
            top: 20px;
            z-index: 1000;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }

        .top-icon:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .top-icon i {
            font-size: 1.2rem;
            color: #333;
        }

        .top-left {
            left: 20px;
        }

        .top-right {
            left: 70px;
        }

        .hover-tooltip {
            display: none;
            position: absolute;
            top: 50px;
            left: 0;
            background: white;
            border-radius: 12px;
            padding: 15px 18px;
            min-width: 220px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border: 1px solid #eee;
            z-index: 1001;
        }

        .hover-tooltip.tooltip-right {
            left: 0;
            right: auto;
            min-width: 280px;
        }

        .top-icon:hover .hover-tooltip {
            display: block;
        }

        .hover-tooltip strong {
            display: block;
            font-size: 0.9rem;
            color: #333;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
        }

        .hover-tooltip a {
            display: block;
            color: #333;
            text-decoration: none;
            font-size: 0.85rem;
            padding: 4px 0;
            transition: color 0.2s;
        }

        .hover-tooltip a:hover {
            color: #128C7E;
        }

        .hover-tooltip a i {
            margin-right: 6px;
            font-size: 0.9rem;
            color: #555;
        }

        .hover-tooltip .role {
            display: block;
            font-size: 0.75rem;
            color: #999;
            margin-bottom: 8px;
        }

        .hover-tooltip p {
            font-size: 0.8rem;
            line-height: 1.6;
            color: #666;
            margin: 0;
        }

        @media (max-width: 768px) {
            .top-icon {
                width: 35px;
                height: 35px;
                top: 12px;
            }

            .top-left {
                left: 12px;
            }

            .top-right {
                left: 55px;
            }

            .hover-tooltip {
                min-width: 200px;
                padding: 12px 14px;
            }

            .hover-tooltip.tooltip-right {
                min-width: 240px;
                left: 0;
                right: auto;
            }

            .connection-status {
                top: 12px;
                right: 12px;
                font-size: 0.8rem;
                padding: 6px 12px;
            }
        }
