* { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
            min-height: 100vh;
            color: #1f2a44;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
        }
        .navbar {
            width: 100%;
            background: #ffffff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 10px;
            position: sticky;
            top: 20px;
            z-index: 1000;
        }
        .navbar .logo {
            font-size: 24px;
            font-weight: 700;
            color: #3b82f6;
        }
        .navbar .actions {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        .navbar .user-info {
            font-size: 14px;
            color: #6b7280;
            background: #f3f4f6;
            padding: 6px 12px;
            border-radius: 20px;
        }
        .navbar button {
            padding: 8px 16px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s ease, transform 0.2s;
        }
        .folder-button {
            background: #e5e7eb;
            color: #374151;
        }
        .folder-button:hover { background: #d1d5db; transform: scale(1.05); }
        .login-button { background: #3b82f6; color: white; }
        .login-button:hover { background: #2563eb; transform: scale(1.05); }
        .logout-button { background: #ef4444; color: white; }
        .logout-button:hover { background: #dc2626; transform: scale(1.05); }
        .container {
            max-width: 600px;
            width: 100%;
            margin-top: 40px;
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            animation: fadeIn 0.5s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        h1 {
            font-size: 28px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 20px;
            color: #1f2a44;
        }
        .input-group {
            position: relative;
            margin-bottom: 20px;
        }
        .subdomain-input {
            width: 100%;
            padding: 12px 50px 12px 20px;
            font-size: 16px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            outline: none;
            transition: border-color 0.3s ease;
        }
        .subdomain-input:focus { border-color: #3b82f6; }
        .domain-suffix {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            color: #6b7280;
        }
        .status-message {
            text-align: center;
            font-size: 16px;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        .status-message.available { background: #dcfce7; color: #16a34a; }
        .status-message.taken { background: #fee2e2; color: #dc2626; }
        .status-message.checking { background: #fefcbf; color: #d97706; }
        .register-button {
            width: 100%;
            padding: 12px;
            background: #3b82f6;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: background 0.3s ease, transform 0.2s, box-shadow 0.3s ease;
        }
        .register-button:hover:not(:disabled) {
            background: #2563eb;
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
        }
        .register-button:disabled {
            background: #d1d5db;
            cursor: not-allowed;
            box-shadow: none;
        }
        .register-button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
        }
        .register-button:active:not(:disabled)::before {
            width: 300px;
            height: 300px;
        }
        .register-button.loading {
            background: #2563eb;
            cursor: wait;
        }
        .register-button.loading::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            border: 3px solid #ffffff;
            border-top: 3px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }
        .success-section {
            text-align: center;
            margin-top: 20px;
            padding: 20px;
            background: #f0fdf4;
            border-radius: 10px;
            display: none;
        }
        .success-link {
            display: inline-block;
            padding: 10px 20px;
            background: #10b981;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            margin-top: 10px;
            transition: background 0.3s ease;
        }
        .success-link:hover { background: #059669; }
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            padding: 12px 24px;
            background: #1f2a44;
            color: white;
            border-radius: 5px;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 2000;
        }
        .toast.show { opacity: 1; }

        /* --- New styles for step-by-step UI --- */
        #folderStep { text-align: center; }
        #folderStep h2 { font-size: 24px; margin-bottom: 10px; }
        #folderStep p { color: #6b7280; margin-bottom: 25px; font-size: 16px; }
        #mainSelectFolderButton {
            padding: 14px;
            font-size: 18px;
            font-weight: 600;
        }
        .selected-folder-display {
            background-color: #f3f4f6;
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 25px;
            font-size: 14px;
            color: #4b5563;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .selected-folder-display #hostingPath {
            font-weight: 500;
            color: #1f2a44;
        }
        .selected-folder-display a {
            color: #3b82f6;
            text-decoration: none;
            font-weight: 600;
        }
        .selected-folder-display a:hover { text-decoration: underline; }