/* NCCGE — Illustrated customer guide player (image + text slideshow) */
:root {
  --gp-green: #008751;
  --gp-green-d: #0d3d28;
  --gp-gold: #d4af37;
  --gp-bg: #060e0a;
  --gp-card: #0f1f18;
  --gp-text: #f4f7f5;
  --gp-muted: #c8d4ce;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--gp-bg);
  color: var(--gp-text);
  font-family: 'Segoe UI', 'Outfit', system-ui, sans-serif;
  overflow: hidden;
}

.guide-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.guide-stage-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 4px;
  min-height: 0;
}

.guide-stage {
  width: min(1140px, 100%);
  aspect-ratio: 16 / 10;
  max-height: calc(100vh - 148px);
  background: linear-gradient(160deg, #0d1f17 0%, #152820 55%, #0a1612 100%);
  border: 1px solid rgba(0, 135, 81, 0.35);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.08) inset;
  position: relative;
  overflow: hidden;
}

.guide-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 20px;
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.guide-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.guide-slide--brand {
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0, 135, 81, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(212, 175, 55, 0.12), transparent);
}

.guide-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--gp-gold);
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.guide-brand-org {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gp-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.guide-brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 92%;
}

.guide-brand-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--gp-muted);
  max-width: 480px;
  line-height: 1.65;
}

.guide-brand-url {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7dffc4;
  background: rgba(0, 135, 81, 0.2);
  border: 1px solid rgba(0, 135, 81, 0.45);
  padding: 9px 20px;
  border-radius: 999px;
}

.guide-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.guide-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gp-green);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 135, 81, 0.35);
}

.guide-step-title {
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.guide-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  min-height: 0;
}

.guide-visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a1410;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.guide-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  image-rendering: auto;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.guide-visual img.loaded {
  opacity: 1;
}

.guide-text-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 18px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.guide-text {
  font-size: clamp(15px, 1.75vw, 17px);
  line-height: 1.75;
  color: #eef3f0;
}

.guide-text strong {
  color: #fff;
  font-weight: 700;
}

.guide-text ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.guide-text li {
  margin-bottom: 8px;
}

.guide-tip {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(212, 175, 55, 0.14);
  border-left: 4px solid var(--gp-gold);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #f0e6c8;
  line-height: 1.6;
}

.guide-mock {
  width: 100%;
  padding: 20px 18px;
  text-align: left;
}

.guide-mock-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gp-green);
  margin-bottom: 10px;
}

.guide-mock-card {
  background: #fff;
  color: #1a1a1a;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.guide-mock-card .mock-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.guide-mock-card .mock-btn--g { background: #008751; color: #fff; }
.guide-mock-card .mock-btn--gold { background: #d4af37; color: #fff; }

.guide-mock-card .mock-field {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 9px 12px;
  margin: 6px 0;
  font-size: 12px;
  color: #555;
}

.guide-mock-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.guide-mock-tabs span {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
}

.guide-mock-tabs span.on {
  color: #008751;
  border-bottom: 2px solid #008751;
  margin-bottom: -1px;
}

.guide-controls {
  flex-shrink: 0;
  padding: 8px 16px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.guide-progress {
  flex: 1;
  min-width: 120px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.guide-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gp-green), var(--gp-gold));
  border-radius: 4px;
  transition: width 0.1s linear;
}

.guide-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.guide-btn:hover:not(:disabled) {
  background: rgba(0, 135, 81, 0.25);
  border-color: rgba(0, 135, 81, 0.5);
}

.guide-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.guide-btn--primary {
  background: var(--gp-green);
  border-color: var(--gp-green);
}

.guide-btn--primary:hover:not(:disabled) {
  background: #00a862;
}

.guide-btn--gold {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f0e6c8;
}

.guide-counter {
  font-size: 11px;
  color: var(--gp-muted);
  min-width: 52px;
  text-align: center;
}

.guide-export-status {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--gp-gold);
  min-height: 18px;
  padding: 0 16px 8px;
}

.guide-back {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  font-size: 12px;
  color: var(--gp-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-back:hover { color: #fff; }

.guide-start-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 14, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.guide-start-overlay.hidden {
  display: none;
}

.guide-start-card {
  text-align: center;
  max-width: 420px;
  padding: 36px 28px;
  background: linear-gradient(160deg, #0f1f18, #152820);
  border: 1px solid rgba(0, 135, 81, 0.4);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.guide-start-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #d4af37;
  margin-bottom: 16px;
}

.guide-start-card h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}

.guide-start-card p {
  font-size: 14px;
  color: var(--gp-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.guide-start-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-start-actions .guide-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

@media (max-width: 800px) {
  .guide-slide { padding: 16px 14px 12px; }
  .guide-body { grid-template-columns: 1fr; grid-template-rows: minmax(180px, 42vh) auto; }
  .guide-text-panel { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-slide { transition: none; }
  .guide-progress-fill { transition: none; }
  .guide-visual img { transition: none; }
}
