@font-face {
  font-family: "SF Arabic";
  src: url("fonts/SF-Arabic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f2ea;
  --bg-soft: #fbfaf7;
  --surface: #ffffff;
  --surface-alt: #f1ede4;
  --ink: #15314a;
  --muted: #597089;
  --line: #d7dee6;
  --primary: #1d4f91;
  --primary-deep: #12365d;
  --secondary: #15b8cc;
  --secondary-soft: #dff7fb;
  --accent: #e59b39;
  --success: #2f8f5b;
  --danger: #b84a4a;
  --shadow: 0 24px 60px rgba(18, 54, 93, 0.08);
  --shadow-soft: 0 14px 34px rgba(18, 54, 93, 0.06);
  --radius: 8px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Arabic", "Vazirmatn", "IRANSansX", Tahoma, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 234, 0.92);
  border-bottom: 1px solid rgba(21, 49, 74, 0.08);
  backdrop-filter: blur(14px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-latin {
  font-size: 0.8rem;
  color: var(--secondary);
  line-height: 1.2;
  direction: ltr;
}

.brand-persian {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary);
}

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

.btn,
.btn-secondary,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn[disabled],
.btn-secondary[disabled],
.btn-ghost[disabled] {
  cursor: wait;
  transform: none;
  opacity: 0.92;
}

.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: var(--secondary);
  color: #083041;
}

.btn-ghost {
  border-color: rgba(21, 49, 74, 0.14);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(21, 49, 74, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: 720px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(to left, rgba(10, 32, 52, 0.92) 0%, rgba(10, 32, 52, 0.8) 42%, rgba(10, 32, 52, 0.54) 64%, rgba(10, 32, 52, 0.28) 100%),
    url("images/hero-banner.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(245, 242, 234, 0), rgba(245, 242, 234, 0.96));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 112px 0 130px;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow.light {
  color: #8eeaf3;
}

.hero h1,
.section-heading h2,
.page-intro-copy h1,
.form-panel h1,
.form-panel h2,
.cta-band h2 {
  margin: 0;
  font-weight: 900;
  line-height: 1.28;
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  max-width: 13ch;
}

.hero-intro,
.section-heading p,
.page-intro-copy p,
.feature-copy p,
.auth-copy p,
.form-intro {
  margin: 16px 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.hero-points li,
.feature-list li,
.use-case-list li,
.copy-list li,
.panel-list li {
  position: relative;
  padding-right: 18px;
}

.hero-points li::before,
.feature-list li::before,
.use-case-list li::before,
.copy-list li::before,
.panel-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-support {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-support span,
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f6fbff;
  font-size: 0.93rem;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-contrast {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(21, 184, 204, 0.05));
}

.section-dark {
  background: var(--primary-deep);
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.section-heading p {
  color: var(--muted);
}

.section-dark .section-heading p,
.section-dark .feature-copy p,
.section-dark .feature-copy li {
  color: rgba(255, 255, 255, 0.82);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.use-case-card,
.capability-card,
.pricing-card,
.testimonial-card,
.timeline-card,
.team-card,
.addon-card,
.detail-card,
.form-panel,
.auth-panel,
.info-card {
  background: var(--surface);
  border: 1px solid rgba(21, 49, 74, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.metric-card,
.capability-card,
.detail-card,
.addon-card,
.info-card {
  padding: 24px;
}

.metric-kicker,
.use-case-kicker,
.pricing-badge,
.timeline-year,
.label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--secondary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.metric-card h3,
.use-case-card h3,
.capability-card h3,
.pricing-card h3,
.testimonial-card h3,
.timeline-card h3,
.team-card h3,
.addon-card h3,
.detail-card h3,
.page-intro-copy h1,
.cta-band h2,
.auth-copy h1,
.form-panel h2 {
  margin: 14px 0 0;
  font-size: 1.45rem;
}

.metric-card p,
.use-case-card p,
.capability-card p,
.pricing-card p,
.testimonial-card p,
.timeline-card p,
.team-card p,
.addon-card p,
.detail-card p,
.panel-copy,
.footer-copy,
.footer-column a,
.footer-meta p,
.form-panel p,
.auth-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.metric-value {
  margin-top: 18px;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}

.use-case-card,
.pricing-card,
.testimonial-card,
.timeline-card,
.team-card {
  padding: 28px;
}

.use-case-list,
.feature-list,
.copy-list,
.panel-list,
.plan-features {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  color: var(--muted);
  display: grid;
  gap: 12px;
}

.use-case-meta {
  margin-top: 18px;
  color: var(--primary);
  font-weight: 700;
}

.schedule-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.schedule-card {
  padding: 22px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid rgba(21, 49, 74, 0.08);
}

.schedule-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.schedule-card p {
  margin: 0;
  color: var(--muted);
}

.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.feature-copy h2,
.auth-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.feature-list {
  color: rgba(255, 255, 255, 0.86);
}

.feature-visual img,
.page-intro-visual img,
.auth-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.chips .chip {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card.is-featured {
  border-color: rgba(21, 184, 204, 0.4);
  box-shadow: 0 24px 60px rgba(21, 184, 204, 0.16);
}

.pricing-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.price-period {
  color: var(--muted);
  font-weight: 700;
}

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

.testimonial-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 237, 228, 0.92));
}

.quote-mark {
  color: var(--secondary);
  font-size: 3rem;
  line-height: 1;
}

.quote-author {
  margin-top: 24px;
  color: var(--primary);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(21, 49, 74, 0.08);
  border-radius: var(--radius);
  padding: 0 22px;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  direction: rtl;
  text-align: right;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--secondary);
  font-size: 1.4rem;
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 20px;
  color: var(--muted);
}

.cta-band {
  background: var(--surface-alt);
}

.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.cta-band p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer {
  background: var(--primary-deep);
  color: #fff;
  padding: 82px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr;
  gap: 24px;
}

.footer-copy,
.footer-column a,
.footer-meta p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-column h3,
.footer-brand h3 {
  margin: 0;
  font-size: 1.2rem;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin: 32px 0 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.page-intro {
  padding: 86px 0 52px;
}

.page-intro-grid,
.auth-hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
  align-items: center;
}

.page-intro-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.page-intro-copy p,
.page-intro-copy li,
.auth-copy p,
.auth-copy li {
  color: var(--muted);
}

.page-intro-copy .copy-list,
.auth-copy .copy-list {
  margin-top: 20px;
}

.about-band {
  background: linear-gradient(180deg, rgba(229, 155, 57, 0.08), rgba(255, 255, 255, 0));
}

.timeline-grid,
.team-grid,
.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline-card {
  background: var(--surface-alt);
}

.timeline-year {
  background: rgba(21, 184, 204, 0.16);
}

.team-role {
  color: var(--secondary);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(21, 49, 74, 0.08);
  box-shadow: var(--shadow-soft);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(21, 49, 74, 0.08);
  text-align: right;
}

.compare-table thead th {
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 1rem;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

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

.auth-page {
  min-height: 100vh;
}

.auth-main {
  padding: 64px 0 96px;
}

.form-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.form-panel,
.auth-panel {
  padding: 30px;
}

.form-panel h1,
.form-panel h2 {
  font-size: 2rem;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  color: var(--primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(21, 49, 74, 0.14);
  background: var(--bg-soft);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(21, 184, 204, 0.72);
  box-shadow: 0 0 0 4px rgba(21, 184, 204, 0.12);
}

.helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.helper-row a {
  color: var(--primary);
  font-weight: 700;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form-alert {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 74, 74, 0.18);
  background: rgba(184, 74, 74, 0.08);
  color: var(--danger);
  font-weight: 700;
}

.form-alert.success {
  border-color: rgba(47, 143, 91, 0.18);
  background: rgba(47, 143, 91, 0.08);
  color: var(--success);
}

.panel-stat {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel-stat .info-card {
  padding: 18px;
  background: var(--surface-alt);
}

.panel-stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
}

.auth-visual {
  align-self: stretch;
}

.mini-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.list-inline span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 700;
}

.dashboard-page {
  background: linear-gradient(180deg, #eef4f9 0%, var(--bg) 22%, var(--bg) 100%);
}

.dashboard-main {
  padding: 42px 0 96px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}

.dashboard-hero-copy,
.dashboard-stat-card,
.dashboard-card,
.user-pill {
  background: var(--surface);
  border: 1px solid rgba(21, 49, 74, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.dashboard-hero-copy,
.dashboard-card {
  padding: 30px;
}

.dashboard-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.28;
}

.dashboard-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.dashboard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dashboard-tags .tag,
.status-chip {
  background: var(--surface-alt);
  border: 1px solid rgba(21, 49, 74, 0.08);
  color: var(--primary);
}

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

.dashboard-stat-card {
  padding: 24px;
}

.dashboard-stat-card strong {
  display: block;
  margin-top: 16px;
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--primary);
}

.dashboard-stat-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.dashboard-section {
  padding-top: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: start;
}

.dashboard-column,
.dashboard-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

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

.dashboard-card-head h2 {
  margin: 10px 0 0;
  font-size: 1.55rem;
  line-height: 1.35;
}

.dashboard-intro {
  margin: 0 0 22px;
  color: var(--muted);
}

.dashboard-header-actions {
  display: flex;
  align-items: stretch;
}

.user-pill {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 46px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.74);
}

.user-pill-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--secondary);
}

.btn.compact,
.btn-secondary.compact,
.btn-ghost.compact {
  min-height: 40px;
  padding: 0 14px;
}

.studio-grid,
.dashboard-split,
.archive-grid {
  display: grid;
  gap: 18px;
}

.studio-grid,
.dashboard-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-panel,
.archive-item,
.audience-card {
  background: var(--surface-alt);
  border: 1px solid rgba(21, 49, 74, 0.08);
  border-radius: var(--radius);
}

.media-panel {
  padding: 22px;
}

.media-panel-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.status-text {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-text.is-success {
  color: var(--success);
}

.status-text.is-error {
  color: var(--danger);
}

.media-surface {
  position: relative;
  min-height: 250px;
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(6, 20, 33, 0.12), rgba(6, 20, 33, 0.38)),
    radial-gradient(circle at top left, rgba(21, 184, 204, 0.34), transparent 44%),
    #0e263d;
}

.media-surface video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  background: #0e263d;
}

.media-surface.is-live video {
  display: block;
}

.media-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.media-surface.is-live .media-empty {
  display: none;
}

.audio-meter {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.audio-meter-label {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.audio-meter-track {
  height: 12px;
  background: rgba(21, 49, 74, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.audio-meter-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(0.08);
  transform-origin: right center;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: transform 0.12s linear;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.media-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.session-list,
.report-list,
.timeline-list,
.toggle-list,
.activity-list {
  display: grid;
}

.session-row,
.toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(21, 49, 74, 0.08);
}

.timeline-entry,
.activity-item {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(21, 49, 74, 0.08);
}

.session-row:first-child,
.timeline-entry:first-child,
.toggle-row:first-child,
.activity-item:first-child {
  padding-top: 0;
}

.session-row:last-child,
.timeline-entry:last-child,
.toggle-row:last-child,
.activity-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.session-row h3 {
  margin: 0;
  font-size: 1.08rem;
}

.session-row p,
.timeline-entry p,
.activity-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.session-badge,
.toggle-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--secondary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.session-badge.success,
.toggle-state.on {
  background: rgba(47, 143, 91, 0.1);
  color: var(--success);
}

.session-badge.warning {
  background: rgba(229, 155, 57, 0.14);
  color: #9a6112;
}

.report-list {
  gap: 18px;
}

.report-item {
  display: grid;
  gap: 10px;
}

.report-copy {
  display: grid;
  gap: 4px;
}

.report-copy strong,
.timeline-entry strong,
.activity-item strong,
.archive-item strong {
  color: var(--primary);
}

.report-copy span,
.archive-item p {
  color: var(--muted);
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(21, 49, 74, 0.1);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.archive-item {
  padding: 20px;
}

.archive-item p {
  margin: 10px 0 0;
}

.toggle-row span {
  color: var(--ink);
}

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

.audience-card {
  padding: 18px;
}

.audience-card strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--primary);
}

.audience-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.room-page {
  background:
    radial-gradient(circle at top right, rgba(21, 184, 204, 0.16), transparent 24%),
    radial-gradient(circle at top left, rgba(229, 155, 57, 0.12), transparent 18%),
    #07131f;
  color: #edf5fb;
}

.room-page .site-header {
  background: rgba(7, 19, 31, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.room-page .brand-persian,
.room-page .site-nav a:hover,
.room-page .site-nav a.is-active,
.room-page .user-pill,
.room-page .room-session-copy h1,
.room-page .room-surface-head h2,
.room-page .room-side-head h2,
.room-page .participant-meta strong,
.room-page .stage-placeholder h3 {
  color: #ffffff;
}

.room-page .site-nav a,
.room-page .brand-latin,
.room-page .room-session-copy p,
.room-page .participant-meta span,
.room-page .room-side-card p,
.room-page .agenda-row p,
.room-page .chat-message p {
  color: rgba(237, 245, 251, 0.72);
}

.room-page .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.room-main {
  padding: 26px 0 40px;
}

.room-header-actions {
  display: flex;
  align-items: stretch;
}

.room-page .user-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.room-page .user-pill-label {
  color: #8eeaf3;
}

.room-session-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.room-session-copy,
.room-surface-card,
.room-side-card,
.room-toolbar {
  background: rgba(10, 23, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.room-session-copy {
  flex: 1 1 auto;
  padding: 24px 26px;
}

.room-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.room-live-indicator,
.room-recording-indicator,
.room-stage-badge,
.participant-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.room-live-indicator {
  background: rgba(229, 74, 74, 0.16);
  color: #ffb1b1;
}

.room-recording-indicator {
  background: rgba(21, 184, 204, 0.14);
  color: #8eeaf3;
}

.room-session-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.28;
}

.room-session-copy p {
  margin: 12px 0 0;
}

.room-session-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: min(100%, 390px);
}

.room-metric-chip {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.room-metric-chip strong {
  display: block;
  color: #ffffff;
}

.room-metric-chip span {
  display: block;
  margin-top: 6px;
  color: rgba(237, 245, 251, 0.64);
  font-size: 0.9rem;
}

.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) 360px;
  gap: 18px;
  align-items: start;
}

.room-stage-panel,
.room-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.room-surface-card,
.room-side-card {
  padding: 18px;
}

.room-surface-head,
.room-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.room-surface-head h2,
.room-side-head h2 {
  margin: 10px 0 0;
  font-size: 1.45rem;
}

.room-stage-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 245, 251, 0.9);
  white-space: nowrap;
}

.stage-surface {
  position: relative;
  min-height: 460px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 25, 38, 0.2), rgba(10, 25, 38, 0.68)),
    linear-gradient(135deg, rgba(21, 184, 204, 0.18), rgba(21, 79, 145, 0.08) 48%, rgba(0, 0, 0, 0) 100%),
    #0a1724;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-surface video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #050c14;
}

.stage-surface.is-live video {
  display: block;
}

.stage-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(5, 12, 20, 0.06), rgba(5, 12, 20, 0.86)),
    radial-gradient(circle at top right, rgba(21, 184, 204, 0.14), transparent 28%);
}

