/* ==========================================================================
   Dedicated IMUGA Mobile Tutorial Styles (imuga-guide.html)
   Sunlit Pearl-White Editorial Match (Zero Noise · Airport-Sunlight Legible)
   ========================================================================== */

.imuga-main {
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--canvas);
}

.imuga-shell {
  max-width: 1060px;
}

.imuga-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.8vw, 42px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.025em;
  color: var(--text);
  margin-bottom: 12px;
  text-wrap: balance;
}

.imuga-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.76;
  max-width: 720px;
}

.imuga-cta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.imuga-rules-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.imuga-rule-card {
  padding: 16px;
  border-right: 1px solid var(--border);
}

.imuga-rule-card:last-child {
  border-right: none;
}

.imuga-rule-card strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 4px;
}

.imuga-rule-card span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.imuga-rule-warn {
  background: var(--surface-warm);
}

.imuga-rule-warn strong {
  color: var(--gold-bright);
}

/* Quick-Copy Cheat-Sheet */
.imuga-cheatsheet {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.cheat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cheat-head h2 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}

.cheat-head span {
  font-size: 12px;
  color: var(--text-soft);
}

.cheat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cheat-chip {
  text-align: left;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.cheat-chip:hover {
  background: var(--surface-warm);
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.cheat-chip span {
  font-size: 11.5px;
  color: var(--text-soft);
}

.cheat-chip code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ocean);
  word-break: break-word;
}

/* Crisp Frosted White Sticky Step Jump Bar */
.imuga-jump-bar {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 40;
  margin-top: 22px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 10px 26px rgba(15, 36, 54, 0.08);
}

.imuga-jump-bar::-webkit-scrollbar {
  display: none;
}

