/* ==========================================================
   Forerunner Deploy Wizard — [forerunner_deploy]
   Light theme
   ========================================================== */

/* ---------- Lucide icon base ---------- */
.fh-wizard [data-lucide] { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; flex-shrink:0; }
/* Type card icons — large, stroked */
.fh-type-card__icon [data-lucide] { width:38px; height:38px; stroke-width:1.5; color:#020D28; }
.fh-type-card.selected .fh-type-card__icon [data-lucide] { color:#020D28; }
/* Sidebar summary label icons — small */
.fh-ss-card__label [data-lucide] { width:13px; height:13px; stroke-width:2; opacity:.6; }
/* Sidebar title icon */
.fh-ss-title [data-lucide] { width:15px; height:15px; stroke-width:2; opacity:.7; }
/* Nav button icons */
.fh-btn [data-lucide] { width:16px; height:16px; stroke-width:2; }

/* ---------- Reset & base ---------- */
.fh-wizard { background:#f8fafc; color:#1e293b; padding:32px; border-radius:12px; font-family:"Red Hat Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.5; border:1px solid #e2e8f0; }
.fh-wizard *, .fh-wizard *::before, .fh-wizard *::after { box-sizing:border-box; }
.fh-wizard input[type="text"],
.fh-wizard input[type="search"],
.fh-wizard input[type="email"],
.fh-wizard input[type="password"],
.fh-wizard input[type="number"],
.fh-wizard textarea,
.fh-wizard select { background:#fff !important; color:#1e293b !important; border:1px solid #d1d5db !important; border-radius:8px; outline:none; -webkit-appearance:none; }
.fh-wizard input::placeholder,
.fh-wizard textarea::placeholder { color:#94a3b8 !important; }
.fh-wizard input:focus,
.fh-wizard textarea:focus,
.fh-wizard select:focus { border-color:#020D28 !important; box-shadow:0 0 0 3px rgba(2,13,40,.1) !important; }
.fh-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.fh-wizard-error { color:#b91c1c; background:#fef2f2; border:1px solid #fecaca; padding:14px 18px; border-radius:8px; }

/* ---------- System status ---------- */
.fh-status { display:flex; align-items:center; gap:8px; padding:10px 16px; border-radius:8px; margin-bottom:24px; font-size:14px; }
.fh-status--operational { background:#f0fdf4; border:1px solid #bbf7d0; }
.fh-status--issue { background:#fef2f2; border:1px solid #fecaca; }
.fh-status__dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.fh-status--operational .fh-status__dot { background:#22c55e; box-shadow:0 0 6px rgba(34,197,94,.5); }
.fh-status--issue .fh-status__dot { background:#ef4444; box-shadow:0 0 6px rgba(239,68,68,.5); }
.fh-status__text { font-weight:600; }
.fh-status--operational .fh-status__text { color:#15803d; }
.fh-status--issue .fh-status__text { color:#b91c1c; }
.fh-status__time { margin-left:auto; color:#94a3b8; font-size:13px; }

/* ---------- 2-Phase Navigation ---------- */
.fh-phases { display:flex; align-items:center; gap:0; margin-bottom:28px; background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:0; overflow:hidden; position:relative; }
.fh-phase { display:flex; align-items:center; gap:14px; padding:16px 24px; flex:1; cursor:pointer; transition:background .2s; }
.fh-phase:hover { background:#f8fafc; }
.fh-phase.active { background:#eef0f7; }
.fh-phase.done { background:#eef0f7; }
.fh-phase__badge { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; flex-shrink:0; transition:all .2s; background:#e2e8f0; color:#94a3b8; border:2px solid #e2e8f0; }
.fh-phase.active .fh-phase__badge { background:#020D28; color:#fff; border-color:#020D28; }
.fh-phase.done .fh-phase__badge { background:#020D28; color:#fff; border-color:#020D28; opacity:.55; }
.fh-phase__body { display:flex; flex-direction:column; gap:2px; }
.fh-phase__title { font-size:14px; font-weight:600; color:#94a3b8; transition:color .2s; }
.fh-phase.active .fh-phase__title { color:#020D28; }
.fh-phase.done .fh-phase__title { color:#020D28; opacity:.55; }
.fh-phase__sub { font-size:12px; color:#94a3b8; }
.fh-phase.active .fh-phase__sub { color:#64748b; }
.fh-phase-arrow { width:20px; height:20px; flex-shrink:0; color:#cbd5e1; }
.fh-phase__title-short { display:none; }
.fh-phase-progress { position:absolute; bottom:0; left:0; right:0; height:3px; background:#e2e8f0; }
.fh-phase-progress__fill { height:100%; background:linear-gradient(90deg,#020D28,#1a3a6e); border-radius:0 2px 2px 0; transition:width .4s ease; width:0%; }

/* ---------- Phase content pages ---------- */
.fh-phase-content { display:flex; flex-direction:column; }

/* ---------- Sections within a phase ---------- */
.fh-section { padding:28px 0; }
.fh-section:first-child { padding-top:0; }
.fh-section__hd { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.fh-section__num { width:30px; height:30px; border-radius:50%; background:#020D28; color:#fff; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fh-section__title { font-size:18px; font-weight:700; color:#0f172a; margin:0; border:none; }
.fh-section-sep { border:none; border-top:1px solid #e2e8f0; margin:0; }

/* ========================================================================
   TOP ROW: Section 1 (Server Type) + Section 2 (Location) side by side
   ======================================================================== */
.fh-top-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
}
.fh-top-row .fh-section { padding: 24px 24px 20px; margin: 0; }
.fh-top-row .fh-section--type { border-right: 1px solid #e2e8f0; }
.fh-top-row .fh-section:first-child { padding-top: 24px; }

/* ========================================================================
   STEP 1: Choose Type — 2×2 grid with description below
   ======================================================================== */
.fh-type-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.fh-type-card { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:6px; padding:14px 10px; border:2px solid #e2e8f0; border-radius:10px; background:#fff; cursor:pointer; transition:all .2s; color:#1e293b; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.fh-type-card:hover { border-color:#6b7fa8; background:#eef0f7; box-shadow:0 4px 12px rgba(2,13,40,.1); }
.fh-type-card.selected { border-color:#020D28; background:#eef0f7; box-shadow:0 0 0 1px #020D28, 0 4px 12px rgba(2,13,40,.12); }
.fh-type-card__check { position:absolute; top:6px; right:6px; width:20px; height:20px; border-radius:4px; background:#020D28; color:#fff; font-size:12px; display:none; align-items:center; justify-content:center; line-height:1; }
.fh-type-card.selected .fh-type-card__check { display:flex; }
.fh-type-card__icon { width:40px; height:40px; display:flex; align-items:center; justify-content:center; }
.fh-type-card__name { font-size:12px; font-weight:600; }

.fh-type-info { margin-top:16px; padding:18px 20px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; }
.fh-type-info h4 { font-size:16px; font-weight:700; color:#0f172a; margin:0 0 8px; border:none; }
.fh-type-info p { color:#64748b; font-size:14px; line-height:1.6; margin:0; }
.fh-type-info__link { color:#020D28; text-decoration:none; font-size:13px; font-weight:500; }
.fh-type-info__link:hover { text-decoration:underline; }

/* ========================================================================
   STEP 2: Location — 3-panel layout
   ======================================================================== */
.fh-loc-search-wrap { position:relative; margin-bottom:16px; }
.fh-loc-search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:#94a3b8; pointer-events:none; }
.fh-loc-search { width:100%; padding:10px 14px 10px 40px !important; border:1px solid #d1d5db; border-radius:8px; background:#fff; color:#1e293b; font-size:14px; outline:none; transition:border-color .2s; }
.fh-loc-search:focus { border-color:#020D28; box-shadow:0 0 0 3px rgba(2,13,40,.1); }
.fh-loc-search::placeholder { color:#94a3b8; }

.fh-loc-layout { display:flex; border:1px solid #e2e8f0; border-radius:10px; overflow:hidden; min-height:360px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.fh-loc-continents { display:flex; flex-direction:column; width:150px; flex-shrink:0; border-right:1px solid #e2e8f0; padding:6px; background:#f8fafc; }
.fh-loc-cont { position:relative; background:none; border:none; color:#64748b; padding:9px 12px 9px 14px; text-align:left; cursor:pointer; font-size:14px; transition:all .15s; border-radius:7px; width:100%; }
.fh-loc-cont:hover { color:#1e293b; background:#f1f5f9; }
.fh-loc-cont.active { color:#020D28; font-weight:600; background:#eef0f7; }
.fh-loc-cont.active::before { content:''; position:absolute; left:4px; top:50%; transform:translateY(-50%); width:3px; height:55%; background:#020D28; border-radius:3px; }

.fh-loc-cities { display:flex; flex-direction:column; width:250px; flex-shrink:0; border-right:1px solid #e2e8f0; overflow-y:auto; max-height:420px; background:#fff; }
.fh-loc-city { display:flex; align-items:center; gap:10px; padding:10px 16px; cursor:pointer; transition:all .12s; border:none; background:none; color:#374151; text-align:left; font-size:14px; width:100%; }
.fh-loc-city:hover { background:#f8fafc; color:#1e293b; }
.fh-loc-city.selected { color:#020D28; font-weight:600; background:#eef0f7; }
.fh-loc-city__flag { font-size:18px; line-height:1; flex-shrink:0; }
.fh-loc-city__name { flex:1; }
.fh-loc-city__code { color:#94a3b8; font-size:12px; flex-shrink:0; }

.fh-loc-detail { flex:1; padding:20px 24px; background:#fff; }
.fh-loc-detail__header { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.fh-loc-detail__header-text { display:flex; flex-direction:column; gap:2px; }
.fh-loc-detail__flag { font-size:32px; }
.fh-loc-detail__name { font-size:18px; font-weight:700; color:#0f172a; }
.fh-loc-detail__subtitle { font-size:13px; color:#94a3b8; }
.fh-loc-detail__section { margin-bottom:18px; }
.fh-loc-detail__section h5 { font-size:14px; font-weight:700; color:#15803d; margin:0 0 10px; border:none; }
.fh-loc-detail__badges { display:flex; flex-wrap:wrap; gap:6px; }
.fh-loc-badge { padding:5px 12px; border-radius:6px; font-size:12px; font-weight:500; background:#f1f5f9; border:1px solid #e2e8f0; color:#475569; transition:all .15s; }
.fh-loc-badge:hover { background:#eef0f7; border-color:#6b7fa8; color:#020D28; }
.fh-loc-compliance-badge { padding:4px 10px; border-radius:6px; font-size:11px; font-weight:500; background:#f0fdf4; border:1px solid #bbf7d0; color:#15803d; white-space:nowrap; }
.fh-loc-detail__status { display:flex; align-items:center; gap:8px; padding:10px 14px; border-radius:8px; background:#f0fdf4; border:1px solid #bbf7d0; font-size:13px; color:#15803d; font-weight:500; }
.fh-loc-detail__status-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 6px rgba(34,197,94,.5); flex-shrink:0; }

/* ========================================================================
   STEP 3: Image — OS grid (5-col) + App grid (paginated)
   ======================================================================== */
.fh-image-tabs { display:inline-flex !important; background:#f1f5f9 !important; border-radius:9px !important; padding:4px !important; gap:4px !important; margin-bottom:20px !important; border:none !important; border-bottom:none !important; }
.fh-image-tab { background:transparent !important; border:none !important; border-radius:6px !important; color:#64748b !important; padding:8px 22px !important; cursor:pointer !important; font-size:14px !important; font-weight:500 !important; transition:all .2s !important; margin:0 !important; line-height:1.4 !important; }
.fh-image-tab:hover { color:#1e293b !important; background:#e8edf4 !important; }
.fh-image-tab.active { background:#fff !important; color:#020D28 !important; font-weight:600 !important; box-shadow:0 1px 4px rgba(2,13,40,.12) !important; }

.fh-search { width:100%; padding:10px 14px; border:1px solid #d1d5db; border-radius:8px; background:#fff; color:#1e293b; font-size:14px; margin-bottom:0; outline:none; transition:border-color .2s; }
.fh-search:focus { border-color:#020D28; box-shadow:0 0 0 3px rgba(2,13,40,.1); }
.fh-search::placeholder { color:#94a3b8; }

.fh-image-toolbar { display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
.fh-chip-row { display:flex; flex-wrap:wrap; gap:6px; }
.fh-chip { background:#fff; border:1px solid #e2e8f0; color:#475569; border-radius:999px; padding:5px 12px; font-size:12px; font-weight:600; cursor:pointer; transition:all .15s; }
.fh-chip:hover { border-color:#94a3b8; color:#0f172a; }
.fh-chip.active { background:#020D28; border-color:#020D28; color:#fff; }

/* OS Grid: 5 per row */
.fh-os-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.fh-os-card { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:22px 10px 14px; border:2px solid #e2e8f0; border-radius:12px; background:#fff; cursor:pointer; transition:all .2s; color:#1e293b; min-height:148px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.fh-os-card:hover { border-color:#6b7fa8; background:#eef0f7; }
.fh-os-card.selected { border-color:#020D28; background:#eef0f7; box-shadow:0 0 0 1px #020D28; }
.fh-os-card__check { position:absolute; top:6px; right:6px; width:20px; height:20px; border-radius:4px; background:#020D28; color:#fff; font-size:12px; display:none; align-items:center; justify-content:center; line-height:1; }
.fh-os-card.selected .fh-os-card__check { display:flex; }
.fh-os-card__icon { width:56px; height:56px; border-radius:12px; background-color:var(--fh-icon-color,#f1f5f9); background-size:70%; background-position:center; background-repeat:no-repeat; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.fh-os-card__name { font-size:13px; font-weight:600; }
.fh-os-card__version { background:#f8fafc; border:1px solid #e2e8f0; color:#374151; padding:3px 6px; border-radius:4px; font-size:11px; width:100%; max-width:140px; cursor:pointer; text-align:center; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 4px center; background-size:14px; padding-right:20px; }
.fh-os-card__version:focus { border-color:#020D28; outline:none; }
.fh-os-card__ver-text { font-size:11px; color:#94a3b8; }
.fh-os-card.incompatible { opacity:.4; cursor:not-allowed; }

/* App Grid: 4 per row */
.fh-app-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.fh-app-card { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:22px 12px 14px; border:2px solid #e2e8f0; border-radius:12px; background:#fff; cursor:pointer; transition:all .2s; color:#1e293b; box-shadow:0 1px 2px rgba(0,0,0,.04); min-height:148px; }
.fh-app-card:hover { border-color:#6b7fa8; background:#eef0f7; }
.fh-app-card.selected { border-color:#020D28; background:#eef0f7; box-shadow:0 0 0 1px #020D28; }
.fh-app-card__icon { width:56px; height:56px; border-radius:12px; background-color:var(--fh-icon-color,#f1f5f9); background-size:70%; background-position:center; background-repeat:no-repeat; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.fh-app-card__name { font-size:13px; font-weight:600; line-height:1.3; }
.fh-app-card__os { font-size:11px; color:#94a3b8; }
.fh-app-card.fh-hidden { display:none; }
.fh-os-card.fh-hidden { display:none; }

/* Pagination */
.fh-app-pager { display:flex; align-items:center; justify-content:space-between; margin-top:14px; padding:8px 0; }
.fh-app-pager__left, .fh-app-pager__right { display:flex; align-items:center; gap:6px; }
.fh-page-btn { background:#f8fafc; border:1px solid #e2e8f0; color:#374151; width:32px; height:32px; border-radius:6px; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; transition:all .15s; }
.fh-page-btn:hover:not(:disabled) { background:#e2e8f0; color:#1e293b; }
.fh-page-btn:disabled { opacity:.35; cursor:not-allowed; }
.fh-page-select { background:#f8fafc; border:1px solid #e2e8f0; color:#374151; padding:4px 8px; border-radius:6px; font-size:13px; cursor:pointer; }
.fh-page-select:focus { outline:none; border-color:#020D28; }
.fh-app-pager__right span { font-size:13px; color:#94a3b8; }
.fh-app-count { font-size:12px; color:#94a3b8; margin-left:8px; }
.fh-field-hint { font-size:12px; color:#94a3b8; margin:6px 0 0; }
.fh-fw-create { display:flex; gap:8px; margin-top:8px; }
.fh-fw-create .fh-input { flex:1; }

/* Brand icons: image when available, letter mark otherwise */
.fh-icon--has-img { background-image:none !important; background-color:#f8fafc !important; }
.fh-icon--has-img .fh-icon-letter { display:none; }
.fh-icon-letter { font-size:15px; font-weight:700; color:#fff; letter-spacing:-.02em; line-height:1; }
.fh-os-card__icon img, .fh-app-card__icon img { width:64%; height:64%; object-fit:contain; display:block; }

@media (max-width: 900px) {
  .fh-os-grid { grid-template-columns:repeat(3,1fr); }
  .fh-app-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 560px) {
  .fh-os-grid { grid-template-columns:repeat(2,1fr); }
}

.fh-os-icon--ubuntu   { background-color:rgba(233,84,32,.15); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23E95420'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='16' font-weight='bold' fill='white' font-family='sans-serif'%3EU%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--debian   { background-color:rgba(215,7,81,.1); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23A80030'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='16' font-weight='bold' fill='white' font-family='sans-serif'%3ED%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--centos   { background-color:rgba(147,42,142,.1); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='6' fill='%23932A8E'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='14' font-weight='bold' fill='white' font-family='sans-serif'%3ECS%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--fedora   { background-color:rgba(60,110,180,.12); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%233C6EB4'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='16' font-weight='bold' fill='white' font-family='sans-serif'%3EF%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--rocky    { background-color:rgba(16,184,129,.1); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%2310B981'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='16' font-weight='bold' fill='white' font-family='sans-serif'%3ER%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--almalinux{ background-color:rgba(1,72,153,.12); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%230148A6'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='14' font-weight='bold' fill='white' font-family='sans-serif'%3EAL%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--arch     { background-color:rgba(23,147,209,.1); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%231793D1'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='16' font-weight='bold' fill='white' font-family='sans-serif'%3EA%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--freebsd  { background-color:rgba(171,0,0,.1); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23AB0000'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='12' font-weight='bold' fill='white' font-family='sans-serif'%3EFB%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--openbsd  { background-color:rgba(245,211,0,.1); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23F5D300'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='12' font-weight='bold' fill='%23333' font-family='sans-serif'%3EOB%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--opensuse { background-color:rgba(115,186,37,.1); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%2373BA25'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='12' font-weight='bold' fill='white' font-family='sans-serif'%3EoS%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--flatcar  { background-color:rgba(48,140,210,.1); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23308CD2'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-size='12' font-weight='bold' fill='white' font-family='sans-serif'%3EFC%3C/text%3E%3C/svg%3E"); }
.fh-os-icon--windows  { background-color:rgba(0,120,215,.12); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='6' fill='%230078D7'/%3E%3Crect x='6' y='6' width='12' height='12' fill='white' opacity='.8'/%3E%3Crect x='22' y='6' width='12' height='12' fill='white' opacity='.8'/%3E%3Crect x='6' y='22' width='12' height='12' fill='white' opacity='.8'/%3E%3Crect x='22' y='22' width='12' height='12' fill='white' opacity='.8'/%3E%3C/svg%3E"); }
.fh-os-icon--alpine   { background-color:rgba(13,88,144,.12); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%230D5890'/%3E%3Cpath d='M20 10 L30 28 L10 28 Z' fill='white' opacity='.8'/%3E%3C/svg%3E"); }
.fh-os-icon--linux,
.fh-os-icon--app      { background-color:#f1f5f9; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M20 3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H4V7h16v12zM6 10l2 2-2 2 1.4 1.4L10.8 12 7.4 8.6 6 10zm4 4h6v2h-6v-2z'/%3E%3C/svg%3E"); }
.fh-os-icon--wordpress { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2321759b' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20z'/%3E%3C/svg%3E"); }
.fh-os-icon--docker   { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232496ED' d='M13 11h-2v2h2v-2zm0-3h-2v2h2V8zm3 0h-2v2h2V8zm0 3h-2v2h2v-2zm3-3h-2v2h2V8zm0 3h-2v2h2v-2zM8 8H6v2h2V8zm0 3H6v2h2v-2zm0-6H6v2h2V5z'/%3E%3C/svg%3E"); }
.fh-os-icon--plesk    { background-color:rgba(82,187,231,.12); }
.fh-os-icon--cpanel   { background-color:rgba(255,108,44,.12); }
.fh-os-icon--nginx    { background-color:rgba(0,150,57,.12); }
.fh-os-icon--apache   { background-color:rgba(210,33,40,.1); }
.fh-os-icon--drupal   { background-color:rgba(6,120,190,.12); }
.fh-os-icon--magento  { background-color:rgba(242,99,34,.1); }
.fh-os-icon--nextcloud{ background-color:rgba(0,130,201,.12); }
.fh-os-icon--gitlab   { background-color:rgba(252,109,38,.1); }
.fh-os-icon--joomla   { background-color:rgba(91,109,170,.12); }
.fh-os-icon--openvpn  { background-color:rgba(234,133,0,.1); }
.fh-os-icon--minecraft{ background-color:rgba(97,67,47,.12); }
.fh-os-icon--coolify  { background-color:rgba(101,67,236,.1); }
.fh-os-icon--laravel  { background-color:rgba(255,45,32,.08); }
.fh-os-icon--cloudpanel { background-color:rgba(0,137,255,.1); }
.fh-os-icon--openlitespeed { background-color:rgba(0,131,54,.1); }
.fh-os-icon--cyberpanel { background-color:rgba(0,131,54,.1); }

/* ========================================================================
   STEP 4: Plan — toolbar + sidebar + card grid
   ======================================================================== */

/* Toolbar */
.fh-plan-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
.fh-plan-toolbar__left { display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.fh-plan-toolbar__right { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.fh-plan-toolbar__count { font-size:13px; color:#94a3b8; white-space:nowrap; }
.fh-plan-toolbar__sort-label { font-size:13px; color:#64748b; white-space:nowrap; }
.fh-plan-toolbar__sort-select { background:#fff; border:1px solid #d1d5db; color:#374151; padding:7px 28px 7px 10px; border-radius:6px; font-size:13px; cursor:pointer; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 6px center; background-size:16px; outline:none; }
.fh-plan-toolbar__sort-select:focus { border-color:#020D28; }
.fh-plan-toolbar__dir-btn { background:#f8fafc; border:1px solid #e2e8f0; color:#374151; width:34px; height:34px; border-radius:6px; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; transition:all .15s; }
.fh-plan-toolbar__dir-btn:hover { background:#e2e8f0; color:#1e293b; }

.fh-plan-search-wrap { position:relative; flex:1; min-width:180px; max-width:320px; }
.fh-plan-search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:#94a3b8; pointer-events:none; }
.fh-plan-search { width:100%; padding:8px 12px 8px 36px !important; border:1px solid #d1d5db; border-radius:6px; background:#fff; color:#1e293b; font-size:13px; outline:none; transition:border-color .2s; }
.fh-plan-search:focus { border-color:#020D28; box-shadow:0 0 0 3px rgba(2,13,40,.1); }
.fh-plan-search::placeholder { color:#94a3b8; }

/* Layout */
.fh-plan-layout { display:flex; border:1px solid #e2e8f0; border-radius:12px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.fh-plan-sidebar { width:200px; flex-shrink:0; border-right:1px solid #e2e8f0; padding:6px; display:flex; flex-direction:column; background:#f8fafc; }
.fh-plan-cat { position:relative; background:none; border:none; color:#64748b; padding:9px 12px 9px 14px; text-align:left; cursor:pointer; font-size:14px; transition:all .15s; border-radius:7px; display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; }
.fh-plan-cat:hover { color:#1e293b; background:#f1f5f9; }
.fh-plan-cat.active { color:#020D28; font-weight:600; background:#eef0f7; }
.fh-plan-cat.active::before { content:''; position:absolute; left:4px; top:50%; transform:translateY(-50%); width:3px; height:55%; background:#020D28; border-radius:3px; }
.fh-plan-cat__label { flex:1; }
.fh-plan-cat__count { font-size:11px; background:#e2e8f0; padding:2px 7px; border-radius:10px; color:#64748b; font-weight:500; }
.fh-plan-cat.active .fh-plan-cat__count { background:#dde3ef; color:#020D28; }
.fh-plan-about { padding:14px 18px; margin-top:auto; border-top:1px solid #e2e8f0; }
.fh-plan-about__title { font-size:12px; font-weight:700; color:#94a3b8; margin:0 0 6px; border:none; }
.fh-plan-about__text { font-size:12px; color:#94a3b8; line-height:1.5; margin:0; }

/* Card grid */
.fh-plan-grid-wrap { flex:1; padding:16px; overflow-y:auto; max-height:520px; background:#fff; }
.fh-plan-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }

/* Loading state */
.fh-plan-loading { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:48px 20px; gap:12px; color:#94a3b8; }
.fh-plan-loading__spinner { width:32px; height:32px; border:3px solid #e2e8f0; border-top-color:#020D28; border-radius:50%; animation:fh-spin .7s linear infinite; }
@keyframes fh-spin { to { transform:rotate(360deg); } }

/* Plan card */
.fh-pcard { position:relative; background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:16px; cursor:pointer; transition:all .2s ease; display:flex; flex-direction:column; gap:12px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.fh-pcard:hover { border-color:#6b7fa8; background:#f8fbff; transform:translateY(-1px); box-shadow:0 4px 12px rgba(2,13,40,.1); }
.fh-pcard.selected { border-color:#020D28; background:#eef0f7; box-shadow:0 0 0 1px #020D28, 0 4px 16px rgba(2,13,40,.12); }
.fh-pcard.selected::after { content:'\2713'; position:absolute; top:10px; right:10px; width:22px; height:22px; background:#020D28; color:#fff; border-radius:50%; font-size:12px; display:flex; align-items:center; justify-content:center; font-weight:700; }
.fh-pcard.incompatible { opacity:.35; cursor:not-allowed; pointer-events:none; }

.fh-pcard__header { display:flex; flex-direction:column; gap:4px; }
.fh-pcard__name { font-size:13px; font-weight:600; color:#0f172a; letter-spacing:.2px; }
.fh-pcard__type { font-size:11px; color:#94a3b8; font-weight:500; }

.fh-pcard__specs { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px 0; border-top:1px solid #f1f5f9; border-bottom:1px solid #f1f5f9; }
.fh-pcard__spec { display:flex; align-items:center; gap:6px; }
.fh-pcard__spec svg { width:14px; height:14px; color:#cbd5e1; flex-shrink:0; }
.fh-pcard__spec-val { font-size:14px; font-weight:700; color:#1e293b; }
.fh-pcard__spec-unit { font-size:11px; color:#94a3b8; }

.fh-pcard__footer { display:flex; align-items:baseline; justify-content:space-between; }
.fh-pcard__price { display:flex; align-items:baseline; gap:1px; }
.fh-pcard__price-main { font-size:20px; font-weight:700; background:linear-gradient(135deg,#020D28,#1a3a6e); -webkit-background-clip:text; background-clip:text; color:transparent; }
.fh-pcard__price-period { font-size:13px; color:#64748b; font-weight:500; }
.fh-pcard__price-hourly { font-size:11px; color:#94a3b8; }

/* GPU info in plan cards */
.fh-pcard__gpu { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding-bottom:8px; }
.fh-pcard__gpu-badge { font-size:10px; font-weight:700; padding:2px 7px; border-radius:4px; text-transform:uppercase; letter-spacing:.5px; }
.fh-pcard__gpu-badge--nvidia { background:rgba(118,185,0,.1); color:#4a7c00; border:1px solid rgba(118,185,0,.25); }
.fh-pcard__gpu-badge--amd { background:rgba(237,28,36,.08); color:#c00; border:1px solid rgba(237,28,36,.2); }
.fh-pcard__gpu-name { font-size:12px; font-weight:600; color:#374151; }
.fh-pcard__gpu-vram { font-size:11px; color:#94a3b8; margin-left:auto; }
.fh-pcard--gpu .fh-pcard__header { padding-bottom:6px; }
.fh-pcard--gpu { border-color:#e2e8f0; }
.fh-pcard--gpu:hover { border-color:rgba(118,185,0,.4); background:#f9ffe6; }
.fh-pcard--gpu.selected { border-color:#4a7c00; box-shadow:0 0 0 1px #4a7c00, 0 4px 16px rgba(118,185,0,.1); }
.fh-pcard--gpu.selected::after { background:#4a7c00; }

.fh-placeholder { color:#94a3b8; font-style:italic; padding:24px; text-align:center; }

/* ========================================================================
   STEP 5: Features
   ======================================================================== */
.fh-features { display:flex; flex-direction:column; gap:24px; }
.fh-feature-group h4 { font-size:16px; font-weight:600; color:#0f172a; margin:0 0 12px; border:none; }
.fh-ssh-keys { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.fh-ssh-key { display:flex; align-items:center; gap:10px; padding:8px 12px; border:1px solid #e2e8f0; border-radius:6px; background:#fff; cursor:pointer; transition:all .15s; }
.fh-ssh-key:hover { border-color:#6b7fa8; }
.fh-ssh-key.selected { border-color:#020D28; background:#eef0f7; }
.fh-ssh-key__name { font-size:14px; font-weight:500; color:#1e293b; }
.fh-ssh-key__fingerprint { font-size:11px; color:#94a3b8; font-family:monospace; }
.fh-ssh-form { display:flex; flex-direction:column; gap:10px; padding:16px; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; margin-top:8px; }
.fh-ssh-form__actions { display:flex; gap:8px; }

.fh-toggles { display:flex; flex-direction:column; gap:12px; }
.fh-toggle { display:flex; align-items:center; gap:12px; cursor:pointer; padding:10px 14px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; transition:all .15s; }
.fh-toggle:hover { border-color:#6b7fa8; background:#f8fafc; }
.fh-toggle input { display:none; }
.fh-toggle__slider { position:relative; width:44px; height:24px; background:#cbd5e1; border-radius:12px; transition:background .2s; flex-shrink:0; }
.fh-toggle__slider::after { content:''; position:absolute; width:18px; height:18px; background:#fff; border-radius:50%; top:3px; left:3px; transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.fh-toggle input:checked ~ .fh-toggle__slider { background:#020D28; }
.fh-toggle input:checked ~ .fh-toggle__slider::after { transform:translateX(20px); }
.fh-toggle__label { font-size:14px; font-weight:500; color:#1e293b; flex:1; }
.fh-toggle__price { font-size:12px; color:#94a3b8; }

/* Select & Input */
.fh-select, .fh-input, .fh-textarea { width:100%; padding:10px 14px; border:1px solid #d1d5db; border-radius:8px; background:#fff; color:#1e293b; font-size:14px; outline:none; transition:border-color .2s; }
.fh-select:focus, .fh-input:focus, .fh-textarea:focus { border-color:#020D28; box-shadow:0 0 0 3px rgba(2,13,40,.1); }
.fh-select::placeholder, .fh-input::placeholder, .fh-textarea::placeholder { color:#94a3b8; }
.fh-select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; background-size:20px; padding-right:35px; }
.fh-textarea { resize:vertical; min-height:80px; font-family:monospace; font-size:13px; }
.fh-field { display:flex; flex-direction:column; gap:6px; }
.fh-field label { font-size:14px; font-weight:500; color:#374151; }
.fh-settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* ========================================================================
   STEP 7: Summary
   ======================================================================== */
.fh-summary { border:1px solid #e2e8f0; border-radius:10px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.fh-summary__grid { display:flex; flex-direction:column; }
.fh-summary__row { display:flex; justify-content:space-between; padding:14px 20px; border-bottom:1px solid #f1f5f9; }
.fh-summary__row:last-child { border-bottom:none; }
.fh-summary__row--total { background:#eef0f7; }
.fh-summary__label { color:#64748b; font-size:14px; }
.fh-summary__value { font-weight:600; font-size:14px; color:#1e293b; }
.fh-summary__price { font-size:20px; background:linear-gradient(90deg,#020D28,#1a3a6e); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ========================================================================
   Navigation
   ======================================================================== */
.fh-nav { display:flex; justify-content:space-between; margin-top:28px; padding-top:20px; border-top:1px solid #e2e8f0; }
.fh-btn { padding:12px 28px; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; border:none; transition:all .2s; }
.fh-btn--primary { background:#020D28; color:#fff; }
.fh-btn--primary:hover { background:#0a1f42; }
.fh-btn--primary:disabled { background:#e2e8f0; color:#94a3b8; cursor:not-allowed; }
.fh-btn--outline { background:#fff; color:#374151; border:1px solid #d1d5db; }
.fh-btn--outline:hover { border-color:#94a3b8; color:#1e293b; background:#f8fafc; }
.fh-btn--deploy { background:linear-gradient(90deg,#020D28,#1a3a6e); color:#fff; padding:14px 36px; font-size:16px; }
.fh-btn--deploy:hover { opacity:.9; }
.fh-btn--deploy:disabled { opacity:.4; cursor:not-allowed; }
.fh-btn--sm { padding:8px 16px; font-size:13px; }

/* ========================================================================
   Responsive
   ======================================================================== */
@media(max-width:1024px){
  .fh-top-row { grid-template-columns: 1fr; }
  .fh-top-row .fh-section--type { border-right: none; border-bottom: 1px solid #e2e8f0; }
  .fh-loc-layout { flex-direction:column; }
  .fh-loc-continents { width:100%; flex-direction:row; flex-wrap:wrap; border-right:none; border-bottom:1px solid #e2e8f0; padding:6px; gap:4px; }
  .fh-loc-cont { border-radius:6px; padding:7px 12px; }
  .fh-loc-cont.active::before { display:none; }
  .fh-loc-cont.active { border-bottom:2px solid #020D28; border-radius:6px 6px 0 0; }
  .fh-loc-cities { width:100%; flex-direction:row; flex-wrap:wrap; max-height:none; border-right:none; border-bottom:1px solid #e2e8f0; }
  .fh-loc-city { width:auto; flex:0 0 auto; }
  .fh-plan-layout { flex-direction:column; }
  .fh-plan-sidebar { width:100%; flex-direction:row; flex-wrap:wrap; border-right:none; border-bottom:1px solid #e2e8f0; padding:6px; gap:4px; }
  .fh-plan-cat { border-radius:6px; padding:7px 12px; }
  .fh-plan-cat.active::before { display:none; }
  .fh-plan-cat.active { border-bottom:2px solid #020D28; border-radius:6px 6px 0 0; }
  .fh-plan-about { display:none; }
  .fh-plan-grid { grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); }
}
@media(max-width:768px){
  .fh-wizard { padding:20px 16px; }
  .fh-phases { margin-bottom:20px; }
  .fh-phase { padding:12px 14px; gap:10px; }
  .fh-phase__badge { width:30px; height:30px; font-size:13px; }
  .fh-phase__title { font-size:13px; }
  .fh-phase__sub { font-size:11px; }
  .fh-phase-arrow { width:16px; height:16px; }
  .fh-os-grid { grid-template-columns:repeat(3,1fr); }
  .fh-app-grid { grid-template-columns:repeat(2,1fr); }
  .fh-settings-grid { grid-template-columns:1fr; }
  .fh-progress__label { display:none; }
  .fh-progress__steps { gap:4px; }
  .fh-plan-toolbar { flex-direction:column; align-items:stretch; }
  .fh-plan-toolbar__left { flex-direction:column; }
  .fh-plan-search-wrap { max-width:none; }
  .fh-plan-grid { grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); }
  /* Hide the location detail panel on mobile — city list is all that's needed */
  .fh-loc-detail { display:none; }
  .fh-loc-layout { min-height:0; }
}
@media(max-width:480px){
  .fh-os-grid { grid-template-columns:repeat(2,1fr); }
  .fh-app-grid { grid-template-columns:repeat(2,1fr); }
  .fh-type-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .fh-plan-grid { grid-template-columns:1fr; }
  .fh-phase { padding:10px 12px; gap:8px; }
  .fh-phase__badge { width:26px; height:26px; font-size:12px; border-width:2px; }
  .fh-phase__title { font-size:12px; }
  .fh-phase__title-long { display:none; }
  .fh-phase__title-short { display:inline; }
  .fh-phase__sub { display:none; }
  .fh-phase-arrow { width:14px; height:14px; }
}

/* ========================================================================
   Wizard two-column layout + real-time deploy summary sidebar
   ======================================================================== */
.fh-wizard-layout {
  display:flex;
  gap:24px;
  align-items:flex-start;
}
.fh-wizard-main {
  flex:1;
  min-width:0;
}

/* ---------- Sidebar ---------- */
.fh-sidebar-summary {
  width:260px;
  flex-shrink:0;
  position:sticky;
  top:20px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.fh-ss-title {
  font-size:16px;
  font-weight:700;
  color:#0f172a;
  margin:0 0 4px;
  padding-bottom:12px;
  border-bottom:1px solid #e2e8f0;
}

/* Cards */
.fh-ss-card {
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:10px 12px;
}
.fh-ss-card--price {
  background:#eef0f7;
  border-color:#bfdbfe;
}
.fh-ss-card__label {
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#64748b;
  margin-bottom:4px;
}
.fh-ss-card__val {
  font-size:14px;
  font-weight:600;
  color:#1e293b;
  line-height:1.3;
}
.fh-ss-card__val.fh-ss-empty {
  color:#94a3b8;
  font-weight:400;
}
.fh-ss-card--price .fh-ss-card__val {
  color:#020D28;
}
.fh-ss-price-main {
  font-size:18px;
  font-weight:700;
}
.fh-ss-price-hr {
  font-size:12px;
  color:#475569;
  font-weight:500;
}

/* Paired (side-by-side) cards */
.fh-ss-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

/* ---------- Responsive: collapse sidebar below wizard on small screens ---------- */
@media(max-width:900px) {
  .fh-wizard-layout { flex-direction:column; }
  .fh-sidebar-summary {
    width:100%;
    position:static;
    flex-direction:row;
    flex-wrap:wrap;
    gap:10px;
  }
  .fh-ss-title { width:100%; border-bottom:none; padding-bottom:0; margin-bottom:0; }
  .fh-ss-card, .fh-ss-row { flex:1 1 140px; min-width:130px; }
  .fh-ss-row { display:contents; }
}