.stage-surface.is-live .stage-placeholder {
  display: none;
}

.stage-placeholder-shell {
  max-width: 640px;
}

.stage-placeholder-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #8eeaf3;
  font-weight: 800;
}

.stage-placeholder h3 {
  margin: 18px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.3;
}

.stage-placeholder p {
  margin: 12px 0 0;
  color: rgba(237, 245, 251, 0.78);
  max-width: 60ch;
}

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

.stage-info-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-info-card strong {
  display: block;
  color: #ffffff;
}

.stage-info-card span {
  display: block;
  margin-top: 8px;
  color: rgba(237, 245, 251, 0.68);
  font-size: 0.94rem;
}

.participant-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.participant-tile {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.participant-tile-self {
  background: rgba(21, 184, 204, 0.08);
}

.participant-video {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 79, 145, 0.26), rgba(7, 19, 31, 0.9)),
    #0a1724;
}

.participant-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.participant-video.is-live video {
  display: block;
}

.participant-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(7, 19, 31, 0.06), rgba(7, 19, 31, 0.86));
}

.participant-video.is-live .participant-placeholder {
  display: none;
}

.participant-placeholder strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.participant-placeholder span {
  color: rgba(237, 245, 251, 0.74);
  font-size: 0.94rem;
}

.participant-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.participant-meta strong,
.participant-meta span {
  display: block;
}

