/* ============================================================
   Export WP Pages to Static HTML — Airy Light Admin UI (Production)
   3-column: sidebar · center progress · log panel
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg:#f4f5f7;--card:#ffffff;--card-alt:#f9fafb;
  --border:#e5e7eb;--border-lt:#f0f1f3;
  --text:#111827;--text2:#4b5563;--text3:#9ca3af;
  --accent:#4f6ef7;--accent-soft:#eef1fe;--accent-dark:#3b5be0;
  --green:#34d399;--green-start:#b8f0d8;--green-end:#6ee7a8;
  --red:#f87171;--orange:#fbbf24;
  --r:14px;--r-sm:10px;--r-xs:6px;
  --font:'Outfit',system-ui,sans-serif;
  --mono:'IBM Plex Mono','Menlo',monospace;
  --shadow:0 1px 3px rgba(0,0,0,.04),0 4px 24px rgba(0,0,0,.06);
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --t:.18s ease;
}
body.tools_page_wp-to-html #wpbody-content,
body.tools_page_wp-to-html #wpbody{background:var(--bg)!important}
#wp-to-html-app *,#wp-to-html-app *::before,#wp-to-html-app *::after{box-sizing:border-box}
#wp-to-html-app{padding:20px 0 80px;font-family:var(--font);color:var(--text);-webkit-font-smoothing:antialiased}
#wp-to-html-app h1,#wp-to-html-app h2,#wp-to-html-app h3{margin:0;padding:0}
@keyframes ehFadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes ehRingPulse{0%,100%{filter:drop-shadow(0 0 0 rgba(52,211,153,.15))}50%{filter:drop-shadow(0 0 18px rgba(52,211,153,.35))}}

/* ═══ TOP BAR ══════════════════════════════════════════════ */
.eh-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;background:var(--card);border:1px solid var(--border);border-radius:var(--r) var(--r) 0 0;padding:14px 24px;animation:ehFadeUp .4s ease both}
.eh-topbar-brand{display:flex;align-items:center;gap:12px}
.eh-topbar-icon{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--accent) 0%,#818cf8 100%);display:grid;place-items:center;box-shadow:0 2px 12px rgba(79,110,247,.25)}
.eh-topbar-icon svg{width:20px;height:20px;fill:#fff}
.eh-topbar h1,.eh-topbar-title{font-size:1.25rem;font-weight:700;letter-spacing:-.3px}
.eh-topbar small{font-size:.7rem;font-weight:500;color:var(--text3);background:var(--card-alt);border:1px solid var(--border);padding:2px 8px;border-radius:99px}
.eh-topbar-nav{display:flex;flex-wrap:wrap;gap:4px;background:transparent;border:none;padding:0;flex-basis:100%;border-top:1px solid var(--border);padding-top:10px;margin-top:2px}
.eh-topbar-nav button{border:none;background:transparent;font-family:var(--font);font-size:.85rem;font-weight:600;color:var(--text3);padding:8px 20px;border-radius:8px;cursor:pointer;transition:all var(--t)}
.eh-topbar-nav button:hover{color:var(--text);background:var(--card)}
.eh-topbar-nav button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent);box-shadow:none}
.eh-topbar-nav .eh-tab-link {
	display: inline-flex;
	align-items: center;
	background: transparent;
	font-family: var(--font);
	font-size: .85rem;
	font-weight: 600;
	color: var(--text3);
	padding: 8px 20px;
	/* border-radius: 8px; */
	cursor: pointer;
	transition: all var(--t);
	text-decoration: none;
	border-left: 1px solid #e5e7eb;
    gap: 5px;
}
.eh-topbar-nav .eh-tab-link:hover{color:var(--text);background:var(--card)}

