
 * { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f0f2f5; min-height: 100vh; }
.screen { display: none; width: 100%; min-height: 100vh; }
.screen.active { display: flex; }

/* ===== SCREEN 1: Connecting Spinner ===== */
#screen1 { background: #f0f2f5; align-items: center; justify-content: center; flex-direction: column; gap: 26px; }
.loader-brand { color: #2d8cff; font-size: 34px; font-weight: 700; letter-spacing: -2px; }
.loader-spinner {
  width: 58px; height: 58px;
  border: 5px solid #e3e6ea;
  border-top-color: #2d8cff;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
#loader-status { color: #555; font-size: 16px; font-weight: 500; letter-spacing: 0.3px; }

/* ===== SCREEN 2: Zoom Loading ===== */
#screen2 { background: #f0f2f5; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.zoom-logo-box { width: 110px; height: 110px; background: #fff; border-radius: 22px; border: 2px solid #2d8cff; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.zoom-logo-text { color: #2d8cff; font-size: 26px; font-weight: 700; letter-spacing: -1px; }
#screen2 h2 { color: #2d8cff; font-size: 32px; font-weight: 700; }
#screen2 .preparing { color: #999; font-size: 15px; margin-top: 4px; letter-spacing: 0.5px; }
.dots { display: flex; gap: 10px; margin-top: 20px; }
.dot { width: 12px; height: 12px; background: #2d8cff; border-radius: 50%; animation: bounce 1.2s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.meeting-id-s2 { color: #aaa; font-size: 14px; margin-top: 24px; }

/* ===== SCREEN 3: Zoom Join ===== */
#screen3 { background: #f0f2f5; align-items: center; justify-content: center; flex-direction: column; padding: 32px 0; gap: 20px; }
.zoom-header { display: flex; align-items: center; gap: 14px; }
.zoom-header-logo { width: 56px; height: 56px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 6px rgba(0,0,0,0.1); }
.zoom-header-logo span { color: #2d8cff; font-size: 13px; font-weight: 700; }
.zoom-header-info h3 { color: #2d8cff; font-size: 20px; font-weight: 700; }
.zoom-header-info p { color: #999; font-size: 13px; }
.join-card { background: #fff; border-radius: 14px; padding: 28px; width: 500px; box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.join-card h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; }
.host-row { background: #f8f9fb; border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.host-avatar { width: 42px; height: 42px; background: linear-gradient(135deg, #6c5ce7, #a855f7); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.host-name { font-weight: 600; font-size: 15px; color: #1a1a1a; }
.host-sub { font-size: 12px; color: #888; }
.meeting-meta { display: flex; gap: 20px; margin-bottom: 16px; color: #555; font-size: 14px; }
.expected-tag { background: #eaf2ff; color: #2d8cff; text-align: center; padding: 11px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.join-btn { width: 100%; background: #2d8cff; color: #fff; border: none; border-radius: 10px; padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.join-btn:hover { background: #1a7ae8; }
.cam-note { text-align: center; color: #aaa; font-size: 12px; margin-top: 10px; }
.meeting-id-footer { color: #aaa; font-size: 13px; background: #e8eaed; padding: 8px 20px; border-radius: 20px; }

/* ===== SCREEN 4: Zoom Meeting ===== */
#screen4 { background: #1c2333; flex-direction: column; position: relative; overflow: hidden; }
.meeting-topbar { background: #fff; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; z-index: 10; flex-shrink: 0; }
.meeting-topbar-left { display: flex; align-items: center; gap: 10px; }
.meeting-topbar-logo { color: #2d8cff; font-size: 16px; font-weight: 700; }
.meeting-topbar-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.meeting-topbar-status { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #555; }
.green-dot { width: 8px; height: 8px; background: #00c851; border-radius: 50%; }
.meeting-timer { font-size: 14px; color: #555; font-weight: 600; }
.meeting-area { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.joined-toast { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: #2d8cff; color: #fff; padding: 10px 20px; border-radius: 30px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; animation: fadeInDown 0.4s ease; white-space: nowrap; }
.toast-avatar { width: 28px; height: 28px; background: rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.you-avatar { width: 100px; height: 100px; background: linear-gradient(135deg, #6c5ce7, #a855f7); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; }
.view-btns { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.view-btn { background: #2a2f3e; color: #fff; border: none; padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.meeting-toolbar { background: rgba(255,255,255,0.05); border-radius: 16px 16px 0 0; padding: 16px 24px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; backdrop-filter: blur(10px); position: relative; }
.tool-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: none; color: #fff; cursor: pointer; padding: 8px 12px; border-radius: 10px; font-size: 11px; min-width: 60px; transition: background 0.2s; }
.tool-btn:hover { background: rgba(255,255,255,0.1); }
.tool-btn svg { width: 22px; height: 22px; }
.unmute-btn { background: #d93025 !important; border-radius: 12px; }
.speaker-group { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; }
.spk-btn { background: #d93025; color: #fff; border: none; padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ===== SCREEN 5: Update Required ===== */
#screen5 { background: #fff; flex-direction: column; }
.zoom-nav { background: #fff; border-bottom: 1px solid #e8eaed; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; }
.zoom-nav-logo { color: #2d8cff; font-size: 22px; font-weight: 700; letter-spacing: -1px; }
.zoom-nav-links { display: flex; gap: 28px; }
.zoom-nav-links a { color: #333; font-size: 14px; text-decoration: none; }
.zoom-nav-support { color: #333; font-size: 14px; }
.update-body { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #f8f9fb; padding: 60px 20px; }
.update-body h1 { font-size: 40px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; }
.update-body > p { color: #666; font-size: 16px; text-align: center; max-width: 520px; margin-bottom: 40px; line-height: 1.6; }
.update-card { background: #fff; border-radius: 14px; padding: 36px; width: 480px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); text-align: center; }
.critical-badge { background: #eef0ff; color: #5865f2; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; padding: 5px 14px; border-radius: 20px; display: inline-block; margin-bottom: 16px; }
.update-card h3 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.update-card p { color: #777; font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.ms-store-btn { width: 100%; background: #f8f9fb; border: 1px solid #e0e0e0; border-radius: 10px; padding: 16px; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.2s; color: #1a1a1a; }
.ms-store-btn:hover { background: #eef0ff; }
.redirect-note { color: #aaa; font-size: 13px; margin-top: 16px; }
.countdown-num { color: #2d8cff; font-weight: 600; }

/* ===== SCREEN 6: Microsoft Store ===== */
/* SCREEN 6: Zoom Sign In */
#screen6 { background: #fff; flex-direction: row; padding: 0; overflow: hidden; }

/* Header stays fixed at top across both panels */
#screen6::before { content: none; }
.zm-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 18px 32px;
    z-index: 10;

    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.zm-header .zm-logo { display: flex; align-items: center; gap: 10px; }
.zm-cam { width: 24px; height: 24px; background: #2d8cff; border-radius: 6px; position: relative; }
.zm-cam::after { content: ''; position: absolute; right: -7px; top: 6px; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid #2d8cff; }
.zm-brand { font-size: 20px; font-weight: 700; color: #2d8cff; letter-spacing: 0.5px; }
.zm-header-links { margin-left: auto; display: flex; gap: 28px; }
.zm-header-links a { font-size: 14px; color: #232333; text-decoration: none; font-weight: 500; }
.zm-header-links a:hover { color: #2d8cff; }

/* Left panel — image */
.zm-left-panel {
    flex: 1;
    background: #eaf3fd;
    display: flex;
    align-items: center;
    justify-content: center;
}

#zm-hero-img {
    width: 400px !important;
    height: auto !important;
    display: block;
}

/* Right panel — sign in */
.zm-right-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; position: relative; }
.zm-signin-box { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 420px; }
.zm-logo { display: flex; align-items: center; gap: 10px; }
.zm-signin-title { font-size: 22px; font-weight: 600; color: #232333; margin: 0; }
.zm-signin-btn { background: #2d8cff; color: #fff; border: none; padding: 14px 0; width: 100%; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; position: relative; overflow: hidden; transition: background 0.2s; }
.zm-signin-btn:hover { background: #1f7ae0; }
.zm-install-progress { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: rgba(255,255,255,0.25); }

/* Footer */
.zm-footer { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.zm-footer-links { display: flex; gap: 24px; }
.zm-footer-links a { font-size: 13px; color: #55555e; text-decoration: none; font-weight: 500; }
.zm-footer-links a:hover { color: #2d8cff; }
.zm-footer-note { font-size: 11px; color: #8a8a94; margin: 0; text-align: center; max-width: 480px; }
.zm-footer-note a { color: #8a8a94; text-decoration: underline; }

/* ===== Mobile / narrow screens ===== */
@media (max-width: 768px) {

  /* Stack the two panels (though left one is hidden below) */
  #screen6 {
    flex-direction: column;
  }

  /* Hide the hero image panel entirely on mobile */
  .zm-left-panel {
    display: none;
  }

  /* Right panel becomes the whole screen */
  .zm-right-panel {
    flex: 1;
    width: 100%;
    padding: 96px 24px 120px; /* top clears the fixed header, bottom clears footer */
    justify-content: flex-start; /* or keep center if you prefer */
  }

  /* Header: tighter padding, optionally hide the nav links */
  .zm-header {
    padding: 14px 20px;
  }

  .zm-header-links {
    gap: 16px;
  }

  /* Hide nav links on very small screens (optional) */
  /*
  .zm-header-links { display: none; }
  */

  /* Sign-in box: allow it to use full width up to the cap */
  .zm-signin-box {
    max-width: 100%;
  }

  /* Footer sits near the bottom but respects small screens */
  .zm-footer {
    bottom: 16px;
    padding: 0 16px;
  }

  .zm-footer-links {
    gap: 16px;
  }

  .zm-footer-note {
    font-size: 10px;
    max-width: 100%;
  }
}

/* Tiny phones */
@media (max-width: 380px) {
  .zm-header-links { gap: 10px; }
  .zm-header-links a { font-size: 13px; }
  .zm-signin-title { font-size: 20px; }
  .zm-signin-btn { font-size: 15px; }
}
@media (max-width: 768px) {
  .zm-header .zm-logo { display: none; }
}
/* ===== POPUP: Download Complete ===== */
#popup-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
#popup-overlay.active { display: flex; }

.popup-card {
  background: #fff;
  border-radius: 12px;
  padding: 44px 52px 40px;
  width: 500px;
  min-height: 200px;
  text-align: left;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  animation: popIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup-header-row {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 8px;
}
.popup-title-text {
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.2px;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}
.popup-zoom-brand {
  color: #2d8cff;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  flex-shrink: 0;
}

.popup-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.popup-name-label { font-size: 14px; color: #888; }
.popup-name-value { font-size: 16px; font-weight: 700; color: #1a1a1a; }

.popup-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: #2d8cff;
  border-radius: 12px 0 0 12px;
}

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