.participant-state {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 245, 251, 0.92);
}

.participant-state.live {
  background: rgba(47, 143, 91, 0.14);
  color: #9fe3b8;
}

.participant-state.self {
  background: rgba(21, 184, 204, 0.14);
  color: #8eeaf3;
}

.participant-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.participant-avatar.accent {
  background: linear-gradient(135deg, rgba(229, 155, 57, 0.52), rgba(21, 79, 145, 0.38));
}

.participant-avatar.teal {
  background: linear-gradient(135deg, rgba(21, 184, 204, 0.52), rgba(21, 79, 145, 0.32));
}

.participant-avatar.gold {
  background: linear-gradient(135deg, rgba(229, 155, 57, 0.48), rgba(180, 74, 74, 0.28));
}

.room-page .audio-meter {
  margin-top: 12px;
}

.room-page .audio-meter-label {
  color: rgba(237, 245, 251, 0.7);
}

.room-page .audio-meter-track {
  background: rgba(255, 255, 255, 0.08);
}

.room-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}

.room-control {
  display: grid;
  gap: 4px;
  min-width: 112px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.room-control small {
  color: rgba(237, 245, 251, 0.7);
  font-size: 0.82rem;
}

.room-control.is-active {
  background: rgba(21, 184, 204, 0.16);
  border-color: rgba(21, 184, 204, 0.34);
}

.room-control.room-control-accent.is-active {
  background: rgba(229, 155, 57, 0.16);
  border-color: rgba(229, 155, 57, 0.34);
}

.room-control.room-control-ghost {
  min-width: 170px;
}

.room-toolbar-note {
  margin: 0;
  text-align: center;
  color: rgba(237, 245, 251, 0.7);
}

.room-toolbar-note.is-success {
  color: #9fe3b8;
}

.room-toolbar-note.is-error {
  color: #ffb1b1;
}

.chat-list,
.room-people-list,
.room-agenda {
  display: grid;
  gap: 12px;
}

.chat-list {
  max-height: 312px;
  overflow: auto;
  padding-left: 4px;
}

.chat-message,
.room-person-row,
.agenda-row {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-message.self {
  background: rgba(21, 184, 204, 0.14);
  border-color: rgba(21, 184, 204, 0.2);
}

.chat-message strong,
.room-person-row strong,
.agenda-row strong {
  color: #ffffff;
}

.chat-message p {
  margin: 8px 0 0;
}

.chat-message span {
  display: block;
  margin-top: 10px;
  color: rgba(237, 245, 251, 0.56);
  font-size: 0.82rem;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.chat-form input {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  padding: 0 14px;
  outline: none;
}

.chat-form input::placeholder {
  color: rgba(237, 245, 251, 0.42);
}

.chat-form input:focus {
  border-color: rgba(21, 184, 204, 0.58);
  box-shadow: 0 0 0 4px rgba(21, 184, 204, 0.12);
}

.room-person-row,
.agenda-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.room-person-row span {
  display: block;
  margin-top: 6px;
  color: rgba(237, 245, 251, 0.64);
}

.room-person-row b {
  color: #8eeaf3;
  font-size: 1.3rem;
}

.attendee-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.attendee-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(237, 245, 251, 0.86);
  font-size: 0.92rem;
}

.agenda-row p {
  margin: 0;
  flex: 1 1 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (max-width: 1080px) {
  .site-nav {
    gap: 18px;
  }

  .hero-home {
    min-height: 660px;
    background-position: left center;
  }

  .grid-4,
  .timeline-grid,
  .team-grid,
  .addons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band,
  .page-intro-grid,
  .auth-hero,
  .form-shell,
  .dashboard-hero,
  .dashboard-grid,
  .dashboard-split,
  .studio-grid,
  .archive-grid,
  .room-layout,
  .footer-top,
  .grid-3,
  .schedule-strip,
  .note-strip,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .cta-shell,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .room-session-bar {
    flex-direction: column;
  }

  .room-session-metrics,
  .stage-placeholder-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .participant-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-shell {
    flex-wrap: wrap;
    min-height: 74px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0 4px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-actions {
    margin-right: auto;
  }

  .hero-home {
    min-height: 680px;
    background-position: 34% center;
  }

  .dashboard-header-actions {
    width: 100%;
  }

  .room-header-actions {
    width: 100%;
  }

  .hero-content {
    padding: 92px 0 120px;
    max-width: 100%;
  }

  .grid-4,
  .dashboard-stat-grid,
  .audience-grid,
  .room-session-metrics,
  .form-grid.two-col,
  .panel-stat {
    grid-template-columns: 1fr;
  }

  .participant-strip,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .stage-surface {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .btn,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-home {
    min-height: 740px;
    background-position: 28% center;
  }

  .room-page .btn-ghost.compact {
    width: 100%;
  }

  .session-row,
  .toggle-row,
  .room-person-row,
  .agenda-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .form-actions,
  .room-toolbar {
    flex-direction: column;
  }

  .section {
    padding: 74px 0;
  }

  .form-panel,
  .auth-panel,
  .dashboard-card,
  .dashboard-hero-copy,
  .room-session-copy,
  .room-surface-card,
  .room-side-card,
  .pricing-card,
  .use-case-card,
  .testimonial-card,
  .timeline-card,
  .team-card {
    padding: 22px;
  }

  .stage-surface {
    min-height: 300px;
  }

  .participant-strip {
    grid-template-columns: 1fr;
  }
}

.workspace-page {
  background:
    radial-gradient(circle at top right, rgba(21, 184, 204, 0.12), transparent 22%),
    linear-gradient(180deg, #eef4f8 0%, #f5f2ea 42%, #f5f2ea 100%);
}

.workspace-page .container {
  width: min(1360px, calc(100% - 34px));
}

.workspace-page .site-header {
  background: rgba(245, 242, 234, 0.88);
}

.workspace-header-actions {
  display: flex;
  align-items: stretch;
}

.workspace-main {
  padding: 42px 0 92px;
}

.workspace-hero {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
  align-items: stretch;
}

.workspace-hero-copy,
.workspace-card,
.workspace-metric-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(21, 49, 74, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.workspace-hero-copy,
.workspace-card {
  padding: 30px;
}

.workspace-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.28;
}

.workspace-hero-copy p:last-of-type {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.workspace-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.workspace-tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 700;
}

.workspace-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workspace-metric-card {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px 18px;
}

.workspace-metric-card strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--primary);
}

.workspace-metric-card span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) 400px;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.workspace-column-main,
.workspace-column-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

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

.workspace-card-head h2 {
  margin: 10px 0 0;
  font-size: 1.55rem;
  line-height: 1.35;
}

.workspace-empty-note,
.current-room-empty {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--muted);
}

.saved-room-list {
  display: grid;
  gap: 14px;
}

.saved-room-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid rgba(21, 49, 74, 0.08);
}

.saved-room-item strong,
.current-room-filled strong,
.offline-student-item strong {
  color: var(--primary);
}

.saved-room-item p,
.saved-room-item span,
.current-room-filled p,
.offline-student-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.saved-room-item span {
  display: block;
  font-size: 0.9rem;
}

.current-room-filled code {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(21, 49, 74, 0.08);
  color: var(--primary);
}

.offline-student-list {
  display: grid;
  gap: 12px;
}

.offline-student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid rgba(21, 49, 74, 0.08);
}