/* ═══ 3-COL GRID ══════════════════════════════════════════ */
#wp-to-html-app .eh-grid{display:grid;grid-template-columns:1fr 1fr;background:var(--card);border:1px solid var(--border);border-top:none;border-radius:0 0 var(--r) var(--r);overflow:hidden;min-height:640px;animation:ehFadeUp .4s ease .05s both}
@media(max-width:1200px){#wp-to-html-app .eh-grid{grid-template-columns:1fr 1fr}.eh-logpanel{grid-column:1/-1}}
@media(max-width:860px){#wp-to-html-app .eh-grid{grid-template-columns:1fr}.eh-sidebar{border-right:none!important;border-bottom:1px solid var(--border);max-height:440px}}
@media(max-width:780px){
  .eh-topbar{padding:12px 16px}
  .eh-topbar-nav button,.eh-topbar-nav .eh-tab-link{padding:7px 13px;font-size:.8rem}
  .eh-topbar-utility-btn{padding:6px 11px;font-size:.79rem}
  .eh-topbar-upgrade-btn{padding:6px 12px;font-size:.79rem}
  .eh-topbar-review-btn{padding:6px 11px;font-size:.79rem}
}

/* ═══ COL 1 — SIDEBAR ═════════════════════════════════════ */
.eh-sidebar{background:var(--card-alt);border-right:1px solid var(--border);overflow-y:auto;}
.eh-sidebar::-webkit-scrollbar{width:4px}
.eh-sidebar::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}
.eh-export-head{position:sticky;top:0;z-index:5;background:var(--card);padding:10px 10px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:10px}
.eh-export-label{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--text3)}
.eh-seg{background:var(--card-alt);border:1px solid var(--border);border-radius:8px;padding:3px;gap:2px}
.eh-seg button{border:none;background:transparent;font-family:var(--font);font-size:.75rem;font-weight:600;color:var(--text3);padding:6px 13px;border-radius:6px;cursor:pointer;transition:all var(--t);white-space:nowrap}
.eh-seg button:hover:not([disabled]){color:var(--text);background:var(--card)}
.eh-seg button[aria-pressed="true"]{background:var(--card);color:var(--accent);box-shadow:var(--shadow-sm)}
.eh-seg button[disabled]{opacity:.35;cursor:not-allowed}
/* Pro-locked export options row */
.eh-seg-pro{display:flex;flex-wrap:wrap;gap:4px;background:linear-gradient(135deg,#fffbeb,#fef3c7);border:1px solid #fcd34d;border-radius:8px;padding:3px}
.eh-seg-pro button{border:none;background:transparent;font-family:var(--font);font-size:.75rem;font-weight:600;color:#92400e;padding:6px 11px;border-radius:6px;cursor:pointer;transition:all var(--t);white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
.eh-seg-pro button:hover{background:rgba(251,191,36,.25);color:#78350f}
.eh-pro-lock{width:11px;height:11px;flex-shrink:0;opacity:.8}

/* Accordion */
.eh-acc {
	border-bottom: 1px solid #ddd;
}
.eh-acc summary{display:flex;align-items:center;gap:10px;padding:13px 18px;cursor:pointer;font-size:.87rem;font-weight:600;color:var(--text);list-style:none;user-select:none;transition:background var(--t)}
.eh-acc summary:hover{background:rgba(0,0,0,.015)}
.eh-acc summary::-webkit-details-marker{display:none}
.eh-acc[open] .eh-chev{transform:rotate(180deg)}
.eh-acc-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;background:var(--border)}
.eh-acc-dot.g{background:var(--green)}.eh-acc-dot.o{background:var(--orange)}.eh-acc-dot.b{background:var(--accent)}
.eh-chev{width:16px;height:16px;margin-left:auto;flex-shrink:0;stroke:var(--text3);stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.eh-acc-body{padding:0 18px 16px;display:flex;flex-direction:column;gap:10px}

/* Typography */
.eh-muted{color:var(--text2);font-size:.82rem;line-height:1.5}
.eh-footnote{font-size:.75rem;color:var(--text3);line-height:1.5;margin-top:4px}
.eh-footnote code,.eh-muted code{background:var(--card-alt);border:1px solid var(--border);padding:1px 5px;border-radius:4px;font-family:var(--mono);font-size:.68rem;color:var(--accent)}
.eh-hint{font-size:.73rem;color:var(--text3);line-height:1.55;margin:0}

/* Inputs */
#wp-to-html-app input[type="text"],#wp-to-html-app input[type="number"],#wp-to-html-app input[type="password"],#wp-to-html-app textarea,#wp-to-html-app select{width:100%;background:var(--card);border:1.5px solid var(--border);color:var(--text);font-family:var(--font);font-size:.85rem;padding:9px 12px;border-radius:var(--r-xs);transition:border-color var(--t),box-shadow var(--t);outline:none}
#wp-to-html-app input:focus,#wp-to-html-app textarea:focus,#wp-to-html-app select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
#wp-to-html-app input::placeholder,#wp-to-html-app textarea::placeholder{color:var(--text3)}
#wp-to-html-app input:disabled,#wp-to-html-app select:disabled{opacity:.4;cursor:not-allowed}
#wp-to-html-app select{appearance:none;cursor:pointer;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}

/* Toggle */
.eh-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:.87rem;font-weight:500;color:var(--text)}
.eh-toggle input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:40px;height:22px;background:var(--border);border:none;border-radius:99px;position:relative;cursor:pointer;transition:background var(--t);flex-shrink:0}
.eh-toggle input[type="checkbox"]::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.12);transition:left var(--t)}
.eh-toggle input[type="checkbox"]:checked{background:var(--accent)}
.eh-toggle input[type="checkbox"]:checked::after{left:21px}
.eh-toggle input[type="checkbox"]:disabled{opacity:.4;cursor:not-allowed}

/* Inline checkboxes */
.eh-checks{display:flex;flex-wrap:wrap;gap:6px 16px}
.eh-checks label{display:flex;align-items:center;gap:7px;font-size:.85rem;color:var(--text2);cursor:pointer}
.eh-checks input[type="checkbox"],.eh-status{appearance:none;-webkit-appearance:none;width:17px;height:17px;border:1.5px solid var(--border);border-radius:4px;background:var(--card);position:relative;cursor:pointer;transition:all var(--t);flex-shrink:0}
.eh-checks input:checked,.eh-status:checked{background:var(--accent);border-color:var(--accent)}
.eh-checks input:checked::after,.eh-status:checked::after{content:'';position:absolute;top:2px;left:5px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}

/* Selector bar */
.eh-sel-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.eh-badge{font-size:.73rem;color:var(--text3)}.eh-badge strong{color:var(--accent);font-weight:700}

/* Search */
.eh-search{position:relative;margin-top:6px;width:100%}
.eh-search::before{content:'';position:absolute;left:10px;top:50%;transform:translateY(-50%);width:15px;height:15px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat center/contain}
.eh-search input{padding-left:34px!important}

