:root {
  color-scheme: light;
  --canvas: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #f0f3ee;
  --ink: #17211b;
  --muted: #718076;
  --line: #dde5dd;
  --primary: #1c6b52;
  --primary-dark: #124d3a;
  --accent: #e4f264;
  --success: #2d8a5f;
  --danger: #bd4d45;
  --shadow: 0 18px 50px rgba(29, 51, 38, .08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-synthesis: none;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, .drop-zone:focus-visible { outline: 3px solid rgba(28, 107, 82, .25); outline-offset: 2px; }
.app-shell { min-height: 100vh; overflow: hidden; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-name { font-size: 18px; }
.brand-mark { width: 30px; height: 30px; display: flex; align-items: end; gap: 3px; padding: 5px; border-radius: 9px; background: var(--primary); transform: rotate(-3deg); }
.brand-mark span { flex: 1; background: var(--accent); border-radius: 2px 2px 1px 1px; }
.brand-mark span:nth-child(1) { height: 48%; }.brand-mark span:nth-child(2) { height: 78%; }.brand-mark span:nth-child(3) { height: 100%; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(45, 138, 95, .12); }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); display: grid; place-items: center; transition: .2s ease; }
.icon-button:hover { color: var(--primary); border-color: var(--primary); transform: rotate(-35deg); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-wrap { max-width: 1180px; margin: 0 auto; padding: 64px 28px 80px; }
.hero-block { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.eyebrow, .section-kicker { margin: 0 0 9px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 590px; margin-bottom: 14px; font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: -.06em; }
.hero-copy { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-badge { display: flex; align-items: center; gap: 9px; padding: 11px 15px; color: var(--primary-dark); background: var(--accent); border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.hero-badge svg { width: 16px; height: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 38px; }
.stat-card { min-height: 126px; padding: 21px 23px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 5px 20px rgba(29, 51, 38, .025); }
.accent-stat { background: var(--primary); color: white; border-color: var(--primary); }
.stat-label, .stat-note { display: block; font-size: 12px; font-weight: 700; }.stat-label { color: var(--muted); }.accent-stat .stat-label, .accent-stat .stat-note { color: rgba(255,255,255,.72); }
.stat-card strong { display: block; margin: 8px 0 3px; font-size: 32px; letter-spacing: -.04em; }.stat-note { color: var(--muted); font-size: 11px; font-weight: 500; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }.deploy-panel { padding: 30px; }.guide-panel { padding: 30px; background: #eff4ec; box-shadow: none; }
.panel-heading, .section-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }.panel-heading { margin-bottom: 27px; }.compact-heading { margin-bottom: 25px; }
h2 { margin-bottom: 0; font-size: 23px; letter-spacing: -.035em; }.step-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.field-label { display: block; margin: 0 0 8px; color: #435349; font-size: 12px; font-weight: 800; }.text-input { width: 100%; height: 46px; margin-bottom: 18px; padding: 0 14px; color: var(--ink); background: #fbfcfa; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: .2s ease; direction: rtl; }.text-input:focus { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(28, 107, 82, .08); outline: none; }.code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-align: left; }.select-wrap { position: relative; }.select-wrap:after { content: "⌄"; pointer-events: none; position: absolute; left: 15px; top: 10px; color: var(--muted); font-size: 18px; }.select-wrap select { appearance: none; }.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.two-fields .text-input { margin-bottom: 18px; }
.upload-sections { display: grid; gap: 9px; margin: 5px 0 20px; }.upload-section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }.upload-section-label .section-kicker { margin: 0; font-size: 10px; }.upload-section-label + .drop-zone { margin-top: 0; margin-bottom: 8px; }.drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 164px; margin: 5px 0 20px; padding: 20px; text-align: center; border: 1.5px dashed #b8cbbd; border-radius: var(--radius-md); background: #fafcf9; transition: .2s ease; }.drop-zone.dragover { border-color: var(--primary); background: #f0f8f1; transform: scale(1.01); }.upload-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; color: var(--primary); background: #e5f0e6; border-radius: 10px; }.upload-icon svg { width: 19px; }.drop-title { color: var(--ink); font-size: 13px; font-weight: 800; }.drop-hint { margin: 5px 0 10px; color: var(--muted); font-size: 11px; }.browse-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }.browse-button { min-height: 36px; padding: 6px 12px; color: var(--primary); background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }.browse-button:hover { background: var(--surface-soft); }.secondary-browse { color: var(--primary-dark); border-color: var(--line); text-decoration: none; }.file-summary { margin-top: 9px; color: var(--success); font-size: 11px; font-weight: 800; }.file-list { width: 100%; max-height: 118px; overflow: auto; margin: 10px 0 0; padding: 9px 28px 9px 9px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; text-align: right; font-size: 10px; line-height: 1.8; }.file-list li { overflow: hidden; padding: 1px 0; text-overflow: ellipsis; white-space: nowrap; }.file-list-more { color: var(--primary); font-weight: 800; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; color: white; background: var(--primary); border: 0; border-radius: var(--radius-sm); font-size: 14px; font-weight: 800; transition: .2s ease; }.primary-button:hover { background: var(--primary-dark); transform: translateY(-1px); }.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }.primary-button svg { width: 18px; }.form-message { margin: -5px 0 15px; font-size: 12px; font-weight: 700; }.error-message { color: var(--danger); }
.guide-icon { width: 30px; height: 30px; color: var(--primary); }.steps-list { list-style: none; padding: 0; margin: 0; }.steps-list li { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; border-bottom: 1px solid #dce7dc; }.steps-list li:last-child { border-bottom: 0; }.step-number { flex: 0 0 29px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: var(--primary); background: var(--accent); font-size: 12px; font-weight: 900; }.steps-list strong { display: block; margin: 2px 0 5px; font-size: 13px; }.steps-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }.tip-box { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; padding: 13px; color: var(--primary-dark); background: rgba(228, 242, 100, .45); border-radius: var(--radius-sm); }.tip-box svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }.tip-box p { margin: 0; font-size: 11px; line-height: 1.65; font-weight: 700; }
.deployments-section { margin-top: 56px; }.section-header { align-items: end; margin-bottom: 18px; }.section-header h2 { font-size: 26px; }.muted-label { color: var(--muted); font-size: 11px; }.deployments-list { display: grid; gap: 10px; }.deployment-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }.deployment-main { min-width: 0; display: flex; align-items: center; gap: 13px; }.project-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: var(--primary); background: var(--surface-soft); border-radius: 12px; }.project-icon svg { width: 20px; }.deployment-name { margin: 0 0 5px; font-size: 14px; font-weight: 800; }.deployment-meta { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.deployment-side { display: flex; align-items: center; gap: 16px; }.deploy-state { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 11px; font-weight: 800; }.deploy-state:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }.time-label { color: var(--muted); font-size: 11px; }.link-button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; color: var(--primary); background: #eef5ef; border: 0; border-radius: 8px; font-size: 11px; font-weight: 800; }.link-button:hover { background: #e1eee3; }.link-button svg { width: 15px; height: 15px; }.empty-state { padding: 42px 20px; text-align: center; border: 1px dashed #c9d7cb; border-radius: var(--radius-md); }.empty-icon { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 auto 12px; color: var(--muted); background: var(--surface-soft); border-radius: 13px; }.empty-state h3 { margin-bottom: 6px; font-size: 15px; }.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(20, 35, 27, .35); backdrop-filter: blur(5px); }.deploy-modal { width: min(440px, 100%); padding: 30px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 25px 70px rgba(22, 47, 31, .25); }.modal-top { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; color: var(--primary); font-size: 11px; font-weight: 800; }.loader { width: 14px; height: 14px; border: 2px solid #cce0ce; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }.deploy-modal h2 { margin-bottom: 9px; font-size: 25px; }.deploy-modal p { min-height: 22px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }.progress-track { height: 7px; overflow: hidden; background: var(--surface-soft); border-radius: 99px; }.progress-track span { display: block; width: 8%; height: 100%; background: var(--primary); border-radius: 99px; transition: width .6s ease; }.progress-steps { display: flex; justify-content: space-between; margin-top: 11px; color: #a4b0a7; font-size: 10px; font-weight: 700; }.progress-steps .current { color: var(--primary); }.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 13px 17px; color: white; background: #263c2e; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.17); font-size: 12px; font-weight: 700; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s ease; }.toast.show { transform: translateY(0); opacity: 1; }
.preview-view { margin-top: 38px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.preview-actions { display: flex; gap: 9px; flex-wrap: wrap; margin: -8px 0 22px; }.preview-actions .link-button { text-decoration: none; }.preview-actions button:disabled { opacity: .45; cursor: not-allowed; }
.preview-topline, .preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.back-link { color: var(--primary); font-size: 12px; font-weight: 800; text-underline-offset: 4px; }
.live-preview-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 11px; font-weight: 800; }
.preview-heading { align-items: flex-start; margin: 42px 0 25px; }
.preview-heading h2 { margin-bottom: 8px; font-size: clamp(25px, 4vw, 38px); }
.preview-description { max-width: 650px; overflow: hidden; margin: 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.preview-mark { display: grid; place-items: center; width: 48px; height: 48px; color: var(--primary); background: var(--accent); border-radius: 14px; }
.preview-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.preview-details div { min-width: 0; padding: 15px; background: var(--surface-soft); border-radius: var(--radius-sm); }
.preview-details span, .preview-details strong { display: block; }
.preview-details span { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.preview-details strong { overflow: hidden; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.preview-frame-wrap { overflow: hidden; min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.preview-frame { display: block; width: 100%; height: 520px; border: 0; background: white; }
.preview-fallback { padding: 48px 22px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-md); }
.preview-fallback .empty-icon { margin-bottom: 14px; }
.preview-fallback h3 { margin-bottom: 7px; font-size: 15px; }
.preview-fallback p { max-width: 480px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.8; }
.deployment-side { flex-wrap: wrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .topbar { height: 66px; padding: 0 18px; }.page-wrap { padding: 42px 18px 60px; }.hero-block { display: block; margin-bottom: 30px; }.hero-badge { width: fit-content; margin-top: 22px; }.stats-grid { gap: 8px; }.stat-card { min-height: 110px; padding: 15px; }.stat-card strong { font-size: 25px; }.stat-note { font-size: 10px; }.workspace-grid { grid-template-columns: 1fr; }.deploy-panel, .guide-panel { padding: 23px; }.deployments-section { margin-top: 42px; }.deployment-card { grid-template-columns: 1fr; gap: 13px; }.deployment-side { justify-content: space-between; padding-right: 55px; }.section-header h2 { font-size: 22px; } }
@media (max-width: 430px) { h1 { font-size: 39px; }.hero-copy { font-size: 14px; }.stats-grid { grid-template-columns: 1fr 1fr; }.accent-stat { grid-column: span 2; min-height: auto; }.two-fields { grid-template-columns: 1fr; gap: 0; }.deployment-side { padding-right: 0; }.status-pill { display: none; } }
@media (max-width: 560px) { .preview-view { padding: 22px; }.preview-topline, .preview-heading { align-items: flex-start; flex-direction: column; }.preview-heading { margin-top: 30px; }.preview-details { grid-template-columns: 1fr; }.preview-frame { height: 410px; } .preview-description { max-width: 100%; } }
