        :root {
            --bg: #2c3e50;
            --panel: #34495e;
            --text: #ecf0f1;
            --accent: #1abc9c;
            --accent-hover: #16a085;
            --border: #7f8c8d;
            --log-bg: #1a252f;
            --info: #3498db;
            --success: #2ecc71;
            --error: #e74c3c;
            --warn: #f39c12;
            --upgrade: snow;
            --upgrade-hover: snow;
        }
        body { font-family: 'Segoe UI', Tahoma, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 20px; display: flex; justify-content: center; }
        .container { width: 100%; max-width: 820px; background: var(--panel); padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative; }
        
        .top-bar { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; }
        .logo-container { display: flex; align-items: center; gap: 10px; }
        .logo { width: 28px; height: 28px; border-radius: 4px; }
        .logo-text { color: #bdc3c7; font-size: 13px; font-weight: 600; }
        
        .lang-switch { display: flex; gap: 5px; }
        .lang-btn { background: var(--bg); color: var(--text); border: 1px solid var(--border); padding: 5px 10px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 12px; transition: 0.2s; }
        .lang-btn:hover, .lang-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

        h1 { color: var(--info); text-align: center; margin-top: 30px; font-size: 24px; }
        p.subtitle { text-align: center; color: #bdc3c7; font-size: 14px; margin-bottom: 25px; }
        .input-group { margin-bottom: 18px; }
        label { display: block; margin-bottom: 6px; color: #bdc3c7; font-weight: 600; font-size: 14px; }
        input[type="text"] {
            width: 100%; padding: 12px; box-sizing: border-box;
            border: 1px solid var(--border); border-radius: 6px;
            background: var(--bg); color: var(--text); font-size: 16px;
        }
        small.hint { display: block; margin-top: 4px; color: #95a5a6; font-size: 12px; }
        
        .fixed-settings-box {
            background: rgba(0, 0, 0, 0.15);
            border: 1px dashed var(--border);
            padding: 12px;
            border-radius: 6px;
            text-align: center;
            font-weight: 600;
            color: #bdc3c7;
            margin-bottom: 20px;
            font-size: 14px;
        }

        button.main-btn {
            background: var(--accent); color: white; border: none;
            padding: 15px 30px; border-radius: 6px; cursor: pointer;
            font-size: 18px; font-weight: bold; width: 100%; margin-top: 15px;
            transition: background 0.2s;
        }
        button.main-btn:hover:not(:disabled) { background: var(--accent-hover); }
        button.main-btn:disabled { background: var(--border); cursor: not-allowed; }
        
        button.upgrade-btn {
            background: transparent; color: #7f8c8d; border: 2px solid #7f8c8d;
            padding: 12px 20px; border-radius: 6px; cursor: pointer;
            font-size: 16px; font-weight: bold; width: 100%; margin-top: 10px;
            transition: all 0.2s;
        }
        button.upgrade-btn:hover { background: var(--upgrade); color: #16a085;border: 2px solid snow; }

        #log {
            margin-top: 22px; padding: 15px; background: var(--log-bg);
            border-radius: 6px; font-family: 'Consolas', monospace;
            font-size: 13px; white-space: pre-wrap; max-height: 320px;
            overflow-y: auto; border-left: 4px solid var(--info);
        }
        .log-success { color: var(--success); } .log-error { color: var(--error); } .log-info { color: var(--info); } .log-warn { color: var(--warn); }
        #attribution { text-align: center; color: #7f8c8d; font-size: 11px; margin-top: 15px; }
        #attribution a { color: #95a5a6; }
        
        #map { position: absolute; left: -9999px; top: -9999px; }

        #auth-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(44, 62, 80, 0.95); z-index: 9999;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
        }
        #auth-box {
            background: var(--panel); padding: 40px; border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: center; max-width: 400px; width: 90%;
        }
        #auth-box h2 { color: var(--info); margin-top: 0; }
        #auth-box input { width: 100%; margin: 15px 0; padding: 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 16px; box-sizing: border-box; }
        #auth-box button { background: var(--accent); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 16px; width: 100%; }
        #auth-error { color: var(--error); font-size: 14px; margin-top: 10px; display: none; }
        
        #domain-error {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: var(--bg); z-index: 10000; color: white;
            flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px;
        }

        #upgrade-modal {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.6); z-index: 10000;
            justify-content: center; align-items: center;
        }
        .modal-content {
            background: #ffffff;
            color: #2c3e50;
            padding: 30px; border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3); max-width: 450px; width: 90%;
            position: relative; text-align: center;
        }
        .close-btn {
            position: absolute; top: 10px; right: 15px; font-size: 24px; font-weight: bold;
            color: #999; cursor: pointer; transition: 0.2s;
        }
        .close-btn:hover { color: #333; }
        .modal-content h2 { margin-top: 0; }
        .modal-content p { color: #555; font-size: 15px; line-height: 1.5; margin-bottom: 25px; }
        .modal-content a {
            display: block; background: var(--upgrade); color: #16a085; text-decoration: none;
            padding: 12px 20px; border:1px solid #16a085; border-radius: 6px; font-weight: bold; font-size: 16px;
            transition: background 0.2s;
        }
        .modal-content a:hover { background: #16a085; color:snow; }