/* ==========================================================================
   CTW DIVISION 03 — GOVERNMENT (GOV) vs. BUSINESS (BUS) POPUP MODAL
   Official System Logos + Framed Website Hero Page Windows · Iconless Text
   ========================================================================== */
.ctw-govbus-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 9, 18, 0.82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ctw-govbus-backdrop.open {
  display: flex;
}

.ctw-govbus-dialog {
  width: min(1040px, 96vw);
  max-height: 93vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0b1120 0%, #101a32 100%);
  border: 1.5px solid rgba(245, 184, 0, 0.42);
  border-radius: 18px;
  color: #ffffff;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.72);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ctw-govbus-head {
  padding: 18px 26px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ctw-govbus-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5b800;
  margin-bottom: 3px;
}

.ctw-govbus-head h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.ctw-govbus-head p {
  font-size: 12.8px;
  color: #cbd5e1;
  margin: 3px 0 0;
}

.ctw-govbus-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 9px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.ctw-govbus-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.ctw-govbus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px 26px;
}

.ctw-govbus-option {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px;
  border-radius: 15px;
  text-decoration: none;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ctw-govbus-option.gov-opt:hover {
  transform: translateY(-3px);
  border-color: #f5b800;
  background: rgba(245, 184, 0, 0.07);
  box-shadow: 0 18px 40px rgba(245, 184, 0, 0.16);
}

.ctw-govbus-option.bus-opt:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.09);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.22);
}

/* LOGO BAR ABOVE WINDOW */
.ctw-opt-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ctw-opt-logos {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ctw-opt-logos img {
  height: 30px;
  width: 30px;
  border-radius: 7px;
  object-fit: contain;
  background: #ffffff;
  padding: 2.5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ctw-opt-logos img.wide-logo {
  width: auto;
  max-width: 122px;
  padding: 3px 7px;
}

/* FRAMED WEBSITE BROWSER WINDOW */
.ctw-win-frame {
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.ctw-win-bar {
  height: 28px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctw-win-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.ctw-win-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}
.ctw-win-dots i:nth-child(1) { background: #ef4444; }
.ctw-win-dots i:nth-child(2) { background: #f59e0b; }
.ctw-win-dots i:nth-child(3) { background: #22c55e; }

.ctw-win-url {
  flex: 1;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctw-win-screen {
  position: relative;
  aspect-ratio: 16 / 9.4;
  background: #090e1a;
  overflow: hidden;
}

.ctw-win-screen > img.main-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.ctw-govbus-option:hover .ctw-win-screen > img.main-shot {
  transform: scale(1.03);
}

/* FLOATING SECONDARY MINI WINDOW PIP */
.ctw-win-pip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40%;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  background: #ffffff;
}

.ctw-win-pip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.ctw-govbus-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ctw-govbus-pill.gold { background: rgba(245, 184, 0, 0.2); color: #fde047; }
.ctw-govbus-pill.blue { background: rgba(59, 130, 246, 0.24); color: #93c5fd; }

.ctw-govbus-option h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 19.5px;
  font-weight: 900;
  margin: 0;
  color: #ffffff;
}

.ctw-govbus-option p {
  font-size: 12.6px;
  color: #cbd5e1;
  line-height: 1.48;
  margin: 0;
}

.ctw-govbus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ctw-govbus-tags span {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.8px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.ctw-govbus-cta {
  margin-top: auto;
  padding: 9.5px 14px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12.8px;
  text-align: center;
}

.gov-opt .ctw-govbus-cta { background: #f5b800; color: #090d16; }
.bus-opt .ctw-govbus-cta { background: #2563eb; color: #ffffff; }

/* OWNED SYSTEMS MINI WINDOWS STRIP */
.ctw-govbus-foot {
  padding: 14px 26px 18px;
  background: rgba(4, 8, 17, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ctw-govbus-owned-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ctw-owned-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ctw-owned-chip:hover {
  border-color: #f5b800;
  color: #fde047;
  transform: translateY(-1px);
}

.ctw-owned-chip img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
}

.ctw-div03-clickable {
  cursor: pointer;
}

@media (max-width: 820px) {
  .ctw-govbus-grid { grid-template-columns: 1fr; }
}
