/* ==========================================================================
   Web Design Page Upgrades:
   - High-Craft Industry Demo Cards
   - Live RWD Interactive Preview Modal (Desktop / Tablet / Mobile)
   - Before vs. After Modernization Comparison
   - Live SEO Backend Simulator (Google SERP & Social Share Preview)
   - B2B NDA & Private Consultation Trust Panel
   ========================================================================== */

/* ---------- 1. Enhanced Demo Cards ---------- */
.demo-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.demo-card:hover {
  border-color: var(--accent-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(55, 54, 54, 0.11);
}

.demo-card.hidden {
  display: none;
}

.demo-browser-bar {
  height: 28px;
  background: #eff1f1;
  border-bottom: 1px solid #dfe4e5;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.demo-dots {
  display: flex;
  gap: 5px;
}

.demo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}
.demo-dots span:nth-child(1) { background: #e07b6e; }
.demo-dots span:nth-child(2) { background: #e6ba5c; }
.demo-dots span:nth-child(3) { background: #74b872; }

.demo-url-pill {
  font-size: 11px;
  color: #6d7376;
  background: #ffffff;
  border: 1px solid #dcdfe0;
  border-radius: 999px;
  padding: 1px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72%;
}

.demo-thumb {
  position: relative;
  height: 196px;
  overflow: hidden;
  background: #2e3438;
}

.demo-thumb-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.demo-card:hover .demo-thumb-bg {
  transform: scale(1.05);
}

.demo-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 26, 30, 0.42) 0%, rgba(22, 26, 30, 0.72) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.demo-mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 8px;
}

.demo-mini-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.demo-mini-links {
  display: flex;
  gap: 8px;
  opacity: 0.85;
  font-size: 10px;
}

.demo-mini-hero h5 {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 4px;
  line-height: 1.3;
}

.demo-mini-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.demo-mini-cta {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 3px;
  background: #c87b16;
  color: #ffffff;
}

.demo-hover-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(55, 54, 54, 0.9);
  color: #f5b00c;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 176, 12, 0.45);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.demo-card:hover .demo-hover-badge {
  background: #a96605;
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.04);
}

.demo-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.demo-label-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-deep);
  background: #fdf4e7;
  border: 1px solid #ebd4b3;
  padding: 2px 9px;
  border-radius: 999px;
}

.demo-sample-note {
  font-size: 11.5px;
  color: #8b9194;
}

.demo-card-body h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.demo-card-body p {
  font-size: 13.5px;
  color: var(--body);
  margin-bottom: 14px;
  flex: 1;
}

.demo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f0f2f2;
  font-size: 13px;
}

.demo-device-tags {
  color: #7c8285;
  font-size: 12px;
}

.demo-open-link {
  color: var(--accent-deep);
  font-weight: 700;
}

/* ---------- 2. B2B NDA Confidentiality Card ---------- */
.nda-banner {
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid #dce2e4;
  border-left: 4px solid #373636;
  border-radius: 6px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nda-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.nda-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eff1f1;
  color: #373636;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nda-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.nda-banner h4 {
  font-size: 16.5px;
  margin: 0 0 4px;
  color: var(--ink);
}

.nda-banner p {
  font-size: 13.5px;
  color: var(--body);
  margin: 0;
}