.offline-student-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(89, 112, 137, 0.12);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.conference-room-page {
  background:
    radial-gradient(circle at top right, rgba(21, 184, 204, 0.16), transparent 24%),
    radial-gradient(circle at top left, rgba(229, 155, 57, 0.1), transparent 18%),
    #091420;
  color: #eef5fb;
}

.conference-room-page .container {
  width: min(1460px, calc(100% - 32px));
}

.conference-room-page .site-header {
  background: rgba(9, 20, 32, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.conference-room-page .brand-persian,
.conference-room-page .site-nav a.is-active,
.conference-room-page .site-nav a:hover,
.conference-room-page .conference-title-block h1,
.conference-room-page .conference-panel-head h2,
.conference-room-page .conference-stage-copy h3,
.conference-room-page .conference-self-meta strong,
.conference-room-page .conference-code-box strong,
.conference-room-page .offline-student-item strong,
.conference-room-page .conference-chat-message strong {
  color: #ffffff;
}

.conference-room-page .site-nav a,
.conference-room-page .brand-latin,
.conference-room-page .conference-title-block p,
.conference-room-page .conference-stage-copy p,
.conference-room-page .conference-self-meta span,
.conference-room-page .conference-code-box p,
.conference-room-page .offline-student-item p,
.conference-room-page .conference-chat-message p,
.conference-room-page .conference-chat-empty {
  color: rgba(238, 245, 251, 0.72);
}

.conference-room-page .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.conference-main {
  padding: 28px 0 44px;
}

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

.conference-title-block h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.28;
}

.conference-title-block p {
  margin: 12px 0 0;
  font-size: 1rem;
}

.conference-separator {
  display: inline-block;
  margin: 0 6px;
}

.conference-top-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.conference-chip-stack,
.conference-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.conference-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 245, 251, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
}