/* Content list */
.eh-list{border:1px solid var(--border);border-radius:var(--r-xs);background:var(--card);max-height:300px;overflow:auto;padding:4px;margin-top:6px}
.eh-list::-webkit-scrollbar{width:4px}.eh-list::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}
.eh-item{display:flex;align-items:flex-start;gap:9px;padding:9px 10px;border-radius:var(--r-xs);transition:background var(--t);cursor:pointer}
.eh-item:hover{background:var(--card-alt)}
.eh-item label{display:block;line-height:1.4;cursor:pointer}
.eh-item .eh-title{font-size:.85rem;font-weight:500;color:var(--text)}
.eh-item .eh-meta{font-size:.7rem;color:var(--text3);margin-top:1px}
.eh-field-label-header {
	font-size: 16px;
	font-weight: bold;
}
.eh-toggle {
	margin: 12px 0px;
}
/* Buttons */
.eh-btn-s,#wp-to-html-app .button{font-family:var(--font);font-size:.78rem;font-weight:600;padding:6px 14px;border-radius:var(--r-xs);border:1px solid var(--border);background:var(--card);color:var(--text2);cursor:pointer;transition:all var(--t);display:inline-flex;align-items:center;gap:6px;text-decoration:none;line-height:1.4}
.eh-btn-s:hover,#wp-to-html-app .button:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
#wp-to-html-app .button.button-primary{background:var(--accent);border-color:var(--accent);color:#fff}
#wp-to-html-app .button.button-primary:hover{background:var(--accent-dark);color:#fff}
#wp-to-html-app .button.eh-danger{background:var(--red);border-color:var(--red);color:#fff}
#wp-to-html-app .button.eh-danger:hover{background:#ef4444;color:#fff}
.eh-has-icon{display:inline-flex;align-items:center;gap:7px}
.eh-icon{display:inline-flex;align-items:center;justify-content:center}
.eh-icon svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.eh-inline-spinner{display:none;vertical-align:middle;margin-left:6px}
.eh-inline-spinner.is-active{display:inline-block}

/* ═══ COL 2 — CENTER ══════════════════════════════════════ */
.eh-center{display:flex;align-items:center;justify-content:center;padding:48px 28px;background:linear-gradient(180deg,var(--card) 0%,var(--card-alt) 100%);position:relative;overflow:hidden}
.eh-center::before{content:'';position:absolute;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(52,211,153,.08) 0%,transparent 70%);pointer-events:none}
.eh-center-inner{display:flex;flex-direction:column;align-items:center;gap:28px;position:relative;z-index:1;max-width:360px;width:100%;animation:ehFadeUp .5s ease .15s both}
.eh-ring-wrap{position:relative}
.eh-ring-svg{width:200px;height:200px;animation:ehRingPulse 3s ease infinite}
.eh-ring-bg{fill:none;stroke:var(--border-lt);stroke-width:7}
.eh-ring-fg{fill:none;stroke:var(--green);stroke-width:7;stroke-linecap:round;stroke-dasharray:439.82;stroke-dashoffset:439.82;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset .6s cubic-bezier(.4,0,.2,1)}
.eh-ring-pct{font-family:var(--font);font-size:2.4rem;font-weight:800;fill:var(--text);letter-spacing:-1px}
.eh-ring-sub{font-family:var(--font);font-size:.65rem;font-weight:600;fill:var(--text3);text-transform:uppercase;letter-spacing:1px}
#wp-to-html-start{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:280px;padding:18px 36px;background:linear-gradient(135deg,var(--green-start) 0%,var(--green-end) 100%);border:none;border-radius:60px;font-family:var(--font);font-size:1.05rem;font-weight:700;color:var(--text);cursor:pointer;box-shadow:0 4px 24px rgba(110,231,168,.28);transition:all .2s ease}
#wp-to-html-start:hover{transform:translateY(-2px);box-shadow:0 8px 32px rgba(110,231,168,.38)}
#wp-to-html-start:active{transform:translateY(0)}
#wp-to-html-start:disabled{opacity:.5;cursor:not-allowed;transform:none}
#wp-to-html-start .eh-icon svg{fill:var(--text);stroke:none;width:18px;height:18px}
.eh-run-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.eh-status-bar{text-align:center}
.eh-status-bar .eh-big{font-size:1rem;font-weight:700;color:var(--text)}
.eh-result-extra{text-align:center;font-size:.85rem;color:var(--text2)}
.eh-log-link{display:block;text-align:center;margin-top:10px;font-size:.8rem;color:var(--text2);text-decoration:none;opacity:.7}
.eh-log-link:hover{opacity:1;text-decoration:underline}
.eh-zip-notice{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:8px;padding:7px 14px;border-radius:var(--r-sm);background:var(--card-alt);border:1px solid var(--border);font-size:.85rem;font-weight:600;color:var(--text)}
.eh-zip-notice-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent,#2271b1);animation:eh-zip-pulse 1s ease-in-out infinite}
@keyframes eh-zip-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}
.eh-progress{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-radius:var(--r-sm);border:1px solid var(--border);background:var(--card-alt)}
.eh-progress .eh-big{font-weight:600;color:var(--text)}

/* ═══ COL 3 — LOG ═════════════════════════════════════════ */
.eh-logpanel {
	background: var(--card-alt);
	border-left: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: ehFadeUp .4s ease .2s both;
	border-radius: 11px;
	margin-top: 10px;
}
.eh-logpanel-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--border);background:var(--card)}
.eh-logpanel-title{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--text3)}
#wp-to-html-log{flex:1;margin:0;background:#ffffff;color:#1a1c25;padding:18px;min-height:440px;max-height:600px;overflow-y:auto;overflow-x:auto;white-space:pre;font-family:var(--mono);font-size:.78rem;line-height:1.8;border:none;border-radius:0}
#wp-to-html-log::-webkit-scrollbar{width:5px;height:5px}
#wp-to-html-log::-webkit-scrollbar-thumb{background:rgba(255,255,255,.08);border-radius:3px}

.eh-divider {
	margin: 5px;
}
/* ═══ OVERLAY ══════════════════════════════════════════════ */
.eh-overlay{position:relative}
.eh-overlay::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.6);backdrop-filter:blur(2px);pointer-events:none;opacity:0;transition:opacity .2s ease;z-index:10}
.eh-overlay.eh-busy::after{opacity:1}