/* ---------- 3. Before vs. After Modernization Comparison ---------- */
.ba-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.ba-toggle-btn {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ba-toggle-btn.active,
.ba-toggle-btn:hover {
  background: var(--topbar-bg);
  border-color: var(--topbar-bg);
  color: var(--topbar-accent);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ba-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ba-card.before {
  border-top: 4px solid #b5544a;
}

.ba-card.after {
  border-top: 4px solid #2e7d32;
  box-shadow: 0 12px 28px rgba(55, 54, 54, 0.08);
}

.ba-card-head {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eeeeee;
}

.ba-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
}

.ba-pill.bad {
  background: #fdecec;
  color: #a6342a;
}

.ba-pill.good {
  background: #eaf6ec;
  color: #256a29;
}

.ba-visual-stage {
  padding: 20px;
  background: #f4f6f7;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mock Old Site */
.mock-old-window {
  width: 100%;
  background: #ffffff;
  border: 2px solid #999;
  font-family: serif;
  transition: width 0.35s ease;
}

.ba-grid.mobile-mode .mock-old-window {
  width: 220px;
  border-radius: 18px;
  border: 6px solid #333;
  overflow: hidden;
}

.mock-old-bar {
  background: #e1e1e1;
  padding: 5px 8px;
  font-size: 11px;
  color: #b5342a;
  font-family: var(--font-sans);
  border-bottom: 1px solid #bdbdbd;
  white-space: nowrap;
  overflow: hidden;
}

.mock-old-body {
  padding: 10px;
  background: #eef3fb;
}

.ba-grid.mobile-mode .mock-old-body {
  font-size: 7px;
  transform-origin: top left;
}

.mock-old-banner {
  background: linear-gradient(90deg, #1b4b8a, #477cc2);
  color: #ffea70;
  font-weight: 700;
  padding: 8px;
  font-size: 13px;
  text-align: center;
  margin-bottom: 8px;
}

.ba-grid.mobile-mode .mock-old-banner {
  font-size: 7.5px;
  padding: 4px;
}

.mock-old-cols {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
}

.ba-grid.mobile-mode .mock-old-cols {
  grid-template-columns: 46px 1fr;
  gap: 4px;
}

.mock-old-side {
  background: #d9e3f0;
  border: 1px solid #a8b9cf;
  padding: 5px;
  font-size: 10px;
  color: #1f3d66;
  line-height: 1.5;
}

.ba-grid.mobile-mode .mock-old-side {
  font-size: 6px;
  padding: 3px;
}

.mock-old-main {
  background: #fff;
  border: 1px solid #c5ced9;
  padding: 8px;
  font-size: 10.5px;
  color: #444;
  line-height: 1.45;
}

.ba-grid.mobile-mode .mock-old-main {
  font-size: 6.5px;
  padding: 4px;
}

.mock-old-warn {
  margin-top: 6px;
  background: #fff3cd;
  color: #856404;
  font-family: var(--font-sans);
  font-size: 10.5px;
  padding: 4px 6px;
  border: 1px dashed #e0a800;
}

.ba-grid.mobile-mode .mock-old-warn {
  font-size: 8px;
}

/* Mock New RWD Site */
.mock-new-window {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cfd6d8;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: width 0.35s ease;
}

.ba-grid.mobile-mode .mock-new-window {
  width: 220px;
  border-radius: 18px;
  border: 6px solid #2b2d2f;
}

.mock-new-bar {
  background: #eff1f1;
  padding: 6px 10px;
  font-size: 11px;
  color: #256a29;
  font-weight: 600;
  border-bottom: 1px solid #dfe4e5;
  white-space: nowrap;
  overflow: hidden;
}

.mock-new-body {
  padding: 12px;
}

.mock-new-hero {
  background: linear-gradient(135deg, #373636 0%, #52575a 100%);
  color: #ffffff;
  border-radius: 5px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.mock-new-hero strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 3px;
}

.mock-new-hero span {
  display: block;
  font-size: 11px;
  color: #dcdede;
  margin-bottom: 7px;
}

.mock-new-hero em {
  font-style: normal;
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  background: #c87b16;
  color: #fff;
  padding: 3px 9px;
  border-radius: 3px;
}

.mock-new-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.ba-grid.mobile-mode .mock-new-cards {
  grid-template-columns: 1fr;
}

.mock-new-mini {
  background: #f7f8f8;
  border: 1px solid #e7eaeb;
  border-radius: 4px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.ba-list {
  list-style: none;
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ba-list li {
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}

.ba-list.bad li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 2px;
  color: #b5544a;
  font-weight: 700;
}

.ba-list.good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: #2e7d32;
  font-weight: 700;
}

/* ---------- 4. Interactive SEO Backend Simulator ---------- */
.seo-sim-wrap {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 28px;
  align-items: start;
}

.seo-sim-panel {
  background: var(--white);
  border: 1px solid #dde2e4;
  border-radius: 6px;
  padding: 24px;
}

.seo-preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eeeeee;
}

.seo-preset-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.seo-preset-btn {
  background: #f4f6f6;
  border: 1px solid #d7dddd;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 4px;
  cursor: pointer;
}

.seo-preset-btn:hover,
.seo-preset-btn.active {
  background: #fdf4e7;
  border-color: var(--accent);
  color: var(--accent-deep);
  font-weight: 600;
}

.seo-field {
  margin-bottom: 15px;
}

.seo-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.seo-field-head label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.seo-meter {
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eaf6ec;
  color: #256a29;
}

.seo-meter.warn {
  background: #fff4e0;
  color: #a96605;
}

/* Google SERP Card */
.serp-box {
  background: #ffffff;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.serp-badge-top {
  font-size: 11.5px;
  font-weight: 700;
  color: #5f6368;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.serp-site-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.serp-favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #373636;
  color: #f5b00c;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.serp-site-name {
  font-size: 13px;
  color: #202124;
  line-height: 1.25;
}

.serp-url {
  font-size: 12px;
  color: #4d5156;
  line-height: 1.2;
}

.serp-title {
  font-size: 19px;
  color: #1a0dab;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
  word-break: break-word;
}

.serp-desc {
  font-size: 13.5px;
  color: #4d5156;
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
}

.serp-desc strong {
  color: #202124;
}

.serp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7ea;
}

.serp-tag {
  font-size: 11.5px;
  background: #f1f3f4;
  color: #3c4043;
  padding: 2px 9px;
  border-radius: 999px;
}

/* Social Share Preview (LINE / FB) */
.og-card {
  background: #f8f9fa;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 115px 1fr;
}

.og-thumb {
  background: linear-gradient(135deg, #373636 0%, #63533f 100%);
  color: #ffffff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
}

.og-thumb span {
  color: #f5b00c;
  font-size: 10px;
  margin-top: 3px;
}

.og-body {
  padding: 12px 15px;
}

.og-domain {
  font-size: 11px;
  color: #65676b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.og-title {
  font-size: 14px;
  font-weight: 700;
  color: #1c1e21;
  margin-bottom: 3px;
  line-height: 1.35;
}

.og-desc {
  font-size: 12px;
  color: #606770;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 5. Live RWD Preview Modal ---------- */
.rwd-modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 28, 32, 0.78);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: 18px;
}

.rwd-modal.open {
  display: flex;
}

.rwd-modal-bar {
  background: #373636;
  color: #ffffff;
  border-radius: 8px 8px 0 0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rwd-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rwd-modal-badge {
  background: #b77a2b;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
}

.rwd-modal-title {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.rwd-device-switch {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 6px;
}

.rwd-dev-btn {
  background: transparent;
  border: none;
  color: #d6d9da;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 4px;
  cursor: pointer;
}

.rwd-dev-btn.active,
.rwd-dev-btn:hover {
  background: #f5b00c;
  color: #222;
}

.rwd-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rwd-close-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.rwd-close-btn:hover {
  background: #c0392b;
}

.rwd-stage-wrap {
  flex: 1;
  background: #23272a;
  border-radius: 0 0 8px 8px;
  padding: 20px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.rwd-viewport {
  width: 100%;
  max-width: 1060px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  transition: max-width 0.35s ease;
}

.rwd-viewport.mode-tablet {
  max-width: 720px;
  border: 10px solid #16181a;
  border-radius: 18px;
}

.rwd-viewport.mode-mobile {
  max-width: 375px;
  border: 10px solid #16181a;
  border-radius: 26px;
}

/* Inside Live Demo Webpage */
.live-site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #ffffff;
  border-bottom: 1px solid #eceeef;
}

.live-site-logo {
  font-size: 16px;
  font-weight: 800;
  color: #222;
}

.live-site-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: #555;
}

.live-site-hamburger {
  display: none;
  font-size: 18px;
  color: #333;
}

.rwd-viewport.mode-mobile .live-site-links {
  display: none;
}

.rwd-viewport.mode-mobile .live-site-hamburger {
  display: block;
}

.live-site-hero {
  position: relative;
  min-height: 290px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 36px 28px;
  color: #ffffff;
}

.live-site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 24, 0.82) 0%, rgba(16, 20, 24, 0.48) 65%, rgba(16, 20, 24, 0.28) 100%);
}

