/* ═══ DEMO PRO — LiveMaster seller theme ═══ */
:root {
  --bg: #080C14;
  --surface: #0F1420;
  --surface2: #151C2C;
  --border: rgba(255,255,255,0.07);
  --brand: #4F8EF7;
  --brand2: #7B5EF8;
  --green: #22D3A5;
  --amber: #F9B942;
  --red: #F25D5D;
  --txt1: #EEF2FF;
  --txt2: #8892AA;
  --txt3: #4A5568;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.demo-seller {
  font-family: 'Shabnam', 'Vazir', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--txt1);
  direction: rtl;
  min-height: 100vh;
  padding-bottom: calc(72px + var(--safe-b));
  -webkit-font-smoothing: antialiased;
}

.demo-ribbon {
  position: sticky; top: 0; z-index: 90;
  background: linear-gradient(90deg, rgba(79,142,247,0.15), rgba(123,94,248,0.15));
  border-bottom: 1px solid rgba(79,142,247,0.25);
  padding: 6px 16px;
  font-size: 0.72rem;
  color: var(--txt2);
  text-align: center;
  backdrop-filter: blur(12px);
}
.demo-ribbon a { color: var(--brand); text-decoration: none; font-weight: 700; }
.demo-ribbon strong { color: var(--amber); }

.header {
  position: sticky; top: 28px; z-index: 80;
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
}
.header-logo {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; color: var(--txt1);
  font-size: 1.15rem; font-weight: 800; text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.wallet-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 40px; padding: 7px 14px;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.wallet-chip i { color: var(--brand); }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: rgba(15,20,32,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(6px + var(--safe-b));
}
.bottom-nav a.nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: none; border: none; color: var(--txt3);
  font-size: 0.6rem; font-weight: 600;
  padding: 8px 4px; border-radius: var(--r-sm);
  cursor: pointer; text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.bottom-nav a.nav-btn i { font-size: 1.25rem; }
.bottom-nav a.nav-btn.active { color: var(--brand); background: rgba(79,142,247,0.1); }

.main { max-width: 520px; margin: 0 auto; padding: 16px; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.section-title h2 i { color: var(--brand); font-size: 0.9rem; }
.subsection-title {
  font-size: 0.72rem; font-weight: 700; color: var(--txt2);
  letter-spacing: 0.06em; margin: 20px 0 10px;
  display: flex; align-items: center; gap: 6px;
}
.subsection-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.stats-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute;
  bottom: -12px; left: -12px; width: 56px; height: 56px;
  border-radius: 50%; opacity: 0.08;
}
.stat-card.blue::after { background: var(--brand); }
.stat-card.green::after { background: var(--green); }
.stat-card.amber::after { background: var(--amber); }
.stat-card.purple::after { background: var(--brand2); }
.stat-label { font-size: 0.68rem; color: var(--txt2); margin-bottom: 6px; }
.stat-value { font-size: 1.25rem; font-weight: 900; line-height: 1; }
.stat-value.blue { color: var(--brand); }
.stat-value.green { color: var(--green); }
.stat-value.amber { color: var(--amber); }
.stat-value.purple { color: var(--brand2); }
.stat-icon { position: absolute; top: 12px; left: 14px; font-size: 1rem; opacity: 0.35; }
.stat-trend {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; padding: 3px 9px; border-radius: 20px;
  font-size: 0.62rem; font-weight: 700;
}
.stat-trend.up { background: rgba(34,211,165,0.12); color: var(--green); }
.stat-trend.down { background: rgba(242,93,93,0.12); color: var(--red); }

/* ─── ANALYTICS PAGE ─── */
.demo-seller .analytics-toolbar {
  margin-bottom: 16px;
}
.demo-seller .analytics-toolbar .tab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 0.68rem; padding: 9px 8px;
}
.demo-seller .analytics-toolbar .tab-btn i { font-size: 0.75rem; opacity: 0.85; }
.demo-seller .analytics-toolbar .tab-btn.active i { opacity: 1; }
.demo-seller .analytics-toolbar .tab-btn-ghost {
  background: none !important; color: var(--txt2) !important;
}
.demo-seller .analytics-toolbar .tab-btn-ghost:hover {
  background: rgba(79,142,247,0.08) !important; color: var(--brand) !important;
}
.demo-seller #charts-kpi { margin-bottom: 20px; }
.demo-seller #charts-kpi .stat-card { min-height: 96px; }
.demo-seller #charts-kpi .stat-value { margin-top: 2px; }

