* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body.preloader-active {
  overflow: hidden;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f5f5;
  opacity: 1;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-preloader.preloader-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader-card {
  width: min(100%, 390px);
  padding: 36px 28px 30px;
  border: 1px solid #e1dfdd;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.preloader-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 20px;
  border: 3px solid #e1dfdd;
  border-top-color: #6264a7;
  border-radius: 50%;
  animation: preloader-spin 0.9s linear infinite;
}

.preloader-kicker {
  color: #6264a7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-preloader-card h1 {
  margin-top: 8px;
  color: #242424;
  font-size: 23px;
}

.preloader-copy,
.preloader-status {
  color: #616161;
  font-size: 13px;
}

.preloader-copy {
  margin: 10px 0 22px;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.preloader-status {
  margin-top: 14px;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  background-color: #f5f5f5;
  color: #242424;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Navigation Bar */
.top-nav {
  height: 48px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid #e1dfdd;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.top-nav.meeting-nav {
  background-color: #464775;
  border-bottom: none;
}

.top-nav.meeting-nav .brand-text {
  color: #ffffff;
}

.top-nav.connecting-nav {
  height: 40px;
  padding: 0 10px;
  background-color: #292929;
  border-bottom-color: #3b3b3b;
}

.top-nav.connecting-nav .brand-text {
  color: #eeeeee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teams-logo-nav {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-text {
  font-size: 14px;
  font-weight: 600;
  color: #242424;
  letter-spacing: -0.1px;
}

.meeting-meta,
.connection-status {
  display: none;
}

.meeting-meta {
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid #444444;
  color: #777777;
  font-size: 11px;
}

.connection-status {
  margin-left: auto;
  color: #8bd339;
  font-size: 10px;
}

/* Page Layout - Step 1 Verification */
.page-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Verification Card */
.verify-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 44px 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #edebe9;
}

/* Hero Teams Logo */
.hero-icon-container {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-teams-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* Typography */
.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1b1b1b;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.card-subtitle {
  font-size: 13px;
  color: #616161;
  margin-bottom: 28px;
  line-height: 1.45;
  max-width: 320px;
}

/* Verify Button */
.verify-btn {
  width: 100%;
  background-color: #5059c9;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.08s ease;
  box-shadow: 0 2px 4px rgba(80, 89, 201, 0.2);
}

.verify-btn:hover {
  background-color: #444cb3;
}

/* Verified state (Green style like image 1) */
.verify-btn.verified-state {
  background-color: #0b7a0b !important;
  color: #ffffff !important;
  cursor: default;
}

.shield-icon {
  width: 16px;
  height: 16px;
}

/* Green Status Alert Message */
.verified-alert {
  margin-top: 18px;
  width: 100%;
  background-color: #eaf5ea;
  border: 1px solid #c2e2c2;
  color: #1b6326;
  font-size: 12.5px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 6px;
  line-height: 1.4;
  text-align: center;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer note */
.card-footer-text {
  margin-top: 32px;
  font-size: 11px;
  color: #8a8886;
  font-weight: 400;
}

/* Step 2: Meeting Launching Section */
.meeting-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #ffffff;
}

.meeting-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
}

.instruction-main {
  font-size: 14px;
  color: #242424;
  margin-bottom: 6px;
}

.instruction-main strong {
  font-weight: 700;
}

.instruction-sub {
  font-size: 13px;
  color: #424242;
  margin-bottom: 24px;
}

.instruction-sub strong {
  font-weight: 700;
}

/* Launch Meeting Button */
.launch-btn {
  background-color: #5059c9;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 26px;
  transition: background-color 0.15s ease;
}

.launch-btn:hover {
  background-color: #444cb3;
}

/* Don't have Teams link */
.install-text {
  font-size: 12px;
  color: #616161;
  margin-bottom: 34px;
}

.download-link {
  color: #5059c9;
  text-decoration: none;
  font-weight: 500;
}

.download-link:hover {
  text-decoration: underline;
}

/* Animated Circular Spinner */
.loading-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid #eaeaf2;
  border-top-color: #5059c9;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* Browser-style app launch dialog */
.app-dialog {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 24px;
  width: min(421px, calc(100vw - 32px));
  transform: translateY(-125%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.app-dialog.is-visible {
  transform: translateY(18px);
  opacity: 1;
  pointer-events: auto;
}

.app-dialog-card {
  padding: 28px 20px 19px;
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 7px;
  box-shadow: 0 11px 25px rgba(0, 0, 0, 0.18);
  color: #242424;
}

.app-dialog-card h2 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.app-dialog-card p {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.app-dialog-card p span {
  color: #8d8d8d;
}

.app-dialog-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}

.app-dialog-checkbox input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.app-dialog-actions button {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.dialog-cancel {
  background: #f0f0f0;
  color: #242424;
}

.dialog-open {
  background: #5b5fc7;
  color: #ffffff;
}

.dialog-cancel:hover {
  background: #e5e5e5;
}

.dialog-open:hover {
  background: #4f53b5;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Step 3: Connecting to meeting */
.connecting-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f1f1f;
  color: #ffffff;
  overflow: hidden;
}

.self-preview {
  position: absolute;
  top: 16px;
  right: 15px;
  width: 147px;
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #454545 0, #252525 52%, #171717 100%);
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.self-preview span {
  color: #a7a7a7;
  font-size: 8px;
  letter-spacing: 0.4px;
}

.connecting-card {
  width: min(583px, calc(100vw - 40px));
  height: 328px;
  margin-top: -1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #363636 0%, #303030 100%);
  border-radius: 6px;
}

.connecting-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.connecting-spinner {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border: 3px solid #5b5b5b;
  border-top-color: #6d6be8;
  border-radius: 50%;
  animation: spin 0.95s linear infinite;
}

.connecting-card h1 {
  margin-bottom: 10px;
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
}

.connecting-card p {
  color: #9b9b9b;
  font-size: 12px;
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background-color: #df3542;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
}

.error-state h1 {
  margin-bottom: 10px;
  color: #ff6868;
  font-size: 14px;
  font-weight: 600;
}

.error-state p {
  margin-bottom: 15px;
}

.error-state code {
  padding: 4px 10px;
  border: 1px solid #494949;
  border-radius: 3px;
  background-color: #1c1c1c;
  color: #d7d7d7;
  font-size: 10px;
}

.error-actions {
  display: flex;
  gap: 9px;
  margin-top: 30px;
}

.error-actions button {
  height: 34px;
  padding: 0 17px;
  border: 1px solid #5b5b5b;
  border-radius: 4px;
  background: transparent;
  color: #dddddd;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.error-actions .download-component-btn {
  border-color: #5b5fc7;
  background-color: #5b5fc7;
  color: #ffffff;
}

.error-actions button:hover {
  background-color: #4a4a4a;
}

.error-actions .download-component-btn:hover {
  background-color: #4f53b5;
}

.meeting-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #292929;
  border-top: 1px solid #414141;
}

/* Microsoft Store destination */
.store-mode {
  background: #101010;
  color: #eeeeee;
}

.store-page {
  min-height: 100vh;
  background: #101010;
  color: #eeeeee;
  font-family: "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.store-page.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.store-nav {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 5.2%;
  background: #050505;
  font-size: 15px;
}

.store-brand { display: flex; align-items: center; gap: 5px; font-size: 15px; white-space: nowrap; }
.ms-mark { width: 137px; height: 41px; object-fit: contain; object-position: left center; }
.store-divider { height: 25px; border-left: 1px solid #bbb; margin: 0 6px; }
.store-nav nav { display: flex; gap: 38px; }
.store-nav a, .store-page a { color: #4bc5ff; text-decoration: none; }
.store-nav nav a { color: #aaa; padding: 29px 0 22px; transition: color 0.2s ease, transform 0.2s ease; }
.store-nav nav a:hover { color: #fff; transform: translateY(-1px); }
.store-nav nav a.active { color: #4bc5ff; border-bottom: 2px solid #4bc5ff; }
.store-search { margin-left: auto; width: 33%; padding: 10px 15px; border: 1px solid #555; border-radius: 20px; color: #bbb; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.store-search:focus-within { border-color: #69c9f5; box-shadow: 0 0 0 2px rgba(80, 190, 245, 0.2); }
.store-search span { margin-left: 8px; font-size: 12px; }
.multi-install, .account-badge { border: 0; border-radius: 20px; background: #123653; color: #5bc8ff; padding: 10px 15px; white-space: nowrap; transition: background-color 0.2s ease, transform 0.2s ease; }
.multi-install:hover { background: #1d5278; transform: translateY(-1px); }
.account-badge { padding: 8px; background: #252525; color: white; font-size: 11px; }

.store-hero { min-height: 500px; display: flex; gap: 30px; padding: 95px 7%; background: linear-gradient(180deg, #2d4d87, #1d3158 63%, #101010); }
.product-icon { width: 126px; height: 126px; object-fit: cover; border-radius: 10px; }
.product-summary h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.28; }
.product-summary > a { font-size: 12px; }
.product-rating { margin-top: 10px; color: #ddd; font-size: 14px; }
.product-badges { display: flex; gap: 12px; margin: 16px 0; }
.product-badges span { padding: 5px 8px; background: #8190a8; border-radius: 3px; font-size: 11px; }
.product-summary p { font-size: 14px; line-height: 1.5; }
.store-download { width: 165px; display: block; margin: 20px 0 12px; padding: 12px; border: 0; border-radius: 4px; background: #55c5f5; color: #101010 !important; text-align: center; font-size: 15px; font-weight: 600; transition: background-color 0.2s ease, transform 0.2s ease; }
.store-download:hover { background: #7bd6fa; transform: translateY(-2px); }
.esrb { display: flex; gap: 8px; font-size: 10px; }
.esrb img { width: 42px; height: 42px; object-fit: contain; }

.store-layout { display: grid; grid-template-columns: minmax(0, 3.2fr) 1fr; gap: 65px; max-width: 1450px; margin: -1px auto 70px; padding: 0 28px; }
.store-main { display: flex; flex-direction: column; gap: 16px; }
.store-panel { padding: 22px 24px; border: 1px solid #38383c; border-radius: 6px; background: #242427; transition: border-color 0.2s ease, transform 0.2s ease; }
.store-panel:hover { border-color: #55555d; }
.store-panel h2, .discover h2 { margin: 0 0 16px; padding-bottom: 13px; border-bottom: 1px solid #3a3a3d; font-size: 16px; }
.screenshots { display: flex; gap: 10px; overflow: hidden; }
.screenshots img { min-width: 33%; width: 33%; height: 175px; object-fit: cover; border-radius: 4px; transition: transform 0.25s ease, filter 0.25s ease; }
.screenshots img:hover { transform: scale(1.025); filter: brightness(1.1); }
.screenshots strong { font-size: 25px; }
.description-copy { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; font-size: 12px; line-height: 1.4; }
.store-panel > p, .additional-grid { font-size: 12px; line-height: 1.8; }
.rating-score { font-size: 55px; font-weight: 300; }
.rating-score small { display: block; font-size: 10px; }
.additional-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.discover { padding-top: 5px; }
.discover p { min-height: 92px; padding: 16px 0; border-bottom: 1px solid #303033; font-size: 14px; line-height: 1.7; transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.discover p:hover { color: #fff; border-color: #55c5f5; transform: translateX(5px); }
.discover p b { float: right; padding: 0 5px; background: #000; border-radius: 3px; font-size: 10px; }
.discover p img { width: 42px; height: 42px; object-fit: cover; float: left; margin-right: 12px; border-radius: 7px; }
.store-footer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; padding: 35px 7%; background: #1b1b1f; color: #aaa; }
.store-footer div { display: flex; flex-direction: column; gap: 18px; font-size: 12px; }
.store-footer strong { color: white; font-size: 15px; }

.meeting-control,
.leave-btn {
  border: 0;
  color: #dddddd;
  cursor: pointer;
}

.meeting-control {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #3c3c3c;
  font-size: 14px;
}

.meeting-control:hover {
  background-color: #505050;
}

.leave-btn {
  height: 36px;
  padding: 0 20px;
  margin-left: 1px;
  border-radius: 18px;
  background-color: #e74856;
  font-size: 12px;
  font-weight: 600;
}

.leave-btn:hover {
  background-color: #f25562;
}

@media (max-width: 480px) {
  .verify-card {
    padding: 32px 20px 24px;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .self-preview {
    top: 12px;
    right: 12px;
    width: 120px;
    height: 68px;
  }

  .connecting-card {
    height: 280px;
  }

  .meeting-controls {
    gap: 5px;
  }

  .meeting-control {
    width: 34px;
    height: 34px;
  }

  .leave-btn {
    padding: 0 14px;
  }

  .app-dialog-card {
    padding: 22px 16px 16px;
  }

  .app-dialog-card p,
  .app-dialog-checkbox,
  .app-dialog-actions button {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .store-nav {
    gap: 18px;
    padding: 0 24px;
  }

  .store-search {
    width: 28%;
  }

  .store-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .discover h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .top-nav {
    height: 44px;
    padding: 0 12px;
  }

  .brand {
    gap: 6px;
    min-width: 0;
  }

  .teams-logo-nav {
    width: 20px;
    height: 20px;
  }

  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .top-nav.connecting-nav {
    height: 40px;
  }

  .meeting-meta {
    display: none !important;
  }

  .connection-status {
    font-size: 9px;
  }

  .page-container,
  .meeting-container {
    padding: 16px;
  }

  .verify-card {
    max-width: 100%;
    padding: 28px 18px 22px;
  }

  .hero-teams-icon {
    width: 76px;
    height: 76px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-subtitle {
    margin-bottom: 22px;
  }

  .instruction-main,
  .instruction-sub {
    max-width: 330px;
    font-size: 12px;
  }

  .self-preview {
    width: 96px;
    height: 58px;
  }

  .connecting-card {
    width: calc(100vw - 32px);
    height: 285px;
  }

  .connecting-card h1,
  .error-state h1 {
    font-size: 13px;
  }

  .error-state {
    width: calc(100% - 24px);
  }

  .error-state code {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .error-actions {
    gap: 6px;
    margin-top: 20px;
  }

  .error-actions button {
    padding: 0 10px;
    font-size: 11px;
  }

  .meeting-controls {
    height: 54px;
    gap: 4px;
    padding: 0 6px;
  }

  .meeting-control {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .leave-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  .app-dialog {
    right: 12px;
    width: calc(100vw - 24px);
  }

  .app-dialog.is-visible {
    transform: translateY(12px);
  }

  .app-dialog-actions {
    gap: 7px;
  }

  .app-dialog-actions button {
    flex: 1;
    padding: 0 8px;
  }

  .store-nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 16px;
  }

  .store-brand {
    flex: 1 1 auto;
  }

  .ms-mark {
    width: 112px;
    height: 34px;
  }

  .store-nav nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .store-nav nav a {
    padding: 8px 0 7px;
    font-size: 13px;
  }

  .store-search {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    padding: 8px 12px;
  }

  .multi-install {
    display: none;
  }

  .store-hero {
    min-height: 0;
    flex-direction: column;
    gap: 18px;
    padding: 42px 20px 55px;
  }

  .product-icon {
    width: 88px;
    height: 88px;
  }

  .product-summary h1 {
    font-size: 25px;
  }

  .product-summary p {
    font-size: 13px;
  }

  .product-summary p br {
    display: none;
  }

  .product-badges {
    flex-wrap: wrap;
    gap: 7px;
  }

  .store-download {
    width: 100%;
  }

  .store-layout {
    display: block;
    padding: 0 12px;
    margin-bottom: 35px;
  }

  .store-main {
    gap: 12px;
  }

  .store-panel {
    padding: 16px;
  }

  .screenshots {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .screenshots img {
    min-width: 88%;
    width: 88%;
    height: auto;
    aspect-ratio: 16 / 9;
    scroll-snap-align: start;
  }

  .description-copy {
    display: block;
  }

  .description-copy p {
    margin-top: 14px;
  }

  .additional-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .discover {
    display: block;
    margin-top: 24px;
  }

  .discover p {
    min-height: 78px;
  }

  .store-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    padding: 28px 20px;
  }
}
