:root {
    --bg-outer: #050608;
    --bg-main: #0b0d14;
    --bg-panel: #161926;
    --bg-card: #1f2334;
    --bg-editor: #121420;
    --accent-purple: #8b5cf6;
    --accent-purple-hover: #7c3aed;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #2e344e;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-outer); color: var(--text-main); height: 100vh; overflow: hidden; }

/* Auth / Login Scherm */
.auth-wrapper {
    width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    background: var(--bg-outer);
}
.auth-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    width: 380px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.auth-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-card h2 span { color: var(--accent-purple); }
.auth-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input { background: var(--bg-main); border: 1px solid var(--border); padding: 10px; border-radius: 6px; color: var(--text-main); outline: none; }

/* Centrale 70% Boxed Wrapper */
.page-wrapper {
    width: 70%; max-width: 1500px; min-width: 950px;
    margin: 0 auto; height: 100vh; background: var(--bg-main);
    display: flex; flex-direction: column;
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
}

/* Header */
header { background: var(--bg-panel); border-bottom: 1px solid var(--border); padding: 0 20px; height: 55px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.header-left { display: flex; align-items: center; gap: 20px; }
.logo { font-size: 1.15rem; font-weight: 700; text-decoration: none; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--accent-purple); }
.nav-links { display: flex; gap: 12px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 6px 10px; border-radius: 4px; cursor: pointer; transition: color 0.2s; }
.nav-link:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--text-main); background: rgba(255,255,255,0.08); }
.header-right { display: flex; align-items: center; gap: 12px; }

.user-badge { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; }
.user-avatar { width: 24px; height: 24px; background: var(--accent-purple); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.75rem; }

.btn-sm { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px; text-decoration: none; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm:hover { border-color: var(--accent-purple); }
.btn-accent { background: var(--accent-purple); border-color: var(--accent-purple); color: #fff; }
.btn-accent:hover { background: var(--accent-purple-hover); }

/* Main Playground Layout */
.playground-container { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.playground-nav { background: var(--bg-panel); border-bottom: 1px solid var(--border); padding: 6px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-muted); flex-shrink: 0; }
.main-split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); flex: 1; overflow: hidden; }
.editor-pane { background: var(--bg-editor); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.editor-textarea { width: 100%; height: 100%; background: transparent; color: #f8f8f2; border: none; padding: 15px; font-family: 'Fira Code', 'Courier New', monospace; font-size: 0.92rem; resize: none; outline: none; line-height: 1.6; }
.preview-pane { background: #ffffff; position: relative; }
.preview-iframe { width: 100%; height: 100%; border: none; }

/* AI Chat Pane */
.ai-pane { background: var(--bg-panel); padding: 12px 20px; display: flex; flex-direction: column; height: 280px; flex-shrink: 0; }
.ai-settings-bar { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.ai-select, .ai-key-input { background: var(--bg-main); color: var(--text-main); border: 1px solid var(--border); padding: 6px 10px; border-radius: 6px; font-size: 0.82rem; outline: none; }
.ai-key-input { flex: 1; min-width: 180px; }
.ai-messages-container { flex: 1; background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; overflow-y: auto; margin-bottom: 10px; font-size: 0.85rem; line-height: 1.5; display: flex; flex-direction: column; gap: 10px; }
.chat-msg-body { background: var(--bg-card); padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border); }
.ai-input-box { display: flex; gap: 10px; }
.ai-input-box input { flex: 1; background: var(--bg-main); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; color: var(--text-main); outline: none; font-size: 0.88rem; }

/* Linktree / Socials Hub Stijlen */
.linktree-container { flex: 1; padding: 30px; overflow-y: auto; background: var(--bg-main); display: flex; flex-direction: column; gap: 25px; }
.linktree-header h2 { font-size: 1.8rem; margin-bottom: 8px; }
.linktree-header p { color: var(--text-muted); font-size: 0.95rem; }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.platform-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; padding: 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.platform-info h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text-main); }
.platform-info p { font-size: 0.82rem; color: var(--text-muted); }
.status-badge { padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.status-badge.disconnected { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.status-badge.connected { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }

/* Landingspagina / Hero Stijlen */
.hero-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; overflow-y: auto; }
.hero-container h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 14px; line-height: 1.2; }
.hero-container h1 span { color: var(--accent-purple); }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 750px; margin-bottom: 30px; line-height: 1.6; }

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 10px;
    text-align: left;
}
.hero-feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hero-feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text-main); }
.hero-feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* Modal Overlay */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; width: 90%; max-width: 500px; padding: 24px; color: var(--text-main); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.modal-close { cursor: pointer; font-size: 1.2rem; color: var(--text-muted); }
.model-list-grid { display: grid; gap: 10px; }
.model-item { background: var(--bg-card); border: 1px solid var(--border); padding: 10px; border-radius: 8px; }
.model-item h4 { color: var(--accent-purple); font-size: 0.9rem; margin-bottom: 4px; }
.model-item p { color: var(--text-muted); font-size: 0.8rem; }