.live-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px;
}
.live-card-head {
  padding: 14px 16px 12px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.live-card-title { font-size: 0.92rem; font-weight: 800; line-height: 1.4; flex: 1; }
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 30px;
  font-size: 0.64rem; font-weight: 700; white-space: nowrap;
}
.badge-upcoming { background: rgba(249,185,66,0.12); color: var(--amber); }
.badge-ended { background: rgba(34,211,165,0.12); color: var(--green); }
.badge-live { background: rgba(242,93,93,0.15); color: var(--red); }
.badge-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); animation: pulse 1.2s infinite;
}
.live-meta { padding: 0 16px 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.live-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--txt2); }
.live-meta-item i { font-size: 0.7rem; color: var(--brand); }
.live-stats { padding: 10px 16px; background: var(--surface2); display: flex; }
.live-stat { flex: 1; text-align: center; border-left: 1px solid var(--border); }
.live-stat:last-child { border-left: none; }
.live-stat-val { font-size: 0.88rem; font-weight: 800; }
.live-stat-lbl { font-size: 0.6rem; color: var(--txt2); margin-top: 2px; }
.live-actions { padding: 12px 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.act-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 8px;
  font-size: 0.7rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.18s; font-family: inherit;
}
.act-btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }
.act-btn-ghost { background: rgba(255,255,255,0.05); color: var(--txt2); border: 1px solid var(--border); }
.act-btn-danger { background: rgba(242,93,93,0.08); color: var(--red); border: 1px solid rgba(242,93,93,0.2); }

.fab {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none; cursor: pointer; color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(79,142,247,0.3);
}

.tab-bar {
  display: flex; gap: 6px; margin-bottom: 16px;
  background: var(--surface); border-radius: var(--r-sm); padding: 4px;
  border: 1px solid var(--border);
}
.tab-btn {
  flex: 1; padding: 8px 6px; border: none; border-radius: 7px;
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  background: none; color: var(--txt2); transition: all 0.2s; font-family: inherit;
}
.tab-btn.active { background: var(--brand); color: #fff; }

.order-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: center;
}
.order-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--surface2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: var(--brand);
}
.order-info { flex: 1; min-width: 0; }
.order-name { font-size: 0.85rem; font-weight: 700; }
.order-products { font-size: 0.68rem; color: var(--txt2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-right { text-align: left; flex-shrink: 0; }
.order-amount { font-size: 0.82rem; font-weight: 800; }
.order-date { font-size: 0.62rem; color: var(--txt2); margin-top: 2px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 30px; font-size: 0.62rem; font-weight: 700; }
.pill-green { background: rgba(34,211,165,0.12); color: var(--green); }
.pill-amber { background: rgba(249,185,66,0.12); color: var(--amber); }
.pill-red { background: rgba(242,93,93,0.12); color: var(--red); }
.pill-grey { background: rgba(255,255,255,0.06); color: var(--txt2); }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.product-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.product-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.product-thumb {
  height: 90px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.product-body { padding: 10px 12px; }
.product-name { font-size: 0.78rem; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.product-price { font-size: 0.7rem; color: var(--brand); font-weight: 700; }
.product-old { font-size: 0.62rem; color: var(--txt3); text-decoration: line-through; }
.product-pin-tag {
  position: absolute; top: 8px; right: 8px;
  background: var(--amber); color: #000; font-size: 0.58rem;
  padding: 2px 6px; border-radius: 6px; font-weight: 800;
}
.product-tile { position: relative; }

.chart-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 12px; margin-bottom: 12px;
}
.chart-title { font-size: 0.78rem; font-weight: 700; color: var(--txt2); margin-bottom: 14px; }
.completed-live-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; cursor: pointer;
  transition: border-color 0.2s;
}
.completed-live-card:hover, .completed-live-card.selected { border-color: var(--brand); }
.completed-live-card h4 { font-size: 0.85rem; margin-bottom: 8px; }
.completed-live-card .mini-stats { display: flex; gap: 12px; font-size: 0.68rem; color: var(--txt2); }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--txt2); margin-bottom: 7px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--txt1);
  font-family: inherit; font-size: 0.88rem;
}
.form-input:focus { outline: none; border-color: var(--brand); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border-radius: var(--r-md);
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  border: none; font-family: inherit;
}
.btn-brand { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: none; align-items: flex-end; justify-content: center;
}
.modal-backdrop.show { display: flex; }
.modal-sheet {
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  padding-bottom: calc(16px + var(--safe-b));
  animation: slideUp 0.3s cubic-bezier(.32,.72,0,1);
}
.modal-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 12px auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 14px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 0.95rem; font-weight: 800; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.06); border: none; color: var(--txt2); cursor: pointer; }
.modal-body { padding: 18px; }