.live-site-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.live-site-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  color: #ffffff;
}

.live-site-hero h3 {
  color: #ffffff;
  font-size: 28px;
  margin: 0 0 10px;
}

.rwd-viewport.mode-mobile .live-site-hero h3 {
  font-size: 21px;
}

.live-site-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-bottom: 18px;
}

.live-site-section {
  padding: 28px 24px;
}

.live-site-section h4 {
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.live-site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rwd-viewport.mode-tablet .live-site-cards {
  grid-template-columns: repeat(2, 1fr);
}

.rwd-viewport.mode-mobile .live-site-cards {
  grid-template-columns: 1fr;
}

.live-site-card {
  background: #f8f9fa;
  border: 1px solid #e7eaec;
  border-radius: 6px;
  padding: 16px;
}

.live-site-card strong {
  display: block;
  font-size: 14.5px;
  color: #222;
  margin-bottom: 5px;
}

.live-site-card p {
  font-size: 12.5px;
  color: #666;
  margin: 0;
}

.live-site-footer {
  background: #2f3336;
  color: #cfd4d7;
  padding: 18px 24px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 880px) {
  .ba-grid, .seo-sim-wrap {
    grid-template-columns: 1fr;
  }
  .rwd-modal {
    padding: 8px;
  }
  .rwd-device-switch {
    display: none;
  }
}


/* ==========================================================================
   6 DISTINCT DEMO LAYOUT ARCHITECTURES INSIDE #rwd-viewport
   ========================================================================== */

/* --- THEME 1: MANUFACTURING (Dark Industrial Spec & Catalog Layout) --- */
.demo-tpl-mfg { background: #14191f; color: #e2e8f0; }
.demo-tpl-mfg .mfg-top { background: #0d1116; padding: 7px 22px; font-size: 11px; color: #94a3b8; display: flex; justify-content: space-between; border-bottom: 1px solid #242d38; }
.demo-tpl-mfg .mfg-nav { background: #14191f; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e08b1b; }
.demo-tpl-mfg .mfg-logo { color: #ffffff; font-weight: 800; font-size: 16px; letter-spacing: 0.05em; }
.demo-tpl-mfg .mfg-logo span { color: #e08b1b; }
.demo-tpl-mfg .mfg-links { display: flex; gap: 16px; font-size: 12.5px; color: #cbd5e1; }
.rwd-viewport.mode-mobile .demo-tpl-mfg .mfg-links { display: none; }
.demo-tpl-mfg .mfg-hero { position: relative; background-size: cover; background-position: center; padding: 34px 24px; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 22px; align-items: center; }
.demo-tpl-mfg .mfg-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(13,17,22,0.92) 0%, rgba(13,17,22,0.72) 60%, rgba(13,17,22,0.84) 100%); }
.demo-tpl-mfg .mfg-hero > * { position: relative; z-index: 2; }
.rwd-viewport.mode-tablet .demo-tpl-mfg .mfg-hero,
.rwd-viewport.mode-mobile .demo-tpl-mfg .mfg-hero { grid-template-columns: 1fr; }
.demo-tpl-mfg .mfg-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-tpl-mfg .mfg-metric { background: rgba(255,255,255,0.06); border: 1px solid rgba(224,139,27,0.35); border-radius: 5px; padding: 12px; text-align: center; }
.demo-tpl-mfg .mfg-metric strong { display: block; font-size: 20px; color: #f5b00c; font-family: var(--font-display); }
.demo-tpl-mfg .mfg-metric span { font-size: 11px; color: #cbd5e1; }
.demo-tpl-mfg .mfg-catalog { padding: 26px 24px; background: #1a212a; }
.demo-tpl-mfg .mfg-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rwd-viewport.mode-mobile .demo-tpl-mfg .mfg-cat-grid { grid-template-columns: 1fr; }
.demo-tpl-mfg .mfg-spec-card { background: #14191f; border: 1px solid #2b3543; border-left: 3px solid #e08b1b; border-radius: 4px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.demo-tpl-mfg .mfg-spec-card h5 { color: #fff; margin: 0 0 4px; font-size: 14px; }
.demo-tpl-mfg .mfg-spec-card p { color: #94a3b8; margin: 0; font-size: 12px; }
.demo-tpl-mfg .mfg-spec-btn { background: #e08b1b; color: #14191f; font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 3px; white-space: nowrap; }

/* --- THEME 2: BIOTECH (Pure White Airy Split + Cert Strip + Report Cards) --- */
.demo-tpl-bio { background: #ffffff; color: #2d3748; }
.demo-tpl-bio .bio-nav { padding: 15px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e6f2f2; }
.demo-tpl-bio .bio-logo { color: #1b6b6b; font-size: 16px; font-weight: 800; }
.demo-tpl-bio .bio-links { display: flex; gap: 18px; font-size: 13px; color: #4a5568; align-items: center; }
.rwd-viewport.mode-mobile .demo-tpl-bio .bio-links { display: none; }
.demo-tpl-bio .bio-pill-cta { background: #1f7a7a; color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.demo-tpl-bio .bio-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 30px 24px; align-items: center; background: linear-gradient(180deg, #f6fbfb 0%, #ffffff 100%); }
.rwd-viewport.mode-mobile .demo-tpl-bio .bio-split { grid-template-columns: 1fr; }
.demo-tpl-bio .bio-split img { border-radius: 12px; width: 100%; height: 220px; object-fit: cover; box-shadow: 0 12px 26px rgba(31,122,122,0.12); }
.demo-tpl-bio .bio-cert-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 24px; background: #eff8f8; border-top: 1px solid #dceeee; border-bottom: 1px solid #dceeee; text-align: center; }
.rwd-viewport.mode-mobile .demo-tpl-bio .bio-cert-bar { grid-template-columns: repeat(2, 1fr); }
.demo-tpl-bio .bio-cert-item strong { display: block; color: #1f7a7a; font-size: 14px; }
.demo-tpl-bio .bio-cert-item span { font-size: 11px; color: #5f7171; }
.demo-tpl-bio .bio-reports { padding: 26px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rwd-viewport.mode-mobile .demo-tpl-bio .bio-reports { grid-template-columns: 1fr; }
.demo-tpl-bio .bio-report-card { border: 1px solid #d9ecec; border-radius: 8px; padding: 16px; background: #ffffff; }
.demo-tpl-bio .bio-report-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #1f7a7a; background: #e6f5f5; padding: 2px 9px; border-radius: 999px; margin-bottom: 8px; }

/* --- THEME 3: BAKERY E-COMMERCE (Warm Boutique Storefront + 4-Col Product Grid) --- */
.demo-tpl-bak { background: #fcf8f3; color: #3c2a1e; }
.demo-tpl-bak .bak-promo { background: #3c2a1e; color: #f6dec1; text-align: center; padding: 7px 14px; font-size: 11.5px; letter-spacing: 0.04em; }
.demo-tpl-bak .bak-header { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eadfd2; background: #fffdf9; }
.demo-tpl-bak .bak-brand { font-size: 18px; font-weight: 800; color: #3c2a1e; letter-spacing: 0.08em; }
.demo-tpl-bak .bak-cart { background: #b86b24; color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.demo-tpl-bak .bak-hero { position: relative; min-height: 230px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px 24px; }
.demo-tpl-bak .bak-hero::before { content: ''; position: absolute; inset: 0; background: rgba(45, 28, 16, 0.56); }
.demo-tpl-bak .bak-hero-box { position: relative; z-index: 2; max-width: 500px; color: #fff; }
.demo-tpl-bak .bak-shop { padding: 26px 24px; }
.demo-tpl-bak .bak-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rwd-viewport.mode-tablet .demo-tpl-bak .bak-grid { grid-template-columns: repeat(2, 1fr); }
.rwd-viewport.mode-mobile .demo-tpl-bak .bak-grid { grid-template-columns: 1fr; }
.demo-tpl-bak .bak-prod { background: #ffffff; border: 1px solid #eadfd2; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.demo-tpl-bak .bak-prod-img { height: 96px; background-size: cover; background-position: center; position: relative; }
.demo-tpl-bak .bak-tag { position: absolute; top: 8px; left: 8px; background: #b86b24; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.demo-tpl-bak .bak-prod-body { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.demo-tpl-bak .bak-prod-body h5 { font-size: 13.5px; margin: 0 0 4px; color: #3c2a1e; }
.demo-tpl-bak .bak-prod-body p { font-size: 11.5px; color: #7a6657; margin: 0 0 10px; }
.demo-tpl-bak .bak-add-btn { display: block; text-align: center; background: #f6ede2; color: #8c4d14; font-size: 11.5px; font-weight: 700; padding: 5px; border-radius: 4px; }

/* --- THEME 4: LIFESTYLE (Editorial Magazine Asymmetric + Booking Bar) --- */
.demo-tpl-life { background: #f5f1eb; color: #24211e; }
.demo-tpl-life .life-nav { padding: 16px 26px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2dbd0; }
.demo-tpl-life .life-brand { font-size: 16px; letter-spacing: 0.22em; font-weight: 700; }
.demo-tpl-life .life-editorial { display: grid; grid-template-columns: 1.35fr 0.95fr; min-height: 270px; }
.rwd-viewport.mode-mobile .demo-tpl-life .life-editorial { grid-template-columns: 1fr; }
.demo-tpl-life .life-photo { background-size: cover; background-position: center; min-height: 220px; }
.demo-tpl-life .life-story { padding: 30px 26px; display: flex; flex-direction: column; justify-content: center; background: #f5f1eb; }
.demo-tpl-life .life-booking { margin: 0 24px 24px; background: #ffffff; border: 1px solid #e2dbd0; border-radius: 6px; padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; box-shadow: 0 8px 20px rgba(36,33,30,0.06); }
.rwd-viewport.mode-tablet .demo-tpl-life .life-booking,
.rwd-viewport.mode-mobile .demo-tpl-life .life-booking { grid-template-columns: 1fr; }
.demo-tpl-life .life-book-field label { display: block; font-size: 11px; color: #7c7469; margin-bottom: 4px; }
.demo-tpl-life .life-book-field div { background: #f8f6f2; border: 1px solid #ded7cc; padding: 7px 10px; font-size: 12.5px; border-radius: 4px; color: #24211e; }
.demo-tpl-life .life-lookbook { padding: 0 24px 26px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.rwd-viewport.mode-mobile .demo-tpl-life .life-lookbook { grid-template-columns: 1fr; }
.demo-tpl-life .life-lb-card { background: #ffffff; padding: 18px; border: 1px solid #e5dfd5; border-radius: 4px; }

/* --- THEME 5: CONSULTING (Executive Navy + Inline Lead Form + Course Schedule) --- */
.demo-tpl-con { background: #f3f6fa; color: #1e293b; }
.demo-tpl-con .con-nav { background: #162b46; color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.demo-tpl-con .con-hero { background: linear-gradient(135deg, #162b46 0%, #234268 100%); color: #fff; padding: 30px 24px; display: grid; grid-template-columns: 1.2fr 0.85fr; gap: 24px; align-items: center; }
.rwd-viewport.mode-tablet .demo-tpl-con .con-hero,
.rwd-viewport.mode-mobile .demo-tpl-con .con-hero { grid-template-columns: 1fr; }
.demo-tpl-con .con-lead-box { background: #ffffff; color: #1e293b; border-radius: 6px; padding: 18px; box-shadow: 0 12px 26px rgba(0,0,0,0.22); }
.demo-tpl-con .con-lead-box h5 { margin: 0 0 8px; font-size: 14.5px; color: #162b46; }
.demo-tpl-con .con-fake-input { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 4px; padding: 7px 10px; font-size: 12px; color: #64748b; margin-bottom: 8px; }
.demo-tpl-con .con-schedule { padding: 26px 24px; }
.demo-tpl-con .con-course-row { background: #ffffff; border: 1px solid #dce4ee; border-radius: 6px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.demo-tpl-con .con-date-box { background: #162b46; color: #fff; border-radius: 5px; padding: 6px 12px; text-align: center; min-width: 64px; }
.demo-tpl-con .con-date-box strong { display: block; font-size: 16px; color: #f5b00c; line-height: 1.1; }
.demo-tpl-con .con-date-box span { font-size: 10px; }
.demo-tpl-con .con-seat-pill { background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* --- THEME 6: ASSOCIATION PORTAL (Accessible Civic Utility Bar + 2-Col Notice & Quick Grid) --- */
.demo-tpl-org { background: #f5f7f5; color: #243329; }
.demo-tpl-org .org-util { background: #235334; color: #e2f2e7; padding: 6px 22px; font-size: 11.5px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.demo-tpl-org .org-font-pills span { display: inline-block; border: 1px solid rgba(255,255,255,0.45); padding: 0 6px; border-radius: 3px; margin-left: 4px; font-size: 11px; }
.demo-tpl-org .org-header { background: #ffffff; padding: 16px 22px; border-bottom: 3px solid #2b6641; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.demo-tpl-org .org-search { background: #f1f5f2; border: 1px solid #cbd9cf; border-radius: 999px; padding: 5px 14px; font-size: 12px; color: #5d7364; }
.demo-tpl-org .org-portal-grid { padding: 22px; display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 20px; }
.rwd-viewport.mode-tablet .demo-tpl-org .org-portal-grid,
.rwd-viewport.mode-mobile .demo-tpl-org .org-portal-grid { grid-template-columns: 1fr; }
.demo-tpl-org .org-panel { background: #ffffff; border: 1px solid #d7e3da; border-radius: 6px; padding: 16px 18px; }
.demo-tpl-org .org-panel h5 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e7f0e9; color: #235334; font-size: 15px; }
.demo-tpl-org .org-news-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #e2eae4; font-size: 13px; }
.demo-tpl-org .org-news-item:last-child { border-bottom: none; }
.demo-tpl-org .org-cat-tag { background: #e8f5ec; color: #235334; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; margin-right: 7px; }
.demo-tpl-org .org-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-tpl-org .org-quick-btn { background: #f3f8f4; border: 1px solid #d2e2d6; border-radius: 6px; padding: 14px 10px; text-align: center; font-size: 12.5px; font-weight: 700; color: #235334; }
.demo-tpl-org .org-quick-btn span { display: block; font-size: 18px; margin-bottom: 4px; }
