
* { 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 ===== */
#screen6 { background: #f2f2f2; flex-direction: column; }
.ms-nav { background: #fff; padding: 12px 24px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid #e0e0e0; }
.ms-logo { display: flex; align-items: center; gap: 8px; }
.ms-grid { display: grid; grid-template-columns: repeat(2,1fr); width: 22px; height: 22px; gap: 2px; }
.ms-grid div { border-radius: 1px; }
.ms-grid div:nth-child(1) { background: #f25022; }
.ms-grid div:nth-child(2) { background: #7fba00; }
.ms-grid div:nth-child(3) { background: #00a4ef; }
.ms-grid div:nth-child(4) { background: #ffb900; }
.ms-brand { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ms-store-label { font-size: 14px; color: #555; }
.ms-nav-links { display: flex; gap: 20px; margin-left: 10px; }
.ms-nav-links a { font-size: 14px; color: #1a1a1a; text-decoration: none; font-weight: 500; }
.ms-nav-links a.active { color: #0067b8; border-bottom: 2px solid #0067b8; padding-bottom: 2px; }
.ms-search { margin-left: auto; }
.ms-search input { border: 1px solid #ccc; border-radius: 4px; padding: 7px 14px; font-size: 13px; width: 220px; }
.ms-sign-in { color: #0067b8; font-size: 14px; text-decoration: none; margin-left: 16px; font-weight: 500; }
.ms-content { display: flex; flex: 1; padding: 40px 48px; gap: 48px; background: linear-gradient(180deg, #dce9f5 0%, #f2f2f2 300px); }
.ms-app-main { flex: 1; }
.ms-app-header { display: flex; align-items: flex-start; gap: 28px; margin-bottom: 28px; }
.ms-app-icon { width: 130px; height: 130px; background: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.1); flex-shrink: 0; }
.ms-app-icon span { color: #2d8cff; font-size: 30px; font-weight: 700; }
.ms-app-name { font-size: 34px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.ms-app-maker { color: #555; font-size: 14px; margin-bottom: 12px; }
.ms-app-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.ms-star { color: #f5a623; }
.ms-rating-text { font-size: 14px; color: #555; }
.ms-tag { background: #e8f0fe; color: #1a73e8; font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 500; }
.ms-install-btn { background: #0067b8; color: #fff; border: none; padding: 12px 36px; border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 12px; display: block; transition: background 0.2s; }
.ms-install-btn:hover { background: #005a9e; }
.ms-guidance { color: #777; font-size: 12px; }
.ms-description { margin-top: 32px; }
.ms-description h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.ms-description p { color: #555; font-size: 14px; line-height: 1.7; }
.ms-sidebar { width: 220px; flex-shrink: 0; }
.ms-sidebar h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: #1a1a1a; }
.ms-related { display: flex; flex-direction: column; gap: 14px; }
.ms-related-item { display: flex; align-items: center; gap: 12px; }
.ms-related-icon { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ms-related-name { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.ms-related-sub { font-size: 11px; color: #888; }
.ms-free-badge { background: #f0f0f0; border: 1px solid #ddd; color: #555; font-size: 11px; padding: 3px 10px; border-radius: 4px; margin-left: auto; white-space: nowrap; }

/* ===== 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); }
}