.hl-target { border-radius: inherit; }
.shopo-tour-active .hl-target { outline: 2px dashed var(--brand); outline-offset: 3px; }

.demo-link-bar {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.demo-link-bar a {
  font-size: 0.72rem; padding: 6px 12px; border-radius: 20px;
  background: rgba(79,142,247,0.12); color: var(--brand);
  text-decoration: none; font-weight: 600;
}

/* ═══ LIVE.PHP customer theme ═══ */
body.demo-live {
  font-family: 'Shabnam', sans-serif;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  min-height: 100vh; color: #111827; direction: rtl;
  padding: 16px; padding-bottom: calc(16px + var(--safe-b));
}
.demo-live .main-wrapper {
  max-width: 1400px; margin: 0 auto;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden; padding: 24px;
  border: 1px solid rgba(255,255,255,0.3);
}
.demo-live .live-header {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  border-radius: 24px; padding: 20px 28px; margin-bottom: 24px;
  color: white; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.demo-live .live-badge-header {
  background: #F59E0B; padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
  animation: livePulseHeader 2s infinite;
}
@keyframes livePulseHeader {
  0% { box-shadow: 0 0 0 0 rgba(245,158,11,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.demo-live .live-title { font-size: 1.6rem; font-weight: 800; margin-top: 8px; }
.demo-live .live-meta-row { display: flex; gap: 16px; margin-top: 8px; font-size: 0.9rem; opacity: 0.95; }
.demo-live .header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-live .header-btn {
  background: rgba(255,255,255,0.2); border: none; color: white;
  padding: 10px 16px; border-radius: 12px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 0.85rem;
}
.demo-live .cart-badge {
  background: #EF4444; color: white; font-size: 0.7rem;
  padding: 2px 7px; border-radius: 10px; margin-right: 4px;
}
.demo-live .live-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.demo-live .video-section {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.demo-live .video-container {
  position: relative; background: #000; aspect-ratio: 16/9; overflow: hidden;
}
.demo-live .video-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e1b4b, #312e81, #4c1d95);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; gap: 12px;
}
.demo-live .video-placeholder .play-ring {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  border: 2px solid rgba(255,255,255,0.3);
}
.demo-live .video-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 16px; display: flex; align-items: center; gap: 12px;
}
.demo-live .control-btn {
  background: rgba(255,255,255,0.2); border: none; color: white;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.demo-live .pinned-overlay {
  position: absolute; top: 10px; right: 10px; left: 10px;
  display: flex; justify-content: center; z-index: 15;
}
.demo-live .pinned-product {
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-radius: 12px; padding: 8px 10px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1.5px solid #F59E0B; width: min(560px, 100%);
}
.demo-live .pinned-thumb {
  width: 44px; height: 44px; border-radius: 10px;
  background: #FEF3C7; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.demo-live .pinned-product-info { flex: 1; min-width: 0; }
.demo-live .pinned-product-title { font-weight: 900; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-live .pinned-product-price { color: #8B5CF6; font-weight: 900; font-size: 0.9rem; }
.demo-live .pinned-product-btn {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  border: none; color: white; padding: 8px 12px; border-radius: 10px;
  font-size: 0.8rem; font-weight: 900; cursor: pointer; font-family: inherit;
}
.demo-live .cart-timer-bar {
  background: linear-gradient(90deg, #FEF3C7, #FDE68A);
  padding: 10px 16px; display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(245,158,11,0.3);
}
.demo-live .cart-timer-bar strong { color: #92400E; font-size: 0.85rem; }
.demo-live .cart-timer-val {
  font-family: monospace; font-size: 1.1rem; font-weight: 900; color: #DC2626;
  background: rgba(255,255,255,0.7); padding: 4px 12px; border-radius: 8px;
}
.demo-live .sidebar-tabs {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
}
.demo-live .tabs-header { display: flex; background: #F3F4F6; padding: 4px; gap: 4px; }
.demo-live .tab-btn {
  flex: 1; padding: 14px 8px; border: none; background: transparent;
  font-weight: 900; color: #6B7280; cursor: pointer; border-radius: 12px;
  font-size: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit;
}
.demo-live .tab-btn.active { background: white; color: #8B5CF6; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.demo-live .tab-content { padding: 16px; max-height: 520px; overflow-y: auto; }
.demo-live .tab-pane { display: none; }
.demo-live .tab-pane.active { display: block; }
.demo-live .product-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: #F9FAFB; border-radius: 12px; margin-bottom: 12px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
}
.demo-live .product-card:hover { border-color: #8B5CF6; transform: translateX(-4px); }
.demo-live .product-card.pinned { border: 2px solid #F59E0B; background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.demo-live .product-card-thumb {
  width: 56px; height: 56px; border-radius: 10px;
  background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.demo-live .product-card-info h4 { font-size: 0.85rem; margin-bottom: 4px; }
.demo-live .product-card-price { color: #8B5CF6; font-weight: 900; font-size: 0.85rem; }
.demo-live .chat-messages { display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.demo-live .chat-msg .sender { font-size: 0.75rem; font-weight: 700; margin-bottom: 4px; color: #6B7280; }
.demo-live .chat-msg .text {
  display: inline-block; padding: 10px 14px; border-radius: 14px;
  font-size: 0.85rem; max-width: 90%;
}
.demo-live .chat-msg.student .text { background: #F3F4F6; border-radius: 14px 14px 14px 4px; }
.demo-live .chat-msg.teacher .text { background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; border-radius: 14px 14px 4px 14px; }
.demo-live .chat-input-group { display: flex; gap: 8px; margin-top: 12px; }
.demo-live .chat-input-group textarea {
  flex: 1; border: 1px solid #E5E7EB; border-radius: 12px; padding: 10px;
  font-family: inherit; resize: none; font-size: 0.85rem;
}
.demo-live .send-btn {
  width: 44px; height: 44px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; cursor: pointer;
}

@media (max-width: 1024px) {
  .demo-live .live-grid { grid-template-columns: 1fr; }
  .demo-live .main-wrapper { padding: 12px; border-radius: 20px; }
}

/* ═══ SholiLive mobile customer theme ═══ */
body.demo-sholi {
  font-family: 'Shabnam', sans-serif;
  background: #0f0f23; color: #eaeaea;
  height: 100vh; height: 100dvh; overflow: hidden;
  direction: rtl; user-select: none;
}
.demo-sholi .app { display: flex; flex-direction: column; height: 100%; }
.demo-sholi .topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,0.06); gap: 10px; z-index: 100;
}
.demo-sholi .live-badge-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ff4757; padding: 6px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; animation: sholiPulse 1.8s infinite;
}
.demo-sholi .live-badge-sm .dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; }
@keyframes sholiPulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,71,87,0.6)} 50%{box-shadow:0 0 0 12px rgba(255,71,87,0)} }
.demo-sholi .topbar-title { font-size: 14px; font-weight: 700; text-align: center; }
.demo-sholi .topbar-sub { font-size: 11px; color: #a0a0b0; text-align: center; }
.demo-sholi .icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: #16213e; color: #eaeaea; font-size: 14px; cursor: pointer;
}
.demo-sholi .main-panel { flex: 1; overflow: hidden; position: relative; }
.demo-sholi .panel { display: none; height: 100%; flex-direction: column; }
.demo-sholi .panel.active { display: flex; }
.demo-sholi .video-panel {
  background: #000; position: relative; flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.demo-sholi .video-panel-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(108,92,231,0.3), rgba(0,0,0,0.9)),
              radial-gradient(circle at 30% 40%, #6c5ce7 0%, transparent 50%),
              #0f0f23;
}
.demo-sholi .video-overlay-content {
  position: relative; z-index: 2; text-align: center; padding: 20px;
}
.demo-sholi .viewer-count {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,0.5); padding: 6px 12px; border-radius: 20px;
  font-size: 12px; display: flex; align-items: center; gap: 6px;
}
.demo-sholi .bomb-strip {
  position: absolute; bottom: 80px; left: 12px; right: 12px;
  background: linear-gradient(90deg, rgba(255,71,87,0.9), rgba(255,165,2,0.9));
  border-radius: 14px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700;
}
.demo-sholi .bomb-timer { font-family: monospace; font-size: 16px; }
.demo-sholi .products-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px;
  background: #1a1a2e; -webkit-overflow-scrolling: touch;
}
.demo-sholi .mini-product {
  min-width: 110px; background: #16213e; border-radius: 12px;
  padding: 10px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.06);
}
.demo-sholi .mini-product.bomb { border-color: #ffa502; background: rgba(255,165,2,0.15); }
.demo-sholi .mini-product.pinned { border-color: #00d2ff; box-shadow: 0 0 16px rgba(0,210,255,0.2); }
.demo-sholi .mini-product .emoji { font-size: 1.6rem; margin-bottom: 6px; }
.demo-sholi .mini-product .name { font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.demo-sholi .mini-product .price { font-size: 12px; color: #00d2ff; font-weight: 700; }
.demo-sholi .products-full { flex: 1; overflow-y: auto; padding: 12px; }
.demo-sholi .sholi-product-card {
  background: #16213e; border-radius: 12px; padding: 14px;
  margin-bottom: 10px; display: flex; gap: 12px; align-items: center;
}
.demo-sholi .sholi-product-card .thumb {
  width: 56px; height: 56px; border-radius: 10px;
  background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.demo-sholi .buy-mini-btn {
  background: #6c5ce7; border: none; color: #fff;
  padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.demo-sholi .chat-panel-full { flex: 1; display: flex; flex-direction: column; background: #1a1a2e; }
.demo-sholi .chat-msgs { flex: 1; overflow-y: auto; padding: 12px; }
.demo-sholi .chat-msg { margin-bottom: 10px; }
.demo-sholi .chat-msg .sender { font-size: 11px; font-weight: 600; color: #a0a0b0; margin-bottom: 3px; }
.demo-sholi .chat-msg .text {
  font-size: 13px; padding: 8px 12px; border-radius: 12px; display: inline-block; max-width: 85%;
}
.demo-sholi .chat-msg.teacher .text { background: #6c5ce7; color: #fff; }
.demo-sholi .chat-msg.student .text { background: #16213e; }
.demo-sholi .chat-input-row {
  padding: 10px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 8px;
}
.demo-sholi .chat-input-row input {
  flex: 1; background: #16213e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 10px 16px; color: #fff; font-family: inherit; font-size: 13px;
}
.demo-sholi .send-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: #6c5ce7; color: #fff; cursor: pointer;
}
.demo-sholi .mobile-nav {
  display: flex; background: #1a1a2e;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 8px 8px calc(8px + var(--safe-b));
}
.demo-sholi .mobile-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; color: #a0a0b0; font-size: 10px;
  padding: 8px; cursor: pointer; font-family: inherit;
}
.demo-sholi .mobile-nav-btn i { font-size: 18px; }
.demo-sholi .mobile-nav-btn.active { color: #a29bfe; }

@media (min-width: 768px) {
  body.demo-sholi { display: flex; align-items: center; justify-content: center; padding: 20px; }
  body.demo-sholi .phone-frame {
    width: min(420px, 100%); height: min(860px, 100vh - 40px);
    border-radius: 32px; overflow: hidden;
    border: 3px solid rgba(108,92,231,0.4);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  }
}

/* ═══ شاپو روی صفحات دمو ═══ */
body.demo-seller #shopo-btn,
body.demo-live #shopo-btn,
body.demo-sholi #shopo-btn,
body.demo-studio #shopo-btn {
  z-index: 10050;
  box-shadow: 0 8px 32px rgba(139,92,246,.55), 0 0 0 3px rgba(255,255,255,.12);
}
body.demo-seller #shopo-btn,
body.demo-sholi #shopo-btn { bottom: calc(84px + var(--safe-b)); }
body.demo-live #shopo-btn { bottom: 24px; }
body.demo-studio #shopo-btn { bottom: 24px; }
body.demo-seller #shopo-panel,
body.demo-sholi #shopo-panel { bottom: calc(154px + var(--safe-b)); z-index: 10051; }

/* ═══ افکت‌های زنده ═══ */
.demo-fx-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 9000; overflow: hidden;
}
.demo-confetti-root {
  position: fixed; inset: 0; pointer-events: none; z-index: 9050; overflow: hidden;
}
.confetti-piece {
  position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
.demo-ticker {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  min-width: min(420px, 92vw); padding: 12px 20px; border-radius: 14px;
  font-size: 0.85rem; font-weight: 600; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transition: top 0.45s cubic-bezier(.34,1.2,.64,1), opacity 0.4s;
  opacity: 0;
}
.demo-ticker.show { top: 16px; opacity: 1; }
.demo-ticker-purchase {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #78350F; border: 2px solid #F59E0B;
}
.demo-ticker-referral {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E3A8A; border: 2px solid #3B82F6;
}
.demo-ticker-lottery {
  background: linear-gradient(135deg, #F3E8FF, #E9D5FF);
  color: #581C87; border: 2px solid #8B5CF6;
}
.demo-ticker .ticker-icon { margin-left: 8px; font-size: 1.1rem; }

.demo-bomb-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.demo-bomb-overlay.show { opacity: 1; pointer-events: auto; }
.demo-bomb-inner {
  text-align: center; padding: 40px 32px; border-radius: 28px;
  background: linear-gradient(145deg, #7f1d1d, #991b1b, #b45309);
  border: 2px solid rgba(245,158,11,0.5);
  box-shadow: 0 0 80px rgba(239,68,68,0.5);
  animation: bombPulse 0.6s ease infinite alternate;
  color: #fff; max-width: 360px; width: 90%;
}
@keyframes bombPulse { from { transform: scale(1); } to { transform: scale(1.03); } }
.demo-bomb-icon { font-size: 4rem; margin-bottom: 12px; animation: bombShake 0.4s infinite; }
@keyframes bombShake {
  0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); }
}
.demo-bomb-inner h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.demo-bomb-timer-lg {
  font-family: monospace; font-size: 2.2rem; font-weight: 900;
  margin-top: 16px; color: #FDE68A;
}

.demo-lottery-modal {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  padding: 16px;
}
.demo-lottery-modal.show { opacity: 1; pointer-events: auto; }
.demo-lottery-dialog {
  background: #1a1a2e; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,215,0,0.15); max-width: 420px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: modalPop 0.35s cubic-bezier(.34,1.2,.64,1);
}
@keyframes modalPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.demo-lottery-head {
  background: linear-gradient(135deg, #1a0a2e, #2d1b4e);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,215,0,0.12);
}
.demo-lottery-head h3 { color: #ffd700; font-size: 1rem; margin: 0; }
.demo-lottery-head p { color: #a0a0b0; font-size: 0.75rem; margin: 4px 0 0; }
.demo-lottery-close {
  margin-right: auto; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none; color: #fff; cursor: pointer;
}
.demo-lottery-body { padding: 24px 20px; text-align: center; }
.demo-wheel-wrap {
  position: relative; width: 260px; height: 260px; margin: 0 auto 20px;
}
.demo-wheel-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 1.4rem; color: #ffd700; z-index: 3; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.demo-wheel-disk {
  width: 100%; height: 100%; border-radius: 50%;
  border: 6px solid #ffd700;
  box-shadow: 0 0 30px rgba(255,215,0,0.3), inset 0 0 20px rgba(0,0,0,0.3);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}
.demo-wheel-disk.spinning { filter: brightness(1.1); }
.demo-wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: #1a1a2e;
  border: 3px solid #ffd700; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; z-index: 2;
}
.demo-lottery-winner {
  min-height: 28px; color: #22D3A5; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px;
}
.demo-lottery-spin-btn {
  width: 100%; padding: 14px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #000;
  font-family: Shabnam, Tahoma, sans-serif; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}
.demo-lottery-spin-btn:disabled { opacity: 0.6; cursor: wait; }
.demo-chat-fade-in { animation: chatIn 0.35s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ نمودارهای حرفه‌ای ═══ */
.charts-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.charts-toolbar button {
  padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--txt2); font-size: 0.72rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.charts-toolbar button.active, .charts-toolbar button:hover {
  background: rgba(79,142,247,0.15); color: var(--brand); border-color: var(--brand);
}
.kpi-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px;
}
@media (min-width: 480px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; position: relative; overflow: hidden;
}
.kpi-card .kpi-val { font-size: 1.15rem; font-weight: 900; color: var(--txt1); }
.kpi-card .kpi-lbl { font-size: 0.65rem; color: var(--txt2); margin-top: 4px; }
.kpi-card .kpi-trend {
  font-size: 0.62rem; font-weight: 700; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px;
}
.kpi-trend.up { background: rgba(34,211,165,0.12); color: var(--green); }
.kpi-trend.down { background: rgba(242,93,93,0.12); color: var(--red); }
.chart-wrap.pro { position: relative; }
.chart-wrap.pro::before {
  content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(79,142,247,0.08), transparent 70%);
  pointer-events: none;
}
.chart-grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 520px) { .chart-grid-2 { grid-template-columns: 1fr 1fr; } }
.timeline-card {
  background: var(--surface2); border-radius: var(--r-sm); padding: 12px 14px;
  border-right: 3px solid var(--brand); margin-bottom: 8px;
}
.timeline-card strong { font-size: 0.78rem; color: var(--brand); }
.timeline-card p { font-size: 0.72rem; color: var(--txt2); margin-top: 4px; line-height: 1.5; }

/* ═══ استودیو SholiLive (فروشنده) ═══ */
body.demo-studio {
  font-family: Shabnam, Tahoma, sans-serif; background: #0f0f23; color: #eaeaea;
  height: 100vh; height: 100dvh; overflow: hidden; direction: rtl;
  display: flex; flex-direction: column; margin: 0;
}
.demo-studio .studio-app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.demo-studio .studio-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,0.06); gap: 10px; flex-shrink: 0;
}
.demo-studio .studio-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ff4757; padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; animation: sholiPulse 1.8s infinite;
}
.demo-studio .studio-timer {
  font-family: monospace; color: #00d2ff; font-size: 13px; font-weight: 600;
  background: #16213e; padding: 6px 12px; border-radius: 20px;
}
.demo-studio .studio-sales {
  background: rgba(0,230,118,0.12); color: #00e676; padding: 6px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.demo-studio .studio-main {
  flex: 1; display: flex; min-height: 0; overflow: hidden;
}
.demo-studio .studio-products {
  width: 300px; flex-shrink: 0; background: #1a1a2e;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; order: 1;
}
.demo-studio .studio-video {
  flex: 1; min-width: 0; background: #050508; position: relative;
  display: flex; align-items: center; justify-content: center; order: 2; overflow: hidden;
}
.demo-studio .studio-video-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(108,92,231,0.22), transparent 70%),
              linear-gradient(180deg, #12121f 0%, #050508 100%);
  pointer-events: none;
}
.demo-studio .studio-stage {
  position: relative; z-index: 2; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 24px 88px; box-sizing: border-box;
}
.demo-studio .studio-camera-frame {
  position: relative; width: min(100%, 420px); aspect-ratio: 9/16;
  max-height: calc(100vh - 220px); border-radius: 24px; overflow: hidden;
  background: #0a0a14; border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 0 1px rgba(108,92,231,0.25), 0 24px 80px rgba(0,0,0,0.65), 0 0 60px rgba(108,92,231,0.15);
  animation: studioFrameIn 0.45s cubic-bezier(.34,1.2,.64,1);
}
@keyframes studioFrameIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.demo-studio .studio-local-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; transform: scaleX(-1);
  background: #111; display: none;
}
.demo-studio .studio-camera-frame.is-live .studio-local-video { display: block; }
.demo-studio .studio-camera-frame.is-live .studio-camera-fallback { display: none; }
.demo-studio .studio-camera-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 28px 20px; text-align: center;
  background: linear-gradient(165deg, #1a1a2e 0%, #0f0f23 45%, #16213e 100%);
}
.demo-studio .studio-avatar-ring {
  width: 96px; height: 96px; border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, #6c5ce7, #00d2ff); margin-bottom: 18px;
  box-shadow: 0 12px 40px rgba(108,92,231,0.35);
}
.demo-studio .studio-avatar {
  width: 100%; height: 100%; border-radius: 50%; background: #16213e;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #a29bfe;
}
.demo-studio .studio-fallback-title { font-size: 1rem; font-weight: 800; margin: 0 0 6px; color: #fff; }
.demo-studio .studio-fallback-sub { font-size: 0.78rem; color: #a0a0b0; margin: 0 0 18px; line-height: 1.6; max-width: 240px; }
.demo-studio .studio-camera-enable {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: none;
  border-radius: 14px; background: linear-gradient(135deg, #6c5ce7, #5b4cdb); color: #fff;
  font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(108,92,231,0.4);
}
.demo-studio .studio-camera-enable:hover { filter: brightness(1.08); }
.demo-studio .studio-camera-badge {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12); font-size: 11px; font-weight: 700; color: #fff; z-index: 4;
}
.demo-studio .studio-camera-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #00e676;
  box-shadow: 0 0 8px #00e676; animation: studioLiveDot 1.4s infinite;
}
@keyframes studioLiveDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.demo-studio .studio-camera-status {
  position: absolute; bottom: 14px; left: 14px; padding: 5px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); font-size: 10px; font-weight: 600;
  color: #a0a0b0; letter-spacing: 0.04em; z-index: 4;
}
.demo-studio .studio-vctrl {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.demo-studio .vctrl-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 16px; cursor: pointer;
}
.demo-studio .vctrl-btn.broadcast { width: 52px; height: 52px; background: #ff4757; }
.demo-studio .vctrl-btn.broadcast.live { background: #00e676; animation: sholiPulse 1.8s infinite; }
.demo-studio .vctrl-btn.active { background: rgba(0,210,255,0.35); color: #00d2ff; box-shadow: 0 0 12px rgba(0,210,255,0.25); }
.demo-studio .studio-chat {
  width: 280px; flex-shrink: 0; background: #1a1a2e;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; order: 3;
}
.demo-studio .panel-head {
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600;
}
.demo-studio .panel-head i { color: #00d2ff; margin-left: 6px; }
.demo-studio .studio-product-list { flex: 1; overflow-y: auto; padding: 10px; }
.demo-studio .studio-prod-card {
  background: #16213e; border-radius: 10px; padding: 12px; margin-bottom: 8px;
  border: 1px solid transparent;
}
.demo-studio .studio-prod-card.pinned { border-color: #00d2ff; box-shadow: 0 0 16px rgba(0,210,255,0.15); }
.demo-studio .studio-prod-top { display: flex; gap: 10px; margin-bottom: 8px; }
.demo-studio .studio-prod-thumb {
  width: 48px; height: 48px; border-radius: 8px; background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.demo-studio .studio-prod-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-studio .pact-sm {
  padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: #a0a0b0; font-size: 11px; cursor: pointer; font-family: inherit;
}
.demo-studio .pact-sm.pin { color: #00d2ff; border-color: #00d2ff; }
.demo-studio .pact-sm.bomb { color: #ffa502; border-color: #ffa502; }
.demo-studio .studio-chat-msgs { flex: 1; overflow-y: auto; padding: 10px; min-height: 0; }
.demo-studio .chat-msg { margin-bottom: 10px; }
.demo-studio .chat-msg .sender { font-size: 11px; font-weight: 600; color: #a0a0b0; margin-bottom: 3px; }
.demo-studio .chat-msg .text { font-size: 13px; padding: 9px 13px; border-radius: 12px; display: inline-block; max-width: 90%; }
.demo-studio .chat-msg.teacher .text { background: #6c5ce7; color: #fff; }
.demo-studio .chat-msg.student .text { background: #16213e; color: #eaeaea; }
.demo-studio .chat-input-row { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; gap: 8px; flex-shrink: 0; }
.demo-studio .chat-input-row input { flex: 1; background: #16213e; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 10px 16px; color: #fff; font-family: inherit; font-size: 13px; outline: none; }
.demo-studio .send-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: #6c5ce7; color: #fff; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.demo-studio .studio-vctrl { background: rgba(0,0,0,0.45); padding: 10px 16px; border-radius: 40px; backdrop-filter: blur(8px); }
.demo-studio .studio-mobile-nav { display: none; }
@media (max-width: 900px) {
  .demo-studio .studio-main { flex-direction: column; }
  .demo-studio .studio-stage { padding: 12px 16px 80px; }
  .demo-studio .studio-camera-frame { width: min(100%, 340px); max-height: calc(100dvh - 260px); border-radius: 20px; }
  .demo-studio .studio-products,
  .demo-studio .studio-chat { display: none; width: 100%; }
  .demo-studio .studio-main.show-products .studio-products { display: flex; order: 2; flex: 1; }
  .demo-studio .studio-main.show-chat .studio-chat { display: flex; order: 2; flex: 1; }
  .demo-studio .studio-main.show-products .studio-video,
  .demo-studio .studio-main.show-chat .studio-video { display: none; }
  .demo-studio .studio-mobile-nav {
    display: flex; background: #1a1a2e; border-top: 1px solid rgba(255,255,255,0.06);
    padding: 8px; flex-shrink: 0;
  }
  .demo-studio .studio-mobile-nav button {
    flex: 1; background: none; border: none; color: #a0a0b0;
    padding: 8px; font-size: 10px; cursor: pointer; font-family: inherit;
  }
  .demo-studio .studio-mobile-nav button.active { color: #a29bfe; }
  .demo-studio .studio-mobile-nav button i { display: block; font-size: 18px; margin-bottom: 4px; }
}
.demo-studio .tools-fab-studio {
  position: fixed; bottom: 24px; left: 24px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.demo-studio .studio-ribbon {
  position: relative; z-index: 200; flex-shrink: 0;
  background: rgba(26,26,46,0.95);
  border-bottom: 1px solid rgba(108,92,231,0.3);
  padding: 6px 12px; font-size: 0.7rem; text-align: center; color: #a0a0b0;
}
.demo-studio .studio-ribbon strong { color: #a29bfe; }
.demo-studio .studio-ribbon a { color: #00d2ff; text-decoration: none; font-weight: 700; }
.demo-studio .fab-s {
  width: 50px; height: 50px; border-radius: 50%; border: none; color: #fff;
  font-size: 18px; cursor: pointer; box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
}

