﻿:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #14213d;
  --accent: #fca311;
  --line: #d7dbe7;
}
* { box-sizing: border-box; font-family: "Segoe UI", Tahoma, sans-serif; }
html, body { direction: rtl; text-align: right; }
body { margin: 0; background: linear-gradient(140deg, #f6f7fb, #edf2f7); color: var(--ink); }
input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="tel"] { direction: ltr; text-align: left; }
.container { max-width: 900px; margin: 0 auto; padding: 14px; }
h1 { margin: 10px 0 16px; }
.appHeader {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 16px;
  margin: 8px 0 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}
.appBrandName {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.appBrandTag {
  margin: 4px 0 0;
  font-size: 14px;
  color: #52607a;
}
.appUserLine { margin: 0; font-size: 13px; }
.authCard { border-color: #d4dce8; }
.authActions { flex-wrap: wrap; align-items: center; gap: 8px; }
.authDivider { text-align: center; margin: 12px 0 8px; font-size: 0.9rem; }
.googleLoginBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #d4dce8;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
  cursor: pointer;
}
.googleLoginBtn:hover { background: #f8fafc; }
.googleLoginBtn:disabled { opacity: 0.6; cursor: not-allowed; }
.linkBtn {
  background: none;
  border: none;
  color: #b45309;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
}
.adminInviteCheck { display: block; margin-top: 8px; font-size: 13px; }
.adminInviteCheck input { margin-left: 6px; }
.authSub { margin: 0 0 12px; line-height: 1.45; }
.adminDangerZone {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e8b4b4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.adminDangerZone button { flex: 0 1 auto; min-height: 40px; font-size: 13px; }

/* ——— דף נחיתה ——— */
.landing {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(20, 33, 61, 0.07);
}
.landingHero { margin-bottom: 22px; }
.landingEyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.02em;
}
.landingTitle {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.landingLead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: #334155;
  max-width: 52rem;
}
.landingCtas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.landingCtaPrimary { min-width: 180px; font-size: 17px; padding: 12px 20px; }
.landingCtaSecondary {
  min-width: 180px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}
.authSub a { color: #b45309; font-weight: 600; }
.landingFeatures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (min-width: 640px) {
  .landingFeatures { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .landingFeatures { grid-template-columns: repeat(4, 1fr); }
}
.landingFeature {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfcff;
}
.landingFeature h3 { margin: 0 0 6px; font-size: 1rem; }
.landingFeature p { margin: 0; font-size: 13px; line-height: 1.45; color: #52607a; }
.landingFeatureIcon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.landingFoot { margin: 12px 0 0; font-size: 14px; text-align: center; line-height: 1.5; }
.landingFoot .linkBtn { font-size: 14px; }
.demoBanner:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-color: #e99307;
  background: #fff8eb;
}
.demoBanner p { margin: 0; line-height: 1.45; }
.demoBanner--full { border-color: #aa2e25; background: #fff5f5; }
.demoBanner .primary { min-height: 44px; }

/* ——— onboarding ——— */
.onboardingCard {
  border-color: #60a5fa;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
}
.onboardingHead h2 { margin: 0 0 6px; font-size: 1.15rem; }
.onboardingSteps {
  margin: 0 0 14px;
  padding-right: 20px;
  line-height: 1.55;
  color: #334155;
}
.onboardingActions button { flex: 0 1 auto; }

/* ——— יומן פעולות ——— */
.activityLogList { display: grid; gap: 10px; max-height: 520px; overflow: auto; }
.activityItem {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.activityHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}
.activityTime { font-size: 12px; white-space: nowrap; }
.activitySummary { margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
.activityWho { margin: 0; font-size: 12px; }
.adminOrgActions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adminOrgCard { flex-wrap: wrap; }

/* ——— תמחור בנחיתה ——— */
.landingPricing {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.landingPricingTitle { margin: 0 0 6px; font-size: 1.35rem; text-align: center; }
.landingPricingLead { text-align: center; margin: 0 0 16px; font-size: 14px; }
.pricingGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .pricingGrid { grid-template-columns: repeat(3, 1fr); }
}
.pricingCard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}
.pricingCard--featured {
  border-color: #e99307;
  box-shadow: 0 0 0 2px rgba(233, 147, 7, 0.25);
}
.pricingBadge {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
}
.pricingCard h3 { margin: 0 0 8px; font-size: 1.1rem; }
.pricingPrice { margin: 0 0 12px; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.pricingPrice span { font-size: 13px; font-weight: 600; color: #52607a; }
.pricingCard ul { margin: 0 0 14px; padding-right: 18px; font-size: 13px; line-height: 1.55; color: #475569; }
.pricingCta {
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.pricingCta.primary { background: var(--accent); border-color: #e99307; }
.planBillingNote {
  display: block;
  font-size: 12px;
  color: #16a34a;
  margin-bottom: 8px;
}
.orgBillingPanel { margin-top: 12px; }
.billingPlanGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (min-width: 640px) {
  .billingPlanGrid { grid-template-columns: repeat(2, 1fr); }
}
.billingPlanCard {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.billingPlanCard--featured { border-color: #e99307; }
.billingPlanCard h4 { margin: 0 0 6px; }
.billingPlanPrice { margin: 0 0 10px; font-weight: 700; }
.landingFooter {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}
.landingFooter a { color: #b45309; font-weight: 600; }
.landingFooter p { margin: 4px 0; }

/* ——— שימוש חבילה ——— */
.orgPlanUsage {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}
.planBadge {
  display: inline-block;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.usageMeter { margin-bottom: 10px; }
.usageMeter:last-child { margin-bottom: 0; }
.usageLabel { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; color: #475569; }
.usageBar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.usageFill { height: 100%; background: linear-gradient(90deg, #fca311, #e99307); border-radius: 999px; }
.usageFill.warn { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(20, 33, 61, 0.06);
}
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
label { display: grid; gap: 6px; font-size: 14px; }
input, button, select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font-size: 16px;
}
.fieldWithScan { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.fieldWithScan .scanBtn {
  min-width: 92px;
  padding: 10px 14px;
  background: #fff8eb;
  border: 2px solid #e99307;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  color: #7a4a00;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(233, 147, 7, 0.2);
}
.fieldWithScan .scanBtn:active { background: var(--accent); color: var(--ink); }
@media (max-width: 560px) {
  .fieldWithScan { grid-template-columns: 1fr; }
  .fieldWithScan .scanBtn { width: 100%; min-height: 44px; }
}
button { background: #fff; cursor: pointer; }
button.primary { background: var(--accent); border-color: #e99307; font-weight: 700; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.actions button { flex: 1 1 140px; }
#ocrStatus { min-height: 22px; font-size: 13px; }
.group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.group.groupCounted { border-color: #9fd3aa; }
.groupHeader { display: flex; justify-content: space-between; gap: 8px; background: #f8fafc; padding: 10px; font-weight: 600; }
.groupHeader.counted, .group.groupCounted .groupHeader { background: #edf9ef; border-color: #9fd3aa; }
.rows { padding: 8px; display: grid; gap: 8px; }
.row { border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 14px; }
.row.counted { background: #edf9ef; border-color: #9fd3aa; }
.rowHead { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.muted { color: #52607a; font-size: 13px; }
.rowActions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.rowActions button { flex: 1 1 0; min-height: 48px; padding: 10px 16px; font-weight: 700; font-size: 17px; border-width: 2px; }
.editBtn { background: #fffef5; border-color: #14213d; color: #14213d; }
.editBtn.active { background: var(--accent); border-color: #c97a00; }
.danger { background: #fff3f2; border-color: #e63946; color: #991b1b; }
.previewTable { display: grid; gap: 8px; margin-top: 10px; }
.previewItem { border: 1px dashed var(--line); border-radius: 10px; padding: 8px; background: #fbfcff; }
.importHelp { line-height: 1.5; margin-bottom: 12px; }
.importTemplateActions { margin-bottom: 10px; }
.importTemplateActions button { flex: 0 1 auto; min-width: 160px; font-weight: 700; }
.importMapper {
  border: 1px solid #e99307;
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  background: #fffef8;
}
.importMapperTitle { margin: 0 0 6px; font-size: 1rem; }
.importMapGrid { margin-top: 10px; }
.importSaveMap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 14px;
  cursor: pointer;
}
.importSaveMap input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.countEditor { display: grid; grid-template-columns: 100px 1fr auto; gap: 8px; align-items: center; margin-top: 8px; }
.countNotes { font-size: 14px; }
.quickAdd { border: 1px dashed #e99307; border-radius: 12px; padding: 10px; margin-bottom: 10px; background: #fffaf0; }
.tenantContext { background: #fffef8; border-color: #e99307; }
.migrationBanner { background: #fff3cd; border: 1px solid #e99307; border-radius: 10px; padding: 10px; margin-bottom: 10px; color: #7a4a00; font-weight: 600; }
.migrationPanel { border: 2px solid #e99307; border-radius: 12px; padding: 10px; margin-bottom: 12px; background: #fffef8; }
.tenantGrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) {
  .tenantGrid { grid-template-columns: 1fr 1fr; }
}
.tenantGrid select { width: 100%; }
.tagActive { display: inline-block; background: #e99307; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-inline-start: 6px; }
.manualTag { display: inline-block; background: #dbeafe; color: #1e40af; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-inline: 6px; vertical-align: middle; }
.manualRow { border-inline-start: 3px solid #60a5fa; }
.warehouseRow { border: 1px solid #e8dcc8; border-radius: 10px; padding: 10px; margin-bottom: 10px; background: #fff; }
.warehouseRowHead { margin-bottom: 8px; }
.warehouseRenameGrid { margin-bottom: 8px; }

/* ——— מסך ניהול — תפריט + מסכים נפרדים ——— */
.container.adminMode { max-width: 1100px; }
.adminShell { padding: 0; overflow: hidden; }
.adminLayout { display: flex; flex-direction: column; min-height: 320px; }
.adminSidebar {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}
.adminSidebarHead { margin-bottom: 10px; }
.adminSidebarHead h2 { margin: 0 0 4px; font-size: 1.25rem; }
.adminRoleHint { margin: 0; font-size: 12px; }
.adminNav { display: flex; flex-wrap: wrap; gap: 8px; }
.adminNavBtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink);
  flex: 1 1 auto; min-width: 0; justify-content: center;
}
.adminNavBtn:hover { border-color: #c97a00; background: #fffef8; }
.adminNavBtn.active { background: var(--accent); border-color: #e99307; box-shadow: 0 2px 8px rgba(233,147,7,.25); }
.adminNavIcon { font-size: 1.1em; line-height: 1; }
.adminMain { padding: 14px 16px 18px; flex: 1; background: #fff; }
.adminPageHeader { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.adminPageHeader h3 { margin: 0 0 4px; font-size: 1.15rem; }
.adminPageHeader p { margin: 0; font-size: 13px; }
.adminPanel {
  background: #fbfcff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 14px;
}
.adminPanel--warn { background: #fffef8; border-color: #e99307; }
.adminPanelTitle { margin: 0 0 6px; font-size: 1rem; }
.adminPanelDesc { margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
.adminScopeBadge {
  display: inline-block; background: #eef2ff; border: 1px solid #c7d2fe;
  border-radius: 8px; padding: 6px 10px; margin-bottom: 12px; font-size: 12px;
}
.adminFormGrid { margin-bottom: 4px; }
.adminFormGrid--narrow { max-width: 420px; }
.adminActions { margin-top: 12px; }
.adminActions button { flex: 0 1 auto; min-width: 140px; }
.adminStatus { margin: 10px 0 0; min-height: 1.2em; font-size: 13px; }
.adminStatus:not(:empty) { padding: 8px 10px; border-radius: 8px; background: #f8fafc; }
.adminUserList, .adminWarehouseList, .adminOrgList { display: grid; gap: 10px; }
.adminUserCard {
  display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff;
}
@media (min-width: 640px) {
  .adminUserCard { grid-template-columns: 1fr auto; align-items: start; }
}
.adminUserMain strong { font-size: 15px; display: block; margin-bottom: 4px; }
.adminUserMeta { font-size: 13px; color: #52607a; line-height: 1.5; }
.adminUserMeta span { display: inline-block; margin-inline-end: 10px; }
.adminUserActions { display: flex; flex-wrap: wrap; gap: 6px; }
.adminUserActions button { flex: 0 1 auto; min-height: 40px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.adminWhCard {
  border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; background: #fff;
}
.adminWhCard.isActive { border-color: #e99307; box-shadow: 0 0 0 1px #e99307; }
.adminWhHead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.adminWhHead strong { font-size: 16px; }
.adminWhStats { font-size: 13px; color: #52607a; }
.adminOrgCard {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.adminOrgCard.isActive { border-color: #e99307; background: #fffef8; box-shadow: 0 0 0 1px #e99307; }
.adminOrgActiveBanner {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #fff8eb; border: 1px solid #e99307; font-size: 13px; line-height: 1.45;
}
.adminOrgActiveBanner strong { color: #7a4a00; }
@media (min-width: 768px) {
  .adminLayout { flex-direction: row; align-items: stretch; }
  .adminSidebar {
    width: 200px; flex-shrink: 0; border-bottom: none;
    border-inline-start: 1px solid var(--line);
    padding: 16px 12px;
  }
  .adminNav { flex-direction: column; flex-wrap: nowrap; }
  .adminNavBtn { justify-content: flex-start; width: 100%; }
  .adminMain { flex: 1; min-width: 0; }
}
.rowNotes { margin-top: 4px; font-size: 13px; color: #3d5a45; }
.varianceItem { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: #fbfcff; }
.varianceMissing { color: #aa2e25; margin-top: 6px; font-size: 14px; }
.varianceExtra { color: #b45309; margin-top: 4px; font-size: 14px; }
.varianceOk { margin-top: 4px; font-size: 13px; }
details > summary { cursor: pointer; margin-bottom: 8px; }
.rowEditPanel { margin-top: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 10px; background: #f8fafc; }
.rowEditGrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rowEditActions { margin-top: 8px; }
.rowEditActions button { width: 100%; min-height: 44px; }
@media (max-width: 560px) {
  .countEditor { grid-template-columns: 1fr; }
}
button.active { background: var(--accent); border-color: #e99307; font-weight: 700; }
.statsBar { padding: 8px 10px; margin-bottom: 10px; }
.statsGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.statBox { border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; background: #fbfcff; }
.statNum { font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.statLabel { font-size: 11px; color: #52607a; margin-top: 2px; line-height: 1.3; }
@media (min-width: 560px) {
  .statsGrid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* פופאפ מרכזי — ניגודיות גבוהה לעבודה בשמש */
.modalOverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 2147483646 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  pointer-events: none;
}
.modalOverlay.is-open {
  display: flex !important;
  pointer-events: auto;
  animation: modalFadeIn 0.15s ease;
}
.modalBackdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.82) !important;
  z-index: 0;
}
.modalCard {
  position: relative !important;
  z-index: 1 !important;
  width: min(96vw, 520px) !important;
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #ffffff !important;
  border: 5px solid #14213d !important;
  border-radius: 20px !important;
  padding: 0 0 18px !important;
  box-shadow:
    0 0 0 6px rgba(252, 163, 17, 0.85),
    0 28px 80px rgba(0, 0, 0, 0.65) !important;
  animation: modalPopIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  flex-shrink: 0;
}
.modalCard.modal-warning {
  border-color: #b45309 !important;
  box-shadow:
    0 0 0 8px rgba(251, 191, 36, 1),
    0 28px 80px rgba(0, 0, 0, 0.7) !important;
  animation: modalPopIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), modalPulse 1.2s ease-in-out infinite 0.3s;
}
.modalCard.modal-danger {
  border-color: #dc2626 !important;
  box-shadow:
    0 0 0 8px rgba(248, 113, 113, 1),
    0 28px 80px rgba(0, 0, 0, 0.7) !important;
}
.modalStripe {
  height: 14px;
  border-radius: 15px 15px 0 0;
  background: #fca311;
}
.modalStripe.warning { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.modalStripe.danger { background: #dc2626; }
.modalStripe.success { background: #16a34a; }
.modalStripe.info { background: #2563eb; }
.modalIcon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
  margin: 16px auto 8px;
  border-width: 4px;
  border-style: solid;
}
.modalIcon.warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}
.modalIcon.danger {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #dc2626;
}
.modalIcon.success {
  background: #dcfce7;
  color: #14532d;
  border-color: #16a34a;
}
.modalIcon.info {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #2563eb;
}
.modalBanner {
  margin: 0 16px 10px;
  padding: 14px 12px;
  text-align: center;
  font-size: clamp(1.35rem, 6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: #7c2d12;
  background: #ffedd5;
  border: 3px solid #ea580c;
  border-radius: 14px;
  word-break: break-word;
}
.modalBanner[hidden] { display: none !important; }
.modalTitle {
  margin: 0 16px 10px;
  text-align: center;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
}
.modalMessage {
  margin: 0 16px 14px;
  text-align: center;
  color: #1e293b;
  font-size: clamp(1rem, 4vw, 1.125rem);
  font-weight: 600;
  line-height: 1.5;
}
.modalMessage[hidden] { display: none !important; }
.modalDetails {
  margin: 0 16px 14px;
  padding: 12px 14px;
  background: #f1f5f9;
  border: 3px solid #94a3b8;
  border-radius: 14px;
  display: grid;
  gap: 10px;
}
.modalDetails[hidden] { display: none !important; }
.modalDetails div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
}
.modalDetails dt {
  color: #334155;
  margin: 0;
  font-weight: 600;
}
.modalDetails dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
  text-align: end;
  direction: ltr;
}
.modalExtra {
  margin: 0 16px 14px;
}
.modalField {
  display: grid;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0f172a;
}
.modalField input,
.modalField select {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  padding: 14px;
  border: 3px solid #14213d;
  border-radius: 12px;
  background: #fff;
}
.modalCheck {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.45;
  color: #0f172a;
}
.modalCheck input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #dc2626;
}
.modalHint {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
}
.modalActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 16px;
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.modalActions button {
  flex: 1 1 140px;
  min-height: 56px;
  font-weight: 800;
  font-size: 1.1rem;
  border-width: 3px;
}
.modalActions button.primary {
  background: #fca311;
  border-color: #b45309;
  color: #0f172a;
}
.modalActions button.danger {
  background: #fecaca;
  border-color: #dc2626;
  color: #7f1d1d;
}
.modalActions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes modalPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 1), 0 28px 80px rgba(0, 0, 0, 0.7); }
  50% { box-shadow: 0 0 0 14px rgba(251, 191, 36, 0.75), 0 28px 80px rgba(0, 0, 0, 0.7); }
}