/* ═══ SETTINGS ═════════════════════════════════════════════ */
.eh-settings-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-sm);padding:16px;display:flex;flex-direction:column;gap:14px}
.eh-settings-title{font-size:.92rem;font-weight:700;color:var(--text)}
.eh-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.eh-field-grid .eh-field-sm{max-width:120px}
.eh-field{display:flex;flex-direction:column;gap:4px}
.eh-field-label{display:block;font-size:.73rem;font-weight:600;color:var(--text2);margin-bottom:4px}
.eh-input-row{display:flex;gap:6px;align-items:center}
.eh-input-row input{flex:1}
.eh-settings-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:4px}
@media(max-width:600px){.eh-field-grid{grid-template-columns:1fr}}

/* ═══ MODALS ══════════════════════════════════════════════ */
.eh-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35);backdrop-filter:blur(3px)}
.eh-modal-backdrop{position:absolute;inset:0}
.eh-modal-card{position:relative;background:var(--card);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow);max-width:860px;width:95%;margin:40px auto;padding:20px 24px;font-family:var(--font)}
.eh-modal-inner{background:var(--card);border:1px solid var(--border);width:95%;max-width:720px;max-height:85vh;border-radius:var(--r);box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;position:relative}
.eh-modal-head{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.eh-modal-body{padding:20px;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:12px}
.eh-modal-foot{padding:14px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px}
.eh-browser-list{border:1px solid var(--border);border-radius:6px;background:var(--card-alt);padding:10px;max-height:280px;overflow-y:auto}
.eh-preview-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px;border-bottom:1px solid var(--border-lt)}
.eh-preview-item:hover{background:var(--card-alt)}
.eh-preview-item a{text-decoration:none;font-weight:600;color:var(--accent)}
.eh-tabs{display:flex;flex-wrap:wrap;gap:6px}
.eh-tab{cursor:pointer;user-select:none;border:1px solid var(--border);background:var(--card);border-radius:99px;padding:6px 14px;font-family:var(--font);font-weight:600;font-size:.78rem;color:var(--text3);transition:all var(--t)}
.eh-tab:hover{border-color:var(--accent);color:var(--accent)}
.eh-tab.is-active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.eh-tab .eh-count{margin-left:6px;opacity:.6;font-weight:700}

/* ═══ COMPAT ══════════════════════════════════════════════ */
.eh-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.eh-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.eh-error{color:var(--red)}
.eh-pill{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--card-alt)}

/* ═══ RESPONSIVE ══════════════════════════════════════════ */
@media(max-width:580px){
  .eh-topbar{flex-direction:column;gap:10px;align-items:flex-start;padding:12px 14px}
  .eh-topbar-actions{width:100%}
  .eh-topbar-nav{width:100%;box-sizing:border-box}
  .eh-topbar-nav button,.eh-topbar-nav .eh-tab-link{flex:1;justify-content:center;padding:8px 6px;font-size:.78rem}
  .eh-topbar h1{font-size:1.05rem}
  .eh-export-head{padding:12px 14px}
  .eh-acc summary{padding:11px 14px;font-size:.82rem}
  .eh-acc-body{padding:0 14px 14px}
  .eh-center{padding:32px 20px}
  .eh-ring-svg{width:160px;height:160px}
  .eh-ring-pct{font-size:2rem}
  #wp-to-html-start{padding:14px 28px;font-size:.95rem}
}

/* ═══ FULL-WIDTH SETTINGS PAGE ════════════════════════════ */
.eh-settings-page{
  background:var(--card);
  border:1px solid var(--border);
  border-top:none;
  border-radius:0 0 var(--r) var(--r);
  overflow:hidden;
  animation:ehFadeUp .35s ease both;
}

