* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }
    html { scroll-behavior: smooth; }
    body { background: #f8fafc; color: #0f172a; }
    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; }
    .hidden { display: none !important; }
    .container { width: min(1120px, 92%); margin: auto; }

    header {
      position: sticky; top: 0; z-index: 50;
      background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
      border-bottom: 1px solid #e2e8f0;
    }
    .navbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .logo { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 900; }
    .logo-icon { width: 42px; height: 42px; border-radius: 15px; background: #4f46e5; color: white; display: grid; place-items: center; }
    .logo small { display: block; color: #64748b; font-size: 12px; font-weight: 500; }
    .nav-links { display: flex; align-items: center; gap: 26px; color: #475569; font-weight: 700; font-size: 14px; }
    .nav-links a:hover { color: #4f46e5; }
    .btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 800; cursor: pointer; transition: 0.2s; display: inline-block; text-align: center; }
    .btn-primary { background: #4f46e5; color: white; }
    .btn-primary:hover { background: #4338ca; transform: translateY(-2px); }
    .btn-outline { background: white; border: 1px solid #cbd5e1; color: #0f172a; }
    .btn-outline:hover { border-color: #4f46e5; color: #4f46e5; transform: translateY(-2px); }

    .hero {
      padding: 86px 0;
      display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 52px;
      background: linear-gradient(180deg, #f8fafc, #eef2ff);
    }
    .badge { display: inline-block; background: white; border: 1px solid #e0e7ff; color: #4338ca; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 900; margin-bottom: 22px; }
    .hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -2px; margin-bottom: 22px; }
    .hero p { color: #475569; font-size: 18px; line-height: 1.7; margin-bottom: 28px; max-width: 560px; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .demo-card { background: white; border: 1px solid #e2e8f0; border-radius: 30px; overflow: hidden; box-shadow: 0 28px 70px rgba(79,70,229,0.16); }
    .demo-top { background: #0f172a; color: white; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
    .live { background: rgba(34,197,94,.18); color: #bbf7d0; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
    .demo-body { padding: 22px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
    .mock-chat { background: #f1f5f9; border-radius: 22px; padding: 18px; }
    .mock-message { background: white; border-radius: 16px; padding: 12px; margin-bottom: 10px; font-size: 14px; color: #334155; }
    .mock-message strong { color: #4f46e5; }
    .mock-side { display: grid; gap: 12px; }
    .mock-stat { background: #eef2ff; color: #3730a3; border-radius: 18px; padding: 16px; font-weight: 900; }

    section { padding: 78px 0; }
    .section-title { max-width: 760px; text-align: center; margin: 0 auto 42px; }
    .eyebrow { color: #4f46e5; font-size: 13px; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
    .section-title h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin-bottom: 14px; }
    .section-title p { color: #64748b; font-size: 18px; line-height: 1.7; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .card { background: white; border: 1px solid #e2e8f0; border-radius: 24px; padding: 26px; box-shadow: 0 10px 30px rgba(15,23,42,.04); }
    .card h3 { font-size: 21px; margin-bottom: 8px; }
    .card p { color: #64748b; line-height: 1.6; }
    .icon { width: 50px; height: 50px; border-radius: 18px; background: #eef2ff; color: #4f46e5; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }

    .pricing-card { position: relative; background: white; border: 1px solid #e2e8f0; border-radius: 28px; padding: 26px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
    .pricing-card.popular { border-color: #4f46e5; box-shadow: 0 25px 55px rgba(79,70,229,.15); }
    .popular-label { position: absolute; top: 18px; right: 18px; background: #4f46e5; color: white; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; }
    .price { font-size: 40px; font-weight: 900; margin: 18px 0; }
    .pricing-card ul { margin: 18px 0; }
    .pricing-card li { list-style: none; margin: 10px 0; color: #334155; font-size: 14px; }
    .pricing-card li::before { content: "✓"; color: #4f46e5; font-weight: 900; margin-right: 8px; }
    .pricing-card .btn { width: 100%; margin-top: 8px; }

    footer { border-top: 1px solid #e2e8f0; background: white; padding: 32px 0; color: #64748b; text-align: center; }

    /* App screen */
    #appScreen { min-height: 100vh; background: #e5e7eb; }
    .app-layout { height: 100vh; display: grid; grid-template-columns: 240px 280px 1fr 300px; overflow: hidden; }
    .workspace-sidebar { background: #111827; color: white; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
    .workspace-logo { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
    .workspace-logo div { width: 38px; height: 38px; border-radius: 14px; background: #4f46e5; display: grid; place-items: center; font-weight: 900; }
    .workspace-logo strong { display: block; }
    .workspace-logo span { color: #9ca3af; font-size: 12px; }
    .sidebar-label { color: #9ca3af; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; margin: 10px 0 4px; }
    .channel-btn, .tool-btn { width: 100%; border: none; background: transparent; color: #d1d5db; border-radius: 12px; padding: 11px 12px; text-align: left; cursor: pointer; font-weight: 700; }
    .channel-btn:hover, .tool-btn:hover, .channel-btn.active { background: rgba(255,255,255,.1); color: white; }
    .back-btn { margin-top: auto; background: rgba(255,255,255,.08); color: white; border: 1px solid rgba(255,255,255,.14); }

    .channel-panel { background: #f8fafc; border-right: 1px solid #cbd5e1; padding: 18px; overflow-y: auto; }
    .search-box { width: 100%; border: 1px solid #cbd5e1; border-radius: 14px; padding: 12px; margin-bottom: 16px; outline: none; }
    .member-card, .file-card, .task-card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; margin-bottom: 10px; display: block; width: 100%; }
    .member-card strong, .file-card strong, .task-card strong { display: block; color: #0f172a; }
    .member-card span, .file-card span, .task-card span { color: #64748b; font-size: 13px; }
    .status-dot { display: inline-block; width: 9px; height: 9px; background: #22c55e; border-radius: 999px; margin-right: 7px; }

    .chat-area { background: white; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
    .chat-header { padding: 16px 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .chat-header h2 { font-size: 22px; }
    .chat-header p { color: #64748b; font-size: 13px; }
    .header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .small-btn { border: 1px solid #cbd5e1; background: white; border-radius: 12px; padding: 9px 12px; cursor: pointer; font-weight: 800; }
    .small-btn.primary { background: #4f46e5; border-color: #4f46e5; color: white; }
    .messages { padding: 18px 20px; overflow-y: auto; background: #ffffff; }
    .message { display: flex; gap: 12px; margin-bottom: 16px; }
    .avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 14px; background: #eef2ff; color: #4f46e5; display: grid; place-items: center; font-weight: 900; }
    .message-body { max-width: 760px; }
    .message-top { font-size: 14px; margin-bottom: 4px; }
    .message-top strong { margin-right: 8px; }
    .message-top span { color: #94a3b8; font-size: 12px; }
    .message-text { background: #f8fafc; border: 1px solid #e2e8f0; padding: 12px 14px; border-radius: 16px; color: #334155; line-height: 1.5; }
    .chat-input { padding: 16px 20px; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; }
    .chat-input input { flex: 1; border: 1px solid #cbd5e1; border-radius: 14px; padding: 13px 14px; outline: none; }

    .right-panel { background: #f8fafc; border-left: 1px solid #cbd5e1; padding: 18px; overflow-y: auto; }
    .panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .panel-title h3 { font-size: 17px; }
    .task-card.done { opacity: .65; text-decoration: line-through; }
    .task-card input { margin-right: 8px; transform: translateY(1px); }
    .task-card span { display: block; margin-left: 27px; margin-top: 4px; color: #64748b; font-size: 13px; }
    #taskList { display: flex; flex-direction: column; gap: 10px; }
    #taskList .task-card { margin-bottom: 0; line-height: 1.4; }
    .ai-box { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 18px; padding: 14px; color: #3730a3; margin-bottom: 16px; }
    .locked { opacity: .45; pointer-events: none; filter: grayscale(1); }
    .plan-notice { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 16px; padding: 12px; margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
    .plan-feature-panel { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; margin-bottom: 14px; }
    .plan-feature-panel strong { display: block; margin-bottom: 6px; }
    .plan-feature-panel ul { margin-left: 18px; color: #475569; font-size: 13px; line-height: 1.7; }
    .ai-box strong { display: block; margin-bottom: 5px; }
    .meeting-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(15,23,42,.58); z-index: 100; padding: 18px; }
    .terms-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.75); z-index: 200; padding: 18px; }
    .terms-card { background: white; width: min(560px, 100%); border-radius: 28px; padding: 30px; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
    .terms-card h2 { margin-bottom: 12px; }
    .terms-card p { color: #64748b; line-height: 1.6; margin-bottom: 16px; }
    .terms-card ul { margin: 16px 0 22px 20px; color: #334155; line-height: 1.8; }
    .terms-actions { display: flex; gap: 12px; flex-wrap: wrap; }
    .access-denied { position: fixed; inset: 0; display: none; place-items: center; background: #0f172a; color: white; z-index: 300; text-align: center; padding: 24px; }
    .access-denied h1 { font-size: 42px; margin-bottom: 12px; }
    .access-denied p { color: #cbd5e1; font-size: 18px; }
    .meeting-modal.active { display: flex; }
    .modal-card { background: white; border-radius: 26px; padding: 28px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
    .modal-card h2 { margin-bottom: 10px; }
    .modal-card p { color: #64748b; margin-bottom: 18px; }
    .video-box { height: 220px; border-radius: 22px; background: #111827; color: white; display: grid; place-items: center; margin-bottom: 16px; font-size: 46px; overflow: hidden; }
    .video-box video { width: 100%; height: 100%; object-fit: cover; display: none; }
    .video-box.camera-on .camera-placeholder { display: none; }
    .video-box.camera-on video { display: block; }

    @media (max-width: 1000px) {
      .hero { grid-template-columns: 1fr; }
      .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
      .app-layout { grid-template-columns: 220px 1fr; }
      .channel-panel, .right-panel { display: none; }
    }
    @media (max-width: 700px) {
      .nav-links { display: none; }
      .hero { padding: 55px 0; }
      .demo-body, .grid-3, .grid-4 { grid-template-columns: 1fr; }
      .app-layout { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
      .workspace-sidebar { position: static; }
      .chat-area { min-height: 80vh; }
      .chat-header { align-items: flex-start; flex-direction: column; }
    }

/* Updated Terms & Conditions popup */
.terms-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.74);
  z-index: 200;
  padding: 18px;
}

.terms-card {
  background: #ffffff;
  width: min(760px, 92%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 34px;
  padding: 36px 38px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.terms-card h2 {
  font-size: 30px;
  margin-bottom: 14px;
  color: #111827;
}

.terms-card p {
  color: #64748b;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.terms-list {
  margin-left: 22px;
  color: #334155;
  font-size: 17px;
  line-height: 1.55;
}

.terms-list > li {
  margin-bottom: 14px;
}

.terms-list strong {
  color: #111827;
}

.terms-list ul {
  margin: 7px 0 0 22px;
}

.terms-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.terms-actions .btn {
  font-size: 17px;
  padding: 15px 22px;
}

.access-denied {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: #0f172a;
  color: white;
  z-index: 300;
  text-align: center;
  padding: 24px;
}

.access-denied h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.access-denied p {
  color: #cbd5e1;
  font-size: 18px;
}

/* Standalone full terms page */
.terms-page {
  max-width: 850px;
  margin: 40px auto;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
}

.terms-page h1 {
  margin-bottom: 22px;
}

.terms-page h3 {
  margin-top: 22px;
  margin-bottom: 8px;
}

.terms-page ul {
  margin-left: 24px;
  color: #334155;
  line-height: 1.8;
}

.calendar-section input,
.calendar-section button {
  padding: 10px;
  margin: 5px;
  border-radius: 8px;
  border: none;
}

.calendar-section button {
  background: #2563eb;
  color: white;
  cursor: pointer;
}

.meeting-item {
  background: #1f2937;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
}
/* ================= REAL SCREEN SHARING FEATURE ================= */
.meeting-card {
  max-width: 860px;
  text-align: left;
}

.meeting-card h2 {
  text-align: center;
}

.screen-share-note {
  text-align: center;
  line-height: 1.6;
}

.meeting-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.meeting-stage h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #334155;
}

.meeting-card .video-box {
  height: 260px;
  margin-bottom: 0;
}

.camera-placeholder,
.screen-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.camera-placeholder span,
.screen-placeholder span {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 800;
}

.screen-box video {
  object-fit: contain;
  background: #020617;
}

.video-box.screen-on .screen-placeholder {
  display: none;
}

.video-box.screen-on video {
  display: block;
}

.modal-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#meetingStatus {
  text-align: center;
  line-height: 1.6;
  margin: 14px 0 0;
}

@media (max-width: 760px) {
  .meeting-stage {
    grid-template-columns: 1fr;
  }

  .meeting-card .video-box {
    height: 220px;
  }
}


/* Cloud storage quota card */
.storage-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.storage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.storage-top strong {
  color: #0f172a;
  font-size: 14px;
}

.storage-top span,
#storageUsedText {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.storage-meter {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.storage-fill {
  height: 100%;
  width: 0%;
  background: #4f46e5;
  border-radius: 999px;
  transition: width 0.25s ease;
}


/* Analytics modal and charts */
.analytics-card {
  max-width: 980px;
  width: min(980px, 100%);
  text-align: left;
}

.analytics-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.analytics-header h2 {
  margin-bottom: 8px;
}

.analytics-header p {
  margin-bottom: 0;
}

.analytics-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: stretch;
}

.analytics-chart-panel,
.analytics-summary,
.analytics-insights {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 18px;
}

.analytics-chart-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pie-chart {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto 18px;
  background: conic-gradient(#4f46e5 0 40%, #22c55e 40% 75%, #f59e0b 75% 100%);
  box-shadow: inset 0 0 0 18px #ffffff;
}

.pie-chart::after {
  content: "Work\AProgress";
  white-space: pre;
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.analytics-legend {
  width: 100%;
  display: grid;
  gap: 10px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
}

.legend-item strong {
  color: #0f172a;
}

.legend-item small {
  color: #64748b;
  font-size: 13px;
}

.legend-dot,
.role-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.done,
.role-legend-dot.done { background: #4f46e5; }
.legend-dot.progress,
.role-legend-dot.progress { background: #22c55e; }
.legend-dot.pending,
.role-legend-dot.pending { background: #f59e0b; }

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

.analytics-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
}

.analytics-stat-card strong {
  display: block;
  color: #0f172a;
  font-size: 26px;
  margin-bottom: 6px;
}

.analytics-stat-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.analytics-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.analytics-insight-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
}

.analytics-insight-card strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.analytics-insight-card span {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.role-analytics-preview {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.role-analytics-pie {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#4f46e5 0 55%, #22c55e 55% 80%, #f59e0b 80% 100%);
  box-shadow: inset 0 0 0 12px #111827;
}

.role-analytics-legend {
  display: grid;
  gap: 8px;
}

.role-analytics-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e5e7eb;
  font-size: 14px;
}

@media (max-width: 760px) {
  .analytics-layout {
    grid-template-columns: 1fr;
  }

  .analytics-summary,
  .analytics-insights {
    grid-template-columns: 1fr;
  }

  .role-analytics-preview {
    grid-template-columns: 1fr;
  }
}
