/* ============================================================
   ALLOVE CONNECT — Chat Room UI
   Maroon / Crimson theme matching preview screenshots
   ============================================================ */

/* ---------- reset for room page ---------- */
.room-body{margin:0;padding:0;background:#f0f0f0;font-family:'Segoe UI',Inter,system-ui,-apple-system,sans-serif;color:#1a1a2e;min-height:100vh}
.room-body .topbar,.room-body .site-footer,.room-body .site-shell>header,.room-body .site-shell>footer{display:none!important}
.room-body .site-shell{min-height:100vh;display:contents}
.room-body .main-content.container,.room-body .container.main-content{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}

/* ---------- color tokens ---------- */
:root{
  --gc-maroon:#6B1024;
  --gc-maroon-dark:#4E0C1A;
  --gc-maroon-light:#8B1538;
  --gc-gold:#D4AF37;
  --gc-gold-light:#E8CC6E;
  --gc-online:#2ECC71;
  --gc-bg:#F5F5F5;
  --gc-white:#FFFFFF;
  --gc-text:#1a1a2e;
  --gc-muted:#888;
  --gc-border:#E8E8E8;
  --gc-msg-them:#F0F0F0;
  --gc-msg-me:#6B1024;
  --gc-danger:#E74C3C;
}

/* ============================================================
   LAYOUT — 3-column desktop grid
   ============================================================ */
.gc-shell{
  display:grid;
  grid-template-columns:88px 320px minmax(0,1fr);
  min-height:100vh;
  background:var(--gc-white);
}

/* ============================================================
   LEFT SIDEBAR (desktop)
   ============================================================ */
.gc-sidebar{
  background:linear-gradient(180deg,var(--gc-maroon) 0%,var(--gc-maroon-dark) 100%);
  display:flex;flex-direction:column;align-items:center;
  padding:20px 10px;gap:28px;
}
.gc-brand{display:flex;flex-direction:column;align-items:center;gap:8px}
.gc-brand-icon{
  width:50px;height:50px;border-radius:50%;
  background:linear-gradient(135deg,var(--gc-gold),var(--gc-gold-light));
  display:flex;align-items:center;justify-content:center;
  color:var(--gc-maroon-dark);font-weight:900;font-size:22px;
  box-shadow:0 8px 24px rgba(212,175,55,.35);
}
.gc-brand-logo{width:52px;height:52px;border-radius:50%;object-fit:contain;padding:4px;border:2px solid #D4AF37;box-shadow:0 4px 14px rgba(212,175,55,.4),0 8px 20px rgba(0,0,0,.3);background:#FDF8F0}
.gc-brand-label{color:#fff;font-size:9px;font-weight:800;letter-spacing:.1em;text-align:center;line-height:1;text-transform:uppercase;white-space:nowrap}
.gc-side-nav{display:flex;flex-direction:column;gap:8px;width:100%}
.gc-nav-item{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:12px 6px;border-radius:16px;
  color:rgba(255,255,255,.65);font-size:11px;font-weight:600;
  text-decoration:none;transition:all .2s;
}
.gc-nav-item svg{width:22px;height:22px}
.gc-nav-item.active,.gc-nav-item:hover{background:rgba(255,255,255,.12);color:#fff}
.gc-side-profile{
  margin-top:auto;width:48px;height:48px;border-radius:50%;overflow:hidden;
  background:linear-gradient(135deg,var(--gc-gold),var(--gc-gold-light));
  display:flex;align-items:center;justify-content:center;
  color:var(--gc-maroon-dark);font-weight:800;font-size:18px;
}
.gc-side-profile img,.gc-profile-img{width:100%;height:100%;object-fit:cover;border-radius:50%}

/* ============================================================
   CHAT LIST PANEL (desktop)
   ============================================================ */
.gc-chat-list{
  background:#FAFAFA;border-right:1px solid var(--gc-border);
  padding:22px 16px;overflow-y:auto;
}
.gc-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.gc-list-head h2{margin:0;font-size:22px;color:var(--gc-text)}
.gc-compose-btn{
  width:34px;height:34px;border-radius:10px;border:1px solid var(--gc-border);
  display:flex;align-items:center;justify-content:center;
  color:var(--gc-text);background:#fff;font-size:16px;text-decoration:none;
}
.gc-list-item{
  display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;
  padding:14px;border-radius:18px;background:#fff;
  border:1px solid var(--gc-border);margin-bottom:10px;cursor:pointer;
  transition:all .2s;
}
.gc-list-item:hover{border-color:#ccc}
.gc-list-item.active{
  background:linear-gradient(135deg,var(--gc-maroon),var(--gc-maroon-light));
  border-color:var(--gc-maroon);color:#fff;
}
.gc-list-item.active strong,.gc-list-item.active span,.gc-list-item.active em{color:#fff!important}
.gc-list-meta{display:flex;flex-direction:column;gap:3px}
.gc-list-meta strong{font-size:15px;color:var(--gc-text)}
.gc-list-meta span{font-size:12px;color:var(--gc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-list-item em{font-style:normal;font-size:11px;color:var(--gc-muted)}

/* ============================================================
   AVATAR (shared)
   ============================================================ */
.gc-avatar{
  border-radius:50%;overflow:hidden;flex-shrink:0;
  background:linear-gradient(135deg,var(--gc-gold),var(--gc-gold-light));
  display:flex;align-items:center;justify-content:center;
  color:var(--gc-maroon-dark);font-weight:800;position:relative;
}
.gc-avatar img{width:100%;height:100%;object-fit:cover}
.gc-avatar.md{width:52px;height:52px;font-size:20px}
.gc-avatar.lg{width:56px;height:56px;font-size:22px}
.gc-online-dot{
  position:absolute;bottom:2px;right:2px;
  width:12px;height:12px;border-radius:50%;
  background:var(--gc-online);border:2px solid var(--gc-white);
}

/* ============================================================
   MAIN CHAT COLUMN
   ============================================================ */
.gc-main{display:flex;flex-direction:column;background:var(--gc-white);min-height:100vh}

/* ---- topbar ---- */
.gc-topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 24px;border-bottom:1px solid var(--gc-border);
  background:var(--gc-white);
}
.gc-party-info{display:flex;align-items:center;gap:14px}
.gc-party-text h1{margin:0;font-size:22px;font-weight:700;color:var(--gc-text);text-transform:uppercase;letter-spacing:.02em}
.gc-online-label{margin:3px 0 0;font-size:12px;color:var(--gc-online);font-weight:600}

/* ---- top action buttons ---- */
.gc-top-actions{display:flex;align-items:center;gap:10px;position:relative}
.gc-action-btn{
  width:52px;height:52px;border-radius:50%;border:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  cursor:pointer;transition:transform .15s,box-shadow .15s;
  background:rgba(107,16,36,.08);color:var(--gc-maroon);
}
.gc-action-btn svg{width:22px;height:22px}
.gc-action-label{font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.gc-action-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(107,16,36,.15)}

/* ---- dropdown ---- */
.gc-dropdown{
  position:absolute;top:62px;right:0;min-width:220px;z-index:40;
  background:#fff;border:1px solid var(--gc-border);border-radius:18px;
  box-shadow:0 20px 44px rgba(0,0,0,.15);padding:8px;
}
.gc-drop-item{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:12px 14px;border-radius:14px;border:none;
  background:#FAFAFA;color:var(--gc-text);font-weight:600;
  text-align:left;cursor:pointer;text-decoration:none;font-size:14px;
}
.gc-drop-item svg{width:18px;height:18px;flex-shrink:0}
.gc-drop-item:hover{background:#f0f0f0}
.gc-drop-item.ok{background:#ECFDF5;color:#166534}
.gc-drop-item.gray{background:#F1F5F9;color:#475569}
.gc-drop-item.danger{background:#FEF2F2;color:#B91C1C}
.gc-drop-item.link{text-decoration:none}

/* ---- call status ---- */
.gc-call-status{
  padding:8px 24px;font-size:12px;font-weight:700;color:var(--gc-muted);
  min-height:0;transition:all .2s;
}
.gc-call-status:empty{display:none}
.gc-call-status.ringing{color:#2563EB;background:#EFF6FF}
.gc-call-status.active,.gc-call-status.live{color:#166534;background:#ECFDF5}
.gc-call-status.ended{color:#B91C1C;background:#FEF2F2}

/* ---- call stage ---- */
.gc-call-stage{padding:14px 24px}
.gc-video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.gc-video-card{background:#111;border-radius:18px;padding:12px;color:#fff;min-height:200px}
.gc-video-card strong{display:block;margin-bottom:8px;font-size:13px}
.gc-video-card video{width:100%;aspect-ratio:16/9;background:#000;border-radius:12px;object-fit:cover}
.gc-video-card.local{border:2px solid var(--gc-gold)}

/* ============================================================
   MESSAGES
   ============================================================ */
.gc-messages{
  flex:1;overflow-y:auto;padding:20px 24px;
  display:flex;flex-direction:column;gap:14px;
  background:var(--gc-white);
}
.gc-msg-row{display:flex;gap:10px;align-items:flex-end}
.gc-msg-row.me{justify-content:flex-end}
.gc-msg-row.them{justify-content:flex-start}
.gc-msg-row.system{justify-content:flex-start}

/* avatar beside message */
.gc-msg-avatar{
  width:32px;height:32px;border-radius:50%;flex-shrink:0;overflow:hidden;
  background:#FDF8F0;
  display:flex;align-items:center;justify-content:center;
  color:var(--gc-maroon-dark);font-weight:800;font-size:13px;
  border:2px solid #D4AF37;box-shadow:0 2px 8px rgba(212,175,55,.3);
  align-self:flex-end;
}
.gc-msg-avatar img{width:70%;height:70%;object-fit:contain;border-radius:0}

/* bubbles */
.gc-msg-bubble{
  max-width:65%;padding:12px 16px;border-radius:20px;position:relative;
  word-wrap:break-word;overflow-wrap:break-word;
}
.gc-msg-bubble.customer{
  background:#E8E8E8;color:#1a1a2e;
  border-bottom-left-radius:6px;
}
.gc-msg-bubble.company,
.gc-msg-bubble.branch,
.gc-msg-bubble.mall{
  background:#5C0A1E;color:#fff;
  border-bottom-right-radius:6px;
}
/* guest viewing: MY messages = maroon on right (same as admin) */
.viewer-guest .gc-msg-row.me .gc-msg-bubble{
  background:#5C0A1E;color:#fff;
  border-bottom-right-radius:6px;border-bottom-left-radius:20px;
}
.viewer-guest .gc-msg-row.them .gc-msg-bubble{
  background:#E8E8E8;color:#1a1a2e;
  border-bottom-left-radius:6px;border-bottom-right-radius:20px;
}
/* admin viewing: MY messages = maroon on right */
.viewer-admin .gc-msg-row.me .gc-msg-bubble{
  background:#5C0A1E;color:#fff;
  border-bottom-right-radius:6px;border-bottom-left-radius:20px;
}
.viewer-admin .gc-msg-row.them .gc-msg-bubble{
  background:#E8E8E8;color:#1a1a2e;
  border-bottom-left-radius:6px;border-bottom-right-radius:20px;
}
.gc-msg-bubble.bot{
  background:#FFF8E7;color:#7C5C0A;border:1px solid #F0D788;
  border-radius:16px;max-width:80%;
}

.gc-msg-sender{font-size:11px;font-weight:700;margin-bottom:4px;opacity:.7}
.gc-msg-text{font-size:14px;line-height:1.5}
.gc-msg-time{font-size:10px;margin-top:6px;opacity:.55;text-align:right}

/* delete button */
.gc-msg-del{
  position:absolute;top:6px;right:8px;
  width:22px;height:22px;border-radius:50%;border:none;
  font-size:14px;cursor:pointer;opacity:0;transition:opacity .2s;
  display:flex;align-items:center;justify-content:center;
}
.gc-msg-bubble:hover .gc-msg-del{opacity:1}
.gc-msg-bubble.customer .gc-msg-del{background:#ddd;color:#333}
.gc-msg-bubble.company .gc-msg-del,
.gc-msg-bubble.branch .gc-msg-del,
.gc-msg-bubble.mall .gc-msg-del{background:rgba(255,255,255,.2);color:#fff}

/* ---- media in messages ---- */
.gc-msg-media{
  margin-top:8px;border-radius:14px;overflow:hidden;
  position:relative;cursor:pointer;max-width:320px;
}
.gc-msg-media img,.gc-msg-media video{width:100%;display:block;border-radius:14px}
.gc-media-overlay{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  padding:10px;gap:4px;
  background:linear-gradient(transparent 50%,rgba(0,0,0,.45));
  border-radius:14px;
}
.gc-media-overlay span{
  background:var(--gc-online);color:#fff;padding:4px 16px;
  border-radius:20px;font-size:12px;font-weight:700;letter-spacing:.05em;
}
.gc-play-icon{font-size:28px;background:none!important;padding:0!important}

.gc-msg-audio{margin-top:8px}
.gc-msg-audio audio{width:100%;max-width:280px;height:38px}

.gc-msg-file{
  margin-top:8px;display:flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:14px;background:rgba(0,0,0,.06);
}
.gc-msg-bubble.company .gc-msg-file,
.gc-msg-bubble.branch .gc-msg-file,
.gc-msg-bubble.mall .gc-msg-file{background:rgba(255,255,255,.12)}
.gc-file-icon{
  width:42px;height:42px;border-radius:10px;
  background:var(--gc-maroon);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:12px;flex-shrink:0;
}
.gc-msg-pdf .gc-file-icon{background:#E74C3C}
.gc-file-info{flex:1;min-width:0}
.gc-file-info strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-file-btn{
  padding:6px 16px;border-radius:20px;font-size:11px;font-weight:700;
  text-decoration:none;letter-spacing:.05em;
  background:var(--gc-online);color:#fff;flex-shrink:0;
}

/* ============================================================
   COMPOSER
   ============================================================ */
.gc-composer{
  display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;
  padding:14px 20px;border-top:1px solid var(--gc-border);background:var(--gc-white);
}
.gc-hidden-file{display:none}
.gc-attach-btn{
  width:46px;height:46px;border-radius:50%;border:none;
  background:linear-gradient(135deg,var(--gc-gold),var(--gc-gold-light));
  color:var(--gc-maroon-dark);font-size:28px;line-height:1;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 18px rgba(212,175,55,.3);
}
.gc-input-wrap{
  display:flex;align-items:center;gap:8px;
  background:#fff;border:1px solid var(--gc-border);
  border-radius:999px;padding:0 8px 0 16px;min-height:48px;
}
.gc-input-wrap textarea{
  flex:1;border:none;outline:none;resize:none;
  min-height:24px;max-height:120px;padding:12px 0;
  font-size:14px;font-family:inherit;background:transparent;
}
.gc-mic-btn{
  width:36px;height:36px;border-radius:50%;border:none;
  background:#F5F5F5;color:#666;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.gc-mic-btn svg{width:18px;height:18px}
.gc-mic-btn.recording{background:#FEE2E2;color:#B91C1C;animation:gc-pulse 1s infinite}
@keyframes gc-pulse{0%,100%{opacity:1}50%{opacity:.5}}
.gc-send-btn{
  width:46px;height:46px;border-radius:50%;border:none;
  background:var(--gc-maroon);color:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:0 8px 18px rgba(107,16,36,.3);
}
.gc-send-btn svg{width:20px;height:20px}

/* ============================================================
   BOTTOM NAV (mobile only)
   ============================================================ */
.gc-bottom-nav{display:none}

/* ============================================================
   DESKTOP / MOBILE visibility helpers
   ============================================================ */
.desktop-only{display:block}
.mobile-only{display:none}

/* ============================================================
   RESPONSIVE — MOBILE (<= 980px)
   ============================================================ */
@media (max-width:980px){
  .gc-shell{display:flex;flex-direction:column;min-height:100vh}
  .desktop-only{display:none!important}
  .mobile-only{display:block!important}

  .gc-main{min-height:100vh;background:var(--gc-bg)}

  /* mobile topbar → maroon */
  .gc-topbar{
    background:linear-gradient(135deg,var(--gc-maroon),var(--gc-maroon-light));
    border-bottom:none;padding:14px 16px;
    position:sticky;top:0;z-index:20;
  }
  .gc-party-text h1{color:#fff;font-size:17px}
  .gc-online-label{color:rgba(255,255,255,.7)}
  .gc-avatar.lg{width:44px;height:44px;font-size:17px}
  .gc-online-dot{border-color:var(--gc-maroon)}

  .gc-action-btn{
    width:44px;height:44px;background:rgba(255,255,255,.12);color:#fff;
  }
  .gc-action-btn:hover{box-shadow:none}
  .gc-action-label{display:none}

  /* messages */
  .gc-messages{padding:14px 12px 140px;background:var(--gc-bg)}
  .gc-msg-bubble{max-width:82%}

  /* composer sticky above bottom nav */
  .gc-composer{
    position:fixed;left:0;right:0;bottom:64px;z-index:18;
    padding:8px 10px;background:transparent;border-top:none;
  }
  .gc-input-wrap{box-shadow:0 8px 24px rgba(0,0,0,.1);background:#fff}
  .gc-mic-btn{width:38px!important;height:38px!important;min-width:38px;display:flex!important}
  .gc-attach-btn{width:42px;height:42px;font-size:24px}
  .gc-send-btn{width:42px;height:42px}

  /* bottom nav */
  .gc-bottom-nav{
    display:grid!important;
    grid-template-columns:repeat(4,1fr);
    position:fixed;left:0;right:0;bottom:0;z-index:20;
    background:#fff;border-top:1px solid var(--gc-border);
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .gc-bottom-nav a{
    display:flex;flex-direction:column;align-items:center;gap:3px;
    color:#999;font-size:10px;font-weight:600;text-decoration:none;
  }
  .gc-bottom-nav a.active{color:var(--gc-maroon)}
  .gc-bottom-nav svg{width:22px;height:22px}
  .gc-bottom-nav small{font-size:10px}

  /* call stage */
  .gc-call-stage{padding:10px 12px}
  .gc-call-status{padding:8px 16px}

  /* dropdown */
  .gc-dropdown{top:54px;right:0;min-width:200px}
}

/* ============================================================
   EXTRA SMALL (<= 480px)
   ============================================================ */
@media (max-width:480px){
  .gc-msg-bubble{max-width:88%}
  .gc-msg-media{max-width:100%}
  .gc-topbar{padding:10px 12px}
  .gc-party-text h1{font-size:15px}
  .gc-action-btn{width:38px;height:38px}
  .gc-action-btn svg{width:18px;height:18px}
}

/* ============================================================
   LIVE FEATURE
   ============================================================ */
.gc-live-panel{
  position:fixed;inset:0;z-index:50;
  background:rgba(0,0,0,.6);backdrop-filter:blur(6px);
  display:none;align-items:center;justify-content:center;
}
.gc-live-panel.open{display:flex}
.gc-live-inner{
  background:#fff;border-radius:24px;width:min(480px,calc(100% - 32px));
  max-height:85vh;overflow-y:auto;padding:28px;
  box-shadow:0 24px 60px rgba(0,0,0,.25);
}
.gc-live-close{
  position:fixed;top:16px;right:16px;
  width:40px;height:40px;border-radius:50%;border:none;
  background:rgba(255,255,255,.2);color:#fff;font-size:20px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.gc-live-admin{text-align:center}
.gc-live-admin h3{margin:0 0 8px;font-size:22px;color:var(--gc-text)}
.gc-live-sub{margin:0 0 16px;color:var(--gc-muted);font-size:13px}
.gc-live-dot-anim{
  width:14px;height:14px;border-radius:50%;
  background:#E74C3C;margin:0 auto 14px;
  animation:gc-live-pulse 1.5s infinite;
}
@keyframes gc-live-pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.5;transform:scale(1.3)}
}
.gc-live-viewers{
  font-size:14px;color:var(--gc-muted);font-weight:700;margin-bottom:14px;
}
.gc-live-video-wrap{
  border-radius:18px;overflow:hidden;background:#111;
  margin-bottom:16px;aspect-ratio:16/9;
}
.gc-live-video-wrap video{width:100%;height:100%;object-fit:cover}
.gc-live-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.gc-live-btn{
  padding:14px 32px;border-radius:999px;border:none;
  font-weight:800;font-size:15px;cursor:pointer;transition:all .15s;
}
.gc-live-btn:hover{transform:translateY(-1px)}
.gc-live-btn.start{
  background:linear-gradient(135deg,#E74C3C,#C0392B);color:#fff;
  box-shadow:0 10px 24px rgba(231,76,60,.35);
}
.gc-live-btn.start-rec{
  background:linear-gradient(135deg,#E74C3C,#991B1B);color:#fff;
  box-shadow:0 10px 24px rgba(231,76,60,.35);
  border:2px solid #fff;
}
.gc-live-btn.stop{
  background:#333;color:#fff;
}
.gc-live-timer{
  font-size:28px;font-weight:800;color:var(--gc-text);
  font-variant-numeric:tabular-nums;margin-bottom:10px;
}
.gc-live-rec-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 14px;border-radius:999px;
  background:#E74C3C;color:#fff;font-size:12px;font-weight:800;
  margin-bottom:12px;animation:gc-live-pulse 1s infinite;
}
.gc-live-list{margin-top:20px}
.gc-live-list h4{margin:0 0 12px;color:var(--gc-text);font-size:16px}
.gc-live-empty{color:var(--gc-muted);font-size:13px}
.gc-live-card{
  display:flex;align-items:center;gap:12px;
  padding:14px;border-radius:16px;background:#FAFAFA;
  border:1px solid var(--gc-border);margin-bottom:8px;
}
.gc-live-card-dot{
  width:10px;height:10px;border-radius:50%;
  background:#E74C3C;flex-shrink:0;
  animation:gc-live-pulse 1.5s infinite;
}
.gc-live-card-info{flex:1;display:flex;flex-direction:column;gap:2px}
.gc-live-card-info strong{font-size:14px;color:var(--gc-text)}
.gc-live-card-info span{font-size:12px;color:var(--gc-muted)}
.gc-live-join-btn{
  padding:8px 20px;border-radius:999px;border:none;
  background:linear-gradient(135deg,#E74C3C,#C0392B);color:#fff;
  font-weight:700;font-size:13px;cursor:pointer;flex-shrink:0;
}
/* RTMP streaming section */
.gc-rtmp-section{margin-top:16px;text-align:left}
.gc-rtmp-details summary{cursor:pointer;font-weight:700;font-size:13px;color:var(--gc-maroon,#6B1024);padding:8px 0}
.gc-rtmp-fields{padding:12px 0;display:grid;gap:8px}
.gc-rtmp-fields label{font-size:12px;font-weight:700;color:#555;margin-top:4px}
.gc-rtmp-input{width:100%;padding:10px 14px;border:1px solid #ddd;border-radius:12px;font:inherit;font-size:13px;outline:none;box-sizing:border-box}
.gc-rtmp-input:focus{border-color:var(--gc-maroon,#6B1024)}
.gc-rtmp-hint{font-size:11px;color:#999;margin-top:6px;line-height:1.5}
.gc-rtmp-platform{padding:14px;border:1px solid #eee;border-radius:16px;margin-bottom:10px;background:#FAFAFA}
.gc-rtmp-platform.gc-rtmp-allove{background:#FDF2F4;border-color:#E8C0C8}
.gc-rtmp-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.gc-rtmp-head div{flex:1}
.gc-rtmp-head strong{display:block;font-size:14px;color:#1a1a2e}
.gc-rtmp-head small{display:block;font-size:11px;color:#888;margin-top:2px}
.gc-rtmp-logo{width:32px;height:32px;border-radius:8px;object-fit:contain;flex-shrink:0}
.gc-rtmp-status{font-size:12px;color:#166534;font-weight:700}
.gc-rtmp-platform-title{margin:0 0 8px;font-size:14px;color:#1a1a2e}
.gc-rtmp-steps{font-size:12px;color:#666;line-height:2;margin-bottom:8px}
.gc-rtmp-link{color:#6B1024;font-weight:700;text-decoration:none;display:inline-block;padding:6px 14px;background:#FDF2F4;border-radius:10px;font-size:12px;transition:all .2s}
.gc-rtmp-link:hover{background:#F3D5DB;transform:translateY(-1px)}

/* Live notification banner - top-left under topbar */
.gc-live-banner{
  display:none;align-items:center;gap:8px;
  padding:6px 14px;
  background:linear-gradient(135deg,#E74C3C,#C0392B);color:#fff;
  font-size:12px;font-weight:700;
  border-radius:0 0 16px 0;
  width:fit-content;
  animation:gc-live-blink 1.5s infinite;
}
.gc-live-banner.show{display:flex}
@keyframes gc-live-blink{0%,100%{opacity:1}50%{opacity:.7}}
.gc-live-banner-dot{
  width:8px;height:8px;border-radius:50%;background:#fff;
  animation:gc-live-pulse 1s infinite;
}
.gc-live-banner-btn{
  padding:5px 14px;border-radius:999px;border:none;
  background:#fff;color:#E74C3C;font-weight:800;font-size:12px;
  cursor:pointer;
}
.gc-live-banner-close{
  width:20px;height:20px;border-radius:50%;border:none;
  background:rgba(255,255,255,.2);color:#fff;font-size:14px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
}
@media(max-width:980px){
  .gc-live-banner{top:auto;bottom:140px}
}

/* ============================================================
   PROFILE EDIT POPUP
   ============================================================ */
.gc-profile-popup{
  position:fixed;inset:0;z-index:60;
  background:rgba(0,0,0,.55);backdrop-filter:blur(6px);
  display:none;align-items:center;justify-content:center;padding:16px;
}
.gc-profile-popup.open{display:flex}
.gc-profile-popup-box{
  background:#fff;border-radius:24px;max-width:400px;width:100%;
  padding:32px;box-shadow:0 24px 60px rgba(0,0,0,.25);
  text-align:center;position:relative;
  animation:fadeUp .4s ease-out;
}
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.gc-profile-popup-close{
  position:absolute;top:12px;right:14px;
  width:32px;height:32px;border-radius:50%;border:none;
  background:#f0f0f0;font-size:16px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.gc-profile-popup-box h3{margin:0 0 20px;font-size:20px;color:#1a1a2e}
.gc-pp-avatar-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:16px}
.gc-pp-avatar{
  width:100px;height:100px;border-radius:50%;overflow:hidden;
  background:linear-gradient(135deg,#D4AF37,#E8CC6E);
  display:flex;align-items:center;justify-content:center;
  color:#6B1024;font-weight:900;font-size:40px;
  border:3px solid #E8E8E8;
}
.gc-pp-avatar img{width:100%;height:100%;object-fit:cover}
.gc-pp-upload-btn{
  padding:8px 20px;border-radius:999px;
  background:var(--gc-maroon,#6B1024);color:#fff;
  font-weight:700;font-size:13px;cursor:pointer;
}
.gc-pp-preview{width:100px;height:100px;border-radius:50%;overflow:hidden;margin:0 auto 16px;border:3px solid var(--gc-maroon,#6B1024)}
.gc-pp-preview img{width:100%;height:100%;object-fit:cover}
.gc-pp-label{display:block;text-align:left;font-weight:700;font-size:13px;color:#555;margin-bottom:6px}
.gc-pp-input{
  width:100%;padding:12px 16px;border:1px solid #ddd;border-radius:14px;
  font:inherit;font-size:14px;background:#FAFAFA;outline:none;
  margin-bottom:18px;box-sizing:border-box;
}
.gc-pp-input:focus{border-color:#6B1024;box-shadow:0 0 0 3px rgba(107,16,36,.1)}
.gc-pp-save{
  width:100%;padding:14px;border-radius:999px;border:none;
  background:linear-gradient(135deg,#22C55E,#16A34A);color:#fff;
  font-weight:800;font-size:15px;cursor:pointer;
  box-shadow:0 10px 24px rgba(34,197,94,.3);
}
.gc-pp-save:hover{transform:translateY(-1px)}
.gc-pp-save:disabled{opacity:.6;cursor:not-allowed;transform:none}

/* ---- composer avatar + button ---- */
.gc-composer-left{display:flex;align-items:center;gap:6px}
.gc-my-avatar-btn{
  width:40px;height:40px;border-radius:50%;border:none;overflow:hidden;
  background:linear-gradient(135deg,#D4AF37,#E8CC6E);
  display:flex;align-items:center;justify-content:center;
  color:#6B1024;font-weight:800;font-size:16px;
  cursor:pointer;position:relative;flex-shrink:0;padding:0;
}
.gc-my-avatar-btn img{width:100%;height:100%;object-fit:cover}
.gc-avatar-plus,.gc-profile-plus{
  position:absolute;bottom:-1px;right:-1px;
  width:16px;height:16px;border-radius:50%;
  background:#22C55E;color:#fff;font-size:12px;line-height:16px;
  text-align:center;font-weight:900;border:2px solid #fff;
}
.gc-profile-plus{bottom:0;right:0;width:18px;height:18px;line-height:18px;font-size:13px}

/* ---- fix composer grid for new layout ---- */
.gc-composer{grid-template-columns:auto 1fr auto}