/* Hero / header strip */
.eh-settings-hero{
  background:linear-gradient(135deg,#f8f9ff 0%,#eef1fe 100%);
  border-bottom:1px solid var(--border);
  padding:28px 36px 0;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.eh-settings-hero-inner{
  display:flex;
  align-items:center;
  gap:18px;
}
.eh-settings-hero-icon{
  width:52px;height:52px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--accent) 0%,#818cf8 100%);
  display:grid;place-items:center;
  box-shadow:0 4px 20px rgba(79,110,247,.22);
  flex-shrink:0;
}
.eh-settings-hero-icon svg{
  width:26px;height:26px;
  stroke:#fff;stroke-width:1.8;fill:none;
  stroke-linecap:round;stroke-linejoin:round;
}
.eh-settings-hero-inner h2{
  font-size:1.35rem;font-weight:800;letter-spacing:-.4px;color:var(--text);
}
.eh-settings-hero-inner p{
  font-size:.88rem;color:var(--text2);margin:3px 0 0;
}

/* Tab bar inside hero */
.eh-settings-tabs-bar{
  display:flex;gap:0;
}
.eh-settings-tab{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 22px;
  background:transparent;
  border:none;border-bottom:3px solid transparent;
  font-family:var(--font);font-size:.88rem;font-weight:600;
  color:var(--text3);cursor:pointer;
  transition:all var(--t);
  position:relative;top:1px;
}
.eh-settings-tab svg{
  width:16px;height:16px;
  stroke:currentColor;stroke-width:1.8;fill:none;
  stroke-linecap:round;stroke-linejoin:round;
}
.eh-settings-tab:hover:not([disabled]){color:var(--accent)}
.eh-settings-tab.is-active{color:var(--accent);border-bottom-color:var(--accent);background:rgba(79,110,247,.04)}
.eh-settings-tab[disabled]{opacity:.45;cursor:not-allowed}

/* Pro badge */
.eh-pro-badge{
  font-size:.62rem;font-weight:700;letter-spacing:.4px;
  background:linear-gradient(135deg,#f59e0b,#fbbf24);
  color:#fff;padding:2px 7px;border-radius:99px;
  text-transform:uppercase;
}
/* Pro upsell modal */
@keyframes eh-modal-in{from{opacity:0;transform:scale(.95) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}
.eh-pro-modal-card{position:relative;background:var(--card);width:95%;max-width:480px;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.18);overflow:hidden;animation:eh-modal-in .2s ease}
.eh-pro-modal-head{background:linear-gradient(135deg,#1d4ed8,#0ea5e9);padding:22px 20px 18px;display:flex;align-items:center;gap:12px}
.eh-pro-modal-icon{width:44px;height:44px;background:rgba(255,255,255,.22);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.eh-pro-modal-icon svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2.5}
.eh-pro-modal-title{font-size:1.05rem;font-weight:800;color:#fff;flex:1}
.eh-pro-modal-x{background:rgba(255,255,255,.2);border:none;color:#fff;width:28px;height:28px;border-radius:8px;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:background var(--t);line-height:1;padding:0}
.eh-pro-modal-x:hover{background:rgba(255,255,255,.38)}
.eh-pro-modal-body{padding:20px 22px 16px}
.eh-pro-modal-lead{font-size:.875rem;color:var(--text2);margin:0 0 16px;line-height:1.5}
.eh-pro-feat-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.eh-pro-feat-list li{display:flex;align-items:flex-start;gap:11px;font-size:.83rem;color:var(--text);line-height:1.45}
.eh-pro-feat-icon{width:28px;height:28px;background:var(--accent-soft);border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.eh-pro-feat-icon svg{width:14px;height:14px;stroke:var(--accent);fill:none;stroke-width:2}
.eh-pro-feat-list li div{padding-top:5px}
.eh-pro-feat-list strong{color:var(--text);font-weight:700}
.eh-pro-modal-foot{padding:14px 22px 20px;display:flex;gap:10px;justify-content:flex-end;align-items:center;border-top:1px solid var(--border)}
.eh-pro-modal-dismiss{background:none;border:1px solid var(--border);color:var(--text3);font-family:var(--font);font-size:.8rem;padding:8px 16px;border-radius:8px;cursor:pointer;transition:all var(--t)}
.eh-pro-modal-dismiss:hover{border-color:var(--text3);color:var(--text2)}
.eh-pro-modal-cta{display:inline-flex;align-items:center;gap:7px;background:linear-gradient(135deg,#1d4ed8,#0ea5e9);color:#fff;font-weight:700;font-size:.85rem;padding:9px 20px;border-radius:8px;text-decoration:none;transition:filter var(--t);box-shadow:0 2px 8px rgba(29,78,216,.35);font-family:var(--font)}
.eh-pro-modal-cta:hover{filter:brightness(1.08);color:#fff}
.eh-pro-modal-cta svg{width:15px;height:15px;stroke:#fff;fill:none;stroke-width:2.5;flex-shrink:0}

/* Main body */
.eh-settings-body{
  padding:32px 36px 40px;
}

/* Section: grid of blocks */
.eh-settings-section{}
.eh-settings-section-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-bottom:28px;
}
@media(max-width:900px){.eh-settings-section-grid{grid-template-columns:1fr}}

/* Individual block card */
.eh-settings-block{
  background:var(--card);
  border:1.5px solid var(--border);
  border-radius:var(--r);
  overflow:hidden;
  transition:box-shadow var(--t),border-color var(--t);
}
.eh-settings-block:hover{
  box-shadow:0 4px 24px rgba(0,0,0,.07);
  border-color:rgba(79,110,247,.18);
}
.eh-settings-block-head{
  display:flex;align-items:center;gap:14px;
  padding:18px 22px;
  background:var(--card-alt);
  border-bottom:1px solid var(--border);
}
.eh-settings-block-icon{
  width:40px;height:40px;
  border-radius:10px;
  display:grid;place-items:center;
  flex-shrink:0;
}
.eh-settings-block-icon svg{
  width:20px;height:20px;
  stroke:#fff;stroke-width:1.8;fill:none;
  stroke-linecap:round;stroke-linejoin:round;
}
.eh-settings-block-head h3{
  font-size:.95rem;font-weight:700;color:var(--text);
}
.eh-settings-block-head p{
  font-size:.78rem;color:var(--text3);margin:2px 0 0;
}
.eh-settings-block-body{
  padding:20px 22px;
  display:flex;flex-direction:column;gap:16px;
}

/* Field elements */
.eh-fs-field{display:flex;flex-direction:column;gap:5px}
.eh-fs-field.eh-fs-grow{flex:1}
.eh-fs-label{
  font-size:.73rem;font-weight:700;color:var(--text2);
  text-transform:uppercase;letter-spacing:.5px;
}
.eh-fs-hint{font-size:.73rem;color:var(--text3);line-height:1.5;margin-top:1px}
.eh-fs-row{display:flex;gap:14px;align-items:flex-end}
.eh-fs-input-row{display:flex;gap:8px;align-items:center}
.eh-fs-input-row input{flex:1}

/* Browse button */
.eh-fs-browse-btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:9px 14px;
  background:var(--card-alt);border:1.5px solid var(--border);
  border-radius:var(--r-xs);color:var(--text2);
  font-family:var(--font);font-size:.82rem;font-weight:600;
  cursor:pointer;transition:all var(--t);white-space:nowrap;
}
.eh-fs-browse-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.eh-fs-browse-btn svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* Options row */
.eh-fs-options{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:12px 14px;background:var(--card-alt);border-radius:var(--r-xs);border:1px solid var(--border-lt)}
.eh-fs-check{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:.85rem;color:var(--text2);font-weight:500}
.eh-fs-check input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:18px;height:18px;border:1.5px solid var(--border);border-radius:5px;background:var(--card);position:relative;cursor:pointer;transition:all var(--t);flex-shrink:0}
.eh-fs-check input:checked{background:var(--accent);border-color:var(--accent)}
.eh-fs-check input:checked::after{content:'';position:absolute;top:2px;left:5px;width:6px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.eh-fs-inline{display:flex;align-items:center;gap:6px;font-size:.85rem;color:var(--text2);font-weight:500}

/* Pro notice */
.eh-fs-pro-notice{
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;
  background:#fffbeb;border:1px solid #fde68a;
  border-radius:var(--r-xs);
  font-size:.83rem;color:#92400e;line-height:1.5;
}
.eh-fs-pro-notice svg{width:16px;height:16px;stroke:#f59e0b;stroke-width:1.8;fill:none;flex-shrink:0;stroke-linecap:round;stroke-linejoin:round}

/* Footer bar */
.eh-settings-footer{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px 0 0;
  border-top:1px solid var(--border);
}
.eh-settings-footer-right{display:flex;gap:10px;align-items:center}

/* Action buttons */
.eh-fs-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 22px;
  border-radius:var(--r-xs);
  font-family:var(--font);font-size:.88rem;font-weight:600;
  cursor:pointer;transition:all var(--t);border:1.5px solid transparent;
}
.eh-fs-btn svg{width:15px;height:15px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.eh-fs-btn-ghost{
  background:var(--card);border-color:var(--border);color:var(--text2);
}
.eh-fs-btn-ghost:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.eh-fs-btn-ghost:disabled{opacity:.45;cursor:not-allowed}
.eh-fs-btn-primary{
  background:linear-gradient(135deg,var(--accent) 0%,#6366f1 100%);
  border-color:transparent;color:#fff;
  box-shadow:0 2px 12px rgba(79,110,247,.25);
}
.eh-fs-btn-primary:hover{box-shadow:0 4px 20px rgba(79,110,247,.35);transform:translateY(-1px)}
.eh-fs-btn-primary:active{transform:translateY(0)}
.eh-fs-btn-primary:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}

/* Message area */
.eh-fs-msg{font-size:.83rem;color:var(--text2);line-height:1.5}
.eh-fs-msg.is-success{color:#059669}
.eh-fs-msg.is-error{color:var(--red)}

/* ═══ PREVIEW PAGINATION ══════════════════════════════════ */
.eh-preview-list-wrap{margin-top:10px;display:flex;flex-direction:column;gap:0}
#eh-preview-list{max-height:380px;overflow-y:auto;border:1px solid var(--border);border-radius:var(--r-xs) var(--r-xs) 0 0;background:var(--card)}
#eh-preview-list::-webkit-scrollbar{width:5px}
#eh-preview-list::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}

.eh-preview-pagination{
  display:flex;align-items:center;gap:4px;flex-wrap:wrap;
  padding:10px 14px;
  background:var(--card-alt);
  border:1px solid var(--border);border-top:none;
  border-radius:0 0 var(--r-xs) var(--r-xs);
}

/* Icon nav buttons */
.eh-page-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;
  border:1.5px solid var(--border);border-radius:var(--r-xs);
  background:var(--card);cursor:pointer;
  transition:all var(--t);color:var(--text2);flex-shrink:0;
}
.eh-page-btn svg{width:15px;height:15px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.eh-page-btn:hover:not([disabled]){border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.eh-page-btn[disabled]{opacity:.35;cursor:not-allowed}

/* Page number buttons */
.eh-page-numbers{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.eh-page-num{
  min-width:32px;height:32px;padding:0 6px;
  border:1.5px solid var(--border);border-radius:var(--r-xs);
  background:var(--card);
  font-family:var(--font);font-size:.8rem;font-weight:600;color:var(--text2);
  cursor:pointer;transition:all var(--t);
}
.eh-page-num:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.eh-page-num.is-active{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(79,110,247,.22)}
.eh-page-ellipsis{font-size:.82rem;color:var(--text3);padding:0 3px;line-height:32px;user-select:none}

/* Page info text */
.eh-page-info{
  margin-left:auto;
  font-size:.75rem;font-weight:500;color:var(--text3);
  white-space:nowrap;
}

/* ═══ TOPBAR ACTION BUTTONS ════════════════════════════════ */
.eh-topbar-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}

/* Upgrade to Pro button */
.eh-topbar-upgrade-btn{display:inline-flex;align-items:center;gap:7px;background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#fff;font-weight:700;font-size:.82rem;padding:8px 16px;border-radius:8px;text-decoration:none;transition:filter var(--t),box-shadow var(--t);box-shadow:0 2px 8px rgba(245,158,11,.3);font-family:var(--font);white-space:nowrap;animation:ehUpgradePulse 2.8s ease-in-out infinite}
.eh-topbar-upgrade-btn:hover{filter:brightness(1.08);color:#fff;box-shadow:0 4px 18px rgba(245,158,11,.5)}
.eh-topbar-upgrade-btn svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:2.5;flex-shrink:0}
@keyframes ehUpgradePulse{0%,100%{box-shadow:0 2px 8px rgba(245,158,11,.3)}55%{box-shadow:0 2px 18px rgba(245,158,11,.55)}}
/* Price tag inside topbar upgrade button */
.eh-upgrade-price-tag{display:inline-flex;align-items:center;gap:5px;background:rgba(0,0,0,.18);border-radius:5px;padding:2px 8px;margin-left:2px;font-size:.73rem;line-height:1.4}
.eh-upgrade-old{text-decoration:line-through;opacity:.65;font-weight:500}
.eh-upgrade-new{font-weight:800;font-size:.9rem;letter-spacing:-.02em}
.eh-upgrade-save{background:#dc2626;color:#fff;font-size:.6rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:1px 5px;border-radius:3px;line-height:1.5}
/* Modal price block */
.eh-pro-modal-price-block{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#1d4ed8,#0ea5e9);padding:16px 22px;margin:0}
.eh-modal-price-left{display:flex;flex-direction:column;gap:3px}
.eh-modal-price-label{font-size:.68rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.eh-modal-price-row{display:flex;align-items:baseline;gap:8px}
.eh-modal-price-old{font-size:1rem;text-decoration:line-through;color:rgba(255,255,255,.5);font-weight:500}
.eh-modal-price-new{font-size:2.2rem;font-weight:800;color:#fff;line-height:1;letter-spacing:-.03em}
.eh-modal-price-new::before{content:'$';font-size:1.1rem;vertical-align:super;font-weight:700}
.eh-modal-price-period{font-size:.8rem;color:rgba(255,255,255,.7);font-weight:500}
.eh-modal-price-save{font-size:.73rem;color:#bfdbfe;font-weight:500}
.eh-modal-price-badge{background:#dc2626;color:#fff;font-size:1.1rem;font-weight:900;line-height:1.1;text-align:center;width:58px;height:58px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 3px 14px rgba(220,38,38,.45);letter-spacing:-.01em}
.eh-modal-price-badge span{font-size:.62rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}

/* Rate us button */
.eh-topbar-review-btn{display:inline-flex;align-items:center;gap:6px;background:var(--card);border:1.5px solid var(--border);color:var(--text2);font-family:var(--font);font-size:.82rem;font-weight:600;padding:7px 14px;border-radius:8px;cursor:pointer;transition:all var(--t);white-space:nowrap}
.eh-topbar-review-btn:hover{border-color:#f59e0b;color:#f59e0b;background:#fffbeb}
.eh-review-stars-static{color:#f59e0b;font-size:.9rem;letter-spacing:1px}

/* ═══ REVIEW MODAL STARS ═══════════════════════════════════ */
.eh-review-stars{display:flex;gap:4px;justify-content:center;margin:8px 0 16px}
.eh-review-stars button{background:none;border:none;font-size:2.2rem;color:var(--border);cursor:pointer;transition:color .12s ease,transform .1s ease;padding:2px 4px;line-height:1}
.eh-review-stars button:hover,.eh-review-stars button.is-hovered,.eh-review-stars button.is-selected{color:#f59e0b;transform:scale(1.18)}
#eh-review-feedback{margin-top:4px;display:flex;flex-direction:column;gap:6px}
#eh-review-feedback-text{width:100%;resize:vertical;min-height:80px}

/* ── Support / Documentation utility buttons ── */
.eh-topbar-utility-btn{display:inline-flex;align-items:center;gap:6px;background:var(--card);border:1.5px solid var(--border);color:var(--text2);font-family:var(--font);font-size:.82rem;font-weight:600;padding:7px 14px;border-radius:8px;text-decoration:none;transition:all var(--t);white-space:nowrap}
.eh-topbar-utility-btn svg{width:14px;height:14px;flex-shrink:0}
.eh-topbar-utility-btn:hover{border-color:var(--accent);color:var(--accent)}

/* ── Missing PHP extension notice (settings panel) ── */
.eh-ext-notice{display:flex;align-items:flex-start;gap:12px;background:#fffbeb;border:1.5px solid #f59e0b;border-radius:var(--r);padding:14px 18px;margin-bottom:18px;font-size:.875rem;color:#78350f;line-height:1.55}
.eh-ext-notice-icon{width:20px;height:20px;flex-shrink:0;stroke:#f59e0b;margin-top:1px}
.eh-ext-notice code{background:rgba(245,158,11,.15);border-radius:4px;padding:1px 6px;font-size:.82rem;color:#92400e}
.eh-ext-notice a{color:var(--accent);text-decoration:underline;margin-left:4px}
.eh-ext-notice a:hover{text-decoration:none}

/* ══════════════════════════════════════════════════════════════════════════════
   External Site Export — Pro Feature Styles
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Tab button ─────────────────────────────────────────────────────────────── */
.eh-tab-ext-export-btn {
	position: relative;
	/* background: linear-gradient(135deg,#fffbeb,#fef3c7); */
	/* border-color: rgba(99,102,241,.3) !important; */
	/* color: #92400e !important; */
	font-weight: 600 !important;
	transition: background .2s, box-shadow .2s !important;
}
.eh-tab-ext-export-btn:hover {
    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.15)) !important;
    box-shadow: 0 0 0 2px rgba(99,102,241,.25) !important;
}
.eh-tab-ext-export-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ── Full-page wrapper ───────────────────────────────────────────────────────── */
.eh-ext-export-page {
    position: relative;
    min-height: 400px;
    font-family: inherit;
}

/* ── PRO Lock overlay ────────────────────────────────────────────────────────── */
.eh-ext-lock-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef1fe 100%);
    border-radius: 16px;
    margin: 24px 0;
}

.eh-ext-lock-card {
    background: #fff;
    border: 1px solid #e0e4f9;
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 48px rgba(99,102,241,.10);
}

.eh-ext-lock-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #fff;
}
.eh-ext-lock-icon svg { width: 36px; height: 36px; }

.eh-ext-lock-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px;
}
.eh-ext-lock-card p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.eh-ext-lock-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
    display: inline-block;
}
.eh-ext-lock-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    padding: 6px 0;
}
.eh-ext-lock-features svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #10b981;
    stroke: #10b981;
}

.eh-ext-lock-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 12px;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 18px rgba(99,102,241,.35);
}
.eh-ext-lock-cta:hover { opacity: .92; transform: translateY(-1px); color: #fff; }
.eh-ext-lock-cta svg { width: 18px; height: 18px; }

/* ── Hero bar ────────────────────────────────────────────────────────────────── */
.eh-ext-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #a78bfa 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    color: #fff;
}
.eh-ext-hero-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.eh-ext-hero-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eh-ext-hero-icon svg { width: 28px; height: 28px; color: #fff; stroke: #fff; }
.eh-ext-hero h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #fff; }
.eh-ext-hero p  { margin: 0; font-size: 14px; opacity: .88; color: #fff; }

/* ── Body / grid ─────────────────────────────────────────────────────────────── */
.eh-ext-body { padding-bottom: 40px; }

.eh-ext-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .eh-ext-grid { grid-template-columns: 1fr; }
}

/* ── Generic card ────────────────────────────────────────────────────────────── */
.eh-ext-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}
.eh-ext-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.07); }

.eh-ext-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f3f4f6;
}
.eh-ext-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.eh-ext-card-icon svg { width: 20px; height: 20px; stroke: #fff; }
.eh-ext-card-head h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: #111827; }
.eh-ext-card-head p  { margin: 0; font-size: 12px; color: #6b7280; }

.eh-ext-card-body { padding: 18px 20px; }

/* ── Mode tabs ───────────────────────────────────────────────────────────────── */
.eh-ext-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.eh-ext-mode-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: all .2s;
    text-align: center;
    font-family: inherit;
}
.eh-ext-mode-tab svg { width: 24px; height: 24px; stroke: #9ca3af; transition: stroke .2s; }
.eh-ext-mode-tab:hover { border-color: #c7d2fd; background: #eef1fe; color: #4f46e5; }
.eh-ext-mode-tab:hover svg { stroke: #6366f1; }
.eh-ext-mode-tab.is-active {
    background: linear-gradient(135deg, #eef1fe, #f5f3ff);
    border-color: #6366f1;
    color: #4f46e5;
}
.eh-ext-mode-tab.is-active svg { stroke: #6366f1; }
.eh-ext-mode-desc {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
    display: block;
    margin-top: 2px;
}
.eh-ext-mode-tab.is-active .eh-ext-mode-desc { color: #818cf8; }

/* ── URL textarea ────────────────────────────────────────────────────────────── */
#eh-ext-urls {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    font-size: 12.5px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    resize: vertical;
    color: #111827;
    background: #f9fafb;
    transition: border-color .2s;
}
#eh-ext-urls:focus { outline: none; border-color: #6366f1; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

.eh-ext-url-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ── Depth slider ────────────────────────────────────────────────────────────── */
.eh-ext-depth-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.eh-ext-depth-slider {
    flex: 1;
    accent-color: #6366f1;
    height: 4px;
    cursor: pointer;
}
.eh-ext-depth-val {
    min-width: 24px;
    font-weight: 700;
    font-size: 18px;
    color: #6366f1;
    text-align: center;
}

/* ── Launch button ───────────────────────────────────────────────────────────── */
.eh-ext-launch-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.eh-ext-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.eh-ext-start-btn svg { width: 20px; height: 20px; stroke: #fff; }
.eh-ext-start-btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(99,102,241,.42); }
.eh-ext-start-btn:active { transform: translateY(0); }
.eh-ext-start-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Progress column ─────────────────────────────────────────────────────────── */
.eh-ext-progress-col { display: flex; flex-direction: column; }

.eh-ext-progress-card { min-height: 300px; }

/* ── Stats row ───────────────────────────────────────────────────────────────── */
.eh-ext-stat-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 12px 0;
}
.eh-ext-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.eh-ext-stat-val {
    font-size: 26px;
    font-weight: 800;
    color: #6366f1;
    line-height: 1;
}
.eh-ext-stat-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

/* ── More Plugins Section ─────────────────────────────────────────────────────── */
.eh-moreplugins-wrap {
    padding: 0 0 40px;
}

.eh-moreplugins-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.eh-moreplugins-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.eh-moreplugins-header-icon svg { width: 22px; height: 22px; }

.eh-moreplugins-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px;
}

.eh-moreplugins-header p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

.eh-moreplugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 0 28px;
}

.eh-moreplugins-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
    padding: 24px 0;
}

.eh-moreplugins-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 0;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

.eh-mp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
}

.eh-mp-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.10);
    transform: translateY(-2px);
}

.eh-mp-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.eh-mp-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.eh-mp-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.eh-mp-icon-fallback {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
}

.eh-mp-icon-fallback svg { width: 22px; height: 22px; }

.eh-mp-meta { flex: 1; min-width: 0; }

.eh-mp-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.eh-mp-name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    line-height: 1.3;
}

.eh-mp-pro-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    padding: 2px 6px;
    border-radius: 5px;
    text-transform: uppercase;
}

.eh-mp-badge {
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
}

.eh-mp-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.eh-mp-stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: 1px;
}

.eh-mp-installs {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.eh-mp-tagline {
    font-size: 12px;
    font-weight: 600;
    color: #6366f1;
    margin: 0;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.eh-mp-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.eh-mp-footer {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #f3f4f6;
}

.eh-mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    transition: opacity 0.18s, transform 0.15s;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.eh-mp-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff;
}

.eh-mp-btn.is-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.eh-mp-btn.is-installed {
    background: #f3f4f6;
    color: #6b7280;
    cursor: default;
    pointer-events: none;
}