.conference-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 390px;
  gap: 18px;
  align-items: start;
}

.conference-stage-column,
.conference-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.conference-panel {
  padding: 20px;
  border-radius: 22px;
  background: rgba(12, 23, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.conference-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.conference-panel-head h2 {
  margin: 10px 0 0;
  font-size: 1.45rem;
}

.conference-stage-state,
.conference-self-state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 245, 251, 0.92);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.conference-stage {
  position: relative;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 24, 37, 0.18), rgba(10, 24, 37, 0.76)),
    radial-gradient(circle at top right, rgba(21, 184, 204, 0.18), transparent 30%),
    #0a1724;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.conference-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #050d15;
}

.conference-stage.is-live video {
  display: block;
}

.conference-stage-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(8, 15, 24, 0.12), rgba(8, 15, 24, 0.9)),
    radial-gradient(circle at top left, rgba(229, 155, 57, 0.1), transparent 22%);
}

.conference-stage.is-live .conference-stage-placeholder {
  display: none;
}

.conference-stage-copy {
  max-width: 760px;
}

.conference-stage-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #8eeaf3;
  font-weight: 800;
}

.conference-stage-copy h3 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.26;
}

.conference-stage-copy p {
  margin: 12px 0 0;
  max-width: 54ch;
  font-size: 1.02rem;
}