.jump-pill {
  flex: 1 0 auto;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.jump-pill:hover {
  color: var(--text);
  background: var(--surface-tint);
}

.jump-pill.is-active {
  color: var(--ocean);
  background: var(--ocean-soft);
  box-shadow: inset 0 -2px 0 var(--ocean);
}

/* ==========================================================================
   7 Authentic Mobile-Portal Stages (Space Black Titanium on Sunlit White Card)
   ========================================================================== */
.phone-stages {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.phone-stage {
  scroll-margin-top: calc(var(--header-h) + 72px);
  display: grid;
  grid-template-columns: 386px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.phone-stage-visual {
  display: flex;
  justify-content: center;
}

/* Crisp Matte Space Black Titanium Smartphone Frame */
.im-phone {
  width: 100%;
  max-width: 374px;
  border-radius: 34px;
  padding: 9px;
  background: #1b2029;
  border: 1px solid rgba(15, 36, 54, 0.22);
  box-shadow: 0 22px 46px rgba(15, 36, 54, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

.im-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 15px 6px;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
}

.im-island {
  width: 74px;
  height: 17px;
  border-radius: 999px;
  background: #06090e;
}

.im-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.im-status-icons svg {
  height: 10px;
  width: auto;
}

.im-urlbar {
  margin: 0 4px 7px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(248, 250, 252, 0.90);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.im-lock {
  font-size: 9.5px;
  opacity: 0.85;
}

/* Authentic Light-Mode Official IMUGA Portal Viewport (1:1 airport pattern match) */
.im-screen {
  border-radius: 23px;
  background: #f7f8fb;
  color: #1f2937;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.im-portal-nav {
  background: #232b5e;
  color: #ffffff;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.im-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.im-dots {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 2px;
}

.im-dots i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #7dd3fc;
}

.im-dots i:nth-child(even) {
  background: #a5b4fc;
}

.im-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2fa;
  color: #232b5e;
  font-size: 11px;
  font-weight: 600;
}

.im-menu-btn svg {
  width: 11px;
  height: 9px;
}

.im-portal-sub {
  padding: 9px 14px;
  background: linear-gradient(120deg, #f0f4fa 0%, #dce9f5 52%, #f4f7fb 100%);
  border-bottom: 1px solid #e1e8f2;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.im-body {
  padding: 13px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.im-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.im-step-ring {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #cbd5e1;
  border-top-color: #2563eb;
  color: #232b5e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.im-step-ring.is-step2 { border-right-color: #2563eb; }
.im-step-ring.is-step3 { border-right-color: #2563eb; border-bottom-color: #2563eb; }
.im-step-ring.is-step5 { border-color: #16a34a; color: #15803d; }

.im-step-ring svg {
  width: 16px;
  height: 16px;
}

.im-step-meta {
  min-width: 0;
  flex: 1;
}

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

.im-step-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.im-step-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #3b82f6;
  margin-top: 1px;
}

.im-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.im-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.im-card-sub {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.4;
  margin-top: -5px;
}

.im-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.im-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.im-label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

/* Editorial Vermilion Annotations */
.im-anno-badge {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.im-anno-strong {
  background: #c93632;
  border-color: #c93632;
  color: #ffffff;
}

.im-focus-box {
  border: 1.8px solid #c93632;
  border-radius: 9px;
  padding: 9px;
  background: #fff9f9;
}

.im-scan-drop {
  border: 1.2px dashed #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 13px 10px;
  text-align: center;
}

.im-scan-icon {
  width: 26px;
  height: 26px;
  color: #475569;
  margin: 0 auto 5px;
}

.im-browse-link {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 5px;
}

.im-scan-note {
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.44;
  text-align: left;
}

.im-callout-strip {
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #c93632;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  line-height: 1.35;
}

.im-callout-inline {
  margin-top: 2px;
  background: #fef2f2;
  color: #b42318;
  border: 1px solid #fecaca;
}

.im-arrow-up {
  font-size: 9px;
}

.im-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.im-purpose-tile {
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 7px 8px;
  background: #ffffff;
}

.im-purpose-tile.is-selected {
  border: 1.8px solid #c93632;
  background: #fff6f6;
}

.im-purpose-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 3px;
}

.im-purpose-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.im-purpose-tile p {
  font-size: 9px;
  color: #64748b;
  line-height: 1.32;
}

.im-radio {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
}

.im-radio.is-checked {
  border: 3.5px solid #1e293b;
  background: #ffffff;
}

.im-tile-ribbon {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #c93632;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
}

/* Form Inputs inside Phone Mockup */
.im-input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.im-field-focus .im-input {
  border: 1.8px solid #c93632;
  background: #fffafa;
}

.im-input-copy {
  cursor: pointer;
  min-height: 40px;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.im-input-copy:hover {
  background: #fee2e2;
}

.im-input-copy:active {
  transform: scale(0.99);
}

.im-val-bold {
  font-weight: 700;
  color: #0f172a;
  font-size: 11.5px;
}

.im-val-sample {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #1e293b;
  font-size: 12px;
}

.im-val-hint {
  font-size: 10px;
  color: #c93632;
  font-weight: 600;
}

.im-placeholder {
  color: #94a3b8;
  font-size: 11.5px;
}

.im-copy-mini {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 4px;
  background: #fee2e2;
  color: #b42318;
  font-size: 10px;
  font-weight: 700;
}

.im-chev,
.im-ico {
  color: #64748b;
  font-size: 11px;
}

.im-seg-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 0.6fr;
  gap: 3px;
  padding: 3px;
  border-radius: 6px;
  background: #eef2f6;
}

.im-seg-bar span {
  padding: 5px 4px;
  border-radius: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.im-seg-bar span.is-on {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.im-seg-bar em {
  font-style: normal;
  color: #c93632;
  font-weight: 700;
  margin-left: 2px;
}

.im-inner-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.im-upload-box {
  border: 1.4px dashed #94a3b8;
  border-radius: 7px;
  background: #ffffff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.im-upload-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9.5px;
  color: #64748b;
}

.im-plus {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.im-skip-pill {
  padding: 4px 8px;
  border-radius: 4px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}

.im-micro-note {
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.38;
}

.im-date-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 3px;
}

.im-date-card {
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.im-date-card.is-active {
  border: 1.8px solid #c93632;
  background: #fff6f6;
}

.im-date-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

.im-date-top em {
  font-style: normal;
  color: #c93632;
  font-size: 10.5px;
  font-weight: 700;
}

.im-date-card small {
  display: block;
  font-size: 9.5px;
  color: #64748b;
  margin-top: 1px;
}

.im-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.im-actions-end {
  justify-content: flex-end;
}

.im-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.im-pointer-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: #c93632;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.im-btn {
  padding: 5px 14px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.im-btn-focus {
  border: 1.8px solid #c93632;
  color: #1e293b;
}

.im-btn-submit {
  border: 1.8px solid #c93632;
  background: #232b5e;
  color: #ffffff;
}

.im-yn-row {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 6px;
}

.im-yn-row span {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

.im-yn-row span.is-chosen {
  border: 1.8px solid #c93632;
  background: #fff6f6;
  color: #0f172a;
  font-weight: 700;
}

.im-yn-row em {
  font-style: normal;
  color: #c93632;
  font-size: 10px;
  margin-left: 3px;
}

.im-qr-card {
  border-radius: 9px;
  border: 1.6px solid #16a34a;
  background: #f0fdf4;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.im-qr-ok {
  font-size: 11px;
  font-weight: 800;
  color: #15803d;
}

.im-qr-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.im-qr-svg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.im-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.im-qr-meta strong {
  font-size: 11px;
  color: #1e293b;
}

.im-qr-meta span {
  font-size: 10px;
  color: #475569;
}

.im-qr-alert {
  padding: 6px 8px;
  border-radius: 5px;
  background: #c93632;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}

/* De-Boxed Editorial Companion Notes */
.phone-stage-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ocean);
}

.stage-index::after {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--border-ocean);
}

.phone-stage-notes h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.stage-lead {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.stage-warn-box {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  border-left: 3px solid #c99c50;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.65;
}

.stage-warn-box strong {
  color: var(--gold-bright);
}

.stage-warn-box code,
.stage-list code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ocean-soft);
  color: var(--ocean);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
}

.stage-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.stage-list li {
  position: relative;
  padding: 12px 0 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.68;
}

.stage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ocean);
}

.stage-list li strong {
  color: var(--text);
}

.stage-footer-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Bottom Concierge Help CTA */
.imuga-bottom-cta {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #f3f7f9 55%, #fbf5ea 100%);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.imuga-bottom-cta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.imuga-bottom-cta p {
  font-size: 14px;
  color: var(--text-muted);
}

.imuga-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1080px) {
  .imuga-rules-grid,
  .cheat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .imuga-rule-card {
    border-bottom: 1px solid var(--border);
  }
  .phone-stage,
  .imuga-bottom-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .guide-page .header-inner {
    gap: 8px;
  }
  .guide-page .brand-en {
    display: none;
  }
  .guide-page .brand-mark {
    width: 30px;
    height: 30px;
  }
  .guide-page .header-actions {
    gap: 6px;
  }
  .guide-page .header-actions .btn-sm {
    padding: 7px 11px;
    font-size: 12px;
  }
  .guide-page .lang-btn {
    padding: 5px 8px;
    font-size: 11.5px;
  }
  .imuga-cta-row {
    flex-direction: column;
  }
  .imuga-cta-row .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    padding: 13px 16px;
    font-size: 14px;
  }
  .imuga-rules-grid,
  .cheat-grid {
    grid-template-columns: 1fr;
  }
  .imuga-rule-card {
    border-right: none;
  }
  .imuga-rule-card:last-child {
    border-bottom: none;
  }
  .phone-stage {
    padding: 18px 12px;
    gap: 20px;
  }
  .im-phone {
    max-width: 100%;
    border-radius: 26px;
    padding: 7px;
  }
  .im-screen {
    border-radius: 19px;
  }
  .imuga-bottom-cta {
    padding: 20px 16px;
  }
}
