:root {
    --bg: #0e0f14;
    --surface: #16181f;
    --surface2: #1e2029;
    --border: #2a2d3a;
    --accent: #5b6af0;
    --accent2: #7c8cf8;
    --text: #e8eaf2;
    --muted: #6b7080;
    --success: #3ecf8e;
    --sidebar-w: 220px;
    --module-w: 240px;
  }

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

  body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
  }

  /* ===== TOPBAR ===== */
  .topbar {
    height: 52px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
  }
  .logo {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent2);
    letter-spacing: -0.3px;
  }
  .logo span { color: var(--text); }
  .topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-left: 12px;
  }
  .topbar-breadcrumb .sep { color: var(--border); }
  .topbar-breadcrumb .active { color: var(--text); }
  .topbar-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .btn {
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
  }
  .btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
  }
  .btn-ghost:hover { color: var(--text); border-color: var(--muted); }
  .btn-primary {
    background: var(--accent);
    color: #fff;
  }
  .btn-primary:hover { background: var(--accent2); }

  /* ===== MAIN LAYOUT ===== */
  .main {
    display: flex;
    height: calc(100vh - 52px);
    margin-top: 52px;
  }

  /* ===== VIEW 1: BROWSE ===== */
  #view-browse {
    display: flex;
    width: 100%;
    height: 100%;
    transition: opacity 0.25s;
  }
  #view-browse.hidden { display: none; }

  /* Left sidebar - Branchen */
  .sidebar-branchen {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 16px 0;
  }
  .sidebar-branchen::-webkit-scrollbar { width: 4px; }
  .sidebar-branchen::-webkit-scrollbar-track { background: transparent; }
  .sidebar-branchen::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  .sidebar-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--muted);
    text-transform: uppercase;
    padding: 0 16px 10px;
  }
  .branche-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    transition: all 0.12s;
    border-left: 3px solid transparent;
  }
  .branche-item:hover { color: var(--text); background: var(--surface2); }
  .branche-item.active {
    color: var(--accent2);
    background: rgba(91,106,240,0.08);
    border-left-color: var(--accent);
  }
  .branche-icon { font-size: 15px; width: 20px; text-align: center; }
  .branche-count {
    margin-left: auto;
    font-size: 11px;
    background: var(--surface2);
    color: var(--muted);
    padding: 1px 6px;
    border-radius: 10px;
  }
  .branche-item.active .branche-count {
    background: rgba(91,106,240,0.2);
    color: var(--accent2);
  }

  /* Template Grid */
  .template-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg);
  }
  .template-area::-webkit-scrollbar { width: 6px; }
  .template-area::-webkit-scrollbar-track { background: transparent; }
  .template-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  .template-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .template-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
  }
  .template-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
  }
  .search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--muted);
    width: 220px;
  }
  .search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    width: 100%;
  }
  .search-bar input::placeholder { color: var(--muted); }

  .template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
  }

  .template-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }
  .template-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(91,106,240,0.15);
  }
  .template-preview {
    height: 170px;
    position: relative;
    overflow: hidden;
  }
  .preview-mini {
    width: 100%;
    height: 100%;
    transform-origin: top left;
    pointer-events: none;
  }

  .p-restaurant {
    background: linear-gradient(135deg, #1a0a00 0%, #3d1a00 100%);
    display: flex;
    flex-direction: column;
  }
  .p-restaurant .p-nav { height: 18px; background: rgba(0,0,0,0.5); display: flex; align-items: center; padding: 0 8px; gap: 4px; }
  .p-restaurant .p-nav-dot { width: 30px; height: 3px; background: #c8860a; border-radius: 2px; }
  .p-restaurant .p-nav-links { display: flex; gap: 4px; margin-left: auto; }
  .p-restaurant .p-nav-link { width: 20px; height: 2px; background: rgba(255,255,255,0.3); border-radius: 2px; }
  .p-restaurant .p-hero { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
  .p-restaurant .p-h1 { width: 100px; height: 8px; background: #fff; border-radius: 3px; }
  .p-restaurant .p-h2 { width: 70px; height: 4px; background: #c8860a; border-radius: 3px; }
  .p-restaurant .p-btn { width: 50px; height: 12px; background: #c8860a; border-radius: 4px; margin-top: 4px; }
  .p-restaurant .p-cards { display: flex; gap: 4px; padding: 6px 8px; }
  .p-restaurant .p-card { flex: 1; height: 30px; background: rgba(200,134,10,0.2); border-radius: 3px; border: 1px solid rgba(200,134,10,0.3); }

  .p-shop {
    background: #f8f9fa;
    display: flex; flex-direction: column;
  }
  .p-shop .p-nav { height: 16px; background: #fff; display: flex; align-items: center; padding: 0 6px; gap: 3px; border-bottom: 1px solid #e0e0e0; }
  .p-shop .p-logo { width: 25px; height: 5px; background: #e44; border-radius: 2px; }
  .p-shop .p-links { display: flex; gap: 3px; margin-left: auto; }
  .p-shop .p-link { width: 15px; height: 3px; background: #bbb; border-radius: 2px; }
  .p-shop .p-hero-shop { height: 50px; background: linear-gradient(90deg, #e44 0%, #f97 100%); display: flex; align-items: center; justify-content: center; gap: 6px; }
  .p-shop .p-htxt { width: 60px; height: 5px; background: #fff; border-radius: 2px; }
  .p-shop .p-hbtn { width: 30px; height: 10px; background: #fff; border-radius: 3px; }
  .p-shop .p-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; padding: 6px; flex: 1; }
  .p-shop .p-item { background: #fff; border-radius: 3px; border: 1px solid #eee; }

  .p-handwerk {
    background: #1c2a1c;
    display: flex; flex-direction: column;
  }
  .p-handwerk .p-nav { height: 16px; background: #253125; display: flex; align-items: center; padding: 0 6px; gap: 3px; }
  .p-handwerk .p-logo { width: 20px; height: 5px; background: #5a9; border-radius: 2px; }
  .p-handwerk .p-links { display: flex; gap: 3px; margin-left: auto; }
  .p-handwerk .p-link { width: 15px; height: 2px; background: rgba(255,255,255,0.3); border-radius: 2px; }
  .p-handwerk .p-hero { flex: 1; position: relative; overflow: hidden; }
  .p-handwerk .p-bg { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(90,153,90,0.05) 0px, rgba(90,153,90,0.05) 1px, transparent 1px, transparent 10px); }
  .p-handwerk .p-content { position: relative; z-index: 1; padding: 10px 8px; }
  .p-handwerk .p-h1 { width: 80px; height: 6px; background: #5a9; border-radius: 2px; margin-bottom: 3px; }
  .p-handwerk .p-h2 { width: 110px; height: 4px; background: rgba(255,255,255,0.5); border-radius: 2px; margin-bottom: 6px; }
  .p-handwerk .p-services { display: flex; gap: 4px; }
  .p-handwerk .p-service { width: 30px; height: 28px; background: rgba(90,153,90,0.2); border-radius: 3px; border: 1px solid rgba(90,153,90,0.4); }

  .p-arzt {
    background: #f0f6ff;
    display: flex; flex-direction: column;
  }
  .p-arzt .p-nav { height: 16px; background: #fff; display: flex; align-items: center; padding: 0 6px; gap: 3px; border-bottom: 1px solid #d0e0f0; }
  .p-arzt .p-logo { width: 20px; height: 5px; background: #2979ff; border-radius: 2px; }
  .p-arzt .p-links { display: flex; gap: 3px; margin-left: auto; }
  .p-arzt .p-link { width: 15px; height: 2px; background: #aac; border-radius: 2px; }
  .p-arzt .p-hero { height: 50px; background: linear-gradient(90deg, #2979ff 0%, #00b0ff 100%); display: flex; align-items: center; justify-content: flex-start; padding: 0 8px; gap: 6px; }
  .p-arzt .p-htxt { width: 50px; height: 5px; background: #fff; border-radius: 2px; }
  .p-arzt .p-body { flex: 1; padding: 6px; display: flex; gap: 4px; }
  .p-arzt .p-col { flex: 1; display: flex; flex-direction: column; gap: 3px; }
  .p-arzt .p-line { height: 3px; background: #d0e4f8; border-radius: 2px; }
  .p-arzt .p-card-a { background: #fff; border-radius: 4px; padding: 4px; flex: 1; border: 1px solid #d0e4f8; }

  .p-immobilien {
    background: #0a0a14;
    display: flex; flex-direction: column;
  }
  .p-immobilien .p-nav { height: 16px; background: rgba(255,255,255,0.05); display: flex; align-items: center; padding: 0 6px; gap: 3px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .p-immobilien .p-logo { width: 22px; height: 4px; background: #d4af37; border-radius: 2px; }
  .p-immobilien .p-links { display: flex; gap: 3px; margin-left: auto; }
  .p-immobilien .p-link { width: 14px; height: 2px; background: rgba(212,175,55,0.4); border-radius: 2px; }
  .p-immobilien .p-hero { height: 60px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; }
  .p-immobilien .p-h1 { width: 80px; height: 6px; background: #d4af37; border-radius: 2px; }
  .p-immobilien .p-h2 { width: 50px; height: 3px; background: rgba(255,255,255,0.4); border-radius: 2px; }
  .p-immobilien .p-cards { display: flex; gap: 4px; padding: 6px 6px; }
  .p-immobilien .p-card { flex: 1; height: 40px; background: rgba(212,175,55,0.07); border: 1px solid rgba(212,175,55,0.2); border-radius: 3px; }

  .template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(91,106,240,0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    pointer-events: none;
  }
  .template-card:hover .template-overlay {
    background: rgba(91,106,240,0.15);
    opacity: 1;
    pointer-events: auto;
  }
  .overlay-btn {
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transform: translateY(6px);
    transition: transform 0.2s;
    box-shadow: 0 4px 20px rgba(91,106,240,0.4);
  }
  .template-card:hover .overlay-btn { transform: translateY(0); }

  .template-info {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
  }
  .template-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }
  .template-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border);
  }
  .tag-new { background: rgba(62,207,142,0.1); color: var(--success); border-color: rgba(62,207,142,0.3); }
  .tag-pro { background: rgba(91,106,240,0.1); color: var(--accent2); border-color: rgba(91,106,240,0.3); }

  .template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
  }
  .template-rating { color: #f5a623; }

  /* ===== VIEW 2: EDITOR ===== */
  #view-editor {
    display: none;
    width: 100%;
    height: 100%;
  }
  #view-editor.visible { display: flex; }

  .sidebar-modules {
    width: var(--module-w);
    min-width: var(--module-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .module-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .module-header h3 { font-size: 14px; font-weight: 700; }
  .module-header p { font-size: 11px; color: var(--muted); margin-top: 2px; }

  .module-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
  }
  .module-list::-webkit-scrollbar { width: 4px; }
  .module-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  .module-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 16px 6px;
  }

  .module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    transition: all 0.12s;
    border-left: 3px solid transparent;
    position: relative;
  }
  .module-item:hover { color: var(--text); background: var(--surface2); }
  .module-item.active {
    color: var(--accent2);
    background: rgba(91,106,240,0.08);
    border-left-color: var(--accent);
  }
  .module-icon { font-size: 14px; width: 18px; text-align: center; }
  .module-check {
    margin-left: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
  }
  .module-check.done {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
  }

  .module-panel {
    display: none;
    flex-direction: column;
    background: var(--surface2);
    border-top: 1px solid var(--border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .module-panel.open {
    display: flex;
    max-height: 620px;
    overflow-y: auto;
  }

  .panel-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    padding: 7px 10px;
    margin-bottom: 8px;
    outline: none;
  }
  .panel-input:focus { border-color: var(--accent); }
  .panel-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
  }

  .style-hint, .modell-hint {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(91,106,240,0.06);
    border-radius: 6px;
    border: 1px solid var(--border);
  }
  .style-color-native {
    width: 32px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0;
    cursor: pointer;
    background: transparent;
  }
  .style-hex-input {
    width: 72px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-size: 11px;
    padding: 4px 6px;
    outline: none;
    font-family: monospace;
  }
  .style-hex-input:focus { border-color: var(--accent); }
  .contrast-hint {
    font-size: 10px;
    margin-top: 4px;
    min-height: 14px;
  }
  .contrast-hint.ok { color: var(--success); }
  .contrast-hint.error { color: #f07178; }
  .style-color-field { margin-bottom: 12px; }
  .style-swatches { margin-top: 6px; }

  #editor-customer-wrap {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
  }
  #editor-customer-wrap label {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
  }
  #customer-key-input {
    width: 140px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    padding: 5px 8px;
    outline: none;
  }
  #customer-key-input:focus { border-color: var(--accent); }

  .preview-page-btns {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }
  .preview-page-btn {
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.12s;
  }
  .preview-page-btn.is-active,
  .preview-page-btn:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(91,106,240,0.08);
  }

  #live-preview-root.re-body {
    background: var(--wtg-bg-dark, #1a0a00);
    color: var(--wtg-text, #f5f0e8);
    font-family: var(--wtg-font-body, "Open Sans", system-ui, sans-serif);
    min-height: 100%;
  }

  .elmur-preview-root {
    min-height: 100%;
    padding: 0;
  }

  .preview-placeholder {
    max-width: 520px;
    margin: 60px auto;
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }

  .preview-placeholder-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
  }

  .preview-placeholder-meta {
    margin-top: 16px;
    font-size: 11px;
    color: var(--accent2);
    word-break: break-word;
  }
  #live-preview-root.re-body h1,
  #live-preview-root.re-body h2,
  #live-preview-root.re-body h3 {
    font-family: var(--wtg-font-heading, "Playfair Display", Georgia, serif);
  }

  .panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  .panel-tab {
    flex: 1;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
  }
  .panel-tab.active { color: var(--accent2); border-bottom-color: var(--accent); }

  .panel-content { padding: 12px 14px; }
  .panel-content-section { display: none; }
  .panel-content-section.active { display: block; }

  .option-group { margin-bottom: 12px; }
  .option-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
  .option-variants {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .option-variant {
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 12px;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.12s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .option-variant:hover { border-color: var(--accent); color: var(--text); }
  .option-variant.selected { border-color: var(--accent); background: rgba(91,106,240,0.1); color: var(--accent2); }
  .option-variant-icon { font-size: 12px; }

  .style-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .style-label { font-size: 12px; color: var(--muted); }
  .color-picker-row { display: flex; gap: 6px; }
  .color-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.1s;
  }
  .color-dot.selected { border-color: #fff; transform: scale(1.15); }
  .style-select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-size: 11px;
    padding: 4px 8px;
    outline: none;
  }

  .apply-btn {
    width: 100%;
    padding: 9px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
  }
  .apply-btn:hover { background: var(--accent2); }

  .preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .preview-toolbar {
    height: 44px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
  }
  .preview-label { font-size: 12px; color: var(--muted); }
  .device-btns { display: flex; gap: 4px; }
  .device-btn {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.12s;
  }
  .device-btn.active { background: var(--surface2); color: var(--text); border-color: var(--accent); }
  .preview-url {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .preview-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; }

  .preview-frame-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #1a1a2e;
  }
  .preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }

  .live-website {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    transition: all 0.3s;
  }
  .live-website::-webkit-scrollbar { width: 6px; }
  .live-website::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

  .live-nav {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: all 0.3s;
  }
  .live-nav.style-solid { background: #1a1a1a; border-bottom: 1px solid #333; }
  .live-nav.style-transparent { background: transparent; position: absolute; width: 100%; }
  .live-nav.style-colored { background: var(--accent); }

  .live-logo { font-size: 20px; font-weight: 800; }
  .live-nav-links { display: flex; gap: 24px; margin-left: auto; }
  .live-nav-link { font-size: 14px; cursor: pointer; transition: opacity 0.15s; }
  .live-nav-link:hover { opacity: 0.7; }
  .live-nav-cta {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
  }

  .live-hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 60px 40px;
    transition: all 0.3s;
  }
  .live-hero h1 { font-size: 48px; font-weight: 900; line-height: 1.1; margin-bottom: 16px; }
  .live-hero p { font-size: 18px; opacity: 0.7; max-width: 500px; margin-bottom: 28px; }
  .live-hero-btns { display: flex; gap: 12px; }
  .live-hero-btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
  }

  .live-section {
    padding: 60px 40px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .live-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
  .live-section .sub { font-size: 16px; opacity: 0.6; margin-bottom: 36px; }
  .live-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .live-card {
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
  }
  .live-card-icon { font-size: 28px; margin-bottom: 12px; }
  .live-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
  .live-card p { font-size: 14px; opacity: 0.6; }

  .live-footer {
    padding: 40px;
    text-align: center;
    font-size: 13px;
    opacity: 0.4;
    border-top: 1px solid;
    transition: all 0.3s;
  }

  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--success);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text);
    z-index: 999;
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .toast.show { transform: translateY(0); opacity: 1; }
  .toast-icon { font-size: 16px; }

  #editor-customer-wrap input.field-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.35);
  }

  .submit-success {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 14, 10, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .submit-success.visible {
    opacity: 1;
    visibility: visible;
  }
  .submit-success-card {
    width: min(100%, 440px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  }
  .submit-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
    font-size: 28px;
    line-height: 56px;
  }
  .submit-success-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
  }
  .submit-success-card p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
  }
  .submit-success-ref-label {
    margin-top: 16px !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .submit-success-ref {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--text) !important;
    letter-spacing: 0.03em;
  }
  .submit-success-hint {
    margin-bottom: 20px !important;
  }
  .submit-success-card .btn {
    min-width: 160px;
  }

  .badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
  }

  /* elmur Trades preview (amber / handwerk) */
  .p-trades {
    background: #1a1408;
    display: flex;
    flex-direction: column;
  }
  .p-trades .p-nav { height: 16px; background: #251c0a; display: flex; align-items: center; padding: 0 6px; gap: 3px; }
  .p-trades .p-logo { width: 22px; height: 5px; background: #c8860a; border-radius: 2px; }
  .p-trades .p-links { display: flex; gap: 3px; margin-left: auto; }
  .p-trades .p-link { width: 14px; height: 2px; background: rgba(255,255,255,0.35); border-radius: 2px; }
  .p-trades .p-hero { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
  .p-trades .p-h1 { width: 90px; height: 7px; background: #fff; border-radius: 3px; }
  .p-trades .p-h2 { width: 60px; height: 4px; background: #c8860a; border-radius: 2px; }
  .p-trades .p-btn { width: 44px; height: 10px; background: #c8860a; border-radius: 4px; margin-top: 2px; }
  .p-trades .p-cards { display: flex; gap: 4px; padding: 6px 8px; }
  .p-trades .p-card { flex: 1; height: 28px; background: rgba(200,134,10,0.15); border-radius: 3px; border: 1px solid rgba(200,134,10,0.35); }

  /* elmur Crafts preview (steel / handwerk) */
  .p-crafts {
    background: #0a0f14;
    display: flex;
    flex-direction: column;
  }
  .p-crafts .p-nav { height: 16px; background: #1a2332; display: flex; align-items: center; padding: 0 6px; gap: 3px; }
  .p-crafts .p-logo { width: 24px; height: 5px; background: #e67e22; border-radius: 2px; }
  .p-crafts .p-links { display: flex; gap: 3px; margin-left: auto; }
  .p-crafts .p-link { width: 14px; height: 2px; background: rgba(255,255,255,0.35); border-radius: 2px; }
  .p-crafts .p-hero { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
  .p-crafts .p-h1 { width: 92px; height: 7px; background: #e2e8f0; border-radius: 3px; }
  .p-crafts .p-h2 { width: 58px; height: 4px; background: #3498db; border-radius: 2px; }
  .p-crafts .p-btn { width: 44px; height: 10px; background: #e67e22; border-radius: 4px; margin-top: 2px; }
  .p-crafts .p-cards { display: flex; gap: 4px; padding: 6px 8px; }
  .p-crafts .p-card { flex: 1; height: 28px; background: rgba(52,152,219,0.12); border-radius: 3px; border: 1px solid rgba(230,126,34,0.35); }

  .p-crypto {
    background: linear-gradient(160deg, #0a0e17 0%, #111827 100%);
    display: flex;
    flex-direction: column;
  }
  .p-crypto .p-nav { height: 16px; background: rgba(108,92,231,0.35); display: flex; align-items: center; padding: 0 6px; gap: 3px; }
  .p-crypto .p-logo { width: 24px; height: 5px; background: #00d4ff; border-radius: 2px; }
  .p-crypto .p-links { display: flex; gap: 3px; margin-left: auto; }
  .p-crypto .p-link { width: 12px; height: 2px; background: rgba(255,255,255,0.35); border-radius: 2px; }
  .p-crypto .p-hero { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
  .p-crypto .p-h1 { width: 88px; height: 7px; background: #fff; border-radius: 3px; }
  .p-crypto .p-h2 { width: 52px; height: 4px; background: #6c5ce7; border-radius: 2px; }
  .p-crypto .p-btn { width: 40px; height: 10px; background: linear-gradient(90deg,#6c5ce7,#00d4ff); border-radius: 4px; margin-top: 2px; }
  .p-crypto .p-cards { display: flex; gap: 4px; padding: 6px 8px; }
  .p-crypto .p-card { flex: 1; height: 22px; background: rgba(0,212,255,0.12); border-radius: 3px; border: 1px solid rgba(0,212,255,0.25); }

  .p-chain {
    background: linear-gradient(160deg, #030608 0%, #0c1520 100%);
    display: flex;
    flex-direction: column;
  }
  .p-chain .p-nav { height: 16px; background: rgba(0,255,136,0.2); display: flex; align-items: center; padding: 0 6px; gap: 3px; }
  .p-chain .p-logo { width: 26px; height: 5px; background: #00ff88; border-radius: 2px; }
  .p-chain .p-links { display: flex; gap: 3px; margin-left: auto; }
  .p-chain .p-link { width: 12px; height: 2px; background: rgba(255,255,255,0.35); border-radius: 2px; }
  .p-chain .p-hero { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
  .p-chain .p-h1 { width: 90px; height: 7px; background: #e8f4f0; border-radius: 3px; }
  .p-chain .p-h2 { width: 54px; height: 4px; background: #00d4ff; border-radius: 2px; }
  .p-chain .p-btn { width: 42px; height: 10px; background: linear-gradient(90deg,#00ff88,#00d4ff); border-radius: 4px; margin-top: 2px; }
  .p-chain .p-cards { display: flex; gap: 4px; padding: 6px 8px; }
  .p-chain .p-card { flex: 1; height: 22px; background: rgba(0,255,136,0.1); border-radius: 3px; border: 1px solid rgba(0,212,255,0.3); }

  .p-bistro {
    background: linear-gradient(160deg, #1a1410 0%, #2a221c 100%);
    display: flex;
    flex-direction: column;
  }
  .p-bistro .p-nav { height: 16px; background: rgba(196,92,62,0.35); display: flex; align-items: center; padding: 0 6px; gap: 3px; }
  .p-bistro .p-logo { width: 28px; height: 5px; background: #d4a574; border-radius: 2px; }
  .p-bistro .p-links { display: flex; gap: 3px; margin-left: auto; }
  .p-bistro .p-link { width: 12px; height: 2px; background: rgba(255,255,255,0.35); border-radius: 2px; }
  .p-bistro .p-hero { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
  .p-bistro .p-h1 { width: 86px; height: 7px; background: #f5ebe0; border-radius: 3px; }
  .p-bistro .p-h2 { width: 50px; height: 4px; background: #c45c3e; border-radius: 2px; }
  .p-bistro .p-btn { width: 44px; height: 10px; background: #c45c3e; border-radius: 4px; margin-top: 2px; }
  .p-bistro .p-cards { display: flex; gap: 4px; padding: 6px 8px; }
  .p-bistro .p-card { flex: 1; height: 24px; background: rgba(212,165,116,0.15); border-radius: 3px; border: 1px solid rgba(196,92,62,0.35); }

  .template-card.is-disabled { opacity: 0.55; cursor: default; }
  .template-card.is-disabled:hover { transform: none; border-color: var(--border); box-shadow: none; }
  .branche-item.is-soon { opacity: 0.5; }

  #editor-customer-wrap input[type="text"],
  #editor-customer-wrap input[type="email"] {
    width: 120px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 11px;
    padding: 5px 8px;
    outline: none;
  }
  #editor-customer-wrap input:focus { border-color: var(--accent); }