.conference-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.conference-self-video {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 79, 145, 0.26), rgba(9, 20, 32, 0.9)),
    #0a1724;
}

.conference-self-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.conference-self-video.is-live video {
  display: block;
}

.conference-self-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(9, 20, 32, 0.08), rgba(9, 20, 32, 0.88));
}

.conference-self-video.is-live .conference-self-placeholder {
  display: none;
}

.conference-self-placeholder strong {
  color: #ffffff;
  font-size: 1.15rem;
}

.conference-self-placeholder span {
  color: rgba(238, 245, 251, 0.74);
}

.conference-self-meta {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.conference-room-page .audio-meter {
  margin-top: 16px;
}

.conference-room-page .audio-meter-label {
  color: rgba(238, 245, 251, 0.72);
}

.conference-room-page .audio-meter-track {
  background: rgba(255, 255, 255, 0.08);
}

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

.conference-control {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.conference-control:hover {
  transform: translateY(-1px);
}

.conference-control small {
  color: rgba(238, 245, 251, 0.68);
  font-size: 0.82rem;
}

.conference-control.is-active {
  background: rgba(21, 184, 204, 0.16);
  border-color: rgba(21, 184, 204, 0.34);
}

.conference-control.accent.is-active {
  background: rgba(229, 155, 57, 0.16);
  border-color: rgba(229, 155, 57, 0.32);
}

.conference-control.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.conference-room-note {
  margin: 14px 0 0;
  color: rgba(238, 245, 251, 0.74);
}

.conference-room-note.is-success {
  color: #9fe3b8;
}

.conference-room-note.is-error {
  color: #ffb1b1;
}

.conference-code-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.conference-code-box strong {
  display: block;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
}

.conference-code-box p {
  margin: 10px 0 18px;
}

.conference-chat-list {
  display: grid;
  gap: 12px;
  max-height: 280px;
  overflow: auto;
}

.conference-chat-message {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.conference-chat-message.self {
  background: rgba(21, 184, 204, 0.14);
  border-color: rgba(21, 184, 204, 0.2);
}

.conference-chat-message p {
  margin: 8px 0 0;
}

.conference-chat-message span {
  display: block;
  margin-top: 10px;
  color: rgba(238, 245, 251, 0.56);
  font-size: 0.82rem;
}

.conference-chat-empty {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.conference-room-page .offline-student-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.07);
}

.conference-room-page .offline-student-state {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 245, 251, 0.74);
}

@media (max-width: 1180px) {
  .workspace-hero,
  .workspace-grid,
  .conference-shell,
  .conference-lower-grid {
    grid-template-columns: 1fr;
  }

  .conference-topbar {
    flex-direction: column;
  }

  .conference-top-actions {
    justify-items: start;
  }
}

@media (max-width: 860px) {
  .workspace-metric-grid,
  .conference-control-grid {
    grid-template-columns: 1fr;
  }

  .workspace-header-actions,
  .conference-action-row {
    width: 100%;
  }

  .saved-room-item,
  .offline-student-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .conference-stage {
    min-height: 380px;
  }
}

@media (max-width: 560px) {
  .workspace-page .container,
  .conference-room-page .container {
    width: calc(100% - 22px);
  }

  .workspace-main,
  .conference-main {
    padding-top: 30px;
  }

  .workspace-hero-copy,
  .workspace-card,
  .conference-panel {
    padding: 22px;
  }

  .conference-stage {
    min-height: 300px;
  }

  .conference-stage-placeholder {
    padding: 22px;
  }

  .workspace-tag-row,
  .conference-chip-stack,
  .conference-action-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.testing-page {
  background:
    radial-gradient(circle at top right, rgba(21, 184, 204, 0.12), transparent 30%),
    linear-gradient(180deg, #f4efe4 0%, #fbfaf7 36%, #eef4f8 100%);
}

.testing-main {
  padding-bottom: 72px;
}

.testing-hero {
  padding: 72px 0 24px;
}

.testing-hero-panel,
.testing-panel,
.testing-rate-card,
.testing-summary-card,
.testing-metric-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 49, 74, 0.08);
  box-shadow: var(--shadow-soft);
}

.testing-hero-panel,
.testing-panel {
  padding: 24px;
  border-radius: 26px;
}

.testing-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.testing-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(21, 49, 74, 0.06);
  color: var(--primary-deep);
  font-weight: 700;
}

.testing-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(184, 74, 74, 0.95);
  box-shadow: 0 0 0 6px rgba(184, 74, 74, 0.12);
}

.testing-status-dot.is-running {
  background: rgba(47, 143, 91, 0.95);
  box-shadow: 0 0 0 6px rgba(47, 143, 91, 0.15);
}

.testing-metric-stack,
.testing-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.testing-metric-card,
.testing-summary-card {
  padding: 18px;
  border-radius: 18px;
}

.testing-metric-card span,
.testing-summary-card span,
.testing-panel-head p,
.testing-note {
  color: var(--muted);
}

.testing-metric-card strong,
.testing-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.testing-shell {
  display: grid;
  gap: 20px;
}

.testing-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.testing-rate-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.testing-rate-card:hover,
.testing-rate-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(21, 184, 204, 0.28);
  box-shadow: 0 20px 40px rgba(18, 54, 93, 0.1);
}

.testing-rate-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--secondary);
}

.testing-rate-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.testing-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.testing-panel-head {
  margin-bottom: 18px;
}

.testing-note {
  margin: 18px 0 0;
}

@media (max-width: 720px) {
  .testing-metric-stack,
  .testing-summary-grid {
    grid-template-columns: 1fr;
  }

  .testing-controls {
    flex-direction: column;
    align-items: stretch;
  }
}
